/* ==========================================================================
   Super Bean Boy — landing page
   Night-sky arcade: one dark canvas, glowing key art, glass panels, restrained
   type. Playful comes from the game's own art and copy, not from the chrome.
   ========================================================================== */

@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/Fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --display: "Fredoka", "Baloo 2", "Nunito", system-ui, sans-serif;
  --body: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;

  --bg: #0a0d1c;
  --bg-2: #0f1430;
  --bg-3: #151b3d;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f2f4ff;
  --muted: #aab2d5;
  --muted-2: #7f88ad;

  --green: #a4ff3f;
  --green-2: #5fd22f;
  --gold: #ffd166;
  --gold-2: #ffb02e;
  --pink: #ff7ad9;
  --ice: #8fe7ff;
  --orange: #ff9d4d;
  --red: #ff6b5c;
  --purple: #b58bff;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.35);
  --gutter: 20px;
  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; position: relative; z-index: 1; }

:where(a, button, [tabindex]):focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 12px; }
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 0.6em 1em; background: var(--green); color: #0a0d1c; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0;
}
h2 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--body); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 56ch; margin: 1rem 0 0; text-wrap: pretty; }
.lede strong, p strong { color: var(--text); font-weight: 700; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

.quote { color: var(--muted); font-style: italic; }
.accent { color: var(--green); }
.accent-gold { color: var(--gold); }

/* --------------------------------------------------------------------------
   Sections & backdrops
   -------------------------------------------------------------------------- */

section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.band { border-top: 1px solid var(--line); }

.glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.glow::before, .glow::after {
  content: ""; position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  border-radius: 50%; filter: blur(80px); opacity: 0.55;
}
.glow--green::before { background: radial-gradient(circle, rgba(164, 255, 63, 0.35), transparent 60%); left: -20vw; top: -10%; }
.glow--green::after { background: radial-gradient(circle, rgba(143, 231, 255, 0.22), transparent 60%); right: -25vw; bottom: -20%; }
.glow--gold::before { background: radial-gradient(circle, rgba(255, 209, 102, 0.3), transparent 60%); right: -20vw; top: -10%; }
.glow--gold::after { background: radial-gradient(circle, rgba(255, 122, 217, 0.18), transparent 60%); left: -25vw; bottom: -10%; }
.glow--pink::before { background: radial-gradient(circle, rgba(255, 122, 217, 0.28), transparent 60%); left: -15vw; top: 0; }
.glow--pink::after { background: radial-gradient(circle, rgba(181, 139, 255, 0.22), transparent 60%); right: -20vw; bottom: 0; }
.glow--ice::before { background: radial-gradient(circle, rgba(143, 231, 255, 0.28), transparent 60%); right: -15vw; top: 0; }
.glow--ice::after { background: radial-gradient(circle, rgba(164, 255, 63, 0.16), transparent 60%); left: -20vw; bottom: -10%; }
.glow--brown::before { background: radial-gradient(circle, rgba(140, 90, 40, 0.55), transparent 60%); left: 10vw; top: -20%; }
.glow--brown::after { background: radial-gradient(circle, rgba(90, 50, 20, 0.6), transparent 60%); right: -10vw; bottom: -20%; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-weight: 700; font-size: 1rem; text-decoration: none; letter-spacing: 0.01em;
  padding: 0.95em 1.6em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn--primary { background: var(--green); color: #0a0d1c; box-shadow: 0 10px 30px rgba(164, 255, 63, 0.25); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(164, 255, 63, 0.35); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn--lg { font-size: 1.1rem; padding: 1.05em 1.9em; }
.btn--sm { font-size: 0.9rem; padding: 0.7em 1.2em; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.6; cursor: default; pointer-events: none; }
.btn.is-on { background: var(--green); color: #0a0d1c; border-color: transparent; }

/* store badges: black pills, glyph + two lines */
.store {
  display: inline-flex; align-items: center; gap: 0.75em;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px; padding: 0.55em 1.1em 0.55em 0.9em; text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.store:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.4); }
.store img { width: 26px; height: 26px; filter: invert(1); }
.store span { display: block; line-height: 1.1; }
.store small { display: block; font-size: 0.68rem; letter-spacing: 0.04em; opacity: 0.8; }
.store b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.store[aria-disabled="true"] { opacity: 0.75; pointer-events: none; }
.store-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem var(--gutter);
  background: rgba(10, 13, 28, 0.72); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0s 0.35s;
}
.nav.is-shown, .nav:focus-within { transform: none; visibility: visible; transition-delay: 0s; }
.nav__brand img { width: auto; height: 38px; }
.nav__links { display: none; gap: 1.6rem; font-weight: 600; font-size: 0.92rem; color: var(--muted); }
.nav__links a { text-decoration: none; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(120% 80% at 70% 10%, rgba(164, 255, 63, 0.16), transparent 55%),
    radial-gradient(90% 70% at 15% 80%, rgba(143, 231, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #0c1126 0%, var(--bg) 100%);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* only the foot of the key art — the gas plume and the ground — so there is one Bob in the hero, not two */
  background: url("../assets/img/art/world_poster.webp") center 100% / cover no-repeat;
  opacity: 0.08; filter: saturate(0.7) blur(2px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 60%, rgba(0, 0, 0, 0.6) 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 60%, rgba(0, 0, 0, 0.6) 100%);
}
/* the one in-world delight: a few puffs of gas drifting up the edge of the hero */
.hero__puff {
  position: absolute; z-index: 0; bottom: -80px; width: 90px; height: 90px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(164, 255, 63, 0.35), rgba(164, 255, 63, 0) 70%); filter: blur(6px);
  animation: puff-rise 14s linear infinite;
}
.hero__puff:nth-child(1) { left: 4%; animation-delay: -2s; }
.hero__puff:nth-child(2) { left: 12%; width: 60px; height: 60px; animation-duration: 11s; animation-delay: -7s; }
.hero__puff:nth-child(3) { right: 6%; width: 120px; height: 120px; animation-duration: 17s; animation-delay: -11s; }
@keyframes puff-rise {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translateY(-110vh) translateX(30px) scale(1.4); opacity: 0; }
}
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
.hero__copy { text-align: center; }
.hero__logo { margin: 0 auto; line-height: 0; }
.hero__logo img { width: min(84vw, 520px); height: auto; margin-inline: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); animation: logo-in 0.9s var(--ease) both; }
@keyframes logo-in { from { transform: translateY(14px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.hero__tag { font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--muted); max-width: 34ch; margin: 1.4rem auto 0; line-height: 1.45; text-wrap: balance; }
.hero__tag strong { color: var(--text); }
.hero__cta { margin-top: 1.8rem; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero__meta { margin-top: 1.4rem; display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; color: var(--muted-2); font-size: 0.9rem; font-weight: 600; }
.hero__meta span::before { content: "•"; margin-right: 1.2rem; color: var(--green); }
.hero__meta span:first-child::before { content: none; margin: 0; }

.hero__stage { position: relative; display: grid; align-items: center; justify-items: start; padding-right: 22%; }
.hero__stage .device { width: min(58vw, 280px); position: relative; z-index: 2; margin-left: 4%; }
.hero__stage .boy {
  position: absolute; z-index: 3; width: min(50vw, 240px); height: auto; right: -2%; bottom: -3%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
  animation: float 6s ease-in-out infinite;
}
.hero__stage::before {
  content: ""; position: absolute; left: 10%; top: 10%; width: 70%; height: 80%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(164, 255, 63, 0.3), rgba(164, 255, 63, 0) 62%); filter: blur(30px);
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

/* --------------------------------------------------------------------------
   Device frame + video
   -------------------------------------------------------------------------- */

.device {
  position: relative; aspect-ratio: 804 / 1748; border-radius: 40px;
  background: #05070f; padding: 9px; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  isolation: isolate;
}
.device::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 30%; height: 20px; border-radius: 999px; background: #05070f; z-index: 3;
}
.device__screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #0f1430; }
.device video, .device img.poster { width: 100%; height: 100%; object-fit: cover; }
.device .mute {
  position: absolute; z-index: 4; left: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(10, 13, 28, 0.6); color: #fff; backdrop-filter: blur(8px);
  cursor: pointer; display: grid; place-items: center; font-size: 1rem;
}

.clip { display: grid; gap: 0.9rem; align-content: start; }
.clip__cap h3 { font-size: 1.15rem; }
.clip__cap p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 280px); gap: 1.2rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem var(--gutter) 1.5rem;
  margin-inline: calc(-1 * var(--gutter)); scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* --------------------------------------------------------------------------
   Glass cards, bento
   -------------------------------------------------------------------------- */

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.card p { margin: 0.5rem 0 0; color: var(--muted); }
.card p.quote { font-size: 0.95rem; }
.card h3 { margin-top: 0.4rem; }

.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.bento { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
/* every tile has the same anatomy: art on top, eyebrow, title, one line — nothing overlaps */
.tile {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tile__art { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 1.4rem 1.4rem 0; }
.tile__art img { max-height: 100%; max-width: 74%; width: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5)); transition: transform 0.5s var(--ease); }
.tile:hover .tile__art img { transform: scale(1.04) translateY(-4px); }
.tile__body { position: relative; padding: 1.1rem 1.5rem 1.5rem; }
.tile__body h3 { font-size: 1.3rem; margin-top: 0.7rem; }
.tile__body p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; }
.tile--glow-green { background: radial-gradient(80% 60% at 50% 20%, rgba(164, 255, 63, 0.18), var(--surface) 70%); }
.tile--glow-gold { background: radial-gradient(80% 60% at 50% 20%, rgba(255, 209, 102, 0.2), var(--surface) 70%); }
.tile--glow-pink { background: radial-gradient(80% 60% at 50% 20%, rgba(255, 122, 217, 0.18), var(--surface) 70%); }
.tile--glow-ice { background: radial-gradient(80% 60% at 50% 20%, rgba(143, 231, 255, 0.18), var(--surface) 70%); }
.tile--glow-orange { background: radial-gradient(80% 60% at 50% 20%, rgba(255, 157, 77, 0.2), var(--surface) 70%); }
.tile--glow-purple { background: radial-gradient(80% 60% at 50% 20%, rgba(181, 139, 255, 0.2), var(--surface) 70%); }

.pill {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35em 0.8em; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--text); border: 1px solid var(--line);
  margin-bottom: 0.6rem;
}
.pill--green { background: rgba(164, 255, 63, 0.16); color: var(--green); border-color: rgba(164, 255, 63, 0.3); }
.pill--gold { background: rgba(255, 209, 102, 0.16); color: var(--gold); border-color: rgba(255, 209, 102, 0.3); }
.pill--pink { background: rgba(255, 122, 217, 0.16); color: var(--pink); border-color: rgba(255, 122, 217, 0.3); }
.pill--ice { background: rgba(143, 231, 255, 0.16); color: var(--ice); border-color: rgba(143, 231, 255, 0.3); }
.pill--red { background: rgba(255, 107, 92, 0.16); color: var(--red); border-color: rgba(255, 107, 92, 0.3); }
.pill--purple { background: rgba(181, 139, 255, 0.16); color: var(--purple); border-color: rgba(181, 139, 255, 0.3); }

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-2); padding: 1.4rem 1.2rem; text-align: center; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--green); line-height: 1; }
.stat span { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.9rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.steps { display: grid; gap: 1rem; counter-reset: step; }
.step { display: grid; grid-template-columns: 84px 1fr; gap: 1.1rem; align-items: center; }
.step__art { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.step__art img { max-width: 66px; max-height: 66px; width: auto; }
.step__num { counter-increment: step; font-family: var(--display); color: var(--green); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; }
.step__num::before { content: "0" counter(step); }
.step h3 { font-size: 1.2rem; margin-top: 0.15rem; }
.step p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }

.gas-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 0.7rem; max-width: 220px; }
.gas-meter span { height: 8px; border-radius: 999px; background: var(--green); animation: gas-fill 3s ease-in-out infinite; }
.gas-meter span:nth-child(2) { animation-delay: 0.3s; }
.gas-meter span:nth-child(3) { animation-delay: 0.6s; }
.gas-meter span:nth-child(4) { animation-delay: 0.9s; }
.gas-meter span:nth-child(5) { animation-delay: 1.2s; }
@keyframes gas-fill { 0%, 20% { opacity: 0.15; } 40%, 70% { opacity: 1; } 100% { opacity: 0.15; } }

