/*
 * ColoRogue site. Plain CSS, no build step.
 *
 * Surfaces are the game's raised slabs: a pale face, a short shadow under the
 * edge and a white lip along the top. Nothing glows: no blurred halos around
 * buttons, panels or pictures, no coloured washes, no filters. The type is the
 * game's own Ubuntu Sans, shipped in fonts/ (licence: fonts/LICENCE-UbuntuSans.md).
 */

@font-face {
  font-family: "Ubuntu Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/UbuntuSans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Ubuntu Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/UbuntuSans-500.woff2") format("woff2");
}

@font-face {
  font-family: "Ubuntu Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/UbuntuSans-600.woff2") format("woff2");
}

@font-face {
  font-family: "Ubuntu Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/UbuntuSans-700.woff2") format("woff2");
}

@font-face {
  font-family: "Ubuntu Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/UbuntuSans-800.woff2") format("woff2");
}

@font-face {
  font-family: "Ubuntu Sans Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/UbuntuSansMono-600.woff2") format("woff2");
}

:root {
  /* Page and sea */
  --bg: #eaeef6;

  /* Raised surfaces */
  --surface: #f7f9fd;
  --surface-hi: #fdfeff;
  --surface-lo: #e4e9f3;

  /* Ink. --ink-faint is dark enough to read as a small label on the surface. */
  --ink: #1b2434;
  --ink-soft: #4f5870;
  --ink-faint: #69728a;
  --line: rgba(27, 36, 52, 0.1);

  /* The one shadow colour, always at a low alpha. Shadows stay short: they lift an edge, they never haze. */
  --shade: rgba(92, 108, 140, 0.5);

  /* Accents, deep tones for text on light surfaces */
  --indigo: #6b58e4;
  --indigo-deep: #2714a3;
  --azure-deep: #052c7c;
  --cherry-deep: #740611;
  --cherry-soft: #f49397;
  --azure-soft: #a8c0f0;
  --emerald-deep: #0b3a09;
  --emerald-soft: #a5dca3;

  /* Spacing, on an 8px step */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;

  --wrap: 1120px;
  --gutter: 20px;
  --r-panel: 28px;
  /* The hero buttons. Their icon chips use this radius less the 8px gap, so the corners are concentric. */
  --r-btn: 22px;
  --r-pill: 999px;

  /* Slabs: a face with a white lip, and a short shadow under the lower edge */
  --face: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0) 22px), var(--surface);
  --slab: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 6px 10px -8px var(--shade);
  --slab-lift: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 14px -10px var(--shade);
  --slab-press: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 4px -3px var(--shade);
  --slab-big: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 18px -14px var(--shade);

  --font: "Ubuntu Sans", system-ui, "Segoe UI", sans-serif;
  --mono: "Ubuntu Sans Mono", ui-monospace, monospace;
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--indigo-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--azure-deep);
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 10px;
}

strong {
  font-weight: 700;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

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

.skip {
  position: absolute;
  left: var(--s2);
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--face);
  color: var(--ink);
  box-shadow: var(--slab-lift);
}

.skip:focus {
  top: var(--s2);
}

/* The sea: the title screen's background, drawn by the game's own code (js/game-render.js). */
.sea {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

main,
.foot {
  position: relative;
  z-index: 1;
}

/* Nothing may run sideways. clip, unlike hidden, does not make main a scroll box. */
main {
  overflow-x: clip;
}

/* ------------------------------------------------------------------ */
/* Raised slabs and buttons                                            */
/* ------------------------------------------------------------------ */

.panel {
  background: var(--face);
  border-radius: var(--r-panel);
  box-shadow: var(--slab);
}

.pill,
.btn,
.copy,
.bp-close,
.lightbox-close {
  font-family: inherit;
  cursor: pointer;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--face);
  box-shadow: var(--slab);
  color: var(--indigo-deep);
  font-weight: 700;
  text-decoration: none;
}

.pill:hover {
  color: var(--azure-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 8px 28px 8px 8px;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--face);
  box-shadow: var(--slab);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--slab-lift);
}

.btn:active {
  transform: none;
  box-shadow: var(--slab-press);
}

.btn-primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 22px), var(--surface-hi);
}

