/* doflip.dev: Run A Diner
   Palette is lifted from the game itself: logo red, Sunset Grill coral and teal,
   bulb mustard, Dustbowl peach, chequered floor black and white. */

@font-face {
  font-family: 'Lilita One';
  src: url('/fonts/lilita-one.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Yellowtail';
  src: url('/fonts/yellowtail.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cream: #FFF5E4;
  --paper: #FFFBF2;
  --peach: #FBD9BF;
  --ink: #1E1414;
  --ink-soft: #54433D;
  --red: #E3262B;
  --red-deep: #B5161C;
  --coral: #EE5F50;
  --teal: #2FA39A;
  --teal-deep: #17635F;
  --mustard: #F5B63F;
  --night: #15111E;
  --night-raised: #1F1A2B;
  --night-line: rgba(255, 245, 228, .1);
  --night-text: #EFE6DA;
  --night-muted: #AFA3B4;
  --live: #3DDC84;

  --display: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  --script: 'Yellowtail', 'Brush Script MT', cursive;
  --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --nav-h: 68px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-pop: cubic-bezier(.2, 1.5, .4, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, .95rem + .22vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }

:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
.stats :focus-visible, .footer :focus-visible { outline-color: var(--mustard); }

::selection { background: var(--mustard); color: var(--ink); }

.sprite { position: absolute; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: .6rem 1rem; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: min(1160px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.section__head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

/* ── type ── */

.script { font-family: var(--script); font-weight: 400; line-height: 1; }

.eyebrow {
  display: inline-block;
  margin: 0 0 .35em;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  color: var(--teal-deep);
  rotate: -3deg;
}

.title {
  margin: 0 0 .5em;
  font-family: var(--display);
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem);
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--red);
  text-shadow: .045em .045em 0 var(--ink);
}
.title--ink { color: var(--ink); text-shadow: .045em .045em 0 var(--mustard); }
.title--cream { color: var(--cream); text-shadow: .045em .045em 0 var(--red); }

.lead { font-size: 1.22em; font-weight: 600; line-height: 1.4; }

.link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 700; text-decoration: none;
  border-bottom: 3px solid var(--red);
  padding-bottom: .1em;
  transition: gap .25s var(--ease-out);
}
.link svg { width: 1.1em; height: 1.1em; }
.link:hover { gap: .8em; }

/* ── chequered strips ── */

.checker {
  height: 24px;
  background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 24px 24px;
  border-block: 3px solid var(--ink);
}
.checker--top, .checker--bottom { position: absolute; inset-inline: 0; }
.checker--top { top: 0; }
.checker--bottom { bottom: 0; }

/* ── buttons ── */

.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .72em 1.35em .68em;
  font-family: var(--display); font-size: 1.1rem; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0 5px 0 var(--ink);
  transition: translate .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .15s;
}
.btn:hover { translate: 0 -2px; box-shadow: 0 7px 0 var(--ink); background: #F0353A; }
.btn:active { translate: 0 4px; box-shadow: 0 1px 0 var(--ink); }
.btn--cream { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--cream:hover { background: #fff; }
.btn--teal { --btn-bg: var(--teal); --btn-fg: var(--ink); }
.btn--teal:hover { background: #3DB5AB; }
.btn--lg { font-size: clamp(1.05rem, .98rem + .35vw, 1.2rem); padding: .82em 1.35em .76em; }
.btn--sm { font-size: .95rem; padding: .5em 1.1em .46em; box-shadow: 0 4px 0 var(--ink); }
.btn__icon { width: 1.1em; height: 1.1em; transition: translate .2s var(--ease-out); }
.btn:hover .btn__icon { translate: 4px 0; }

/* ── nav ── */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color .3s, box-shadow .3s;
}
.nav.is-stuck, .nav.is-open {
  background: rgba(255, 245, 228, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 3px 0 var(--ink);
}
.nav__inner {
  display: flex; align-items: center; gap: 1.25rem;
  width: min(1160px, 100% - 2 * var(--gutter)); height: var(--nav-h);
  margin-inline: auto;
}
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2rem); margin-inline: auto; }
.nav__links a {
  position: relative; padding: .3em 0;
  font-weight: 600; font-size: 1rem; text-decoration: none;
}
.nav__links a::after {
  content: ''; position: absolute; inset: auto 0 0; height: 3px; border-radius: 3px;
  background: var(--red); scale: 0 1; transform-origin: left;
  transition: scale .25s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a[aria-current='true']::after { scale: 1 1; }
.nav__toggle { display: none; }

.wordmark {
  font-family: var(--display); font-size: 1.85rem; line-height: 1;
  letter-spacing: .01em; text-decoration: none; color: var(--ink);
  perspective: 300px;
}
.wordmark__flip {
  display: inline-block; color: var(--red);
  transition: rotate .7s var(--ease-pop);
  rotate: x 0deg;
}
.wordmark:hover .wordmark__flip { rotate: x 360deg; }
.wordmark--light { color: var(--cream); }
.wordmark--light .wordmark__flip { color: var(--mustard); }

@media (max-width: 900px) {
  .nav__inner { gap: .75rem; }
  .nav__play { margin-left: auto; }
  .nav__toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    background: var(--paper); border: 3px solid var(--ink); border-radius: 12px;
    box-shadow: 0 4px 0 var(--ink); cursor: pointer;
  }
  .nav__bars, .nav__bars::before, .nav__bars::after {
    display: block; width: 20px; height: 3px; border-radius: 3px; background: var(--ink);
    transition: rotate .25s var(--ease-out), translate .25s var(--ease-out), background-color .2s;
  }
  .nav__bars { position: relative; }
  .nav__bars::before, .nav__bars::after { content: ''; position: absolute; left: 0; }
  .nav__bars::before { translate: 0 -7px; }
  .nav__bars::after { translate: 0 7px; }
  .nav__toggle[aria-expanded='true'] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded='true'] .nav__bars::before { translate: 0; rotate: 45deg; }
  .nav__toggle[aria-expanded='true'] .nav__bars::after { translate: 0; rotate: -45deg; }

  .nav__links {
    position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; gap: 0; margin: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: rgba(255, 245, 228, .98);
    box-shadow: 0 3px 0 var(--ink);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: .85rem 0; font-size: 1.15rem; border-bottom: 2px dashed rgba(30, 20, 20, .15); }
  .nav__links a::after { display: none; }
}
@media (max-width: 420px) {
  .nav__play-extra { display: none; }
}

/* ── hero ── */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 2.5rem) 0 4rem;
  background: #EBCDB8;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  container-type: size; overflow: hidden;
}

