/* =========================================================================
   StudioBando — studiobando.com
   Same design system as sopagame.com, tuned to the studio's own palette.
   ========================================================================= */

/* --- Fonts ------------------------------------------------------------- */
/* M PLUS Rounded 1c (SIL OFL 1.1, see fonts/OFL.txt), the Latin subsets Google
   Fonts serves. The only change is the gasp table, which now asks for symmetric
   smoothing at every size: without it, Chrome on Windows drops vertical
   anti-aliasing below ~21px and rounded letters get stair-stepped edges. */
/* latin-ext */
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/mplus-rounded-1c-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/mplus-rounded-1c-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/mplus-rounded-1c-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/mplus-rounded-1c-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/mplus-rounded-1c-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/mplus-rounded-1c-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The Latin subset skips U+2192; the page uses it once ("Discord →"). */
/* arrows */
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/mplus-rounded-1c-400-arrows.woff2") format("woff2");
  unicode-range: U+2192;
}
/* arrows */
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/mplus-rounded-1c-500-arrows.woff2") format("woff2");
  unicode-range: U+2192;
}
/* arrows */
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/mplus-rounded-1c-700-arrows.woff2") format("woff2");
  unicode-range: U+2192;
}

/* --- Tokens ------------------------------------------------------------ */
:root {
  color-scheme: dark;

  /* Ink (the studio's deep purple, from the logo mark) */
  --ink-900: #14062A;
  --ink-800: #1A0832;
  --ink-700: #220B40;
  --surf-1: #2A0E4B;
  --surf-2: #351459;

  /* Paper */
  --cream: #FBF1E2;
  --paper: #F7EBD8;
  --paper-2: #FDF6EA;

  /* Spice */
  --marigold: #FFB03A;
  --amber: #FF8B3D;
  --terracotta: #DD5A38;
  --jade: #3FBFA0;

  /* Brand */
  --brand: #6F0B76;          /* the logo tile purple */
  --brand-lift: #8B1494;
  --violet: #8A3FF2;
  --violet-lift: #9B58F6;
  --blue: #33C3F0;
  --blue-lift: #57D0F6;
  --purple: #9A00B2;
  --purple-lift: #B317CC;

  /* Text */
  --t-1: var(--cream);
  --t-2: rgba(251, 241, 226, 0.74);
  --t-3: rgba(251, 241, 226, 0.52);
  --ink-t2: rgba(20, 6, 42, 0.76);
  --ink-t3: rgba(20, 6, 42, 0.55);

  /* Type */
  --display: "M PLUS Rounded 1c", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "M PLUS Rounded 1c", ui-rounded, "Segoe UI", system-ui, sans-serif;

  /* Metrics */
  --max: 1200px;
  --measure: 720px;
  --gutter: clamp(20px, 5vw, 56px);
  --r-md: 16px;
  --r-lg: 26px;
  --r-xl: 38px;

  --lift-strong: 0 36px 70px -34px rgba(10, 3, 22, 0.95);
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-800);
  color: var(--t-1);
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(16px, 0.5vw + 14.6px, 17.5px);
  line-height: 1.68;
  overflow-x: hidden;
}

img, svg, iframe, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

:focus-visible {
  outline: 2px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 50%;
  top: -90px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--marigold);
  color: var(--ink-900);
  padding: 12px 20px;
  border-radius: 0 0 14px 14px;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 0; }

/* --- Layout ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: 1460px; }

.section { position: relative; overflow: hidden; padding-block: clamp(34px, 4vw, 60px) clamp(68px, 8vw, 120px); }
.section--tight { padding-block: clamp(22px, 2.5vw, 36px) clamp(44px, 5vw, 72px); }
.section--rail { padding-block: 44px clamp(48px, 6vw, 84px); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--awards { padding-bottom: clamp(34px, 4vw, 58px); }
/* Fades back out at the bottom so the band does not end on a hard line. */
.section--games {
  padding-bottom: clamp(24px, 3vw, 44px);
  background: linear-gradient(180deg,
    rgba(111, 11, 118, 0) 0%,
    rgba(111, 11, 118, 0.1) 28%,
    rgba(111, 11, 118, 0.26) 62%,
    rgba(111, 11, 118, 0.12) 88%,
    rgba(111, 11, 118, 0) 100%);
}

/* Dark sections that share the page background are told apart by a tint that
   builds toward each section's bottom edge (the same idea as sopagame.com),
   alternating plum and jade so neighbours never end and start on the same colour. */
#press {
  /* Matches the news section's top padding, so the gradient seam sits midway
     between the two and the total gap is the same as before. */
  padding-bottom: clamp(34px, 4vw, 60px);
  background-image: linear-gradient(180deg,
    rgba(74, 17, 64, 0) 0%, rgba(74, 17, 64, 0.08) 58%, rgba(74, 17, 64, 0.34) 100%);
}
#news {
  background-image: linear-gradient(180deg,
    rgba(63, 191, 160, 0.016) 0%, rgba(63, 191, 160, 0.024) 38%,
    rgba(63, 191, 160, 0.07) 72%, rgba(63, 191, 160, 0.12) 100%);
}
#contact {
  /* A broad, faint plum tint at the top sets the band apart from the quote above. */
  background-image:
    linear-gradient(180deg, rgba(111, 11, 118, 0.13) 0%, rgba(111, 11, 118, 0.07) 32%, rgba(111, 11, 118, 0) 78%),
    linear-gradient(180deg,
      rgba(74, 17, 64, 0.02) 0%, rgba(74, 17, 64, 0.06) 48%, rgba(74, 17, 64, 0.18) 100%);
}

.section-head { margin-bottom: clamp(30px, 4vw, 52px); }
.section-head--tight { margin-bottom: clamp(10px, 1.3vw, 18px); }
.section-head--center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--marigold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--terracotta), var(--marigold));
}
.section-head--center .eyebrow::after {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--marigold), var(--terracotta));
}

.section-title { font-size: clamp(31px, 4.4vw, 54px); }

.section-sub {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--t-2);
  font-size: clamp(16px, 1.1vw, 18px);
}
.section-head--center .section-sub { margin-inline: auto; }

/* Paper (light) bands — grain sits behind content, never over glyphs */
.paper-section {
  /* Soft creases from the artbook paper, blended into the paper colour. Sketch
     bands share --sketch-shift so the creases run on across sections. */
  background:
    url("paper-creases.webp") 0 calc(var(--sketch-shift, 0px) * -1) / 1032px 1032px repeat,
    var(--paper);
  background-blend-mode: soft-light;
  color: var(--ink-900);
  isolation: isolate;
}
/* Sketch bands: two strips of artbook drawings hug the viewport edges, facing
   inward, so the reading column stays clear. The right strip runs half a step
   behind the left so drawings alternate sides, and site.js sets --sketch-shift
   so consecutive bands continue one pattern instead of each restarting it. */
