/* =========================================================
   Gréti keresztelője — "ikonosztáz" meghívó
   Palettát és betűket lásd a :root tokenekben.
   ========================================================= */

:root {
  --lapis: #6e2a4c;       /* mély mályva-rózsa (Istenszülő köpenye) */
  --lapis-2: #93406a;
  --gold: #c49a3c;        /* aranyfüst */
  --gold-hi: #f4dc95;
  --gold-lo: #8a6420;
  --water: #fcf1f3;       /* halvány rózsa — oldal háttér */
  --paper: #fffbfb;
  --ink: #3d2231;         /* szöveg */
  --ink-soft: #7a5467;
  --cinnabar: #b83f6c;    /* rubrika — málnarózsa */
  --rose: #f0a9bd;        /* Gréti rózsája */

  --gold-leaf: linear-gradient(135deg, #8a6420 0%, #d9b45c 18%, #fff0bd 32%, #c49a3c 50%, #f2d98f 68%, #a57b2c 86%, #7d5a1c 100%);
  --gold-text: linear-gradient(100deg, #8a6420 0%, #c49a3c 30%, #e9c86f 45%, #a57b2c 60%, #c49a3c 80%, #7d5a1c 100%);

  --f-display: "Cinzel", "Times New Roman", serif;
  --f-body: "Alegreya", Georgia, serif;
  --f-script: "Pinyon Script", "Brush Script MT", cursive;

  --col: min(100% - 32px, 460px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-door: cubic-bezier(.55, .05, .25, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--f-body);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 50% 0%, #ffffff 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #fff8f8 0%, var(--water) 45%, #f8e3e9 100%);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; height: 100svh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

#dust {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* ---------- Közös elemek ---------- */
.rubric {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cinnabar);
  margin: 0 0 1.1rem;
  display: flex; align-items: center; justify-content: center; gap: .6em;
}
.rubric::before, .rubric::after {
  content: ""; height: 1px; width: 2.2rem;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.rubric::after { transform: scaleX(-1); }

.orn { display: block; width: 200px; height: 20px; margin: 0 auto 1.4rem; color: var(--gold); }

.section {
  width: var(--col);
  margin: 0 auto;
  padding: 3.2rem 0;
  text-align: center;
  position: relative;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px;
  padding: .7em 1.15em;
  border-radius: 999px;
  border: 1px solid rgba(196,154,60,.55);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .06em;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 4px 14px -8px rgba(96,30,64,.35);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.btn:active { transform: scale(.96); }
.btn--gold {
  background: var(--gold-leaf);
  color: #3a2808;
  border-color: rgba(138,100,32,.6);
  text-shadow: 0 1px 0 rgba(255,240,190,.6);
}
.btn--ghost { background: transparent; }
.btn--big {
  width: 100%;
  justify-content: flex-start;
  border-radius: 18px;
  padding: .9em 1.2em;
  font-size: .9rem;
  text-align: left;
}
.btn--big svg { width: 1.6em; height: 1.6em; }
.btn--big small {
  display: block;
  font-family: var(--f-body); font-weight: 400;
  letter-spacing: 0; font-size: .85rem;
  color: var(--ink-soft);
}
.btn--big.is-primary { background: var(--gold-leaf); color: #3a2808; border-color: rgba(138,100,32,.6); }
.btn--big.is-primary small { color: #5a4214; }

/* ---------- Nyitókép: királyi ajtók ---------- */
.intro {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem;
  padding: 24px 16px calc(24px + var(--safe-b));
  color: var(--gold-hi);
  background:
    radial-gradient(70% 45% at 50% 42%, rgba(214,120,160,.5), rgba(96,30,64,0) 70%),
    radial-gradient(140% 90% at 50% 110%, #3d1128 0%, rgba(61,17,40,0) 60%),
    var(--lapis);
  transition: opacity .9s ease, transform 1.1s var(--ease-out), visibility 0s linear .9s;
}
.intro.is-gone { opacity: 0; transform: scale(1.12); visibility: hidden; pointer-events: none; }
.intro__stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(244,220,149,.9), transparent),
    radial-gradient(1px 1px at 80% 12%, rgba(244,220,149,.7), transparent),
    radial-gradient(1.4px 1.4px at 66% 28%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 26% 72%, rgba(244,220,149,.6), transparent),
    radial-gradient(1.3px 1.3px at 88% 64%, rgba(244,220,149,.8), transparent),
    radial-gradient(1px 1px at 40% 88%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 8% 50%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.2px 1.2px at 94% 38%, rgba(255,255,255,.6), transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

.intro__eyebrow {
  margin: 0;
  font-family: var(--f-display); font-weight: 600;
  letter-spacing: .5em; text-indent: .5em;
  font-size: .8rem; text-transform: uppercase;
  color: #f7bfd0;
}
.intro__title {
  margin: .4rem 0 0;
  font-family: var(--f-script);
  font-size: clamp(2.3rem, 11vw, 3.2rem);
  line-height: 1;
  color: var(--gold-hi);
  text-shadow: 0 0 18px rgba(244,220,149,.35);
}
.intro__hint {
  margin: 0;
  display: flex; align-items: center; gap: .6em;
  font-family: var(--f-display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(244,220,149,.85);
}
.intro__sound { margin: -.6rem 0 0; font-size: .85rem; font-style: italic; color: rgba(244,220,149,.55); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 0 0 rgba(244,220,149,.7);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse { to { box-shadow: 0 0 0 14px rgba(244,220,149,0); } }

.doors {
  --dw: min(34vw, 132px, 20svh);   /* egy ajtószárny szélessége */
  --dh: calc(var(--dw) * 2.9);
  position: relative;
  width: calc(var(--dw) * 2 + 20px);
  height: calc(var(--dh) + 10px);
  padding: 10px 10px 0;
  border: 0;
  background: none;
  perspective: 900px;
  display: flex;
  animation: doorsFloat 5s ease-in-out infinite;
}
@keyframes doorsFloat { 50% { transform: translateY(-5px); } }
/* aranyozott keret */
.doors::before {
  content: ""; position: absolute; inset: 0;
  border-radius: calc(var(--dw) + 10px) calc(var(--dw) + 10px) 6px 6px;
  background: var(--gold-leaf);
  box-shadow: 0 0 0 1px rgba(255,240,190,.4) inset, 0 20px 50px -10px rgba(0,0,0,.6), 0 0 60px rgba(244,220,149,.18);
}
.doors__inside {
  position: absolute; left: 10px; right: 10px; top: 10px; bottom: 0;
  border-radius: var(--dw) var(--dw) 0 0;
  overflow: hidden;
  background: radial-gradient(80% 60% at 50% 40%, #fff9e6, #f1d9a0 60%, #b8913f);
}
.doors__inside img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  opacity: 0; transform: scale(1.15);
  transition: opacity 1.2s ease .5s, transform 2.4s var(--ease-out) .3s;
}
.doors__light {
  position: absolute; left: 50%; top: 10px; bottom: 0; width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,250,225,0), #fff8dc 30%, #fff8dc 70%, rgba(255,250,225,0));
  box-shadow: 0 0 12px 3px rgba(255,240,190,.8);
  animation: seam 2.4s ease-in-out infinite;
  z-index: 3;
}
@keyframes seam { 50% { opacity: .35; } }

.door {
  position: relative; z-index: 2;
  width: var(--dw); height: var(--dh);
  background:
    radial-gradient(120% 60% at 30% 10%, rgba(255,245,210,.55), transparent 55%),
    var(--gold-leaf);
  box-shadow: inset 0 0 0 1px rgba(90,62,15,.55), inset 0 0 0 5px rgba(255,236,180,.25), inset 0 0 0 6px rgba(90,62,15,.35);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 8%;
  padding: 16% 12% 12%;
  transition: transform 1.7s var(--ease-door);
  will-change: transform;
}
.door--l { border-radius: var(--dw) 0 0 0; transform-origin: 0 50%; padding-left: 16%; }
.door--r { border-radius: 0 var(--dw) 0 0; transform-origin: 100% 50%; padding-right: 16%; }
.door__panel {
  width: 100%;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(90,62,15,.6), inset 0 0 0 4px rgba(255,236,180,.28), inset 0 2px 8px rgba(90,62,15,.45);
  background: linear-gradient(160deg, rgba(255,240,200,.28), rgba(120,86,24,.15));
  display: grid; place-items: center;
}
.door__panel--top { flex: 1.35; }
.door--l .door__panel--top { border-radius: 999px 20px 4px 4px; }
.door--r .door__panel--top { border-radius: 20px 999px 4px 4px; }
.door__panel--bot { flex: 1; }
.door__cross { width: 34%; height: 40%; fill: #7a5a1a; filter: drop-shadow(0 1px 0 rgba(255,240,190,.7)); }
.door__knob {
  position: absolute; top: 58%; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff4cc, #9c7428);
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.door--l .door__knob { right: 7px; }
.door--r .door__knob { left: 7px; }

.intro.is-opening .door--l { transform: rotateY(-112deg); }
.intro.is-opening .door--r { transform: rotateY(112deg); }
.door::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(96,30,64,.4); opacity: 0; transition: opacity 1.7s; }
.intro.is-opening .door::after { opacity: 1; }
.intro.is-opening .doors { animation: none; }
.intro.is-opening .doors__light { animation: none; opacity: 0; transition: opacity .3s; }
.intro.is-opening .doors__inside img { opacity: 1; transform: scale(1); }
.intro.is-opening .intro__hint,
.intro.is-opening .intro__sound { opacity: 0; transition: opacity .4s; }

/* ---------- Galamb ---------- */
.dove-lane { position: fixed; inset: 0; z-index: 8; overflow: hidden; pointer-events: none; }
.dove {
  position: absolute; left: 0; top: 18svh;
  padding: 10px; border: 0; background: none;
  transform: translate3d(-140px, 0, 0);
  pointer-events: none;
  visibility: hidden;
}
.dove.is-flying {
  visibility: visible; pointer-events: auto;
  animation: fly var(--fly-dur, 11s) linear forwards;
}
.dove.is-rtl svg { transform: scaleX(-1); }
.dove.is-rtl.is-flying { animation-name: flyRtl; }
@keyframes fly { from { transform: translate3d(-140px, 0, 0); } to { transform: translate3d(calc(100vw + 40px), -6svh, 0); } }
@keyframes flyRtl { from { transform: translate3d(calc(100vw + 40px), 0, 0); } to { transform: translate3d(-140px, -6svh, 0); } }
.dove__bob { display: block; animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.dove svg { display: block; overflow: visible; filter: drop-shadow(0 4px 6px rgba(96,30,64,.18)); }
.dove__body { fill: #fff; stroke: var(--gold); stroke-width: 1.3; }
.dove__wing { fill: #fff; stroke: var(--gold); stroke-width: 1.3; transform-box: fill-box; transform-origin: 50% 100%; animation: flap .42s ease-in-out infinite alternate; }
.dove__wing--back { fill: #fbecf1; animation-delay: -.08s; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.55); } }
.dove.is-startled .dove__wing { animation-duration: .16s; }

/* ---------- Zene gomb ---------- */
.music-btn {
  position: fixed; z-index: 30;
  right: 14px; bottom: calc(14px + var(--safe-b));
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(138,100,32,.6);
  background: var(--gold-leaf);
  box-shadow: 0 8px 20px -8px rgba(96,30,64,.6), inset 0 1px 0 rgba(255,245,210,.7);
  display: grid; place-items: center;
  color: #3a2808;
}
.music-btn__icon { width: 22px; height: 22px; fill: currentColor; grid-area: 1/1; transition: opacity .2s; }
.eq { grid-area: 1/1; display: flex; gap: 3px; align-items: flex-end; height: 18px; opacity: 0; transition: opacity .2s; }
.eq i { width: 3px; height: 100%; background: currentColor; border-radius: 2px; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.35s; }
.eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.music-btn[aria-pressed="true"] .eq { opacity: 1; }
.music-btn[aria-pressed="true"] .music-btn__icon { opacity: 0; }
.music-btn[aria-pressed="false"]::after {
  content: ""; position: absolute; width: 26px; height: 2px; background: #3a2808; transform: rotate(-45deg); border-radius: 2px;
}

/* ---------- Hero: Gréti ikonja ---------- */
/* a glória szélesebb a képernyőnél: a képernyő szélén vágjuk, hogy ne lehessen oldalra görgetni */
.page { position: relative; z-index: 2; padding-bottom: calc(80px + var(--safe-b)); overflow-x: hidden; overflow-x: clip; }

.hero {
  width: var(--col);
  margin: 0 auto;
  min-height: 100svh;
  padding: 2.2rem 0 4.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
}
.hero__rubric { margin-bottom: 1.4rem; }

.icon {
  --w: min(74vw, 300px);
  position: relative;
  width: var(--w);
  aspect-ratio: 3 / 4;
  margin-bottom: 1.6rem;
}
.icon__halo {
  position: absolute; left: 50%; top: 34%;
  width: 150%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255,244,205,.95), rgba(244,220,149,.45) 45%, rgba(244,220,149,0) 72%);
}
.icon__halo::before {
  content: ""; position: absolute; inset: 6%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(196,154,60,.2) 0deg 2.2deg, rgba(196,154,60,0) 2.2deg 11.25deg);
  -webkit-mask: radial-gradient(closest-side, transparent 38%, #000 42%, #000 70%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 38%, #000 42%, #000 70%, transparent 100%);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon__frame {
  position: relative;
  height: 100%;
  padding: 9px;
  border-radius: calc(var(--w) / 2) calc(var(--w) / 2) 14px 14px;
  background: var(--gold-leaf);
  box-shadow:
    0 0 0 1px rgba(90,62,15,.45),
    0 30px 60px -24px rgba(96,30,64,.55),
    0 0 0 6px rgba(255,255,255,.55),
    0 0 0 7px rgba(196,154,60,.45);
}
.icon__arch {
  height: 100%;
  border-radius: calc(var(--w) / 2 - 9px) calc(var(--w) / 2 - 9px) 8px 8px;
  overflow: hidden;
  background: #f3efe8;
  box-shadow: inset 0 0 0 1px rgba(90,62,15,.5);
}
.icon__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.name { margin: 0; line-height: .95; display: flex; flex-direction: column; align-items: center; }
.name__family {
  font-family: var(--f-display); font-weight: 600;
  font-size: .95rem; letter-spacing: .6em; text-indent: .6em;
  text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: .35rem;
}
.name { margin-bottom: 1.3rem; }
.name__given {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(3.2rem, 17vw, 4.6rem);
  letter-spacing: .06em;
  background: var(--gold-text);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

.hero__invite { margin: 0; font-style: italic; color: var(--ink-soft); font-size: 1.15rem; line-height: 1.45; }

.scroll-cue {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px;
  border: 1.5px solid rgba(196,154,60,.7);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--gold);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Hero belépő animáció (az ajtónyitás után) */
.js .hero > * { opacity: 0; transform: translateY(18px); }
.js .is-open .hero > * { opacity: 1; transform: none; transition: opacity 1s ease, transform 1.2s var(--ease-out); }
.js .is-open .hero > :nth-child(1) { transition-delay: .1s; }
.js .is-open .hero > :nth-child(2) { transition-delay: .25s; }
.js .is-open .hero > :nth-child(3) { transition-delay: .6s; }
.js .is-open .hero > :nth-child(4) { transition-delay: .85s; }
.js .is-open .hero > :nth-child(5) { transition-delay: 1.1s; }
.js .is-open .hero > :nth-child(6) { transition-delay: 1.6s; }
.js .is-open .hero .scroll-cue { transform: translateX(-50%); }
.js .hero > .scroll-cue { transform: translateX(-50%) translateY(18px); }

/* ---------- Görgetésre előtűnés ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Meghívás ---------- */
.invite__text { margin: 0 0 1rem; text-align: left; hyphens: auto; }
.dropcap {
  float: left;
  font-family: var(--f-display); font-weight: 700;
  font-size: 3.6rem; line-height: .82;
  margin: .28rem .5rem 0 0;
  color: var(--cinnabar);
  text-shadow: 1px 1px 0 var(--gold-hi);
}

.scratch { margin-top: 2.2rem; }
.scratch__label {
  margin: 0 0 .7rem;
  font-family: var(--f-display); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft);
}
.scratch__card {
  position: relative;
  height: 138px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(196,154,60,.5), 0 0 0 5px #fff, 0 0 0 6px rgba(196,154,60,.35), 0 18px 34px -20px rgba(96,30,64,.5);
  overflow: hidden;
}
.scratch__date {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(90% 90% at 50% 50%, #fff, #fdf2f5);
}
.scratch__weekday { font-family: var(--f-script); font-size: 2rem; line-height: 1; color: var(--cinnabar); }
.scratch__day { font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; letter-spacing: .06em; color: var(--ink); }
.scratch__day span { color: var(--ink-soft); font-weight: 500; }
.scratch__day b { font-size: 1.9rem; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
#scratch {
  position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: none; cursor: grab;
  transition: opacity .8s ease;
}
.scratch.is-revealed #scratch { opacity: 0; pointer-events: none; }
.scratch.is-revealed .scratch__date { animation: glowIn 1.4s ease; }
.scratch.is-revealed .scratch__label { visibility: hidden; }
@keyframes glowIn { from { transform: scale(.94); filter: brightness(1.3); } to { transform: none; filter: none; } }

/* ---------- Visszaszámlálás ---------- */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cd__cell {
  padding: .8rem 0 .6rem;
  border-radius: 999px 999px 14px 14px;  /* apró boltívek */
  background: linear-gradient(180deg, var(--lapis-2), var(--lapis));
  box-shadow: inset 0 0 0 1px rgba(244,220,149,.35), 0 12px 24px -16px rgba(96,30,64,.8);
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
}
.cd__num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.6rem, 8vw, 2.1rem); line-height: 1.2;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.cd__num.tick { animation: tick .45s var(--ease-out); }
@keyframes tick { from { transform: translateY(-40%); opacity: .2; } to { transform: none; opacity: 1; } }
.cd__unit { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,220,149,.7); font-family: var(--f-display); }
.cd__done { margin: 0; font-family: var(--f-script); font-size: 2.2rem; color: var(--cinnabar); }

/* ---------- A nap rendje ---------- */
.timeline { list-style: none; margin: 0; padding: 0; text-align: left; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 83px; top: 26px; bottom: 26px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
}
.tl { display: grid; grid-template-columns: 62px 44px 1fr; align-items: start; gap: 0 0; padding: 0 0 1.8rem; }
.tl:last-child { padding-bottom: 0; }
.tl__time {
  font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; line-height: 44px;
  color: var(--ink); text-align: right; padding-right: 8px;
}
.tl__dot {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-leaf);
  display: grid; place-items: center;
  box-shadow: 0 0 0 4px var(--water), 0 6px 14px -6px rgba(96,30,64,.6);
  position: relative; z-index: 1;
}
.tl__dot svg { width: 20px; height: 20px; fill: #4a3410; }
.tl__body { padding-left: 14px; }
.tl__title { margin: .35rem 0 .2rem; font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; letter-spacing: .04em; color: var(--cinnabar); }
.tl__place { margin: 0; font-weight: 500; line-height: 1.3; }
.tl__note { margin: .15rem 0 0; font-style: italic; font-size: .92rem; color: var(--ink-soft); line-height: 1.3; }
.tl__addr { margin: .3rem 0 0; font-size: .92rem; color: var(--ink-soft); }
.bell-btn {
  margin-top: .7rem;
  display: inline-flex; align-items: center; gap: .45em;
  padding: .45em .95em; min-height: 40px;
  border-radius: 999px; border: 1px dashed rgba(196,154,60,.8);
  background: transparent;
  font-family: var(--f-display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-lo);
}
.bell-btn svg { width: 1.1em; height: 1.1em; fill: currentColor; transform-origin: 50% 10%; }
.bell-btn.is-ringing svg { animation: ring .5s ease-in-out 4; }
@keyframes ring { 25% { transform: rotate(18deg); } 75% { transform: rotate(-18deg); } }

.program__note {
  margin: 1.6rem 0 0; padding: .6rem 1rem;
  border-radius: 999px; font-size: .92rem; font-style: italic;
  color: var(--ink-soft);
  background: rgba(184,63,108,.07);
  box-shadow: inset 0 0 0 1px rgba(184,63,108,.22);
}
.is-tentative .tl__time::after { content: "kb."; display: block; margin-top: -14px; font-family: var(--f-body); font-weight: 400; font-style: italic; font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft); }

/* ---------- Gyertya ---------- */
.candle {
  position: relative;
  width: 120px; height: 250px;
  margin: .6rem auto 0;
  border: 0; background: none; padding: 0;
  display: block;
}
.candle__body {
  position: absolute; left: 50%; bottom: 0;
  width: 44px; height: 170px; margin-left: -22px;
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(90deg, #efe4e7 0%, #ffffff 35%, #fffafb 60%, #e4d4da 100%);
  box-shadow: 0 14px 20px -12px rgba(96,30,64,.5);
}
.candle__body::before { /* olvadt tető */
  content: ""; position: absolute; left: -2px; right: -2px; top: -5px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #fff, #f1e6ea);
}
.candle__mono { position: absolute; left: 0; right: 0; top: 16px; text-align: center; font-family: var(--f-script); font-size: 2rem; line-height: 1; color: var(--gold); }
.candle__ribbon {
  position: absolute; left: -6px; right: -6px; top: 72px; height: 14px;
  background: var(--gold-leaf); border-radius: 3px;
  box-shadow: 0 2px 4px rgba(90,62,15,.3);
}
.candle__ribbon::before, .candle__ribbon::after {
  content: ""; position: absolute; top: 10px; width: 10px; height: 40px;
  background: linear-gradient(180deg, #f4b8c8, #e592aa);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
}
.candle__ribbon::before { left: 12px; transform: rotate(8deg); }
.candle__ribbon::after { right: 12px; transform: rotate(-8deg); }
.candle__wick { position: absolute; left: 50%; bottom: 170px; width: 2px; height: 12px; margin-left: -1px; background: #3a2d22; border-radius: 1px; }
.candle__flame {
  position: absolute; left: 50%; bottom: 178px;
  width: 22px; height: 46px; margin-left: -11px;
  transform-origin: 50% 90%;
  transform: scale(0);
  transition: transform .6s var(--ease-out);
}
.candle__flame i {
  position: absolute; inset: 0;
  border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 78%, #ffffff 0%, #fff5c2 22%, #ffc24a 52%, rgba(255,120,30,.85) 72%, rgba(255,90,20,0) 100%);
  filter: blur(.3px);
  animation: flicker 1.8s ease-in-out infinite;
}
.candle__glow {
  position: absolute; left: 50%; bottom: 150px;
  width: 220px; height: 220px; margin-left: -110px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,210,120,.55), rgba(255,210,120,0));
  opacity: 0; transform: scale(.4);
  transition: opacity 1s ease, transform 1s var(--ease-out);
  pointer-events: none;
}
@keyframes flicker {
  0%,100% { transform: scale(1, 1) skewX(0); }
  25% { transform: scale(.94, 1.06) skewX(2deg); }
  50% { transform: scale(1.03, .96) skewX(-2deg); }
  75% { transform: scale(.97, 1.04) skewX(1deg); }
}
.candle.is-lit .candle__flame { transform: scale(1); }
.candle.is-lit .candle__glow { opacity: 1; transform: scale(1); animation: glowPulse 3s ease-in-out 1s infinite; }
@keyframes glowPulse { 50% { opacity: .75; transform: scale(.94); } }
.candle:not(.is-lit)::after { /* halvány hívogató szikra a kanócon */
  content: ""; position: absolute; left: 50%; bottom: 180px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: rgba(255,200,90,.9); box-shadow: 0 0 10px 3px rgba(255,200,90,.6);
  animation: pulseSpark 1.6s ease-in-out infinite;
}
@keyframes pulseSpark { 50% { opacity: .2; transform: scale(.6); } }
.candle__text { margin: 1.1rem 0 0; font-style: italic; color: var(--ink-soft); min-height: 3.2em; }

/* ---------- Térkép ---------- */
.tabs {
  display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(96,30,64,.07);
  box-shadow: inset 0 0 0 1px rgba(196,154,60,.35);
}
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 42px; padding: 0 1.2rem;
  border: 0; border-radius: 999px; background: transparent;
  font-family: var(--f-display); font-weight: 600; font-size: .8rem; letter-spacing: .1em;
  color: var(--ink-soft);
  transition: background .3s, color .3s;
}
.tab svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.tab.is-active { background: var(--lapis); color: var(--gold-hi); }

.map-card {
  border-radius: 22px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(196,154,60,.5), 0 22px 40px -24px rgba(96,30,64,.55);
}
.map-frame { position: relative; aspect-ratio: 4 / 3; background: #f6e6eb; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  color: var(--ink-soft); font-size: .9rem;
  background:
    repeating-linear-gradient(35deg, rgba(96,30,64,.04) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(-55deg, rgba(96,30,64,.04) 0 2px, transparent 2px 36px),
    #f7e8ed;
}
.map-placeholder svg { width: 34px; height: 34px; fill: var(--cinnabar); animation: drop 1.4s ease-in-out infinite; }
@keyframes drop { 50% { transform: translateY(-6px); } }
.map-info { padding: 1.1rem 1rem 1.2rem; }
.map-info__place { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1rem; }
.map-info__addr { margin: .15rem 0 .9rem; color: var(--ink-soft); font-size: .95rem; }
.nav-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nav-btns .btn { flex: 1 1 auto; font-size: .76rem; padding: .6em .9em; }

/* ---------- Naptár ---------- */
.cal-sec__lead { margin: -.3rem 0 1.2rem; color: var(--ink-soft); }
.cal-btns { display: grid; gap: 10px; }
.cal-sec__ics { display: inline-block; margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); text-underline-offset: 3px; }
.inapp-hint p { margin: 0; }
.inapp-hint .btn { margin: .8rem 0 .2rem; width: 100%; }
.inapp-hint__alt { margin-top: .5rem !important; font-size: .85rem; color: var(--ink-soft); }
.inapp-hint {
  margin: 1rem 0 0; padding: .8rem 1rem;
  border-radius: 14px; font-size: .9rem; text-align: left;
  background: rgba(184,63,108,.07); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(184,63,108,.25);
}

/* ---------- Zárás ---------- */
.finale { padding-bottom: 2rem; }
.finale__big {
  margin: 0;
  font-family: var(--f-script);
  font-size: clamp(2.6rem, 12.5vw, 3.6rem); line-height: 1.1;
  color: var(--cinnabar);
}
.finale__sign { margin: .3rem 0 1.6rem; font-family: var(--f-display); letter-spacing: .12em; font-size: .9rem; color: var(--ink-soft); }
.finale__cross { display: block; width: 22px; height: 36px; margin: 2.2rem auto 0; fill: var(--gold); opacity: .8; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(80px + var(--safe-b)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0;
  padding: .7rem 1.2rem; border-radius: 999px;
  background: var(--lapis); color: var(--gold-hi);
  font-size: .95rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  transition: opacity .3s, transform .3s var(--ease-out);
  pointer-events: none; white-space: nowrap;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Asztali nézet: keretezett "ikon-tábla" ---------- */
@media (min-width: 700px) {
  body { background: radial-gradient(80% 60% at 50% 20%, #9a4671, var(--lapis) 70%) fixed; }
  .page {
    width: 520px; margin: 32px auto;
    border-radius: 260px 260px 28px 28px;
    background:
      radial-gradient(120% 40% at 50% 0%, #ffffff 0%, rgba(255,255,255,0) 60%),
      linear-gradient(180deg, #fff8f8 0%, var(--water) 45%, #f8e3e9 100%);
    box-shadow: 0 0 0 10px rgba(196,154,60,.9), 0 0 0 12px rgba(90,62,15,.5), 0 40px 90px -30px rgba(0,0,0,.7);
    overflow: hidden;
  }
  .hero { min-height: 900px; }
}

/* ---------- Csökkentett mozgás ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  html { scroll-behavior: auto; }
  .dove { display: none; }
}
