:root {
  --night: #1a1238; --night2: #241a4a; --glow: #3b2a7a; --ink: #f4eedf; --ink2: #ddd5ee; --mute: #b9b0d4; --gold: #f5c451; --gold2: #e0a52a; --btn: #2a1b00; --paper: #fbf6ea; --dark: #221a3a;
  --line: rgba(255, 255, 255, .12); --card: rgba(255, 255, 255, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 17px/1.6 var(--sans); overflow-x: hidden;
  background: radial-gradient(1200px 700px at 80% -10%, var(--glow) 0%, transparent 60%), var(--night); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
section { padding: 64px 0; }
.kicker { color: var(--gold); font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.muted { color: var(--mute); }
.todo { background: #ffe14d; color: #222; padding: 1px 6px; font-weight: 700; font-size: .85em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--gold2)); color: var(--btn); font-weight: 800; font-size: 1.02rem; text-decoration: none;
  border: 0; cursor: pointer; box-shadow: 0 8px 24px rgba(245, 196, 81, .28); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245, 196, 81, .4); }
.btn.ghost { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn.wide { width: 100%; }
.link { color: var(--gold); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

.bar { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 1.2rem var(--serif); text-decoration: none; }
.logo svg { width: 36px; height: 24px; fill: var(--gold); }
.logo .wisp { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }

/* a két egyenrangú út a lap tetején: szavazás (türkiz jegy) és a saját játék (arany buborék); ugyanaz a forma, ugyanaz a gomb */
.start { padding-top: 26px; padding-bottom: 44px; }
.start h1 { font-size: clamp(2.3rem, 6.4vw, 4.2rem); letter-spacing: -.02em; margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--ink2); max-width: 46ch; margin: 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.door { position: relative; display: flex; flex-direction: column; padding: 24px 24px 22px; border-radius: 24px; border: 2px solid var(--line); background: var(--card); }
.door.vote { border-color: rgba(63, 193, 208, .6); background: linear-gradient(160deg, rgba(63, 193, 208, .16), rgba(255, 255, 255, .03) 70%); }
.door.tell { border-color: var(--gold); background: linear-gradient(160deg, rgba(245, 196, 81, .16), rgba(255, 255, 255, .03) 70%); }
.door-art { position: absolute; top: 22px; right: 22px; width: 66px; height: 44px; }
.door .kicker { padding-right: 80px; margin-bottom: 8px; }
.door.vote .kicker { color: #8fe3ec; }
.door h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-bottom: 10px; padding-right: 64px; }
.door p { color: var(--ink2); margin: 0 0 10px; }
.door .door-meta { color: var(--mute); font-size: .92rem; margin-bottom: 18px; }
.door .door-meta b { color: var(--ink); }
.door .btn { margin-top: auto; }
.a-tk, .a-cut, .a-bub { fill: none; stroke-width: 2.5; }
.a-cut { stroke-width: 2; stroke-dasharray: 3 3; }
.a-mark, .a-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vote .a-tk, .vote .a-cut, .vote .a-mark { stroke: #3fc1d0; }
.tell .a-bub, .tell .a-line { stroke: var(--gold); }
.also { margin: 18px 0 0; color: var(--mute); }
@media (max-width: 720px) {
  .start { padding-top: 10px; padding-bottom: 32px; }
  .start h1 { font-size: 2.15rem; margin-bottom: 6px; }
  .lead { font-size: 1rem; }
  .duo { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .door { padding: 16px 16px 16px; border-radius: 20px; }
  .door-art { top: 16px; right: 16px; width: 48px; height: 32px; }
  .door .kicker { font-size: .74rem; margin-bottom: 4px; padding-right: 56px; }
  .door h2 { font-size: 1.32rem; margin-bottom: 6px; padding-right: 48px; }
  .door p { font-size: .95rem; line-height: 1.45; margin-bottom: 6px; }
  .door .door-meta { font-size: .84rem; margin-bottom: 12px; }
  .door .btn { min-height: 48px; }
  .also { margin-top: 12px; font-size: .95rem; }
}

.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.steps .i { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--btn); font-weight: 800; margin-bottom: 12px; }
.steps h2 { font-size: 1.3rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--mute); }

.wish h2 { margin-bottom: 26px; }
.wish-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: center; }
.bubble { margin: 0; background: var(--paper); color: #2b2440; border-radius: 22px 22px 22px 6px; padding: 22px 24px; font: 1.06rem/1.6 var(--serif); position: relative; }
.bubble cite { display: block; margin-top: 10px; font: italic .85rem var(--sans); color: #7a7090; }
.shot { display: block; text-decoration: none; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); transition: transform .15s; }
.shot:hover { transform: translateY(-3px); }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot-cap { display: block; padding: 12px 16px; background: var(--night2); font-size: .95rem; color: var(--mute); }
.shot-cap b { color: var(--ink); }
.shot-cap u { color: var(--gold); text-decoration: none; font-weight: 700; }
.again { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; margin-top: 28px; padding: 18px; border-radius: 18px; background: var(--card); }
.again img { width: 100%; border-radius: 12px; display: block; }
.again h3 { font-size: 1.3rem; margin-bottom: 6px; }
.again p { margin: 0 0 8px; color: var(--mute); }

.lamp { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .25)); }
.lamp-in { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: center; }
.lamp-art { width: 100%; }
.lamp-art .body { fill: var(--gold); }
.lamp-art .smoke { fill: none; stroke: #cdbff5; stroke-width: 4; stroke-linecap: round; opacity: .8; stroke-dasharray: 200; animation: smoke 5s ease-in-out infinite; }
.lamp-art .star { fill: #fff3c4; animation: twinkle 2.4s ease-in-out infinite; }
.lamp-art .star:nth-of-type(2) { animation-delay: .8s; } .lamp-art .star:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes smoke { 0% { stroke-dashoffset: 200; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes twinkle { 50% { opacity: .2; } }
.lamp h2 { margin: 0; display: inline; }
.lamp-in { grid-template-columns: 150px 1fr; gap: 28px; }
.lamp-d summary { cursor: pointer; list-style: none; padding: 6px 0; }
.lamp-d summary::-webkit-details-marker { display: none; }
.lamp-d summary::after { content: "+"; display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 14px; vertical-align: 6px;
  border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font: 700 1.3rem/1 var(--sans); transition: transform .2s; }
.lamp-d[open] summary::after { transform: rotate(45deg); }
.lamp-d[open] summary { margin-bottom: 14px; }

.how p { max-width: 64ch; color: var(--ink2); font-size: 1.08rem; }
.how em { font-style: normal; font-weight: 800; color: var(--gold); }
.how h2 { margin-bottom: 14px; }
.how + .wish { padding-top: 0; }
.lamp p { color: var(--ink2); max-width: 60ch; }
.old { font-family: var(--serif); font-size: 1.15rem; color: var(--gold) !important; }

.tickets .sub { color: var(--mute); margin: 8px 0 30px; }
.rule { margin: 26px 0 0; padding: 16px 20px; border-left: 4px solid var(--gold); background: var(--card); border-radius: 0 12px 12px 0; }


.faq h2 { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); max-width: 720px; }
.faq summary { cursor: pointer; padding: 16px 0; font: 700 1.12rem var(--serif); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "✦ "; color: var(--gold); }
.faq p { margin: 0 0 16px; color: var(--mute); }
.foot { padding: 30px 20px 50px; border-top: 1px solid var(--line); font-size: .9rem; }
.foot p { margin: 6px 0; }

@media (max-width: 820px) {
  section { padding: 48px 0; }
  .steps ol { grid-template-columns: 1fr; }
  .wish-in { grid-template-columns: 1fr; }
  .again { grid-template-columns: 1fr; }
  .lamp-in { grid-template-columns: 72px 1fr; gap: 14px; }
  .lamp-art { width: 72px; }
  .lamp-d summary::after { width: 28px; height: 28px; margin-left: 8px; vertical-align: 2px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { animation: none !important; transition: none !important; } }

/* kisfilm: vidámpark, dzsinn, telefon (vasar/) */
body { transition: background-color .6s, color .6s; }
.film { padding: 0; }
.who { display: flex; align-items: center; gap: 10px 14px; padding-top: 4px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.who::-webkit-scrollbar { display: none; }
.who > span { font-weight: 700; color: var(--mute); font-size: .92rem; white-space: nowrap; }
.chips { display: flex; gap: 8px; }
.chips button { font: 700 .9rem var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px 6px 7px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background .2s, transform .15s; }
.chips button i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.chips button:hover { transform: translateY(-1px); }
.chips button[aria-pressed="true"] { background: var(--gold); color: var(--btn); border-color: transparent; }
.stage { position: relative; height: min(56.25vw, calc(100vh - 128px)); height: min(56.25vw, calc(100svh - 128px)); min-height: 300px; background: #160a33; overflow: hidden; }
.stage canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.ctrl { position: absolute; right: 14px; bottom: 16px; display: flex; gap: 8px; }
.ctrl button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(10, 6, 24, .55); color: #fff; font: 700 1rem var(--sans); cursor: pointer; backdrop-filter: blur(6px); }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; width: 96px; height: 96px; margin-left: -48px; padding: 14px; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle, rgba(10, 6, 24, .7) 30%, rgba(10, 6, 24, 0) 70%); transform-origin: 50% 100%; transition: transform .9s cubic-bezier(.3, 1.7, .5, 1);
  filter: drop-shadow(0 0 10px rgba(255, 196, 40, .75)) drop-shadow(0 3px 2px rgba(0, 0, 0, .55)); }
.scroll-hint svg { width: 100%; height: 100%; display: block; overflow: visible; animation: hint-bob 1.3s ease-in-out infinite; }
.sh-chev { transform-box: fill-box; transform-origin: center; transition: transform .6s cubic-bezier(.3, 1.5, .5, 1); }
.sh-chev path { fill: none; stroke: #ffd23f; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; animation: hint-blink 1.3s ease-in-out infinite; }
.sh-chev path + path { animation-delay: .22s; }
@keyframes hint-bob { 0%, 100% { transform: translateY(-6%); } 50% { transform: translateY(8%); } }
@keyframes hint-blink { 0%, 100% { opacity: .35; } 40% { opacity: 1; } }
/* easter egg (vasar/egg.js): a nyíl arcot kap, és egy kesztyűs kéz legörget */
.sh-face { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.8, .5, 1); }
.sh-eye ellipse { fill: #fff; stroke: #1b1230; stroke-width: 3.5; }
.sh-pupil { fill: #1b1230; transition: transform .4s; }
.sh-smile { fill: none; stroke: #1b1230; stroke-width: 5; stroke-linecap: round; }
.sh-open { fill: #5a1028; stroke: #1b1230; stroke-width: 3.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.scroll-hint.egg { pointer-events: none; z-index: 50; background: none; }
.scroll-hint.egg svg, .scroll-hint.egg .sh-chev path { animation: none; opacity: 1; }
.scroll-hint.turn .sh-chev { transform: rotate(-90deg); }
.scroll-hint.face .sh-face { transform: scale(1); }
.scroll-hint.look .sh-pupil { transform: translate(-2px, 3px); }
.scroll-hint.talk .sh-smile { opacity: 0; }
.scroll-hint.talk .sh-open { opacity: 1; animation: egg-talk .15s ease-in-out infinite alternate; }
@keyframes egg-talk { from { transform: scaleY(.35); } to { transform: scaleY(1.1); } }
.scroll-hint.bye { transition: transform .45s ease-in, opacity .45s !important; transform: scale(0) rotate(30deg) !important; opacity: 0; }
.egg-say { position: absolute; bottom: 88%; right: 52%; width: max-content; max-width: min(64vw, 420px); background: #fff; color: #1b1230; border: 3px solid #1b1230;
  border-radius: 18px; padding: .45em .75em; font: 800 clamp(17px, 2.3vw, 28px)/1.2 var(--sans); box-shadow: 0 6px 0 rgba(0, 0, 0, .25); filter: none; }
.egg-say::after { content: ""; position: absolute; right: 16px; bottom: -13px; width: 20px; height: 20px; background: #fff; border: solid #1b1230; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.egg-hand { position: fixed; left: 0; top: 0; z-index: 51; pointer-events: none; will-change: transform; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .35)); }
.egg-hand svg { width: 100%; height: 100%; overflow: visible; display: block; }
.egg-hand rect, .egg-hand ellipse { fill: #fff; stroke: #1b1230; stroke-width: 4; }
.egg-hand .eh-line { fill: none; stroke: #c9c3d6; stroke-width: 3; stroke-linecap: round; }
.eh-f rect { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .18s; }
.egg-hand.grab .eh-f rect { transform: scaleY(.42); }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .15); }
.prog i { display: block; height: 100%; width: 0; background: var(--gold); }
.steps li { transition: border-color .3s, background .3s, transform .3s; }
.film-on ~ .steps li.on { border-color: var(--gold); background: var(--glow); transform: translateY(-3px); }
@media (max-width: 820px) {
  .stage { height: min(130vw, calc(100svh - 120px)); }
  .film-on ~ .steps ol { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .film-on ~ .steps li { padding: 12px; }
  .film-on ~ .steps li p { display: none; }
  .film-on ~ .steps h2 { font-size: 1rem; }
  .film-on ~ .steps .i { width: 28px; height: 28px; margin-bottom: 6px; }
}

.shot img.port { max-height: 520px; width: auto; margin: 0 auto; display: block; }
[hidden] { display: none !important; }

/* jegyek: az alap és a választható fajták (#opts, az app.js tölti) */
.price-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 22px; align-items: start; }
.base { background: var(--night2); border: 2px solid var(--gold); border-radius: 20px; padding: 26px 24px; }
.tk { display: flex; flex-direction: column; margin-bottom: 14px; }
.tk b { font: 800 2.6rem/1 var(--serif); color: var(--gold); }
.tk > span { color: var(--mute); font-size: .95rem; margin-top: 6px; }
.base ul { list-style: none; margin: 0; padding: 0; }
.base li { padding: 7px 0 7px 24px; position: relative; color: var(--ink2); font-size: .97rem; border-top: 1px solid var(--line); }
.base li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.base .btn { margin-top: 18px; }
.opts { display: grid; gap: 12px; }
.opt { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.opt-h { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.opt h3 { font: 700 1.12rem var(--sans); }
.opt .cost { text-align: right; white-space: nowrap; }
.opt .cost b { display: block; font: 800 1.15rem var(--sans); color: var(--gold); }
.opt .cost small { color: var(--mute); font-size: .8rem; }
.opt p { margin: 0 0 8px; color: var(--mute); font-size: .95rem; line-height: 1.5; }
.opt ul { list-style: none; margin: 0 0 10px; padding: 0; }
.opt li { padding: 3px 0 3px 22px; position: relative; color: var(--ink2); font-size: .93rem; }
.opt li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
/* a lap alján még egyszer a két út */
.again-duo { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .22)); }
.again-duo h2 { margin-bottom: 18px; }
.duo.small { margin-top: 0; }
.door-mini { display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; border-radius: 20px; text-decoration: none; border: 2px solid var(--line); transition: transform .15s, border-color .15s; }
.door-mini:hover { transform: translateY(-2px); }
.door-mini.vote { border-color: rgba(63, 193, 208, .6); background: rgba(63, 193, 208, .1); }
.door-mini.tell { border-color: var(--gold); background: rgba(245, 196, 81, .1); }
.door-mini b { font: 700 1.3rem var(--serif); }
.door-mini b::after { content: " →"; color: var(--gold); }
.door-mini span { color: var(--mute); }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } }

/* app 0.1.0: fiók a fejlécben, élő kör, lábléc */
.land-nav { display: flex; align-items: center; gap: 4px 16px; font-weight: 700; font-size: .95rem; }
.land-nav > a:not(.btn), #me-slot a { text-decoration: none; color: var(--ink2); }
.land-nav > a:not(.btn):hover, #me-slot a:hover { color: var(--gold); }
#me-slot { display: inline-flex; gap: 16px; align-items: center; }
.gold-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(245, 196, 81, .14); color: var(--gold) !important; font-weight: 800; }
.gold-chip i { width: 22px; height: 14px; border-radius: 3px; background: linear-gradient(135deg, #ffe08a, #f2b740 60%, #e8a22a); transform: rotate(-8deg); }
.land-nav .dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--btn); font-size: .72rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) { .land-nav > a:not(.btn) { display: none; } #me-slot > a:first-child:not(:only-child) { display: none; } .land-nav { gap: 10px; } }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-nav a { color: var(--ink2); }