/* The scene is a 16:9 box that covers the hero, so the SVG light effects stay
   pixel-aligned with the bulbs in the screenshot at every viewport size. */
.scene {
  --w: max(100cqw, 177.78cqh);
  position: absolute;
  width: var(--w); aspect-ratio: 16 / 9;
  left: calc((100cqw - var(--w)) * .83);
  top: calc((100cqh - var(--w) * .5625) * .3);
  transform-origin: 75% 25%;
  animation: scene-breathe 28s ease-in-out infinite alternate;
}
.scene__img, .scene__fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.bulb__glow { fill: url(#bulb-glow); mix-blend-mode: screen; opacity: .55; }
.bulb__dim { fill: #D69A5B; opacity: 0; animation: chase .9s linear infinite; }
.b1 .bulb__dim { animation-delay: -.6s; }
.b2 .bulb__dim { animation-delay: -.3s; }
.bulb__glow { animation: glow .9s linear infinite; }
.b1 .bulb__glow { animation-delay: -.6s; }
.b2 .bulb__glow { animation-delay: -.3s; }
.neon-flicker { mix-blend-mode: screen; animation: flicker 7s linear infinite; }

.hero__haze {
  position: absolute; inset: -10% -40%;
  pointer-events: none; opacity: .75;
}
.hero__haze--a {
  background:
    radial-gradient(ellipse 34% 26% at 30% 78%, rgba(255, 226, 196, .7), transparent 70%),
    radial-gradient(ellipse 28% 20% at 68% 86%, rgba(255, 214, 180, .55), transparent 70%);
  animation: haze 38s ease-in-out infinite alternate;
}
.hero__haze--b {
  background: radial-gradient(ellipse 40% 22% at 55% 92%, rgba(255, 232, 208, .6), transparent 70%);
  animation: haze 54s ease-in-out infinite alternate-reverse;
}
.hero__fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 240, 224, .78) 0%, rgba(255, 240, 224, .5) 30%, rgba(255, 240, 224, 0) 58%),
    linear-gradient(180deg, rgba(255, 240, 224, .35) 0, rgba(255, 240, 224, 0) 22%);
}