.paper-section--sketch {
  --sketch-w: clamp(220px, 21vw, 360px);
  --sketch-shift: 0px;
  background-color: var(--paper);
}
.paper-section--sketch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("paper-sketch-left.webp"), url("paper-sketch-right.webp");
  background-repeat: repeat-y;
  background-size: var(--sketch-w) auto;
  background-position:
    left 0 top calc(var(--sketch-shift) * -1),
    right 0 top calc(var(--sketch-w) * 5 / 9 - var(--sketch-shift));
}
/* Wide screens have room for an inner column of drawings on each side. */
@media (min-width: 1800px) {
  .paper-section--sketch::after {
    background-image: url("paper-sketch-left-wide.webp"), url("paper-sketch-right-wide.webp");
    background-size: calc(var(--sketch-w) * 43 / 36) auto;
  }
}
/* Sketch strips on a dark band: the strip images become a mask over
   --sketch-ink, with the same layout as the paper bands; cream at low
   strength reads as faint chalk on the purple. */
/* The news band carries the strips instead of its glow. */
#news > .glow { display: none; }
.sketch-band--ink {
  --sketch-w: clamp(220px, 21vw, 360px);
  --sketch-shift: 0px;
  --sketch-ink: var(--cream);
  isolation: isolate;
}
.sketch-band--ink::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.17;
  background: var(--sketch-ink);
  -webkit-mask-image: url("paper-sketch-left.webp"), url("paper-sketch-right.webp");
  mask-image: url("paper-sketch-left.webp"), url("paper-sketch-right.webp");
  -webkit-mask-repeat: repeat-y;
  mask-repeat: repeat-y;
  -webkit-mask-size: var(--sketch-w) auto;
  mask-size: var(--sketch-w) auto;
  -webkit-mask-position:
    left 0 top calc(var(--sketch-shift) * -1),
    right 0 top calc(var(--sketch-w) * 5 / 9 - var(--sketch-shift));
  mask-position:
    left 0 top calc(var(--sketch-shift) * -1),
    right 0 top calc(var(--sketch-w) * 5 / 9 - var(--sketch-shift));
}
@media (min-width: 1800px) {
  .sketch-band--ink::after {
    -webkit-mask-image: url("paper-sketch-left-wide.webp"), url("paper-sketch-right-wide.webp");
    mask-image: url("paper-sketch-left-wide.webp"), url("paper-sketch-right-wide.webp");
    -webkit-mask-size: calc(var(--sketch-w) * 43 / 36) auto;
    mask-size: calc(var(--sketch-w) * 43 / 36) auto;
  }
}
@media (max-width: 620px) {
  .sketch-band--ink { --sketch-w: 30vw; }
  .sketch-band--ink::after { opacity: 0.08; }
}
/* Press quotes sit on the strips at a faint third of the usual strength. */
#press.sketch-band--ink::after { opacity: 0.05; }
@media (max-width: 620px) {
  #press.sketch-band--ink::after { opacity: 0.025; }
}
.paper-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Fibre grain lifted from the artbook paper; a seamless 512px tile. */
  background: url("paper-grain.webp") 0 0 / 512px 512px repeat;
  mix-blend-mode: soft-light;
}
.paper-section h1,
.paper-section h2,
.paper-section h3,
.paper-section h4 { color: var(--ink-900); }
.paper-section .section-sub { color: var(--ink-t2); }
.paper-section .eyebrow { color: var(--terracotta); }

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* --- Buttons ----------------------------------------------------------- */
.btn {
  --btn-bg: var(--surf-2);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: #3E1A69; }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--primary { --btn-bg: var(--violet); --btn-fg: #fff; }
.btn--primary:hover { background: var(--violet-lift); }

.btn--purple { --btn-bg: var(--purple); --btn-fg: #fff; }
.btn--purple:hover { background: var(--purple-lift); }

.btn--lg { padding: 17px 32px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.paper-section .btn { --btn-bg: #2A0E4B; --btn-fg: var(--cream); }
.paper-section .btn:hover { background: #3A1961; }
.paper-section .btn--primary { --btn-fg: #fff; }

/* --- Header ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.is-stuck {
  background: rgba(20, 6, 42, 0.82);
  backdrop-filter: blur(14px) saturate(130%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  flex: none;
  margin-right: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
}
.site-header.is-past-hero .nav__brand {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav__brand img { width: clamp(112px, 11vw, 148px); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.2vw, 14px);
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav__links a {
  position: relative;
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--t-2);
  border-radius: 10px;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--marigold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__links a[aria-current="true"] { color: var(--cream); }

.nav__cta { flex: none; }
/* Only shown inside the open mobile panel, where .nav__cta is hidden. */
.nav__links-cta { display: none; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(251, 241, 226, 0.1);
  color: var(--cream);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background 0.2s var(--ease);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(calc(100svh - 150px), 840px);
  display: flex;
  align-items: flex-end;
  padding-top: 96px;
  padding-bottom: clamp(26px, 3vw, 44px);
  overflow: hidden;
  isolation: isolate;
  contain: paint;
}
.hero__media { position: absolute; inset: 0; z-index: -2; container-type: size; }
/* Slideshow: the incoming slide fades in over the outgoing one (.is-prev),
   which holds full opacity underneath so the ink never shows through. */
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Framed so the thief and the mountain sit clear of the copy column. */
  object-position: var(--hero-pos, 78% 42%);
  /* Slides whose subject sits near the right edge zoom from that edge,
     which is the only way to pull it left while the hero is wider than 16:9. */
  scale: var(--hero-zoom, 1);
  transform-origin: var(--hero-origin, 50% 50%);
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero__media img.is-active {
  z-index: 1;
  opacity: 1;
  animation: drift 52s var(--ease) infinite alternate;
}
.hero__media img.is-prev {
  opacity: 1;
  animation: drift 52s var(--ease) infinite alternate;
}
/* Ultra-wide heroes: past 9:4 the slides stop growing with the screen. Each
   keeps the frame it has on a standard desktop, pinned to the right edge,
   and its left edge fades so the scrim and light shafts take over there. */
@container (min-aspect-ratio: 9 / 4) {
  .hero__media img {
    left: auto;
    width: auto;
    aspect-ratio: 9 / 4;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%);
    mask-image: linear-gradient(90deg, transparent, #000 32%);
  }
  /* The poster runs wider, up to 2.8 hero heights, so its last frog stays in
     frame; below that it still matches the standard layout exactly. */
  .hero__media img.hero__poster { aspect-ratio: auto; width: min(100%, 280cqh); }
}
/* Slide dots: bottom right, clear of the copy column. Each button is a 24px
   hit area around a small pip. */
.hero__dots {
  position: absolute;
  right: clamp(16px, 3vw, 44px);
  bottom: clamp(26px, 3vw, 44px);
  z-index: 4;
  display: flex;
  gap: 2px;
}
.hero__dots[hidden] { display: none; }
.hero__dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hero__dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(20, 6, 42, 0.45);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero__dot:hover::before { background: rgba(255, 255, 255, 0.8); }
.hero__dot.is-active::before { background: var(--marigold); transform: scale(1.3); }
.hero__dot:focus-visible { outline: 2px solid var(--marigold); outline-offset: 0; border-radius: 50%; }

/* Ghost Game slides are anchored at the right edge, so the normal drift (a
   slow zoom in) would creep their art toward the copy. They ease out instead. */
.hero__media img.hero__ghost-slide.is-active,
.hero__media img.hero__ghost-slide.is-prev { animation-direction: alternate-reverse; }
@keyframes drift {
  from { transform: scale(1.01); }
  to { transform: scale(1.09855); }
}

/* The cast art is bright and busy, so the scrim only darkens the left column
   the copy sits in and the very bottom edge — the rest stays as painted. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(92deg,
      rgba(20, 6, 42, 0.9) 0%,
      rgba(20, 6, 42, 0.78) 22%,
      rgba(20, 6, 42, 0.42) 40%,
      rgba(20, 6, 42, 0.1) 56%,
      rgba(20, 6, 42, 0) 68%),
    linear-gradient(180deg,
      rgba(20, 6, 42, 0.58) 0%,
      rgba(20, 6, 42, 0.12) 16%,
      rgba(20, 6, 42, 0) 42%,
      rgba(20, 6, 42, 0.3) 80%,
      rgba(20, 6, 42, 0.86) 94%,
      var(--ink-800) 100%);
}

.hero__flare {
  position: absolute;
  top: -200px;
  left: -200px;
  width: 1600px;
  height: 1200px;
  transform: rotate(-10deg);
  animation: flarePulse 7s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
  contain: paint;
  will-change: opacity;
}
.hero__flare-inner {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 220, 100, 0.26) 0%, transparent 72%),
    radial-gradient(ellipse at 12% 6%, rgba(255, 190, 70, 0.13) 0%, transparent 58%);
  filter: blur(28px);
  contain: paint;
}
/* The hot core is a wide, soft-edged gradient rather than a second blurred
   layer: one blur pass for the whole flare instead of two. */
.hero__flare-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 34% 30% at 0% 0%, rgba(255, 240, 160, 0.4) 0%, transparent 82%);
  mix-blend-mode: screen;
}
@keyframes flarePulse {
  0%   { opacity: 0.85; }
  30%  { opacity: 1.05; }
  55%  { opacity: 0.92; }
  80%  { opacity: 1.08; }
  100% { opacity: 0.88; }
}

/* Shafts of light raking down from the top-left, under the dust. */
.hero__shafts {
  position: absolute;
  top: 0;
  left: 0;
  width: 720px;
  height: 760px;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.hero__shaft {
  position: absolute;
  top: -180px;
  left: var(--shaft-left);
  width: var(--shaft-width);
  height: var(--shaft-length);
  transform: rotate(-45deg);
  transform-origin: 50% 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 220, 0.82) 0%, rgba(255, 240, 190, 0.48) 46%, rgba(255, 225, 160, 0.22) 75%, transparent 100%);
  filter: blur(6px);
  mix-blend-mode: screen;
  opacity: 0;
  will-change: opacity, transform;
  animation: lightShaft var(--shaft-duration, 11s) ease-in-out var(--shaft-delay, 0s) infinite;
}
@keyframes lightShaft {
  0%, 100% { opacity: 0.12; transform: rotate(-45deg) translate3d(0, 16px, 0); }
  26% { opacity: 0.3; transform: rotate(-45deg) translate3d(5px, 5px, 0); }
  48% { opacity: 0.55; transform: rotate(-45deg) translate3d(11px, -3px, 0); }
  68% { opacity: 0.28; transform: rotate(-45deg) translate3d(-4px, 7px, 0); }
  86% { opacity: 0.14; transform: rotate(-45deg) translate3d(-8px, 15px, 0); }
}
.hero.is-motion-paused .hero__shaft,
.hero.is-motion-paused .hero__dust span,
.hero.is-motion-paused .hero__flare,
.hero.is-motion-paused .hero__media img,
.hero.is-motion-paused .hero__scroll,
.hero.is-motion-paused .hero__ghost-mark,
.marquee.is-motion-paused .marquee__track { animation-play-state: paused; }
.is-low-power .hero__shafts .hero__shaft:nth-child(n + 3) { display: none; }
.is-low-power .hero__shafts .hero__shaft { filter: blur(4px); }
/* Constrained devices: a painted-in flare, no filtered or animated layers. */
.is-very-low-power .hero__shafts,
.is-very-low-power .hero__dust,
.is-very-low-power .glow,
.is-very-low-power .paper-section::before { display: none; }
.is-very-low-power .hero__flare {
  display: block;
  inset: 0;
  width: auto;
  height: auto;
  transform: none;
  animation: none;
  opacity: 1;
  background: radial-gradient(
    ellipse 62% 78% at 0% 0%,
    rgba(255, 196, 92, 0.2) 0%,
    rgba(255, 174, 58, 0.08) 32%,
    transparent 72%
  );
}
.is-very-low-power .hero__flare-inner { display: none; }
.is-very-low-power .hero__ghost-mark { animation: none; }
.is-very-low-power .hero__media img,
.is-very-low-power .hero__media img.is-active {
  animation: none;
  transform: none;
}
.is-very-low-power .marquee__track { animation: slide 120s linear infinite; }
.is-very-low-power [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
.is-very-low-power .nav__links,
.is-very-low-power .tags li,
.is-very-low-power .store-card,
.is-very-low-power .cta { backdrop-filter: none; }

.hero__dust {
  position: absolute;
  inset: 46% 0 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
}
.hero__dust span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--size) * 1.5);
  height: calc(var(--size) * 1.5);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 238, 208, 0.9) 0 24%, rgba(255, 224, 178, 0.38) 52%, transparent 78%);
  mix-blend-mode: plus-lighter;
  opacity: 0;
  contain: paint;
  animation: dustFloat var(--duration, 10s) ease-in-out var(--delay, 0s) infinite;
}
/* Keep the atmosphere on older hardware without promoting 42 animated
   particles at once. Full particle density remains the default. */
