/* Turbo Tap Masters — landing (home + guide pages). The legal pages still use styles.css. */

@font-face {
  font-family: "Lilita One";
  src: url("/assets/fonts/lilita-one.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d150e;
  --bg-2: #142016;
  --bg-3: #0a0f0a;
  --bg-foot: #080d09;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --gold: #f2b632;
  --gold-hi: #ffd76a;
  --line: rgba(242, 182, 50, 0.22);
  --pad: clamp(20px, 6.6vw, 96px);
  --display: "Lilita One", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, video { display: block; max-width: 100%; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; color: var(--ink); }
.eyebrow { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.h2 { font-size: clamp(34px, 4.4vw, 56px); }
.lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--pad); }

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 84px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: clamp(20px, 3.9vw, 56px);
  background: linear-gradient(to bottom, rgba(6, 10, 6, 0.72), rgba(6, 10, 6, 0));
}
.nav__brand { font-family: var(--display); font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: 0.02em; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); font-size: 16px; font-weight: 600; }
.nav__links a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav__links a:hover { color: var(--gold-hi); }
.nav__cta {
  height: 44px; padding: 0 22px; border-radius: 12px; background: var(--gold); color: #221503 !important; font-weight: 700;
}
.nav__cta:hover { background: var(--gold-hi); }
@media (max-width: 760px) {
  .nav { height: 64px; }
  .nav__links { display: none; }
  .nav__brand { font-size: 19px; visibility: hidden; } /* the mobile key art carries the logo right under it */
  .nav__cta { height: 40px; padding: 0 16px; }
}

/* ── store buttons ───────────────────────────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store { display: block; height: 60px; border-radius: 9px; transition: transform 0.15s ease; }
.store img { height: 100%; width: auto; }
.store--dark { background: rgba(6, 10, 6, 0.55); }
.store--light { background: #f6ecd2; }
.store:hover { transform: translateY(-2px); }
@media (max-width: 760px) { .store { height: 54px; } .stores { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .store { transition: none; } .store:hover { transform: none; } }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; }
.hero__art { position: relative; }
.hero__art picture img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero__art::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%;
  background: linear-gradient(to bottom, rgba(13, 21, 14, 0), var(--bg));
}
.hero__panel {
  position: relative; z-index: 2; margin: clamp(-90px, -6vw, -60px) auto 0; width: min(1248px, calc(100% - 2 * var(--pad)));
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 34px 44px; border-radius: 26px; border: 1.5px solid var(--line);
  background: rgba(13, 21, 14, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.hero h1 { font-size: clamp(32px, 3.3vw, 46px); }
.hero__sub { margin-top: 8px; color: var(--muted); font-size: 18px; max-width: 640px; }
.hero__get { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.hero__note { font-size: 13px; color: var(--muted); }

@media (max-width: 960px) {
  .hero__panel { flex-direction: column; align-items: flex-start; padding: 28px; }
  .hero__get { align-items: flex-start; }
}
@media (max-width: 760px) {
  .hero__art picture img { aspect-ratio: 9 / 16; }
  .hero__art::after { height: 27%; background: linear-gradient(to bottom, rgba(13, 21, 14, 0), rgba(13, 21, 14, 0.88)); }
  /* the mobile art keeps a calm strip of grass at the bottom — the store buttons sit on it */
  .hero__get--onart { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 20px; align-items: center; }
  .hero__get--onart .hero__note { color: var(--ink); }
  .hero__panel { margin: 0; width: 100%; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 32px 20px 8px; }
  .hero__panel .hero__get { display: none; }
  .hero h1 { font-size: 36px; }
  .hero__sub { font-size: 16.5px; }
}
@media (min-width: 761px) { .hero__get--onart { display: none; } }

/* ── sections ────────────────────────────────────────────────────────── */
.section { padding-block: clamp(56px, 7vw, 100px); }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; flex-direction: column; gap: 14px; }
.section__head--center { align-items: center; text-align: center; }
.section__head--center .lead { max-width: 760px; }
.section__head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section__head--split .lead { max-width: 520px; }
@media (max-width: 860px) { .section__head--split { flex-direction: column; align-items: flex-start; gap: 14px; } }

.ticks { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.45; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }

