/* Négyhatos landing page: the story of the newcomer (October 2026) */
:root {
  --y: #f2c100; --y2: #ffd84a; --amber: #ffb000; --pink: #ff3d7f; --cyan: #3ce4ff; --lime: #b8ff3c; --red: #e0262f;
  --bg: #0c0b16; --bg2: #13111f; --card: #181626; --line: #2a2740;
  --txt: #f4f1ea; --mut: #b4b0c6;
  --disp: 'Saira Condensed', 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Archivo', 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hand: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive;
  --r: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--disp); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(34px, 6.4vw, 64px); text-transform: uppercase; text-wrap: balance; }
h3 { font-size: 26px; }
kbd { display: inline-block; min-width: 1.7em; padding: 1px 6px; margin: 0 1px; border-radius: 6px; border: 1px solid #4a4566; border-bottom-width: 3px; background: #221f33; font: 600 13px/1.5 'Archivo', 'Golos Text', monospace; text-align: center; color: #fff; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--y); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* hints that differ for a mouse and a finger */
.ht { display: none; }
@media (hover: none), (pointer: coarse) { .hm { display: none; } .ht { display: inline; } }

/* ---- glints: a sheen that sweeps across on hover (and now and then by itself) */
.glint { position: relative; overflow: hidden; isolation: isolate; }
.glint::after { content: ''; position: absolute; inset: -20% auto -20% -60%; width: 40%; z-index: 2; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg) translateX(0); opacity: 0; }
.glint:hover::after, .glint:focus-visible::after, .glint.shine::after { animation: glint .9s var(--ease); }
@keyframes glint { 0% { opacity: 0; transform: skewX(-18deg) translateX(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: skewX(-18deg) translateX(480%); } }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; background: var(--y); color: #111; text-decoration: none; font-family: var(--disp); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; transition: transform .18s var(--ease), box-shadow .18s, background .18s; }
.btn:hover { background: var(--y2); transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 1em; height: 1em; fill: currentColor; }
.btn-sm { font-size: 17px; padding: 7px 18px; }
.btn-xl { font-size: clamp(30px, 6vw, 40px); padding: .42em 1.35em .42em 1.1em; box-shadow: 0 0 0 6px rgba(242, 193, 0, .18), 0 14px 50px rgba(242, 193, 0, .35); animation: breathe 3.2s ease-in-out infinite; }
.btn-xl:hover { box-shadow: 0 0 0 10px rgba(242, 193, 0, .22), 0 18px 70px rgba(242, 193, 0, .55); }
@keyframes breathe { 50% { transform: scale(1.035); } }

/* ---- sharing: the header's button and the row at the end (landing.js) */
.sh-top { appearance: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--txt); cursor: pointer; }
.sh-top:hover { background: rgba(255, 255, 255, .16); }
.sh-top svg { width: 19px; height: 19px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
/* ---- the QR to invite: the header's button and the full-screen code (landing.js) */
.qr-top { appearance: none; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px 0 10px; border: 1px solid rgba(242, 193, 0, .45); border-radius: 999px; background: rgba(242, 193, 0, .1); color: var(--y2); font: 700 14px/1.05 var(--body); cursor: pointer; white-space: nowrap; }
.qr-top:hover { background: rgba(242, 193, 0, .2); color: #fff; }
.qr-top svg { width: 19px; height: 19px; flex: none; }
@media (max-width: 560px) { .qr-top { white-space: normal; text-align: left; font-size: 12px; max-width: 92px; padding: 0 9px 0 7px; gap: 5px; } .qr-top svg { width: 17px; height: 17px; } }
.top .btn { flex: none; }
@media (max-width: 380px) { .sh-top { display: none; } }
@media (max-width: 400px) { .top { gap: 6px; } .langs button { padding: 8px 6px; } .top .btn-sm { padding: 7px 12px; font-size: 16px; } .sh-top { width: 34px; height: 34px; flex: none; } .qr-top svg { display: none; } .qr-top { padding: 0 8px; max-width: 80px; } }
.qr-on, .qr-on body { overflow: hidden; }
.qr-ov { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: auto; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: rgba(8, 7, 15, .97); }
.qr-ov[hidden] { display: none; }
.qr-x { position: fixed; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.qr-x:hover, .qr-x:focus-visible { background: rgba(255, 255, 255, .24); }
.qr-card { width: min(100%, 520px); display: grid; justify-items: center; gap: 10px; text-align: center; }
.qr-h { font-size: clamp(28px, 6vw, 44px); text-transform: uppercase; color: var(--y); }
.qr-box { position: relative; width: min(84vw, 64vh, 460px); aspect-ratio: 1; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 6px rgba(242, 193, 0, .25), 0 20px 60px rgba(0, 0, 0, .6); }
.qr-cv { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.qr-wait { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; border: 4px solid #ddd; border-top-color: #111; animation: qrspin .8s linear infinite; display: none; }
.qr-ov.wait .qr-cv { visibility: hidden; } .qr-ov.wait .qr-wait { display: block; }
@keyframes qrspin { to { transform: rotate(360deg); } }
.qr-cap { margin: 4px 0 0; max-width: 440px; color: var(--txt); font-size: 16px; line-height: 1.4; }
.qr-prog { margin: 0; color: var(--y2); font: 700 15px/1.3 var(--body); }
.qr-prog[hidden] { display: none; }
.qr-link { margin: 0; color: var(--mut); font: 600 14px/1.3 ui-monospace, 'SFMono-Regular', Menlo, monospace; word-break: break-all; user-select: all; }
@media (max-height: 560px) { .qr-box { width: min(84vw, 56vh, 460px); } .qr-cap { font-size: 14px; } }
.share { max-width: 760px; margin: 56px auto 0; }
.share h3 { font-size: clamp(26px, 4vw, 34px); text-transform: uppercase; letter-spacing: .04em; }
.end .share p { margin: 8px 0 20px; font-size: 17px; }
.sh-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sh-b { --c: #fff; appearance: none; display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 7px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(12, 11, 22, .6); color: var(--txt); font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), border-color .18s, background .18s; -webkit-tap-highlight-color: transparent; }
.sh-b:hover, .sh-b:focus-visible { transform: translateY(-2px); border-color: var(--c); background: rgba(255, 255, 255, .06); }
.sh-b i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); }
.sh-b svg { width: 17px; height: 17px; }
.sh-b.main { --c: var(--y); background: var(--y); color: #111; border-color: var(--y); padding-right: 20px; } .sh-b.main i { background: #111; color: var(--y); }
.sh-b.ok { border-color: #3cff9a; }
@media (max-width: 520px) { .sh-b { padding-right: 12px; font-size: 14px; } .sh-b span { display: none; } .sh-b.main span, .sh-b.copy span, .sh-b.qr span { display: inline; } .sh-b i { width: 34px; height: 34px; } }

/* ---- header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left)); background: linear-gradient(rgba(12, 11, 22, .95), rgba(12, 11, 22, .8)); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 9px; transition: transform .3s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand span { font: 800 23px/1 var(--disp); text-transform: uppercase; letter-spacing: .03em; }
.langs { display: flex; background: rgba(255, 255, 255, .07); border-radius: 999px; padding: 3px; }
.langs button { appearance: none; border: 0; background: none; color: var(--mut); font: 700 13px/1 var(--body); padding: 8px 10px; border-radius: 999px; cursor: pointer; letter-spacing: .04em; }
.langs button:hover { color: #fff; }
.langs button[aria-pressed="true"] { background: var(--txt); color: #111; }
@media (max-width: 420px) { .brand span { display: none; } }

/* ---- the arrival */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 92px 0 76px; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #1a1622 url(vid/tram.jpg) center / cover no-repeat; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 11, 22, .82) 0%, rgba(12, 11, 22, .45) 20%, rgba(12, 11, 22, .1) 38%, rgba(12, 11, 22, .35) 55%, rgba(12, 11, 22, .92) 86%, var(--bg) 100%), radial-gradient(ellipse at 20% 85%, rgba(12, 11, 22, .75), transparent 60%); }
.hero-in { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; display: grid; gap: 28px; align-items: end; }
@media (min-width: 1000px) { .hero-in { grid-template-columns: 1fr 360px; } }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ea { display: inline-block; padding: 6px 12px; border-radius: 8px; background: var(--pink); color: #fff; font: 800 13px/1.2 var(--disp); letter-spacing: .14em; text-transform: uppercase; }
.led { display: inline-block; padding: 6px 14px; background: #08070c; color: var(--amber); border: 2px solid #2c2a20; border-radius: 8px; font: 700 13px/1.2 var(--disp); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 0 8px rgba(255, 176, 0, .7); }
.hero h1 { font-size: clamp(60px, 16vw, 184px); font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.005em; padding-top: .14em; margin-top: -.14em; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .6)); background: linear-gradient(100deg, #fff 0 40%, #fff6c8 48%, #fff 56%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: h1shine 7s ease-in-out 1.2s 2; }
@keyframes h1shine { 0%, 70% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.kicker { margin: 14px 0 0; color: var(--y); font: 700 clamp(16px, 2.4vw, 21px)/1.3 var(--disp); letter-spacing: .08em; text-transform: uppercase; }
.lead { max-width: 640px; margin: 12px 0 0; font-size: clamp(17px, 2.2vw, 20px); color: #ece9f5; text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.cta-note { margin: 0; color: var(--mut); font-size: 15px; }
.hero-side { display: grid; gap: 14px; justify-items: end; }
.ticket { display: flex; width: 340px; background: #f4ecd8; color: #2b2416; border-radius: 12px; transform: rotate(3deg); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); transition: transform .4s var(--ease); cursor: default; animation: dropIn .9s var(--ease) .3s both; }
.ticket:hover, .ticket:focus-visible { transform: rotate(-1deg) translateY(-6px) scale(1.03); }
@keyframes dropIn { from { opacity: 0; transform: rotate(14deg) translateY(-40px); } }
@media (max-width: 999px) { .hero-side { justify-items: start; } .ticket { display: none; } }
.tk-main { flex: 1; padding: 14px 16px; background: repeating-linear-gradient(90deg, rgba(43, 36, 22, .03) 0 2px, transparent 2px 6px); }
.tk-k { margin: 0; font: 700 11px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #8a6d3a; }
.tk-route { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; font: 900 26px/1 var(--disp); text-transform: uppercase; }
.tk-route svg { width: 34px; height: 12px; fill: none; stroke: #b0361e; stroke-width: 2.4; }
.tk-d { display: flex; gap: 14px; margin: 0; }
.tk-d div { min-width: 0; }
.tk-d dt { font: 700 10px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #8a6d3a; }
.tk-d dd { margin: 2px 0 0; font: 700 14px/1.2 var(--body); }
.tk-stub { width: 64px; border-left: 2px dashed #c9b994; display: grid; place-items: center; background: #f2c100; border-radius: 0 12px 12px 0; }
.tk-stub span { font: 900 30px/1 var(--disp); writing-mode: vertical-rl; transform: rotate(180deg); color: #111; }
.notes { display: grid; gap: 8px; width: min(360px, 100%); }
.note { position: relative; padding: 10px 14px 10px 46px; border-radius: 16px; background: rgba(30, 27, 46, .94); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-size: 15px; opacity: 0; transform: translateY(14px) scale(.96); animation: notif .6s var(--ease) forwards; }
.note::before { content: ''; position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, #3ce4ff, #8a5cff 55%, #ff3d7f); }
.note.n1 { animation-delay: 1.4s; }
.note.n2 { animation-delay: 3.2s; }
.note.me::before { background: linear-gradient(135deg, #f2c100, #ff7a3d); }
@keyframes notif { to { opacity: 1; transform: none; } }
.note b { font-weight: 700; }
.note .nt { float: right; color: var(--mut); font-size: 12px; }
.note p { margin: 2px 0 0; }
.note .nf { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; color: #ff7b7b; font-size: 12px; font-weight: 700; }
.note .nf::before { content: '!'; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #e0262f; color: #fff; font-size: 11px; }
.vbtn { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: 18px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(12, 11, 22, .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.vbtn:hover { background: rgba(12, 11, 22, .8); }
.vbtn svg { width: 18px; height: 18px; fill: currentColor; }
.vbtn .ipl, .vbtn[aria-pressed="true"] .ip { display: none; }
.vbtn[aria-pressed="true"] .ipl { display: block; }
.scroll { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; color: var(--mut); text-decoration: none; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.scroll:hover { color: #fff; }
.scroll svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
@media (max-height: 640px), (max-width: 999px) { .scroll { display: none; } }
/* ---- the first screen (October 2026): what the game is, a reel of it and Play, all without scrolling on any phone;
   the story (the ticket, the messages) comes right under it (.arrive). The topic pages keep the plain .hero above. */
.hf { align-items: center; padding: 72px 0 14px; }
.hf .hero-media { background: #1a1622 url(vid/reel.jpg) center / cover no-repeat; filter: blur(22px) saturate(1.3); transform: scale(1.15); }
.hf .hero-media::after { background: linear-gradient(180deg, rgba(12, 11, 22, .8), rgba(12, 11, 22, .62) 50%, rgba(12, 11, 22, .9) 88%, var(--bg)); }
.hf-in { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; display: grid; gap: 14px; justify-items: center; text-align: center; grid-template-areas: "txt" "vid" "cta" "more"; }
.hf-txt { grid-area: txt; }
.hf .hero-badges { justify-content: center; margin: 0 0 8px; }
.hf h1 { font-size: clamp(42px, 12vw, 112px); }
.hf-line { max-width: 32em; margin: 8px auto 0; font-size: clamp(16px, 1.7vw, 22px); line-height: 1.38; color: #f1eef8; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); text-wrap: balance; }
.hf-vid { grid-area: vid; position: relative; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000 url(vid/reel.jpg) center / cover; box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .14); }
.hf-vid video { width: 100%; height: 100%; object-fit: cover; }
.hf .vbtn { right: 8px; bottom: 8px; width: 34px; height: 34px; }
.hf-cta { grid-area: cta; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hf .btn-xl { font-size: clamp(30px, 4vw, 40px); }
.hf .cta-note { font-size: 14px; margin-top: 6px; }          /* (the owner, 26.10: a little more room under PLAY) */
.hf-more { grid-area: more; display: inline-flex; flex-direction: column; align-items: center; color: var(--mut); text-decoration: none; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.hf-more:hover { color: #fff; }
.hf-more svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; animation: bob 1.8s ease-in-out infinite; }
@media (min-width: 900px), (orientation: landscape) and (min-width: 560px) {
  .hf-in { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "txt vid" "cta vid" "more more"; justify-items: start; align-items: center; text-align: left; column-gap: clamp(24px, 4vw, 56px); row-gap: 20px; }
  .hf-txt { align-self: end; }
  .hf-cta { align-self: start; align-items: flex-start; }
  .hf .hero-badges { justify-content: flex-start; }
  .hf-line { margin-left: 0; }
  .hf-vid { max-width: none; }
  .hf-more { justify-self: center; }
}
@media (max-height: 620px) { .hf .hero-badges { display: none; } }
@media (max-height: 480px) { .hf { padding-top: 62px; } .hf h1 { font-size: 38px; } .hf-line { font-size: 15px; } .hf .btn-xl { font-size: 26px; } .hf-more { display: none; } }
/* the arrival: the ticket and the messages that don't get through, under the first screen */
.arrive { padding: 72px 0 64px; }
.ar-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .ar-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.ar-lead { font-size: clamp(17px, 2vw, 20px); color: #ece9f5; }
.ar-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--y); font: 700 16px/1.2 var(--disp); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.ar-go:hover { color: var(--y2); }
.ar-go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; animation: bob 1.8s ease-in-out infinite; }
.ar-side { display: grid; gap: 14px; justify-items: center; }
.ar-side .ticket { display: flex; width: min(340px, 100%); }
.js .ar-side .ticket { animation: none; }
.js .ar-side.in .ticket { animation: dropIn .9s var(--ease) .25s both; }
.js .ar-side .note { animation: none; }
.js .ar-side.in .note { animation: notif .6s var(--ease) forwards; }
.js .ar-side.in .note.n1 { animation-delay: .9s; }
.js .ar-side.in .note.n2 { animation-delay: 2.4s; }

/* ---- the 4-6 crossing */
.tram-band { position: relative; padding: 46px 0 34px; overflow: hidden; background: linear-gradient(180deg, var(--bg), #12101f 40%, var(--bg)); }
.tb-sign { display: flex; align-items: baseline; gap: 10px; width: max-content; max-width: calc(100% - 40px); margin: 0 auto 26px; padding: 8px 18px; background: #070609; border: 2px solid #26231a; border-radius: 10px; font: 700 clamp(15px, 2.6vw, 22px)/1.2 var(--disp); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); text-shadow: 0 0 10px rgba(255, 176, 0, .75); box-shadow: inset 0 0 18px rgba(0, 0, 0, .8); }
.tb-k { opacity: .7; }
.tb-stop { font-weight: 800; white-space: nowrap; }
.tb-stop.flip { animation: flip .5s var(--ease); }
@keyframes flip { 0% { opacity: 0; transform: translateY(-60%); } 100% { opacity: 1; transform: none; } }
.tb-rail { position: relative; height: 210px; }
.tb-wire { position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: #3a3654; box-shadow: 0 8px 0 -1px #24213a; }
.tb-track { position: absolute; left: 0; right: 0; bottom: 18px; height: 16px; background: repeating-linear-gradient(90deg, #2e2a40 0 8px, transparent 8px 34px) 0 6px / 100% 10px no-repeat, linear-gradient(#5d5878, #5d5878) 0 2px / 100% 3px no-repeat, linear-gradient(#5d5878, #5d5878) 0 11px / 100% 3px no-repeat; }
.tb-stops { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.tb-stops li { position: absolute; bottom: 0; left: calc(var(--at) * 100%); transform: translateX(-50%); font: 700 13px/1 var(--disp); letter-spacing: .08em; text-transform: uppercase; color: #6f6a8a; white-space: nowrap; transition: color .3s; }
.tb-stops li::before { content: ''; position: absolute; left: 50%; bottom: 20px; width: 3px; height: 150px; transform: translateX(-50%); background: linear-gradient(transparent, #2f2b45); }
.tb-stops li::after { content: ''; position: absolute; left: 50%; bottom: 168px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #2f2b45; border: 3px solid #4a4566; transition: background .3s, box-shadow .3s; }
.tb-stops li.on { color: var(--y); }
.tb-stops li.on::after { background: var(--y); border-color: #fff3b0; box-shadow: 0 0 16px var(--y); }
@media (max-width: 700px) { .tb-stops li { font-size: 0; } .tb-rail { height: 170px; } .tb-stops li::before { height: 110px; } .tb-stops li::after { bottom: 128px; } }
.tram { position: absolute; left: 0; bottom: 26px; width: min(980px, 150vw); padding: 0; border: 0; background: none; cursor: pointer; transform: translateX(var(--tx, -100%)); will-change: transform; -webkit-tap-highlight-color: transparent; }
.tram svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .6)); }
.tram:focus-visible { outline-offset: 6px; border-radius: 20px; }
.tram .t-wheels > g > * { transform-box: fill-box; transform-origin: center; }
.tram .t-wheels > g { transform-box: fill-box; }
.tram .t-led { font: 900 12px/1 var(--disp); fill: var(--amber); letter-spacing: .1em; }
.tram .t-lamp { fill: #fff6c8; filter: drop-shadow(0 0 6px #fff3a0); }
.tram .t-win rect { transition: fill .3s; }
.tram:hover .t-shine, .tram.ring .t-shine { animation: tshine 1s var(--ease); }
@keyframes tshine { from { transform: skewX(-20deg) translateX(0); } to { transform: skewX(-20deg) translateX(1400px); } }
.tram.ring svg { animation: ringShake .45s ease-in-out; }
@keyframes ringShake { 25% { transform: translateY(-2px) rotate(-.3deg); } 75% { transform: translateY(1px) rotate(.25deg); } }
.tram .spark { position: absolute; left: 47%; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #bfe9ff; box-shadow: 0 0 12px 4px #7fd4ff, 0 0 30px 8px rgba(80, 180, 255, .5); opacity: 0; }
.tram.go .spark { animation: spark 2.6s steps(1) infinite; }
@keyframes spark { 0%, 100% { opacity: 0; } 8% { opacity: 1; } 10% { opacity: 0; } 54% { opacity: .8; } 56% { opacity: 0; } }
.tb-hint { margin: 10px 0 0; text-align: center; color: #7f7a99; font-size: 14px; }

/* ---- sections */
.sec { position: relative; padding: 96px 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.sec-p { max-width: 640px; margin: 14px 0 0; color: var(--mut); font-size: 18px; }
.eyebrow { margin: 0 0 10px; font: 700 15px/1.2 var(--disp); text-transform: uppercase; letter-spacing: .16em; color: var(--y); }
.b-hint { margin: 18px 0 0; text-align: center; color: #7f7a99; font-size: 14px; }
/* things that come in as you scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- chapter 1: the hostel */
.story { background: radial-gradient(ellipse at 80% 30%, rgba(242, 193, 0, .08), transparent 60%); }
.st-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .st-grid { grid-template-columns: 1fr 1.05fr; } }
.st-txt h2, .ph-txt h2 { font-size: clamp(34px, 4.6vw, 54px); }
.st-items { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.st-items li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.st-items li:hover { transform: translateX(8px); border-color: rgba(242, 193, 0, .55); background: #1f1c30; }
.st-items .ico { font-size: 22px; transition: transform .3s var(--ease); }
.st-items li:hover .ico { transform: scale(1.25) rotate(-10deg); }
.st-media { position: relative; margin: 0; }
.frame { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
.frame video, .b-vid video { width: 100%; height: 100%; object-fit: cover; }
.vtag { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #ddd; transition: opacity .3s; display: inline-flex; gap: 6px; align-items: center; }
.vtag::before { content: ''; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.vplay.playing .vtag { opacity: 0; }
.handnote { position: absolute; right: -10px; bottom: -34px; max-width: 280px; padding: 14px 16px 16px; background: #fdf6d8; color: #2a2318; font: 700 22px/1.12 var(--hand); transform: rotate(-4deg); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); transition: transform .35s var(--ease); }
.handnote::before { content: ''; position: absolute; left: 50%; top: -10px; width: 70px; height: 22px; margin-left: -35px; background: rgba(255, 255, 255, .45); transform: rotate(3deg); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.st-media:hover .handnote { transform: rotate(2deg) translateY(-6px); }
@media (max-width: 600px) { .handnote { position: relative; right: auto; bottom: auto; margin: -24px 0 0 auto; font-size: 20px; } }
/* a card that tilts towards the pointer, with a light that follows it */
.tilt { --rx: 0deg; --ry: 0deg; --px: 50%; --py: 50%; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); transform-style: preserve-3d; }
.tilt.tilting { transition: transform .08s linear; }

/* ---- the bosses */
.bosses { background: linear-gradient(180deg, transparent, rgba(255, 61, 127, .05) 50%, transparent); }
.boss-row { display: grid; gap: 22px; margin-top: 40px; align-items: stretch; }
@media (min-width: 900px) { .boss-row { grid-template-columns: 1fr auto 1fr; } }
.vs { align-self: center; justify-self: center; font: 900 54px/1 var(--disp); color: transparent; -webkit-text-stroke: 2px var(--y); text-shadow: 0 0 30px rgba(242, 193, 0, .4); animation: vsPulse 2.4s ease-in-out infinite; }
@keyframes vsPulse { 50% { transform: scale(1.12) rotate(-4deg); } }
.boss { position: relative; border-radius: 22px; padding: 14px; background: linear-gradient(160deg, #221d36, #15121f); border: 1px solid var(--line); overflow: hidden; outline: none; }
.boss::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3; background: radial-gradient(circle at var(--px) var(--py), rgba(255, 255, 255, .16), transparent 45%); opacity: 0; transition: opacity .3s; }
.boss:hover::before, .boss.open::before { opacity: 1; }
.boss:focus-visible { box-shadow: 0 0 0 3px var(--y); }
.boss.reka { --acc: #ff3d7f; }
.boss.kulcs { --acc: #3ce4ff; }
.boss::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--acc), 0 0 40px -10px var(--acc); opacity: .35; transition: opacity .3s; }
.boss:hover::after, .boss.open::after { opacity: 1; }
.b-face { display: grid; gap: 14px; }
.b-vid { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.b-vid::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(21, 18, 31, .9)); }
.b-id { padding: 0 8px; }
.b-plate { display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 4px; background: linear-gradient(135deg, #e8c66a, #a87d22 60%, #e8c66a); color: #2b1d02; font: 800 12px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.b-plate-k { border: 3px solid transparent; background: linear-gradient(#141218, #141218) padding-box, repeating-linear-gradient(-45deg, #f2c100 0 7px, #141218 7px 14px) border-box; color: #f2c100; box-shadow: none; }
.boss h3 { font-size: clamp(30px, 4vw, 40px); text-transform: uppercase; }
.b-role { margin: 6px 0 0; color: var(--mut); font-size: 16px; }
.boss blockquote { margin: 12px 0 0; padding-left: 14px; border-left: 3px solid var(--acc); font: 700 24px/1.15 var(--hand); color: #fff; }
.b-jobs { list-style: none; margin: 16px 0 4px; padding: 0 8px; display: grid; gap: 6px; counter-reset: j; }
.b-jobs li { counter-increment: j; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); font-size: 15px; transition: transform .35s var(--ease), opacity .35s, background .2s; }
.b-jobs li::after { content: '#' counter(j); margin-left: auto; font: 800 13px/1 var(--disp); color: var(--acc); opacity: .8; }
.b-jobs li:hover { background: rgba(255, 255, 255, .09); }
.b-jobs .ji { font-size: 18px; }
@media (hover: hover) and (pointer: fine) {
  .js .b-jobs li { opacity: .35; transform: translateX(-8px); }
  .js .boss:hover .b-jobs li, .js .boss:focus-within .b-jobs li { opacity: 1; transform: none; }
  .boss:hover .b-jobs li:nth-child(2) { transition-delay: .04s; } .boss:hover .b-jobs li:nth-child(3) { transition-delay: .08s; } .boss:hover .b-jobs li:nth-child(4) { transition-delay: .12s; } .boss:hover .b-jobs li:nth-child(5) { transition-delay: .16s; }
}
@media (hover: none), (pointer: coarse) {
  .js .b-jobs { display: grid; max-height: 0; overflow: hidden; margin: 0; transition: max-height .5s var(--ease), margin .5s; }
  .js .boss.open .b-jobs { max-height: 420px; margin: 16px 0 4px; }
  .b-face { position: relative; }
  .b-face::after { content: '＋'; position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--acc); color: #111; font-weight: 900; z-index: 4; transition: transform .3s; }
  .boss.open .b-face::after { transform: rotate(45deg); }
}

/* ---- the clue board */
.clues { background: linear-gradient(180deg, transparent, rgba(224, 38, 47, .05) 40%, transparent); }
.board { position: relative; margin-top: 40px; border-radius: 18px; padding: 26px; min-height: 620px; background-color: #6b4a2b; background-image: radial-gradient(rgba(0, 0, 0, .18) 1px, transparent 1.5px), radial-gradient(rgba(255, 220, 170, .12) 1px, transparent 1.5px), linear-gradient(135deg, #7a5532, #5d3f24); background-size: 7px 7px, 11px 11px, 100% 100%; background-position: 0 0, 3px 5px, 0 0; box-shadow: inset 0 0 0 12px #3b2614, inset 0 0 0 14px #2a1a0c, inset 0 0 80px rgba(0, 0, 0, .55), 0 30px 70px rgba(0, 0, 0, .5); }
.strings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.strings path { fill: none; stroke: #d11b26; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .55)); stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.4s var(--ease), stroke .3s, stroke-width .3s; }
.board.in .strings path { stroke-dashoffset: 0; }
.strings path.hot { stroke: #ff4d55; stroke-width: 3.6; filter: drop-shadow(0 0 6px rgba(255, 60, 70, .9)); }
.poster, .clue { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); z-index: 3; }
.poster { width: 230px; padding: 14px 14px 16px; background: #f1ead6; color: #1b1712; text-align: center; box-shadow: 0 18px 30px rgba(0, 0, 0, .45); --x: 50%; --y: 44%; --rot: -1.5deg; }
.poster::before { content: ''; position: absolute; left: 50%; top: 8px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a8a, #b5121b 60%); box-shadow: 0 3px 4px rgba(0, 0, 0, .5); }
.p-h { margin: 14px 0 6px; font: 900 40px/1 var(--disp); letter-spacing: .14em; text-transform: uppercase; color: #b5121b; }
.p-face { margin: 0 auto; width: 120px; height: 140px; display: grid; place-items: center; background: linear-gradient(#cfc6ad, #b9ae92); border: 3px solid #1b1712; }
.p-face span { font: 900 86px/1 var(--disp); color: #1b1712; opacity: .75; }
.p-name { margin: 10px 0 2px; font: 800 20px/1.1 var(--disp); text-transform: uppercase; }
.p-d { margin: 0; font-size: 13px; line-height: 1.3; }
.clue { width: 210px; padding: 18px 16px 16px; border: 0; text-align: left; cursor: pointer; background: #fdf6d8; color: #2a2318; font: 700 22px/1.12 var(--hand); box-shadow: 0 10px 18px rgba(0, 0, 0, .4); transition: transform .35s var(--ease), box-shadow .35s; -webkit-tap-highlight-color: transparent; }
.clue:hover, .clue:focus-visible, .clue.up { transform: translate(-50%, -50%) rotate(0deg) scale(1.1); box-shadow: 0 26px 40px rgba(0, 0, 0, .55); z-index: 6; }
.pin { position: absolute; left: 50%; top: 6px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a8a, #b5121b 60%); box-shadow: 0 3px 4px rgba(0, 0, 0, .5); z-index: 2; }
.c-t { display: block; }
.c-blue { background: #dcefff; }
.c-pink { background: #ffd9e4; }
.c-ledger { background: #f3f1e6 repeating-linear-gradient(transparent 0 23px, #a9c6e8 23px 24px); font-size: 20px; }
.c-ledger em { display: block; margin-top: 4px; font: 400 15px/1.3 'Courier New', monospace; color: #6a1010; font-style: normal; }
.c-ticket { width: 190px; background: #111; color: #fff; font: 700 15px/1.25 var(--body); border: 2px dashed #f2c100; }
.c-ticket b { display: block; font: 900 26px/1 var(--disp); color: #f2c100; letter-spacing: .06em; font-style: italic; margin-bottom: 4px; }
.c-boat { width: 200px; background: linear-gradient(135deg, #1b2a6b, #4a1d6b); color: #fff; font: 700 14px/1.25 var(--body); }
.c-boat b { display: block; font: 900 30px/1 var(--disp); letter-spacing: .2em; color: #ffd84a; }
.c-boat small { display: block; margin: 2px 0 8px; opacity: .85; text-transform: uppercase; letter-spacing: .03em; font-size: 10.5px; }
.c-hand { display: block; padding: 8px 10px; margin: 0 -6px -6px; background: #fdf6d8; color: #2a2318; font: 700 19px/1.1 var(--hand); transform: rotate(-2deg); }
@media (max-width: 760px) {
  .board { min-height: 0; padding: 20px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .poster, .clue { position: relative; left: auto; top: auto; transform: rotate(var(--rot, 0deg)); width: auto; }
  .clue:hover, .clue:focus-visible, .clue.up { transform: rotate(0deg) scale(1.06); }
  .poster { grid-column: 1 / -1; justify-self: center; width: 210px; }
  .clue { font-size: 19px; padding: 18px 12px 12px; }
  .c-ledger { font-size: 18px; }
}

/* ---- the map */
.mapsec { position: relative; height: 330vh; background: linear-gradient(180deg, var(--bg), #0a0914 10%, #0a0914 90%, var(--bg)); }
.map-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; gap: 22px; max-width: 1240px; margin: 0 auto; padding: 76px 20px 24px; }
@media (min-width: 900px) { .map-stick { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.map-wrap { display: grid; place-items: center; min-height: 0; height: 100%; }
.map { position: relative; aspect-ratio: 1; width: min(100%, calc(100svh - 120px)); border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .6); background: #0d0c1a; }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.zone { fill: url(#tape); stroke: rgba(242, 193, 0, .25); stroke-width: 5; stroke-dasharray: 18 14; transition: fill .8s, stroke .6s, fill-opacity .8s; cursor: pointer; }
.zone.open { fill: var(--zc); fill-opacity: .16; stroke: var(--zc); stroke-width: 7; stroke-dasharray: none; }
.zone.open:hover, .zone.hot { fill-opacity: .32; }
.zone[data-z="1"] { --zc: #f2c100; } .zone[data-z="3"] { --zc: #ff7a3d; } .zone[data-z="2"] { --zc: #ff3d7f; }
.zone[data-z="4"] { --zc: #3cff9a; } .zone[data-z="6"] { --zc: #b06cff; } .zone[data-z="5"] { --zc: #3ce4ff; }
.zone.pop { animation: zpop 1s var(--ease); }
@keyframes zpop { 0% { fill-opacity: .7; } 100% { fill-opacity: .16; } }
.route46 { fill: none; stroke: #f2c100; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 26; opacity: .85; pointer-events: none; animation: march 2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -56; } }
.mpin { pointer-events: none; }
.mpin circle { fill: #fff; stroke: #0c0b16; stroke-width: 8; }
.mpin.hostel circle { fill: var(--y); }
.mpin text { font: 800 64px/1 var(--disp); fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(10, 9, 20, .85); stroke-width: 14px; letter-spacing: .02em; }
.zlabels text { font: 900 150px/1 var(--disp); fill: rgba(255, 255, 255, .14); text-anchor: middle; pointer-events: none; transition: fill .6s; }
.zlabels text.open { fill: rgba(255, 255, 255, .85); paint-order: stroke; stroke: rgba(10, 9, 20, .6); stroke-width: 12px; }
.map-tip { position: absolute; z-index: 4; max-width: min(240px, calc(100% - 12px)); box-sizing: border-box; padding: 8px 12px; border-radius: 10px; background: rgba(12, 11, 22, .92); border: 1px solid rgba(255, 255, 255, .15); font-size: 14px; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); }
.map-tip b { display: block; font: 800 17px/1.1 var(--disp); text-transform: uppercase; }
.map-txt { min-width: 0; }
.chapters { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.chapters button { width: 100%; display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1px solid transparent; background: none; text-align: left; cursor: pointer; opacity: .42; transition: opacity .4s, background .4s, border-color .4s, transform .4s var(--ease); }
.chapters li.open button { opacity: .8; }
.chapters li.cur button { opacity: 1; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); transform: translateX(6px); }
.chapters button:hover { opacity: 1; }
.chapters b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #4a4566; font: 900 17px/1 var(--disp); }
.chapters li.open b { background: var(--zc, var(--y)); border-color: var(--zc, var(--y)); color: #111; }
.chapters li[data-z="1"] { --zc: #f2c100; } .chapters li[data-z="3"] { --zc: #ff7a3d; } .chapters li[data-z="2"] { --zc: #ff3d7f; }
.chapters li[data-z="4"] { --zc: #3cff9a; } .chapters li[data-z="6"] { --zc: #b06cff; } .chapters li[data-z="5"] { --zc: #3ce4ff; }
.chapters strong { display: block; font: 800 19px/1.1 var(--disp); text-transform: uppercase; letter-spacing: .02em; }
.chapters small { display: block; color: var(--mut); font-size: 14px; line-height: 1.3; }
.map-free { margin: 14px 0 0; color: var(--mut); font-size: 15px; }
@media (max-width: 899px) {
  .mapsec { height: 300vh; }
  .map-stick { grid-template-rows: auto auto; align-content: center; align-items: start; padding-top: 64px; gap: 14px; }
  .map { width: min(100%, 52svh); }
  .map-txt h2 { font-size: 30px; }
  .map-txt .eyebrow, .map-txt .sec-p, .map-free { display: none; }
  .chapters { margin-top: 8px; gap: 2px; }
  .chapters li { display: none; }
  .chapters li.cur { display: block; }
  .chapters button { padding: 6px 4px; transform: none !important; background: none !important; border-color: transparent !important; }
  .chapters small { font-size: 15px; }
  .mpin text { font-size: 80px; }
}

/* ---- the phone */
.phone-sec { overflow: hidden; }
.ph-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .ph-grid { grid-template-columns: 1fr 420px; } }
.ph-tabs { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.ph-tabs button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 700; transition: background .2s, border-color .2s, transform .2s; }
.ph-tabs button:hover { transform: translateY(-2px); border-color: #5a5480; }
.ph-tabs button[aria-selected="true"] { background: var(--txt); color: #111; border-color: var(--txt); }
.ai-note { margin: 22px 0 0; max-width: 560px; padding: 12px 16px; border-radius: 12px; background: rgba(60, 228, 255, .07); border: 1px solid rgba(60, 228, 255, .22); color: #cfeef5; font-size: 14px; }
.phone-box { display: grid; place-items: center; perspective: 1200px; }
.phone { position: relative; width: 300px; height: 600px; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #2c2a38, #0f0e15); box-shadow: inset 0 0 0 2px #45425a, 0 40px 80px rgba(0, 0, 0, .6), 0 0 80px -20px rgba(255, 61, 127, .35); transform: rotateY(-14deg) rotateX(4deg) rotateZ(2deg); transition: transform .7s var(--ease); }
.phone:hover { transform: rotateY(-4deg) rotateX(2deg) rotateZ(0); }
.phone::before { content: ''; position: absolute; left: 50%; top: 20px; width: 90px; height: 24px; margin-left: -45px; border-radius: 14px; background: #000; z-index: 3; }
.ph-scr { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #f3f2f8; color: #16141f; display: flex; flex-direction: column; }
.ph-scr::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .18), transparent 35%); }
.ph-bar { display: flex; justify-content: space-between; padding: 14px 26px 4px; font: 700 12px/1 var(--body); }
.ph-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid #e2e0ea; background: #fff; }
.ph-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font: 800 17px/1 var(--disp); background: linear-gradient(135deg, #ff3d7f, #8a5cff); flex: none; }
.ph-av.k { background: linear-gradient(135deg, #3ce4ff, #1a5cff); }
.ph-av.l { background: linear-gradient(135deg, #ff7a3d, #ff3d7f); }
.ph-head b { display: block; font-size: 15px; }
.ph-head small { display: block; color: #78758a; font-size: 12px; }
.ph-chat { flex: 1; background: radial-gradient(circle at 20% 30%, rgba(138, 92, 255, .08), transparent 40%), radial-gradient(circle at 80% 70%, rgba(255, 61, 127, .07), transparent 40%); padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; overflow: hidden; }
.bub { max-width: 82%; padding: 8px 12px; border-radius: 18px 18px 18px 6px; background: #e4e2ec; font-size: 14.5px; line-height: 1.32; align-self: flex-start; animation: bub .35s var(--ease); }
.bub.me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, #8a5cff, #ff3d7f); color: #fff; }
.bub.lili.me { background: linear-gradient(135deg, #ff7a3d, #ff3d7f); }
.bub.typing { color: #78758a; font-style: italic; display: inline-flex; gap: 4px; align-items: center; }
.bub.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9a97ad; animation: dot 1s infinite; }
.bub.typing i:nth-child(2) { animation-delay: .15s; } .bub.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .5; } }
@keyframes bub { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.ph-in { display: flex; align-items: center; justify-content: space-between; margin: 6px 12px 22px; padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid #e2e0ea; color: #9a97ad; font-size: 14px; }
.ph-in i { font-style: normal; color: #8a5cff; }

/* ---- after dark */
.night { position: relative; }
.nt-stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; background: #05040a; --mx: 70%; --my: 45%; --lr: 240px; touch-action: pan-y; }
.nt-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.nt-v.on { opacity: 1; }
.nt-dark { position: absolute; inset: 0; background: radial-gradient(circle var(--lr) at var(--mx) var(--my), rgba(5, 4, 10, 0) 0, rgba(5, 4, 10, .25) 45%, rgba(5, 4, 10, .93) 100%); pointer-events: none; }
.nt-dark::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 4, 10, .7), transparent 30%, transparent 55%, rgba(5, 4, 10, .95)); }
.nt-in { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 120px 20px 80px; pointer-events: none; }
.nt-in > * { pointer-events: auto; }
.nt-in .sec-p { color: #d6d2e6; text-shadow: 0 2px 12px #000; }
.night h2 { color: #fff; text-shadow: 0 0 24px rgba(255, 61, 127, .55), 0 0 2px #fff; }
.signs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.neon { --c: var(--pink); padding: 10px 22px; border-radius: 14px; border: 2px solid var(--c); background: rgba(5, 4, 10, .55); color: #fff; cursor: pointer; font: 800 clamp(20px, 3vw, 28px)/1 var(--disp); letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 0 6px var(--c), 0 0 18px var(--c); box-shadow: 0 0 10px var(--c), inset 0 0 10px var(--c); opacity: .55; transition: opacity .3s, transform .3s var(--ease), box-shadow .3s; }
.neon.n-cyan { --c: var(--cyan); } .neon.n-lime { --c: var(--lime); }
.neon:hover, .neon[aria-pressed="true"] { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 18px var(--c), 0 0 50px var(--c), inset 0 0 14px var(--c); }
.night.in .neon { animation: neonOn 1.6s steps(1) both; }
.night.in .neon:nth-child(2) { animation-delay: .35s; } .night.in .neon:nth-child(3) { animation-delay: .7s; }
@keyframes neonOn { 0% { opacity: .1; } 10% { opacity: .9; } 14% { opacity: .15; } 22% { opacity: .9; } 26% { opacity: .3; } 40% { opacity: 1; } 100% { opacity: auto; } }
.neon[aria-pressed="true"] { animation: flicker 6s infinite 2s; }
@keyframes flicker { 0%, 96%, 100% { opacity: 1; } 97% { opacity: .5; } 98% { opacity: 1; } 99% { opacity: .7; } }
.nt-hint { margin: 16px 0 0; color: #9d98b6; font-size: 14px; text-shadow: 0 1px 6px #000; }

/* ---- the Polaroid wall */
.pola { background: radial-gradient(ellipse at 30% 40%, rgba(255, 122, 61, .07), transparent 60%); }
.wall { position: relative; margin-top: 40px; height: 720px; border-radius: 18px; background: #1a1724 radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 16px 16px; box-shadow: inset 0 0 0 1px var(--line); touch-action: pan-y; }
.pol { position: absolute; margin: 0; width: 250px; padding: 12px 12px 0; background: #fbfaf5; color: #2a2522; box-shadow: 0 14px 28px rgba(0, 0, 0, .45); transform: rotate(var(--r)) scale(var(--s, 1)); transition: transform .35s var(--ease), box-shadow .35s; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.pol::before { content: ''; position: absolute; left: 50%; top: -12px; width: 86px; height: 26px; margin-left: -43px; background: rgba(255, 240, 170, .5); transform: rotate(calc(var(--r) * -1.5)); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.pol img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #222; pointer-events: none; filter: saturate(1.08) contrast(1.04); }
.pol figcaption { padding: 8px 2px 14px; font: 700 23px/1.1 var(--hand); text-align: center; }
.pol:hover, .pol.up { --s: 1.08; transform: rotate(0deg) scale(var(--s)); box-shadow: 0 30px 50px rgba(0, 0, 0, .6); z-index: 20; }
.pol.drag { cursor: grabbing; transition: none; --s: 1.12; box-shadow: 0 40px 60px rgba(0, 0, 0, .65); z-index: 30; }
.pol.fresh::after { content: ''; position: absolute; inset: 12px 12px auto; aspect-ratio: 1; background: #f8f6ee; animation: develop 2.4s ease-out forwards; pointer-events: none; }
@keyframes develop { to { opacity: 0; } }
@media (max-width: 760px) {
  .wall { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; padding: 22px 12px; }
  .pol { position: relative; width: auto; left: auto !important; top: auto !important; padding: 7px 7px 0; cursor: pointer; }
  .pol figcaption { font-size: 18px; padding: 5px 2px 9px; }
  .pol::before { width: 56px; height: 18px; margin-left: -28px; top: -9px; }
}

/* ---- ticker */
.ticker-wrap { overflow: hidden; padding: 14px 0; }
.ticker { overflow: hidden; background: var(--y); color: #111; border-block: 3px solid #111; transform: rotate(-1.2deg); margin: 0 -24px; }
.ticker-in { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker:hover .ticker-in { animation-play-state: paused; }
.ticker span { white-space: nowrap; padding: 10px 0; font: 900 clamp(20px, 3.4vw, 28px)/1.1 var(--disp); text-transform: uppercase; letter-spacing: .05em; }
.ticker span::after { content: ' · '; white-space: pre; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---- how to play */
.how { display: grid; gap: 18px; margin-top: 34px; }
@media (min-width: 800px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how-c { padding: 24px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: transform .3s var(--ease), border-color .3s; }
.how-c:hover { transform: translateY(-6px); border-color: #5a5480; }
.how-c svg { width: 50px; height: 50px; fill: none; stroke: var(--y); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.how-c:hover svg { transform: rotate(-8deg) scale(1.12); }
.how-c h3 { margin-top: 12px; text-transform: uppercase; }
.how-c ul { margin: 12px 0 0; padding-left: 18px; color: var(--mut); }
.how-c li { margin: 6px 0; }

/* ---- what's new */
.news { margin-top: 26px; display: grid; gap: 14px; }
.news article { padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.news time { font: 800 18px/1.2 var(--disp); color: var(--y); text-transform: uppercase; letter-spacing: .04em; }
.news ul { margin: 8px 0 0; padding-left: 18px; color: var(--mut); font-size: 15.5px; }
.news li { margin: 5px 0; }
.news-more { margin-top: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--y); font-weight: 700; font-size: 14px; cursor: pointer; }
.news-more:hover { border-color: var(--y); }

/* ---- questions */
.faq { margin-top: 26px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: #4a4566; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--y); font-size: 22px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--mut); }

/* ---- the end */
.end { position: relative; overflow: hidden; padding: 110px 0 150px; text-align: center; isolation: isolate; }
.end-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 110%, rgba(242, 193, 0, .35), transparent 60%), radial-gradient(ellipse at 15% 20%, rgba(255, 61, 127, .18), transparent 50%), radial-gradient(ellipse at 85% 30%, rgba(60, 228, 255, .14), transparent 50%); }
.end-led { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 8px 18px; background: #070609; border: 2px solid #26231a; border-radius: 10px; color: var(--amber); font: 700 18px/1 var(--disp); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 0 10px rgba(255, 176, 0, .75); }
.end-led span { padding: 4px 8px; border-radius: 5px; background: var(--amber); color: #111; text-shadow: none; }
.end h2 { max-width: 900px; margin: 0 auto; }
.end-rail { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; pointer-events: none; background: linear-gradient(#5d5878, #5d5878) 0 calc(100% - 12px) / 100% 3px no-repeat, repeating-linear-gradient(90deg, #2e2a40 0 8px, transparent 8px 34px) 0 calc(100% - 4px) / 100% 9px no-repeat; }
.end-tram { position: absolute; bottom: 14px; left: 50%; width: 420px; margin-left: -210px; transform: translateX(120vw); opacity: .95; }
.end-tram svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .6)); }
.end-tram .t-led { font: 900 12px/1 var(--disp); fill: var(--amber); }
.end-tram .t-lamp { fill: #fff6c8; }
.end.in .end-tram { animation: pullIn 3.4s cubic-bezier(.15, .7, .25, 1) .3s forwards; }
@keyframes pullIn { to { transform: translateX(0); } }
@media (max-width: 600px) { .end-tram { width: 300px; margin-left: -150px; } }
.end p { margin: 14px 0 30px; color: var(--mut); font-size: 19px; }

/* ---- footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; gap: 12px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font: 800 22px/1 var(--disp); text-transform: uppercase; }
.foot-brand img { border-radius: 10px; }
.age { padding: 3px 8px; border-radius: 6px; border: 2px solid var(--pink); color: var(--pink); font-size: 15px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--txt); }
.foot-note { margin: 0; color: #8d89a3; font-size: 14px; }

/* ---- less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tilt { transform: none !important; }
  .phone { transform: none; }
  .note { opacity: 1; transform: none; }
}
/* the topic pages' links (build/site/seo.py), in the footer: the row in the page's language */
.foot-more p { display: none; margin: 4px 0; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
html[lang="en"] .foot-more [data-l="en"], html[lang="hu"] .foot-more [data-l="hu"], html[lang="ru"] .foot-more [data-l="ru"] { display: flex; }
.foot-more b { width: 100%; color: var(--mut); font-weight: 700; }
.foot-more a { color: var(--txt); }
