/* The home page. Gold arrives as whole screens, at the moments that matter. */

@property --c { syntax: "<color>"; inherits: true; initial-value: #f79000; }

:root {
  --gold: #ffd60a;
  --ink: #050505;
  --paper: #f2f2f2;
  --muted: #8a8a8a;
  --line: #222;
  --g: clamp(16px, 2.6vw, 40px);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 18px/1.5 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.display { font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: uppercase; line-height: .98; letter-spacing: .002em; }
.label { font: 600 13px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sub { color: #b5b5b5; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.35; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
section[id] { scroll-margin-top: 64px; }

/* Nav: ink on the gold hero, gold-and-white once it reaches the dark. */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 12px var(--g); color: var(--ink); transition: background .25s, color .25s; }
.nav.dark { background: rgba(5, 5, 5, .9); color: var(--paper); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.brand { font: 600 14px/1 var(--mono); letter-spacing: .14em; }
.nav nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 15px; }
.nav-cta { padding: 9px 18px; border-radius: 999px; background: var(--ink); color: var(--gold); }
.nav.dark .nav-cta { background: var(--gold); color: var(--ink); }

/* Hero */
.hero { position: relative; z-index: 2; min-height: 100vh; min-height: min(100svh, 1100px); padding: 64px var(--g) 0; background: var(--gold); color: var(--ink); display: flex; flex-direction: column; overflow-x: clip; }
.hero h1 { font-size: 19.4vw; font-size: min(19.4vw, 36svh); line-height: .95; }
.hero h1 span { display: block; overflow: hidden; padding-top: .02em; white-space: nowrap; }
.hero h1 b { display: block; font-weight: 400; animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; }
.hero h1 span + span b { animation-delay: .09s; }
@keyframes rise { from { transform: translateY(105%); } }
.sticker { position: absolute; top: clamp(90px, 13vw, 190px); right: clamp(24px, 6vw, 110px); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--gold); font: 600 clamp(13px, 1.3vw, 18px)/1 var(--mono); letter-spacing: .04em; transform: rotate(7deg); animation: pop .6s .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop { from { transform: rotate(7deg) scale(0); } }
.hero-foot { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; padding-top: 26px; }
.lede { font-size: clamp(21px, 2.1vw, 30px); font-weight: 600; line-height: 1.22; letter-spacing: -.015em; max-width: 25em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 62px; padding: 0 26px 0 20px; border-radius: 16px; border: 2px solid var(--ink); background: var(--ink); color: var(--gold); transition: transform .2s; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.12; }
.store small { font-size: 12px; opacity: .75; }
.store b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.store--soon { padding-left: 24px; background: transparent; color: var(--ink); }
.store--soon b { color: var(--ink); }
.try { display: inline-block; margin-top: 18px; font-weight: 700; border-bottom: 2px solid; }
.fan { position: relative; min-height: 300px; }
.fan img { position: absolute; bottom: -230px; left: 50%; width: clamp(180px, 16.5vw, 270px); border: 6px solid #000; border-radius: 34px; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .55); translate: var(--x) calc(var(--y) + var(--drift, 0px)); rotate: var(--r); margin-left: calc(clamp(180px, 16.5vw, 270px) / -2); animation: deal 1s .15s cubic-bezier(.16, 1, .3, 1) both; }
.fan img:nth-child(1) { --x: -74%; --y: 46px; --r: -9deg; }
.fan img:nth-child(2) { --x: 0; --y: 0px; --r: 0deg; z-index: 2; animation-delay: .25s; }
.fan img:nth-child(3) { --x: 74%; --y: 46px; --r: 9deg; animation-delay: .35s; }
@keyframes deal { from { translate: 0 120%; rotate: 0deg; opacity: 0; } }

/* The playable first day */
.play { padding: clamp(150px, 22vw, 330px) var(--g) clamp(80px, 10vw, 150px); }
.play-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.play h2 { font-size: clamp(76px, 11.5vw, 188px); color: var(--gold); margin: 12px 0 14px; }
.quests { margin-top: 30px; border-top: 1px solid var(--line); }
.quests label { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 16px; padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: clamp(20px, 2vw, 27px); font-weight: 600; letter-spacing: -.015em; cursor: pointer; touch-action: manipulation; transition: background .15s, padding .2s; }
.quests input { position: absolute; opacity: 0; }
.quests i { width: 32px; height: 32px; border: 2px solid #4a4a4a; border-radius: 9px; display: grid; place-items: center; transition: background .15s, border-color .15s, transform .25s cubic-bezier(.3, 1.8, .5, 1); }
.quests i::after { content: ""; width: 14px; height: 7px; margin-top: -3px; border: solid var(--ink); border-width: 0 0 3px 3px; rotate: -45deg; opacity: 0; }
.quests input:focus-visible + i { outline: 3px solid var(--gold); outline-offset: 2px; }
.quests input:checked + i { background: var(--gold); border-color: var(--gold); transform: scale(1.12); }
.quests input:checked + i::after { opacity: 1; }
.quests input:checked ~ span { color: #6d6d6d; text-decoration: line-through; text-decoration-thickness: 2px; }
.quests em { font: 600 14px/1 var(--mono); color: var(--gold); }

.stage { padding: 22px; border: 1px solid var(--line); border-radius: 28px; background: #0c0c0c; text-align: center; position: sticky; top: 90px; }
.stage.hit { animation: hit .28s; }
@keyframes hit { 25% { transform: translate(-5px, 3px) rotate(-.6deg); } 60% { transform: translate(4px, -2px) rotate(.5deg); } }
.boss-art { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #000; }
.boss-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#boss-color { opacity: 0; transition: opacity .45s; }
.boss-name { margin-top: 16px; font: 600 16px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.boss-line { margin-top: 8px; color: var(--muted); font-size: 16px; }
.xp { height: 14px; margin-top: 18px; border-radius: 99px; background: #1d1d1d; overflow: hidden; }
.xp i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gold); transition: width .4s cubic-bezier(.16, 1, .3, 1); }
.meter { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.meter dt { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.meter dd { margin-top: 7px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Nine classes: choosing one floods the whole section with its colour. */
.heroes { --c: #f79000; position: relative; overflow: hidden; padding: clamp(70px, 8vw, 120px) var(--g); background: radial-gradient(70% 90% at 50% 45%, color-mix(in srgb, var(--c) 52%, var(--ink)), var(--ink) 92%); transition: --c .45s; text-align: center; }
.heroes > .label { color: var(--paper); }
.hero-name { height: min(25vw, 370px); font-size: min(25vw, 370px); line-height: min(25vw, 370px); color: var(--c); white-space: nowrap; margin-top: 8px; mix-blend-mode: screen; }
.hero-name.long { font-size: min(21vw, 310px); }
.hero-stage { position: relative; display: flex; justify-content: center; align-items: center; gap: 32px; margin-top: calc(min(25vw, 370px) * -.2); }
.hero-face { width: clamp(220px, 20vw, 290px); border-radius: 30px; border: 3px solid var(--c); box-shadow: 0 0 0 7px var(--ink), 0 30px 90px -10px var(--c); }
.hero-face.swap { animation: swap .4s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes swap { from { transform: scale(.82) rotate(-3deg); } }
.hero-grows { position: absolute; left: calc(50% + clamp(130px, 12vw, 175px)); bottom: 8px; text-align: left; }
.hero-grows .label { color: var(--paper); }
#hero-specs { display: flex; gap: 10px; margin-top: 10px; }
#hero-specs figure { width: 92px; }
#hero-specs img { border-radius: 14px; border: 2px solid var(--c); }
#hero-specs figcaption { margin-top: 6px; font: 600 10px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.roster { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.roster button { width: clamp(62px, 7vw, 92px); padding: 0; border: 2px solid transparent; border-radius: 18px; background: none; overflow: hidden; cursor: pointer; touch-action: manipulation; opacity: .62; color: var(--paper); transition: opacity .2s, transform .2s, border-color .2s; }
.roster button.on { opacity: 1; transform: translateY(-5px); }
.roster button.on { border-color: var(--paper); }

/* Bosses: the best copy on the site, on show. */
.bosses-head { padding: clamp(80px, 10vw, 150px) var(--g) 44px; }
.bosses-head h2 { font-size: clamp(70px, 13.4vw, 220px); margin: 12px 0 14px; }
.boss-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.boss-grid article { position: relative; overflow: hidden; aspect-ratio: 1; background: #000; }
.boss-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.boss-grid article::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .92)); }
.boss-grid h3 { position: absolute; z-index: 1; left: 18px; right: 12px; bottom: 58px; font-size: clamp(25px, 2.8vw, 44px); line-height: 1.02; }
.boss-grid p { position: absolute; z-index: 1; left: 18px; right: 14px; bottom: 16px; min-height: 36px; font-size: 14px; line-height: 1.3; color: #d5d5d5; }

/* The world, moving past */
.world { padding-top: clamp(80px, 10vw, 150px); }
.world-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; padding: 0 var(--g) 34px; }
.world h2 { font-size: clamp(70px, 11vw, 180px); }
.belt { overflow: hidden; }
.belt-track { display: flex; gap: 12px; width: max-content; animation: belt 70s linear infinite; will-change: transform; }
@keyframes belt { to { transform: translateX(calc(-50% - 6px)); } }
.belt figure { position: relative; flex: none; width: clamp(220px, 24vw, 340px); aspect-ratio: 420 / 760; overflow: hidden; border-radius: 18px; }
.belt img { width: 100%; height: 100%; object-fit: cover; }
.belt figcaption { position: absolute; left: 14px; bottom: 12px; font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .72); }

.proof { padding: clamp(90px, 12vw, 180px) var(--g) 0; text-align: center; }
.proof-n { font-size: min(26vw, 430px); color: var(--gold); margin: 8px 0 10px; font-variant-numeric: tabular-nums; }

.plans { padding: clamp(90px, 12vw, 170px) var(--g); }
.plans h2 { font-size: clamp(70px, 11vw, 180px); text-align: center; margin-bottom: 40px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 1040px; margin: 0 auto; }
.plan { padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: #0c0c0c; }
.plan h3 { font: 600 14px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.price { font-size: 72px; margin: 14px 0 20px; }
.price small { font: 500 14px/1.3 "Inter", sans-serif; text-transform: none; opacity: .75; }
.plan li { padding: 7px 0; font-size: 17px; }
.plan--pro { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.final { background: var(--gold); color: var(--ink); padding: clamp(90px, 12vw, 170px) var(--g); text-align: center; }
.final h2 { font-size: min(15.2vw, 300px); }
.final .lede { margin: 16px auto 0; }
.final .stores { justify-content: center; }

footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 34px var(--g) 40px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }

/* Level 2: the whole screen goes gold. */
.levelup { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; justify-content: safe center; padding: max(18px, env(safe-area-inset-top)) var(--g) max(18px, env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; background: var(--gold); color: var(--ink); text-align: center; animation: flood .5s cubic-bezier(.16, 1, .3, 1); }
.levelup[hidden] { display: none; }
@keyframes flood { from { clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); } to { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); } }
.levelup .label { color: var(--ink); }
.levelup h2 { font-size: min(25vw, 31svh); line-height: 1; }
.levelup img { width: min(25svh, 56vw); border-radius: 22px; border: 5px solid var(--ink); rotate: -3deg; margin-top: 6px; }
.levelup-boss { margin-top: 16px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.levelup-boss span { display: block; font-size: .68em; font-weight: 500; letter-spacing: 0; }
.levelup-real { margin-top: 6px; font: 600 14px/1.3 var(--mono); }
.levelup-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; margin-top: 18px; }
.levelup button { padding: 8px 2px; border: 0; border-bottom: 2px solid; background: none; color: inherit; font: 700 17px/1.2 "Inter", sans-serif; cursor: pointer; }

.burst { position: fixed; inset: 0; z-index: 70; width: 100%; height: 100%; pointer-events: none; }

.bar { display: none; }

/* Only a real pointer gets hover: on a touch screen it would stick after the tap. */
@media (hover: hover) {
  a.store:hover { transform: translateY(-3px) rotate(-1deg); }
  .quests label:hover { background: #111; padding-left: 12px; }
  .boss-grid article:hover img { transform: scale(1.07); }
  .roster button:hover { opacity: 1; transform: translateY(-5px); }
  .belt:hover .belt-track { animation-play-state: paused; }
}

/* A touch screen swipes the world itself instead of watching it go by. */
@media (hover: none) {
  .belt { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; scroll-padding: 0 var(--g); }
  .belt::-webkit-scrollbar { display: none; }
  .belt-track { animation: none; will-change: auto; padding: 0 var(--g); }
  .belt figure { scroll-snap-align: start; }
}

@media (max-width: 820px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 60px; min-height: auto; }
  .hero h1 { font-size: 18.4vw; }
  .sticker { position: static; align-self: flex-start; margin-top: 12px; }
  .hero-foot { display: block; padding-top: 16px; }
  .fan { --w: min(42vw, 210px); height: calc(var(--w) * 2.175 - 125px); min-height: 0; margin-top: 18px; }
  .fan img { bottom: -130px; width: var(--w); margin-left: calc(var(--w) / -2); border-radius: 24px; border-width: 4px; }
  .fan img:nth-child(1) { --x: -62%; --y: 34px; }
  .fan img:nth-child(3) { --x: 62%; --y: 34px; }
  .play { padding-top: 190px; }
  /* While you tick, the boss and the XP bar stay pinned under the nav. */
  .play-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .play-grid > div { display: contents; }
  .stage { order: 1; top: 66px; z-index: 5; display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 12px; align-items: center; margin-top: 22px; padding: 10px; border-radius: 18px; text-align: left; box-shadow: 0 14px 22px 4px var(--ink); }
  .boss-art { grid-row: 1 / span 3; border-radius: 12px; }
  .boss-name { margin: 0; font-size: 13px; }
  .boss-line { display: none; }
  .xp { height: 10px; margin-top: 7px; }
  .meter { display: flex; justify-content: space-between; margin-top: 7px; }
  .meter div { display: flex; align-items: baseline; gap: 5px; }
  .meter dt { font-size: 10px; letter-spacing: .08em; }
  .meter dd { margin: 0; font-size: 16px; }
  .quests { order: 2; margin-top: 12px; }
  .quests label { grid-template-columns: 30px 1fr auto; gap: 12px; font-size: 18px; }
  .quests i { width: 28px; height: 28px; }
  .quests em { font-size: 12px; white-space: nowrap; }
  .hero-stage { flex-direction: column; margin-top: 14px; }
  .hero-grows { position: static; text-align: center; }
  #hero-specs { justify-content: center; }
  .boss-grid { grid-template-columns: 1fr 1fr; }
  .boss-grid h3 { font-size: 24px; left: 12px; bottom: 70px; }
  .boss-grid p { left: 12px; right: 10px; font-size: 13px; min-height: 50px; bottom: 10px; }
  .plan-grid { grid-template-columns: 1fr; }
  .bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; padding: 10px 10px 10px 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(14, 14, 14, .94); transform: translateY(calc(100% + 40px)); transition: transform .35s; }
  .bar.on { transform: none; }
  .bar img { border-radius: 9px; }
  .bar span { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
  .bar b { font-size: 15px; }
  .bar small { font-size: 12px; color: var(--muted); }
  .bar em { font-style: normal; font-weight: 700; font-size: 15px; padding: 9px 20px; border-radius: 99px; background: var(--gold); color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .belt { overflow-x: auto; }
}