/* The icon chip is a rounded square 8px in from the button's edge, so its corners are concentric with the button's. */
.btn-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: calc(var(--r-btn) - 8px);
  background: linear-gradient(135deg, var(--c-soft), var(--c-base));
  color: var(--c-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-mark svg {
  width: 30px;
  height: 30px;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* ------------------------------------------------------------------ */
/* Top bar                                                             */
/* ------------------------------------------------------------------ */

/* Translucent, and not blurred: a blur on a sticky bar is recomputed for every frame of the sea behind it. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(234, 238, 246, 0.88);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 64px;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--indigo-deep);
  text-decoration: none;
}

.topbar .brand {
  background: linear-gradient(90deg, #2714a3, #052c7c 50%, #044d58);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-left: auto;
}

.links a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.links a:hover {
  color: var(--ink);
}

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

.hero {
  padding: var(--s5) 0;
}

.hero-copy {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

/* The wordmark box. Its aspect is the game's wordmark window (src-bundle/entry.ts), so the canvas fits without
   moving the page. The text inside is the fallback, in the same face, until the game's wordmark is drawn. */
.wordmark {
  --wm: min(88vw, 860px);
  position: relative;
  display: block;
  width: var(--wm);
  aspect-ratio: 1640 / 380;
  margin: 0 auto;
  font-size: calc(var(--wm) * 0.19);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.wm-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: transparent;
  background: linear-gradient(
    100deg,
    #e55c67 0%,
    #fa8a57 12%,
    #fbe262 28%,
    #b6d865 40%,
    #64c497 52%,
    #58ccde 62%,
    #648de4 72%,
    #c378f0 84%,
    #f789b1 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.wordmark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Once the game's wordmark is on the canvas, the fallback text is only for screen readers. */
.wordmark.is-live .wm-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  background: none;
  color: transparent;
}

.lede {
  max-width: 34em;
  margin: var(--s3) auto 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2);
  margin-top: var(--s4);
}

/* ------------------------------------------------------------------ */
/* Pictures                                                            */
/* ------------------------------------------------------------------ */

.shot {
  margin: 0;
  padding: 10px;
  border-radius: 30px;
  background: var(--face);
  box-shadow: var(--slab);
}

.shot-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: none;
  overflow: hidden;
  cursor: zoom-in;
}

.shot-open img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.shot figcaption {
  padding: 12px 8px 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-shot {
  width: 100%;
  max-width: 1040px;
  margin: var(--s5) auto 0;
  padding: 12px;
  border-radius: 32px;
  box-shadow: var(--slab-big);
}

.hero-shot figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-faint);
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.section {
  padding-top: clamp(56px, 8vw, 88px);
  scroll-margin-top: 88px;
}

#content > .section:first-child {
  padding-top: var(--s5);
}

.heading {
  margin: 0 0 var(--s3);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  background: linear-gradient(90deg, #2714a3 0%, #052c7c 46%, #044d58 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heading.small {
  margin-bottom: var(--s2);
  font-size: clamp(26px, 3vw, 30px);
}

.sub {
  max-width: 44em;
  margin: 0 0 var(--s4);
  color: var(--ink-soft);
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.prose p {
  margin: 0 0 var(--s2);
  font-size: 18px;
  line-height: 1.62;
}

.prose p:last-child {
  margin-bottom: 0;
}

.stats {
  --tile: 88px;
  list-style: none;
  margin: 0;
  padding: var(--s4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4) var(--s2);
  border-radius: var(--r-panel);
  background: var(--face);
  box-shadow: var(--slab);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* The About stats are the game's own tiles, drawn by the bundle with drawSquare (src-bundle/entry.ts). The canvas
   is 1.6 tiles square: drawSquare keeps 0.3 of a tile of body shadow around the face, so the negative margin
   pulls the box back to exactly one tile for the layout. */
.stat-tile {
  display: block;
  width: calc(var(--tile) * 1.6);
  height: calc(var(--tile) * 1.6);
  margin: calc(var(--tile) * -0.3);
  pointer-events: none;
}

.stat-label {
  max-width: 14em;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
  margin-top: var(--s5);
}

/* Leaderboard */

.table-panel {
  padding: var(--s1);
  overflow: hidden;
}

.board-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}

.board-table th {
  padding: var(--s2) 16px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}

.board-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.board-table tbody tr:first-child td {
  border-top: 0;
}

.board-table tbody tr[data-run] {
  cursor: pointer;
}

.board-table tbody tr:hover td {
  background: var(--surface-lo);
}

.board-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.board-table .rank {
  width: 56px;
  font-size: 20px;
  font-weight: 800;
}

.board-table .score {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.board-table .seed {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.board-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: -6px -10px;
  padding: 6px 10px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.board-btn[aria-expanded="true"] {
  background: var(--surface-lo);
}

.dot {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0, var(--c-base) 38%, var(--c-deep) 100%);
}

.mode {
  display: inline-block;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.mode.hard {
  background: var(--cherry-soft);
  color: var(--cherry-deep);
}

.mode.norm {
  background: var(--azure-soft);
  color: var(--azure-deep);
}

.note {
  margin: var(--s2) 0 0;
  padding: 0 var(--s1);
  font-size: 14px;
  color: var(--ink-soft);
}

/* The board preview: the final board, drawn by the game over the sea. Fixed, so it never moves the page. */
.board-preview {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: min(400px, calc(100vw - 2 * var(--gutter)));
  /* An opaque slab, so the table behind never shows through the board's margin. */
  padding: 10px;
  border-radius: var(--r-panel);
  background: var(--face);
  box-shadow: var(--slab-big);
}

.board-preview[hidden] {
  display: none;
}

.bp-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
}

.bp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1);
  margin-top: var(--s1);
}

.bp-cap {
  margin: 0;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--face);
  box-shadow: var(--slab);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.bp-close {
  display: none;
  min-height: 34px;
  padding: 4px 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--face);
  box-shadow: var(--slab);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.board-preview.is-pinned .bp-close {
  display: inline-block;
}

/* A tile's hover card, drawn by the bundle beside the tile. Never takes a pointer: the board underneath does. */
.board-tip {
  position: fixed;
  z-index: 42;
  top: 0;
  left: 0;
  display: block;
  pointer-events: none;
}

.board-tip[hidden] {
  display: none;
}

/* Investors and creators */

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
  align-items: stretch;
}