.split { display: grid; gap: 2.5rem; align-items: center; }
.split__media { display: grid; place-items: center; }
.split__media .device { width: min(70vw, 320px); }
.split__media img.art { width: min(80vw, 460px); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); }

/* --------------------------------------------------------------------------
   Beans carousel
   -------------------------------------------------------------------------- */

.bean {
  position: relative; scroll-snap-align: start; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--surface); padding: 1.4rem; display: grid; grid-template-rows: 200px auto; gap: 0.6rem; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.bean:hover { transform: translateY(-4px); border-color: var(--line-2); }
.bean__art { display: grid; place-items: center; position: relative; }
.bean__art::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--bean-glow, rgba(255, 255, 255, 0.12)); filter: blur(30px); }
.bean__art img { position: relative; max-height: 190px; width: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5)); }
.bean h3 { font-size: 1.25rem; }
.bean .quote { margin: 0.3rem 0 0; font-size: 0.88rem; color: var(--muted-2); }
.bean .hook { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.95rem; }
.bean-rail { grid-auto-columns: min(78vw, 300px); }

.note {
  display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1rem 1.2rem; max-width: 72ch;
}
.note img { width: 56px; height: 56px; object-fit: contain; }
.note p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Refinery
   -------------------------------------------------------------------------- */

.flow { display: grid; gap: 0.8rem; }
.flow__step { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center; }
.flow__step img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4)); }
.flow__step h3 { font-size: 1.1rem; }
.flow__step p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.92rem; }
.flow__arrow { color: var(--muted-2); text-align: center; font-size: 1.4rem; transform: rotate(90deg); line-height: 1; }

