/* Riverback Games: site sketch.
   Palette sampled from the logo: its teal background, the oxblood shield,
   the bone wordmark, YupYup's yellow and orange, NopeNope's green glow.
   The logo's thick black outlines are the one structural motif. */

:root {
  --teal-deep: #173f3d;
  --teal: #255e5b;       /* the logo background's outer edge */
  --teal-mid: #4a8483;
  --teal-light: #6da9aa; /* the logo background's centre */
  --oxblood-deep: #2e1312;
  --oxblood: #582a28;
  --oxblood-light: #8b5252;
  --bone: #e3d7b6;
  --bone-dim: #bcab8a;
  --yup: #f8d81c;
  --yup-hot: #f46a0c;
  --nope: #3fe06b;
  --ink: #000;
  --night: #0c1d1c;
  --outline: 3px solid var(--ink);
  --display: "Grandstander", "Trebuchet MS", sans-serif;
  --body: "Literata", Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --strip-h: 48px;
  /* The logo's own background: a circle from the light centre to the edge
     colour, measured from the source layer (Background02). */
  --logo-glow: #6da9aa 0%, #5f9a9a 25%, #4a8483 50%, #36706e 75%, #255e5b 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html[data-motion="on"] { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--teal-deep);
  color: var(--bone);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.1; margin: 0; }
:focus-visible { outline: 3px solid var(--yup); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yup); color: var(--ink); padding: 8px 14px;
  font-family: var(--display); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.sketch-ribbon {
  position: fixed; left: 12px; bottom: 12px; z-index: 60;
  background: var(--bone); color: var(--ink); border: var(--outline);
  font: 700 0.8rem/1 var(--display); padding: 6px 10px;
}

/* ---------- Loading screen ----------
   Only the logo, on every page and on every page change (Sabotage). Painted
   from <body class="is-loading"> so it covers the page from the first frame,
   before any script runs; js/nav.js lifts it once the page is ready. The
   music player stays above it, so the music visibly carries on. */
body::before, body::after {
  content: ""; position: fixed; z-index: 65;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 450ms ease, visibility 0s linear 450ms;
}
body::before { inset: 0; background: radial-gradient(circle at 50% 50%, #1f4d4b, #0d2423 70%); }
body::after {
  left: 50%; top: 50%; translate: -50% -50%;
  width: min(240px, 50vw); aspect-ratio: 320 / 194;
  background: url("../assets/logo/logo-small.webp") center / contain no-repeat;
  animation: loader-breathe 1.6s ease-in-out infinite;
}
body.is-loading::before, body.is-loading::after {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 180ms ease;
}
@keyframes loader-breathe { 50% { transform: scale(1.04); filter: brightness(1.15); } }
main:focus { outline: none; }

/* ---------- Top bar ----------
   Identical on every page (built only in js/chrome.js). Its own block at the
   top that scrolls away with the page; not full black, not stretched to the
   left edge (Klei); capital tab names. */
.strip {
  position: relative; z-index: 50;
  height: calc(var(--strip-h) + 12px);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 0 var(--gutter);
  background: var(--teal-deep);
}
.strip nav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  gap: 0 clamp(0px, 1vw, 10px);
  min-height: var(--strip-h);
  background: rgba(88, 42, 40, 0.94);
  border: var(--outline); border-top: 0;
  border-radius: 0 0 14px 14px;
  padding: 0 clamp(6px, 2vw, 20px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}
.tab {
  display: flex; align-items: center;
  padding: 0 clamp(5px, 1.3vw, 14px);
  font: 900 clamp(0.8rem, 2.4vw, 1.12rem)/1 var(--display);
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; color: var(--bone);
  border-bottom: 4px solid transparent;
}
.tab:hover { color: var(--yup); }
.tab[aria-current="page"] { color: var(--yup); border-bottom-color: var(--yup); }

/* White text with a black outline (the "Watch Trailer" and "ON/OFF" labels). */
.outlined {
  color: #fff;
  text-shadow: -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000,
    0 2px 0 #000, 2px 0 0 #000, 0 -2px 0 #000, -2px 0 0 #000;
}

/* ---------- Blocks ---------- */
.block { position: relative; }
.block-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  max-width: 1180px; margin: 0 auto 28px; padding: 0 var(--gutter);
}
.block-head h2 { font-size: clamp(2rem, 5vw, 2.75rem); }
.more { font-family: var(--display); font-weight: 700; color: var(--yup); text-underline-offset: 4px; }

/* ---------- 1. Logo block ---------- */
.logo-block {
  /* As big as the window allows (2026-10-14: bigger): the logo fills the
     first screen down to the tagline, and the Patreon bar peeks at the fold. */
  --logo-w: min(1240px, calc(100vw - 2 * var(--gutter)), max(340px, calc((100svh - 210px) * 1.65)));
  --logo-top: 22px;
  position: relative;
  padding: var(--logo-top) var(--gutter) 22px;
  background:
    radial-gradient(circle calc(var(--logo-w) * 0.52) at 50% calc(var(--logo-top) + var(--logo-w) * 0.303), var(--logo-glow)),
    var(--teal);
  text-align: center;
  /* Clip sideways only, so the language pop-up can open upward past the block. */
  overflow-x: clip;
}
@media (max-width: 640px) {
  /* Phones: room for the corner buttons above and below the logo. */
  .logo-block { --logo-top: 54px; padding-bottom: 62px; }
}
.logo {
  position: relative;
  width: var(--logo-w);
  max-width: 100%;
  aspect-ratio: 640 / 388;
  margin: 0 auto;
  touch-action: manipulation;
}
.logo .part { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo img { image-rendering: pixelated; }
@media (max-width: 639px) { .logo img { image-rendering: auto; } }
.strings { overflow: visible; }
.string { fill: none; stroke-linecap: round; }
.string-yup { stroke: #f4f4f4; stroke-width: 1.8; }
.string-nope { stroke: #000; stroke-width: 1.6; }
.nope-glow { opacity: 0.35; transition: opacity 400ms ease; }
.logo.nope-awake .nope-glow { opacity: 1; }

.critter {
  position: absolute;
  padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 50%;
  will-change: transform;
}
.critter:focus-visible { outline-offset: 6px; border-radius: 50%; }
.critter-bob { position: relative; display: block; width: 100%; height: 100%; }
.critter img { position: absolute; }
/* Positions are canvas pixels / 640 x 388, so the pieces line up at any size. */
.critter.yup  { left: 11.25%; top: 21.65%; width: 13.28%; height: 23.2%; }
.yup-body { inset: 0; width: 100%; height: 100%; }
.yup-face { left: 34.12%; top: 25.56%; width: 47.06%; height: 40%; transition: opacity 300ms ease; }
.critter.nope { left: 76.72%; top: 14.43%; width: 14.84%; height: 35.05%; }
.nope-skull { inset: 0; width: 100%; height: 100%; }
.nope-tongue {
  left: 41.05%; top: 77.21%; width: 35.79%; height: 36.76%;
  transform-origin: 50% 0;
  transition: transform 300ms cubic-bezier(.3, 1.6, .5, 1);
}

/* Asleep: dim, still, tongue in. Awake: bright, following. */
.yup { filter: saturate(0.55) brightness(0.8); transition: filter 400ms ease; }
.yup .yup-face { opacity: 0.35; }
.yup.is-awake { filter: drop-shadow(0 0 14px rgba(248, 216, 28, 0.85)) saturate(1.1); }
.yup.is-awake .yup-face { opacity: 1; }
.nope { filter: grayscale(0.6) brightness(0.75); transition: filter 400ms ease; }
.nope .nope-tongue { transform: translateY(-62%) scaleY(0.4); }
.nope.is-awake { filter: drop-shadow(0 0 12px rgba(63, 224, 107, 0.8)); }
.nope.is-awake .nope-tongue { transform: none; animation: tongue-wag 1.4s ease-in-out infinite; }
@keyframes tongue-wag { 50% { transform: rotate(-9deg); } }

.critter-bob { animation: bob 3.2s ease-in-out infinite; }
.nope .critter-bob { animation-duration: 3.8s; animation-delay: -1.1s; }
.is-awake .critter-bob { animation: none; }
@keyframes bob { 50% { transform: translateY(4%); } }

.yup.is-poked .critter-bob { animation: yup-poke 600ms cubic-bezier(.2, 1.4, .4, 1); }
@keyframes yup-poke {
  0% { transform: scale(1); }
  25% { transform: scale(1.25, 0.8); }
  55% { transform: scale(0.9, 1.15) translateY(-14%); }
  100% { transform: scale(1); }
}
.nope.is-poked .critter-bob { animation: nope-poke 520ms ease-out; }
@keyframes nope-poke {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg) scale(1.1); }
  45% { transform: rotate(10deg); }
  70% { transform: rotate(-5deg); }
}
.nope.is-poked .nope-tongue { animation: none; transform: scaleY(1.5); }

.heart {
  position: absolute; aspect-ratio: 1; pointer-events: none;
  color: var(--yup-hot);
  animation: heart-rise 900ms ease-out forwards;
}
@keyframes heart-rise {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), -260%) scale(1.1); }
}