.is-low-power .hero__dust span:nth-child(3n + 1),
.is-low-power .hero__dust span:nth-child(3n + 2) { display: none; }
@keyframes dustFloat {
  0%, 100% { opacity: 0; transform: translate3d(0, 9px, 0) scale(0.62); }
  16% { opacity: 0.1; transform: translate3d(0, 2px, 0) scale(0.8); }
  38% { opacity: calc(var(--alpha, 0.42) + 0.18); transform: translate3d(var(--drift, 6px), -8px, 0) scale(1); }
  56% { opacity: calc(var(--alpha, 0.42) + 0.18); transform: translate3d(calc(var(--drift, 6px) * 0.38), -13px, 0) scale(1.06); }
  72% { opacity: calc(var(--alpha, 0.42) + 0.14); transform: translate3d(calc(var(--drift, 6px) * -0.24), -5px, 0) scale(0.94); }
  88% { opacity: 0.08; transform: translate3d(calc(var(--drift, 6px) * -0.35), 4px, 0) scale(0.78); }
}

.hero__inner { position: relative; width: 100%; z-index: 3; }

.hero__logo {
  display: block;
  width: min(468px, 80vw);
  height: auto;
  margin-bottom: clamp(16px, 2vw, 24px);
  filter: drop-shadow(0 18px 40px rgba(10, 3, 22, 0.8));
}
.hero__ghost-mark {
  transform-box: fill-box;
  transform-origin: center;
  animation: ghost-hover 4.8s ease-in-out infinite;
}
@keyframes ghost-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.hero__title {
  font-size: clamp(25px, 3.2vw, 40px);
  max-width: 24ch;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(14, 4, 28, 0.8);
}
.hero__title .sub {
  display: block;
  font-family: var(--body);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--marigold);
  margin-bottom: 12px;
  text-shadow: none;
}

