/* tatubit.com — the site is an armadillo shell: every game is a plate, arched on top, overlapping the one above.
   The plates are textured with scutes (the small tiles of a real armadillo shell), not dots. */
:root {
  --ink: #221A33;
  --ink-2: #514565;
  --chalk: #EEEAF6;
  --chalk-2: #E2DBF0;
  --paper: #F8F6FC;
  --ochre: #D9A24A;
  --ochre-d: #A8701E;
  --arch: clamp(40px, 6vw, 84px);
  --gutter: clamp(16px, 5vw, 72px);
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Onest', system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, monospace;
  /* scutes: rounded tiles in offset rows, like the bands of the shell */
  --scute: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='36'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.075' stroke-width='1.5'%3E%3Crect x='1.5' y='1.5' width='25' height='15' rx='6'/%3E%3Crect x='-12.5' y='19.5' width='25' height='15' rx='6'/%3E%3Crect x='15.5' y='19.5' width='25' height='15' rx='6'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 28px 36px;
  --scute-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='36'%3E%3Cg fill='none' stroke='%23221A33' stroke-opacity='.09' stroke-width='1.5'%3E%3Crect x='1.5' y='1.5' width='25' height='15' rx='6'/%3E%3Crect x='-12.5' y='19.5' width='25' height='15' rx='6'/%3E%3Crect x='15.5' y='19.5' width='25' height='15' rx='6'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 28px 36px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--chalk); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--chalk); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- top */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 1.35rem/1 var(--display); letter-spacing: -0.03em; padding: 6px 0; }
.ball { width: 40px; height: 40px; }
.ball-roll { transform: rotate(calc(var(--p, 0) * 360deg)); }
.top nav { display: flex; gap: clamp(10px, 3vw, 32px); font: 500 0.95rem/1 var(--body); }
.top nav a { text-decoration: none; padding: 14px 4px; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { border-color: var(--ochre); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 0.95rem/1 var(--display); letter-spacing: 0;
  text-decoration: none; padding: 0.95em 1.45em; min-height: 48px; border-radius: 999px; background: var(--accent, var(--ochre)); color: var(--deep, var(--ink));
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.28); transition: transform 0.15s ease, box-shadow 0.15s ease; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(0, 0, 0, 0.28); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28); }
.btn-lg { font-size: 1.05rem; }
.btn-ink { background: var(--ink); color: var(--chalk); box-shadow: 0 5px 0 var(--ochre-d); }
.btn-ink:hover { box-shadow: 0 7px 0 var(--ochre-d); }
.btn-ghost { background: transparent; color: var(--on); box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px currentColor; background: color-mix(in srgb, var(--on) 10%, transparent); }
.soon { display: flex; align-items: center; gap: 10px; font: 400 0.76rem/1.5 var(--mono); opacity: 0.85; margin-top: 22px; }
.soon-dot { width: 9px; height: 9px; border-radius: 3px; transform: rotate(45deg); background: var(--accent); flex: none; }

/* ---------------------------------------------------------------- hero (home) */
.hero { padding: 8px var(--gutter) calc(var(--arch) + 150px); position: relative; z-index: 2; }
.hero-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: clamp(16px, 4vw, 56px); }
.kicker { font: 400 0.8rem/1.5 var(--mono); color: var(--ink-2); margin-bottom: 18px; text-wrap: balance; }
.hero h1 { font-weight: 900; font-size: clamp(2.1rem, 4.8vw, 3.9rem); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
/* each phrase is marked in the accent color of its game, like a highlighter; it fills in on hover */
.hero h1 a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 88% / 100% 0.24em no-repeat; transition: background-size 0.25s ease, color 0.25s ease; padding: 0 0.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero h1 a:hover, .hero h1 a:focus-visible { background-size: 100% 100%; color: var(--deep); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 44ch; margin: 22px 0 28px; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cast-nav { margin-top: 4px; }
.cast-label { font: 700 1rem/1.3 var(--display); color: var(--ink); margin-bottom: 14px; letter-spacing: -0.01em; }
.cast { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 14px; }
.cast a { display: grid; justify-items: center; gap: 8px; width: 80px; text-decoration: none; }
.cast img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--base); box-shadow: 0 0 0 3px var(--base), 0 6px 0 var(--deep); transition: transform 0.2s ease; }
.cast a:hover img, .cast a:focus-visible img { transform: translateY(-4px) rotate(-6deg); }
.cast-name { font: 500 0.62rem/1.25 var(--mono); text-align: center; color: var(--ink-2); max-width: 80px; text-wrap: balance; }
.cast a:hover .cast-name { color: var(--ink); }
/* right column: the three games of the title on phones, the mascot in front playing one of them on a handheld */
.hero-art { margin: 0 0 calc(var(--arch) * -0.8 - 150px); position: relative; justify-self: center; align-self: stretch; width: min(100%, 520px); min-height: 600px; }
.hero-phones .phone { position: absolute; width: 41%; border-width: 5px; border-radius: 22px; }
.hero-phones .reel-1 { left: 0; top: 6%; transform: rotate(-9deg); }
.hero-phones .reel-2 { left: 30%; top: 0; transform: rotate(2deg); z-index: 1; }
.hero-phones .reel-3 { right: 0; top: 9%; transform: rotate(10deg); }
.hero-mascot { position: absolute; z-index: 2; left: 24%; bottom: 0; width: 56%; filter: drop-shadow(0 18px 18px rgba(34, 26, 51, 0.22)); }
.hero-reel { display: none; }

/* ---------------------------------------------------------------- the shell: plates */
.plate, .game-hero, .gallery, .story, .foot, .press-game, .about, .others, .next {
  position: relative; margin-top: calc(var(--arch) * -1); border-radius: 50% 50% 0 0 / var(--arch) var(--arch) 0 0;
  padding: calc(var(--arch) + 40px) var(--gutter) calc(var(--arch) + 56px); }
.plate, .game-hero, .story, .press-game { background: var(--scute), linear-gradient(180deg, var(--base), var(--deep) 140%); color: var(--on); }
.gallery { background: var(--scute), var(--deep); color: var(--on); }
/* rim: a lighter line just inside the arch, like the edge of a shell band */
.plate::before, .game-hero::before, .gallery::before, .story::before, .foot::before, .press-game::before, .about::before, .others::before, .next::before {
  content: ''; position: absolute; left: 0; right: 0; top: 10px; height: var(--arch); border-top: 3px solid rgba(255, 255, 255, 0.16);
  border-radius: 50% 50% 0 0 / var(--arch) var(--arch) 0 0; pointer-events: none; }
.plate { box-shadow: 0 -14px 34px rgba(20, 10, 40, 0.22); }