/* The reveal: one orchestrated moment after the loader. */
.logo .part, .critter { opacity: 0; }
.logo.is-revealed .part { opacity: 1; transition: opacity 500ms ease, transform 600ms cubic-bezier(.2, 1.3, .4, 1), filter 220ms ease; }
.logo.is-revealed .nope-glow { opacity: 0.35; }
.logo.is-revealed.nope-awake .nope-glow { opacity: 1; }
.logo:not(.is-revealed) .part:nth-child(1) { transform: scale(0.86); }
.logo:not(.is-revealed) .part:nth-child(4), .logo:not(.is-revealed) .wordmark { transform: translateY(-6%); }
.logo.is-revealed .critter { opacity: 1; animation: pop 650ms cubic-bezier(.2, 1.6, .4, 1) both; }
.logo.is-revealed .critter.yup { animation-delay: 420ms; }
.logo.is-revealed .critter.nope { animation-delay: 620ms; }
@keyframes pop { 0% { opacity: 0; transform: scale(0); } 100% { opacity: 1; transform: scale(1); } }

/* "Riverback Games" lights up under the pointer and opens the company video.
   The hit area covers the wordmark (canvas 204,114 to 478,253). */
.wordmark { pointer-events: none; }
.wordmark-hit {
  position: absolute; z-index: 1;
  left: 31.875%; top: 29.38%; width: 42.81%; height: 35.82%;
  margin: 0; padding: 0; border: 0; border-radius: 40% / 50%; background: none; cursor: pointer;
}
.logo:not(.is-revealed) .wordmark-hit { pointer-events: none; }
.logo.is-revealed .wordmark-hit:hover + .wordmark,
.logo.is-revealed .wordmark-hit:focus-visible + .wordmark {
  filter: brightness(1.35) drop-shadow(0 0 5px rgba(255, 247, 222, 0.95)) drop-shadow(0 0 16px rgba(248, 216, 28, 0.6));
}
.wordmark-hit:focus-visible { outline-offset: 4px; }