.hero__pitch {
  max-width: 52ch;
  color: rgba(255, 248, 238, 0.9);
  font-size: clamp(16px, 1.1vw, 18.5px);
  margin-bottom: 22px;
  text-shadow: 0 2px 18px rgba(14, 4, 28, 0.9);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.tags li {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(20, 6, 42, 0.55);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 245, 235, 0.88);
  backdrop-filter: blur(3px);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: rgba(255, 248, 238, 0.92);
  padding: 12px 16px;
  transition: color 0.25s var(--ease);
}
.hero__ghost svg { width: 19px; height: 19px; }
.hero__ghost:hover { color: var(--marigold); }

.hero__scroll { display: none; }
/* Phone-only copy of the intro, shown below the hero art (see 620px block). */
.hero__mobile-details { display: none; }

/* --- Marquee ----------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  --marquee-gap: clamp(16px, 3vw, 40px);
  --marquee-gap-half: clamp(8px, 1.5vw, 20px);
  gap: var(--marquee-gap);
  animation: slide var(--speed, 80s) linear infinite;
  will-change: transform;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
/* Half the track is the duplicated run plus one gap: travel that far and the
   copy lands exactly where the original was, with no jump at the seam. */
@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - var(--marquee-gap-half)), 0, 0); }
}
.marquee img {
  height: clamp(66px, 6.1vw, 90px);
  width: auto;
  opacity: 0.82;
  flex: none;
}
/* Extend the marquee's clip box 16px upward (into the section's own top
   padding) so the laurels can sit higher without being cut; the negative
   margin cancels the padding, so the rail's layout doesn't move. */
.section--awards .marquee { padding-top: 16px; margin-top: -16px; }
.section--awards .marquee img {
  height: clamp(77px, 7.04vw, 104px);
  position: relative;
  top: -16px;
}

/* --- Prose -------------------------------------------------------------- */
.prose {
  max-width: var(--measure);
  margin-inline: auto;
  font-size: clamp(16.5px, 1.15vw, 18.5px);
  color: var(--ink-t2);
}
.prose p { margin-bottom: 1.15em; }
.prose > .lede {
  font-family: var(--display);
  font-size: clamp(21px, 2.1vw, 28px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin-bottom: 1.1em;
}
.prose h3 {
  font-size: clamp(20px, 1.8vw, 25px);
  margin: 1.7em 0 1.05em;
}
/* The last paragraph's bottom margin would stack on the section padding. */
.prose > div > p:last-child { margin-bottom: 0; }
#studio { padding-bottom: clamp(30px, 3.6vw, 52px); }
.prose--dark { color: var(--t-2); }
.prose--dark > .lede { color: var(--cream); }

.loop {
  position: relative;
  margin: clamp(18px, 2.4vw, 36px) auto;
  max-width: 1320px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(60, 24, 10, 0.8);
  background: #2A0E4B;
}
.loop picture { display: block; }
.loop img { width: 100%; }
/* The poster stays in layout and in the accessibility tree; the video sits
   over it and only becomes visible once it is actually playing. An odd source
   height gains one duplicated row for H.264, which --loop-video-height crops
   back off so the strip keeps its original aspect. */
.loop-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--loop-video-height, 100%);
  max-width: none;
  object-fit: fill;
  opacity: 0;
  pointer-events: none;
}
.loop-video.is-playing { opacity: 1; }

/* --- Facts strip -------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 2px;
  background: rgba(251, 241, 226, 0.12);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.fact {
  background: var(--ink-800);
  padding: 24px 24px 26px;
  display: grid;
  gap: 6px;
  align-content: start;
  transition: background 0.3s var(--ease);
}
.fact:hover { background: #2A0E48; }
.fact dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marigold);
}
.fact dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}
.fact dd small {
  display: block;
  margin-top: 5px;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--t-3);
}

/* --- Games -------------------------------------------------------------- */
.games { display: grid; gap: clamp(20px, 3vw, 34px); }

.game {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 46px);
  align-items: start;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 130% at 8% 0%, rgba(255, 176, 58, 0.2), transparent 60%),
    linear-gradient(135deg, #4A1354, #331061 58%, #21093E);
  overflow: hidden;
  isolation: isolate;
}
.game--past {
  background:
    radial-gradient(90% 130% at 8% 0%, rgba(63, 191, 160, 0.16), transparent 60%),
    linear-gradient(135deg, #24104E, #1C0B3C 60%, #180830);
}
.game__art {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surf-1);
  box-shadow: var(--lift-strong);
}
.game__art img { width: 100%; }
.game__art .loop-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--loop-video-height, 100%);
  max-width: none;
  object-fit: fill;
  opacity: 0;
  pointer-events: none;
}
.game__art .loop-video.is-playing { opacity: 1; }
.game__body { min-width: 0; }