/* ── classes ─────────────────────────────────────────────────────────── */
.classes { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.class {
  position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); background: var(--bg-3);
  display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 24px 16px 26px; text-align: center;
}
/* fixed box: the cutouts have different proportions, and a percentage-height image let the box follow the image */
.class__art { position: relative; flex: none; width: 100%; max-width: 230px; height: 260px; }
.class__art::before, .class__art::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.class__art::before { width: 100%; aspect-ratio: 1; background: var(--c); opacity: 0.62; filter: blur(64px); }
.class__art::after { width: 48%; aspect-ratio: 1; background: color-mix(in srgb, var(--c) 55%, white); opacity: 0.7; filter: blur(30px); }
.class__art img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; transform: translateY(var(--dy, 0)) scale(var(--s, 1)); transform-origin: 50% 70%; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.55)); }
.class h3 { font-size: 30px; }
.class__tag { font-size: 15px; font-weight: 700; color: var(--c); }
.class__desc { font-size: 14px; line-height: 1.45; color: var(--muted); }
.class__txt { display: flex; flex-direction: column; gap: 5px; align-items: center; }
@media (max-width: 1100px) {
  .classes { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 210px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); padding-bottom: 8px; scrollbar-width: thin; }
  .class { scroll-snap-align: start; border-radius: 20px; gap: 12px; padding: 16px 12px 18px; }
  .class h3 { font-size: 22px; } .class__tag { font-size: 13px; } .class__desc { font-size: 12.5px; }
  .class__art { max-width: 170px; height: 190px; }
}

/* ── split feature (text + phones) ───────────────────────────────────── */
.split { display: flex; align-items: center; gap: 64px; }
.split--flip { flex-direction: row-reverse; }
.split__txt { flex: 0 1 520px; display: flex; flex-direction: column; gap: 22px; }
.split__phones { flex: 1; display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2.5vw, 36px); }
.phone { width: clamp(150px, 20vw, 290px); aspect-ratio: 620 / 1348; border: 7px solid #1d2a1f; border-radius: 13% / 6%; overflow: hidden; background: #000; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone--l { transform: rotate(-4deg); } .phone--r { transform: rotate(3deg); }
@media (max-width: 860px) { .split, .split--flip { flex-direction: column; align-items: stretch; gap: 32px; } .split__txt { flex: none; } }

/* ── loot bento ──────────────────────────────────────────────────────── */
.bento { margin-top: 44px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-3); overflow: hidden; }
.tile h3 { font-size: 24px; }
.tile p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tile__body { position: relative; z-index: 2; padding: 18px 24px 22px; display: flex; flex-direction: column; gap: 4px; }
.tile--chest { grid-column: span 7; display: flex; flex-direction: column; }
.tile--chest img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
/* art tiles: the picture fills the tile, the copy sits on the dark lower part the art was painted with */
.tile--art { display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; }
.tile--art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.tile--art::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(to top, rgba(6, 10, 6, 0.96) 0%, rgba(6, 10, 6, 0.8) 45%, rgba(6, 10, 6, 0) 100%); }
.tile--epic { grid-column: span 5; grid-row: span 2; }
.tile--epic h3 { font-size: 30px; }
.tile--epic p { font-size: 16px; max-width: 420px; }
.tile--epic .tile__body { padding: 28px 32px 32px; gap: 10px; }
.tile--gems { grid-column: span 3; } .tile--forge { grid-column: span 4; }
.tile--forge img { object-position: 70% 0; }
/* the gems tile is narrow: fit the whole arc of six gems by width instead of cropping the sides */
.tile--gems { background: #050a08; }
.tile--gems img { inset: 0 0 auto 0; height: auto; object-fit: contain; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile--chest, .tile--epic { grid-column: span 2; grid-row: auto; }
  .tile--gems, .tile--forge { grid-column: span 2; } /* half-width tiles put the copy over the art */
  .tile--art { min-height: 320px; } .tile--epic { min-height: 460px; }
  .tile h3 { font-size: 19px; } .tile p { font-size: 13.5px; }
  .tile__body { padding: 14px 16px 16px; } .tile--epic .tile__body { padding: 18px 18px 20px; } .tile--epic h3 { font-size: 24px; } .tile--epic p { font-size: 14.5px; }
}

/* ── biomes ──────────────────────────────────────────────────────────── */
.biomes { margin-top: 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; list-style: none; }
.biome { position: relative; aspect-ratio: 232 / 260; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.biome__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.biome::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 10, 6, 0.95) 0%, rgba(6, 10, 6, 0.55) 38%, rgba(6, 10, 6, 0) 70%); }
.biome__n { position: absolute; z-index: 2; left: 14px; top: 12px; font-family: var(--display); font-size: 16px; color: var(--gold); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }
.biome__boss { position: absolute; z-index: 2; right: -10px; bottom: 20%; width: 64%; height: auto; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.6)); }
.biome__txt { position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 1px; }
.biome__txt h3 { font-size: clamp(19px, 1.9vw, 26px); }
.biome__txt span { font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) { .biomes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .biome { aspect-ratio: 169 / 180; } .biome__boss { width: 58%; } }