.tumbleweed {
  position: absolute; left: 0; bottom: 6%;
  width: clamp(40px, 4.6vw, 68px); aspect-ratio: 1;
  translate: -120% 0;
  animation: tumble-x 30s linear 4s infinite;
}
.tumbleweed svg {
  display: block; width: 100%; height: 100%; opacity: .8;
  animation: tumble-spin 2.6s linear infinite, tumble-hop 1.3s ease-out infinite alternate;
}

.hero__content { position: relative; }
.hero__copy { max-width: min(580px, 46vw); }
.hero__eyebrow {
  margin: 0 0 .15em .2em;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
  color: var(--ink); rotate: -4deg; transform-origin: left;
  animation: rise .8s var(--ease-out) both;
}
.hero__logo { margin: 0 0 1.25rem -1.5%; }
.hero__logo img {
  display: block; width: 100%;
  filter: drop-shadow(0 12px 18px rgba(70, 25, 10, .3));
  animation: logo-pop .9s var(--ease-pop) .1s both;
}
.hero__lede {
  max-width: 30em; margin-bottom: 1.6em;
  font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); font-weight: 500; line-height: 1.45;
  color: #2B1B17;
  animation: rise .8s var(--ease-out) .25s both;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: .9rem 1rem;
  animation: rise .8s var(--ease-out) .38s both;
}

.live-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 1.6rem; padding: .45rem 1rem .45rem .8rem;
  font-size: .95rem; font-weight: 500; text-decoration: none;
  color: var(--cream); background: rgba(30, 20, 20, .88);
  border-radius: 999px;
  animation: rise .6s var(--ease-out) both;
}
.live-pill[hidden] { display: none; }
.live-pill strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.live-pill:hover { background: var(--ink); }

.live-dot {
  position: relative; flex: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--live);
}
.live-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--live);
  animation: ping 1.8s var(--ease-out) infinite;
}