.icon-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.icon-row img { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); transition: transform 0.25s var(--ease); }
.icon-row img:hover { transform: scale(1.18) rotate(-4deg); }
.icon-row--sm img { width: 48px; height: 48px; }

/* --------------------------------------------------------------------------
   World: scene tiles
   -------------------------------------------------------------------------- */

.scenes { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.scene {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-3); isolation: isolate;
}
.scene img.poster, .scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 4rem 1.1rem 1.1rem;
  background: linear-gradient(0deg, rgba(10, 13, 28, 0.97) 0%, rgba(10, 13, 28, 0.85) 45%, rgba(10, 13, 28, 0) 100%);
}
.scene__label strong { display: block; font-family: var(--display); font-size: clamp(1.05rem, 3.6vw, 1.3rem); font-weight: 600; line-height: 1.1; }
.scene__label span { display: block; color: var(--muted); font-size: clamp(0.8rem, 2.6vw, 0.9rem); margin-top: 0.3rem; line-height: 1.35; }
.scene .mute { display: none; }

.biomes { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.biome { padding: 0.5em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 0.9rem; }
.biome i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.5em; }

.clock { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 1rem; }
.clock span { font-size: 0.8rem; font-weight: 700; padding: 0.35em 0.8em; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.clock span.is-on { background: var(--gold); color: #0a0d1c; border-color: transparent; }

/* --------------------------------------------------------------------------
   Villain
   -------------------------------------------------------------------------- */

.villain { display: grid; gap: 2rem; align-items: center; }
.villain__art { display: grid; place-items: center; position: relative; }
.villain__art::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 157, 77, 0.35), transparent 65%); filter: blur(30px); }
.villain__art img { position: relative; width: min(74vw, 420px); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); animation: float 7s ease-in-out infinite; }
.shouts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.shouts span { font-family: var(--display); font-weight: 600; padding: 0.35em 0.9em; border-radius: 999px; background: rgba(255, 107, 92, 0.14); color: var(--red); border: 1px solid rgba(255, 107, 92, 0.3); font-size: 0.95rem; }
.list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.list li { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; color: var(--muted); }
.list li::before { content: ""; width: 10px; height: 10px; margin-top: 0.55em; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.list li strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Style: dresser, hats, the colour trail
   -------------------------------------------------------------------------- */

.dresser { display: grid; gap: 1.5rem; align-items: start; }
.dresser__stage {
  position: relative; display: grid; place-items: center; min-height: 340px; border-radius: var(--radius-lg);
  background: radial-gradient(80% 70% at 50% 30%, rgba(143, 231, 255, 0.2), transparent 70%), var(--bg-3);
  border: 1px solid var(--line); overflow: hidden;
}
.dresser__stage::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 34px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); filter: blur(12px); }
.dresser__boy { position: relative; width: 256px; height: 256px; z-index: 1; image-rendering: pixelated; }
.dresser__boy img { position: absolute; inset: 0; width: 256px; height: 256px; image-rendering: pixelated; }
.dresser__name { position: absolute; top: 14px; left: 14px; z-index: 2; }
.dresser__desc { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.95rem; min-height: 3em; text-align: center; }
.dresser__hint { margin: 0.6rem 0 0; color: var(--muted-2); font-size: 0.85rem; text-align: center; }