.plate-in { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; grid-template-areas: 'text shots'; align-items: center; gap: clamp(16px, 4vw, 48px); }
.plate:nth-of-type(even) .plate-in { grid-template-columns: 1fr 1.05fr; grid-template-areas: 'shots text'; }
.plate-text { grid-area: text; }
.plate-shots { grid-area: shots; position: relative; display: block; height: clamp(300px, 34vw, 430px); }
.genre { font: 400 0.78rem/1.4 var(--mono); letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.genre::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); flex: none; }
.plate h2 { font-weight: 900; font-size: clamp(2.1rem, 4.8vw, 3.9rem); letter-spacing: -0.035em; }
.plate h2 a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 4px no-repeat; transition: background-size 0.3s ease; }
.plate h2 a:hover { background-size: 100% 4px; }
.tagline { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 32ch; margin: 16px 0 18px; opacity: 0.94; text-wrap: balance; }
.chips { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 400 0.72rem/1 var(--mono); padding: 8px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 35%, transparent); }
.chips .chip-on { background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

.phone { border-radius: 26px; border: 6px solid var(--deep); background: var(--deep); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4); aspect-ratio: 405 / 720; object-fit: cover; }
.plate-shots .phone { position: absolute; width: clamp(150px, 15vw, 214px); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.plate-shots .phone-1 { left: 12%; top: -10%; transform: rotate(-6deg); z-index: 2; }
.plate-shots .phone-2 { left: 50%; top: 6%; transform: rotate(5deg); }
.plate:hover .phone-1 { transform: rotate(-8deg) translateY(-8px); }
.plate:hover .phone-2 { transform: rotate(7deg) translateY(-4px); }

/* a character from the game climbs over the arch, with a line of their own */
.cameo { position: absolute; z-index: 3; margin: 0; top: calc(var(--arch) * -0.85); left: max(var(--gutter), calc(50% - 600px)); pointer-events: none; }
.plate:nth-of-type(even) .cameo { left: auto; right: max(var(--gutter), calc(50% - 600px)); }
.cameo img { width: auto; max-width: none; height: clamp(110px, 12vw, 168px); filter: drop-shadow(0 10px 12px rgba(10, 5, 25, 0.35)); transform: rotate(-3deg); }
/* half-body cutouts never end on a hard line: on the home plates they sink into the plate */
.cameo.is-cropped img { filter: none; -webkit-mask-image: linear-gradient(#000 62%, transparent 92%); mask-image: linear-gradient(#000 62%, transparent 92%); }
.say { position: absolute; left: 92%; top: 6%; width: max-content; white-space: nowrap; padding: 9px 13px; border-radius: 16px 16px 16px 4px;
  background: var(--paper); color: var(--ink); font: 700 0.86rem/1.25 var(--display); letter-spacing: -0.01em; box-shadow: 0 4px 0 rgba(10, 5, 25, 0.25); }
.say small { display: block; font: 400 0.72rem/1.3 var(--mono); color: var(--ink-2); margin-bottom: 3px; letter-spacing: 0; }
/* a written note (Last Lighthouse: Grandma's note), not a speech bubble */
.say.note { border-radius: 3px; background: #F6EFD8; font: italic 500 0.92rem/1.35 var(--body); letter-spacing: 0; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2), 0 10px 18px rgba(0, 0, 0, 0.25); rotate: -3deg; }
.say.note small { font-style: normal; }
.plate:nth-of-type(even) .say { left: auto; right: 92%; border-radius: 16px 16px 4px 16px; }
.plate .say.note, .plate:nth-of-type(even) .say.note { border-radius: 3px; }
.js .plate .say { opacity: 0; transform: translateY(6px) scale(0.9); transition: opacity 0.3s ease 0.55s, transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) 0.55s; }
.js .plate.in .say { opacity: 1; transform: none; }

/* entrance: each plate closes into place like a shell band (JS adds .js and .in) */
.js .plate { transform: translateY(40px) scaleX(0.96); transform-origin: 50% 0; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .plate .plate-in, .js .plate .cameo { opacity: 0; transition: opacity 0.6s ease 0.1s; }
.js .plate.in { transform: none; }
.js .plate.in .plate-in, .js .plate.in .cameo { opacity: 1; }

/* platform chips and filter (only shown when games exist on more than one platform) */
.plats { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plats li { font: 600 0.72rem/1 var(--mono); padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 40%, transparent); }
.filter { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto calc(var(--arch) * -1 + 8px); padding: 0 var(--gutter) 22px; }
.filter button { font: 700 0.85rem/1 var(--display); padding: 12px 18px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--chalk); }
.plate[hidden] { display: none; }

/* be first in line: a plate in the armadillo's own shell color */
.next { background: var(--scute-ink), linear-gradient(180deg, var(--ochre), #C68A33 140%); color: var(--ink); box-shadow: 0 -14px 34px rgba(20, 10, 40, 0.22); }
.next::before { border-color: rgba(255, 255, 255, 0.35); }
.next :focus-visible { outline-color: var(--ink); }
.next-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.next h2 { font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.next-copy p { max-width: 40ch; margin-bottom: 26px; font-size: 1.1rem; }
.trail-wrap { position: relative; padding-top: 44px; }
.trail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.trail::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; border-top: 3px dashed currentColor; opacity: 0.55; }
.trail li { position: relative; padding-top: 30px; }
.trail li::before { content: ''; position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--chalk); box-shadow: 0 0 0 3px currentColor; }
.trail .here::before { background: currentColor; }
.stop { display: block; font: 600 0.78rem/1.3 var(--mono); margin-bottom: 6px; }
.trail p { font-size: 0.95rem; line-height: 1.45; opacity: 0.88; }
.trail-ball { position: absolute; z-index: 1; left: -22px; top: 21px; width: 60px; height: 60px; transform: translateX(-80px) rotate(-260deg); opacity: 0; transition: transform 1.3s cubic-bezier(0.25, 0.9, 0.3, 1), opacity 0.4s ease; }
.next.in .trail-ball { transform: none; opacity: 1; }
.trail-doc { margin-top: 20px; color: var(--ink); }
.trail-doc p { color: var(--ink-2); }

/* ---------------------------------------------------------------- workbench: Gorgo in pieces (home) */
.bench { position: relative; margin-top: calc(var(--arch) * -1); border-radius: 50% 50% 0 0 / var(--arch) var(--arch) 0 0; padding: calc(var(--arch) + 40px) var(--gutter) calc(var(--arch) + 64px);
  color: #FBF3E4; box-shadow: 0 -14px 34px rgba(20, 10, 40, 0.25); overflow-x: clip;
  /* a cutting mat: fine grid every 24px, a stronger line every 120px */
  background: linear-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px) 0 0 / 120px 120px, linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px) 0 0 / 120px 120px,
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 24px 24px, #2B1D42; }
.bench::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: var(--arch); border-top: 3px solid rgba(255, 255, 255, 0.16); border-radius: 50% 50% 0 0 / var(--arch) var(--arch) 0 0; pointer-events: none; }
.bench-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.bench-kicker { font: 400 0.78rem/1.4 var(--mono); color: #FF9A6E; margin-bottom: 14px; }
.bench h2 { font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.bench-copy p:not(.bench-kicker) { max-width: 46ch; opacity: 0.9; text-wrap: pretty; }
.bench-copy p + p { margin-top: 12px; }
.bench-btns { display: none; flex-wrap: wrap; gap: 14px; margin-top: 28px; --accent: #FF7A45; --deep: #26193B; --on: #FBF3E4; }
.js .bench-btns { display: flex; }
.bench :focus-visible { outline-color: #FF9A6E; }
.rig { position: relative; width: min(100%, 560px); justify-self: center; margin: 90px 0 70px; }
.part { position: absolute; display: block; transform-origin: var(--ox) var(--oy); transition: transform 0.9s cubic-bezier(0.5, 1.5, 0.45, 1), opacity 0.3s ease; }
.part img { width: 100%; }
/* the bone pivot of each piece, and its name, show only while he is apart */
.part::after { content: ''; position: absolute; left: var(--ox); top: var(--oy); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #FF7A45; box-shadow: 0 0 0 3px #2B1D42, 0 0 0 5px rgba(255, 255, 255, 0.5); opacity: 0; transition: opacity 0.3s ease; }
.part-tag { position: absolute; left: var(--ox); top: var(--oy); transform: translate(12px, -50%); font: 400 0.68rem/1 var(--mono); white-space: nowrap; background: #FBF3E4; color: #26193B; padding: 5px 7px; border-radius: 5px; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.part-cabeca_brava { opacity: 0; }
.rig.apart .part::after, .rig.apart .part-tag { opacity: 1; transition-delay: 0.5s; }
.rig.apart .part-cauda { transform: translate(-46%, 20%) rotate(-18deg); }
.rig.apart .part-asa_d { transform: translate(-60%, -62%) rotate(-22deg); }
.rig.apart .part-corpo { transform: translate(-2%, 36%); }
.rig.apart .part-cabeca { transform: translate(16%, -28%) rotate(6deg); }
.rig.apart .part-cabeca_brava { transform: translate(16%, -28%) rotate(6deg); }
.rig.apart .part-cabeca_brava .part-tag, .rig.apart .part-cabeca_brava::after { display: none; }
.rig.awake .part-cabeca { opacity: 0; }
.rig.awake .part-cabeca_brava { opacity: 1; }
.rig.awake .part-cabeca_brava img { animation: grr 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes grr { 30% { transform: rotate(-4deg) scale(1.04); } 60% { transform: rotate(3deg); } }
.rig-say { position: absolute; right: 2%; top: -10%; padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: var(--paper); color: var(--ink); font: 700 1rem/1 var(--display); box-shadow: 0 4px 0 rgba(10, 5, 25, 0.35); opacity: 0; transform: translateY(6px) scale(0.9); transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.rig.awake:not(.apart) .rig-say { opacity: 1; transform: none; }
/* breathing while asleep */
.rig:not(.apart):not(.awake) .part-corpo img, .rig:not(.apart):not(.awake) .part-cabeca img { animation: breathe 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes breathe { 50% { transform: scaleY(1.025); } }
.rig:not(.apart) .part-asa_d img { animation: flap 3.6s ease-in-out infinite; transform-origin: var(--ox) var(--oy); }
@keyframes flap { 50% { transform: rotate(-6deg); } }

/* ---------------------------------------------------------------- about (home) */
.about, .others { background: var(--chalk-2); color: var(--ink); box-shadow: 0 -14px 34px rgba(20, 10, 40, 0.18); }
.about::before, .others::before { border-color: rgba(255, 255, 255, 0.7); }
.about-in { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.about-ball { width: clamp(96px, 14vw, 160px); }
.about h2 { font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.about p { max-width: 60ch; color: var(--ink-2); }
.about p + p { margin-top: 14px; }
.about a { color: var(--ink); text-decoration-color: var(--ochre); text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- footer: the armadillo's tail plate */
.foot { background: var(--ink); color: var(--chalk); padding-bottom: 40px; box-shadow: 0 -14px 34px rgba(20, 10, 40, 0.3); }
.foot-in { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand strong { display: block; font: 900 1.3rem/1.1 var(--display); }
.foot-brand span { font-size: 0.95rem; opacity: 0.75; }
.ball-lg { width: 56px; height: 56px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 26px; font-size: 0.95rem; }
.foot-nav a { text-decoration: none; opacity: 0.85; padding: 12px 0; }
.foot-nav a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: 4px; }
.foot-note { max-width: 1200px; margin: 24px auto 0; font: 400 0.72rem/1.5 var(--mono); opacity: 0.6; }

/* ---------------------------------------------------------------- game page */
.game-hero { margin-top: 0; padding-top: calc(var(--arch) + 24px); overflow: hidden; isolation: isolate; }
/* the game's own painted art, sharp on the right, fading into the plate color behind the text */
.game-hero::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, var(--base) 40%, color-mix(in srgb, var(--base) 55%, transparent) 60%, transparent 80%), var(--bg, none) 100% 38% / 62% auto no-repeat; }
.game-hero-in { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.game-hero h1 { font-weight: 900; font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -0.035em; line-height: 0.95; text-wrap: balance; }
.game-hero .tagline { max-width: 30ch; font-size: clamp(1.15rem, 1.9vw, 1.45rem); margin-bottom: 28px; }
.game-hero .plats { margin-top: -8px; }
.phone-hero { width: min(100%, 300px); justify-self: center; transform: rotate(4deg); }
.hero-cameo { margin: 0; position: relative; justify-self: center; width: min(100%, 360px); }
.hero-cameo img { width: 100%; filter: drop-shadow(0 18px 22px rgba(5, 2, 15, 0.45)); }
/* half-body cutouts stand at the bottom of the hero: the cut runs past the edge and the gallery plate covers it */
.hero-cameo.is-cropped { align-self: end; margin-bottom: calc(-1 * (var(--arch) + 56px) - 30px); width: min(100%, 400px); }
.hero-cameo.is-cropped img { filter: none; }
.hero-cameo .say { left: auto; right: 74%; top: 2%; border-radius: 16px 16px 4px 16px; font-size: 0.95rem; }
.hero-cameo .say.note { border-radius: 3px; font-size: 1rem; }
.js .hero-cameo .say { animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 0.5s both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.9); } }
.hero-cameo:not(.is-cropped) img { animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-1deg); } }
/* Last Lighthouse: the hero is lit by a beam that follows the pointer (site.js sets --mx/--my) */
.g-last-lighthouse .game-hero::after { background: radial-gradient(circle 260px at var(--mx, 72%) var(--my, 42%), rgba(255, 228, 150, 0.2), transparent 70%),
  linear-gradient(90deg, var(--base) 40%, color-mix(in srgb, var(--base) 55%, transparent) 60%, transparent 80%), var(--bg, none) 100% 38% / 62% auto no-repeat; }

/* inner plates of a game page use a lower arch: the big arch is for games and the tail */
.gallery, .story { --arch: clamp(32px, 4.4vw, 60px); }
.gallery { padding-bottom: calc(var(--arch) + 40px); }
.gallery h2, .story h2, .others h2, .doc h2, .steps h3 { text-wrap: balance; }
.lead, .steps p, .about p { text-wrap: pretty; }
.gallery h2, .story h2, .others h2 { font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.05; }
.gallery-head { max-width: 1200px; margin: 0 auto 28px; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.count { display: none; flex: none; white-space: nowrap; font: 600 0.8rem/1 var(--mono); opacity: 0.8; padding-bottom: 6px; }
.gallery-nav { display: flex; gap: 10px; }
.gnav { width: 48px; height: 48px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--on) 45%, transparent); background: transparent; color: var(--on); font: 700 1.1rem/1 var(--display); cursor: pointer; }
.gnav:hover { background: var(--accent); color: var(--deep); border-color: var(--accent); }
.strip { --col: max(var(--gutter), calc(50% - 600px)); list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 20px var(--col); display: flex; gap: clamp(16px, 2.5vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scroll-padding-left: var(--col); }
.strip li { flex: none; scroll-snap-align: start; }
.strip figure { margin: 0; width: clamp(200px, 22vw, 260px); }
.strip .phone { width: 100%; }
.gallery.few .strip figure { width: clamp(200px, 23vw, 290px); }
.gallery.few3 .gallery-nav { display: none; }
.strip figcaption { margin-top: 14px; font: 500 0.95rem/1.4 var(--body); text-wrap: pretty; }
.strip .phone { transition: transform 0.3s ease; }
.strip li:hover .phone { transform: translateY(-6px) rotate(-1.5deg); }

.story > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.pitch > * { max-width: 860px; }
.pitch-hook { font: 700 clamp(1.5rem, 3.2vw, 2.4rem)/1.15 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.pitch-rest { margin-top: 18px; max-width: 60ch !important; font: 400 clamp(1.05rem, 1.5vw, 1.25rem)/1.6 var(--body); opacity: 0.92; text-wrap: pretty; }
.howto, .pillars { margin-top: clamp(56px, 8vw, 96px); }
.howto h2, .pillars h2 { margin-bottom: 32px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 36px); counter-reset: passo; }
.steps li { counter-increment: passo; }
.steps li::before { content: counter(passo); display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%;
  font: 600 1.6rem/1 var(--mono); color: var(--deep); background: var(--accent); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3); }
.steps h3 { font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; line-height: 1.2; }
.steps p { opacity: 0.9; }
/* each game numbers its steps with something from the game */
.g-chain-brawl .steps li::before { border-radius: 16px; color: #fff; background: #D9493A; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.22), inset 0 3px 0 rgba(255, 255, 255, 0.3), 0 5px 0 rgba(0, 0, 0, 0.3); }
.g-chain-brawl .steps li:nth-child(2)::before { background: #3E9C4F; }
.g-chain-brawl .steps li:nth-child(3)::before { background: #2F7FD0; }
.g-dungeon-landlord .steps li::before { background: radial-gradient(circle at 35% 30%, #FFE7A0, #E9A93A 60%, #B9741A); color: #5A3410; box-shadow: inset 0 0 0 5px rgba(120, 70, 10, 0.35), 0 5px 0 rgba(0, 0, 0, 0.35); }
.g-last-lighthouse .steps li::before { background: radial-gradient(circle, #FFF3C4 0 30%, var(--accent) 31% 100%); box-shadow: 0 0 28px rgba(244, 197, 90, 0.55); }
/* Crust Landing: a pizza slice, cheese on a crust */
.g-crust-landing .steps li::before { border-radius: 50% 50% 50% 10px; color: #5A2A08; background: radial-gradient(circle at 30% 70%, #C8381F 0 9%, transparent 10%), radial-gradient(circle at 74% 30%, #C8381F 0 8%, transparent 9%), radial-gradient(circle at 30% 30%, #FFD27A, #F6B23C 70%); box-shadow: inset 0 0 0 5px #D9822B, 0 5px 0 rgba(0, 0, 0, 0.3); }
/* Bubble Brigade: a shiny bubble */
.g-bubble-brigade .steps li::before { color: #5A1238; background: radial-gradient(circle at 32% 28%, #fff 0 12%, #FFB6DA 13%, #FF8AC2 60%, #C9508E); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15), 0 5px 0 rgba(0, 0, 0, 0.3); }
.g-bubble-brigade .steps li:nth-child(2)::before { background: radial-gradient(circle at 32% 28%, #fff 0 12%, #9FE3FF 13%, #4FB8F0 60%, #2475B0); color: #0D3352; }
.g-bubble-brigade .steps li:nth-child(3)::before { background: radial-gradient(circle at 32% 28%, #fff 0 12%, #C9F59A 13%, #7DD34A 60%, #3F8F22); color: #173F08; }
/* Barnyard Blasters: a corn kernel */
.g-barnyard-blasters .steps li::before { border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; color: #5A3A05; background: radial-gradient(circle at 36% 30%, #FFF0B0, #F6C343 55%, #D99A1E); box-shadow: inset 0 -5px 0 rgba(120, 70, 0, 0.25), 0 5px 0 rgba(0, 0, 0, 0.3); }
.pillar-list { list-style: none; margin: 0; padding: 0; }
.pillar-list li { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px clamp(20px, 4vw, 56px); padding: 26px 0; border-top: 1.5px solid color-mix(in srgb, var(--on) 22%, transparent); align-items: baseline; }
.pillar-list h3 { font-weight: 900; font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.pillar-list p { font-size: 1.1rem; opacity: 0.9; max-width: 52ch; text-wrap: pretty; }
.facts { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 32px; }
.story .facts { grid-template-columns: repeat(4, 1fr); }
/* the end of a game page asks again, in the game's accent */
.story-end { margin-top: 56px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px 24px; align-items: center; padding: 22px 26px 22px 22px; border-radius: 72px 28px 28px 72px; background: var(--accent); color: var(--deep); }
.story-end .end-face { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 4px var(--deep); }
.story-end p { font-size: 1.1rem; line-height: 1.4; text-wrap: pretty; }
.story-end strong { font-family: var(--display); font-weight: 700; display: block; letter-spacing: -0.01em; }
.story-end .btn { background: var(--deep); color: var(--on); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3); }
.story-end :focus-visible, .dock :focus-visible { outline-color: var(--deep); }
/* phone: a small bar that follows you down a game page (site.js shows it once the hero is gone) */
.dock { display: none; }
.facts div { padding: 14px 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.facts dt { font: 400 0.72rem/1.4 var(--mono); opacity: 0.75; margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 500; }
.others h2 { max-width: 1200px; margin: 0 auto 24px; }
/* five small arched plates in a row: the shell again, in miniature */
.mini { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.mini li { display: flex; }
.mini a { flex: 1; display: grid; grid-template-columns: 1fr; align-content: start; justify-items: start; gap: 14px; text-decoration: none; padding: 26px 18px 20px; color: var(--on);
  border-radius: 50% 50% 18px 18px / 40px 40px 18px 18px; background: var(--scute), linear-gradient(180deg, var(--base), var(--deep)); transition: transform 0.2s ease; }
.mini a:hover { transform: translateY(-4px); }
.mini img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 3px var(--accent); }
.mini-t { display: block; min-width: 0; }
.mini .genre { margin-bottom: 6px; font-size: 0.7rem; display: block; }
.mini .genre::before { display: inline-block; vertical-align: 1px; margin-right: 7px; }
.mini strong { display: block; font: 900 1.15rem/1.1 var(--display); letter-spacing: -0.02em; }
.mini-tag { display: block; margin-top: 6px; font-size: 0.86rem; line-height: 1.35; opacity: 0.85; }

/* ---------------------------------------------------------------- documents */
.doc { max-width: 780px; margin: 0 auto; padding: 24px var(--gutter) calc(var(--arch) + 80px); }
.doc-wide { max-width: 1000px; }
.doc h1 { font-weight: 900; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.035em; }
/* the top of a document sits in a low plate, like the first band of the shell */
.doc-head { background: var(--scute-ink), var(--chalk-2); border-radius: 50% 50% 28px 28px / 48px 48px 28px 28px; padding: 64px clamp(20px, 5vw, 48px) 36px; margin: 8px 0 12px; }
.doc-head .doc-lead { margin-top: 18px; }
.pills { list-style: none; padding: 0 !important; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { margin: 0; font: 600 0.74rem/1 var(--mono); color: var(--ink); padding: 9px 12px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.doc h2 { font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 8px 0; }
.doc li strong, .doc p strong { color: var(--ink); }
.doc a { color: var(--ink); text-decoration-color: var(--ochre); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.doc code { font: 400 0.85em var(--mono); background: var(--chalk-2); padding: 2px 6px; border-radius: 6px; }
.doc-meta { font: 400 0.75rem/1.4 var(--mono); margin: 14px 0 8px; }
.doc-lead { font-size: 1.2rem; color: var(--ink) !important; margin-top: 22px; }
.facts-studio { margin: 28px 0 0; }
.logo-row { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.logo-row li { margin: 0; padding: 20px; border-radius: 22px; background: var(--scute-ink), var(--chalk-2); display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.logo-row img { width: 96px; height: 96px; object-fit: contain; }
.is-press .logo-row { grid-template-columns: repeat(2, 1fr); }
.logo-row .logo-wide { grid-template-columns: 1fr; }
.logo-row .logo-wide img { width: 100%; max-width: 300px; height: auto; }
.logo-row .logo-dark { background: var(--ink); }
.logo-row .logo-dark .dl, .logo-row .logo-dark .dl span { color: var(--chalk); }
.dl { font-weight: 700; text-decoration: none !important; }
.dl span { display: block; font: 400 0.72rem/1.4 var(--mono); color: var(--ink-2); margin-top: 4px; }
.dl:hover { text-decoration: underline !important; }
.is-press .doc { padding-bottom: 64px; }
/* press: each game is a full plate again, overlapping the one above */
.press-game { box-shadow: 0 -14px 34px rgba(20, 10, 40, 0.22); }
.pg-in { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 24px clamp(28px, 4vw, 56px); align-items: start; }
.pg-art { display: block; text-decoration: none; }
.pg-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease; }
.pg-art:hover img { transform: translateY(-3px); }
.pg-art span { display: block; margin-top: 10px; font: 400 0.76rem/1.4 var(--mono); }
.press-game h2 { margin: 0 0 8px; color: var(--on); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; }
.press-game p, .press-game dd { color: var(--on); }
.press-game p { opacity: 0.92; }
.press-game p + p { margin-top: 12px; }
.press-game .press-tag { font: 700 1.15rem/1.35 var(--display); opacity: 1; letter-spacing: -0.01em; }
.press-game a { color: var(--on); text-decoration-color: var(--accent); }
.press-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 24px; margin: 20px 0 0; }
.press-facts div { padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--on) 22%, transparent); }
.press-facts dt { font: 400 0.68rem/1.4 var(--mono); opacity: 0.75; color: var(--on); }
.press-facts dd { margin: 2px 0 0; font-size: 0.95rem; }
.press-shots { list-style: none; padding: 0 !important; margin: 22px 0 0; display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px !important; }
.press-shots li { margin: 0; flex: none; }
.press-shots a { display: block; position: relative; border-radius: 16px; }
.press-shots .phone { width: 84px; border-width: 3px; border-radius: 14px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease; }
.press-shots a:hover .phone { transform: translateY(-4px); }
.press-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px !important; font: 400 0.82rem/1.4 var(--mono); }
.press-links a:not(.btn) { padding: 12px 0; }
.press-links .btn { text-decoration: none; color: var(--deep); font-family: var(--display); }
.nf { text-align: center; padding: 40px var(--gutter) calc(var(--arch) + 100px); display: grid; justify-items: center; gap: 18px; overflow: hidden; }
.nf-ball { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.nf-ball img { width: 140px; animation: away 2s 0.9s cubic-bezier(0.45, 0, 0.6, 1) forwards; }
.nf-ball.back img { animation: back 1.1s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
@keyframes away { to { transform: translateX(min(calc(50vw - 90px), 440px)) rotate(600deg); } }
@keyframes back { from { transform: translateX(min(calc(50vw - 90px), 440px)) rotate(600deg); } to { transform: none; } }
.nf h1 { font-weight: 900; font-size: clamp(2rem, 5vw, 3.4rem); }
.nf-or { margin-top: 18px; font: 400 0.78rem/1.4 var(--mono); color: var(--ink-2); }
.nf .cast { justify-content: center; }

/* ---------------------------------------------------------------- plates: what you do, the vote, the gameplay loop */
.chips .chip-verb { font-weight: 600; background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-2l { flex-direction: column; gap: 4px; padding-top: 0.72em; padding-bottom: 0.72em; }
.btn-sub { font: 400 0.64rem/1 var(--mono); letter-spacing: 0.02em; opacity: 0.78; }
.btn-vote, .vote-row { display: none; }
.js .btn-vote { display: inline-flex; }
.js .vote-row { display: block; }
.btn-vote .vote-on { display: none; }
.btn-vote[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 24%, transparent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn-vote[aria-pressed="true"] .vote-off { display: none; }
.btn-vote[aria-pressed="true"] .vote-on { display: inline; }
video.phone { display: block; height: auto; }
/* each plate marks its genre with a piece of its own game, like the step numbers on the game pages */
.plate .genre::before, .game-hero .genre::before { width: 13px; height: 13px; }
#p-crust-landing .genre::before, .g-crust-landing .game-hero .genre::before { transform: none; border-radius: 50% 50% 50% 3px; background: radial-gradient(circle at 34% 64%, #C8381F 0 14%, transparent 16%), radial-gradient(circle at 34% 34%, #FFD27A, #F6B23C 70%); box-shadow: inset 0 0 0 2px #D9822B; }
#p-chain-brawl .genre::before, .g-chain-brawl .game-hero .genre::before { transform: none; border-radius: 4px; background: #D9493A; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
#p-bubble-brigade .genre::before, .g-bubble-brigade .game-hero .genre::before { transform: none; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 16%, #FFB6DA 18%, #FF8AC2 60%, #C9508E); }
#p-dungeon-landlord .genre::before, .g-dungeon-landlord .game-hero .genre::before { transform: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE7A0, #E9A93A 60%, #B9741A); box-shadow: inset 0 0 0 2px rgba(120, 70, 10, 0.4); }
#p-barnyard-blasters .genre::before, .g-barnyard-blasters .game-hero .genre::before { transform: none; width: 11px; height: 14px; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; background: radial-gradient(circle at 36% 30%, #FFF0B0, #F6C343 55%, #D99A1E); }
#p-last-lighthouse .genre::before, .g-last-lighthouse .game-hero .genre::before { transform: none; border-radius: 50%; background: radial-gradient(circle, #FFF3C4 0 32%, var(--accent) 34%); box-shadow: 0 0 12px rgba(244, 197, 90, 0.8); }
/* Chain Brawl: two boards facing off, straight, like a duel (not the fan of the other plates) */
#p-chain-brawl .plate-shots .phone-1 { left: 6%; top: -4%; transform: none; }
#p-chain-brawl .plate-shots .phone-2 { left: 46%; top: -4%; transform: none; }
#p-chain-brawl:hover .phone-1 { transform: translateX(-6px); }
#p-chain-brawl:hover .phone-2 { transform: translateX(6px); }
#p-chain-brawl .plate-shots::after { content: 'VS'; position: absolute; z-index: 3; left: 43%; top: 34%; transform: translateX(-50%) rotate(-8deg); padding: 8px 12px; border-radius: 12px; background: var(--accent); color: var(--deep); font: 900 1.1rem/1 var(--display); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3); }
/* Last Lighthouse: the plate is lit by a beam that follows the pointer, as on its own page */
#p-last-lighthouse::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle 300px at var(--mx, 74%) var(--my, 46%), rgba(255, 228, 150, 0.16), transparent 70%); }
/* the vote, in the ochre plate */
.vote-row { margin-top: 30px; padding-top: 22px; border-top: 2px dashed rgba(34, 26, 51, 0.35); }
.vote-row p { font-size: 1rem; margin: 0 0 14px; max-width: 40ch; }
.vote-faces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.vote-faces button { display: block; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--base); box-shadow: 0 0 0 3px var(--ink), 0 4px 0 3px rgba(34, 26, 51, 0.35); transition: transform 0.15s ease; }
.vote-faces button:hover { transform: translateY(-3px); }
.vote-faces img { width: 100%; height: 100%; border-radius: 50%; }
.vote-faces button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px var(--paper), 0 4px 0 7px rgba(34, 26, 51, 0.35); transform: translateY(-3px) scale(1.08); }
.next .vote-thanks { min-height: 1.5em; margin: 12px 0 0; font: 600 0.8rem/1.5 var(--mono); }

/* workbench: the gold under Gorgo, the whole rig is touchable */
.bench-in { grid-template-areas: 'copy rig' 'btns rig'; grid-template-rows: auto 1fr; }
.bench-copy { grid-area: copy; align-self: end; }
.rig { grid-area: rig; cursor: pointer; }
.bench-btns { grid-area: btns; align-self: start; margin-top: 4px; }
.rig-gold { position: absolute; left: 22%; bottom: -14%; width: 70%; max-width: none; transition: transform 0.9s cubic-bezier(0.5, 1.5, 0.45, 1), opacity 0.3s ease; }
.rig.apart .rig-gold { transform: translate(8%, 34%); opacity: 0.6; }
.rig.awake .rig-gold { animation: jingle 0.5s ease; }
@keyframes jingle { 30% { transform: translateY(-4px) rotate(-1deg); } 60% { transform: translateY(2px) rotate(1deg); } }

/* ---------------------------------------------------------------- game page, round 3 */
.game-hero .tagline { max-width: 36ch; text-wrap: balance; }
video.phone-hero-m { display: none; }
.gallery-nav[hidden] { display: none; }
.live-tag { display: inline-block; margin-right: 8px; padding: 3px 7px 2px; border-radius: 6px; background: var(--accent); color: var(--deep); font: 600 0.62rem/1.3 var(--mono); vertical-align: 2px; letter-spacing: 0.04em; text-transform: uppercase; }
/* two plates for the story: a lighter one (the pitch and how to play, side by side) and a deep one (the notes) */
.story { background: var(--scute), linear-gradient(180deg, color-mix(in srgb, var(--base) 80%, #fff 20%), var(--base) 75%); }
.story-2 { background: var(--scute), linear-gradient(180deg, var(--deep), color-mix(in srgb, var(--deep) 80%, #000 20%)); }
.story-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.story-in .howto { margin-top: 0; }
.story-in .pitch-hook { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.howto h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 26px; }
.steps { grid-template-columns: 1fr; gap: 22px; }
.steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; }
.steps li::before { grid-row: span 2; margin: 0; }
.story-2 .pillars { margin-top: 0; }
.pillar-list h3 { font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
.pillar-list li.has-img { grid-template-columns: 100px 1fr 1.3fr; align-items: center; }
.pillar-list li:not(.has-img) { grid-template-columns: 100px 1fr 1.3fr; }
.pillar-list li:not(.has-img) h3 { grid-column: 2; }
.pillar-shot { width: 100px; border-width: 4px; border-radius: 16px; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35); transform: rotate(-3deg); }
.pillar-list li:nth-child(even) .pillar-shot { transform: rotate(3deg); }
.pillar-face { width: 88px; height: 88px; border-radius: 50%; justify-self: center; box-shadow: 0 0 0 4px var(--accent), 0 8px 18px rgba(0, 0, 0, 0.35); }
/* Last Lighthouse: the keeper's notes are notes, on paper, like Grandma's */
.g-last-lighthouse .pillar-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.g-last-lighthouse .pillar-list li, .g-last-lighthouse .pillar-list li.has-img { display: block; border: 0; padding: 22px 22px 26px; background: #F6EFD8; color: #2a2a2a; border-radius: 3px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2), 0 16px 30px rgba(0, 0, 0, 0.35); transform: rotate(-1.2deg); }
.g-last-lighthouse .pillar-list li:nth-child(2) { transform: rotate(1deg) translateY(10px); }
.g-last-lighthouse .pillar-list li:nth-child(3) { transform: rotate(-0.6deg); }
.g-last-lighthouse .pillar-list .pillar-shot { width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 50% 30%; border: 0; border-radius: 2px; transform: none; box-shadow: none; margin-bottom: 16px; filter: sepia(0.15); }
.g-last-lighthouse .pillar-list h3 { font: italic 600 1.35rem/1.2 var(--body); letter-spacing: 0; margin-bottom: 8px; }
.g-last-lighthouse .pillar-list p { font-size: 1rem; opacity: 1; color: #3a3a3a; }
/* Dungeon Landlord: the house rules are pinned to the wall on parchment */
.g-dungeon-landlord .pillar-list { position: relative; background: linear-gradient(180deg, #F3E3C0, #E6CF9E); color: #3B2614; border-radius: 6px; padding: 34px clamp(20px, 4vw, 48px) 18px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25), 0 22px 40px rgba(0, 0, 0, 0.4); transform: rotate(-0.5deg); }
.g-dungeon-landlord .pillar-list::before { content: ''; position: absolute; left: 50%; top: 12px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #C9C2D6, #6B6280); box-shadow: 0 3px 4px rgba(0, 0, 0, 0.4); }
.g-dungeon-landlord .pillar-list li { border-top-color: rgba(59, 38, 20, 0.22); }
.g-dungeon-landlord .pillar-list li:first-child { border-top: 0; }
.g-dungeon-landlord .pillar-list p { opacity: 1; color: #5A3E25; }
.g-dungeon-landlord .pillar-face { box-shadow: 0 0 0 4px #B9741A; }
.g-dungeon-landlord .pillar-shot { border-color: #3B2614; }
.story-2 .facts { margin-top: 48px; }

/* light plates and the tail: softer shadows on the chalk, scutes on the tail */
.foot { background: var(--scute), var(--ink); box-shadow: 0 -4px 12px rgba(20, 10, 40, 0.16); }
.about, .others { box-shadow: 0 -6px 16px rgba(20, 10, 40, 0.12); }
.is-press .doc { padding-bottom: calc(var(--arch) + 56px); }
.mini .genre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 860px) {
  .hero { padding-bottom: calc(var(--arch) + 40px); }
  .hero-art { margin: 0; }
  .hero-in { grid-template-columns: 1fr; }
  .lead { max-width: none; margin: 18px 0 22px; }
  .cast-nav { margin-top: 8px; }
  .cast-label { font-size: 0.92rem; margin-bottom: 12px; }
  .cast { gap: 9px; flex-wrap: nowrap; }
  .cast a { width: min(48px, calc((100vw - 2 * var(--gutter) - 45px) / 6)); height: min(48px, calc((100vw - 2 * var(--gutter) - 45px) / 6)); box-shadow: 0 0 0 2px var(--base), 0 4px 0 var(--deep); }
  /* phone: the three title games as a strip right under the headline; the mascot sits on the label row */
  .hero-reel { display: flex; justify-content: center; gap: 4%; margin: 22px 0 4px; padding: 0 2%; }
  .hero-reel .phone { width: 29%; border-width: 4px; border-radius: 16px; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); }
  .hero-reel .reel-1 { transform: rotate(-6deg) translateY(8px); }
  .hero-reel .reel-3 { transform: rotate(6deg) translateY(8px); }
  .hero-phones { display: none; }
  .hero-art { display: none; }
  .plate { padding-bottom: calc(var(--arch) + 50px); }
  .plate-in, .plate:nth-of-type(even) .plate-in { grid-template-columns: 1fr; grid-template-areas: 'shots' 'text'; gap: 10px; }
  .plate-shots { height: clamp(220px, 60vw, 290px); margin: 0 0 10px; }
  .plate-shots .phone { width: clamp(118px, 33vw, 160px); border-width: 5px; border-radius: 20px; }
  .plate-shots .phone-1 { left: 4%; top: 2%; }
  .plate-shots .phone-2 { left: 36%; top: 10%; }
  /* even plates mirror: phones on the right, the character on the left (and odd ones the other way) */
  .plate:nth-of-type(even) .plate-shots .phone-1 { left: auto; right: 4%; transform: rotate(6deg); }
  .plate:nth-of-type(even) .plate-shots .phone-2 { left: auto; right: 36%; transform: rotate(-5deg); }
  .cameo { left: auto; right: var(--gutter); top: calc(var(--arch) * -0.7); }
  .plate:nth-of-type(even) .cameo { left: var(--gutter); right: auto; top: calc(var(--arch) * -0.7); }
  .cameo img { height: 96px; }
  .say { left: auto; right: 90%; top: 0; font-size: 0.74rem; border-radius: 14px 14px 4px 14px; }
  .plate:nth-of-type(even) .say { left: 90%; right: auto; border-radius: 14px 14px 14px 4px; }
  .say.note { font-size: 0.8rem; }
  .tagline { font-size: 1.02rem; margin: 12px 0 14px; }
  .chips { margin-bottom: 20px; }
  .game-hero::after { background: linear-gradient(180deg, var(--base) 42%, color-mix(in srgb, var(--base) 50%, transparent) 64%, color-mix(in srgb, var(--deep) 30%, transparent)), var(--bg, none) var(--bgpos-m, 50% 30%) / cover no-repeat; }
  .g-last-lighthouse .game-hero::after { background: linear-gradient(180deg, var(--base) 42%, color-mix(in srgb, var(--base) 50%, transparent) 64%, color-mix(in srgb, var(--deep) 30%, transparent)), var(--bg, none) var(--bgpos-m, 50% 30%) / cover no-repeat; }
  .game-hero-in { grid-template-columns: 1fr; }
  .hide-m { display: none; }
  .soon { margin-top: 18px; }
  .phone-hero { width: min(62%, 240px); transform: rotate(3deg); }
  .hero-cameo { width: min(64%, 250px); margin-top: 56px; }
  .hero-cameo.is-cropped { width: min(70%, 270px); margin-bottom: calc(-1 * (var(--arch) + 56px) - 24px); }
  .hero-cameo .say { right: auto; left: -16%; top: -12%; font-size: 0.78rem; border-radius: 14px 14px 14px 4px; }
  .hero-cameo .say.note { left: -22%; font-size: 0.84rem; border-radius: 3px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; }
  .steps li::before { grid-row: span 2; width: 52px; height: 52px; margin: 0; font-size: 1.3rem; }
  .pillar-list li { grid-template-columns: 1fr; }
  .story .facts { grid-template-columns: 1fr 1fr; }
  .story-end { grid-template-columns: auto 1fr; border-radius: 32px; padding: 20px; }
  .story-end .end-face { width: 64px; height: 64px; }
  .story-end p { font-size: 1rem; }
  .story-end .btn { grid-column: 1 / -1; }
  .dock { position: fixed; z-index: 20; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border-radius: 999px;
    background: var(--scute), var(--deep); color: var(--on); box-shadow: 0 10px 30px rgba(10, 5, 25, 0.45), inset 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(140%); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .dock[hidden] { display: none; }
  .dock:not(.show) { visibility: hidden; }
  .dock.show { transform: none; }
  .dock-face { width: 44px; height: 44px; border-radius: 50%; flex: none; }
  .dock p { flex: 1; min-width: 0; line-height: 1.15; }
  .dock strong { display: block; font: 900 0.92rem/1.1 var(--display); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock span { font: 400 0.68rem/1.3 var(--mono); opacity: 0.85; }
  .dock .btn { padding: 0.8em 1.15em; min-height: 44px; font-size: 0.88rem; box-shadow: none; flex: none; }
  .next-in { grid-template-columns: 1fr; }
  .trail-wrap { padding: 0 0 0 4px; }
  .trail { grid-template-columns: 1fr; gap: 22px; padding-left: 34px; }
  .trail::before { left: 7px; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 3px dashed currentColor; }
  .trail li { padding-top: 0; }
  .trail li::before { left: -34px; top: 2px; }
  .trail-ball { display: none; }
  .about-in { grid-template-columns: 64px 1fr; gap: 16px; }
  .about-ball { width: 64px; }
  .about h2 { font-size: 1.8rem; }
  .bench-in { grid-template-columns: 1fr; }
  .rig { margin: 24px auto 8px; width: 92%; }
  .part-tag { font-size: 0.6rem; padding: 4px 5px; }
  .rig-say { font-size: 0.85rem; }
  .doc-head { margin: 4px calc(var(--gutter) * -0.5) 8px; padding: 48px 20px 26px; border-radius: 50% 50% 22px 22px / 36px 36px 22px 22px; }
  .pg-in { grid-template-columns: 1fr; }
  .is-press .logo-row { grid-template-columns: 1fr; }
  .pg-art img { aspect-ratio: 4 / 3; }
  .pg-media { order: -1; }
  .gallery-nav { display: none; }
  .count { display: block; }
  .mini { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-padding: var(--gutter); }
  .mini li { flex: 0 0 72%; scroll-snap-align: start; }
  .mini a { grid-template-columns: 64px 1fr; align-items: center; gap: 14px; padding: 18px 16px; border-radius: 40px 40px 18px 18px / 22px 22px 18px 18px; }
  .mini img { width: 64px; height: 64px; }
}
@media (max-width: 420px) {
  .top nav { gap: 8px; font-size: 0.88rem; }
  .brand span { font-size: 1.15rem; }
}
/* ---------------------------------------------------------------- small screens, round 3 */
@media (max-width: 860px) {
  /* the cast: three across, names under the faces */
  .cast, .cast-nav .cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; flex-wrap: initial; }
  .cast a { width: auto; height: auto; box-shadow: none; }
  .cast img { width: 64px; height: 64px; box-shadow: 0 0 0 3px var(--base), 0 5px 0 var(--deep); }
  .cast-name { max-width: 100px; }
  .nf .cast { max-width: 360px; margin: 0 auto; }
  /* the mascot comes back on phones, small, sitting on the first plate */
  .hero-art { display: block; min-height: 0; width: 46%; max-width: 220px; margin: -6px 0 calc(var(--arch) * -1 - 64px) auto; justify-self: end; z-index: 3; }
  .hero-mascot { position: relative; left: 0; width: 100%; }
  .plate:first-of-type .cameo { left: var(--gutter); right: auto; }
  .plate:first-of-type .say { left: 90%; right: auto; border-radius: 14px 14px 14px 4px; }
  /* Chain Brawl on phones: the two boards side by side */
  #p-chain-brawl .plate-shots .phone-1 { left: auto; right: 48%; top: 2%; }
  #p-chain-brawl .plate-shots .phone-2 { left: auto; right: 6%; top: 2%; }
  #p-chain-brawl .plate-shots::after { left: 50%; font-size: 0.95rem; }
  .btn-vote { font-size: 0.85rem; }
  .vote-faces { gap: 10px; }
  .vote-faces button { width: 48px; height: 48px; }
  /* game page: the gameplay loop next to the character, in the first screen */
  .game-hero-in { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 14px; }
  .game-hero-text { grid-column: 1 / -1; }
  .hero-cameo, .hero-cameo.is-cropped { width: 100%; margin-top: 24px; }
  .hero-cameo.is-cropped { margin-bottom: calc(-1 * (var(--arch) + 56px) - 24px); }
  video.phone-hero-m { display: block; width: 100%; max-width: 200px; justify-self: center; transform: rotate(4deg); border-width: 4px; border-radius: 18px; margin-top: 24px; }
  .hero-cameo .say, .hero-cameo .say.note { left: 0; right: auto; top: -14%; }
  .story-in { grid-template-columns: 1fr; gap: 48px; }
  .steps li { grid-template-columns: 56px 1fr; column-gap: 16px; }
  .pillar-list li.has-img, .pillar-list li:not(.has-img) { grid-template-columns: 72px 1fr; align-items: start; gap: 8px 16px; }
  .pillar-list li.has-img > :first-child { grid-row: span 2; }
  .pillar-list li:not(.has-img) h3, .pillar-list li:not(.has-img) p { grid-column: 1 / -1; }
  .pillar-shot { width: 72px; border-width: 3px; border-radius: 12px; }
  .pillar-face { width: 64px; height: 64px; }
  .g-last-lighthouse .pillar-list { grid-template-columns: 1fr; gap: 22px; }
  .g-last-lighthouse .pillar-list li:nth-child(2) { transform: rotate(0.8deg); }
  .g-dungeon-landlord .pillar-list { transform: none; padding: 30px 18px 10px; }
  /* bench: Gorgo first, then the buttons (you see what the tap does) */
  .bench-in { grid-template-areas: 'copy' 'rig' 'btns'; grid-template-rows: none; }
  .rig { margin: 40px auto 48px; }
  /* why an armadillo: the ball floats, the text uses the full width */
  .about-in { display: block; }
  .about-ball { float: right; width: 64px; margin: 0 0 8px 14px; }
  /* tail plate */
  .foot-in { gap: 12px; }
  .foot-nav { gap: 0 20px; }
  /* roll on: the cards keep their arch and line up at the top */
  .mini a { align-items: start; align-content: start; border-radius: 50% 50% 18px 18px / 34px 34px 18px 18px; padding: 30px 16px 18px; }
  .mini img { margin-top: 4px; }
  .mini-tag { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  /* press: the game name first, then its images */
  .pg-media { order: 0; }
}
@media (max-width: 380px) {
  .cast img { width: 56px; height: 56px; }
}
/* ---------------------------------------------------------------- round 4 */
:root { --scute-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='36'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.04' stroke-width='1.5'%3E%3Crect x='1.5' y='1.5' width='25' height='15' rx='6'/%3E%3Crect x='-12.5' y='19.5' width='25' height='15' rx='6'/%3E%3Crect x='15.5' y='19.5' width='25' height='15' rx='6'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 28px 36px; }
/* the address written out, with a copy button (in-app browsers often open nothing on mailto) */
.mail { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.mail a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: currentColor; }
.copy { font: 600 0.7rem/1 var(--mono); padding: 0 12px; min-height: 36px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.copy:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.next-copy .mail-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 20px 0 0; font-size: 0.92rem; max-width: none; }
.foot-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; scroll-margin-top: 40px; }
.foot-label { font: 400 0.72rem/1 var(--mono); opacity: 0.7; }
.mail-dark a { color: var(--chalk); text-decoration-color: var(--ochre); }
.foot { background: var(--scute-faint), var(--ink); }
/* documents: the scutes only on the arch of the head plate, not behind the reading text */
.doc-head { background: linear-gradient(var(--chalk-2), var(--chalk-2)) 0 64px / 100% 100% no-repeat, var(--scute-ink), var(--chalk-2); }

/* home plates: the genre or the verb, depending on the screen */
.genre .verb-t, .chips .chip-genre { display: none; }
.vote-ico { display: none; }

/* home plates: an object from each game in place of the second phone */
.prop { position: absolute; display: block; pointer-events: none; }
/* Crust Landing: the delivery ticket; the heat drains as the plate comes in */
.prop-ticket { left: 52%; top: 12%; width: clamp(170px, 15vw, 210px); padding: 22px 16px 16px; background: #FFF4E2; color: #3A2412; font: 400 0.72rem/1.35 var(--mono); transform: rotate(5deg); filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.4));
  -webkit-mask: radial-gradient(circle at 7px 0, transparent 5px, #000 5.5px) 0 0 / 14px 100% repeat-x; mask: radial-gradient(circle at 7px 0, transparent 5px, #000 5.5px) 0 0 / 14px 100% repeat-x; }
.tk-h { display: block; font: 700 0.78rem/1.25 var(--display); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1.5px dashed rgba(58, 36, 18, 0.45); }
.tk-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.tk-row b { font-weight: 700; }
.tk-bar { display: block; height: 10px; margin: 6px 0 4px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #3A2412; overflow: hidden; }
.tk-bar i { display: block; height: 100%; width: 78%; background: linear-gradient(90deg, #F28C28, #E5533F); }
.js .plate .tk-bar i { width: 100%; transition: width 1.8s cubic-bezier(0.3, 0.6, 0.3, 1) 0.8s; }
.js .plate.in .tk-bar i { width: 78%; }
.tk-tip { padding-top: 8px; margin-top: 10px; border-top: 1.5px dashed rgba(58, 36, 18, 0.45); font-weight: 700; }
.tk-stamp { position: absolute; left: 30%; bottom: 10px; padding: 3px 8px; border: 2.5px solid #C8381F; border-radius: 6px; color: #C8381F; font: 900 0.95rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(-14deg); opacity: 0.85; }
/* Bubble Brigade: three hero bubbles and a smug Goo */
.prop-bubbles { left: 50%; top: -4%; width: 46%; height: 104%; }
.pb { position: absolute; width: clamp(54px, 5.6vw, 80px); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.3)); animation: floaty 4.2s ease-in-out infinite; }
.pb-1 { left: 6%; top: 6%; }
.pb-2 { left: 50%; top: 18%; width: clamp(64px, 6.6vw, 96px); animation-delay: -1.4s; }
.pb-3 { left: 16%; top: 44%; animation-delay: -2.8s; }
.pb-goo { position: absolute; left: 40%; top: 58%; width: clamp(96px, 9.5vw, 136px); transform: rotate(5deg); filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.35)); }
@keyframes floaty { 50% { transform: translateY(-12px); } }
/* Dungeon Landlord: a house rule pinned up */
.prop-rule { left: 52%; top: 8%; width: clamp(170px, 15vw, 210px); padding: 30px 16px 20px; text-align: center; background: linear-gradient(180deg, #F3E3C0, #E6CF9E); color: #3B2614; border-radius: 4px; transform: rotate(4deg); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25), 0 18px 30px rgba(0, 0, 0, 0.4); }
.prop-rule::before { content: ""; position: absolute; left: 50%; top: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #C9C2D6, #6B6280); box-shadow: 0 3px 4px rgba(0, 0, 0, 0.4); }
.pr-ico { width: 64px; margin: 0 auto 10px; }
.pr-k { display: block; font: 400 0.66rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #6E4E2C; }
.pr-t { display: block; font: 700 1rem/1.15 var(--display); margin: 6px 0; letter-spacing: -0.01em; }
.pr-d { display: block; font-size: 0.84rem; line-height: 1.35; color: #5A3E25; }
/* Barnyard Blasters: a saucer beaming up Spotty */
.prop-beam { left: 50%; top: -8%; width: 46%; height: 110%; }
.pbm-ufo { position: absolute; z-index: 2; left: 50%; top: 0; width: clamp(110px, 10vw, 150px); margin-left: calc(clamp(110px, 10vw, 150px) / -2); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35)); animation: hover 3s ease-in-out infinite; }
.pbm-ray { position: absolute; left: 50%; top: 13%; width: 80%; height: 80%; transform: translateX(-50%); background: linear-gradient(180deg, rgba(255, 244, 170, 0.8), rgba(255, 244, 170, 0.12)); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); }
.pbm-cow { position: absolute; left: 50%; bottom: 12%; width: clamp(110px, 10vw, 150px); margin-left: calc(clamp(110px, 10vw, 150px) / -2); filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.3)); animation: abduct 3.4s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-5px); } }
@keyframes abduct { 50% { transform: translateY(-26px) rotate(-7deg); } }

/* home hero: the middle phone is the Barnyard gameplay loop */
.hero-phones video.phone, .hero-reel video.phone { height: auto; }

/* ochre plate: copy on the left, the vote and the route on the right */
.next-in { align-items: start; }
.next-side { display: grid; gap: 34px; }
.next-side .vote-row { margin-top: 0; padding-top: 0; border-top: 0; }
.next-side .trail-wrap { padding-top: 22px; border-top: 2px dashed rgba(34, 26, 51, 0.35); }
.trail-k { font: 600 0.78rem/1.3 var(--mono); margin-bottom: 18px; }
.trail-k + .trail-ball { top: 46px; left: -12px; width: 40px; height: 40px; }

/* workbench: copy and buttons together on the left, Gorgo on the right, the editor screenshot underneath */
.bench-in { grid-template-areas: ". rig" "copy rig" "btns rig" ". rig" "shot shot"; grid-template-rows: 1fr auto auto 1fr auto; align-items: center; row-gap: 0; }
.bench-btns { margin-top: 26px; }
.bench-shot { margin-top: 48px; }
.bench-copy { align-self: end; }
.bench-btns { align-self: start; }
.bench-copy .bench-lead { font: 700 clamp(1.15rem, 1.8vw, 1.4rem)/1.35 var(--display); letter-spacing: -0.01em; opacity: 1; }
.bench-copy .bench-small { font-size: 0.95rem; opacity: 0.78; }
.rig-gold { cursor: pointer; }
.js .rig:not(.awake):not(.apart) .rig-gold { animation: nudge 2.4s ease-in-out 1.5s 3; }
@keyframes nudge { 50% { transform: translateY(-4px); } }
.bench-shot { grid-area: shot; margin: 24px 0 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.bench-shot img { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.18), 0 22px 44px rgba(0, 0, 0, 0.45); transform: rotate(-1deg); }
.bench-shot figcaption { font-size: 0.98rem; line-height: 1.55; opacity: 0.88; max-width: 42ch; text-wrap: pretty; }
.bench-shot strong { display: block; font: 700 1.15rem/1.25 var(--display); margin-bottom: 8px; }

/* game pages: on desktop the gameplay loop stands next to the character */
@media (min-width: 861px) {
  .game-hero-in { position: relative; }
  video.phone-hero-m { display: block; position: absolute; z-index: 2; right: max(-12px, calc(50% - 640px)); bottom: -36px; width: 168px; border-width: 5px; border-radius: 20px; transform: rotate(5deg); }
  .strip { scroll-snap-type: x proximity; }
}
/* the strip starts in the same column as its heading */
.strip { padding-left: max(var(--gutter), calc(50% + var(--gutter) - 600px)); scroll-padding-left: max(var(--gutter), calc(50% - 600px)); }
/* the light story plate: less white in the mix so cream text passes AA on blue and teal */
.story:not(.story-2) { background: var(--scute), linear-gradient(180deg, color-mix(in srgb, var(--base) 92%, #fff 8%), var(--base) 60%); }
.pitch-rest, .steps p { opacity: 1; }
/* Bubble Brigade: the castle cropped closer */
.g-bubble-brigade .game-hero::after { background: linear-gradient(90deg, var(--base) 40%, color-mix(in srgb, var(--base) 55%, transparent) 60%, transparent 80%), var(--bg, none) 100% 22% / 74% auto no-repeat; }
/* roll on: the genre stays inside the card */
.mini-t { width: 100%; }
.mini a { justify-items: stretch; }
.mini .genre { font-size: 0.66rem; letter-spacing: 0; }

/* ---------------------------------------------------------------- pillars: each game keeps them in an object of its world */
.pillar-art { width: 100px; height: auto; justify-self: center; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35)); }
.pillar-list li.has-img, .pillar-list li:not(.has-img) { grid-template-columns: 150px minmax(0, 1fr); align-items: start; column-gap: clamp(20px, 3vw, 40px); }
.pillar-list li.has-img { grid-template-rows: 1fr auto auto 1fr; }
.pillar-list li.has-img > img:first-child { grid-row: 1 / span 4; align-self: center; }
.pillar-list li.has-img > h3 { grid-row: 2; }
.pillar-list li.has-img > p { grid-row: 3; }
.pillar-list h3, .pillar-list p { grid-column: 2; }
.pillar-list p { max-width: 60ch; }
.pillar-shot { width: 128px; }
.pillar-face { width: 110px; height: 110px; }
.g-dungeon-landlord .pillar-list .pillar-art { width: 92px; }
/* the three-up object lists share a grid */
.pillar-list.pl-tickets, .pillar-list.pl-cards, .pillar-list.pl-tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.pillar-list.pl-tickets li, .pillar-list.pl-cards li, .pillar-list.pl-tags li { display: block; position: relative; border: 0; }
.pl-tickets h3, .pl-cards h3, .pl-tags h3 { margin-bottom: 8px; }
/* Crust Landing: delivery tickets, serrated on top, stamped */
.pillar-list.pl-tickets li { padding: 26px 22px; background: #FFF4E2; color: #3A2412; transform: rotate(-1deg); filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.4));
  -webkit-mask: radial-gradient(circle at 8px 0, transparent 6px, #000 6.5px) 0 0 / 16px 100% repeat-x; mask: radial-gradient(circle at 8px 0, transparent 6px, #000 6.5px) 0 0 / 16px 100% repeat-x; }
.pillar-list.pl-tickets li:nth-child(2) { transform: rotate(1deg) translateY(12px); }
.tk-head { display: flex; justify-content: space-between; gap: 10px; font: 400 0.68rem/1.4 var(--mono); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1.5px dashed rgba(58, 36, 18, 0.45); }
.tk-head span:last-child { text-align: right; }
.pl-tickets .pillar-shot { float: right; width: 74px; margin: 0 0 10px 14px; border-width: 3px; border-radius: 10px; border-color: #3A2412; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25); transform: rotate(3deg); }
.pl-tickets .pillar-face { float: right; width: 74px; height: 74px; margin: 0 0 10px 14px; box-shadow: 0 0 0 3px #F28C28; }
.pl-tickets h3 { font: 700 1.2rem/1.2 var(--display); letter-spacing: -0.02em; }
.pl-tickets p { font-size: 0.98rem; color: #4A3020; opacity: 1; }
.pl-tickets .stamp { display: inline-block; margin-top: 16px; padding: 4px 10px; border: 2.5px solid #C8381F; border-radius: 6px; color: #B32E18; font: 900 0.86rem/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; transform: rotate(-6deg); }
/* Chain Brawl: the tavern chalkboard */
.board { position: relative; padding: clamp(26px, 4vw, 44px) clamp(20px, 4vw, 48px) clamp(14px, 2vw, 24px); border-radius: 8px; color: #F4EFE6;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.06), transparent 60%), #2B2622; box-shadow: inset 0 0 0 12px #6B4426, inset 0 0 0 14px #4A2E18, inset 0 0 40px 14px rgba(0, 0, 0, 0.45), 0 22px 40px rgba(0, 0, 0, 0.4); }
.board-t { font: 400 0.78rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #F2D98A; margin: 6px 0 6px; }
.pillar-list.pl-chalk li { border-top: 2px dashed rgba(244, 239, 230, 0.28); }
.pillar-list.pl-chalk li:first-child { border-top: 0; }
.pl-chalk h3 { font-weight: 700; color: #FFFDF6; text-shadow: 0 0 1px rgba(255, 255, 255, 0.6), 0 0 6px rgba(255, 255, 255, 0.15); }
.pl-chalk li:nth-child(1) h3 { color: #9FE8DC; }
.pl-chalk li:nth-child(3) h3 { color: #FFC9B8; }
.pl-chalk p { color: #E9E3D8; opacity: 1; }
.pl-chalk .pillar-shot { border-color: #F4EFE6; border-width: 3px; transform: rotate(-4deg); }
.pl-chalk li:nth-child(even) .pillar-shot { transform: rotate(4deg); }
.pl-chalk .pillar-face { box-shadow: 0 0 0 3px #F4EFE6; }
/* Bubble Brigade: hero cards framed in their bubble color */
.pillar-list.pl-cards li { --card: var(--accent); padding: 18px 18px 22px; border-radius: 22px; background: #FFFDF8; color: #1D2B2A; box-shadow: inset 0 0 0 6px var(--card), 0 8px 0 color-mix(in srgb, var(--card) 60%, #000), 0 22px 36px rgba(0, 0, 0, 0.35); }
.pillar-list.pl-cards li:nth-child(odd) { transform: rotate(-1deg); }
.pillar-list.pl-cards li:nth-child(2) { transform: translateY(14px) rotate(1deg); }
.pl-cards .pillar-art { display: block; width: 100%; height: 160px; object-fit: contain; object-position: 50% 100%; margin: 0 0 14px; border-radius: 14px; padding: 12px 10px 0; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--card) 32%, #fff), color-mix(in srgb, var(--card) 60%, #fff)); filter: none; }
.card-bub { position: absolute; right: -14px; top: -16px; width: 58px; height: 58px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.3)); }
.pl-cards h3 { font: 700 1.2rem/1.2 var(--display); letter-spacing: -0.02em; }
.pl-cards p { font-size: 0.98rem; color: #36504D; opacity: 1; }
/* Barnyard Blasters: yellow cow ear tags */
.pillar-list.pl-tags li { padding: 58px 22px 26px; background: #F6C343; color: #3D2A00; border-radius: 46% 46% 24px 24px / 56px 56px 24px 24px; box-shadow: inset 0 -6px 0 rgba(120, 70, 0, 0.2), 0 18px 30px rgba(0, 0, 0, 0.35); transform: rotate(-2deg); text-align: center; }
.pillar-list.pl-tags li::before { content: ""; position: absolute; left: 50%; top: 16px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--deep); box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.35), 0 0 0 4px #E2AE2C; }
.pillar-list.pl-tags li:nth-child(2) { transform: rotate(1.5deg) translateY(10px); }
.pillar-list.pl-tags li:nth-child(3) { transform: rotate(-0.5deg); }
.tag-print { display: block; font: 900 1.3rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: #2F2100; margin-bottom: 14px; }
.pl-tags .pillar-art { display: block; width: 96px; margin: 0 auto 14px; }
.pl-tags .pillar-face { display: block; width: 88px; height: 88px; margin: 0 auto 14px; box-shadow: 0 0 0 4px #FFF8EC; }
.pl-tags h3 { font: 700 1.15rem/1.2 var(--display); letter-spacing: -0.02em; }
.pl-tags p { font-size: 0.96rem; color: #4A3500; opacity: 1; text-align: left; }

/* ---------------------------------------------------------------- press */
.press-shots .phone { width: 120px; }
.press-bts { margin: 16px 0 0; display: grid; gap: 14px; }
.press-bts img { width: 100%; border-radius: 12px; box-shadow: 0 16px 34px rgba(34, 26, 51, 0.25); }
.press-bts figcaption { color: var(--ink-2); }
.dl-inline { font-weight: 700; }

@media (max-width: 860px) {
  /* plates on phones: what you do first, the genre goes to the chips; the vote becomes a round heart */
  .plate .genre .genre-t { display: none; }
  .plate .genre .verb-t { display: inline; font-weight: 600; }
  .plate .chips .chip-verb { display: none; }
  .plate .chips .chip-genre { display: block; }
  .plate .actions { flex-wrap: nowrap; gap: 12px; }
  .plate .btn-vote { flex: none; width: 54px; height: 54px; min-height: 54px; padding: 0; border-radius: 50%; }
  .plate .btn-vote .vote-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .plate .btn-vote .vote-ico { display: block; width: 24px; height: 24px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.3C1.6 7.8 3.8 4.5 7.1 4.5c2 0 3.6 1.1 4.9 2.9 1.3-1.8 2.9-2.9 4.9-2.9 3.3 0 5.5 3.3 4.3 6.7-1.7 4.7-9.2 9.3-9.2 9.3z' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.3C1.6 7.8 3.8 4.5 7.1 4.5c2 0 3.6 1.1 4.9 2.9 1.3-1.8 2.9-2.9 4.9-2.9 3.3 0 5.5 3.3 4.3 6.7-1.7 4.7-9.2 9.3-9.2 9.3z' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
  .plate .btn-vote[aria-pressed="true"] .vote-ico { background: var(--accent);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.3C1.6 7.8 3.8 4.5 7.1 4.5c2 0 3.6 1.1 4.9 2.9 1.3-1.8 2.9-2.9 4.9-2.9 3.3 0 5.5 3.3 4.3 6.7-1.7 4.7-9.2 9.3-9.2 9.3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.3C1.6 7.8 3.8 4.5 7.1 4.5c2 0 3.6 1.1 4.9 2.9 1.3-1.8 2.9-2.9 4.9-2.9 3.3 0 5.5 3.3 4.3 6.7-1.7 4.7-9.2 9.3-9.2 9.3z'/%3E%3C/svg%3E"); }
  .plate .btn-2l { flex: 1; min-width: 0; font-size: 0.88rem; padding-left: 1em; padding-right: 1em; }
  .plate .chips { gap: 6px; }
  .plate .chips li { font-size: 0.66rem; padding: 7px 9px; letter-spacing: -0.01em; }
  /* props on phones sit where the second phone was */
  .plate-shots .prop { left: 40%; }
  .plate:nth-of-type(even) .plate-shots .prop { left: auto; right: 40%; }
  .plate-shots .prop-bubbles, .plate-shots .prop-beam { width: 52%; }
  .prop-ticket, .prop-rule { width: min(48vw, 190px); top: 8%; }
  .plate:nth-of-type(even) .prop-ticket, .plate:nth-of-type(even) .prop-rule { transform: rotate(-4deg); }
  .pb { width: 56px; }
  .pb-2 { width: 66px; }
  .pb-goo { width: 100px; }
  .pbm-ufo, .pbm-cow { width: 116px; margin-left: -58px; }
  /* ochre plate: one column again */
  .next-side { gap: 26px; margin-top: 6px; }
  .next-side .vote-row { padding-top: 22px; border-top: 2px dashed rgba(34, 26, 51, 0.35); }
  .trail-k + .trail-ball { display: none; }
  /* workbench */
  .bench-in { grid-template-areas: "copy" "rig" "btns" "shot"; }
  .bench-shot { grid-template-columns: 1fr; gap: 16px; margin-top: 34px; }
  /* game pages: the loop is in the hero on phones, so the strip starts with the first screenshot */
  .is-game .gallery .clip-item { display: none; }
  .strip { scroll-padding-left: var(--gutter); }
  /* half-body characters stand taller beside the loop */
  .game-hero-in:has(.hero-cameo.is-cropped) { grid-template-columns: 1.15fr 0.85fr; }
  .hero-cameo.is-cropped { width: 122%; margin-left: -10%; margin-bottom: calc(-1 * var(--arch) - 34px); }
  .hero-cameo.is-cropped .say { left: 14%; }
  /* Crust Landing: the porthole and planet behind the Emperor, the checkered floor only at the bottom */
  .g-crust-landing .game-hero::after { background: linear-gradient(180deg, var(--base) 48%, color-mix(in srgb, var(--base) 50%, transparent) 68%, color-mix(in srgb, var(--deep) 30%, transparent)), var(--bg, none) -84vw 330px / 170% auto no-repeat; }
  .g-bubble-brigade .game-hero::after { background: linear-gradient(180deg, var(--base) 42%, color-mix(in srgb, var(--base) 50%, transparent) 64%, color-mix(in srgb, var(--deep) 30%, transparent)), var(--bg, none) var(--bgpos-m, 50% 30%) / cover no-repeat; }
  .mini-tag { -webkit-line-clamp: 3; }
  /* pillars on phones */
  .pillar-list li.has-img, .pillar-list li:not(.has-img) { grid-template-columns: 84px minmax(0, 1fr); }
  .pillar-shot { width: 84px; }
  .pillar-face { width: 72px; height: 72px; }
  .pillar-art { width: 72px; }
  .pillar-list.pl-tickets, .pillar-list.pl-cards, .pillar-list.pl-tags { grid-template-columns: 1fr; gap: 26px; }
  .pillar-list.pl-tickets li:nth-child(2), .pillar-list.pl-cards li:nth-child(2), .pillar-list.pl-tags li:nth-child(2) { transform: rotate(1deg); }
  .pl-cards .pillar-art { height: 130px; width: 100%; }
  .pillar-list.pl-tags li { max-width: 340px; width: 100%; justify-self: center; }
  .board { margin: 0 calc(var(--gutter) * -0.4); }
  .press-shots .phone { width: 104px; }
  .press-shots { scroll-snap-type: x mandatory; }
  .press-shots li { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .plate, .js .plate .plate-in, .js .plate .cameo, .js .plate .say { opacity: 1; transform: none; }
  .trail-ball { opacity: 1; transform: none; }
  .js .plate .tk-bar i { width: 78%; }
  .ball-roll { transform: none; }
}

/* ---------------------------------------------------------------- round 5 */
/* plates: one-line button (no small print under it) */
.btn-go { white-space: nowrap; }
/* the address with a copy button, under the main email buttons */
.mail-alt { font-size: 0.9rem; }
.mail-alt .mail { margin-left: 4px; }
.mail-alt-hero { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; opacity: 0.92; }
.mail-alt-hero .mail a { color: var(--on); text-decoration-color: var(--accent); }
.inapp .mail-alt { display: none; }
/* names stay readable: no mono below 0.75rem on the cast and the mini cards */
.cast-name { font-size: 0.75rem; color: var(--ink); }
.mini .genre { font-size: 0.75rem; white-space: normal; overflow: visible; text-overflow: clip; }
/* the vote: faces with names, a stamped "your pick" */
.vote-faces { gap: 14px 10px; }
.vote-faces li { width: 76px; }
.vote-faces button { width: 100%; height: auto; display: grid; justify-items: center; gap: 8px; background: none; box-shadow: none; border-radius: 12px; color: var(--ink); padding: 2px 0; }
.vote-faces button:hover { transform: none; }
.vote-faces button:hover .vf-img { transform: translateY(-3px); }
.vf-img { position: relative; display: block; width: 56px; height: 56px; border-radius: 50%; background: var(--base); box-shadow: 0 0 0 3px var(--ink), 0 4px 0 3px rgba(34, 26, 51, 0.35); transition: transform 0.15s ease; }
.vote-faces img { width: 100%; height: 100%; border-radius: 50%; }
.vf-name { font: 500 0.75rem/1.2 var(--mono); text-align: center; text-wrap: balance; letter-spacing: -0.02em; }
.vf-stamp { position: absolute; left: 50%; top: 58%; padding: 3px 5px; border: 2px solid #B32E18; border-radius: 5px; background: rgba(255, 248, 236, 0.92); color: #B32E18; font: 900 0.58rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; transform: translateX(-50%) rotate(-12deg) scale(0.4); opacity: 0; transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.2s ease; }
.vote-faces button[aria-pressed="true"] { box-shadow: none; transform: none; }
.vote-faces button[aria-pressed="true"] .vf-img { box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px var(--paper), 0 4px 0 7px rgba(34, 26, 51, 0.35); }
.vote-faces button[aria-pressed="true"] .vf-stamp { opacity: 1; transform: translateX(-50%) rotate(-12deg); }
.vote-faces button[aria-pressed="true"] .vf-name { font-weight: 700; }
/* workbench: the title is the only display line; the lead is plain body text */
.bench-copy .bench-lead { font: 500 clamp(1.1rem, 1.6vw, 1.3rem)/1.45 var(--body); letter-spacing: 0; }
/* Dungeon Landlord page: Gorgo on his gold, without the editor */
.bench-toy { --arch: clamp(32px, 4.4vw, 60px); }
.bench-toy .bench-in { grid-template-areas: ". rig" "copy rig" "btns rig" ". rig"; grid-template-rows: 1fr auto auto 1fr; }
.bench-toy .rig { margin: 70px 0 60px; width: min(100%, 500px); }

/* game pages: facts as one line under the pitch */
.fact-line { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 860px; }
.fact-line li { font: 400 0.8rem/1.3 var(--mono); padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--on) 40%, transparent); }
.fact-line li:first-child { background: color-mix(in srgb, var(--accent) 24%, transparent); box-shadow: inset 0 0 0 1.5px var(--accent); }
/* the end of a game page: a small arched plate in the accent color; the character climbs over its rim and speaks */
.story-end { position: relative; max-width: 860px; margin: clamp(150px, 16vw, 190px) auto 0; display: grid; grid-template-columns: 1fr; justify-items: center; gap: 18px; text-align: center;
  padding: 64px clamp(20px, 5vw, 56px) 34px; border-radius: 50% 50% 28px 28px / 56px 56px 28px 28px; background: var(--scute-ink), var(--accent); color: var(--deep); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }
.story-end p { font-size: 1.1rem; line-height: 1.45; max-width: 46ch; text-wrap: pretty; }
.story-end strong { display: block; font: 700 clamp(1.3rem, 2.4vw, 1.75rem)/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 6px; text-wrap: balance; }
.end-cameo { position: absolute; left: 50%; top: 0; margin: 0; transform: translate(-50%, -76%); pointer-events: none; }
.end-cameo img { height: clamp(150px, 15vw, 190px); width: auto; max-width: none; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.35)); }
.end-cameo.is-cropped { transform: translate(-50%, -66%); }
.end-cameo.is-cropped img { filter: none; -webkit-mask-image: linear-gradient(#000 60%, transparent 90%); mask-image: linear-gradient(#000 60%, transparent 90%); }
.end-cameo .say { left: 88%; right: auto; top: 4%; border-radius: 16px 16px 16px 4px; }
.end-cameo .say.note { border-radius: 3px; }
.story-end .mail-alt-end { font-size: 0.88rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; }
.story-end .mail a { color: var(--deep); }
.story-end .end-face { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 4px var(--deep); }
.story-1 .story-end { margin-top: clamp(170px, 18vw, 210px); }
/* Last Lighthouse: how to play is a night and a day, not three steps */
.story-in.story-nd { grid-template-columns: 1fr; gap: clamp(48px, 6vw, 72px); }
.howto-nd h2 { margin-bottom: 26px; }
.nightday { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 36px); }
.nd { border-radius: 22px; padding: 14px 14px 26px; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35); }
.nd img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 38%; border-radius: 14px; margin-bottom: 20px; }
.nd h3 { font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1.1 var(--display); letter-spacing: -0.02em; margin: 0 10px 10px; }
.nd p { margin: 0 10px; font-size: 1.05rem; max-width: 52ch; text-wrap: pretty; }
.nd-night { background: radial-gradient(circle 260px at 80% 0%, rgba(244, 197, 90, 0.22), transparent 70%), #0B1424; color: #F3F1E6; box-shadow: inset 0 0 0 1.5px rgba(244, 197, 90, 0.35), 0 18px 36px rgba(0, 0, 0, 0.35); }
.nd-night h3 { color: #F4C55A; }
.nd-day { background: linear-gradient(180deg, #FCE9C8, #F6D8A8); color: #3A2A14; }
.nd-day h3 { color: #8A4B12; }
/* the chalkboard and the parchment are objects, not full-width bands */
.board, .g-dungeon-landlord .pillar-list { max-width: 980px; margin-left: auto; margin-right: auto; }
.pl-chalk p { max-width: 58ch; }
/* documents: the head plate in ink, the first band of the shell */
.doc-head { background: var(--scute-faint), var(--ink); color: var(--chalk); }
.doc-head h1 { color: var(--chalk); }
.doc-head .doc-lead { color: var(--chalk) !important; opacity: 0.95; }
.doc-head .doc-meta { color: var(--ochre); }
.doc-head .pills li { background: transparent; color: var(--chalk); box-shadow: inset 0 0 0 1.5px var(--chalk); }
.doc-head :focus-visible { outline-color: var(--ochre); }
.logo-row li { background: var(--paper); }
.logo-row .logo-dark { background: var(--ink); }
/* press: text and screenshots on the left, the art with its character on the right */
.pg-in { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); }
.pg-text .press-shots { margin: 22px 0 0; }
.pg-art { margin: 0; }
.pg-art-frame { position: relative; display: block; overflow: hidden; border-radius: 18px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); aspect-ratio: 9 / 16; max-height: 600px; }
.pg-art-frame > img:first-child { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; box-shadow: none; }
.pg-art:hover img { transform: none; }
.pg-char { position: absolute; left: 50%; bottom: 4%; width: 74%; transform: translateX(-50%); filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.45)); }
.pg-char.is-cropped { bottom: 0; width: 92%; }
/* o recorte do personagem não herda a moldura da arte (.pg-art img: proporção, corte, cantos e sombra) */
.pg-art-frame > .pg-char { width: 74%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; }
.pg-art-frame > .pg-char.is-cropped { width: 92%; }
.pg-art figcaption { margin-top: 10px; font: 400 0.78rem/1.5 var(--mono); }
.pg-art figcaption a { font-weight: 600; }
/* 404: a dashed trail behind the ball, so the ball ends somewhere on purpose */
.nf-ball { position: relative; isolation: isolate; }
.nf-trail { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(calc(50vw - 90px), 440px); border-top: 3px dashed var(--ink-2); opacity: 0.45; clip-path: inset(0 100% 0 0); animation: trail 2s 0.9s cubic-bezier(0.45, 0, 0.6, 1) forwards; }
.nf-ball.back .nf-trail { animation: trailback 1.1s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
@keyframes trail { to { clip-path: inset(0 0 0 0); } }
@keyframes trailback { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 100% 0 0); } }

@media (max-width: 860px) {
  /* Crust Landing: the porthole behind the Emperor; the art always fills the width and never ends inside the hero */
  .g-crust-landing .game-hero::after { background: linear-gradient(180deg, var(--base) 54%, color-mix(in srgb, var(--base) 45%, transparent) 70%, color-mix(in srgb, var(--deep) 40%, transparent) 100%), var(--bg, none) right 0 top 300px / 200% auto no-repeat; }
  /* plates: the genre is always the kicker, the verb is the highlighted chip; the vote keeps its words */
  .plate .genre .genre-t { display: inline; }
  .plate .genre .verb-t { display: none; }
  .plate .chips .chip-verb { display: block; }
  .plate .chips .chip-genre { display: none; }
  .plate .actions { flex-wrap: wrap; gap: 12px; }
  .plate .btn-go { flex: 1 1 100%; font-size: 0.92rem; padding-left: 1em; padding-right: 1em; }
  .plate .btn-vote { flex: 1 1 100%; width: auto; height: auto; min-height: 48px; padding: 0.85em 1.2em; border-radius: 999px; }
  .plate .btn-vote .vote-txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .plate .btn-vote .vote-ico { display: none; }
  /* the last plate does not leave an empty band before the workbench */
  .plate:last-of-type { padding-bottom: calc(var(--arch) + 24px); }
  /* home workbench on phones: Gorgo and the buttons only (the editor is in the press kit) */
  .is-home .bench-shot, .is-home .bench-small { display: none; }
  .bench { padding-top: calc(var(--arch) + 28px); }
  .bench-in { grid-template-rows: none; }
  .bench-btns { flex-wrap: nowrap; gap: 10px; }
  .bench-btns .btn { flex: 1; padding-left: 0.6em; padding-right: 0.6em; font-size: 0.92rem; }
  .bench-toy .bench-in { grid-template-areas: "copy" "rig" "btns"; grid-template-rows: none; }
  .bench-toy .rig { margin: 40px auto 44px; width: 92%; }
  /* vote faces: three across */
  .vote-faces { display: grid; grid-template-columns: repeat(3, 1fr); }
  .vote-faces li { width: auto; }
  .vf-img { width: 52px; height: 52px; }
  /* end plate */
  .story-end { margin-top: 150px; padding: 54px 18px 26px; border-radius: 50% 50% 24px 24px / 40px 40px 24px 24px; }
  .story-1 .story-end { margin-top: 160px; }
  .story-end p { font-size: 1rem; }
  .end-cameo img { height: 140px; }
  .end-cameo { left: 34%; }
  .end-cameo .say { left: 76%; font-size: 0.74rem; white-space: nowrap; }
  .story-end .btn { width: 100%; }
  .fact-line li { font-size: 0.75rem; padding: 7px 10px; }
  .nightday { grid-template-columns: 1fr; }
  .board { max-width: none; }
  /* press */
  .pg-in { grid-template-columns: 1fr; }
  .pg-art-frame { aspect-ratio: 4 / 5; max-height: none; }
  .pg-char { width: 62%; }
  .pg-char.is-cropped { width: 78%; }
  .pg-art-frame > .pg-char { width: 62%; }
  .pg-art-frame > .pg-char.is-cropped { width: 78%; }
  .doc-head .pills li { font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-trail { clip-path: none; }
  .vote-faces button[aria-pressed="true"] .vf-stamp { opacity: 1; }
}

/* ---------------------------------------------------------------- polish (round 6) */
.nowrap { white-space: nowrap; }
/* the vote: a heart; on phones a small square "Vote" beside the main button */
.vt-short { display: none; }
.btn-vote .vote-ico { width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.3C1.6 7.8 3.8 4.5 7.1 4.5c2 0 3.6 1.1 4.9 2.9 1.3-1.8 2.9-2.9 4.9-2.9 3.3 0 5.5 3.3 4.3 6.7-1.7 4.7-9.2 9.3-9.2 9.3z' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.3C1.6 7.8 3.8 4.5 7.1 4.5c2 0 3.6 1.1 4.9 2.9 1.3-1.8 2.9-2.9 4.9-2.9 3.3 0 5.5 3.3 4.3 6.7-1.7 4.7-9.2 9.3-9.2 9.3z' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn-vote[aria-pressed="true"] .vote-ico {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.3C1.6 7.8 3.8 4.5 7.1 4.5c2 0 3.6 1.1 4.9 2.9 1.3-1.8 2.9-2.9 4.9-2.9 3.3 0 5.5 3.3 4.3 6.7-1.7 4.7-9.2 9.3-9.2 9.3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.3C1.6 7.8 3.8 4.5 7.1 4.5c2 0 3.6 1.1 4.9 2.9 1.3-1.8 2.9-2.9 4.9-2.9 3.3 0 5.5 3.3 4.3 6.7-1.7 4.7-9.2 9.3-9.2 9.3z'/%3E%3C/svg%3E"); }
/* game page: one main button; the vote is a smaller secondary pill */
.btn-vote-sm { font-size: 0.86rem; min-height: 44px; padding: 0.7em 1.1em; }
.game-hero .btn-vote .vote-ico { display: block; }
.game-hero .vote-thanks { margin: 12px 0 0; font: 600 0.78rem/1.45 var(--mono); max-width: 46ch; }
.game-hero .vote-thanks:empty { display: none; }
/* "No email app? Copy our address": hidden until an email button is tapped */
.mail-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 16px 0 0; font-size: 0.88rem; }
.mail-alt[hidden] { display: none !important; }
.game-hero .mail-alt .mail a { color: var(--on); text-decoration-color: var(--accent); }
.story-end .mail-alt { justify-content: center; margin: 0; }
/* home hero: three clearly different highlighter colors */
.hero h1 a { background-image: linear-gradient(var(--hl, var(--accent)), var(--hl, var(--accent))); }
/* the vote on the ochre plate: small arched plates with the game's name and verb (the faces stay in the hero) */
.vote-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
.vote-chips button { position: relative; width: 100%; min-height: 72px; display: grid; align-content: center; gap: 5px; padding: 18px 14px 12px; border: 0; cursor: pointer; text-align: left; color: var(--on);
  background: var(--scute), linear-gradient(180deg, var(--base), var(--deep) 160%); border-radius: 50% 50% 12px 12px / 18px 18px 12px 12px; box-shadow: 0 4px 0 rgba(34, 26, 51, 0.35); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.vote-chips button:hover { transform: translateY(-3px); }
.vote-chips button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.vc-name { font: 700 0.92rem/1.15 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.vc-verb { font: 500 0.72rem/1.2 var(--mono); opacity: 0.88; }
.vote-chips button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink), 0 4px 0 6px rgba(34, 26, 51, 0.35); }
.vote-chips .vf-stamp { left: auto; right: 6px; top: auto; bottom: 8px; transform: rotate(-10deg) scale(0.4); }
.vote-chips button[aria-pressed="true"] .vf-stamp { opacity: 1; transform: rotate(-10deg); }
/* facts: no stretched capsules; the label shows on phones */
.fact-line li { border-radius: 12px; }
.fl-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Bubble Brigade: the card badges keep their shape */
.card-bub { object-fit: contain; }
/* Last Lighthouse: the whole top of the merge board, the beam and Iris at night */
.nd img { aspect-ratio: 4 / 3; }
.nd-night img { object-position: 50% 16%; }
.nd-day img { object-position: 50% 15%; }
/* press: the secondary links are real tap targets */
.press-links { gap: 10px; }
.press-links a.pl-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; color: var(--on); text-decoration: none; font: 600 0.8rem/1.2 var(--mono);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--on) 45%, transparent); }
.press-links a.pl-pill:hover { background: color-mix(in srgb, var(--on) 10%, transparent); }

@media (max-width: 860px) {
  /* plates and game heroes: the main button and a small "Vote" square side by side */
  .plate .actions, .game-hero .actions { flex-wrap: nowrap; gap: 10px; align-items: stretch; }
  .plate .btn-go, .game-hero .actions .btn:not(.btn-vote) { flex: 1 1 auto; min-width: 0; white-space: normal; text-align: center; line-height: 1.15; }
  .plate .btn-vote, .game-hero .btn-vote { flex: none; flex-direction: column; gap: 3px; width: 66px; height: auto; min-height: 52px; padding: 6px 4px; border-radius: 16px; font-size: 0.74rem; }
  .plate .btn-vote .vote-txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap; }
  .plate .btn-vote .vote-ico, .game-hero .btn-vote .vote-ico { display: block; width: 20px; height: 20px; }
  .plate .btn-vote .vt-long, .game-hero .btn-vote .vt-long { display: none; }
  .plate .btn-vote .vt-short, .game-hero .btn-vote .vt-short { display: inline; }
  .game-hero .soon { font-size: 0.72rem; margin-top: 14px; }
  /* the first plate: the mascot alone on the rim (the Emperor is on the ticket and in the faces above) */
  .plate:first-of-type .cameo { display: none; }
  /* ochre plate: two vote plates across */
  .vote-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  /* facts as a short list with labels */
  .fact-line { display: grid; gap: 0; margin-top: 22px; }
  .fact-line li, .fact-line li:first-child { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-radius: 0; background: none; box-shadow: none; font-size: 0.8rem; border-top: 1.5px dashed color-mix(in srgb, var(--on) 32%, transparent); }
  .fact-line li:last-child { border-bottom: 1.5px dashed color-mix(in srgb, var(--on) 32%, transparent); }
  .fl-k { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.7rem; opacity: 0.85; padding-top: 1px; }
  /* Dungeon Landlord house rules: picture on top, the rule in full width under it */
  .g-dungeon-landlord .pillar-list li.has-img { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 12px; }
  .g-dungeon-landlord .pillar-list li.has-img > :first-child { grid-row: auto; grid-column: 1; align-self: start; justify-self: start; }
  .g-dungeon-landlord .pillar-list li.has-img > h3, .g-dungeon-landlord .pillar-list li.has-img > p { grid-row: auto; grid-column: 1; }
  .g-dungeon-landlord .pillar-list .pillar-shot { width: 100%; height: 150px; object-fit: cover; object-position: 50% 42%; border-radius: 12px; transform: none; }
  .g-dungeon-landlord .pillar-list .pillar-art { width: 64px; height: auto; }
  .g-dungeon-landlord .pillar-list .pillar-face { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .vote-chips button[aria-pressed="true"] .vf-stamp { opacity: 1; }
}
