/* Turbo Tap Masters landing.
   Locked dark theme: the game and the brand are dark, a light mode would break both.
   One accent (gold, taken from the logo), one radius system (16px surfaces, pill controls). */

@font-face {
  font-family: "Orbitron";
  src: url("/assets/Orbitron.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b100c;
  --bg-2: #101710;
  --surface: rgba(255, 255, 255, 0.045);
  --line: rgba(232, 180, 74, 0.16);
  --line-soft: rgba(255, 255, 255, 0.09);
  --text: #ecebe3;
  --muted: #9ba79b;
  --gold: #e8b44a;
  --gold-deep: #c08c26;
  --r: 16px;
  --pad: clamp(20px, 5vw, 64px);
  --display: "Orbitron", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }
h2 { font-size: clamp(28px, 4.4vw, 48px); }
h3 { font-size: 19px; letter-spacing: 0.01em; }

/* ── store buttons ────────────────────────────────────────────────────────── */
/* Our own buttons carrying the two brand marks, not Google's and Apple's badge
   artwork — the black badges read as stickers on this dark page. The marks are
   inline SVG so they stay crisp and can be sized off the text. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  --mark: 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 17px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(236, 235, 227, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 8px 24px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}
.store:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 180, 74, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.09) inset, 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(232, 180, 74, 0.09);
}
.store:active { transform: translateY(0); }
.store__mark { width: var(--mark); height: var(--mark); flex: none; fill: var(--text); }
/* the Play mark is drawn on its own colours and its glyph sits lighter than the
   Apple one, so it gets a touch more size to match optically */
.store__mark--play { width: calc(var(--mark) * 0.92); height: calc(var(--mark) * 0.92); }
.store__txt { display: grid; line-height: 1.15; text-align: left; }
.store__txt small {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.store__txt strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.005em;
}

/* compact pair for the top bar: one line, no lead-in. Never wraps — the bar is a
   fixed 68px and a second row would spill over the page instead of growing it. */
.stores--nav { gap: 10px; flex-wrap: nowrap; }
.stores--nav .store { --mark: 19px; gap: 9px; padding: 8px 15px 8px 13px; border-radius: 11px; }
.stores--nav .store__txt small { display: none; }
.stores--nav .store__txt strong { font-size: 13px; white-space: nowrap; }

@media (max-width: 760px) {
  .stores--nav { gap: 8px; }
  .stores--nav .store { --mark: 17px; gap: 8px; padding: 7px 12px 7px 10px; }
  .stores--nav .store__txt strong { font-size: 12px; }
}
/* below this the two names stop fitting beside the app icon, so the marks carry
   the buttons on their own */
@media (max-width: 430px) {
  .stores--nav .store { padding: 9px; gap: 0; }
  .stores--nav .store__txt { display: none; }
}

.stores--lg { justify-content: center; }
.stores--lg .store { --mark: 30px; padding: 13px 24px 13px 20px; }
.stores--lg .store__txt strong { font-size: 18px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 11px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(6, 10, 7, 0.9), rgba(6, 10, 7, 0));
  backdrop-filter: blur(8px);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav__brand img { border-radius: 8px; }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links > a {
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.18s;
}
.nav__links > a:hover { color: var(--text); }

@media (max-width: 860px) {
  .nav__links > a { display: none; }
  .nav__brand span { display: none; }
}

/* ── hero ─────────────────────────────────────────────────────────────────── */
.hero { padding: 100px var(--pad) clamp(36px, 6vh, 72px); }
.hero__frame {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: clamp(14px, 1.6vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(232, 180, 74, 0.22);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.66);
  background: #05070b;
}
.hero__video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero__sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(6, 10, 7, 0.66);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(236, 235, 227, 0.28);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}
.hero__sound:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 640px) {
  .hero { padding-top: 88px; }
  .hero__sound { right: 10px; bottom: 10px; font-size: 10px; padding: 7px 12px; }
}