.tagline {
  margin: 4px 0 0;
  font: 700 clamp(1.1rem, 2.8vw, 1.5rem)/1.2 var(--display);
  color: var(--bone);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

/* ---------- Cookie bar: at the top, one slim row ---------- */
.cookie-block {
  background: var(--teal);
  border-top: var(--outline); border-bottom: var(--outline);
  padding: 4px var(--gutter);
}
.cookie-block[hidden] { display: none; }
.cookie-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px;
}
.cookie-left, .cookie-right { display: flex; align-items: center; gap: 10px; }
.cookie-line { margin: 0; font-size: 0.92rem; }
.btn.btn-cookie { min-height: 32px; padding: 3px 12px; font-size: 0.95rem; border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); }
.cookie-help { position: relative; }
.cookie-q {
  width: 30px; height: 30px; border-radius: 50%;
  border: var(--outline); background: var(--teal-deep); color: var(--bone);
  font: 900 1rem/1 var(--display); cursor: pointer;
}
.cookie-q:hover, .cookie-q[aria-expanded="true"] { background: var(--yup); color: var(--ink); }
.cookie-pop {
  position: absolute; z-index: 60; top: calc(100% + 10px); left: 0;
  width: min(340px, 82vw);
  background: var(--bone); color: #1c1a14;
  border: var(--outline); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink);
  padding: 12px 14px; font-size: 0.9rem; line-height: 1.5;
}
.cookie-pop strong { display: block; font-family: var(--display); font-size: 1rem; margin-bottom: 4px; }
.cookie-pop[hidden] { display: none; }
/* The red cross that closes a bar (cookies, Patreon) or a pop-up. */
.bar-close, .pop-close {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center; padding: 0;
  background: #c62828; color: #fff; border: var(--outline); border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
}
.bar-close:hover, .pop-close:hover { background: #e53935; }
.bar-close svg, .pop-close svg { width: 14px; height: 14px; }
.pop-close { width: 28px; height: 28px; box-shadow: 2px 2px 0 var(--ink); }

/* Round buttons on the logo block's corners. A closed bar leaves its button
   there (cookies top right, Patreon bottom right). */
.corner-btn {
  position: absolute; z-index: 5;
  width: 46px; height: 46px; padding: 6px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bone); border: var(--outline); box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
  transition: transform 160ms ease;
}
.corner-btn[hidden] { display: none; }
.corner-btn svg { width: 100%; height: 100%; }
.corner-btn:hover { transform: rotate(-12deg); }
.cookie-corner { top: 12px; right: var(--gutter); }
.cookie-corner:hover { background: #f1e7cc; }
.patreon-corner { bottom: 12px; right: var(--gutter); background: #ff424d; color: #fff; padding: 11px; }
.patreon-corner:hover { background: #ff6a73; }

/* Follow links, top left: YouTube, TikTok, Instagram, Facebook, X. */
.follow-row {
  position: absolute; z-index: 5; top: 12px; left: var(--gutter);
  display: flex; gap: 8px;
}
.follow {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: #fff; border: var(--outline); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 160ms ease;
}
.follow svg { width: 22px; height: 22px; }
.follow:hover, .follow:focus-visible { transform: translateY(-3px) rotate(-8deg); }
.follow-youtube { background: #ff0033; }
.follow-tiktok { background: #111; }
.follow-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.follow-facebook { background: #1877f2; }
.follow-x { background: #111; }
.follow-x svg { width: 19px; height: 19px; }

/* Language flag, bottom left, and its pop-up of flags (no translations yet). */
.lang { position: absolute; z-index: 6; left: var(--gutter); bottom: 12px; text-align: left; }
.lang-btn[hidden] { display: none; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 13px 0 9px;
  background: var(--bone); color: var(--ink);
  border: var(--outline); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  font: 900 0.92rem/1 var(--display); letter-spacing: 0.04em; cursor: pointer;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--yup); }
.flag-svg { display: block; width: 30px; height: 20px; border: 2px solid var(--ink); border-radius: 3px; box-sizing: content-box; overflow: hidden; }
.lang-btn .flag-svg { transform-origin: 0 50%; }
.lang-btn:hover .flag-svg, .lang-btn:focus-visible .flag-svg { animation: flag-wave 900ms ease-in-out infinite; }
@keyframes flag-wave {
  0%, 100% { transform: perspective(60px) rotateY(0) skewY(0); }
  30% { transform: perspective(60px) rotateY(-22deg) skewY(-5deg); }
  70% { transform: perspective(60px) rotateY(16deg) skewY(4deg); }
}
.lang-pop {
  position: absolute; left: 0; bottom: calc(100% + 12px);
  width: min(470px, calc(100vw - 2 * var(--gutter)));
  background: var(--bone); color: #1c1a14;
  border: var(--outline); border-radius: 12px; box-shadow: 5px 5px 0 var(--ink);
  padding: 10px 12px 12px;
  transform-origin: 20px 100%;
  animation: pop-in 200ms cubic-bezier(.2, 1.3, .4, 1);
}
.lang-pop[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.94); } }
.lang-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lang-head h2 { font-size: 1.15rem; }
.lang-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 520px) { .lang-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lang-item {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 5px 7px; border: 2px solid transparent; border-radius: 8px; background: none;
  font: 700 0.88rem/1.15 var(--display); text-align: left; cursor: pointer;
}
.lang-item:hover { background: #efe5c8; border-color: var(--ink); }
.lang-item[aria-current="true"] { background: var(--yup); border-color: var(--ink); }
.lang-item .flag { flex: none; }
.lang-item.is-nod .flag-svg { animation: flag-nod 420ms ease; }
@keyframes flag-nod { 30% { transform: rotate(-10deg); } 65% { transform: rotate(7deg); } }
.lang-name { min-width: 0; overflow-wrap: anywhere; }
.lang-note { margin: 10px 2px 0; font: 700 0.82rem/1.2 var(--display); color: #5c5442; }

@media (max-width: 640px) {
  .follow-row { gap: 6px; }
  .follow { width: 34px; height: 34px; }
  .follow svg { width: 19px; height: 19px; }
  .corner-btn { width: 40px; height: 40px; }
  .lang-btn { height: 38px; }
}

/* ---------- Patreon ---------- */
.patreon-block {
  background: var(--teal);
  border-top: var(--outline); border-bottom: var(--outline);
  padding: 8px var(--gutter);
}
.patreon-block[hidden] { display: none; }
/* The close button sits beside the Patreon icon, clear of the music player. */
.patreon-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.patreon-close { margin-left: 4px; }
.patreon-inner p { margin: 0; font: 700 clamp(1rem, 2.4vw, 1.2rem)/1.2 var(--display); }
.patreon-link {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: #ff424d; color: #fff; border: var(--outline); border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
}
.patreon-link:hover { background: #ff6a73; }
.patreon-link svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 20px;
  font: 900 1.05rem/1 var(--display);
  border: var(--outline); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none; cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-amber { background: var(--yup); color: var(--ink); }
.btn-amber:hover { background: #ffe55a; }
.btn-ghost { background: rgba(0, 0, 0, 0.35); color: var(--bone); }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.55); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-cookie { background: var(--bone); color: var(--ink); }
.btn-cookie:hover { background: #f1e7cc; }
.btn-cookie[aria-pressed="true"] { background: var(--teal-light); }
.cookie-icon { width: 22px; height: 22px; }

/* ---------- 3. Showreel ---------- */
.showreel {
  background: var(--night);
  height: clamp(460px, 78vh, 760px);
  overflow: hidden;
  border-bottom: var(--outline);
}
.reel-track { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 0 max(var(--gutter), 92px) clamp(70px, 11vh, 100px);
  visibility: hidden;
}
.slide.is-current { visibility: visible; }
.slide.is-entering, .slide.is-leaving { visibility: visible; transition: transform 700ms cubic-bezier(.65, 0, .25, 1); }
.slide.is-entering { z-index: 2; }
.slide-art { position: absolute; inset: 0; overflow: hidden; }
/* The game's loop, blurred, as the slide's animated background (Klei). */
.slide-bg {
  position: absolute; inset: -40px;
  width: calc(100% + 80px); height: calc(100% + 80px);
  background-size: cover; background-position: center;
  object-fit: cover;
  filter: blur(16px) brightness(0.6) saturate(1.15);
}
.slide-frames { filter: none; }
.slide-frame {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(16px) brightness(0.6) saturate(1.15);
  opacity: 0; transition: opacity 600ms ease;
}
.slide-frame.is-on { opacity: 1; }
.slide-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.75) 100%);
}
.art-rogue { background: radial-gradient(circle at 70% 30%, #a24d2c, #4a1d16 45%, #12100f 100%); }
.art-doom  { background: radial-gradient(circle at 30% 40%, #7a8a2a, #2c3313 50%, #0e100a 100%); }
.art-king  { background: radial-gradient(circle at 60% 35%, #5b3b8a, #241638 50%, #0d0914 100%); }
.art-note {
  position: absolute; top: 72px; right: var(--gutter); z-index: 1;
  font: 700 0.85rem/1.3 var(--display); color: rgba(227, 215, 182, 0.75);
  border: 2px dashed rgba(227, 215, 182, 0.45); border-radius: 8px; padding: 6px 10px;
  max-width: 260px; text-align: right;
}
.slide-copy { position: relative; z-index: 1; max-width: min(760px, calc(100% - 240px)); }
.slide-copy h2 {
  font-size: clamp(2.1rem, 5.4vw, 4.4rem);
  color: var(--bone);
  text-shadow: 4px 4px 0 var(--ink);
}
.slide-copy h2 a { text-decoration: none; }
.slide-copy h2 a:hover { color: var(--yup); }
.slide-pitch { margin: 10px 0 0; font-size: clamp(1.05rem, 2.2vw, 1.3rem); }
.slide-status {
  display: inline-block; margin: 14px 0 0;
  font: 700 0.95rem/1 var(--display); color: var(--ink);
  background: var(--bone); border: 2px solid var(--ink); border-radius: 6px; padding: 5px 9px;
}
.slide-status.is-secret { background: var(--yup-hot); }
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.play {
  position: absolute; z-index: 3; right: max(var(--gutter), 92px); bottom: clamp(70px, 11vh, 100px);
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
}
.play-label { font: 900 clamp(1rem, 1.8vw, 1.25rem)/1 var(--display); letter-spacing: 0.02em; }
.play-face {
  display: grid; place-items: center;
  width: clamp(46px, 6.5vw, 74px); aspect-ratio: 1;
  border: 3px solid var(--ink); border-radius: 50%;
  background: var(--yup); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink), 0 0 0 0 rgba(248, 216, 28, 0.5);
  transform: translate(var(--px, 0px), var(--py, 0px)) scale(var(--ps, 1));
  transition: box-shadow 250ms ease, background 250ms ease;
}
.play svg { width: 42%; height: 42%; margin-left: 8%; transition: transform 250ms cubic-bezier(.2, 1.6, .4, 1); }
.play:hover .play-face, .play:focus-visible .play-face {
  background: #ffe55a;
  box-shadow: 4px 4px 0 var(--ink), 0 0 0 10px rgba(248, 216, 28, 0.22);
}
.play:hover svg, .play:focus-visible svg { transform: scale(1.18); }
.play:hover .play-label { color: var(--yup); }

.reel-arrow {
  position: absolute; z-index: 3; top: 42%; transform: translateY(-50%);
  width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.45); border: var(--outline); border-radius: 50%;
  color: var(--bone); cursor: pointer;
}
.reel-arrow:hover { background: rgba(0, 0, 0, 0.7); color: var(--yup); }
.reel-arrow svg { width: 12px; height: 18px; }
.reel-prev { left: 14px; }
.reel-next { right: 14px; }
.reel-dots {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.reel-dot {
  position: relative; overflow: hidden;
  width: 46px; height: 10px; padding: 0;
  background: rgba(227, 215, 182, 0.3); border: 2px solid var(--ink); border-radius: 6px; cursor: pointer;
}
.reel-dot[aria-current="true"]::after {
  content: ""; position: absolute; inset: 0; background: var(--yup);
  transform-origin: 0 50%;
  animation: dot-fill var(--reel-ms, 6000ms) linear forwards;
}
.showreel.is-paused .reel-dot[aria-current="true"]::after { animation-play-state: paused; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 640px) {
  .reel-arrow { display: none; }
  .slide { padding: 0 var(--gutter) 64px; }
  .slide-copy { max-width: 100%; }
  .play { top: 18px; bottom: auto; right: var(--gutter); }
  .slide-actions .btn { min-height: 40px; padding: 8px 14px; font-size: 0.95rem; }
}

/* ---------- Cards: news posters and blog pages ---------- */
.row-empty { grid-column: 1 / -1; margin: 0; padding: 18px 0; font: 700 1rem/1.4 var(--display); color: var(--bone-dim); }
.row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px);
  max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter);
}
@media (max-width: 860px) {
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row > :nth-child(n + 3) { display: none; }
}
@media (max-width: 640px) {
  /* Phones show only the newest post of each kind. */
  .row { grid-template-columns: 1fr; }
  .row > :nth-child(n + 2) { display: none; }
}
.news-block { background: var(--oxblood-deep); padding: 64px 0 72px; border-bottom: var(--outline); }
/* The logo background's lighter green, in the same circular gradient. */
.blog-block {
  background: radial-gradient(circle min(620px, 90vw) at 50% 55%, var(--logo-glow)), var(--teal);
  padding: 64px 0 72px; border-bottom: var(--outline);
}

.poster {
  display: flex; flex-direction: column;
  background: var(--oxblood); color: var(--bone);
  border: var(--outline); border-radius: 8px; box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none; overflow: hidden;
}
.poster:hover { border-color: var(--yup); }
.poster, .page-card { scroll-margin-top: 80px; }
.poster-art {
  position: relative; aspect-ratio: 16 / 10; border-bottom: var(--outline);
  display: grid; place-items: center;
}
.poster-art img { width: 100%; height: 100%; object-fit: cover; }
.poster-art img.is-pixel { image-rendering: pixelated; }
.poster-art span {
  font: 700 0.8rem/1.2 var(--display); color: rgba(0, 0, 0, 0.55);
  border: 2px dashed rgba(0, 0, 0, 0.35); border-radius: 6px; padding: 4px 8px;
}
.art-amber  { background: repeating-linear-gradient(135deg, #f8d81c 0 14px, #f4b21c 14px 28px); }
.art-teal   { background: repeating-linear-gradient(135deg, #6da9aa 0 14px, #5a9798 14px 28px); }
.art-oxblood{ background: repeating-linear-gradient(135deg, #8b5252 0 14px, #7a4545 14px 28px); }
.art-green  { background: repeating-linear-gradient(135deg, #6da9aa 0 14px, #4a8483 14px 28px); }
.poster-body { padding: 16px 18px 20px; }
.poster-meta { margin: 0 0 6px; font: 700 0.9rem/1.2 var(--display); color: var(--bone-dim); }
.poster h3 { font-size: 1.45rem; }
.poster p.excerpt { margin: 8px 0 0; font-size: 0.98rem; }

.page-card {
  display: block; position: relative;
  background: var(--bone); color: #1c1a14;
  border: var(--outline); border-radius: 4px 14px 6px 12px; box-shadow: 5px 5px 0 var(--ink);
  padding: 22px 22px 24px; text-decoration: none;
}
.page-card:hover { background: #efe5c8; }
.page-type {
  display: inline-block; font: 700 0.9rem/1 var(--display);
  background: var(--teal-deep); color: var(--bone); border-radius: 5px; padding: 5px 8px;
}
.page-card time { display: block; margin-top: 12px; font-size: 0.9rem; color: #5c5442; }
.page-card h3 { font-family: var(--body); font-weight: 600; font-size: 1.35rem; line-height: 1.25; margin-top: 4px; }
.page-card p { margin: 10px 0 0; font-size: 0.98rem; }

/* ---------- 4. Subscribe ---------- */
.subscribe-block {
  padding: 72px var(--gutter) 80px;
  background:
    radial-gradient(circle at 12% 40%, rgba(244, 106, 12, 0.35), transparent 42%),
    var(--oxblood);
  border-bottom: var(--outline);
}
.subscribe-inner { max-width: 760px; margin: 0 auto; }
.subscribe-block h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.sub-lede { margin: 10px 0 26px; font: 700 clamp(1.2rem, 3vw, 1.6rem)/1.2 var(--display); color: var(--yup); }
.sub-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-family: var(--display); font-weight: 700; }
.field input {
  font: 400 1.05rem/1.2 var(--body); color: #1c1a14;
  background: var(--bone); border: var(--outline); border-radius: 8px; padding: 12px 14px;
}
.sub-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px 36px; }
@media (max-width: 700px) { .sub-cols { grid-template-columns: 1fr; } }
.field-set { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; align-content: start; }
.field-set legend { font-family: var(--display); font-weight: 700; margin-bottom: 8px; color: var(--yup); }
.field-set label { display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.field-set label[hidden], .notify-empty[hidden] { display: none; }
.field-set label.all-in { font: 900 1.1rem/1.2 var(--display); letter-spacing: 0.03em; color: var(--yup); }
.field-set label.is-new { animation: opt-in 280ms cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes opt-in { from { opacity: 0; transform: translateY(-8px); } }
.notify-empty { margin: 0; color: var(--bone-dim); font-style: italic; }
.field-set input { flex: none; width: 20px; height: 20px; accent-color: var(--yup); }
.sub-agree { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sub-agree a { font-family: var(--display); font-weight: 700; }
.sub-agree label { display: flex; align-items: center; gap: 6px; }
.sub-agree input { width: 20px; height: 20px; accent-color: var(--yup); }
.sub-form .btn { justify-self: start; }
.sub-form .btn:disabled { background: transparent; color: var(--bone); opacity: 0.45; box-shadow: none; cursor: not-allowed; }
.sub-result { margin: 0; font-family: var(--display); font-weight: 700; color: var(--yup); min-height: 1.3em; }

/* ---------- Footer: small, text only ----------
   Columns of vertical links; on phones and small screens the links run
   horizontally instead. Bottom padding leaves room for the floating player. */
.footer { background: var(--night); padding: 26px var(--gutter) 76px; font-size: 0.85rem; }
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px;
}
.foot-group h2 { font-size: 0.95rem; margin-bottom: 6px; color: var(--yup); }
.foot-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer a { color: var(--bone); text-underline-offset: 3px; }
.footer a:hover { color: var(--yup); }
.footer-small { max-width: 1080px; margin: 18px auto 0; font-size: 0.78rem; color: var(--bone-dim); }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 10px; }
  .foot-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
  .foot-group h2 { margin: 0; }
  .foot-group ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
}

/* ---------- Music player: bottom-right, always visible ----------
   Top to bottom: the ON/OFF switches, the song between its arrows (hover the
   song for a see-through pause or play button), and the volume. */
.player {
  position: fixed; right: 14px; bottom: 14px; z-index: 70;
  display: flex; align-items: center; gap: 8px;
  background: rgba(46, 19, 18, 0.95); border: var(--outline); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 7px 10px 9px; color: var(--bone);
}
.player button {
  border: 2px solid var(--ink); border-radius: 8px; background: var(--oxblood);
  min-width: 36px; height: 36px; cursor: pointer; display: grid; place-items: center;
  font: 700 0.85rem/1 var(--display); padding: 0 8px;
}
.player button:hover { background: var(--oxblood-light); }
.player svg { width: 14px; height: 14px; }
.pl-panel { display: grid; gap: 6px; width: 262px; }
.pl-switches { display: grid; justify-items: center; gap: 3px; }
.pl-main { display: flex; align-items: center; gap: 6px; }
.player .pl-track {
  position: relative; flex: 1; min-width: 0; height: auto; padding: 2px 6px;
  display: grid; text-align: center; line-height: 1.2;
  background: none; border-color: transparent; border-radius: 8px;
}
.player .pl-track:hover { background: rgba(0, 0, 0, 0.25); }
.pl-title { font: 700 0.9rem/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-note { font: 400 0.75rem/1.2 var(--body); color: var(--bone-dim); }
.pl-hover {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transition: opacity 150ms ease; pointer-events: none;
}
.player .pl-hover svg {
  width: 32px; height: 32px; padding: 8px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.42); border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 50%;
}
.pl-track:hover .pl-hover, .pl-track:focus-visible .pl-hover { opacity: 1; }
.pl-track:hover .pl-title, .pl-track:hover .pl-note { opacity: 0.45; }
.player .i-play, .player:not(.is-playing) .i-pause { display: none; }
.player:not(.is-playing) .i-play { display: block; }
.pl-volume { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.pl-volume svg { flex: none; width: 14px; height: 14px; }
.pl-volume input {
  flex: 1; min-width: 0; height: 10px; margin: 0;
  appearance: none; -webkit-appearance: none;
  background: linear-gradient(90deg, var(--yup) var(--vol, 50%), var(--oxblood) var(--vol, 50%));
  border: 2px solid var(--ink); border-radius: 6px; cursor: pointer;
}
.pl-volume input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bone); border: 2px solid var(--ink); box-shadow: 1px 1px 0 var(--ink);
}
.pl-volume input::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bone); border: 2px solid var(--ink);
}
.pl-onoff { font: 900 0.8rem/1 var(--display); letter-spacing: 0.06em; }
.pl-row { display: flex; gap: 6px; }
.player .sw { height: 18px; min-width: 0; padding: 0 8px; font-size: 0.75rem; border-radius: 6px; }
.sw[aria-pressed="true"] { background: var(--yup) !important; color: var(--ink); }
.pl-toggle { display: none !important; }
@media (max-width: 640px) {
  .player { padding: 6px; }
  .player:not(.is-open) .pl-panel { display: none; }
  .pl-toggle { display: grid !important; width: 44px; height: 44px; }
  .player.is-open { flex-direction: column-reverse; align-items: flex-end; }
  .pl-panel { max-width: calc(100vw - 52px); }
}

/* ---------- Trailer overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: var(--gutter); }
.overlay[hidden] { display: none; }
.overlay-backdrop { position: absolute; inset: 0; background: rgba(5, 12, 12, 0.82); }
.overlay-box {
  position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9;
  background: #000; border: 4px solid var(--ink); border-radius: 12px; box-shadow: 8px 8px 0 var(--ink);
}
.overlay-frame { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; overflow: hidden; border-radius: 8px; }
.overlay-frame iframe { width: 100%; height: 100%; border: 0; }
.overlay-frame p { max-width: 46ch; font-size: 1.05rem; }
.overlay-frame strong { display: block; font: 900 clamp(1.4rem, 3vw, 2rem)/1.1 var(--display); color: var(--yup); margin-bottom: 10px; }
.overlay-close {
  position: absolute; top: -18px; right: -18px; z-index: 1;
  width: 44px; height: 44px; border: var(--outline); border-radius: 50%;
  background: var(--yup); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.overlay-close svg { width: 16px; height: 16px; }

/* ---------- Post pop-up (news and blog) ---------- */
.post-box {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 2 * var(--gutter));
  overflow: auto;
  background: var(--oxblood); color: var(--bone);
  border: 4px solid var(--ink); border-radius: 12px; box-shadow: 8px 8px 0 var(--ink);
}
/* Every post's header: SHARE and the share buttons on the far left, the
   close button on the far right. The art below runs the full width. */
.post-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px 8px 16px;
  background: var(--oxblood-deep); border-bottom: var(--outline);
}
.post-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-share-label { font: 900 1rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.post-share-links { display: flex; gap: 7px; }
.share {
  width: 32px; height: 32px; padding: 0; display: grid; place-items: center;
  color: #fff; border: 2px solid var(--ink); border-radius: 50%; box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer; transition: transform 150ms ease;
}
.share svg { width: 18px; height: 18px; }
.share:hover, .share:focus-visible { transform: translateY(-2px); }
.share-x { background: #111; }
.share-x svg { width: 15px; height: 15px; }
.share-facebook { background: #1877f2; }
.share-reddit { background: #ff4500; }
.share-whatsapp { background: #25d366; }
.share-link { background: var(--teal-mid); }
.share-link.is-copied { background: var(--yup); color: var(--ink); }
.post-close {
  flex: none; width: 38px; height: 38px; padding: 0; display: grid; place-items: center;
  border: var(--outline); border-radius: 50%; background: var(--yup); color: var(--ink); cursor: pointer;
}
.post-close:hover { background: #ffe55a; }
.post-close svg { width: 15px; height: 15px; }
.post-art { aspect-ratio: 16 / 8; border-bottom: var(--outline); }
.post-text { padding: 22px clamp(18px, 4vw, 36px) 30px; }
.post-text.post-blog { background: var(--bone); color: #1c1a14; }
.post-text h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 4px 0 12px; }
.post-text.post-blog h2 { font-family: var(--body); font-weight: 600; }
.post-meta { margin: 0; font: 700 0.9rem/1.2 var(--display); opacity: 0.8; }
.post-text p { max-width: 64ch; }

/* ---------- Inner pages ---------- */
.page-top {
  /* A slim title band: the title only (2026-10-14: less text, the better). */
  padding: 20px var(--gutter) 18px;
  background: radial-gradient(circle 600px at 50% 0%, var(--logo-glow)), var(--teal);
  border-bottom: var(--outline);
}
.page-head { max-width: 1180px; margin: 0 auto; }
.page-head h1 { font: 900 clamp(1.8rem, 4.6vw, 2.6rem)/1 var(--display); margin: 0; text-shadow: 3px 3px 0 var(--ink); }
.page-head p { max-width: 62ch; margin: 12px 0 0; color: var(--bone); }
.page-body { padding: 36px 0 80px; }
.list-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px;
  max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter);
}
/* Games: one above the other, title art at its own shape, the whole description. */
.game-list { display: grid; gap: 36px; max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); }
.game-card {
  display: block; overflow: hidden; text-decoration: none; scroll-margin-top: 20px;
  background: var(--oxblood); color: var(--bone);
  border: var(--outline); border-radius: 10px; box-shadow: 6px 6px 0 var(--ink);
}
.game-card:hover { border-color: var(--yup); }
.game-card-art { display: grid; place-items: center; background-color: var(--night); border-bottom: var(--outline); }
.game-card-art img { width: 100%; height: auto; }
.game-card-art img.is-pixel { image-rendering: pixelated; }
.game-card-art > span { margin: 60px 0; font: 700 0.9rem/1.2 var(--display); color: rgba(227, 215, 182, 0.7); }
.game-card-body { padding: 18px clamp(18px, 3vw, 28px) 24px; }
.game-card-body h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.game-card:hover h2 { color: var(--yup); }
.game-card-pitch { margin: 8px 0 0; font: 700 1.12rem/1.35 var(--display); color: var(--yup); }
.game-card-body p { max-width: 72ch; }
.game-card-body p:not(.poster-meta):not(.game-card-pitch) { margin: 10px 0 0; }

/* Company: the studio photo and a few words. */
.company { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 28px; }
.company .prose { padding: 0; margin: 0; }
.studio-photo { margin: 0; }
.studio-photo img, .photo-slot { width: 100%; border: var(--outline); border-radius: 10px; box-shadow: 6px 6px 0 var(--ink); }
.photo-slot {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #2b5e5c 0 16px, #265654 16px 32px);
}
.photo-slot span {
  font: 700 0.95rem/1.2 var(--display); color: var(--bone-dim);
  border: 2px dashed rgba(227, 215, 182, 0.5); border-radius: 8px; padding: 6px 10px;
}
.company-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0 0; }
.company-facts dt { font-family: var(--display); font-weight: 700; color: var(--yup); }
.company-facts dd { margin: 0; }

.prose { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.prose h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 40px 0 10px; color: var(--yup); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: 68ch; }
.prose ul { padding-left: 1.2em; }
.note {
  max-width: 760px; margin: 0 auto 28px; padding: 10px 14px;
  border: 2px dashed rgba(227, 215, 182, 0.5); border-radius: 8px;
  font: 700 0.9rem/1.4 var(--display); color: var(--bone-dim);
}
.faq { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.faq details, .box {
  border: var(--outline); border-radius: 8px; background: var(--oxblood);
  margin-bottom: 12px; padding: 14px 18px; box-shadow: 4px 4px 0 var(--ink);
}
.faq summary { font: 700 1.1rem/1.3 var(--display); cursor: pointer; }
.box h3 { font-size: 1.25rem; margin-bottom: 6px; }
.box p { margin: 6px 0 0; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.downloads .btn { min-height: 38px; padding: 6px 14px; font-size: 0.95rem; }

/* ---------- Game pages ---------- */
.game-hero {
  padding: 0;
  background: var(--night);
  border-bottom: var(--outline);
}
.game-hero img {
  width: 100%; max-width: 1400px; margin: 0 auto; height: auto;
}
.game-hero img.is-pixel { image-rendering: pixelated; }
.game-hero img.is-small { width: min(768px, 100%); padding: 24px 0; }
.game-hero .art-fill { height: clamp(220px, 40vh, 420px); display: grid; place-items: center; }
.game-hero .art-fill h1 { font: 900 clamp(2.4rem, 8vw, 5.5rem)/1 var(--display); text-shadow: 4px 4px 0 var(--ink); margin: 0; padding: 0 var(--gutter); text-align: center; }
.game-intro { max-width: 980px; margin: 0 auto; padding: 36px var(--gutter) 0; }
.game-quote { font: 900 clamp(1.3rem, 3.4vw, 2rem)/1.2 var(--display); color: var(--yup); margin: 0; }
.game-lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); margin: 12px 0 0; max-width: 62ch; }
.game-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.game-grid {
  max-width: 980px; margin: 0 auto; padding: 36px var(--gutter) 80px;
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; align-items: start;
}
.game-grid .prose { padding: 0; margin: 0; }
.facts {
  border: var(--outline); border-radius: 8px; background: var(--oxblood-deep); box-shadow: 4px 4px 0 var(--ink);
  padding: 14px 16px; font-size: 0.92rem;
}
.facts h2 { font-size: 1.1rem; color: var(--yup); margin-bottom: 8px; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.facts dt { font-family: var(--display); font-weight: 700; color: var(--bone-dim); }
.facts dd { margin: 0; }
.facts p { margin: 10px 0 0; font-size: 0.8rem; color: var(--bone-dim); }
.features { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.features li { border-left: 4px solid var(--yup); padding-left: 12px; }
.features strong { font-family: var(--display); }
.characters {
  margin-top: 28px; padding: 18px; text-align: center;
  border: 2px dashed rgba(227, 215, 182, 0.45); border-radius: 8px;
  font: 700 0.9rem/1.3 var(--display); color: var(--bone-dim);
}
.secret-banner {
  background: var(--yup-hot); color: var(--ink); border-bottom: var(--outline);
  font: 700 0.95rem/1.3 var(--display); text-align: center; padding: 8px var(--gutter);
}
@media (max-width: 820px) { .game-grid { grid-template-columns: 1fr; } }

/* ---------- Story timeline (after Sabotage's Story page) ---------- */
.timeline { position: relative; max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px;
  background: var(--ink);
}
.moment {
  position: relative; width: calc(50% - 34px); margin-bottom: 26px;
  background: var(--bone); color: #1c1a14;
  border: var(--outline); border-radius: 10px; box-shadow: 5px 5px 0 var(--ink);
  padding: 16px 18px;
}
.moment:nth-child(odd) { margin-right: auto; }
.moment:nth-child(even) { margin-left: auto; }
.moment::after {
  content: ""; position: absolute; top: 20px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--yup); border: var(--outline);
}
.moment:nth-child(odd)::after { right: -46px; }
.moment:nth-child(even)::after { left: -46px; }
.moment.is-meanwhile { background: var(--teal-light); }
.moment-date { font: 900 1.4rem/1 var(--display); color: var(--oxblood); }
.moment h3 { font-family: var(--body); font-weight: 600; font-size: 1.2rem; margin: 6px 0 0; line-height: 1.3; }
.moment p { margin: 8px 0 0; font-size: 0.97rem; }
.moment details summary { cursor: pointer; font-family: var(--display); font-weight: 700; margin-top: 8px; }
.moment-tag { display: inline-block; margin-top: 8px; font: 700 0.75rem/1 var(--display); background: var(--oxblood); color: var(--bone); border-radius: 4px; padding: 4px 6px; }
html[data-motion="on"] .moment.reveal { opacity: 0; transform: translateY(30px) scale(0.98); transition: opacity 500ms ease, transform 600ms cubic-bezier(.2, 1.2, .4, 1); }
html[data-motion="on"] .moment.reveal.is-in { opacity: 1; transform: none; }
.story-intro { text-align: center; }
.tally { display: inline-flex; gap: 6px; margin-bottom: 6px; }
.tally span { width: 6px; height: 34px; background: var(--bone); border: 2px solid var(--ink); border-radius: 3px; transform: rotate(4deg); }
html[data-motion="on"] .tally span { animation: tally-draw 400ms ease-out both; }
.tally span:nth-child(2) { animation-delay: 150ms !important; }
.tally span:nth-child(3) { animation-delay: 300ms !important; }
.tally span:nth-child(4) { animation-delay: 450ms !important; }
@keyframes tally-draw { from { transform: rotate(4deg) scaleY(0); } }
@media (max-width: 760px) {
  .timeline::before { left: 26px; }
  .moment, .moment:nth-child(odd), .moment:nth-child(even) { width: auto; margin-left: 40px; margin-right: 0; }
  .moment:nth-child(odd)::after, .moment:nth-child(even)::after { left: -34px; right: auto; }
}

/* ---------- Discord box (js/discord.js) ----------
   After the Elder Scrolls Wiki's "Community Chat" rail box: Discord's blurple
   header, how many are online, a wall of avatars with status dots, and the
   join button. On the Discord page and in the game pages' side column. */
.game-rail { display: grid; gap: 24px; }
.discord-box {
  border: var(--outline); border-radius: 8px; background: var(--oxblood-deep);
  box-shadow: 4px 4px 0 var(--ink); overflow: hidden;
}
.prose .discord-box { max-width: 520px; margin: 18px 0 8px; }
.dc-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: #5865f2; color: #fff; border-bottom: var(--outline);
  font: 900 1.05rem/1.1 var(--display);
}
.dc-head svg { width: 26px; height: 26px; flex: none; }
.dc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-tag {
  margin-left: auto; padding: 4px 7px; border-radius: 4px;
  background: var(--ink); color: var(--yup); font-size: 0.75rem;
}
.dc-body { display: grid; gap: 12px; justify-items: start; padding: 14px; }
.dc-wait { margin: 0; font: 700 0.95rem/1.3 var(--display); color: var(--bone-dim); }
.dc-count { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font: 700 1.05rem/1.2 var(--display); }
.dc-count strong { display: inline-block; font-size: 2.1rem; line-height: 1; }
.dc-total { flex-basis: 100%; font-size: 0.9rem; color: var(--bone-dim); }
.dc-dot {
  position: relative; align-self: center; width: 14px; height: 14px; border-radius: 50%;
  background: #23a55a; border: 2px solid var(--ink);
}
html[data-motion="on"] .dc-dot::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid #23a55a; animation: dc-ping 2.4s ease-out infinite;
}
@keyframes dc-ping { 70%, 100% { transform: scale(2.4); opacity: 0; } }
html[data-motion="on"] .dc-bump { animation: dc-bump 600ms cubic-bezier(.2, 1.6, .4, 1); }
@keyframes dc-bump { 40% { transform: scale(1.25); color: var(--yup); } }
.discord-box .dc-wall {
  list-style: none; margin: 0; padding: 0; width: 100%;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 8px 6px;
}
.dc-member { position: relative; justify-self: center; width: 34px; height: 34px; }
.dc-member img, .dc-member span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: var(--night);
}
.dc-member span { display: grid; place-items: center; font: 900 0.95rem/1 var(--display); color: #fff; }
.dc-member::after {
  content: ""; position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%;
  background: #23a55a; border: 3px solid var(--oxblood-deep);
}
.dc-member[data-status="idle"]::after { background: #f0b232; }
.dc-member[data-status="dnd"]::after { background: #f23f43; }
.dc-member.is-empty span { background: rgba(227, 215, 182, 0.1); border-color: rgba(0, 0, 0, 0.5); }
.dc-member.is-empty::after { content: none; }
.dc-more { margin: -4px 0 0; font: 700 0.85rem/1.2 var(--display); color: var(--bone-dim); }
.dc-fine { margin: 0; font-size: 0.8rem; color: var(--bone-dim); }
.discord-box .btn { min-height: 40px; padding: 8px 16px; font-size: 1rem; }

/* ---------- Motion off: everything holds still ----------
   Defaults to the system's reduced-motion setting; the Motion switch in the
   player overrides it either way (Studio MDHR's Reduce Motion toggle). */
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation: none !important; transition: none !important;
}
html[data-motion="off"] .logo .part, html[data-motion="off"] .critter { opacity: 1; }
