:root {
  --ink: #07040f;
  --ink-2: #0e0820;
  --ink-3: #160c30;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f4f0ff;
  --muted: rgba(244, 240, 255, .58);
  --pink: #ff4fa3;
  --violet: #8a5cff;
  --gold: #ffcf5a;
  --cyan: #43e3ff;
  --grad: linear-gradient(100deg, var(--gold), var(--pink) 45%, var(--violet) 75%, var(--cyan));
  --display: "Unbounded", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pixel: "Press Start 2P", monospace;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--ink);
  overflow-x: clip;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100vh; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 500; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main { overflow-x: clip; position: relative; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img, video, canvas { display: block; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
kbd { font-family: var(--mono); font-size: .8em; padding: .2em .5em; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mono { font-family: var(--mono); }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- Aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .5; animation: drift 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: radial-gradient(circle, rgba(109, 59, 255, .55), transparent 62%); top: -20vmax; left: -15vmax; }
.aurora i:nth-child(2) { background: radial-gradient(circle, rgba(255, 47, 142, .35), transparent 62%); top: 30vh; right: -25vmax; animation-duration: 32s; }
.aurora i:nth-child(3) { background: radial-gradient(circle, rgba(255, 179, 71, .18), transparent 62%); bottom: -30vmax; left: 20vw; animation-duration: 38s; }
@keyframes drift { to { transform: translate(8vmax, -6vmax) scale(1.15); } }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 450; pointer-events: none; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; mix-blend-mode: difference; }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45);
  display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, opacity .3s;
}
.cursor-ring span { font: 600 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #0b0616; opacity: 0; transition: opacity .2s; }
.cursor-ring.is-hover { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.cursor-ring.is-label { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: #fff; border-color: #fff; }
.cursor-ring.is-label span { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s; -webkit-tap-highlight-color: transparent;
}
.btn-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-style: normal; font-size: 1rem; transition: transform .35s var(--ease); }
.btn:hover .btn-ico { transform: rotate(-12deg) scale(1.08); }
.btn:active { transform: scale(.97); }
.btn-primary { background: #fff; color: #0b0616; box-shadow: 0 10px 40px rgba(255, 255, 255, .12); }
.btn-primary .btn-ico { background: #0b0616; color: #fff; }
.btn-primary:hover { box-shadow: 0 14px 50px rgba(255, 79, 163, .35); }
.btn-ghost, .btn-glass { background: rgba(255,255,255,.06); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost .btn-ico, .btn-glass .btn-ico { background: rgba(255,255,255,.1); }
.btn-ghost:hover, .btn-glass:hover { background: rgba(255,255,255,.12); }
.btn-sm { font-size: .85rem; padding: 6px 6px 6px 16px; }
.btn-sm .btn-ico { width: 30px; height: 30px; font-size: .85rem; }

/* ---------- Gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; text-align: center; padding: 24px;
  background: radial-gradient(ellipse at 50% 45%, #1d0f45 0%, var(--ink) 65%);
  clip-path: inset(0 0 0 0);
}
.gate-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); opacity: .6; }
.gate-top, .gate-bottom { position: absolute; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; font: 500 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gate-top { top: max(22px, env(safe-area-inset-top)); }
.gate-bottom { bottom: max(22px, env(safe-area-inset-bottom)); }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 700 .8rem var(--display); color: #0b0616; background: conic-gradient(var(--gold), var(--pink), var(--violet), var(--cyan), var(--gold)); letter-spacing: 0; }
.gate-loader { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; }
.load-num { font: 300 clamp(5rem, 22vw, 15rem)/.85 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, rgba(255,255,255,.25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.load-bar { width: min(320px, 70vw); height: 2px; background: var(--line-2); overflow: hidden; border-radius: 2px; }
.load-bar span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.load-text { font: 500 .8rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); min-height: 1.2em; }
.gate-gift { position: relative; display: grid; justify-items: center; gap: 10px; opacity: 0; visibility: hidden; }
.gate-kicker { font: 500 .78rem var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.gate-name { font: 900 clamp(2.8rem, 11vw, 7rem)/.95 var(--display); letter-spacing: -.03em; text-transform: uppercase; background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.55)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; }
.gate-hint { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--muted); margin-top: 8px; }

.gift { position: relative; width: 180px; height: 190px; animation: giftFloat 3.2s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.gift:hover { animation: giftFloat 3.2s ease-in-out infinite, giftWiggle .5s ease-in-out infinite; }
@keyframes giftFloat { 50% { transform: translateY(-12px); } }
@keyframes giftWiggle { 25% { rotate: -3deg; } 75% { rotate: 3deg; } }
.gift-box {
  position: absolute; left: 16px; right: 16px; bottom: 18px; height: 112px; border-radius: 10px;
  background: linear-gradient(90deg, transparent 43%, var(--gold) 43% 57%, transparent 57%), linear-gradient(160deg, #ff5fae, #7b4dff);
  box-shadow: inset -24px -10px 40px rgba(0,0,0,.28), inset 10px 10px 30px rgba(255,255,255,.15), 0 30px 80px rgba(138, 92, 255, .55);
}
.gift-lid {
  position: absolute; left: 4px; right: 4px; bottom: 122px; height: 40px; border-radius: 10px;
  background: linear-gradient(90deg, transparent 43%, var(--gold) 43% 57%, transparent 57%), linear-gradient(160deg, #ff7cbd, #9a73ff);
  box-shadow: 0 10px 20px rgba(0,0,0,.3), inset 0 2px 0 rgba(255,255,255,.3); transform-origin: 50% 100%;
}
.gift-bow { position: absolute; left: 50%; top: -26px; width: 0; height: 0; }
.gift-bow::before, .gift-bow::after { content: ""; position: absolute; top: 0; width: 46px; height: 30px; border: 9px solid var(--gold); border-radius: 50%; box-shadow: 0 0 20px rgba(255, 207, 90, .5); }
.gift-bow::before { right: -2px; transform: rotate(-22deg); }
.gift-bow::after { left: -2px; transform: rotate(22deg); }
.gift-shadow { position: absolute; left: 30px; right: 30px; bottom: 0; height: 14px; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.6), transparent 70%); }
.gift-burst { position: absolute; left: 50%; top: 45%; width: 80px; height: 80px; margin: -40px; border-radius: 50%; background: radial-gradient(circle, #fff, rgba(255, 207, 90, .9) 30%, rgba(255, 79, 163, .4) 55%, transparent 70%); opacity: 0; transform: scale(0); pointer-events: none; }

.switch { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font: 500 .75rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.switch-track { width: 42px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid var(--line-2); position: relative; transition: background .3s; }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.switch[aria-pressed="true"] .switch-track { background: var(--pink); border-color: var(--pink); }
.switch[aria-pressed="true"] .switch-knob { transform: translateX(18px); }

/* ---------- Top bar ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 130; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) clamp(14px, 3vw, 32px) 14px; transition: background .4s, backdrop-filter .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { background: rgba(7, 4, 15, .62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.topbar.hide { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 .9rem var(--display); letter-spacing: .02em; }
.brand-text span { color: var(--muted); font-weight: 300; }
.nav-links { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--muted); transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: #0b0616; background: #fff; }
.hud { display: flex; gap: 8px; align-items: center; }
.hud-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .25s, transform .25s; }
.hud-btn:hover { background: rgba(255,255,255,.12); }
.hud-btn small { color: var(--muted); font-weight: 500; }
.hud-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); background: rgba(255, 207, 90, .3); } }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; height: 4px; background: var(--gold); border-radius: 2px; }
.playing .eq i { animation: eq .9s ease-in-out infinite; }
.playing .eq i:nth-child(2) { animation-delay: -.3s; } .playing .eq i:nth-child(3) { animation-delay: -.6s; } .playing .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.menu-btn { display: none; width: 40px; padding: 0; justify-content: center; flex-direction: column; gap: 5px; }
.menu-btn i { width: 16px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease); }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 115; padding: 100px 24px 40px; background: rgba(7, 4, 15, .94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu ol { list-style: none; }
.menu li { border-bottom: 1px solid var(--line); }
.menu a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; text-decoration: none; font: 700 clamp(1.4rem, 6vw, 2.2rem) var(--display); letter-spacing: -.02em; }
.menu a span { font: 500 .75rem var(--mono); color: var(--gold); }
.menu-foot { color: var(--muted); font-size: .9rem; margin-top: 24px; }

.ach-panel { position: fixed; top: 72px; right: 14px; z-index: 125; width: min(340px, calc(100vw - 28px)); max-height: calc(100vh - 100px); overflow-y: auto; padding: 18px; border-radius: var(--radius); background: rgba(14, 8, 32, .92); border: 1px solid var(--line-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.ach-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.ach-head h3 { font: 700 1rem var(--display); }
.ach-head span { color: var(--gold); font-size: .8rem; }
.ach-panel ul { list-style: none; display: grid; gap: 6px; }
.ach-panel li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); font-size: .88rem; }
.ach-panel li span { width: 28px; text-align: center; }
.ach-panel li.locked { color: var(--muted); }
.ach-panel li.got { background: linear-gradient(90deg, rgba(255, 207, 90, .16), rgba(255, 79, 163, .08)); }

.toasts { position: fixed; z-index: 160; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 10px; pointer-events: none; width: max-content; max-width: 92vw; }
.toast { display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border-radius: 999px; background: rgba(14, 8, 32, .9); border: 1px solid rgba(255, 207, 90, .4); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 50px rgba(0,0,0,.5); }
.toast .t-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: conic-gradient(var(--gold), var(--pink), var(--gold)); }
.toast small { display: block; font: 600 .62rem var(--mono); color: var(--gold); letter-spacing: .18em; text-transform: uppercase; }
.toast b { font-size: .95rem; }

.fx { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.banana-rain { position: fixed; inset: 0; z-index: 96; pointer-events: none; overflow: hidden; }
.banana-rain span { position: absolute; top: -10vh; font-size: 2.4rem; will-change: transform; }

/* ---------- Hidden candles ---------- */
.hc {
  position: absolute; z-index: 6; width: 26px; height: 34px; opacity: .55;
  background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34'><defs><radialGradient id='f' cx='.5' cy='.6' r='.5'><stop offset='0' stop-color='%23fff'/><stop offset='.45' stop-color='%23ffcf5a'/><stop offset='1' stop-color='%23ff7a00'/></radialGradient></defs><path d='M13 1c3 4 5 6 5 9a5 5 0 0 1-10 0c0-3 2-5 5-9z' fill='url(%23f)'/><rect x='9' y='15' width='8' height='18' rx='2' fill='%23ffcf5a'/><rect x='9' y='19' width='8' height='2' fill='%23ff9a3c'/><rect x='9' y='25' width='8' height='2' fill='%23ff9a3c'/></svg>");
  filter: drop-shadow(0 0 6px rgba(255, 207, 90, .7)); transition: opacity .3s, transform .3s var(--ease); animation: hcFlicker 2.4s ease-in-out infinite;
}
.hc:hover { opacity: 1; transform: scale(1.3); }
.hc.found { visibility: hidden; pointer-events: none; }
.hc-fly { position: fixed; z-index: 220; opacity: 1; animation: none; pointer-events: none; }
.hc-inline { position: relative; display: inline-block; vertical-align: middle; margin-left: auto; }
@keyframes hcFlicker { 50% { filter: drop-shadow(0 0 12px rgba(255, 207, 90, 1)); } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; background: var(--ink); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(ellipse at 50% 55%, transparent 45%, rgba(7, 4, 15, .75) 100%), linear-gradient(180deg, transparent 75%, var(--ink)); }
.webgl { position: absolute; inset: 0; }
.webgl canvas { width: 100% !important; height: 100% !important; }
.slash { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.hero-copy { position: absolute; top: 0; left: 0; right: 0; z-index: 4; padding: clamp(96px, 13vh, 140px) 20px 0; text-align: center; pointer-events: none; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; font: 500 .72rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 0 0 rgba(61, 255, 154, .7); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(61, 255, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 154, 0); } }
.headline { margin-top: 20px; perspective: 800px; line-height: .95; }
.hl-line { display: block; }
#hlLine1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 5.2vw, 4.4rem); letter-spacing: -.01em; color: rgba(255,255,255,.92); text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.hl-line .word { display: inline-block; white-space: nowrap; }
.hl-line .char { display: inline-block; transform-origin: 50% 100%; }
.hl-name {
  margin-top: 6px; pointer-events: auto; font: 900 clamp(2.9rem, 10.5vw, 9rem)/.9 var(--display); letter-spacing: -.045em; text-transform: uppercase;
  background: linear-gradient(100deg, #fff 0%, var(--gold) 20%, var(--pink) 45%, var(--violet) 70%, #fff 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite; filter: drop-shadow(0 10px 40px rgba(255, 79, 163, .35));
}
@keyframes shimmer { to { background-position: 250% 0; } }
.hero-sub { margin-top: 16px; color: var(--muted); font-size: clamp(.88rem, 2vw, 1.02rem); }
.hero-actions { margin-top: 20px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; pointer-events: auto; }
.hero-meta { position: absolute; left: clamp(16px, 3vw, 32px); bottom: clamp(18px, 4vh, 36px); z-index: 4; display: flex; gap: clamp(18px, 3vw, 44px); pointer-events: none; }
.hero-meta small { display: block; font: 500 .65rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hero-meta b { font: 500 .92rem var(--display); }
.scroll-cue { position: absolute; right: clamp(16px, 3vw, 32px); bottom: clamp(18px, 4vh, 36px); z-index: 4; display: flex; align-items: center; gap: 12px; font: 500 .68rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-cue i { position: relative; width: 1px; height: 46px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

.hero.no-webgl { background: radial-gradient(circle at 50% 70%, rgba(255,79,163,.3), transparent 55%), var(--ink); }
.fallback-cake { position: absolute; left: 50%; bottom: 120px; width: 300px; height: 260px; margin-left: -150px; display: flex; z-index: 3; cursor: pointer; }
.fc-half { width: 50%; height: 100%; overflow: hidden; position: relative; transition: transform 1s cubic-bezier(.2, 1.6, .4, 1); }
.fc-cake { position: absolute; bottom: 0; width: 300px; height: 100%; }
.fc-l .fc-cake { left: 0; } .fc-r .fc-cake { right: 0; }
.fallback-cake.cut .fc-l { transform: translateX(-40px) rotate(-6deg); }
.fallback-cake.cut .fc-r { transform: translateX(40px) rotate(6deg); }

/* shared CSS cake (fallback + wish scene) */
.fc-plate, .wc-plate { position: absolute; bottom: 0; left: 4%; right: 4%; height: 18px; border-radius: 50%; background: linear-gradient(#fff, #9d97c4); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.fc-tier, .wc-tier { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 16px 16px 12px 12px; overflow: hidden; }
.fc-t1, .wc-t1 { bottom: 10px; width: 86%; height: 36%; background: linear-gradient(90deg, #b82667, #ff5fa2 35%, #ff9ccb 55%, #c42f72); }
.fc-t2, .wc-t2 { bottom: 45%; width: 58%; height: 30%; background: linear-gradient(90deg, #4a2bc4, #7d5cff 35%, #b19bff 55%, #5434d0); }
.fc-tier::before, .wc-drip { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 34px; background: radial-gradient(circle at 14px 22px, #fff4fb 11px, transparent 12px) 0 0 / 30px 34px repeat-x, linear-gradient(#fff4fb, #fff4fb) 0 0 / 100% 16px no-repeat; }
.fc-candles { position: absolute; bottom: 76%; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.fc-candles i { width: 6px; height: 38px; border-radius: 2px; background: repeating-linear-gradient(160deg, #fff 0 6px, var(--pink) 6px 10px); position: relative; }
.fc-candles i::after { content: ""; position: absolute; left: 50%; top: -16px; width: 9px; height: 14px; margin-left: -4.5px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(#fff, #ffcf5a 40%, #ff7a00); box-shadow: 0 0 14px 4px rgba(255, 170, 60, .7); animation: flicker .15s infinite alternate; }
@keyframes flicker { to { transform: scale(.9, 1.1) translateY(-1px); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 3; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: rgba(255,255,255,.02); transform: rotate(-1.5deg) scale(1.03); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 40px; animation: marquee 30s linear infinite; font: 700 clamp(1.6rem, 4vw, 3.2rem) var(--display); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--gold); font-size: .6em; }
.marquee-alt { transform: rotate(1.5deg) scale(1.03); }
.marquee-alt .marquee-track { animation-direction: reverse; font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: clamp(2rem, 5vw, 4rem); color: rgba(255,255,255,.75); }
.marquee-alt .marquee-track i { color: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(100px, 15vh, 170px) clamp(18px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.sec-head { position: relative; z-index: 2; text-align: center; margin: 0 auto clamp(40px, 7vh, 72px); max-width: 860px; }
.sec-index { display: inline-flex; gap: 14px; align-items: center; font: 500 .74rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.sec-index span:first-child { color: var(--gold); }
.sec-index span + span::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-2); vertical-align: middle; margin-right: 14px; }
.sec-title { font: 700 clamp(2.2rem, 6.4vw, 5rem)/1 var(--display); letter-spacing: -.04em; }
.sec-title em { font-size: 1.12em; }
.sec-desc { margin: 20px auto 0; max-width: 560px; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }

.card {
  position: relative; height: 100%; padding: 28px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.card-tilt { transform-style: preserve-3d; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.card-tilt:hover { transition: transform .1s linear; }
.glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.1), transparent 45%); }
.info-label { display: inline-block; font: 500 .7rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* Profile */
.profile-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; }
.span-2-row { grid-row: span 2; }
.span-full { grid-column: 1 / -1; }
.player-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.avatar { position: relative; width: 168px; height: 168px; border-radius: 50%; padding: 5px; }
.avatar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--gold), var(--pink), var(--violet), var(--cyan), var(--gold)); animation: spin 8s linear infinite; box-shadow: 0 0 50px rgba(255, 79, 163, .4); }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 50%; border: 4px solid var(--ink-2); }
.lvl-badge { position: absolute; right: -2px; bottom: 6px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 900 1.05rem var(--display); background: #fff; color: #0b0616; box-shadow: 0 0 0 4px var(--ink-2), 0 0 30px rgba(255, 207, 90, .6); }
.player-card h3 { font: 900 2rem var(--display); letter-spacing: -.03em; text-transform: uppercase; margin-top: 18px; }
.tag { font: 500 .85rem var(--mono); color: var(--cyan); margin-top: 4px; }
.stats { list-style: none; width: 100%; max-width: 360px; margin: 24px 0 18px; display: grid; gap: 14px; text-align: left; }
.stats li span { font: 500 .68rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stats b { display: block; height: 6px; margin-top: 7px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.stats b::after { content: ""; display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--grad); border-radius: inherit; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.stats.in b::after { transform: scaleX(1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips span { padding: 7px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.info-card .big { font: 700 clamp(1.4rem, 2.8vw, 2rem)/1.1 var(--display); letter-spacing: -.03em; margin: 14px 0 18px; }
.info-rows p { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.info-rows span { color: var(--muted); }
.info-rows b { font-variant-numeric: tabular-nums; }
.alive { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0 14px; }
.alive div { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.alive b { display: block; font: 700 clamp(1rem, 2.2vw, 1.4rem) var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.alive small { font: 500 .62rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .16em; }

.quest h3 { font: 700 clamp(1.4rem, 3vw, 2rem) var(--display); letter-spacing: -.03em; margin: 8px 0 6px; }
.quest-map { width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.q-track { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 5; stroke-dasharray: 2 14; stroke-linecap: round; }
.q-path { fill: none; stroke: url(#qg); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255,79,163,.7)); }
.q-node circle { fill: var(--ink-3); stroke: rgba(255,255,255,.35); stroke-width: 3; transition: fill .4s, stroke .4s, filter .4s; }
.q-node text { fill: var(--text); font: 700 22px var(--display); text-anchor: middle; }
.q-start circle { fill: rgba(67, 227, 255, .2); stroke: var(--cyan); }
.q-end.unlocked circle { fill: var(--gold); stroke: #fff; filter: drop-shadow(0 0 18px var(--gold)); }
.q-check circle { fill: var(--ink-3); stroke: rgba(255,255,255,.3); stroke-width: 3; transition: fill .3s; }
.q-check.on circle { fill: var(--pink); stroke: #fff; }
.q-check text { font: 600 18px var(--body); fill: var(--muted); text-anchor: middle; }
.q-check.on text { fill: var(--text); }
.q-banana { font-size: 40px; text-anchor: middle; dominant-baseline: central; }

/* Levels (horizontal) */
.levels { position: relative; }
.levels-pin { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(90px, 12vh, 120px) 0 60px; overflow: hidden; }
.levels .sec-head { margin-bottom: clamp(28px, 5vh, 48px); padding: 0 20px; }
.levels-track { display: flex; gap: 20px; width: max-content; padding: 0 8vw; will-change: transform; }
.lvl { position: relative; flex: none; width: clamp(260px, 26vw, 340px); min-height: 360px; padding: 26px; border-radius: var(--radius); display: flex; flex-direction: column; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); border: 1px solid var(--line); overflow: hidden; }
.lvl-n { font: 900 6.5rem/.8 var(--display); letter-spacing: -.06em; color: transparent; background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,.03)); -webkit-background-clip: text; background-clip: text; }
.lvl-emoji { position: absolute; right: 22px; top: 22px; font-size: 2.2rem; }
.lvl h4 { font: 700 1.25rem/1.15 var(--display); letter-spacing: -.02em; margin-top: auto; }
.lvl p { color: var(--muted); margin-top: 10px; font-size: .95rem; line-height: 1.5; }
.lvl .lvl-tag { align-self: flex-start; margin-top: 16px; font: 500 .65rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); }
.lvl.now { background: linear-gradient(160deg, rgba(255, 207, 90, .22), rgba(255, 79, 163, .14) 60%, rgba(138, 92, 255, .14)); border-color: rgba(255, 207, 90, .5); box-shadow: 0 0 80px rgba(255, 79, 163, .25); }
.lvl.now .lvl-n { background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.lvl.now .lvl-tag { color: #0b0616; background: var(--gold); border-color: var(--gold); }
.lvl-photo { position: absolute; right: 18px; top: 18px; width: 74px; height: 74px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 3px solid var(--gold); }
.lvl .hc { right: 20px; bottom: 20px; }
.levels-progress { width: min(360px, 60vw); height: 2px; margin: 36px auto 0; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.levels-progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* Gallery */
.gallery { max-width: none; overflow: hidden; }
.carousel { --w: 280px; --h: 380px; position: relative; z-index: 2; height: calc(var(--h) + 120px); perspective: 1500px; display: grid; place-items: center; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ring { position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; }
.card3d { position: absolute; inset: 0; transform-style: preserve-3d; }
.card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2, 1.2, .4, 1); }
.card3d.flipped .card-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 70px rgba(0,0,0,.5); background: var(--ink-3); }
.face img, .face video, .face canvas { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; pointer-events: none; }
.face video { background: #000; }
.back { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px; text-align: center; background: linear-gradient(160deg, #1d1046, #0e0820); }
.back::before { content: ""; position: absolute; inset: 10px; border-radius: 14px; border: 1px solid var(--line-2); pointer-events: none; }
.back h4 { font: 700 1.35rem var(--display); letter-spacing: -.02em; }
.back p { color: var(--muted); line-height: 1.5; }
.back .hc-inline { margin: 6px 0 0; }
.card-label { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; font: 500 .7rem var(--mono); letter-spacing: .08em; background: rgba(7, 4, 15, .7); backdrop-filter: blur(8px); border: 1px solid var(--line); }
.pixel-font { font-family: var(--pixel); font-size: .5rem; }
.popart { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.popart img:nth-child(1) { filter: saturate(4) contrast(1.4); }
.popart img:nth-child(2) { filter: saturate(4) contrast(1.4) hue-rotate(120deg); }
.popart img:nth-child(3) { filter: saturate(4) contrast(1.4) hue-rotate(240deg); }
.popart img:nth-child(4) { filter: saturate(5) contrast(1.6) hue-rotate(300deg); }
.pixel canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
.wanted { background: #e9d6a8; color: #3b2410; display: flex; flex-direction: column; align-items: center; padding: 16px; gap: 6px; }
.wanted img { height: 58%; width: 86%; object-fit: cover; filter: sepia(.8) contrast(1.1); border: 4px solid #3b2410; }
.w-title { font: 900 2.1rem var(--display); letter-spacing: .04em; }
.w-sub { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.w-reward { font: 700 1rem var(--display); }
.foil { position: absolute; inset: 0; mix-blend-mode: color-dodge; opacity: .5; background: conic-gradient(from var(--holo, 0deg), #ff4fa3, #ffcf5a, #43e3ff, #8a5cff, #ff4fa3); animation: holo 4s linear infinite; }
@property --holo { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes holo { to { --holo: 360deg; } }
.holo-tag { position: absolute; top: 12px; left: 12px; right: 12px; text-align: center; padding: 7px; border-radius: 10px; font: 700 .78rem var(--display); background: rgba(7, 4, 15, .6); }

/* Tape */
.tape { position: relative; }
.tape-stage { position: relative; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.tape-title { position: absolute; z-index: 3; text-align: center; padding: 0 20px; pointer-events: none; }
.tape-title .muted { margin-top: 16px; letter-spacing: .2em; text-transform: uppercase; }
.tape-video { position: absolute; left: 50%; top: 50%; width: var(--tw, 92vw); height: var(--th, 86vh); margin-left: calc(var(--tw, 92vw) / -2); margin-top: calc(var(--th, 86vh) / -2); border-radius: 26px; overflow: hidden; background: #000; clip-path: circle(0% at 50% 50%); box-shadow: 0 0 120px rgba(255,79,163,.3); border: 1px solid var(--line-2); }
.tape-video video { width: 100%; height: 100%; object-fit: contain; }
.scanlines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.1) 0 2px, transparent 2px 4px); mix-blend-mode: multiply; }
.rec { position: absolute; top: 16px; left: 18px; font: 600 .7rem var(--mono); letter-spacing: .14em; color: #ff3b3b; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tape-unmute { position: absolute; z-index: 4; bottom: 9vh; opacity: 0; pointer-events: none; transition: opacity .4s; }
.tape-unmute.show { opacity: 1; pointer-events: auto; }

/* Arcade */
.arcade-cab { position: relative; max-width: 780px; margin: 0 auto; padding: 16px; border-radius: 28px; background: linear-gradient(160deg, #241452, #0e0820); border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 6px rgba(255,255,255,.02); }
.arcade-top { display: flex; justify-content: space-between; padding: 6px 10px 14px; font: .62rem var(--pixel); color: var(--muted); }
.arcade-top b { color: var(--gold); margin-left: 6px; }
.arcade-screen { position: relative; height: clamp(340px, 52vh, 460px); border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, rgba(255, 79, 163, .35), transparent 60%), linear-gradient(180deg, #0b0620, #1a0c3d); border: 1px solid var(--line); }
.arcade-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); }
.arcade-screen.playing { touch-action: none; }
#game { width: 100%; height: 100%; }
.arcade-overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 20px; text-align: center; background: rgba(7, 4, 15, .6); backdrop-filter: blur(4px); }
.arcade-overlay h3 { font: clamp(1.1rem, 4vw, 1.8rem)/1.3 var(--pixel); color: var(--gold); text-shadow: 0 4px 0 #a33c00; }
.arcade-overlay p { color: var(--muted); line-height: 1.7; font-size: .95rem; }

/* Wish wall */
.wish-form { position: relative; z-index: 2; display: flex; gap: 10px; max-width: 820px; margin: 0 auto 40px; padding: 8px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
.wish-form input { min-width: 0; flex: 1; background: transparent; border: 0; color: var(--text); font: 500 .95rem var(--body); padding: 0 16px; outline: none; }
.wish-form input:first-child { flex: 0 0 160px; border-right: 1px solid var(--line); }
.wish-form input::placeholder { color: var(--muted); }
.wall { position: relative; z-index: 2; columns: 4 220px; column-gap: 18px; }
.note { break-inside: avoid; margin-bottom: 18px; padding: 22px 20px 18px; border-radius: 6px 6px 18px 6px; color: #1d1230; transform: rotate(var(--r, 0deg)); box-shadow: 0 20px 40px rgba(0,0,0,.35); transition: transform .4s var(--ease); position: relative; }
.note:hover { transform: rotate(0) scale(1.03); z-index: 3; }
.note::before { content: ""; position: absolute; top: -8px; left: 50%; width: 60px; height: 18px; margin-left: -30px; background: rgba(255,255,255,.45); transform: rotate(-3deg); }
.note p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
.note span { display: block; margin-top: 12px; font: 600 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.note.c0 { background: #ffe58a; } .note.c1 { background: #ffb3d6; } .note.c2 { background: #b9f3ff; } .note.c3 { background: #d3c4ff; } .note.c4 { background: #c4ffd8; }
.hc-wall { position: relative; display: block; margin: 0 auto 18px; }

/* Message */
.message { min-height: 90vh; }
.hearts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hearts span { position: absolute; bottom: -60px; font-size: 1.6rem; opacity: 0; animation: rise linear infinite; }
@keyframes rise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: .7; } 100% { transform: translateY(-110vh) rotate(40deg); opacity: 0; } }
.letter { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding-bottom: 40px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--line); backdrop-filter: blur(16px); box-shadow: 0 40px 100px rgba(0,0,0,.4); }
.letter-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); font: .75rem var(--mono); color: var(--muted); }
.letter-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.letter-bar i:nth-child(2) { background: #febc2e; } .letter-bar i:nth-child(3) { background: #28c840; }
.letter-bar span { margin-left: 8px; }
.letter-bar .hc-inline { width: 18px; height: 24px; }
.typed { min-height: 3.2em; padding: 40px clamp(22px, 5vw, 60px) 12px; font: 700 clamp(1.6rem, 4.6vw, 3.4rem)/1.12 var(--display); letter-spacing: -.035em; }
.typed .ch { animation: glowIn .6s ease-out both; }
@keyframes glowIn { from { color: var(--gold); text-shadow: 0 0 24px var(--pink); } to { color: var(--text); text-shadow: none; } }
.typed .hl { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.12em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: none; }
.typed::after { content: ""; display: inline-block; width: .45em; height: .85em; margin-left: 6px; vertical-align: -0.05em; background: var(--pink); animation: blink 1s steps(2) infinite; }
.sig { padding: 0 clamp(22px, 5vw, 60px); font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--muted); opacity: 0; transform: translateY(10px); transition: opacity 1s, transform 1s; }
.sig.show { opacity: 1; transform: none; }

/* Finale */
.finale { text-align: center; }
.lvl-card { position: relative; max-width: 640px; margin: 0 auto; padding: 30px clamp(20px, 5vw, 40px) 26px; border-radius: 28px; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0,0,0,.45); }
.lvl-row { display: flex; align-items: center; gap: 20px; text-align: left; }
.lvl-num { width: 100px; height: 100px; flex: none; border-radius: 22px; display: grid; place-items: center; align-content: center; background: linear-gradient(135deg, #2a0f6b, #12063a); border: 1px solid var(--gold); box-shadow: 0 0 40px rgba(255, 207, 90, .3); }
.lvl-num small { font: .55rem var(--pixel); color: var(--gold); }
.lvl-num span { font: 2.1rem var(--pixel); margin-top: 6px; }
.lvl-meta b { display: block; font: 900 1.5rem var(--display); letter-spacing: -.02em; }
.lvl-meta span { color: var(--muted); font: .8rem var(--mono); }
.xp { position: relative; height: 28px; margin: 26px 0; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); overflow: hidden; }
.xp-fill { position: absolute; inset: 0; width: 90%; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink), var(--gold)); }
.xp-fill::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.16) 0 10px, transparent 10px 20px); animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 28px 0; } }
.xp span { position: relative; z-index: 1; display: grid; place-items: center; height: 100%; font: .58rem var(--pixel); text-shadow: 0 2px 4px #000; }
.hold-btn {
  --c: 0; position: relative; width: 100%; padding: 22px; border-radius: 18px; overflow: hidden; font: clamp(.66rem, 2.3vw, .9rem) var(--pixel);
  background: linear-gradient(135deg, #ff4fa3, #8a5cff); box-shadow: 0 10px 0 #4a1f9e, 0 20px 50px rgba(138,92,255,.45);
  transform: translateY(calc(var(--c) * 6px)) scale(calc(1 + var(--c) * .04)); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.hold-btn::before { content: ""; position: absolute; inset: 0; width: calc(var(--c) * 100%); background: linear-gradient(90deg, rgba(255,207,90,.4), rgba(255,255,255,.7)); }
.hold-label { position: relative; }
.hold-hint { margin-top: 20px; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }

.levelup { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle, rgba(42,15,107,.78), rgba(7,4,15,.94)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden; text-align: center; }
.rays { position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: repeating-conic-gradient(rgba(255,207,90,.07) 0 8deg, transparent 8deg 20deg); animation: spin 30s linear infinite; pointer-events: none; }
.lu-inner { position: relative; max-width: 640px; }
.lu-title { font: clamp(2rem, 9vw, 4.6rem)/1.1 var(--pixel); background: linear-gradient(180deg, #fff, var(--gold) 50%, #ff9a00); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 #a33c00) drop-shadow(0 0 30px rgba(255,207,90,.6)); }
.lu-level { margin: 22px 0; font: clamp(1.4rem, 5vw, 2.4rem) var(--pixel); display: flex; gap: 18px; justify-content: center; align-items: center; }
.lu-level span { color: var(--muted); }
.lu-level i { font-style: normal; color: var(--pink); }
.lu-level b { color: var(--gold); font-size: 1.5em; text-shadow: 0 0 30px var(--gold); }
.lu-stats { list-style: none; display: grid; gap: 8px; max-width: 440px; margin: 0 auto; }
.lu-stats li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font: clamp(.48rem, 2vw, .66rem) var(--pixel); }
.lu-stats b { color: #6dff9c; }
.lu-final { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3.6vw, 1.9rem); }
.lu-actions { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.flash { position: fixed; inset: 0; z-index: 180; background: #fff; pointer-events: none; }

/* Make a wish */
.wish { text-align: center; }
.wish-stage { position: relative; z-index: 2; display: grid; justify-items: center; }
.wish-cake { position: relative; width: min(420px, 86vw); height: min(360px, 74vw); margin-top: 40px; }
.wish-cake::before { content: ""; position: absolute; left: 50%; top: 10%; width: 140%; height: 90%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 30%, rgba(255, 170, 60, .28), transparent 60%); transition: opacity 1.2s; pointer-events: none; }
.wish-cake.out::before { opacity: 0; }
.wc-candles { position: absolute; left: 50%; bottom: 74%; transform: translateX(-50%); width: 56%; display: flex; justify-content: space-between; align-items: flex-end; z-index: 2; }
.wc-candle { position: relative; width: 10px; height: 54px; border-radius: 3px; background: repeating-linear-gradient(160deg, #fff 0 7px, var(--pink) 7px 12px); }
.wc-candle:nth-child(even) { height: 46px; }
.wc-candle::before { content: ""; position: absolute; left: 50%; top: -6px; width: 2px; height: 7px; margin-left: -1px; background: #333; }
.wc-flame { position: absolute; left: 50%; bottom: calc(100% + 4px); width: 14px; height: 22px; margin-left: -7px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(ellipse at 50% 70%, #fff 10%, #ffcf5a 40%, #ff7a00 80%); box-shadow: 0 0 22px 8px rgba(255, 170, 60, .55); transform-origin: 50% 100%; animation: flicker .14s infinite alternate; transition: transform .25s, opacity .25s; }
.wc-candle.out .wc-flame { transform: scale(0); opacity: 0; animation: none; }
.wc-smoke { position: absolute; left: 50%; bottom: calc(100% + 8px); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: rgba(220, 220, 240, .5); filter: blur(3px); opacity: 0; pointer-events: none; }
.wc-candle.out .wc-smoke { animation: smoke 1.6s ease-out forwards; }
@keyframes smoke { 0% { opacity: .8; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translate(10px, -70px) scale(4); } }
.wish-hint { margin-top: 34px; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--muted); min-height: 1.4em; }
.wish-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.secret-note { margin-top: 36px; max-width: 520px; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 207, 90, .2), rgba(255, 79, 163, .1)); border: 1px solid rgba(255, 207, 90, .5); text-align: left; }
.secret-note p { margin-top: 8px; line-height: 1.6; }

/* Credits */
.credits { position: fixed; inset: 0; z-index: 170; background: #000; overflow: hidden; text-align: center; }
.credits::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, rgba(138, 92, 255, .25), transparent 60%); }
.credits-skip { position: absolute; top: 20px; right: 20px; z-index: 2; }
.credits-roll { position: absolute; left: 0; right: 0; top: 0; padding: 0 24px; will-change: transform; }
.cr-kicker { font: 500 .78rem var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.cr-title { margin: 22px 0 80px; font: 900 clamp(2.6rem, 10vw, 7rem)/.9 var(--display); letter-spacing: -.04em; }
.cr-title em { display: block; font-size: .55em; margin-top: 10px; }
.cr-list { display: grid; gap: 46px; max-width: 640px; margin: 0 auto; }
.cr-list dt { font: 500 .72rem var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.cr-list dd { margin-top: 10px; font: 500 clamp(1.2rem, 3.4vw, 1.8rem) var(--display); letter-spacing: -.02em; }
.cr-end { padding: 140px 0 40px; }
.cr-stats { font: 500 .8rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.cr-end h3 { margin: 26px 0 14px; font: 900 clamp(3rem, 12vw, 8rem)/.9 var(--display); letter-spacing: -.05em; background: linear-gradient(180deg, #fff, rgba(255,255,255,.4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cr-tease { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--muted); }
.cr-tease .blink { font-family: var(--mono); font-style: normal; font-size: .9rem; color: var(--pink); animation: blink 1s steps(2) infinite; }
.cr-actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.lightbox { position: fixed; inset: 0; z-index: 190; display: grid; place-items: center; padding: 20px; background: rgba(5, 2, 15, .94); backdrop-filter: blur(10px); }
.lightbox video { max-width: 100%; max-height: 86vh; border-radius: 18px; box-shadow: 0 0 80px rgba(255,79,163,.4); }
.lb-close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; font-size: 1.1rem; background: rgba(255,255,255,.1); border: 1px solid var(--line-2); }

/* Footer */
.footer { position: relative; padding: clamp(80px, 14vh, 140px) clamp(18px, 5vw, 64px) 40px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-big { font: 900 clamp(3rem, 13vw, 11rem)/.9 var(--display); letter-spacing: -.06em; text-align: center; }
.footer-big em { font-size: 1.05em; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 8vh, 80px); padding-top: 22px; border-top: 1px solid var(--line); font: 500 .75rem var(--mono); letter-spacing: .08em; color: var(--muted); }
.banana-tap { font-size: 1.1rem; transition: transform .2s; vertical-align: middle; }
.banana-tap:active { transform: rotate(-30deg) scale(1.3); }

body.banana { --pink: #ffd400; --violet: #ff9f1c; --cyan: #fff176; }

.hide-sm { }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 820px) {
  .hide-sm { display: none !important; }
  .profile-grid { grid-template-columns: 1fr; }
  .span-2-row { grid-row: auto; }
  .carousel { --w: 200px; --h: 280px; }
  .hud { gap: 6px; }
  .hud-btn { height: 36px; padding: 0 11px; font-size: .8rem; }
  .menu-btn { width: 36px; padding: 0; }
  .brand-text span { display: none; }
  .q-node text { font-size: 28px; }
  .q-check text { font-size: 22px; }
  .levels-pin { min-height: 0; padding-bottom: 20px; }
  .levels-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 20px; scrollbar-width: none; }
  .levels-track::-webkit-scrollbar { display: none; }
  .lvl { scroll-snap-align: center; width: 78vw; min-height: 320px; }
  .levels-progress { display: none; }
  .wish-form { flex-direction: column; border-radius: 22px; padding: 12px; }
  .wish-form input { padding: 12px 10px; }
  .wish-form input:first-child { flex: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .wish-form .btn { align-self: stretch; justify-content: space-between; }
  .lvl-num { width: 80px; height: 80px; }
  .lvl-num span { font-size: 1.6rem; }
  .hero-meta { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