@media (max-width: 900px) {
  .hero { align-items: flex-end; padding-bottom: 2.75rem; background: #FFEEDE; }
  .scene {
    --w: max(100cqw, 104cqh);
    left: calc((100cqw - var(--w)) * .9);
    top: 0;
  }
  .hero__fade {
    background: linear-gradient(180deg, rgba(255, 238, 222, 0) 26%, rgba(255, 238, 222, .8) 45%, #FFEEDE 56%);
  }
  .hero__haze { display: none; }
  .hero__copy { max-width: 34rem; margin-inline: auto; text-align: center; }
  .hero__eyebrow { margin-left: 0; transform-origin: center; }
  .hero__logo { margin-left: 0; }
  .hero__lede { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .tumbleweed { bottom: 1.5%; }
}

/* ── ticker ── */

.ticker { position: relative; z-index: 1; }
.ticker__band { overflow: hidden; background: var(--red); color: var(--cream); }
.ticker__track {
  display: flex; align-items: center; gap: 1.75rem;
  width: max-content; padding: .7rem 1.75rem .7rem 0;
  font-family: var(--display); font-size: clamp(1.1rem, .9rem + .9vw, 1.6rem);
  letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  animation: ticker 36s linear infinite;
}
.ticker__track svg { flex: none; width: .8em; height: .8em; fill: var(--mustard); }
.ticker .checker + .ticker__band { border: 0; }

/* ── about ── */

.about {
  background:
    radial-gradient(rgba(30, 20, 20, .055) 1.5px, transparent 1.6px) 0 0 / 22px 22px,
    var(--cream);
  overflow: hidden;
}
.about__grid {
  display: grid; grid-template-columns: 1fr 1.08fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.about__copy p { max-width: 34em; }
.about__copy p:not(.lead):not(.script) { color: var(--ink-soft); }

.facts {
  display: flex; list-style: none; margin: 1.75rem 0 2rem; padding: 0;
  max-width: 30rem;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink); overflow: hidden;
}
.facts li { flex: 1; padding: .8rem .5rem .7rem; text-align: center; }
.facts li + li { border-left: 3px solid var(--ink); }
.facts strong {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.1; color: var(--red);
  text-transform: uppercase;
}
.facts li > span {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
}

.about__photo { position: relative; margin: 0; rotate: 2deg; }
.frame {
  padding: 10px; background: var(--paper);
  border: 3px solid var(--ink); border-radius: 24px;
  box-shadow: 12px 12px 0 var(--teal);
}
.frame img { display: block; width: 100%; border-radius: 13px; }

.badge {
  position: absolute; top: -9%; right: -4%;
  display: grid; place-items: center;
  width: clamp(92px, 11vw, 136px); aspect-ratio: 1;
}
.badge__burst {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: var(--mustard); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round;
  animation: spin 26s linear infinite;
}
.badge__text {
  position: relative; rotate: -10deg;
  font-family: var(--display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: .9; text-align: center; text-transform: uppercase; color: var(--ink);
}
.badge__text small { display: block; font-size: .5em; letter-spacing: .06em; margin-top: .15em; }

.about__caption {
  position: absolute; left: -3%; bottom: -5%;
  padding: .28em .8em .2em; rotate: -7deg;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); color: var(--cream);
  background: var(--red); border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
}

.about__spark { position: absolute; animation: twinkle 4.5s ease-in-out infinite; }
.about__spark--1 { top: 9%; left: 4%; width: 34px; height: 34px; fill: var(--mustard); }
.about__spark--2 { top: 16%; right: 6%; width: 22px; height: 22px; fill: var(--teal); animation-delay: -1.5s; }
.about__spark--3 { bottom: 8%; left: 46%; width: 26px; height: 26px; fill: var(--coral); animation-delay: -3s; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 34rem; margin-inline: auto; rotate: 1.5deg; }
  .badge { right: -2%; }
  .about__caption { left: 0; }
}

/* ── menu ── */

.menu {
  padding-block: clamp(5.5rem, 10vw, 8.5rem);
  background: radial-gradient(ellipse 90% 70% at 50% 0%, #49B9AF 0%, var(--teal) 70%);
}
.card {
  position: relative; max-width: 1040px; margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.4rem, 5vw, 4.25rem);
  background: var(--paper);
  border: 3px solid var(--ink); border-radius: 30px;
  box-shadow: 10px 10px 0 var(--ink);
}
.card::before {
  content: ''; position: absolute; inset: 10px;
  border: 2px solid var(--red); border-radius: 21px; pointer-events: none;
}
.card__head { text-align: center; }
.card__head .title { margin-bottom: .25em; }
.card__sub { max-width: 30em; margin: 0 auto; color: var(--ink-soft); }

.dishes {
  list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.1rem) clamp(2rem, 5vw, 4rem);
}
.dish { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; align-items: start; }
.dish__icon {
  width: 56px; height: 56px;
  transition: rotate .35s var(--ease-pop), scale .35s var(--ease-pop);
}
.dish:hover .dish__icon { rotate: -9deg; scale: 1.14; }
.dish__name {
  display: flex; align-items: baseline; gap: .55rem;
  font-family: var(--display); font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem);
  line-height: 1.15; letter-spacing: .02em; text-transform: uppercase;
}
.dish__name i {
  flex: 1; min-width: 1rem; translate: 0 -.22em;
  border-bottom: 3px dotted rgba(30, 20, 20, .32);
}
.dish__name em {
  font-family: var(--body); font-style: normal; font-size: .68rem; font-weight: 800;
  letter-spacing: .13em; white-space: nowrap; color: var(--red-deep);
}
.dish p { margin: .3rem 0 0; color: var(--ink-soft); line-height: 1.5; }

.card__foot {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  margin-top: clamp(2rem, 4vw, 3rem); text-align: center;
  font-family: var(--script); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); line-height: 1.15;
  color: var(--teal-deep);
}
.card__foot svg { flex: none; width: .7em; height: .7em; fill: var(--mustard); }

/* in-game menu boards */
.boards {
  display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr) minmax(0, 250px);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  max-width: 980px; margin: clamp(3.25rem, 7vw, 5rem) auto 0;
}
.board {
  display: block; padding: 8px; margin: 0; cursor: zoom-in; rotate: -3deg;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 8px 8px 0 var(--ink);
  transition: rotate .35s var(--ease-pop), translate .35s var(--ease-pop), box-shadow .35s var(--ease-out);
}
.board--right { rotate: 2.5deg; }
.board img { display: block; width: 100%; border-radius: 6px; }
.board:hover { rotate: 0deg; translate: 0 -6px; box-shadow: 10px 14px 0 var(--ink); }
.boards__copy { text-align: center; }
.boards__copy .eyebrow { color: var(--cream); }
.boards__title {
  margin-bottom: .35em;
  font-family: var(--display); font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem); line-height: 1;
  text-transform: uppercase; color: var(--cream); text-shadow: .045em .045em 0 var(--ink);
}
.boards__copy p:last-child { max-width: 20em; margin: 0 auto; font-weight: 500; color: var(--ink); }

