/* mossbackgame.com. Colours are the game's own (ink outline, captions' gold, the sea, moss and shell).
   Type is the game's bitmap face: sizes are multiples of 11px so every font pixel is whole. */
:root {
  --ink: #2b1d2e;
  --ink-2: #3d2a40;
  --sea-hi: #3c8088;
  --sea: #2a636e;
  --deep: #1d4650;
  --abyss: #142f38;
  --moss: #4f8d4b;
  --moss-d: #2f6242;
  --moss-dd: #234a33;
  --shell: #dcae74;
  --shell-d: #b9844c;
  --cream: #f7e7c6;
  --gold: #ffd66e;
  --gold-lo: #eca83c;
  --night: #221a2b;
  --s: 2;            /* sprite scale */
  --t: 22px;         /* body text: 2 css px a font pixel */
  --h: 44px;         /* headings: 4 */
  color-scheme: light;
}
@media (max-width: 640px) { :root { --t: 22px; --h: 33px; --s: 2; } }
@media (min-width: 1280px) { :root { --s: 3; } }

* { box-sizing: border-box; }
html { background: var(--abyss); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: var(--t)/1.5 Mossback, ui-rounded, system-ui, sans-serif;
  color: var(--cream);
  background: var(--abyss);
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-rendering: optimizeSpeed;
  overflow-x: hidden;
}
.l-ja body, .l-zh body, body:lang(ja), body:lang(zh) { line-height: 1.6; }
img { display: block; }
a { color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 2px; }
:focus-visible { outline: 4px solid var(--gold); outline-offset: 4px; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.spr {
  width: calc(var(--w) * var(--s) * 1px);
  height: calc(var(--h) * var(--s) * 1px);
  image-rendering: pixelated;
  user-select: none;
  -webkit-user-drag: none;
}

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--cream); color: var(--ink); padding: 8px 16px; }
.skip:focus { left: 16px; }

/* Headings: the trailer's caption look, gold with a one-pixel ink outline and a drop */
.gold {
  --o: calc(var(--h) / 11);
  margin: 0 0 calc(var(--o) * 6);
  font-size: var(--h);
  line-height: 1.25;
  font-weight: normal;
  color: var(--gold);
  text-align: center;
  letter-spacing: var(--o);
  word-spacing: calc(var(--o) * 2);
  text-shadow:
    var(--o) 0 var(--ink), calc(var(--o) * -1) 0 var(--ink), 0 var(--o) var(--ink), 0 calc(var(--o) * -1) var(--ink),
    var(--o) var(--o) var(--ink), calc(var(--o) * -1) var(--o) var(--ink), var(--o) calc(var(--o) * -1) var(--ink), calc(var(--o) * -1) calc(var(--o) * -1) var(--ink),
    0 calc(var(--o) * 2) var(--ink), var(--o) calc(var(--o) * 2) var(--ink), calc(var(--o) * -1) calc(var(--o) * 2) var(--ink);
  overflow-wrap: anywhere;
}

/* Buttons: the hotbar's tan slot, and a dark-panel twin */
.btn {
  display: inline-block;
  padding: 6px 22px 8px;
  color: var(--ink);
  text-decoration: none;
  border: 8px solid transparent;
  border-image: url(/sprites/ui_slot.png) 6 fill / 12px / 0 stretch;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 0 var(--ink));
  transition: transform .08s steps(2);
}
.btn.ghost { color: var(--cream); border-image-source: url(/sprites/ui_dark.png); }
.btn:hover { transform: translateY(-4px); }
.btn:active { transform: translateY(2px); filter: drop-shadow(0 2px 0 var(--ink)); }
.btn.big { font-size: var(--t); }
.btn.small { font-size: 11px; padding: 2px 10px 4px; border-width: 6px; border-image-width: 10px; }