/* Stacked media beside the copy — poster, then the animated strips. */
.game__media { display: grid; gap: clamp(12px, 1.4vw, 18px); }
.game--past .game__art { align-self: start; }
.game__art picture { display: block; }
.game__media .shot { cursor: zoom-in; border: 0; padding: 0; display: block; width: 100%; }
.game__media .shot img { transition: transform 0.7s var(--ease); }
.game__media .shot:hover img { transform: scale(1.04); }

/* Click-to-load video facade — no YouTube until the viewer asks for it. */
.videoframe {
  position: relative;
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
  display: block;
}
.videoframe img { width: 100%; opacity: 0.88; transition: opacity 0.5s var(--ease), transform 0.9s var(--ease); }
.videoframe:hover img { opacity: 1; transform: scale(1.03); }
.videoframe iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.videoframe__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.videoframe__disc {
  width: clamp(48px, 5vw, 66px);
  height: clamp(48px, 5vw, 66px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--violet);
  box-shadow: 0 16px 40px -14px rgba(138, 63, 242, 0.75);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.videoframe:hover .videoframe__disc { background: var(--violet-lift); transform: scale(1.1); }
.videoframe__disc svg { width: 38%; height: 38%; color: #fff; transform: translateX(-7%); }
/* Small, quiet caption under the video; plain text, no pill. The negative top
   margin pulls it up into the grid gap so it reads as belonging to the video. */
.videoframe__label {
  margin-top: calc(clamp(12px, 1.4vw, 18px) * -0.6);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-3);
}
.videoframe.is-playing .videoframe__play { display: none; }

.game__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(63, 191, 160, 0.16);
  color: var(--jade);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.game__status--archive { background: rgba(251, 241, 226, 0.09); color: var(--t-3); }

.game__wordmark { width: min(300px, 74%); margin-bottom: 16px; }
.game__name {
  font-size: clamp(26px, 2.6vw, 36px);
  margin-bottom: 6px;
}
.game__tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marigold);
  margin-bottom: 16px;
}
.game__blurb { color: var(--t-2); margin-bottom: 18px; }
.game__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 15px;
  color: var(--t-2);
}
/* Block, not flex — inline <strong> inside a flex item becomes its own box
   and the sentence after it picks up the gap and wraps to its own column. */
.game__list li { position: relative; padding-left: 16px; }
.game__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--marigold);
}
.game--past .game__list li::before { background: var(--jade); }

.partner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: rgba(255, 245, 235, 0.06);
  color: rgba(255, 245, 235, 0.86);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: background 0.3s var(--ease);
}
.partner:hover { background: rgba(255, 245, 235, 0.1); }
.partner__logo {
  flex: none;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
}
.partner__logo img { display: block; width: 112px; height: auto; }
@media (max-width: 520px) {
  .partner { flex-direction: column; align-items: flex-start; }
}

.game__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.game__note { margin-top: 16px; font-size: 13.5px; color: var(--t-3); }
.game__note a { color: var(--marigold); }
.game__note a:hover { color: var(--cream); }

/* Store pills, solid, no glass */
.storerail__label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 245, 235, 0.72);
  margin-bottom: 12px;
}
.storerail__row { display: flex; flex-wrap: wrap; gap: 8px; }

.storebtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: #06303D;
  box-shadow: 0 16px 30px -18px rgba(10, 3, 22, 0.95);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.storebtn svg { width: 22px; height: 22px; flex: none; }
.storebtn__text { display: grid; line-height: 1.2; }
.storebtn__name { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.storebtn__meta { font-size: 11.5px; color: rgba(6, 48, 61, 0.72); }
.storebtn:hover {
  transform: translateY(-3px);
  background: var(--blue-lift);
  box-shadow: 0 22px 40px -20px rgba(51, 195, 240, 0.65);
}

/* Screenshot strip under the SOPA block */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(112px, 12vw, 176px);
  gap: clamp(9px, 1vw, 14px);
}
.shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 0;
  padding: 0;
  background: var(--surf-1);
  cursor: zoom-in;
  display: block;
  width: 100%;
  height: 100%;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.shot:hover img { transform: scale(1.06); }
.shot--xl { grid-column: span 2; grid-row: span 2; }
.shot--wide { grid-column: span 2; }

/* --- Craft -------------------------------------------------------------- */
.craft {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
/* Hand-drawn outlines, the same three sketched frames sopagame.com uses. */
.craft__card {
  position: relative;
  isolation: isolate;
  padding: 26px 26px 28px;
  transition: transform 0.3s var(--ease);
}
.craft__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("feature-outline-1.svg") 0 0 / 100% 100% no-repeat;
  filter: drop-shadow(0 12px 14px rgba(60, 24, 10, 0.16));
  transition: filter 0.3s var(--ease);
}
.craft__card:nth-of-type(3n + 2)::before { background-image: url("feature-outline-2.svg"); }
.craft__card:nth-of-type(3n)::before { background-image: url("feature-outline-3.svg"); }
.craft__card:hover { transform: translateY(-4px); }
.craft__card:hover::before { filter: drop-shadow(0 18px 20px rgba(60, 24, 10, 0.22)); }
.craft__card h3 {
  font-size: 20px;
  margin-bottom: 9px;
}
.craft__card p { color: var(--ink-t2); font-size: 15.5px; line-height: 1.58; }

.nogen {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 22px;
  margin-top: clamp(24px, 3vw, 40px);
  padding: 22px 26px;
  border-radius: var(--r-lg);
  background: rgba(30, 16, 22, 0.06);
  box-shadow: inset 0 0 0 1px rgba(30, 16, 22, 0.1);
}
.nogen__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--terracotta);
  color: #fff;
}
.nogen__mark svg { width: 24px; height: 24px; }
/* One sentence runs across two columns; once the body is too narrow for
   both, the halves flow back together as a single paragraph. */
.nogen__body { flex: 1; min-width: 220px; container-type: inline-size; }
.nogen__text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
  color: var(--ink-t2);
  font-size: 15.5px;
}
@container (max-width: 480px) {
  .nogen__text { display: block; }
  .nogen__text > span { display: inline; }
}
.nogen strong { color: var(--ink-900); }

