/* Taco Empreso: The 2:59 Run. Mobile first; static by default, `html.is-live` turns on the scrubbed level. */
:root {
  --night: #0b0712;
  --night-2: #140c1e;
  --panel: #1b1226;
  --text: #f7f1ff;
  --muted: #c4b8d6;
  --pink: #ff3d81;
  --orange: #ff8a3d;
  --sun: #ffd23f;
  --teal: #4fe3e8;
  --red: #e0262b;
  --red-ink: #c41e25;
  --wall: #f4f0e8;
  --wall-ink: #241a20;
  --wall-muted: #5b4d55;
  --money: #7ddc6f;
  --line: rgba(255, 255, 255, .12);
  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-ui: "Chakra Petch", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Kaushan Script", "Brush Script MT", cursive;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --vb: calc(100lvh - 100svh);              /* height hidden under a phone's bottom toolbar */
  --outline: 0 0 2px #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 2px 0 #000;
  --bar-h: 60px;
  color-scheme: dark;
}
@supports not (height: 1lvh) { :root { --vb: 0px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0;
  font: 400 16px/1.55 var(--font-ui);
  color: var(--text);
  background: var(--night);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg, canvas, video { display: block; max-width: 100%; }
svg { fill: currentColor; }
a { color: inherit; }
p, h1, h2, h3, h4, figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: #fff; color: #000; padding: 12px 16px; border-radius: 6px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: calc(var(--safe-t) + 12px); }
.wrap { width: min(100%, 1200px); margin-inline: auto; }
section[id], .cat, .chapters { scroll-margin-top: calc(var(--safe-t) + var(--bar-h)); }
.wall .cat { scroll-margin-top: calc(var(--safe-t) + var(--bar-h) + 64px); }

/* ---------- Type ---------- */
.kicker { font: 700 13px/1.2 var(--font-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--sun); }
.kicker--red { color: var(--red-ink); }
.section-title {
  font: 400 clamp(46px, 13vw, 104px)/.94 var(--font-display);
  text-transform: uppercase; letter-spacing: .005em;
  margin: 10px 0 24px; text-wrap: balance;
}
.fineprint { font-size: 14px; color: var(--muted); margin-top: 14px; }
/* Game-title lockups: sunset gradient fill with a hard outline drawn by a data-t duplicate behind it */
.logo [data-t], .incard__title [data-t], .complete__big [data-t] {
  position: relative; display: inline-block;
  color: transparent;
  background: linear-gradient(180deg, #fff7d1 0%, #ffd23f 34%, #ff8a3d 68%, #ff3d81 100%);
  -webkit-background-clip: text; background-clip: text;
}
.logo [data-t]::before, .incard__title [data-t]::before, .complete__big [data-t]::before {
  content: attr(data-t); content: attr(data-t) / ""; position: absolute; left: 0; top: 0; z-index: -1;
  color: #120a1a; -webkit-text-fill-color: #120a1a;
  -webkit-text-stroke: .12em #120a1a; text-shadow: 0 .07em 0 #120a1a;
}
.split-word { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  font: 400 21px/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border: 3px solid #0b0610; border-radius: 999px; box-shadow: 0 4px 0 #0b0610;
  cursor: pointer;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .2s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0b0610; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-ink); }
.btn--light { background: #fff; color: #0b0610; }
.btn--light:hover { background: var(--sun); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.btn--lg { min-height: 58px; font-size: 24px; padding: 0 28px; }

/* ---------- Top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  padding: calc(var(--safe-t) + 8px) max(12px, var(--safe-r)) 8px max(16px, var(--safe-l));
  background: linear-gradient(180deg, rgba(8, 4, 14, .8), rgba(8, 4, 14, 0));
  transition: background-color .3s, box-shadow .3s;
}
.bar.is-solid { background: rgba(11, 7, 18, .95); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; padding: 4px 0; white-space: nowrap; min-width: 0; }
.brand__mark { font: 400 21px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: #fff; text-shadow: 0 2px 0 #000; }
.brand__sub { font: 700 11px/1.35 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--sun); text-shadow: 0 1px 0 #000; }
.bar__nav, .bar__order { display: none; }
.sound, .pausebtn {
  display: inline-flex; align-items: center; gap: 7px; flex: none; white-space: nowrap;
  height: 44px; min-width: 44px; padding: 0 13px 0 11px;
  border: 2px solid rgba(255, 255, 255, .92); border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff;
  font: 700 12.5px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.sound svg, .pausebtn svg { width: 19px; height: 19px; }
.sound:hover, .pausebtn:hover { background: rgba(0, 0, 0, .8); }
.sound[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: #120a1a; }
.sound .sound__on { display: none; }
.sound[aria-pressed="true"] .sound__on { display: block; }
.sound[aria-pressed="true"] .sound__off { display: none; }
.pausebtn span { display: none; }
.pausebtn { padding: 0 11px; }
@media (min-width: 700px) { .pausebtn span { display: inline; } .pausebtn { padding: 0 13px 0 11px; } }
.sound__state { margin-left: -3px; }
@media (max-width: 339px) {
  .sound__label, .sound__state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sound { padding: 0 11px; }
}

/* ---------- Pause menu (site navigation) ---------- */
.pause {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0;
  padding: calc(var(--safe-t) + 80px) 24px calc(var(--safe-b) + 40px);
  background: rgba(8, 4, 14, .94); color: var(--text);
}
.pause::backdrop { background: rgba(0, 0, 0, .5); }
.pause__inner { min-height: 100%; display: grid; align-content: center; gap: 22px; }
.pause__title { font: 400 clamp(56px, 18vw, 120px)/1 var(--font-display); text-transform: uppercase; color: var(--sun); text-shadow: 0 4px 0 #000; }
.pause ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pause li a, .pause li button {
  display: flex; align-items: center; width: 100%; min-height: 56px; padding: 0 16px;
  background: transparent; border: 0; border-radius: 4px; cursor: pointer; text-align: left; text-decoration: none;
  font: 700 22px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: #fff;
}
.pause li a:hover, .pause li a:focus-visible, .pause li button:hover, .pause li button:focus-visible { background: #fff; color: #0b0712; outline: none; }
.pause__meta { color: var(--muted); font-size: 14px; }

/* ---------- The level (static by default) ---------- */
.world { position: relative; }
.stage {
  position: relative; overflow: hidden; isolation: isolate;
  height: 100svh; min-height: 600px;
  background: #07040b;
}
.stage__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: opacity .3s; }
.stage__video, .stage__fill, .stage__grade, .letterbox, .incard, .helpbox, .subtitle, .whiteout, .complete { display: none; }

/* Title screen */
.hero {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: calc(var(--safe-t) + var(--bar-h) + 12px) max(16px, var(--safe-r)) calc(var(--vb) + var(--safe-b) + 18px) max(16px, var(--safe-l));
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 4, 14, 0) 34%, rgba(8, 4, 14, .55) 55%, rgba(8, 4, 14, .92) 82%);
}
.logo {
  font: 400 clamp(62px, 19vw, 168px)/.86 var(--font-display);
  text-transform: uppercase; letter-spacing: .01em;
  position: relative; isolation: isolate;
  transform: skewX(-5deg); transform-origin: 0 100%;
}
.logo__line { display: block; width: max-content; }
.hero__lede { max-width: 34ch; font-size: 17px; font-weight: 600; line-height: 1.45; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
.mainmenu ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.mainmenu__item {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px;
  min-height: 58px; padding: 8px 16px;
  background: rgba(10, 6, 16, .62); border: 1px solid rgba(255, 255, 255, .16); border-radius: 4px;
  text-decoration: none; color: #fff;
  transition: background-color .18s, color .18s, border-color .18s;
}
.mainmenu__label { font: 700 18px/1.1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.mainmenu__hint { grid-row: 2; font-size: 13px; color: var(--muted); }
.mainmenu__item svg { grid-row: 1 / 3; grid-column: 2; width: 22px; height: 22px; }
.mainmenu__item.is-active, .mainmenu__item:hover, .mainmenu__item:focus-visible { background: #fff; color: #0b0712; border-color: #fff; }
.mainmenu__item.is-active .mainmenu__hint, .mainmenu__item:hover .mainmenu__hint, .mainmenu__item:focus-visible .mainmenu__hint { color: #4b3f55; }
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.cue { display: flex; align-items: center; gap: 8px; font: 700 13px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.cue svg { width: 20px; height: 20px; color: var(--sun); }
.no-js .cue, html:not(.is-live) .cue { visibility: hidden; }
.loading { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--font-ui); letter-spacing: .06em; color: #fff; }
.loading[hidden] { display: none; }
.loading__ring { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: var(--sun); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.intro-pending [data-intro] { opacity: 0; }

/* Static story list */
.chapters { padding: 56px max(16px, var(--safe-r)) 64px max(16px, var(--safe-l)); background: var(--night); }
.chapters__title { font: 400 clamp(44px, 12vw, 96px)/.95 var(--font-display); text-transform: uppercase; margin-bottom: 20px; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.chapters figure { display: grid; gap: 10px; }
.chapters img { width: 100%; max-width: 420px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; border: 2px solid var(--line); }
.chapters figcaption { font-size: 17px; }
.chapters figcaption b { color: var(--sun); }

/* ---------- The level (live) ---------- */
.is-live .world { height: 880vh; }
.is-live .stage { position: sticky; top: 0; height: 100vh; height: 100lvh; min-height: 0; }
.is-live .chapters { display: none; }
.is-live .stage__video {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%; background: transparent;
  transform-origin: 0 0; will-change: transform;
}
.is-live.is-contain .stage__video { object-fit: contain; }
/* desktop side fill: a 9x16 canvas of the current frame stretched behind the portrait video reads as a heavy blur */
.is-live.is-contain .stage__fill { display: block; position: absolute; inset: -4%; width: 108%; height: 108%; opacity: .55; }
.is-live .stage.has-video .stage__poster { opacity: 0; }
.is-live .stage__grade {
  display: block; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 85% at 50% 42%, transparent 58%, rgba(8, 3, 14, .7) 100%),
    linear-gradient(180deg, rgba(76, 22, 120, .22) 0%, transparent 28%, transparent 66%, rgba(255, 61, 129, .12) 100%);
}
.is-live .letterbox { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.letterbox__bar { position: absolute; left: 0; right: 0; background: #000; transform: scaleY(0); }
.letterbox__bar--top { top: 0; height: calc(var(--safe-t) + 11svh); transform-origin: 50% 0; }
.letterbox__bar--bot { bottom: 0; height: calc(var(--vb) + var(--safe-b) + 11svh); transform-origin: 50% 100%; }
.is-live .incard, .is-live .helpbox, .is-live .subtitle, .is-live .whiteout, .is-live .complete { display: block; }
.incard { position: absolute; left: 0; right: 0; top: 30%; z-index: 3; text-align: center; padding: 0 16px; opacity: 0; visibility: hidden; pointer-events: none; }
.incard__kicker { font: 700 14px/1 var(--font-ui); letter-spacing: .34em; text-transform: uppercase; color: #fff; text-shadow: var(--outline); }
.incard__title { font: 400 clamp(54px, 16vw, 120px)/.95 var(--font-display); text-transform: uppercase; margin: 10px 0 8px; position: relative; isolation: isolate; transform: skewX(-6deg); }
.incard__sub { font: 700 15px/1.2 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: var(--outline); }
.helpbox {
  position: absolute; left: calc(var(--safe-l) + 12px); top: calc(var(--safe-t) + var(--bar-h) + 12svh); z-index: 3;
  display: flex; align-items: center; gap: 10px; max-width: 70vw;
  padding: 11px 14px; background: rgba(0, 0, 0, .8); border-radius: 4px;
  font-size: 15px; font-weight: 600; opacity: 0; visibility: hidden; pointer-events: none;
}
.is-live .helpbox { display: flex; }
.helpbox svg { width: 20px; height: 20px; color: var(--sun); flex: none; }
.helpbox b { color: var(--sun); }
.subtitle {
  position: absolute; left: 50%; z-index: 3; transform: translateX(-50%);
  bottom: calc(var(--vb) + var(--safe-b) + 116px);
  width: min(92vw, 640px); text-align: center; pointer-events: none;
  font: 600 18px/1.35 var(--font-ui); color: #fff; text-shadow: var(--outline); text-wrap: balance;
  transition: opacity .25s, bottom .35s var(--ease-out);
}
.stage.is-cutscene .subtitle { bottom: calc(var(--vb) + var(--safe-b) + 3.2svh); }
.subtitle.is-swapping { opacity: 0; }
.subtitle .y { color: var(--sun); font-weight: 700; }
.subtitle .p { color: var(--teal); font-weight: 700; }
.whiteout { position: absolute; inset: 0; z-index: 4; background: var(--wall); opacity: 0; pointer-events: none; }
.complete { position: absolute; left: 0; right: 0; top: 42%; z-index: 5; text-align: center; padding: 0 12px; opacity: 0; visibility: hidden; pointer-events: none; }
.complete__big { font: 400 clamp(46px, 13vw, 128px)/1 var(--font-display); text-transform: uppercase; position: relative; isolation: isolate; transform: skewX(-6deg); }
.complete__sub { text-wrap: balance; margin-top: 10px; font: 700 clamp(14px, 3.9vw, 22px)/1.3 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: var(--outline); }

/* ---------- HUD ---------- */
.hud { display: none; }
.is-live .hud { display: block; position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; }
.is-live .hud.is-on { opacity: 1; visibility: visible; transition: opacity .35s; }
.hud__stats { position: absolute; right: calc(var(--safe-r) + 14px); top: calc(var(--safe-t) + 64px); text-align: right; text-shadow: var(--outline); }
.hud__clock { font: 700 22px/1 var(--font-ui); letter-spacing: .04em; }
.hud__place { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hud__open { margin-top: 6px; font: 700 14px/1.2 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--money); }
.hud__open.is-closed { color: var(--orange); }
.hud__stars { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin-top: 6px; }
.hud__starlabel { font: 700 11.5px/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; margin-right: 4px; }
.hud__stars svg { width: 18px; height: 18px; color: rgba(255, 255, 255, .2); filter: drop-shadow(0 0 1px #000) drop-shadow(0 1px 0 #000); transition: color .2s, transform .25s var(--ease-out); }
.hud__stars svg.on { color: #fff; transform: scale(1.08); }
.radar { position: absolute; left: calc(var(--safe-l) + 12px); bottom: calc(var(--safe-b) + 12px); width: 92px; height: 92px; overflow: visible; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.hud__log { display: none; }

/* ---------- Order button (phones) ---------- */
.fab {
  position: fixed; right: calc(var(--safe-r) + 14px); bottom: calc(var(--safe-b) + 14px); z-index: 45;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 54px; padding: 0 22px 0 18px;
  font: 400 23px/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  color: #fff; background: var(--red);
  border: 3px solid #0b0610; border-radius: 999px; box-shadow: 0 4px 0 #0b0610;
  transform: translateY(140%); transition: transform .35s var(--ease-out), box-shadow .15s;
}
.fab svg { width: 22px; height: 22px; }
.show-fab .fab, .no-js .fab { transform: none; }
.in-cutscene .fab { transform: translateY(140%); } /* cutscenes are UI-free; it comes back in gameplay */
.fab:active { box-shadow: 0 1px 0 #0b0610; }

/* ---------- Menu (the wall) ---------- */
.menu { position: relative; isolation: isolate; background: var(--wall); color: var(--wall-ink); padding: 56px max(18px, var(--safe-r)) 72px max(18px, var(--safe-l)); color-scheme: light; }
.menu::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7;
  background:
    radial-gradient(rgba(60, 40, 30, .05) 1px, transparent 1.4px) 0 0 / 5px 5px,
    radial-gradient(rgba(60, 40, 30, .035) 1px, transparent 1.6px) 2px 3px / 11px 11px;
}
.menu__title { font: 400 clamp(46px, 13vw, 96px)/1.04 var(--font-script); color: var(--red-ink); margin: 8px 0 12px; text-wrap: balance; }
.menu__note { color: var(--wall-muted); max-width: 54ch; font-size: 15.5px; }
.tabs {
  position: sticky; top: calc(var(--safe-t) + var(--bar-h)); z-index: 5;
  display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
  margin: 22px -18px 0; padding: 10px 18px;
  background: rgba(244, 240, 232, .96); box-shadow: 0 1px 0 rgba(36, 26, 32, .1);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--wall-ink); border-radius: 999px;
  font: 700 14px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--wall-ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.tabs a:hover { background: rgba(224, 38, 43, .08); }
.tabs a[aria-current="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.wall { columns: 1; column-gap: 56px; }
.cat { break-inside: avoid; padding-top: 30px; }
.cat h3 { font: 400 36px/1.3 var(--font-script); color: var(--red-ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 7px; text-decoration-skip-ink: none; }
.cat__note { font-size: 14.5px; color: var(--wall-muted); margin-top: 8px; }
.items { list-style: none; margin: 6px 0 0; padding: 0; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; padding: 13px 0; border-bottom: 1px dashed rgba(36, 26, 32, .2); }
.item__name { font: 400 24px/1.32 var(--font-script); color: var(--red-ink); }
.item__name small { display: block; margin-top: 1px; font: 600 12px/1.2 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--wall-muted); }
.item__price { font: 700 17px/1 var(--font-ui); color: var(--wall-ink); padding-top: 7px; white-space: nowrap; }
.item__desc { grid-column: 1 / -1; margin-top: 3px; font-size: 15px; line-height: 1.45; color: #4a3e45; }
.menu__cta { margin-top: 36px; }
.menu__cta .btn { width: 100%; }

/* ---------- Sections ---------- */
.crew, .order, .visit { position: relative; padding: 76px max(18px, var(--safe-r)) 76px max(18px, var(--safe-l)); }

/* ---------- Combos ---------- */
.crew { background: var(--night-2); }
.crew__grid { display: grid; gap: 28px; }
.crew__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; border-radius: 8px; border: 2px solid var(--line); }
.mcards { display: grid; gap: 16px; }
.mcard {
  display: grid; gap: 10px; align-content: start; padding: 24px 20px 22px;
  background: linear-gradient(160deg, #22132f 0%, #140b1d 100%); border: 2px solid var(--line); border-radius: 8px;
}
.mcard__type { font: 700 13px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.mcard h3 { font: 400 44px/1 var(--font-display); text-transform: uppercase; }
.mcard__price { font: 700 32px/1 var(--font-ui); color: var(--money); text-shadow: 0 2px 0 #000; }
.mcard ul { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 6px; }
.mcard li { position: relative; padding-left: 20px; }
.mcard li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; background: var(--sun); transform: rotate(45deg); }
.mcard .btn { justify-self: start; }

/* ---------- Order ---------- */
.order { background: var(--night); }
.routes { display: grid; gap: 12px; }
.route {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px;
  min-height: 76px; padding: 14px 18px; text-decoration: none; color: #fff;
  background: var(--panel); border: 2px solid var(--line); border-radius: 8px;
  transition: border-color .2s, transform .2s var(--ease-out), background-color .2s;
}
.route:hover { border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.route svg { grid-row: 1 / 3; grid-column: 2; width: 26px; height: 26px; }
.route__k { font: 700 12px/1.2 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.route__n { font: 400 30px/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.route--primary { background: var(--red); border-color: #0b0610; box-shadow: 0 5px 0 #0b0610; min-height: 92px; }
.route--primary .route__k { color: #fff; }
.route--primary .route__n { font-size: 38px; }
.route--primary:hover { background: var(--red-ink); }

/* ---------- Visit ---------- */
.visit { background: #100a18; }
.visit__grid { display: grid; gap: 28px; }
.mapcard { position: relative; display: block; overflow: hidden; border-radius: 8px; border: 2px solid var(--line); text-decoration: none; }
.mapcard svg { width: 100%; height: auto; }
.mapcard__label {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: rgba(0, 0, 0, .78); border-radius: 3px; font: 700 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
}
.mapcard__label svg { width: 16px; height: 16px; color: var(--sun); }
address { font-style: normal; font: 600 24px/1.35 var(--font-ui); }
.hours { margin: 18px 0 0; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.hours div:last-child { border-bottom: 1px solid var(--line); }
.hours dt { color: var(--muted); font-weight: 600; }
.hours dd { margin: 0; font-weight: 700; color: var(--money); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.contact { margin-top: 16px; }
.contact a, .socials a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }
.contact svg, .socials svg { width: 22px; height: 22px; }
.contact svg { color: var(--sun); }
.socials { display: flex; gap: 22px; }

/* ---------- Footer ---------- */
.foot { background: #07040b; padding: 40px max(18px, var(--safe-r)) calc(var(--safe-b) + 100px) max(18px, var(--safe-l)); color: var(--muted); font-size: 14px; }
.foot__grid { display: grid; gap: 12px; }
.foot__brand { font: 400 26px/1 var(--font-display); text-transform: uppercase; color: #fff; }
.foot__brand span { font: 700 12px var(--font-ui); letter-spacing: .24em; color: var(--sun); margin-left: 8px; vertical-align: middle; }
.credits summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: #fff; }
.credits ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* ================= Tablet ================= */
@media (min-width: 700px) {
  .menu, .crew, .order, .visit { padding-left: max(32px, var(--safe-l)); padding-right: max(32px, var(--safe-r)); }
  .tabs { margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px; }
  .wall { columns: 2; }
  .mcards { grid-template-columns: 1fr 1fr; }
  .routes { grid-template-columns: 1fr 1fr; }
  .route--primary { grid-column: 1 / -1; }
  .menu__cta .btn { width: auto; }
  .hero { padding-left: max(32px, var(--safe-l)); padding-right: max(32px, var(--safe-r)); }
  .mainmenu { max-width: 460px; }
  .chapters ol { grid-template-columns: repeat(2, 1fr); }
}

/* ================= Desktop ================= */
@media (min-width: 1000px) {
  :root { --bar-h: 72px; }
  .is-live .world { height: 720vh; }
  .bar { padding: 14px 28px; gap: 8px; }
  .brand__mark { font-size: 26px; }
  .bar__nav { display: flex; gap: 2px; margin-right: 8px; }
  .bar__nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 4px;
    font: 700 14px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
    color: #fff; text-shadow: var(--outline);
  }
  .bar__nav a:hover { background: rgba(255, 255, 255, .1); }
  .pausebtn { display: none; }
  .bar__order {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; margin-left: 4px;
    font: 400 19px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
    color: #fff; background: var(--red); border: 2px solid #0b0610; border-radius: 999px; box-shadow: 0 3px 0 #0b0610;
  }
  .bar__order:hover { background: var(--red-ink); }
  .fab { display: none; }
  .hero { justify-content: flex-end; padding: 120px 64px 56px; max-width: 640px; }
  .hero::before { background: linear-gradient(90deg, rgba(8, 4, 14, .9) 0%, rgba(8, 4, 14, .55) 60%, rgba(8, 4, 14, 0) 100%); right: -40vw; }
  .logo { font-size: clamp(110px, 10vw, 172px); }
  .hero__lede { font-size: 20px; }
  .stage__poster { object-fit: contain; }
  .helpbox { left: 28px; top: 110px; font-size: 16px; }
  .subtitle { bottom: 56px; font-size: 22px; width: min(46vw, 700px); }
  .stage.is-cutscene .subtitle { bottom: 3.4svh; }
  .hud__stats { right: 28px; top: 96px; }
  .hud__clock { font-size: 30px; }
  .radar { left: 28px; bottom: 28px; width: 156px; height: 156px; }
  .hud__log {
    display: block; position: absolute; left: 28px; top: 50%; transform: translateY(-50%);
    width: min(23vw, 300px); padding: 18px 20px; background: rgba(8, 4, 14, .66); border: 1px solid var(--line); border-radius: 6px;
  }
  .hud__logtitle { font: 700 13px/1 var(--font-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--sun); margin-bottom: 12px; }
  .hud__log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .hud__log li { position: relative; padding-left: 30px; font-weight: 600; font-size: 16px; transition: color .3s; }
  .hud__log li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 3px; }
  .hud__log li.done { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .4); }
  .hud__log li.done::before { background: var(--money); border-color: var(--money); }
  .hud__log li.now { color: var(--sun); }
  .menu { padding: 88px 48px 104px; }
  .tabs { justify-content: center; margin-left: -48px; margin-right: -48px; }
  .wall { columns: 3; }
  .crew, .order, .visit { padding: 112px 48px; }
  .crew__grid { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 56px; }
  .crew__media img { aspect-ratio: 9 / 16; max-height: 86vh; }
  .visit__grid { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; }
  .routes { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .route--primary { grid-column: auto; }
  .chapters ol { grid-template-columns: repeat(4, 1fr); }
  .foot { padding: 48px; }
}

/* ================= Phones in landscape ================= */
@media (orientation: landscape) and (max-height: 520px) {
  .hero { flex-direction: column; justify-content: center; padding-top: calc(var(--safe-t) + 64px); max-width: 60%; }
  .logo { font-size: clamp(44px, 13vh, 72px); }
  .hero__lede { font-size: 14px; }
  .mainmenu__item { min-height: 44px; padding: 4px 14px; }
  .mainmenu__hint { display: none; }
  .hero__foot { display: none; }
  .subtitle { bottom: calc(var(--vb) + 16px); width: min(60vw, 560px); font-size: 16px; }
  .radar { width: 76px; height: 76px; }
  .incard { top: 22%; }
}

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .intro-pending [data-intro] { opacity: 1; }
}

.br-sm { display: none; }

/* ---------- Review fixes ---------- */
/* focus moved to a section by in-page navigation: no ring on the section itself */
[tabindex="-1"]:focus { outline: none; }
/* the yellow ring is invisible on the cream wall */
.menu :focus-visible { outline-color: var(--wall-ink); }
/* without JavaScript these controls cannot work, and the bar has to stay readable over the cream menu */
.no-js .sound, .no-js .pausebtn { display: none; }
.no-js .bar { background: rgba(11, 7, 18, .95); }
/* the loader sits in the stage so it stays visible after the title screen fades */
.loading { display: none; }
.is-live .stage > .loading:not([hidden]) {
  display: flex; position: absolute; z-index: 6; left: 50%; transform: translateX(-50%);
  top: calc(var(--safe-t) + var(--bar-h) + 10px); padding: 8px 12px;
  background: rgba(0, 0, 0, .72); border-radius: 999px; white-space: nowrap;
}