/* ── trailer ─────────────────────────────────────────────────────────── */
.trailer { position: relative; margin: 40px auto 0; max-width: 1080px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.trailer video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.trailer__play { position: absolute; inset: 0; margin: auto; width: max-content; height: 56px; padding: 0 26px 0 20px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 28px; background: var(--gold); color: #221503; font: 700 17px var(--body); cursor: pointer; }
.trailer__play[hidden], .trailer__sound[hidden] { display: none; }
.trailer__play span { width: 14px; height: 18px; background: #221503; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.trailer__play:hover { background: var(--gold-hi); }
.trailer__sound { position: absolute; right: 16px; bottom: 16px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 10, 6, 0.7); color: var(--ink); font: 600 14px var(--body); cursor: pointer; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; align-items: start; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-3); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; position: relative; font-weight: 700; font-size: 17px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 26px; width: 10px; height: 10px; border-right: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(45deg); transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ── closing ─────────────────────────────────────────────────────────── */
.close { position: relative; overflow: hidden; background: var(--bg-foot); border-top: 1px solid var(--line); min-height: 640px; display: flex; align-items: center; }
.close__art { position: absolute; inset: 0; }
.close__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.close::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(to right, rgba(8, 13, 9, 0.88) 0%, rgba(8, 13, 9, 0.6) 30%, rgba(8, 13, 9, 0) 52%), linear-gradient(to top, var(--bg-foot) 0%, rgba(8, 13, 9, 0) 18%); }
.close__txt { position: relative; z-index: 2; max-width: 600px; display: flex; flex-direction: column; gap: 24px; padding-block: 64px; }
.close__logo { width: 300px; height: auto; }
.close h2 { font-size: clamp(32px, 3.6vw, 50px); }
@media (max-width: 860px) {
  .close { flex-direction: column; align-items: stretch; min-height: 0; }
  .close__art { position: relative; height: 400px; }
  .close__art img { object-position: 78% 50%; }
  .close__art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(to top, var(--bg-foot), rgba(8, 13, 9, 0)); }
  .close::before { display: none; }
  .close__txt { align-items: center; text-align: center; margin: 0 auto; padding-block: 8px 56px; gap: 18px; }
  .close__logo { width: 230px; }
  .close .stores { justify-content: center; }
}

/* ── footer ──────────────────────────────────────────────────────────── */
.foot { background: var(--bg-foot); padding-block: 56px; }
.foot__inner { display: flex; justify-content: space-between; gap: 64px; flex-wrap: wrap; }
.foot__brand { max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.foot__brand strong { font-family: var(--display); font-weight: 400; font-size: 24px; }
.foot__brand p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.foot__cols { display: flex; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap; }
.foot__cols h2 { font-family: var(--body); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.foot__cols ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.foot__cols a { color: var(--ink); text-decoration: none; font-size: 16px; min-height: 36px; display: inline-flex; align-items: center; }
.foot__cols a:hover { color: var(--gold-hi); }

/* ── guide pages ─────────────────────────────────────────────────────── */
.page { padding: 132px var(--pad) 80px; }
.page__inner { max-width: 860px; margin: 0 auto; }
.page h1 { font-size: clamp(36px, 5vw, 58px); }
.page__lead { margin-top: 18px; font-size: 19px; color: var(--muted); }
.page h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 56px; }
.page h3 { font-size: 22px; margin-top: 32px; color: var(--gold); }
.page p, .page li { margin-top: 14px; color: rgba(255, 255, 255, 0.86); }
.page ul, .page ol { padding-left: 22px; }
.page__hero { float: right; width: 180px; height: auto; margin: 48px 0 12px 28px; filter: drop-shadow(0 12px 12px rgba(0,0,0,0.5)); }
.page h2 { clear: both; }
@media (max-width: 640px) { .page__hero { float: none; margin: 40px auto 0; width: 160px; } .page__hero + h2 { margin-top: 12px; } }
.page__cta { clear: both; margin-top: 56px; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; gap: 16px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* ── reveal ──────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