/* --- Pull quotes ------------------------------------------------------- */
.pull {
  position: relative;
  text-align: center;
  padding-block: clamp(54px, 7vw, 100px);
  overflow: hidden;
}
.section--games + .pull { padding-top: clamp(14px, 1.8vw, 26px); }
.pull__inner { position: relative; max-width: 940px; margin-inline: auto; }
.pull blockquote {
  margin: 0 auto;
  font-family: var(--display);
  max-width: 820px;
  font-size: clamp(21px, 2.6vw, 36px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--t-2);
  text-wrap: balance;
}
.pull blockquote::before { content: "\201C"; color: var(--marigold); }
.pull blockquote::after { content: "\201D"; color: var(--marigold); }
.pull__src {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-3);
  transition: color 0.25s var(--ease);
}
.pull__src svg { width: 13px; height: 13px; }
.pull a.pull__src:hover { color: var(--marigold); }
.pull--paper blockquote { color: var(--ink-t2); }
.pull--paper .pull__src { color: var(--ink-t3); }
.pull--paper a.pull__src:hover { color: var(--terracotta); }
.awards__quote {
  margin-top: clamp(16px, 2vw, 28px);
  padding-top: clamp(26px, 3vw, 44px);
  padding-bottom: 0;
}

/* Quote wall */
.quotewall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 292px), 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.quote {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(251, 241, 226, 0.08), rgba(251, 241, 226, 0.03));
  box-shadow: inset 0 0 0 1px rgba(251, 241, 226, 0.07);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.quote:hover {
  transform: translateY(-4px);
  background: linear-gradient(160deg, rgba(251, 241, 226, 0.12), rgba(251, 241, 226, 0.05));
}
.quote p {
  font-family: var(--display);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--t-1);
  margin: 0;
}
.quote cite {
  margin-top: auto;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t-3);
}
.quote a cite, a.quote cite { color: var(--marigold); }

.press-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 30px);
  max-width: 760px;
  margin-inline: auto;
  align-items: center;
  justify-items: center;
}
.pressdots {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: clamp(14px, 2vw, 26px);
}
.pressdots[hidden] { display: none; }
.pressdot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pressdot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(251, 241, 226, 0.35);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.pressdot:hover::before { background: rgba(251, 241, 226, 0.7); }
.pressdot.is-active::before { background: var(--marigold); transform: scale(1.3); }
.pressdot:focus-visible { outline: 2px solid var(--marigold); outline-offset: 0; border-radius: 50%; }
.press-grid img {
  width: 100%;
  max-width: 190px;
  height: auto;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.6, 1);
}
.press-grid img.is-shown {
  opacity: 0.7;
  transition: opacity 1.5s cubic-bezier(0.33, 0, 0.2, 1);
}

/* --- News band: the simmering pot behind "What's cooking lately" --------
   Same loop as the bottom of sopagame.com. The scrim stays heavy through the
   middle so post text and the preview caption read cleanly, and fades to the
   page ink at both edges so the band blends into its neighbours. */
.news.sketch-band--ink::after { display: none; }
.news__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.news__bg picture { display: block; width: 100%; height: 100%; }
.news__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.news__bg .loop-video { object-fit: cover; object-position: center 45%; }
.news__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    var(--ink-800) 0%,
    rgba(26, 8, 50, 0.82) 12%,
    rgba(26, 8, 50, 0.58) 34%,
    rgba(26, 8, 50, 0.58) 70%,
    rgba(26, 8, 50, 0.84) 90%,
    var(--ink-800) 100%);
}
.news .section-head { text-shadow: 0 2px 18px rgba(26, 8, 50, 0.7); }
.news .post__meta { color: rgba(251, 241, 226, 0.72); }

/* --- Latest ------------------------------------------------------------ */
.latest {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  max-width: 1040px;
  margin-inline: auto;
}
.latest--bare { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.latest__hero {
  display: block;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surf-1);
  /* The card takes the shape of the post image site.js measures, so a wide
     announcement is not cropped into a portrait tile. */
  aspect-ratio: var(--latest-ratio, 16 / 9);
  min-height: 0;
}
.latest__feature { min-width: 0; }
.latest__feature .post { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 6px 0; }
.latest__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.latest__hero:hover img { transform: scale(1.04); }
.latest__list { min-width: 0; }

.post {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: baseline;
  padding: 22px 6px;
  transition: opacity 0.25s var(--ease);
}
.post + .post { box-shadow: inset 0 1px 0 rgba(251, 241, 226, 0.08); }
.post:hover { opacity: 0.78; }
.post__meta {
  display: grid;
  gap: 4px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-3);
  line-height: 1.4;
}
.post__src { display: inline-flex; align-items: center; gap: 6px; color: var(--marigold); }
.post__src svg { width: 13px; height: 13px; }
.post__body {
  font-family: var(--display);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--t-1);
}
.latest__empty { color: var(--t-3); font-size: 14.5px; padding: 16px 6px; }
.latest__more {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding-left: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--t-3);
}
.latest__more a { color: var(--marigold); }
.latest__more a:hover { color: var(--cream); }

/* --- Team -------------------------------------------------------------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr));
  gap: clamp(16px, 2vw, 28px);
  max-width: 940px;
  margin-inline: auto;
}
.person { text-align: center; }
.person__pic {
  position: relative;
  width: min(196px, 62vw);
  margin: 0 auto 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, #4A1354, #21093E);
  box-shadow: 0 26px 50px -30px rgba(10, 3, 22, 0.95);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.person__pic img { width: 100%; height: 100%; object-fit: cover; }
.person:hover .person__pic {
  transform: translateY(-5px);
  box-shadow: 0 34px 60px -28px rgba(111, 11, 118, 0.7);
}
.person h3 { font-size: clamp(20px, 1.8vw, 24px); margin-bottom: 6px; }
.person__role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marigold);
  margin-bottom: 10px;
}
.person p { color: var(--t-2); font-size: 15px; }

/* On the cream band the cream-on-cream defaults have to flip to ink. */
.paper-section .person__role { color: var(--terracotta); }
.paper-section .person p { color: var(--ink-t2); }

.crew {
  max-width: 940px;
  margin: clamp(34px, 4.5vw, 62px) auto 0;
  padding: clamp(26px, 3.2vw, 44px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 130% at 88% 0%, rgba(63, 191, 160, 0.16), transparent 62%),
    linear-gradient(135deg, #24104E, #1C0B3C 60%, #180830);
}
/* The crew card is a dark inset inside the cream band, so it keeps light type. */
.crew h3,
.paper-section .crew h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 14px; color: var(--cream); }
.crew p { color: var(--t-2); }
.crew__map {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.crew__map li {
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(251, 241, 226, 0.08);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--t-2);
}