@media (max-width: 760px) {
  .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .boards__copy { grid-column: 1 / -1; order: -1; }
  .board { box-shadow: 5px 5px 0 var(--ink); }
  .dishes { grid-template-columns: 1fr; }
  .dish { grid-template-columns: 46px minmax(0, 1fr); gap: .85rem; }
  .dish__icon { width: 46px; height: 46px; }
  .card { box-shadow: 6px 6px 0 var(--ink); border-radius: 24px; }
  .card::before { inset: 7px; border-radius: 17px; }
}
@media (max-width: 420px) {
  .dish__name em { display: none; }
  .dish__name i { display: none; }
}

/* ── live stats ── */

.stats {
  color: var(--night-text);
  background:
    radial-gradient(ellipse 70% 42% at 50% 0%, rgba(238, 95, 80, .16) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(47, 163, 154, .12) 0%, transparent 70%),
    var(--night);
}
.stats__head { text-align: center; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.stats__head .title { margin-bottom: .3em; font-size: clamp(2.3rem, 1.2rem + 5.2vw, 5rem); }
.stats__sub { max-width: 34em; margin: 0 auto; color: var(--night-muted); }
.eyebrow--neon { display: block; color: var(--mustard); }

.neon { margin: 0 0 1.5rem; }
.neon__tube {
  display: inline-block; padding: .16em .7em .06em; rotate: -3deg;
  font-family: var(--script); font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.1;
  color: #FFE3DE;
  text-shadow: 0 0 5px #FF8A7C, 0 0 16px var(--coral), 0 0 38px #FF3D2E;
  border: 3px solid #C9FFF6; border-radius: 18px;
  box-shadow:
    0 0 8px #58E6D4, 0 0 26px rgba(47, 163, 154, .8),
    inset 0 0 8px #58E6D4, inset 0 0 22px rgba(47, 163, 154, .55);
}
.js .neon__tube { opacity: .12; }
.js .is-in .neon__tube { animation: neon-on 2.2s linear both, neon-hum 6s linear 2.2s infinite; }

/* odometer */
.odo {
  display: inline-flex; align-items: center; vertical-align: -.08em;
  margin-inline: .08em; gap: .06em;
  font-variant-numeric: tabular-nums; text-shadow: none;
}
.odo__ghost { opacity: .5; }
.odo__digit {
  display: inline-block; width: .7em; height: 1.16em; overflow: hidden;
  background: linear-gradient(180deg, #0C0912 0%, #1D1728 48%, #0C0912 52%, #1A1524 100%);
  border-radius: .14em;
  box-shadow: inset 0 0 0 2px rgba(255, 245, 228, .12), 0 .06em 0 rgba(0, 0, 0, .6);
  color: var(--mustard);
}
.odo__strip {
  display: flex; flex-direction: column;
  transition: translate 1.6s cubic-bezier(.2, .85, .25, 1);
}
.odo__strip span { height: 1.16em; line-height: 1.22em; text-align: center; }
.odo__sep { color: var(--cream); margin-inline: -.02em; translate: 0 .12em; }

/* tiles */
.tiles {
  list-style: none; margin: 0 0 1.25rem; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem;
}
.tile, .chart {
  background: var(--night-raised);
  border: 1px solid var(--night-line); border-radius: 22px;
}
.tile { display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem 1.4rem 1.2rem; }
.tile--live { border-color: rgba(61, 220, 132, .4); box-shadow: 0 0 34px rgba(61, 220, 132, .09); }
.tile__label {
  display: flex; align-items: center; gap: .55rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--night-muted);
}
.tile__value {
  font-family: var(--display); font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1;
  color: var(--cream); font-variant-numeric: tabular-nums;
}
.tile__unit { font-size: .55em; margin-left: .06em; color: var(--night-muted); }
.tile__unit[hidden] { display: none; }
.tile__note { font-size: .88rem; line-height: 1.35; color: var(--night-muted); }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .tiles { gap: .75rem; }
  .tile { padding: 1rem 1rem .95rem; border-radius: 18px; }
  .tile__label { font-size: .68rem; letter-spacing: .08em; }
}

