@font-face { font-family: "Orbitron"; src: url("assets/fonts/orbitron.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("assets/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --pink: #ff2e93; --cyan: #29e7ff; --violet: #8b5cff; --lime: #b6ff3b;
  --ink: #f6f3ff; --glass: rgba(14, 8, 34, 0.62);
  --top-h: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #07040f; color: var(--ink); font-family: "Outfit", system-ui, sans-serif; }
body { overscroll-behavior-y: none; }
#track { width: 1px; }
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(5, 0, 20, 0.55) 100%),
              linear-gradient(to bottom, rgba(7, 4, 15, 0.55), transparent 18%, transparent 78%, rgba(7, 4, 15, 0.45)); }
#wave { position: fixed; width: 2px; height: 2px; opacity: 0; pointer-events: none; left: -10px; top: -10px; }

/* Top bar */
.topbar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgba(8, 3, 22, 0.78), rgba(8, 3, 22, 0)); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 0 8px rgba(255, 46, 147, 0.6)); flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b { font-family: "Orbitron"; font-weight: 700; letter-spacing: 0.06em; font-size: 0.92rem; text-transform: uppercase; }
.brand-txt small { opacity: 0.75; font-size: 0.74rem; letter-spacing: 0.08em; }
.actions { display: flex; align-items: center; gap: 8px; flex: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 10px 16px; font: 600 0.88rem/1 "Outfit";
  color: var(--ink); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-neon { background: linear-gradient(135deg, var(--pink), #ff5ab0); box-shadow: 0 0 18px rgba(255, 46, 147, 0.55); }
.btn-neon:hover { box-shadow: 0 0 28px rgba(255, 46, 147, 0.85); }
.btn-icon { width: 40px; height: 40px; padding: 0; justify-content: center; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); }
.btn-icon .off { display: none; }
.btn-icon.is-muted .on { display: none; }
.btn-icon.is-muted .off { display: block; }

/* Rail */
.rail { position: fixed; z-index: 15; left: max(14px, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.rail button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.6); font: 600 0.72rem "Outfit"; letter-spacing: 0.1em; text-transform: uppercase; }
.rail button i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); transition: all .25s; }
.rail button span { opacity: 0; transform: translateX(-6px); transition: all .25s; text-shadow: 0 1px 6px #000; }
.rail:hover button span, .rail button.is-on span { opacity: 1; transform: none; }
.rail button.is-on { color: #fff; }
.rail button.is-on i { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* Overlays */
.ov { position: fixed; z-index: 10; inset: 0; pointer-events: none; opacity: 0; visibility: hidden; }
.ov.is-vis { visibility: visible; }
.ov .card, .ov a, .ov button { pointer-events: auto; }
.card { position: absolute; left: clamp(56px, 7vw, 120px); bottom: clamp(70px, 12vh, 140px); max-width: min(480px, 84vw);
  padding: 22px 24px 20px; border-radius: 20px; background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 0 0 1px rgba(139, 92, 255, 0.25), 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(41, 231, 255, 0.12);
  transform: translateY(var(--ty, 24px)) scale(var(--sc, 0.96)); }
.card.center { left: 50%; bottom: 50%; transform: translate(-50%, 50%) scale(var(--sc, 0.96)); text-align: center; max-width: min(640px, 92vw); }
.kicker { margin: 0 0 8px; font: 700 0.72rem "Orbitron"; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 10px rgba(41, 231, 255, 0.6); }
.sub { margin: 10px 0 0; font-size: 1.02rem; line-height: 1.45; opacity: 0.92; }
.fine { margin: 12px 0 0; font-size: 0.84rem; opacity: 0.8; }
.fine a { color: var(--cyan); }
.pop-title { margin: 0; font: 800 clamp(1.6rem, 3.4vw, 2.5rem)/1.08 "Orbitron"; letter-spacing: 0.02em; text-transform: uppercase; }
.pop-title span { display: inline-block; opacity: 0; transform: translateY(18px) scale(0.6) rotate(-4deg); }
.ov.is-on .pop-title span { animation: popIn .6s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.ov.is-on .pop-title span:nth-child(2) { animation-delay: .12s; }
.ov.is-on .pop-title span:nth-child(3) { animation-delay: .24s; }
.ov-counter .pop-title span:nth-child(1) { color: var(--pink); text-shadow: 0 0 16px rgba(255, 46, 147, 0.7); }
.ov-counter .pop-title span:nth-child(2) { color: var(--cyan); text-shadow: 0 0 16px rgba(41, 231, 255, 0.7); }
.ov-counter .pop-title span:nth-child(3) { color: var(--lime); text-shadow: 0 0 16px rgba(182, 255, 59, 0.6); }
.ov-bar .pop-title span, .ov-bowling .pop-title span, .ov-arcade .pop-title span { color: #fff; text-shadow: 0 0 18px rgba(255, 46, 147, 0.8), 0 0 2px #fff; }
@keyframes popIn { to { opacity: 1; transform: none; } }

.btn-book { margin-top: 16px; padding: 14px 20px; font-size: 1.02rem; background: linear-gradient(135deg, #29e7ff, #8b5cff 60%, #ff2e93);
  box-shadow: 0 0 24px rgba(41, 231, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.35); animation: pulse 2.2s ease-in-out infinite; }
.btn-book b { transition: transform .2s; }
.btn-book:hover b { transform: translateX(4px); }
@keyframes pulse { 50% { box-shadow: 0 0 36px rgba(255, 46, 147, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.5); } }

/* Intro */
.ov-intro { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.neon-title { margin: 0; font: 900 clamp(2.4rem, 7.5vw, 6rem)/0.95 "Orbitron"; text-transform: uppercase; letter-spacing: 0.04em;
  text-shadow: 0 0 6px #fff, 0 0 24px rgba(255, 46, 147, 0.85), 0 0 60px rgba(139, 92, 255, 0.7); }
.neon-title span { color: var(--pink); display: block; font-size: 1.35em; }
.neon-title.small { font-size: clamp(1.5rem, 4vw, 2.6rem); }
.ov-intro .kicker { font-size: 0.85rem; }
.ov-intro .sub { font-size: clamp(0.95rem, 2vw, 1.2rem); text-shadow: 0 2px 10px #000; }
.scroll-cue { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 600 0.8rem "Outfit"; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-cue i { width: 24px; height: 38px; border: 2px solid #fff; border-radius: 14px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(14px); } }

/* Photoreal pop-ups (round 2) */
.fx { position: absolute; inset: 0; pointer-events: none; }
.fxg { position: absolute; will-change: transform, opacity; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.55)); }
.fxg img { position: absolute; display: block; max-width: none; user-select: none; will-change: transform, opacity; opacity: 0; transform-origin: 50% 50%; }
.fxg img.dust { filter: none; }
.fx-burger { z-index: 3; filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 22px rgba(255, 120, 40, 0.25)); }
.fx-fries { z-index: 1; }
.fx-wings { z-index: 2; }
.fx-beer { z-index: 4; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 26px rgba(255, 190, 60, 0.35));
  -webkit-mask-image: linear-gradient(to top, #000 var(--rv, 0%), transparent calc(var(--rv, 0%) + 18%)); mask-image: linear-gradient(to top, #000 var(--rv, 0%), transparent calc(var(--rv, 0%) + 18%)); }
.fx-strike::before { content: ""; position: absolute; left: 32%; top: 22%; width: 46%; height: 60%; border-radius: 50%; opacity: var(--flash, 0);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(160, 220, 255, 0.5) 45%, transparent 75%); mix-blend-mode: screen; }
.fx-strike { filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(139, 92, 255, 0.35)); }
.strike { position: absolute; z-index: 5; right: 10vw; top: 14vh; font: 900 clamp(1.8rem, 4vw, 3.2rem) "Orbitron"; color: var(--lime);
  text-shadow: 0 0 18px rgba(182, 255, 59, 0.8); transform: scale(0) rotate(-8deg); }

/* Arcade */
.gamecard { position: absolute; right: 8vw; top: 22vh; width: clamp(220px, 26vw, 360px); aspect-ratio: 1.586; perspective: 900px; }
.gc-inner { position: absolute; inset: 0; border-radius: 16px; padding: 16px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px;
  background: linear-gradient(130deg, #1a0b3d, #3b0f6b 45%, #ff2e93 120%); border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 30px rgba(255, 46, 147, 0.6), 0 20px 40px rgba(0, 0, 0, 0.5); transform: rotateY(var(--ry, 90deg)) rotateZ(-6deg); overflow: hidden; }
.gc-inner::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%); transform: translateX(var(--shine, -60%)); }
.gc-inner img { width: 70px; height: 70px; }
.gc-txt b { display: block; font: 800 1.15rem "Orbitron"; letter-spacing: 0.08em; }
.gc-txt small { opacity: 0.85; font-size: 0.75rem; }
.gc-chip { position: absolute; right: 18px; bottom: 16px; width: 42px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #ffe08a, #c99a2e); }
.points { position: absolute; right: 8vw; top: calc(22vh + clamp(150px, 18vw, 240px)); text-align: right; transform: scale(var(--ps, 0)); transform-origin: right center; }
.points small { display: block; font: 700 0.8rem "Orbitron"; letter-spacing: 0.3em; color: var(--cyan); }
.points b { font: 900 clamp(2.4rem, 6vw, 4.6rem) "Orbitron"; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 20px rgba(41, 231, 255, 0.9), 0 0 4px #fff; }

.end-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.end-actions .btn-book { margin-top: 0; }

/* Hint, credit, loader */
.hint { position: fixed; z-index: 30; left: 50%; top: calc(var(--top-h) + 18px); transform: translateX(-50%); padding: 10px 18px; border-radius: 999px;
  background: rgba(10, 4, 30, 0.82); border: 1px solid rgba(41, 231, 255, 0.5); box-shadow: 0 0 20px rgba(41, 231, 255, 0.35);
  font: 600 0.82rem "Outfit"; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; transition: opacity .6s; pointer-events: none; white-space: nowrap; }
.hint.is-on { opacity: 1; }
.credit { position: fixed; z-index: 20; right: max(14px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); font: 500 0.72rem "Outfit"; letter-spacing: 0.08em; opacity: 0.75; text-shadow: 0 1px 4px #000; }
.loader { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #07040f; transition: opacity .6s; }
.loader.is-done { opacity: 0; pointer-events: none; }
.ld-ring { width: 54px; height: 54px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.15); border-top-color: var(--pink); border-right-color: var(--cyan); animation: spin 1s linear infinite; }
.loader p { font: 600 0.85rem "Orbitron"; letter-spacing: 0.15em; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  :root { --top-h: 58px; }
  .brand-txt { display: none; }
  .btn { padding: 9px 12px; font-size: 0.8rem; gap: 6px; }
  .btn-icon { width: 36px; height: 36px; }
  .rail { display: none; }
  .card { left: 12px; right: 12px; bottom: 44px; max-width: none; padding: 16px 16px 14px; }
  .sub { font-size: 0.92rem; }
  .btn-book { font-size: 0.95rem; padding: 12px 16px; }
  .strike { right: 8vw; top: 11vh; }
  .gamecard { right: 6vw; top: 14vh; width: 60vw; }
  .points { top: calc(14vh + 41vw); }
  .hint { font-size: 0.72rem; }
}
@media (max-width: 380px) { .actions .btn span { display: none; } .actions .btn { padding: 9px 10px; } }
@media (prefers-reduced-motion: reduce) { .btn-book { animation: none; } }