.hat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 0.6rem; }
.hat-grid button {
  aspect-ratio: 1; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; padding: 8px;
  display: grid; place-items: center; transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.hat-grid button:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-2); }
.hat-grid button.is-on { border-color: var(--green); background: rgba(164, 255, 63, 0.12); box-shadow: 0 0 0 1px var(--green) inset; }
.hat-grid img { width: 100%; height: 100%; object-fit: contain; }

.trail-demo {
  position: relative; height: 110px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, #1a2350, #0f1430);
}
.trail-demo::before {
  content: ""; position: absolute; left: 90px; right: 4%; top: 50%; height: 26px; transform: translateY(-50%);
  border-radius: 999px; background: var(--ribbon, linear-gradient(90deg, #e0b03a, #8fd63a, #5aa32a)); opacity: 0.95;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent);
  filter: blur(0.3px);
}
.trail-demo::after {
  content: ""; position: absolute; left: 22px; top: 50%; width: 64px; height: 64px; transform: translateY(-50%) scaleX(-1);
  background: url("../assets/img/pixel/fartman_fly.png") center / contain no-repeat; image-rendering: pixelated;
}
.trail-demo .puff { position: absolute; bottom: -20px; width: 40px; height: 40px; border-radius: 50%; animation: puff-rise 2.4s ease-out infinite; opacity: 0.8; }
@keyframes puff-rise { 0% { transform: translateY(0) scale(0.5); opacity: 0; } 20% { opacity: 0.8; } 100% { transform: translateY(-130px) scale(1.5); opacity: 0; } }

.trail-demo__cap { margin: 0.8rem 0 0; font-size: 0.95rem; color: var(--muted); min-height: 2.7em; }
.trail-demo__cap strong { color: var(--text); }
.potion-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; align-items: center; }
.potion {
  display: grid; justify-items: center; gap: 3px; width: 64px; padding: 7px 4px 8px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--muted);
  font: 600 0.7rem/1 var(--body); transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.potion img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.potion:hover { transform: translateY(-3px); border-color: var(--line-2); color: var(--text); }
.potion.is-on { border-color: var(--c); color: var(--text); box-shadow: 0 0 0 1px var(--c) inset, 0 0 22px color-mix(in srgb, var(--c) 45%, transparent); }
.potion-bar__reset { margin-left: 0.3rem; }

/* --------------------------------------------------------------------------
   Compete
   -------------------------------------------------------------------------- */

.boards { --board-gap: 0.9rem; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--board-gap); }
.board {
  position: relative; flex: 0 0 calc(50% - var(--board-gap) / 2); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; background: var(--bg-3);
  transition: transform 0.35s var(--ease), border-color 0.35s; text-decoration: none; color: var(--text);
}
.board:last-child { flex-basis: 100%; aspect-ratio: 2 / 1; }
.board:hover { transform: translateY(-4px); border-color: var(--line-2); }
.board img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.board:hover img { transform: scale(1.05); }
.board__label { position: absolute; inset: auto 0 0 0; padding: 3rem 1rem 1rem; background: linear-gradient(0deg, rgba(10, 13, 28, 0.97) 0%, rgba(10, 13, 28, 0.85) 50%, rgba(10, 13, 28, 0) 100%); }
.board__label strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.1; }
.board__label span { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.board__tag { position: absolute; top: 10px; left: 10px; z-index: 1; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; padding: 0.3em 0.7em; border-radius: 999px; background: var(--gold); color: #0a0d1c; }

.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 300px; margin-top: 1rem; }
.streak span { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; color: var(--muted-2); }
.streak span.is-lit { background: var(--gold); color: #0a0d1c; border-color: transparent; }

/* --------------------------------------------------------------------------
   Download & footer
   -------------------------------------------------------------------------- */

.download { text-align: center; overflow: hidden; }
.download__logo { width: min(80vw, 460px); height: auto; margin: 0 auto 1.2rem; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); }
.download h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.download .lede { margin-inline: auto; }
.download .store-row { justify-content: center; margin-top: 1.6rem; }
.fine { color: var(--muted-2); font-size: 0.85rem; max-width: 64ch; margin: 1rem auto 0; line-height: 1.5; }

footer { padding: 3.5rem 0 4.5rem; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.88rem; }
footer .wrap { display: grid; gap: 2rem; }
footer .footer__brand { display: grid; gap: 1rem; }
footer .footer__logo { width: 170px; height: auto; opacity: 0.9; }
footer p { margin: 0; max-width: 62ch; }
.footer__links { display: grid; gap: 0.5rem 1.5rem; grid-template-columns: repeat(2, max-content); align-content: start; }
.footer__links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--text); }
.footer__links strong { grid-column: 1 / -1; font-family: var(--display); font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }

/* --------------------------------------------------------------------------
   Toot button
   -------------------------------------------------------------------------- */

.toot {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(164, 255, 63, 0.5);
  background: rgba(10, 13, 28, 0.7); backdrop-filter: blur(10px); color: var(--green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(164, 255, 63, 0.25);
  cursor: pointer; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s var(--ease);
}
.toot:hover { transform: scale(1.08); }
.toot.is-tooting { animation: wobble 0.45s var(--ease); }
@keyframes wobble { 0% { transform: scale(1); } 30% { transform: scale(1.2) rotate(-10deg); } 100% { transform: scale(1); } }
.puff-fx {
  position: fixed; z-index: 39; pointer-events: none; width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(164, 255, 63, 0.8), rgba(164, 255, 63, 0));
  animation: puff-away 1.2s ease-out forwards;
}
@keyframes puff-away { to { transform: translate(var(--dx), var(--dy)) scale(2.6); opacity: 0; } }

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .scenes { grid-template-columns: repeat(4, 1fr); }
  .board, .board:last-child { flex-basis: calc(33.333% - var(--board-gap) * 2 / 3); aspect-ratio: 4 / 5; }
  footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
  .flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; }
  .flow__step { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .flow__arrow { transform: none; }
  .dresser { grid-template-columns: 1fr 1fr; }
  .nav__links { display: flex; }
  .villain { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; }
  .hero__copy { text-align: left; }
  .hero__logo img { margin-inline: 0; }
  .hero__tag { margin-inline: 0; }
  .hero__cta, .hero__meta { justify-content: flex-start; }
  .hero__stage { min-height: 640px; padding-right: 26%; }
  .hero__stage .device { width: 300px; margin-left: 0; }
  .hero__stage .boy { width: 360px; right: -6%; bottom: -2%; }
  .stats { grid-template-columns: repeat(6, 1fr); }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile--wide { grid-column: span 2; }
  .tile--wide .tile__art { aspect-ratio: 5 / 2; }
  .tile--wide .tile__art img { max-width: 60%; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-left .split__media { order: -1; }
  .rail { grid-auto-columns: 260px; }
  .bean-rail { grid-auto-columns: 290px; }
  .board, .board:last-child { flex-basis: calc(25% - var(--board-gap) * 3 / 4); }
}

/* The legal pages, linked from the footer. Both stores want these URLs in their
   metadata and a reviewer opens them before installing anything, so they have to be
   reachable from the site itself rather than only from inside the game. */
.footer__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--text); }