/* chart */
.chart { margin: 0; padding: clamp(1.1rem, 3vw, 1.75rem); }
.chart__head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .9rem 1.5rem;
  margin-bottom: 1rem;
}
.chart__title { font-family: var(--display); font-size: 1.4rem; letter-spacing: .02em; text-transform: uppercase; color: var(--cream); }
.chart__sub { margin: .15rem 0 0; font-size: .9rem; color: var(--night-muted); }

.seg {
  display: inline-flex; padding: 4px; gap: 2px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--night-line); border-radius: 999px;
}
.seg__btn {
  min-width: 3.1rem; padding: .4rem .8rem;
  font: 700 .8rem/1 var(--body); letter-spacing: .08em;
  color: var(--night-muted); background: none; border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.seg__btn:hover { color: var(--cream); }
.seg__btn[aria-pressed='true'] { background: var(--cream); color: var(--ink); }

.chart__stage { position: relative; height: clamp(210px, 30vw, 300px); }
.chart__plot { position: absolute; inset: 0; border-radius: 10px; transition: opacity .25s; }
.chart__plot.is-loading { opacity: .45; }
.chart__plot svg { display: block; width: 100%; height: 100%; overflow: visible; touch-action: pan-y; }
.chart__grid { stroke: rgba(255, 245, 228, .09); stroke-width: 1; }
.chart__axis { fill: var(--night-muted); font: 500 12px var(--body); }
.chart__line { fill: none; stroke: var(--coral); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__area { fill: var(--coral); opacity: .12; }
.chart__dot { fill: var(--coral); stroke: var(--night-raised); stroke-width: 2; }
.chart__cross { stroke: rgba(255, 245, 228, .4); stroke-width: 1; }
.chart__peak { fill: var(--night-text); font: 600 12px var(--body); }

.chart__tip {
  position: absolute; z-index: 2; pointer-events: none;
  padding: .4rem .7rem .45rem; translate: -50% calc(-100% - 12px);
  font-size: .8rem; line-height: 1.3; white-space: nowrap;
  color: var(--ink-soft); background: var(--cream); border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}
.chart__tip[hidden] { display: none; }
.chart__tip strong { display: block; font-size: 1.05rem; font-weight: 800; color: var(--ink); }

.chart__empty {
  position: absolute; inset: 0; margin: 0;
  display: grid; place-content: center; padding: 1rem; text-align: center;
  color: var(--night-muted);
}
.chart__empty[hidden] { display: none; }

.stats__foot { margin: 1.25rem 0 0; text-align: center; font-size: .85rem; color: var(--night-muted); }

/* ── gallery ── */

.gallery {
  padding-top: clamp(5.5rem, 10vw, 8.5rem);
  background: linear-gradient(180deg, var(--peach) 0%, var(--cream) 85%);
}
.postcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.1rem, 3vw, 2rem); }
.postcard {
  display: block; padding: 10px 10px 0; margin: 0;
  font: inherit; color: inherit; text-align: left; cursor: zoom-in;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink);
  transition: translate .3s var(--ease-out), rotate .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.postcard--wide { grid-column: 1 / -1; }
.postcard img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.postcard--wide img { aspect-ratio: 2.3; object-position: 50% 32%; }
.postcard__caption {
  display: block; padding: .6rem .4rem .65rem;
  font-family: var(--script); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); line-height: 1.1;
}
.postcard:hover { translate: -4px -4px; rotate: -.6deg; box-shadow: 14px 14px 0 var(--red); }
.postcard:nth-child(3):hover { rotate: .6deg; box-shadow: 14px 14px 0 var(--teal); }

@media (max-width: 760px) {
  .postcards { grid-template-columns: 1fr; }
  .postcard--wide img { aspect-ratio: 16 / 9; object-position: 78% 50%; }
  .postcard { box-shadow: 6px 6px 0 var(--ink); }
}

