:root {
  color-scheme: light;
  --ink: #101114;
  --paper: #f4f6f8;
  --surface: #ffffff;
  --surface-strong: #e9eef2;
  --muted: #5f6872;
  --line: #d8dee5;
  --teal: #007f7a;
  --teal-dark: #005f5c;
  --amber: #b76a18;
  --rose: #b84f68;
  --shadow: 0 20px 50px rgba(16, 17, 20, 0.11);
  --radius: 8px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 17, 20, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

.preview-art {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111820;
  isolation: isolate;
}

.preview-art::before,
.preview-art::after {
  position: absolute;
  content: "";
}

.preview-fishing {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(135deg, #12365f, #087a84 54%, #083d4b);
}

.preview-fishing::before {
  width: 34%;
  height: 16%;
  left: 50%;
  top: 48%;
  border-radius: 999px 60% 60% 999px;
  background: #ffc857;
  box-shadow: -92px -34px 0 -12px #5eead4, -68px 34px 0 -14px #ff6b6b;
}

.preview-fishing::after {
  inset: 18%;
  border: 2px dashed rgba(255, 255, 255, 0.46);
  border-radius: 999px;
}

.preview-sky {
  background:
    linear-gradient(180deg, #0c1b36, #123f69 60%, #08111d),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255, 255, 255, 0.16) 24px 25px);
}

.preview-sky::before {
  left: 46%;
  top: 58%;
  width: 0;
  height: 0;
  border-right: 16px solid transparent;
  border-left: 16px solid transparent;
  border-bottom: 42px solid #39d98a;
  filter: drop-shadow(-62px -92px 0 #ff6b6b) drop-shadow(70px -58px 0 #ffc857);
}

.preview-sky::after {
  inset: 14px;
  border-top: 2px solid rgba(94, 234, 212, 0.8);
  border-bottom: 2px solid rgba(255, 200, 87, 0.7);
}

.preview-merge {
  background: #f7f1e7;
}

.preview-merge::before {
  inset: 22%;
  background:
    linear-gradient(90deg, transparent 31%, #c6b9a8 32% 34%, transparent 35% 65%, #c6b9a8 66% 68%, transparent 69%),
    linear-gradient(180deg, transparent 31%, #c6b9a8 32% 34%, transparent 35% 65%, #c6b9a8 66% 68%, transparent 69%),
    #d8cdbc;
  border: 5px solid #c6b9a8;
  border-radius: 6px;
}

.preview-merge::after {
  left: 19%;
  top: 24%;
  color: #6c655f;
  content: "2048";
  font-size: 1.8rem;
  font-weight: 900;
}

.preview-block {
  background: linear-gradient(135deg, #122033, #233a4b);
}

.preview-block::before {
  inset: 19%;
  background:
    linear-gradient(90deg, transparent 0 22%, #49c5bd 23% 30%, transparent 31% 52%, #ffc857 53% 61%, transparent 62%),
    linear-gradient(180deg, transparent 0 20%, #e35d6a 21% 30%, transparent 31% 55%, #7c5cff 56% 66%, transparent 67%);
  border: 2px solid rgba(255, 255, 255, 0.24);
}

.preview-block::after {
  width: 20%;
  height: 20%;
  right: 19%;
  bottom: 21%;
  background: #49c5bd;
  border-radius: 5px;
}

.preview-mines {
  background: linear-gradient(135deg, #2f3542, #dfe4ea);
}

.preview-mines::before {
  inset: 18%;
  background:
    repeating-linear-gradient(90deg, transparent 0 18%, rgba(47, 53, 66, 0.5) 18% 20%),
    repeating-linear-gradient(180deg, transparent 0 18%, rgba(47, 53, 66, 0.5) 18% 20%),
    #f1f2f6;
  border: 2px solid #a4b0be;
}

.preview-mines::after {
  width: 14%;
  height: 14%;
  left: 48%;
  top: 42%;
  background: #2f3542;
  border-radius: 50%;
  box-shadow: 42px -28px 0 -2px #ff4757, -48px 34px 0 -2px #2ed573;
}

.preview-bubble {
  background: linear-gradient(135deg, #1d1540, #46236f 62%, #0f172a);
}

.preview-bubble::before {
  width: 25%;
  height: 25%;
  left: 20%;
  top: 22%;
  border: 4px solid #5eead4;
  border-radius: 50%;
  box-shadow: 76px 10px 0 -4px #ff6bcb, 38px 64px 0 -7px #ffc857, 118px 70px 0 -9px #7c5cff;
}

.preview-bubble::after {
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.preview-run {
  background: linear-gradient(180deg, #141b2d 0 72%, #233a2e 73%);
}

.preview-run::before {
  width: 16%;
  height: 16%;
  left: 22%;
  top: 55%;
  background: #5eead4;
  border-radius: 50%;
}

.preview-run::after {
  left: 54%;
  bottom: 25%;
  width: 12%;
  height: 34%;
  background: #ff6b6b;
  box-shadow: 72px 14px 0 -6px #ffc857;
}

.preview-stack {
  background: linear-gradient(180deg, #1e1b15, #322313);
}

.preview-stack::before {
  left: 26%;
  right: 26%;
  bottom: 20%;
  height: 12%;
  background: #ffc857;
  box-shadow: 0 -26px 0 -1px #c67a2f, 0 -52px 0 -4px #ffc857, 22px -78px 0 -6px #c67a2f;
}

.preview-stack::after {
  inset: 12%;
  border: 2px solid rgba(255, 200, 87, 0.4);
}

.preview-brick {
  background: linear-gradient(180deg, #111827, #0f172a);
}

.preview-brick::before {
  inset: 18% 14% 50%;
  background:
    repeating-linear-gradient(90deg, #ff6b6b 0 17%, transparent 17% 20%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0 42%, transparent 42% 50%);
}

.preview-brick::after {
  left: 32%;
  bottom: 18%;
  width: 36%;
  height: 8%;
  background: #5eead4;
  border-radius: 999px;
  box-shadow: 26px -36px 0 -6px #fff;
}

.preview-maze {
  background: #15152b;
}

.preview-maze::before {
  inset: 14%;
  background:
    linear-gradient(90deg, #5eead4 6px, transparent 6px calc(100% - 6px), #5eead4 calc(100% - 6px)),
    linear-gradient(180deg, #5eead4 6px, transparent 6px calc(100% - 6px), #5eead4 calc(100% - 6px)),
    repeating-linear-gradient(90deg, transparent 0 22%, rgba(94, 234, 212, 0.7) 22% 25%, transparent 25% 48%);
}

.preview-maze::after {
  width: 12%;
  height: 12%;
  left: 26%;
  top: 38%;
  background: #ffc857;
  border-radius: 50%;
  box-shadow: 74px 34px 0 -3px #ff6b6b;
}

.preview-crossing {
  background:
    repeating-linear-gradient(180deg, #263447 0 20%, #17202d 20% 40%),
    #17202d;
}

.preview-crossing::before {
  left: 22%;
  top: 70%;
  width: 13%;
  height: 13%;
  background: #39d98a;
  border-radius: 4px;
}

.preview-crossing::after {
  left: 18%;
  top: 28%;
  width: 24%;
  height: 9%;
  background: #ff6b6b;
  border-radius: 999px;
  box-shadow: 98px 56px 0 #ffc857, 48px -10px 0 #5eead4;
}

.preview-catch {
  background: linear-gradient(135deg, #0f172a, #213547);
}

.preview-catch::before {
  width: 18%;
  height: 18%;
  left: 64%;
  top: 22%;
  background: #ffc857;
  border-radius: 50%;
  box-shadow: -88px 52px 0 -3px #5eead4, -16px 90px 0 -6px #ff6b6b;
}

.preview-catch::after {
  left: 28%;
  bottom: 20%;
  width: 26%;
  height: 8%;
  background: #49c5bd;
  border-radius: 999px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - var(--max-width)) / 2));
  background: rgba(246, 247, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1.25;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--surface-strong);
  outline: none;
}

.intro-band,
.content-band,
.contact-band {
  padding-block: 76px;
  padding-inline: max(28px, calc((100vw - var(--max-width)) / 2));
}

.intro-band {
  min-height: 760px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(0, 127, 122, 0.09), transparent 36%),
    linear-gradient(300deg, rgba(182, 108, 18, 0.14), transparent 38%),
    rgba(255, 255, 255, 0.68);
}

.intro-grid {
  max-width: var(--max-width);
  margin-inline: auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 36px;
  align-items: center;
}

.intro-copy,
.featured-panel,
.registry-band,
.contact-band {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: 4.55rem;
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: 3.2rem;
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
}

.company-name-cn {
  margin: 18px 0 0;
  color: var(--teal-dark);
  font-size: 1.25rem;
  font-weight: 800;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #30353a;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: #fff;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--surface);
}

.play-glyph {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.play-glyph.small {
  border-top-width: 5px;
  border-bottom-width: 5px;
  border-left-width: 7px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.quick-facts div,
.featured-panel,
.capability-list article,
.registry-list div,
.game-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.quick-facts div {
  padding: 14px;
}

.quick-facts dt,
.registry-list dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts dd,
.registry-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.featured-panel {
  padding: 18px;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.86);
}

.panel-heading {
  padding: 6px 4px 16px;
}

.featured-list {
  display: grid;
  gap: 12px;
}

.featured-game {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.featured-game:hover,
.featured-game:focus-visible {
  border-color: var(--teal);
  transform: translateY(-1px);
  outline: none;
}

.featured-game .preview-art {
  width: 96px;
  height: 72px;
  border-radius: 6px;
}

.featured-game span {
  display: grid;
  gap: 3px;
}

.featured-game small {
  color: var(--muted);
}

.content-band {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.section-heading p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}

.library-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  outline: none;
}

.result-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.game-card {
  overflow: hidden;
  background: var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.game-card.is-hidden {
  display: none;
}

.game-card:hover,
.game-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

.game-card-link {
  display: grid;
  min-height: 100%;
  grid-template-rows: auto 1fr;
  text-decoration: none;
}

.game-card .preview-art {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--surface-strong);
}

.game-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
  min-height: 188px;
}

.game-card-body > span:not(.tag):not(.card-action) {
  min-height: 48px;
  color: var(--muted);
  font-size: 0.94rem;
}

.tag {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: end;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 52px;
  align-items: start;
}

.split-band p {
  max-width: 660px;
  color: var(--muted);
}

.capability-list {
  display: grid;
  gap: 16px;
}

.capability-list article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px 16px;
  padding: 20px;
}

.capability-list p {
  margin: 0;
  grid-column: 2;
}

.capability-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  grid-row: span 2;
}

.registry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.registry-list div {
  padding: 18px;
  background: var(--surface);
}

.registry-list div:last-child {
  grid-column: 1 / -1;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.contact-band p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px max(28px, calc((100vw - var(--max-width)) / 2)) 38px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--teal-dark);
  outline: none;
}

.play-page {
  background: #0f1216;
}

.play-site-header {
  position: static;
}

.play-main {
  min-height: calc(100vh - 73px);
  padding: 24px;
}

.player-shell {
  max-width: 1280px;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #171b21;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  color: #fff;
  background: #15191f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.player-toolbar h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.player-toolbar p {
  max-width: 720px;
  margin: 6px 0 0;
  color: #bdc7d1;
}

.player-toolbar .eyebrow {
  margin: 0 0 6px;
  color: #49c5bd;
}

.game-frame {
  display: block;
  width: 100%;
  height: min(760px, calc(100vh - 188px));
  min-height: 560px;
  border: 0;
  background: #000;
}

.embedded-game {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #0d1117;
}

.game-hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.game-hud span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.game-hud strong,
.game-hud small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-hud strong {
  font-size: 1.15rem;
  line-height: 1.2;
}

.game-hud small {
  color: #8f9bab;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.game-canvas {
  width: 100%;
  min-height: 520px;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #05070a;
  outline: none;
  touch-action: none;
}

.game-canvas:focus-visible {
  border-color: #49c5bd;
  box-shadow: 0 0 0 3px rgba(73, 197, 189, 0.2);
}

.touch-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.touch-controls button {
  min-width: 78px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.touch-controls button:hover,
.touch-controls button:focus-visible,
.touch-controls button.is-pressed {
  background: #007f7a;
  border-color: #49c5bd;
  outline: none;
}

.legal-main {
  max-width: 920px;
  margin-inline: auto;
  padding: 58px 20px 72px;
}

.legal-hero {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: 3.4rem;
}

.legal-hero p,
.legal-section p,
.legal-section li {
  color: var(--muted);
}

.legal-section {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.legal-section h2 {
  font-size: 1.35rem;
}

.legal-section ul {
  padding-left: 20px;
}

@media (max-width: 900px) {
  .site-header,
  .contact-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-grid,
  .split-band,
  .registry-list {
    grid-template-columns: 1fr;
  }

  .intro-band {
    min-height: auto;
    padding-top: 54px;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .library-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .registry-list div:last-child {
    grid-column: auto;
  }

  h1 {
    font-size: 3.65rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .legal-hero h1 {
    font-size: 2.8rem;
  }

  .play-main {
    padding: 14px;
  }

  .player-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .player-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .game-frame {
    min-height: 620px;
    height: calc(100vh - 250px);
  }

  .game-canvas {
    min-height: 460px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .intro-band,
  .content-band,
  .contact-band {
    padding-block: 46px;
    padding-inline: 16px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: flex-start;
  }

  .site-nav a {
    justify-content: center;
    padding-inline: 6px;
  }

  .brand {
    width: 100%;
  }

  .featured-game {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .featured-game .preview-art {
    width: 82px;
    height: 66px;
  }

  .game-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .touch-controls button {
    flex: 1 1 30%;
    min-width: 0;
  }

  .game-canvas {
    min-height: 420px;
  }

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

  .capability-list article {
    grid-template-columns: 1fr;
  }

  .capability-list p {
    grid-column: auto;
  }

  .capability-mark {
    grid-row: auto;
  }

  .site-footer nav {
    flex-direction: column;
    gap: 8px;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 2rem;
  }

  .legal-hero h1 {
    font-size: 2.25rem;
  }
}