.card {
  padding: var(--s4);
  scroll-margin-top: 88px;
}

.card p {
  margin: 0 0 var(--s2);
}

.card p:last-child {
  margin-bottom: 0;
}

/* Contact */

.contact {
  padding: var(--s3) var(--s4);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.contact-row:first-child {
  padding-top: 4px;
  border-top: 0;
}

.contact-k {
  width: 112px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-v {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-decoration: none;
}

a.contact-v {
  color: var(--indigo-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.copy {
  margin-left: auto;
  min-height: 38px;
  padding: 6px 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--face);
  box-shadow: var(--slab);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.copy:hover {
  color: var(--ink);
}

.copy.is-copied {
  background: var(--emerald-soft);
  box-shadow: var(--slab-press);
  color: var(--emerald-deep);
}

.copy.is-failed {
  background: var(--cherry-soft);
  box-shadow: var(--slab-press);
  color: var(--cherry-deep);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.foot {
  margin-top: var(--s6);
  padding: var(--s4) 0 var(--s5);
  border-top: 1px solid var(--line);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s3);
}

.foot-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.foot-brand .brand {
  font-size: 20px;
}

.foot-year {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-faint);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.foot-links a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* The credit sits in the page's bottom-right corner, under the footer links. */
.foot-credit {
  position: absolute;
  right: var(--gutter);
  bottom: var(--s2);
  margin: 0;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------------ */
/* Lightbox                                                            */
/* ------------------------------------------------------------------ */

.lightbox {
  width: min(1200px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 12px;
  border: 0;
  border-radius: 28px;
  background: var(--face);
  box-shadow: var(--slab-big);
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgba(27, 36, 52, 0.55);
}

.lightbox-bar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 var(--s1);
}

.lightbox-close {
  min-height: 40px;
  padding: 6px 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--face);
  box-shadow: var(--slab);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

#lightbox-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 20px;
}

#lightbox-cap {
  margin: 12px 6px 4px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 960px) {
  .about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .links {
    display: none;
  }

  .topbar-in .pill {
    margin-left: auto;
  }

  .hero {
    padding: var(--s4) 0;
  }

  .two {
    grid-template-columns: 1fr;
  }

  .card,
  .contact {
    padding: var(--s3);
  }
}

@media (max-width: 720px) {
  /* The leaderboard turns into one card per run, and nothing scrolls sideways. */
  .board-table thead {
    display: none;
  }

  .board-table,
  .board-table tbody,
  .board-table tr,
  .board-table td {
    display: block;
    width: 100%;
  }

  .board-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "rank score"
      "player player"
      "board board"
      "mode round"
      "build seed";
    gap: 8px 14px;
    padding: 16px 14px;
    border-top: 1px solid var(--line);
    border-radius: 22px;
  }

  .board-table tbody tr:first-child {
    border-top: 0;
  }

  .board-table td {
    padding: 0;
    border: 0;
  }

  .board-table tbody tr:hover td {
    background: transparent;
  }

  .board-table tbody tr:hover {
    background: var(--surface-lo);
  }

  .board-table td.rank {
    grid-area: rank;
    width: auto;
  }

  .board-table td.score {
    grid-area: score;
    justify-self: end;
    font-size: 16px;
    text-align: right;
  }

  .board-table td[data-label="Player"] {
    grid-area: player;
    font-size: 18px;
    font-weight: 700;
  }

  .board-table td[data-label="Board"] {
    grid-area: board;
  }

  .board-table td[data-label="Mode"] {
    grid-area: mode;
  }

  .board-table td[data-label="Round"] {
    grid-area: round;
    text-align: right;
  }

  .board-table td[data-label="Build"] {
    grid-area: build;
  }

  .board-table td[data-label="Seed"] {
    grid-area: seed;
    text-align: right;
  }

  .board-table td[data-label]:not(.rank):not(.score):not([data-label="Player"]):not([data-label="Board"])::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  .board-table td.rank::before {
    content: "#";
    display: inline;
    margin-right: 1px;
    font-size: 18px;
    font-weight: 800;
    color: var(--ink-faint);
  }

  .board-table .rank {
    width: auto;
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .lede {
    font-size: 18px;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
    margin-inline: auto;
  }

  .btn {
    width: 100%;
    justify-content: flex-start;
    font-size: 17px;
  }

  .hero-shot {
    padding: 10px;
    border-radius: 26px;
  }

  .hero-shot .shot-open,
  .hero-shot .shot-open img {
    border-radius: 18px;
  }

  .stats {
    --tile: 78px;
    gap: var(--s3) var(--s2);
    padding: var(--s3);
  }

  .contact-k {
    width: 100%;
  }

  .copy {
    margin-left: 0;
  }
}