.lightbox {
  width: fit-content; max-width: min(1500px, 94vw); padding: 0;
  background: none; border: 0; overflow: visible;
}
.lightbox::backdrop { background: rgba(21, 13, 13, .88); backdrop-filter: blur(6px); }
.lightbox[open] { animation: logo-pop .35s var(--ease-out) both; }
.lightbox figure { margin: 0; }
.lightbox img {
  display: block; max-width: 100%; max-height: 80vh; width: auto;
  border: 4px solid var(--cream); border-radius: 16px; background: var(--ink);
}
.lightbox figcaption { margin-top: .8rem; text-align: center; font-size: 1.7rem; color: var(--cream); }
.lightbox__close {
  position: absolute; top: -18px; right: -14px; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: #fff; background: var(--red); border: 3px solid var(--ink); border-radius: 50%;
  box-shadow: 0 4px 0 var(--ink); cursor: pointer;
}
.lightbox__close svg { width: 18px; height: 18px; }

/* ── contact ── */

.contact { background: var(--cream); padding-top: clamp(1rem, 3vw, 2.5rem); }
.contact__grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.contact__copy p:not(.lead):not(.script) { color: var(--ink-soft); max-width: 32em; }
.contact__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.75rem; margin-top: 1.75rem; }
.contact__links .btn__icon { width: 1.25em; height: 1.25em; }
.contact__links .btn:hover .btn__icon { translate: none; rotate: -8deg; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.check {
  --accent: var(--red);
  display: flex; flex-direction: column; padding: 1.1rem 1.25rem 1rem; rotate: -2deg;
  background:
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(47, 163, 154, .22) 33px 34px),
    var(--paper);
  border: 3px solid var(--ink); border-radius: 8px 8px 20px 20px;
  box-shadow: 7px 7px 0 var(--accent);
  transition: rotate .3s var(--ease-pop), translate .3s var(--ease-pop);
}
.check--teal { --accent: var(--teal); rotate: 1.5deg; margin-top: 1.25rem; margin-bottom: -1.25rem; }
.check:hover { rotate: 0deg; translate: 0 -4px; }
.check__head {
  display: flex; justify-content: space-between; gap: .5rem; padding-bottom: .5rem; margin-bottom: .9rem;
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); border-bottom: 2px solid var(--accent);
}
.check--teal .check__head { color: var(--teal-deep); }
.check__title { font-family: var(--display); font-size: 1.55rem; line-height: 1.1; text-transform: uppercase; }
.check p { margin: .4rem 0 1.1rem; font-size: .95rem; line-height: 1.45; color: var(--ink-soft); }
.check__mail {
  display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  margin-top: auto; padding: .4rem .85rem;
  font-size: .98rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere;
  background: var(--mustard); border: 2.5px solid var(--ink); border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
  transition: translate .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.check__mail:hover { translate: 0 -2px; box-shadow: 0 5px 0 var(--ink); }
.check__mail svg { flex: none; width: 1.15em; height: 1.15em; }
.check__foot {
  margin-top: 1.1rem; text-align: center;
  font-family: var(--script); font-size: 1.3rem; line-height: 1.2; color: var(--teal-deep);
}

@media (max-width: 1020px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .checks { grid-template-columns: 1fr; }
  .check--teal { margin-block: 0; }
}

/* ── footer ── */

.footer { background: var(--ink); color: #D9CBBE; }
.footer__inner {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center;
  padding-block: 2.75rem 2.25rem;
}
.footer__brand p { margin: .4rem 0 0; font-size: .95rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; font-weight: 600; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--mustard); }
.footer__legal {
  grid-column: 1 / -1; margin: 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 245, 228, .14);
  font-size: .8rem; line-height: 1.55; color: #A8998D;
}
@media (max-width: 700px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ── document pages (privacy, 404) ── */

.page-plain .nav { position: sticky; top: 0; background: rgba(255, 245, 228, .94); box-shadow: 0 3px 0 var(--ink); }
.page-plain .nav__links { display: flex; position: static; flex-direction: row; padding: 0; background: none; box-shadow: none; margin-inline: auto 0; }
.page-plain .nav__links a { border: 0; font-size: 1rem; padding: .3em 0; }

.doc-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); text-align: center;
  background: linear-gradient(180deg, var(--peach) 0%, var(--cream) 100%);
}
.doc-hero .title { margin-bottom: .2em; }
.doc-hero p { margin: 0 auto; max-width: 36em; color: var(--ink-soft); }
.doc { width: min(44rem, 100% - 2 * var(--gutter)); margin: 0 auto; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(4rem, 8vw, 6rem); }
.doc h2 {
  margin: 2.4em 0 .5em;
  font-family: var(--display); font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); line-height: 1.15;
  letter-spacing: .02em; text-transform: uppercase;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 1.6em 0 .4em; font-size: 1.1rem; font-weight: 700; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: .45em; }