/* Top bar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 16px;
  background: linear-gradient(var(--abyss), rgba(20, 47, 56, 0));
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.mark { display: flex; align-items: center; gap: 8px; color: var(--cream); text-decoration: none; font-size: 22px; }
.mark .tiny { --s: 2; }
.bar nav { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; font-size: 22px; padding: 0 10px 2px;
  border: 6px solid transparent; border-image: url(/sprites/ui_dark.png) 6 fill / 10px / 0 stretch; image-rendering: pixelated;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " \25be"; }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 4px); min-width: 160px; padding: 6px;
  border: 8px solid transparent; border-image: url(/sprites/ui_panel.png) 6 fill / 12px / 0 stretch; image-rendering: pixelated;
}
.langs a, .langlist a { display: block; padding: 2px 8px; font-size: 22px; color: var(--ink); text-decoration: none; }
.langs a:hover, .langs a[aria-current] { background: var(--shell); }
@media (max-width: 520px) { .mark span, .bar .btn.small { display: none; } }

/* ------------------------------------------------------------ hero: the sea, and him */
.hero {
  position: relative; overflow: hidden;
  min-height: max(100svh, 640px);
  display: flex; flex-direction: column; align-items: center;
  padding: 96px 16px 0;
  background: linear-gradient(var(--sea-hi) 0 18%, #347480 18% 34%, var(--sea) 34% 60%, #255967 60% 78%, var(--deep) 78%);
}
.sea { position: absolute; inset: 0; image-rendering: pixelated; pointer-events: none; }
.sea.far { background: url(/sprites/sea_far.png) 0 0 / calc(96px * var(--s)) repeat; animation: drift 24s steps(48) infinite; opacity: .9; }
.sea.near { background: url(/sprites/sea_near.png) 0 0 / calc(128px * var(--s)) repeat; animation: drift2 14s steps(32) infinite; opacity: .55; }
@keyframes drift { to { background-position: calc(96px * var(--s)) 0; } }
@keyframes drift2 { to { background-position: calc(-128px * var(--s)) calc(8px * var(--s)); } }
.hero-text { position: relative; z-index: 3; text-align: center; max-width: 900px; }
.hero h1 { margin: 0; display: flex; flex-direction: column; align-items: center; font-size: inherit; font-weight: normal; }
.logo { --s: 3; width: min(calc(238px * 3), 92vw); height: auto; filter: drop-shadow(0 6px 0 var(--ink)); animation: rise .9s steps(9) both; }
@media (max-width: 640px) { .logo { width: min(calc(238px * 1.5), 92vw); } }
.tagline { display: block; margin-top: 20px; font-size: var(--t); color: var(--cream); text-shadow: 0 2px 0 var(--ink); animation: rise .9s .15s steps(9) both; }
.short { margin: 14px auto 0; max-width: 30em; font-size: var(--t); line-height: 1.5; color: #d5efe6; text-shadow: 0 2px 0 var(--deep); animation: rise .9s .25s steps(9) both; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 20px; margin-top: 28px; animation: rise .9s .35s steps(9) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.turtle { position: relative; z-index: 2; margin-top: auto; padding-top: 32px; margin-bottom: calc(-10px * var(--s)); }
.head { position: relative; --s: 2; animation: surface 2.2s .3s steps(22) both, bob 5s 2.5s steps(10) infinite alternate; }
@media (max-width: 640px) { .head { --s: 1.5; } }
.head .eyes { position: absolute; left: calc(1px * var(--s)); top: calc(1px * var(--s)); }
.head .puff { --s: 2; position: absolute; left: 60%; top: calc(4px * var(--s)); }
@keyframes surface { from { transform: translateY(70%); } }
@keyframes bob { to { transform: translateY(calc(-3px * var(--s))) scaleY(1.01); } }
/* the waterline over his chin */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(40px * var(--s)); z-index: 2;
  background:
    url(/sprites/sea_near.png) 0 0 / calc(128px * var(--s)) repeat,
    linear-gradient(rgba(29, 70, 80, 0) 0, rgba(29, 70, 80, .18) calc(4px * var(--s)), rgba(29, 70, 80, .4) calc(9px * var(--s)), rgba(29, 70, 80, .7) calc(15px * var(--s)), var(--deep) calc(26px * var(--s)));
  image-rendering: pixelated;
  animation: drift2 14s steps(32) infinite;
}
.life { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.life .spr { position: absolute; }
.whale { --s: 2; left: 8%; bottom: 22%; animation: whale 18s steps(36) infinite; opacity: .85; }
@keyframes whale { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(80px); } }
.dolphin { --s: 2; }
.d1 { right: 12%; bottom: 30%; animation: leap 5s steps(25) infinite; }
.d2 { right: 18%; bottom: 26%; animation: leap 5s 1.6s steps(25) infinite; }
@keyframes leap {
  0%, 60%, 100% { transform: translate(0, 40px) rotate(0); opacity: 0; }
  64% { transform: translate(-10px, 0) rotate(-20deg); opacity: 1; }
  76% { transform: translate(-60px, -46px) rotate(0); }
  88% { transform: translate(-110px, 0) rotate(20deg); opacity: 1; }
  92% { opacity: 0; }
}
.gull { --s: 2; top: 18%; left: -40px; animation: fly 26s linear infinite; }
.g2 { top: 26%; animation-duration: 34s; animation-delay: -12s; }
@keyframes fly { to { transform: translateX(calc(100vw + 80px)) translateY(-30px); } }
@media (max-width: 640px) { .whale, .d2 { display: none; } }

/* ------------------------------------------------------------ the island's verbs: the hotbar */
.live {
  position: relative; overflow: hidden;
  padding: 72px 16px 120px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .05) 0 2px, transparent 3px) 0 0 / 24px 24px,
    linear-gradient(var(--moss) 0 6px, var(--moss-d) 6px);
}
.stagebox { position: relative; max-width: 980px; margin: 0 auto; }
.scene { margin: 0; }
.scene[hidden] { display: none; }
.frame {
  border: 12px solid transparent; border-image: url(/sprites/ui_panel.png) 6 fill / 18px / 0 stretch; image-rendering: pixelated;
  filter: drop-shadow(0 8px 0 var(--moss-dd));
  background: var(--ink);
}
.shot { width: 100%; height: auto; aspect-ratio: 16 / 9; image-rendering: auto; }
.scene.pop .frame { animation: pop .28s steps(4); }
@keyframes pop { 0% { transform: scale(.97); } 60% { transform: scale(1.01); } }
.scene figcaption {
  margin: 20px auto 0; max-width: 820px; min-height: 3em; text-align: center; color: var(--cream);
  text-shadow: 0 2px 0 var(--moss-dd);
}
.verb { color: var(--gold); font-weight: normal; text-shadow: 2px 0 var(--ink), -2px 0 var(--ink), 0 2px var(--ink), 0 -2px var(--ink), 0 4px var(--ink); }
.hotbar {
  display: flex; justify-content: center; gap: 4px; flex-wrap: wrap;
  width: fit-content; max-width: 100%; margin: 28px auto 0; padding: 8px;
  border: 8px solid transparent; border-image: url(/sprites/ui_dark.png) 6 fill / 12px / 0 stretch; image-rendering: pixelated;
}
.slot {
  --s: 3; position: relative; display: grid; place-items: center;
  width: calc(22px * 3); height: calc(22px * 3); padding: 0; cursor: pointer;
  background: url(/sprites/ui_slot.png) 0 0 / 100% 100%; image-rendering: pixelated; border: 0;
  transition: transform .1s steps(2);
  font: inherit; color: var(--ink);
}
.slot .icon { --s: 3; max-width: 54px; max-height: 54px; width: auto; height: auto; transform: scale(1); }
.slot .icon { width: calc(var(--w) * 3px); height: calc(var(--h) * 3px); max-width: 60px; object-fit: contain; }
.slot .key { position: absolute; left: 5px; top: 1px; font-size: 11px; line-height: 1; color: var(--ink-2); }
.slot .vb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.slot[aria-selected="true"] { transform: translateY(-6px); }
.slot[aria-selected="true"]::after { content: ""; position: absolute; inset: -6px; background: url(/sprites/ui_slot_sel.png) 0 0 / 100% 100%; image-rendering: pixelated; }
.slot:hover .icon { animation: wiggle .4s steps(4); }
@keyframes wiggle { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@media (max-width: 640px) { .slot { width: 54px; height: 54px; } .slot .icon { max-width: 44px; max-height: 44px; } }
.hint { text-align: center; margin-top: 14px; font-size: 11px; color: #bfe0b8; }
@media (hover: none) { .hint { display: none; } }
.yard { position: absolute; left: 0; right: 0; bottom: 16px; height: 80px; pointer-events: none; }
.walker { --s: 2; position: absolute; bottom: 0; left: 0; }
.w1 { animation: stroll 30s linear infinite; }
.w2 { animation: stroll 44s -20s linear infinite; bottom: 4px; }
@keyframes stroll { from { transform: translateX(-80px); } to { transform: translateX(calc(100vw + 40px)); } }
.fly { --s: 2; position: absolute; }
.f1 { left: 12%; bottom: 40px; animation: flutter 7s steps(28) infinite alternate; }
.f2 { right: 14%; bottom: 52px; animation: flutter 9s steps(36) infinite alternate-reverse; }
@keyframes flutter { 33% { transform: translate(30px, -22px); } 66% { transform: translate(-12px, -36px); } 100% { transform: translate(40px, -8px); } }

/* ------------------------------------------------------------ visitors: the talk box */
.visitors {
  padding: 72px 16px 80px;
  background:
    linear-gradient(var(--moss-d) 0 8px, var(--shell-d) 8px 12px, transparent 12px),
    conic-gradient(from 30deg at 50% 50%, var(--shell) 0 60deg, #d2a36a 60deg 120deg, var(--shell) 120deg 180deg, #d2a36a 180deg 240deg, var(--shell) 240deg 300deg, #d2a36a 300deg) 0 0 / 96px 84px;
  color: var(--ink);
}
.talk {
  display: flex; align-items: flex-end; gap: 0; max-width: 980px; margin: 0 auto;
}
.portrait { --s: 3; flex: none; position: relative; z-index: 1; margin-right: -12px; filter: drop-shadow(0 6px 0 rgba(43, 29, 46, .35)); }
@media (max-width: 760px) { .portrait { --s: 2; } }
.words {
  position: relative; flex: 1; min-height: 210px; padding: 18px 22px 54px;
  border: 12px solid transparent; border-image: url(/sprites/ui_panel.png) 6 fill / 18px / 0 stretch; image-rendering: pixelated;
  filter: drop-shadow(0 6px 0 rgba(43, 29, 46, .35));
}
.nametag { color: #7a4a2a; font-size: 22px; margin-bottom: 10px; }
.nametag b { font-weight: normal; color: var(--ink); }
.line { min-height: 3em; }
.line .cur { display: inline-block; width: .5em; animation: blink .6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.next {
  position: absolute; right: 16px; bottom: 10px; font: inherit; font-size: 22px; color: var(--ink);
  background: none; border: 0; cursor: pointer; padding: 4px 8px;
}
.next span { display: inline-block; animation: nudge .8s steps(2) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
@media (max-width: 640px) {
  .talk { flex-direction: column; align-items: center; }
  .portrait { margin: 0 0 -10px; }
  .words { width: 100%; }
}
.faces { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px auto 0; max-width: 980px; }
.who {
  --s: 1; padding: 4px 4px 0; cursor: pointer; overflow: hidden; height: 72px;
  border: 6px solid transparent; border-image: url(/sprites/ui_slot.png) 6 fill / 10px / 0 stretch; image-rendering: pixelated;
  background: none; transition: transform .1s steps(2);
}
.who .face { --s: 1; }
.who:hover { transform: translateY(-4px); }
.who[aria-pressed="true"] { border-image-source: url(/sprites/ui_panel.png); transform: translateY(-6px); }

/* ------------------------------------------------------------ trips: a much grumpier turtle */
.more {
  position: relative; overflow: hidden;
  padding: 80px 16px 88px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 214, 110, .06) 0 1px, transparent 2px) 0 0 / 40px 40px,
    linear-gradient(var(--shell-d) 0 4px, var(--night) 4px);
}
.night .spr { position: absolute; opacity: .7; pointer-events: none; }
.wisp { --s: 2; left: 6%; top: 12%; animation: flutter 8s steps(32) infinite alternate; }
.jelly { --s: 2; right: 7%; top: 30%; animation: bob 3s steps(6) infinite alternate; }
.trips {
  display: grid; gap: 20px; max-width: 1240px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 228px), 1fr));
}
.trip {
  position: relative; overflow: hidden; padding: 0 16px 20px; text-align: center;
  border: 12px solid transparent; border-image: url(/sprites/ui_dark.png) 6 fill / 18px / 0 stretch; image-rendering: pixelated;
}
.tripbg { position: absolute; inset: 0; width: 100%; height: 170px; object-fit: cover; opacity: .32; filter: saturate(.8); mask-image: linear-gradient(#000 40%, transparent); -webkit-mask-image: linear-gradient(#000 40%, transparent); }
.stage { position: relative; height: 170px; display: grid; place-items: end center; padding-bottom: 8px; }
.stage .actor { --s: 2; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .45)); }
/* Race: the boat holds its place on water running past, bobbing, with a wake behind it */
.stage-runboat {
  place-items: center; padding: 0; overflow: hidden;
  background: url(/sprites/sea_near.png) 0 0 / 256px repeat;
  image-rendering: pixelated;
  animation: water 1.6s steps(16) infinite;
}
@keyframes water { to { background-position: -256px 0; } }
.stage-runboat .actor { position: relative; z-index: 1; filter: drop-shadow(0 4px 0 rgba(20, 47, 56, .6)); animation: ride .9s steps(3) infinite alternate; }
@keyframes ride { 0% { transform: translateY(0) rotate(0); } 60% { transform: translateY(-4px) rotate(-2deg); } 100% { transform: translateY(-2px) rotate(1deg); } }
.stage-runboat::before, .stage-runboat::after {
  content: ""; position: absolute; top: calc(50% + 2px); height: 4px; right: calc(50% + 30px); width: 40%;
  background: repeating-linear-gradient(90deg, var(--cream) 0 12px, transparent 12px 20px);
  animation: wake .4s steps(4) infinite linear;
}
.stage-runboat::after { top: calc(50% + 12px); width: 32%; opacity: .6; animation-duration: .5s; }
@keyframes wake { to { background-position: -20px 0; } }
.trip:hover .actor { animation: hop .4s steps(4); }
@keyframes hop { 50% { transform: translateY(-10px); } }
.trip h3 { position: relative; margin: 12px 0 6px; font-size: var(--t); font-weight: normal; }
.trip p { position: relative; color: #e8dcc8; }

/* ------------------------------------------------------------ screenshots */
.stills { padding: 72px 0 24px; background: var(--abyss); }
.film {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 20px;
  scrollbar-color: var(--gold-lo) var(--deep);
}
.film li { flex: none; scroll-snap-align: center; }
.still { display: block; border: 8px solid transparent; border-image: url(/sprites/ui_panel.png) 6 fill / 12px / 0 stretch; image-rendering: pixelated; transition: transform .1s steps(2); }
.still img { width: min(480px, 78vw); height: auto; }
.still:hover { transform: translateY(-6px); }
dialog { padding: 0; border: 0; background: none; max-width: 96vw; }
dialog::backdrop { background: rgba(20, 15, 25, .88); }
dialog img { max-width: 96vw; max-height: 88vh; width: auto; border: 12px solid transparent; border-image: url(/sprites/ui_panel.png) 6 fill / 18px / 0 stretch; image-rendering: pixelated; }
dialog .x { position: absolute; right: 8px; top: 4px; z-index: 1; font: 44px Mossback, sans-serif; color: var(--ink); background: none; border: 0; cursor: pointer; }

/* ------------------------------------------------------------ videos (filled by site.js from /api/videos) */
.tube { padding: 24px 16px 56px; background: var(--abyss); text-align: center; }
.tube[data-empty] .vids { display: none; }
.vids {
  display: grid; gap: 20px; max-width: 1240px; margin: 0 auto 28px; text-align: left;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.vid { display: flex; flex-direction: column; gap: 8px; height: 100%; color: var(--cream); text-decoration: none; transition: transform .1s steps(2); }
.vid:hover { transform: translateY(-6px); }
.vid:hover .vt { color: var(--gold); }
.thumb {
  position: relative; display: block;
  border: 8px solid transparent; border-image: url(/sprites/ui_panel.png) 6 fill / 12px / 0 stretch; image-rendering: pixelated;
}
.thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: auto; background: var(--deep); }
.thumb::after {
  content: "\25b8"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 44px; line-height: 1; color: var(--cream); text-shadow: 4px 0 var(--ink), -4px 0 var(--ink), 0 4px var(--ink), 0 -4px var(--ink);
  opacity: 0; transition: opacity .1s steps(2);
}
.vid:hover .thumb::after, .vid:focus-visible .thumb::after { opacity: 1; }
.len { position: absolute; right: 6px; bottom: 6px; padding: 0 6px 2px; font-size: 11px; line-height: 1.5; background: var(--ink); color: var(--cream); }
.vt { font-size: var(--t); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.by { font-size: 11px; color: #9cc3c0; }
@media (max-width: 640px) {
  .vids { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 -16px 24px; padding: 8px 16px 16px; }
  .vids li { flex: none; width: 78vw; scroll-snap-align: center; }
}

/* ------------------------------------------------------------ co-op, no rush */
.pair {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 24px;
  padding: 40px 16px 96px; background: linear-gradient(var(--abyss), var(--deep));
}
.card {
  flex: 0 1 540px; text-align: center; padding: 20px 24px 28px; color: var(--ink);
  border: 12px solid transparent; border-image: url(/sprites/ui_panel.png) 6 fill / 18px / 0 stretch; image-rendering: pixelated;
}
.card .kp { --s: 3; display: inline-block; margin: 0 4px 12px; }
/* the jar's glow is drawn over it, as the game does, and breathes */
.card .jar { position: relative; display: inline-block; vertical-align: bottom; margin: 0 4px 12px; --s: 3; }
.card .jar .kp { margin: 0; display: block; }
.card .jar .glow { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); animation: glow 2.4s steps(6) infinite alternate; }
@keyframes glow { from { opacity: .15; } to { opacity: 1; } }
.card .gold { font-size: var(--t); --o: 2px; margin-bottom: 14px; }

/* ------------------------------------------------------------ footer */
.foot { position: relative; text-align: center; padding: 40px 16px 48px; background: var(--deep); border-top: 4px solid var(--sea-hi); }
.perch { display: flex; justify-content: center; margin-top: -88px; }
.pim { --s: 3; }
.langlist { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 28px 0 12px; }
.langlist a { color: var(--cream); }
.langlist a[aria-current] { color: var(--gold); }

/* Steam's own buy box, and the site's other pages */
.buy { display: block; width: 100%; max-width: 646px; height: 190px; margin: 28px auto 8px; border: 0; }
.sitenav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 28px; }
.sitenav a { color: var(--cream); }
.sitenav a[aria-current] { color: var(--gold); }

/* ------------------------------------------------------------ FAQ, Steam Deck, press kit */
.hero.sub { min-height: 0; padding: 96px 16px 56px; }
.sublogo { display: inline-block; margin-bottom: 20px; }
.sublogo .logo { width: min(calc(238px * 1.5), 70vw); }
.hero.sub h1 { display: block; margin: 0 0 16px; font-size: var(--h); }
.doc { padding: 48px 16px 112px; background: linear-gradient(var(--deep), var(--abyss)); }
.doc > * { max-width: 960px; margin-left: auto; margin-right: auto; }
.doc > .gold { margin-top: 56px; }
.doc .card { display: block; text-align: left; margin-bottom: 24px; }
.doc .card .gold { text-align: left; }
.doc .card p + p { margin-top: 12px; }
.card a { color: var(--moss-dd); }
.grid2 { display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.pic { margin: 0 auto 32px; border: 8px solid transparent; border-image: url(/sprites/ui_panel.png) 6 fill / 12px / 0 stretch; image-rendering: pixelated; }
.pic img { width: 100%; height: auto; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; }
.facts dt { color: var(--sea); }
.facts dd { margin: 0; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: 10px; } }
.feats { margin-top: 16px; }
.feats li { margin-top: 8px; padding-left: 22px; text-indent: -22px; }
.feats li::before { content: "\25b8  "; color: var(--moss); }
.feats b { font-weight: normal; color: var(--moss-dd); }
.note { text-align: center; margin: -12px auto 20px; color: #9cc3c0; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.tile { display: block; border: 8px solid transparent; border-image: url(/sprites/ui_panel.png) 6 fill / 12px / 0 stretch; image-rendering: pixelated; transition: transform .1s steps(2); }
.tile:hover { transform: translateY(-6px); }
.tile img { width: 100%; height: auto; image-rendering: auto; }
.grid li > span { display: block; margin-top: 6px; font-size: 11px; text-align: center; color: #9cc3c0; }
.doc .ctas { margin: 32px auto; }
.grid + .card { margin-top: 48px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gull, .dolphin { display: none; }
}