/* --- CTA band ---------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(34px, 5vw, 66px);
  background:
    radial-gradient(90% 130% at 12% 0%, rgba(255, 176, 58, 0.26), transparent 62%),
    linear-gradient(135deg, #4A1354, #331061 60%, #21093E);
  text-align: center;
}
.cta h2 { font-size: clamp(27px, 3.2vw, 42px); margin-bottom: 14px; }
.cta p { color: var(--t-2); max-width: 56ch; margin-inline: auto; }
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 26px;
}
.cta__minor { font-size: 14.5px; font-weight: 700; color: var(--t-2); padding: 12px 6px; }
.cta__minor:hover { color: var(--marigold); }

/* --- Contact ----------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr));
  gap: 2px;
  background: rgba(251, 241, 226, 0.12);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.contact__card {
  background: var(--ink-800);
  padding: 28px 26px 30px;
  display: grid;
  gap: 8px;
  align-content: start;
  transition: background 0.3s var(--ease);
}
.contact__card:hover { background: #2A0E48; }
.contact__card h3 {
  font-size: 11.5px;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marigold);
}
.contact__card a {
  font-family: var(--display);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
  box-shadow: inset 0 -1px 0 rgba(251, 241, 226, 0.28);
  transition: color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.contact__card a:hover { color: var(--marigold); box-shadow: inset 0 -1px 0 var(--marigold); }
.contact__card p { font-size: 14px; color: var(--t-3); margin: 0; }

/* --- Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink-900); padding-block: clamp(48px, 6vw, 76px) 36px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.4vw, 48px);
  align-items: start;
}
.footer__brand img { width: 104px; margin-bottom: 18px; }
.footer__brand p { color: var(--t-3); font-size: 14.5px; max-width: 34ch; }

.footer__col h4 {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-3);
  margin-bottom: 16px;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__list a { color: var(--t-2); font-size: 15px; transition: color 0.2s var(--ease); }
.footer__list a:hover { color: var(--marigold); }

.socials { display: flex; flex-wrap: wrap; gap: 9px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(251, 241, 226, 0.06);
  color: var(--t-2);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.socials a:hover { transform: translateY(-3px); color: #fff; background: var(--brand-lift); }
.socials svg { width: 18px; height: 18px; }

.footer__bottom {
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid rgba(251, 241, 226, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--t-3);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.footer__legal a { transition: color 0.2s var(--ease); }
.footer__legal a:hover { color: var(--cream); }

/* --- Legal pages -------------------------------------------------------
   privacy.html / terms.html: long text, no hero, header always solid.     */
.site-header--solid {
  background: rgba(20, 6, 42, 0.92);
  backdrop-filter: blur(14px) saturate(130%);
}
.site-header--solid .nav__brand { opacity: 1; visibility: visible; transform: none; }
.nav__back {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--t-2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  transition: color 0.2s var(--ease);
}
.nav__back svg { width: 17px; height: 17px; }
.nav__back:hover { color: var(--marigold); }

.legal { padding-block: clamp(104px, 11vw, 152px) clamp(56px, 7vw, 92px); }
.legal .section-sub a { color: var(--terracotta); box-shadow: inset 0 -1px 0 rgba(221, 90, 56, 0.45); }
.legal__inner {
  /* Flush with the page heading, not centred in the wrap. */
  max-width: 820px;
  font-size: clamp(15.5px, 1vw, 16.5px);
  line-height: 1.72;
  color: var(--ink-t2);
}
.legal__inner h4 {
  font-size: clamp(19px, 1.6vw, 23px);
  margin: 1.9em 0 0.5em;
  color: var(--ink-900);
}
.legal__inner > h4:first-child { margin-top: 0; }
.legal__inner h5 {
  font-family: var(--body);
  font-size: 15.5px;
  font-weight: 700;
  margin: 1.5em 0 0.35em;
  color: var(--ink-900);
}
.legal__inner a {
  color: var(--terracotta);
  box-shadow: inset 0 -1px 0 rgba(221, 90, 56, 0.45);
}
.legal__inner a:hover { color: #B3411F; box-shadow: inset 0 -1px 0 #B3411F; }
.legal__inner ul, .legal__inner ol { padding-left: 1.3em; }

/* --- Lightbox ---------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(14, 4, 28, 0.93);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1400px, 100%);
  max-height: 84vh;
  width: auto;
  border-radius: var(--r-md);
  box-shadow: 0 40px 90px -30px rgba(10, 3, 22, 0.9);
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 241, 226, 0.12);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lightbox__btn:hover { background: rgba(251, 241, 226, 0.24); transform: scale(1.06); }
.lightbox__btn svg { width: 21px; height: 21px; }
.lightbox__close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); }
.lightbox__prev { left: clamp(8px, 2.4vw, 30px); }
.lightbox__next { right: clamp(8px, 2.4vw, 30px); }
.lightbox__count {
  position: absolute;
  bottom: clamp(14px, 3vw, 30px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--t-3);
}

/* --- Reveal ------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1040px) {
  .game { grid-template-columns: minmax(0, 1fr); }
  .game__art, .game__media { order: -1; }
  /* Stacked over the copy there is only room for the poster and one strip —
     the rest would push the writing a full screen down. */
  .game__media > :nth-child(n + 3) { display: none; }
  .latest { grid-template-columns: minmax(0, 1fr); }
  .latest__hero { min-height: 0; max-height: none; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .nav__toggle { display: grid; }
  .nav__brand { margin-right: 0; }
  .nav__links {
    position: fixed;
    inset: 72px 12px auto 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px;
    border-radius: var(--r-lg);
    background: var(--ink-900);
    box-shadow: var(--lift-strong);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 13px 14px; font-size: 16px; }
  .nav__links a::after { display: none; }
  .nav__cta { display: none; }
  .nav__links-cta { display: block; margin-top: 8px; }
  .nav__links-cta a { padding: 13px 20px; font-size: 15px; text-align: center; }

  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(112px, 25vw, 190px); }
  .shot--wide { grid-column: span 1; }
  .shot--xl { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 620px) {
  .paper-section--sketch { --sketch-w: 30vw; }
  .paper-section--sketch::after { opacity: 0.2; }
  /* The hero keeps only the logo and headline, set low over the art; the
     tags, pitch and buttons move to .hero__mobile-details below it. */
  .hero {
    min-height: clamp(606px, calc(74svh + 16px), 716px);
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 112px;
    padding-bottom: 18px;
  }
  .hero__flare {
    top: -65px;
    left: -70px;
    width: 500px;
    height: 360px;
    animation: flarePulseMobile 8s ease-in-out infinite alternate;
  }
  .hero__shafts { transform: scale(0.68); transform-origin: 0 0; }
  .hero__shaft { filter: blur(7px); }
  .hero__shaft:nth-child(3) { height: 410px; }
  .hero__shaft:nth-child(4) { display: none; }
  .hero__flare-inner { filter: blur(26px); }
  .hero__flare-inner::after { opacity: 0.32; }
  @keyframes flarePulseMobile {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.18; }
  }
  .hero__media { background: var(--ink-900); }
  /* Lift the art so faces clear the headline; the strip it leaves at the
     bottom is ink, under the scrim's solid foot. The poster band is
     positioned on its own and stays put. */
  .hero__media img:not(.hero__poster) { translate: 0 -60px; }
  /* Miho fills the frame edge to edge, so he is drawn a little smaller and
     a little lower than the rest; his foot fades out above the ink. */
  .hero__media img:first-child {
    height: 94%;
    translate: 0 -10px;
    -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent);
    mask-image: linear-gradient(180deg, #000 86%, transparent);
  }
  /* The poster is only a band here, so the slide it replaces would stay
     visible around it; fade that slide out to the ink while it fades in. */
  .hero__media:has(> img.hero__poster.is-active) > img.is-prev { opacity: 0; }
  .hero__media img,
  .hero__media img.is-active,
  .hero__media img.is-prev {
    object-position: var(--hero-pos-sm, 76% 40%);
    scale: none;
    animation: none;
    transform: scale(1);
  }
  /* The poster is three times wider than it is tall: on a phone it becomes a
     band framing Nana through the frog thief, fading into the ink around it. */
  .hero__media img.hero__poster {
    top: 56px;
    bottom: auto;
    height: calc(100vw * 0.82);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 66%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 14%, #000 66%, transparent);
  }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(20, 6, 42, 0.08) 0%, rgba(20, 6, 42, 0.1) 32%, rgba(20, 6, 42, 0.5) 64%, rgba(20, 6, 42, 0.9) calc(100% - 72px), var(--ink-900) calc(100% - 44px));
  }
  .hero__logo { width: min(240px, 59vw); margin-bottom: 12px; }
  .hero__title { font-size: clamp(20px, 5.3vw, 24px); margin-bottom: 0; padding-right: 44px; }
  .hero__supporting { display: none; }
  .hero__mobile-details {
    display: block;
    position: relative;
    padding: 0 0 22px;
    background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%);
  }
  /* Off the art the dark glass pills vanish into the ink; give them plum. */
  /* All three pills on one line; the type scales down on the narrowest phones. */
  .hero__mobile-details .tags { gap: 5px; margin-bottom: 14px; flex-wrap: nowrap; }
  .hero__mobile-details .tags li {
    flex: none;
    padding: 4px 7px;
    font-size: clamp(8.5px, 2.5vw, 10.5px);
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: rgba(74, 21, 69, 0.72);
    border: 1px solid rgba(251, 241, 226, 0.1);
    box-shadow: inset 0 1px 0 rgba(251, 241, 226, 0.06);
    backdrop-filter: none;
  }
  .hero__pitch { font-size: 15px; line-height: 1.6; }
  .hero__actions { display: grid; }
  .hero__actions .btn { width: 100%; }
  .hero__ghost { justify-content: center; }
  /* Dots sit under the headline, level with the scroll cue on the right. */
  .hero__dots { left: calc(var(--gutter) - 7px); right: auto; bottom: 11px; }
  .hero:has(.hero__dots:not([hidden])) { padding-bottom: 44px; }
  .hero__scroll {
    position: absolute;
    right: var(--gutter);
    bottom: 6px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(251, 241, 226, 0.34);
    border-radius: 50%;
    color: var(--cream);
    background: rgba(20, 6, 42, 0.42);
    z-index: 3;
    animation: scrollCue 2.2s var(--ease) infinite;
  }
  .hero__scroll svg { width: 17px; height: 17px; }
  @keyframes scrollCue {
    0%, 100% { transform: translateY(0); opacity: 0.72; }
    50% { transform: translateY(4px); opacity: 1; }
  }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post { grid-template-columns: 1fr; gap: 8px; }
  .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game__wordmark { width: min(260px, 82%); }
}

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