.doc li::marker { color: var(--red); }
.doc a { font-weight: 600; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc a:hover { color: var(--red-deep); }
.callout {
  margin: 1.5rem 0; padding: 1.25rem 1.4rem;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 6px 6px 0 var(--teal);
}
.callout > :last-child { margin-bottom: 0; }
.callout strong { font-weight: 800; }

.lost {
  display: grid; place-content: center; justify-items: center; gap: .5rem;
  min-height: calc(100svh - var(--nav-h) - 24px); padding: 3rem var(--gutter); text-align: center;
  background:
    radial-gradient(rgba(30, 20, 20, .055) 1.5px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--peach) 0%, var(--cream) 70%);
}
.lost__code {
  font-family: var(--display); font-size: clamp(6rem, 3rem + 18vw, 13rem); line-height: .85;
  color: var(--red); text-shadow: .04em .04em 0 var(--ink);
}
.lost p { max-width: 28em; color: var(--ink-soft); }
.lost .tumbleweed { position: static; translate: none; width: 64px; animation: none; }
.lost .hero__cta { justify-content: center; animation: none; }

/* ── scroll reveals (only when JS is running) ── */

.js [data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition:
    opacity .8s var(--ease-out), transform .8s var(--ease-out),
    translate .3s var(--ease-out), rotate .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .dish { opacity: 0; translate: 0 16px; transition: opacity .6s var(--ease-out), translate .6s var(--ease-out); }
.js .is-in .dish { opacity: 1; translate: none; }
.is-in .dish:nth-child(1) { transition-delay: .10s; }
.is-in .dish:nth-child(2) { transition-delay: .16s; }
.is-in .dish:nth-child(3) { transition-delay: .22s; }
.is-in .dish:nth-child(4) { transition-delay: .28s; }
.is-in .dish:nth-child(5) { transition-delay: .34s; }
.is-in .dish:nth-child(6) { transition-delay: .40s; }
.is-in .dish:nth-child(7) { transition-delay: .46s; }
.is-in .dish:nth-child(8) { transition-delay: .52s; }

/* ── keyframes ── */

@keyframes rise { from { opacity: 0; translate: 0 22px; } }
@keyframes logo-pop { from { opacity: 0; scale: .82; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes ticker { to { translate: -50% 0; } }
@keyframes ping { 0% { scale: 1; opacity: .7; } 80%, 100% { scale: 2.8; opacity: 0; } }
@keyframes twinkle { 0%, 100% { scale: 1; rotate: 0deg; opacity: 1; } 50% { scale: .55; rotate: 45deg; opacity: .55; } }
@keyframes haze { from { translate: -5% 0; } to { translate: 5% -1.5%; } }
@keyframes scene-breathe { from { scale: 1; } to { scale: 1.035; } }

/* marquee chase: one bulb in three goes dark, and the dark spot walks along the sign */
@keyframes chase { 0%, 30% { opacity: .82; } 33.4%, 100% { opacity: 0; } }
@keyframes glow { 0%, 30% { opacity: .1; } 33.4%, 100% { opacity: .6; } }
@keyframes flicker {
  0%, 18%, 22%, 62%, 64%, 100% { opacity: .9; }
  20%, 63% { opacity: .35; }
}
@keyframes neon-on {
  0% { opacity: .12; } 8% { opacity: 1; } 12% { opacity: .2; } 20% { opacity: 1; }
  24% { opacity: .15; } 40% { opacity: .15; } 46% { opacity: 1; } 50% { opacity: .5; } 56%, 100% { opacity: 1; }
}
@keyframes neon-hum { 0%, 91%, 94%, 100% { opacity: 1; } 92.5% { opacity: .72; } }
@keyframes tumble-x { from { translate: -120% 0; } 55%, to { translate: calc(100vw + 120%) 0; } }
@keyframes tumble-spin { to { rotate: 360deg; } }
@keyframes tumble-hop { from { translate: 0 0; } to { translate: 0 -22px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .bulb__dim { opacity: 0; }
  .tumbleweed { display: none; }
  .js .neon__tube { opacity: 1; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .dish { opacity: 1; translate: none; }
}