/* ── facts ────────────────────────────────────────────────────────────────── */
.facts { padding: 0 var(--pad); background: var(--bg); }
.facts__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  padding: 30px 8px 30px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fact + .fact { padding-left: 26px; border-left: 1px solid var(--line-soft); }
.fact__n { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: var(--gold); }
.fact__l { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) {
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

/* ── split sections ───────────────────────────────────────────────────────── */
.split { position: relative; padding: clamp(72px, 12vh, 140px) var(--pad); overflow: hidden; }
.split__plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: blur(3px) saturate(0.8);
  z-index: 0;
}
.split::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 16, 12, 0.82) 40%, var(--bg) 100%);
}
.split__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split--flip .split__inner { grid-template-columns: 0.85fr 1.15fr; }
.split__copy p { margin-top: 18px; color: #c8ccc5; max-width: 56ch; }
.split__shot img {
  width: min(320px, 100%);
  margin: 0 auto;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}
.ticks { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.ticks li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
@media (max-width: 900px) {
  .split__inner, .split--flip .split__inner { grid-template-columns: 1fr; }
  .split--flip .split__shot { order: 2; }
}

/* ── loot bento ───────────────────────────────────────────────────────────── */
.loot { padding: clamp(72px, 12vh, 140px) var(--pad); background: var(--bg-2); }
.loot__head { max-width: 1200px; margin: 0 auto 36px; }
.bento {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bento__cell {
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 26px;
  overflow: hidden;
}
.bento__cell p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.bento__art { width: 80px; height: 80px; object-fit: contain; margin-bottom: 16px; }
.bento__cell figcaption {
  padding: 18px 22px 20px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}

.bento__cell--chest { grid-column: 1 / 3; padding: 0; display: flex; flex-direction: column; }
.bento__cell--chest img { width: 100%; height: 300px; object-fit: cover; object-position: 50% 50%; }

.bento__cell--drop { grid-column: 3; grid-row: 1 / 3; padding: 0; display: flex; flex-direction: column; }
.bento__cell--drop img { width: 100%; flex: 1 1 auto; min-height: 260px; height: 100%; object-fit: cover; object-position: 50% 34%; }

.bento__cell--gem { grid-column: 1; background: radial-gradient(120% 130% at 12% 0%, rgba(64, 176, 122, 0.22), rgba(255, 255, 255, 0.03)); }
.bento__cell--epic { grid-column: 2; background: radial-gradient(120% 130% at 12% 0%, rgba(232, 180, 74, 0.2), rgba(255, 255, 255, 0.03)); }
.bento__cell--forge { grid-column: 1 / 4; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--chest { grid-column: 1 / 3; }
  .bento__cell--drop { grid-column: 1 / 3; grid-row: auto; }
  .bento__cell--drop img { height: 340px; flex: none; }
  .bento__cell--gem { grid-column: 1; }
  .bento__cell--epic { grid-column: 2; }
  .bento__cell--forge { grid-column: 1 / 3; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell--chest, .bento__cell--drop, .bento__cell--gem, .bento__cell--epic, .bento__cell--forge { grid-column: 1; }
  .bento__cell--chest img { height: 220px; }
}

/* ── biome rail ───────────────────────────────────────────────────────────── */
.biomes { padding: clamp(72px, 12vh, 140px) 0; }
.biomes__head, .biomes__foot { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.biomes__foot { margin-top: 26px; color: var(--muted); }
.biomes__foot span { display: block; max-width: 62ch; }
.rail {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--pad) 14px;
  scrollbar-width: thin;
}
.rail__card {
  position: relative;
  flex: 0 0 min(440px, 78vw);
  scroll-snap-align: start;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.rail__card img { width: 100%; height: 260px; object-fit: cover; }
.rail__label {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(0deg, rgba(6, 10, 7, 0.94), rgba(6, 10, 7, 0));
}
.rail__label span:first-child { font-family: var(--display); font-weight: 800; font-size: 20px; }
.rail__label span:last-child { font-size: 13px; color: var(--muted); }

/* ── close ────────────────────────────────────────────────────────────────── */
.close { position: relative; padding: clamp(80px, 14vh, 160px) var(--pad); overflow: hidden; text-align: center; }
.close__plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  z-index: 0;
}
.close::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(90% 80% at 50% 50%, rgba(11, 16, 12, 0.5) 0%, rgba(11, 16, 12, 0.93) 78%);
}
.close__inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.close__logo { width: min(420px, 82%); height: auto; margin: 0 auto 22px; }
.close__inner p { color: #d5d8d1; margin-bottom: 28px; }

/* ── footer ───────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line-soft); padding: 52px var(--pad) 56px; background: var(--bg); }
.foot__inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 30px; }
.foot__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 14px; }
.foot__brand img { border-radius: 7px; }

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
}
.foot__head {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.foot__list { list-style: none; display: grid; gap: 11px; }
.foot__list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s;
}
.foot__list a:hover { color: var(--gold); }
/* the marks ride on currentColor, so a link and its icon light up together —
   full-colour brand glyphs down here would out-shout the page */
.flink__i { width: 17px; height: 17px; flex: none; fill: currentColor; }
.flink__i--stroke { fill: none; }

.foot__legal { font-size: 12.5px; color: #6f7a70; max-width: 70ch; }

@media (max-width: 720px) {
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__cols > .foot__col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .foot__cols { grid-template-columns: 1fr; }
  .foot__cols > .foot__col:last-child { grid-column: auto; }
}

/* ── reveal on scroll ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .store { transition: none; }
}

/* ── legal pages (privacy, terms, delete account) ─────────────────────────── */
.legal { padding: 132px var(--pad) 96px; }
.legal__inner { max-width: 820px; margin: 0 auto; }
.legal__back {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 26px;
}
.legal__back:hover { color: var(--gold); }
.legal h1 { font-size: clamp(32px, 5.6vw, 54px); }
.legal__meta {
  margin-top: 14px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.legal__lead { margin-top: 26px; color: #c9cec6; }
.legal h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.legal h3 { margin-top: 32px; color: var(--gold); }
.legal p { margin-top: 16px; color: #c9cec6; }
.legal ul, .legal ol { margin: 16px 0 0 22px; display: grid; gap: 10px; color: #c9cec6; }
.legal li { padding-left: 4px; }
.legal li::marker { color: var(--gold-deep); }
.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: #f3c364; }
.legal strong { color: var(--text); font-weight: 700; }

.legal__note {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
}

.legal__tablewrap { margin-top: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.legal th {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom-color: var(--line);
}
.legal td { color: #c9cec6; }
.legal td:first-child { color: var(--text); font-weight: 600; width: 22%; }
.legal tbody tr:last-child td { border-bottom: none; }

/* ── 404 ──────────────────────────────────────────────────────────────────── */
.lost {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px var(--pad) 60px;
  overflow: hidden;
  text-align: center;
}
.lost__plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.lost__inner { position: relative; max-width: 560px; }
.lost__code {
  font-family: var(--display);
  font-size: clamp(64px, 14vw, 132px);
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  opacity: 0.28;
}
.lost h1 { font-size: clamp(28px, 5vw, 44px); margin-top: -6px; }
.lost__sub { margin-top: 16px; color: #c9cec6; }
.lost__links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.lost__links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.lost__links a:first-child { color: var(--gold); }
.lost__links a:hover { color: var(--text); }

/* the stand-in for the trailer until someone asks for it (phones, reduced motion) */
.hero__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: max-content;
  height: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px 13px 18px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1a1206;
  background: var(--gold);
  border: none;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.hero__play-mark {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #1a1206;
}
.hero__play:hover { background: #f3c364; }
.hero__play[hidden] { display: none; }
.hero__sound[hidden] { display: none; }