/* --- Phone buy bar (from sopagame.com) ---------------------------------
   Slides up once the hero is gone, and gets out of the way wherever the
   store buttons are already on screen (the SOPA card) and over the footer. */
.buybar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 70;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 9px 9px 18px;
  border-radius: 999px;
  background: rgba(24, 7, 48, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -16px rgba(12, 4, 26, 0.95);
  transform: translateY(150%);
  transition: transform 0.45s var(--ease);
}
.buybar.is-visible { transform: translateY(0); }
.buybar__label { font-size: 13px; font-weight: 700; margin-right: auto; }
.buybar__icons { display: flex; gap: 8px; }
.buybar__icons a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #06303D;
}
.buybar__icons svg { width: 21px; height: 21px; }
.buybar__icons a:first-child svg { transform: translate(-1.4px, -1.4px); }
@media (max-width: 880px) {
  .buybar { display: flex; }
}

/* --- Cookie settings button on phones ------------------------------------
   consent.js pins it bottom-left over the content. On phones it starts in
   the empty top bar as a small frosted pill, and drops back to the bottom-left
   corner once the logo fades into the bar. It stays at least 24px tall (WCAG
   2.5.8 target size) and always reachable, so withdrawing consent is as easy
   as giving it. */
@media (max-width: 620px) {
  html .sb-cookie-settings {
    top: 23px;
    bottom: auto;
    left: var(--gutter);
    min-height: 24px;
    padding: 5px 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(20, 6, 42, 0.24);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
    color: rgba(255, 248, 238, 0.7);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.3;
    /* No movement: it only fades, slowly, so the switch reads as nothing. */
    animation: sb-cookie-in-top 1.2s ease-out both;
  }
  html .sb-cookie-settings:hover { background: rgba(20, 6, 42, 0.5); color: #fff; }
  html:has(.site-header.is-past-hero, .site-header--solid) .sb-cookie-settings {
    top: auto;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    animation-name: sb-cookie-in-bottom;
  }
  /* Above the buy bar while it is up. */
  html:has(.buybar.is-visible) .sb-cookie-settings {
    top: auto;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    animation-name: sb-cookie-in-above;
  }
  /* One fade under three names, so every change of place replays it. */
  @keyframes sb-cookie-in-top { from { opacity: 0; } to { opacity: 1; } }
  @keyframes sb-cookie-in-bottom { from { opacity: 0; } to { opacity: 1; } }
  @keyframes sb-cookie-in-above { from { opacity: 0; } to { opacity: 1; } }
}
/* Too narrow for one line of pills even at the smallest legible size. */
@media (max-width: 340px) {
  .hero__mobile-details .tags { flex-wrap: wrap; }
}
@media (max-width: 620px) and (prefers-reduced-motion: reduce) {
  html .sb-cookie-settings { animation: none; }
}
