/* CrazyCattle 3D — Highland Turf & Arcade Knockback Theme */

:root {
  --bg-canvas: #f6f2e6;
  --bg-surface: #fffdf7;
  --bg-muted: #ebe4d1;
  --border-sand: #d8ceb5;
  --turf-deep: #12291a;
  --turf-mid: #1a3a25;
  --turf-border: #2f6041;
  --ink: #18211b;
  --ink-muted: #46534a;
  --cta: #c72e16;
  --cta-hover: #a8220d;
  --cta-shadow: #751305;
  --amber: #e8a825;
  --amber-soft: #fff4d6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-display: ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background-color: var(--bg-canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #9f220e;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cta-hover);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--turf-deep);
  color: #fffdf7;
  padding: 0.6rem 1rem;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.narrow-container {
  max-width: 820px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 41, 26, 0.96);
  border-bottom: 2px solid var(--turf-border);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fffdf7;
  min-height: 44px;
}

.brand-crest {
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1.5px solid rgba(232, 168, 37, 0.65);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: #fffdf7;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: #b7d7bf;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 40px;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  color: #eef5ec;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 140ms ease, color 140ms ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fffdf7;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 1.5px solid var(--turf-border);
  background: var(--turf-mid);
  color: #fffdf7;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Theater Band (Above-the-fold game zone) */
.theater-band {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.024) 0px,
      rgba(255, 255, 255, 0.024) 24px,
      transparent 24px,
      transparent 48px
    ),
    linear-gradient(180deg, var(--turf-deep) 0%, #173421 100%);
  color: #f6f2e6;
  padding: 0.85rem 0 1.25rem;
  border-bottom: 4px solid var(--amber);
}

.theater-container {
  max-width: 960px;
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: #b7d7bf;
  margin-bottom: 0.45rem;
}

.hero-breadcrumb a {
  color: #fffdf7;
  font-weight: 600;
}

.hero-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.hero-title-group {
  min-width: 0;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fffdf7;
}

.hero-lead {
  margin: 0.2rem 0 0;
  font-size: 0.94rem;
  color: #cce1d1;
  line-height: 1.35;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(255, 253, 247, 0.1);
  border: 1px solid rgba(204, 225, 209, 0.28);
  color: #eef5ec;
}

.stage-shell {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

.stage-frame-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a180f;
  border: 3px solid var(--turf-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.46);
}

.stage-frame-box:fullscreen,
.stage-frame-box > iframe:fullscreen {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #000;
}

.stage-frame-box > iframe {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0a180f;
}

/* Stage Cover & Loading state layering */
.stage-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.stage-frame-box[data-gf-state="loading"] .stage-cover,
.stage-frame-box[data-gf-state="playing"] .stage-cover,
.stage-frame-box.local-stage-box[data-local-state="loading"] .stage-cover,
.stage-frame-box.local-stage-box[data-local-state="playing"] .stage-cover {
  display: none;
}

.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(10, 26, 15, 0.72) 0%,
    rgba(10, 26, 15, 0.54) 55%,
    rgba(10, 26, 15, 0.82) 100%
  );
}

.cover-cta-card {
  position: relative;
  z-index: 1;
  max-width: 470px;
  width: 100%;
  padding: 1.2rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(18, 41, 26, 0.86);
  border: 2px solid rgba(232, 168, 37, 0.72);
  backdrop-filter: blur(6px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.cover-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.cover-pitch {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fffdf7;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.72rem 1.75rem;
  border: 2px solid #ffe5ad;
  border-radius: 12px;
  background: var(--cta);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--cta-shadow);
  transition: transform 110ms ease, background-color 110ms ease, box-shadow 110ms ease;
}

.play-btn:hover {
  background: var(--cta-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 0 var(--cta-shadow);
}

.play-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--cta-shadow);
}

.play-btn-sm {
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  font-size: 0.94rem;
}

.cover-hint {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #d6e6d9;
}

/* In-Place Loading Overlay */
.stage-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, #1d422a 0%, #0f2216 78%);
  color: #f6f2e6;
}

.stage-frame-box:not([data-gf-state="loading"]) .stage-loading {
  display: none;
}

.stage-frame-box.local-stage-box[data-local-state="loading"] .stage-loading {
  display: flex;
}

.stage-frame-box.local-stage-box:not([data-local-state="loading"]) .stage-loading {
  display: none;
}

.loading-sheep-arena {
  position: relative;
  width: 108px;
  height: 48px;
}

.loading-orb {
  position: absolute;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fffdf7;
  border: 3px solid #18211b;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.loading-orb-a {
  left: 6px;
  animation: ram-left 0.9s ease-in-out infinite;
}

.loading-orb-b {
  right: 6px;
  background: #e8e1ce;
  animation: ram-right 0.9s ease-in-out infinite;
}

.loading-spark {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 3px;
  background: var(--amber);
  transform: rotate(45deg) scale(0.4);
  animation: spark-pop 0.9s ease-in-out infinite;
}

@keyframes ram-left {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(26px); }
}

@keyframes ram-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-26px); }
}

@keyframes spark-pop {
  0%, 35%, 100% { opacity: 0.15; transform: rotate(45deg) scale(0.35); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.15); }
}

.loading-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  color: #fffdf7;
}

.loading-sub {
  margin: 0;
  max-width: 400px;
  font-size: 0.88rem;
  color: #c5decb;
}

.loading-track {
  width: min(280px, 78%);
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-bar {
  width: 42%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), #f6722a);
  animation: bar-slide 1.25s ease-in-out infinite;
}

@keyframes bar-slide {
  0% { transform: translateX(-90%); }
  50% { transform: translateX(135%); }
  100% { transform: translateX(250%); }
}

/* Local Canvas Games Host (Physics Pong & Gravity Soccer) */
.local-canvas-host {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: none;
  overflow: hidden;
  background: #07111f;
}

.stage-frame-box.local-stage-box[data-local-state="playing"] > .local-canvas-host {
  display: block;
}

.local-stage-box:fullscreen {
  display: grid;
  place-items: center;
  background: #020711;
}

.local-stage-box:fullscreen > .local-canvas-host {
  width: min(100vw, 177.78vh);
  height: min(100vh, 56.25vw);
}

.local-canvas-host canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.local-canvas-host .panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 5%;
  text-align: center;
  background: linear-gradient(135deg, rgba(2, 7, 17, 0.88), rgba(8, 20, 38, 0.78));
  backdrop-filter: blur(6px);
}

.local-canvas-host[data-local-game="gravity-soccer-2-player"] {
  background: #071d18;
}

.local-canvas-host[data-local-game="gravity-soccer-2-player"] .panel {
  background: linear-gradient(135deg, rgba(2, 8, 6, 0.88), rgba(8, 34, 27, 0.76));
}

.local-canvas-host .panel.hidden {
  display: none;
}

.local-canvas-host .eyebrow {
  margin: 0 0 0.55rem;
  color: #7dd3fc;
  font-size: clamp(0.64rem, 1.3vw, 0.88rem);
  font-weight: 900;
  letter-spacing: 0.26em;
}

.local-canvas-host[data-local-game="gravity-soccer-2-player"] .eyebrow {
  color: #6ee7b7;
}

.local-canvas-host .local-menu-title,
.local-canvas-host .local-result-winner {
  margin: 0;
  color: #f8fafc;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

.local-canvas-host .local-menu-title span {
  color: #fb7185;
}

.local-canvas-host[data-local-game="gravity-soccer-2-player"] .local-menu-title {
  color: #ecfdf5;
}

.local-canvas-host[data-local-game="gravity-soccer-2-player"] .local-menu-title span {
  color: #fbbf24;
}

.local-canvas-host .local-result-winner {
  font-size: clamp(2rem, 6vw, 4.4rem);
  margin-bottom: 1rem;
}

.local-canvas-host .lede {
  max-width: 34rem;
  margin: 1.05rem 0 1rem;
  color: #cbd5e1;
  font-size: clamp(0.78rem, 1.7vw, 1.08rem);
  font-weight: 700;
  line-height: 1.35;
}

.local-canvas-host[data-local-game="gravity-soccer-2-player"] .lede {
  color: #d1fae5;
}

.local-canvas-host .actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.local-canvas-host .actions button,
.local-canvas-host .local-rematch-btn {
  appearance: none;
  min-width: 9rem;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  color: #06101f;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.35vw, 0.92rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
  transition: transform 150ms ease, filter 150ms ease;
}

.local-canvas-host .actions button + button {
  background: linear-gradient(135deg, #fda4af, #fb7185);
  box-shadow: 0 8px 24px rgba(251, 113, 133, 0.3);
}

.local-canvas-host[data-local-game="gravity-soccer-2-player"] .actions button,
.local-canvas-host[data-local-game="gravity-soccer-2-player"] .local-rematch-btn {
  color: #052e25;
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.28);
}

.local-canvas-host[data-local-game="gravity-soccer-2-player"] .actions button + button {
  color: #3b2500;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.28);
}

.local-canvas-host .actions button:hover,
.local-canvas-host .local-rematch-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.local-canvas-host .actions button:active,
.local-canvas-host .local-rematch-btn:active {
  transform: translateY(1px) scale(0.98);
}

.local-canvas-host .keys {
  margin: 0.95rem 0 0;
  color: #94a3b8;
  font-size: clamp(0.6rem, 1.15vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.local-canvas-host[data-local-game="gravity-soccer-2-player"] .keys {
  color: #86b6a4;
}

.local-canvas-host .pause {
  position: absolute;
  top: 3%;
  right: 2%;
  z-index: 5;
  display: none;
  min-width: 0;
  width: clamp(2.1rem, 4vw, 2.8rem);
  height: clamp(2.1rem, 4vw, 2.8rem);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.82);
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
}

.local-canvas-host .pause.visible {
  display: grid;
  place-items: center;
}

/* Action Bar */
.stage-action-bar {
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 253, 247, 0.08);
  border: 1px solid rgba(204, 225, 209, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.action-group-left,
.action-group-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.act-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 253, 247, 0.26);
  background: var(--turf-mid);
  color: #fffdf7;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.act-btn:hover {
  background: #234d31;
  border-color: var(--amber);
  color: #fffdf7;
}

.act-btn[aria-pressed="true"],
.act-btn[data-gf-liked] {
  background: var(--cta);
  border-color: #ffd79e;
  color: #ffffff;
}

.act-btn[aria-pressed="true"] svg,
.act-btn[data-gf-liked] svg {
  fill: currentColor;
}

.act-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.share-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.share-prefix {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c5decb;
  margin-right: 0.15rem;
}

.share-pill {
  min-height: 38px;
  min-width: 38px;
  padding: 0.3rem 0.62rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 253, 247, 0.24);
  background: rgba(18, 41, 26, 0.85);
  color: #eef5ec;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.share-pill:hover {
  background: #254f33;
  border-color: var(--amber);
}

.share-msg {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber);
}

/* Deck Band: Overview, Screenshots & Keycaps */
.deck-band {
  padding: 2.25rem 0 1.75rem;
  border-bottom: 1px solid var(--border-sand);
}

.deck-band .quick-strip {
  margin-top: 1.75rem;
  scroll-margin-top: 74px;
}

.quick-strip-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.section-eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}

.quick-strip-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.keycap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.keycap-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-sand);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  box-shadow: 0 3px 0 #ded3ba;
}

.keycap-row {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  padding: 0.16rem 0.45rem;
  border-radius: 6px;
  border: 1.5px solid #bcae8e;
  border-bottom-width: 3px;
  background: #faf5e8;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.key-or {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.keycap-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.keycap-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.arena-showcase {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.arena-shot-card {
  margin: 0;
  background: var(--bg-surface);
  border: 2px solid var(--border-sand);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 0 #ded3ba;
}

.arena-shot-card img {
  width: 100%;
  aspect-ratio: 680 / 442;
  object-fit: cover;
  border-bottom: 2px solid var(--border-sand);
}

.arena-shot-card figcaption {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.arena-shot-card strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.arena-shot-card span {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* Editorial & Guide Band */
.editorial-band {
  padding: 2.25rem 0;
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.75rem;
  align-items: start;
}

.guide-main-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.prose-article {
  background: var(--bg-surface);
  border: 2px solid var(--border-sand);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.85rem;
  box-shadow: 0 4px 0 #e2d8c2;
  max-width: 100%;
}

.prose-article > :first-child {
  margin-top: 0;
}

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

.prose-article h2,
.prose-article h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.015em;
  scroll-margin-top: 74px;
}

.prose-article h2 {
  margin: 1.85rem 0 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--bg-muted);
  font-size: 1.38rem;
  font-weight: 800;
}

.prose-article h3 {
  margin: 1.3rem 0 0.45rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.prose-article p,
.prose-article li {
  color: #263129;
  line-height: 1.68;
}

.prose-article ul,
.prose-article ol {
  padding-left: 1.3rem;
}

.prose-article li + li {
  margin-top: 0.38rem;
}

.prose-article blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1.05rem;
  border-left: 4px solid var(--cta);
  background: #faf5e8;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose-article blockquote p {
  margin: 0;
}

.prose-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.93rem;
  display: block;
  overflow-x: auto;
}

.prose-article th,
.prose-article td {
  padding: 0.62rem 0.78rem;
  border: 1px solid var(--border-sand);
  text-align: left;
  vertical-align: top;
}

.prose-article th {
  background: var(--turf-deep);
  color: #fffdf7;
  font-weight: 700;
}

.prose-article tr:nth-child(even) td {
  background: #fbf8ef;
}

.prose-article code {
  padding: 0.12rem 0.36rem;
  border-radius: 5px;
  background: #efe9d8;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.fact-sheet {
  position: sticky;
  top: 72px;
  background: var(--turf-deep);
  color: #f6f2e6;
  border: 2px solid var(--turf-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 6px 0 #0a180f;
}

.fact-sheet-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--amber);
}

.fact-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.fact-row {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.fact-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fact-row dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a9cbb2;
}

.fact-row dd {
  margin: 0.14rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fffdf7;
}

.fact-cta {
  margin-top: 1.1rem;
}

.fact-play-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: var(--cta);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
  border: 1.5px solid #ffd79e;
  box-shadow: 0 3px 0 var(--cta-shadow);
}

.fact-play-jump:hover {
  background: var(--cta-hover);
  color: #ffffff;
}

.fact-quick-links {
  margin-top: 1.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.fact-links-heading {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber);
}

.fact-quick-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fact-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #e4f1e7;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.fact-quick-links a:hover {
  color: var(--amber);
  text-decoration: underline;
}

/* Retired Embed Banner & Post CTA Box */
.retired-banner,
.post-cta-box {
  background: var(--amber-soft);
  border: 2px solid #d4a438;
  border-left: 6px solid var(--cta);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.3rem;
  box-shadow: 0 4px 0 #dfd2ae;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.retired-banner-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.retired-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  background: var(--turf-deep);
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.retired-banner p,
.post-cta-box p {
  margin: 0.25rem 0 0;
  color: #29332b;
  font-size: 0.95rem;
}

.retired-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

/* Alt Playable Games Strip */
.alt-games-band {
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--border-sand);
  background: #f2ecdc;
}

.alt-games-top {
  padding: 1.4rem 0 1.6rem;
  border-top: 0;
  border-bottom: 1px solid var(--border-sand);
}

.alt-games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.alt-game-tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 2px solid var(--border-sand);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 4px 0 #ded3ba;
  transition: transform 130ms ease, border-color 130ms ease;
}

.alt-game-tile:hover {
  transform: translateY(-2px);
  border-color: var(--turf-border);
  color: var(--ink);
}

.alt-game-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 2px solid var(--border-sand);
}

.alt-tile-body {
  padding: 0.75rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.alt-tile-body strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
}

.alt-tile-body span {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* Games Index Directory */
.games-catalog-section + .games-catalog-section {
  margin-top: 2.5rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.game-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 5px 0 #ded3ba;
  display: flex;
  flex-direction: column;
}

.game-card-media {
  display: block;
  border-bottom: 2px solid var(--border-sand);
  overflow: hidden;
}

.game-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 180ms ease;
}

.game-card:hover .game-card-media img {
  transform: scale(1.02);
}

.game-card-body {
  padding: 1.1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}

.game-badge-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.game-status-pill,
.game-genre-pill,
.legacy-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.game-status-pill.is-live {
  background: var(--turf-deep);
  color: #d7f5de;
}

.game-genre-pill,
.legacy-pill {
  background: var(--bg-muted);
  color: var(--ink);
  border: 1px solid var(--border-sand);
}

.game-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
}

.game-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.game-card-title a:hover {
  color: var(--cta-hover);
  text-decoration: underline;
}

.game-card-desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
  line-height: 1.5;
  flex: 1;
}

.game-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 44px;
  padding: 0.48rem 1.1rem;
  margin-top: 0.25rem;
  border-radius: 10px;
  background: var(--cta);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid #ffd79e;
  box-shadow: 0 3px 0 var(--cta-shadow);
}

.game-card-cta:hover {
  background: var(--cta-hover);
  color: #ffffff;
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.legacy-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.05rem;
  background: var(--bg-surface);
  border: 2px solid var(--border-sand);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 3px 0 #e2d8c2;
  transition: transform 120ms ease, border-color 120ms ease;
}

.legacy-card:hover {
  transform: translateY(-2px);
  border-color: var(--cta);
  color: var(--ink);
}

.legacy-card strong {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 800;
}

.legacy-card span:last-child {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.catalog-blog-bar {
  margin-top: 2.25rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--turf-deep);
  border: 2px solid var(--turf-border);
  color: #f6f2e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.catalog-blog-bar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--amber);
}

.catalog-blog-bar span {
  font-size: 0.92rem;
  color: #d6e7da;
}

/* Blog List */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.blog-post-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-sand);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 4px 0 #e2d8c2;
}

.blog-card-date {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.blog-card-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
}

.blog-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--cta-hover);
  text-decoration: underline;
}

.blog-card-desc {
  margin: 0 0 0.8rem;
  color: var(--ink-muted);
}

.blog-card-link {
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

/* Comments Band */
.comments-band {
  padding: 2rem 0 3rem;
  border-top: 2px solid var(--border-sand);
  background: #efe9d8;
}

.comments-container {
  max-width: 820px;
}

.comments-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
}

.comments-subtitle {
  margin: 0.25rem 0 1.15rem;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.comment-form {
  background: var(--bg-surface);
  border: 2px solid var(--border-sand);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.35rem;
}

.reply-status-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.comment-form:not([data-gf-replying]) .reply-status-row {
  display: none;
}

.reply-to-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #8c240f;
}

.reply-cancel-btn {
  min-height: 32px;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border-sand);
  background: var(--bg-muted);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.comment-fields {
  display: grid;
  gap: 0.85rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field-group label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 0.62rem 0.78rem;
  border-radius: 8px;
  border: 1.5px solid #bfb395;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.96rem;
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--turf-deep);
}

.comment-form-footer {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.comment-status-msg {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1c5b31;
}

.comment-submit-btn {
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  border: 0;
  border-radius: 10px;
  background: var(--cta);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--cta-shadow);
}

.comment-submit-btn:hover {
  background: var(--cta-hover);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.comments-list[data-gf-empty]::before {
  content: "No player notes yet. Be the first ram on the board.";
  display: block;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1.5px dashed var(--border-sand);
  color: var(--ink-muted);
}

.comments-list[data-gf-off]::before {
  content: "Comments are currently closed for this page.";
  display: block;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1.5px dashed var(--border-sand);
  color: var(--ink-muted);
}

.comment-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-sand);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
}

.comment-card[data-gf-owner] {
  border-color: var(--amber);
  background: #fffbef;
}

.comment-card:not([data-gf-owner]) [data-gf-c-owner] {
  display: none;
}

[data-gf-c-to]:empty {
  display: none;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.comment-author {
  font-weight: 800;
  color: var(--ink);
}

.owner-badge {
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.reply-target {
  font-size: 0.82rem;
  font-weight: 700;
  color: #8c240f;
}

.comment-time {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.comment-body {
  margin: 0 0 0.55rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-reply-btn {
  min-height: 32px;
  padding: 0.15rem 0.65rem;
  border-radius: 7px;
  border: 1px solid var(--border-sand);
  background: #faf5e8;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.comment-reply-btn:hover {
  border-color: var(--turf-deep);
  background: var(--bg-muted);
}

.comment-replies {
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--border-sand);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.comment-replies:empty {
  display: none;
}

/* Inner & Legal Pages */
.page-hero {
  background: var(--turf-deep);
  color: #f6f2e6;
  padding: 2rem 0 1.75rem;
  border-bottom: 4px solid var(--amber);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: #b7d7bf;
  margin-bottom: 0.6rem;
}

.breadcrumb a {
  color: #fffdf7;
  font-weight: 600;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fffdf7;
}

.page-lead {
  margin: 0.55rem 0 0;
  font-size: 1.03rem;
  color: #d6e7da;
}

.legal-updated {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--amber);
}

.page-body-band {
  padding: 2rem 0 3rem;
}

/* 404 Page */
.notfound-band {
  padding: 4rem 0;
}

.notfound-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-sand);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 6px 0 #e2d8c2;
}

.notfound-code {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: var(--turf-deep);
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.notfound-card h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.notfound-card p {
  margin: 0 auto 1.4rem;
  max-width: 480px;
  color: var(--ink-muted);
}

.notfound-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.secondary-link {
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Footer */
.site-footer {
  background: var(--turf-deep);
  color: #d6e7da;
  border-top: 4px solid var(--turf-border);
  padding: 2.25rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1.75rem;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fffdf7;
  text-decoration: none;
  margin-bottom: 0.45rem;
}

.footer-tagline {
  margin: 0 0 0.6rem;
  color: #f6f2e6;
  font-weight: 600;
}

.footer-disclaimer {
  margin: 0 0 0.6rem;
  font-size: 0.86rem;
  color: #b7d2bf;
  line-height: 1.5;
}

.footer-contact {
  margin: 0;
  font-size: 0.88rem;
}

.footer-contact a {
  color: var(--amber);
  font-weight: 700;
}

.footer-heading {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--amber);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #eef5ec;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-list a:hover {
  color: var(--amber);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 1.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom-inner p {
  margin: 0;
  font-size: 0.84rem;
  color: #a9cbb2;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav-link {
    padding: 0.35rem 0.56rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 960px) {
  .keycap-grid,
  .alt-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .editorial-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact-sheet {
    position: static;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem 1.25rem 0.95rem;
    background: var(--turf-deep);
    border-bottom: 2px solid var(--turf-border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
    border-radius: 8px;
  }

  .arena-showcase,
  .games-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 0.9rem;
  }

  .hero-badges {
    display: none;
  }

  .stage-cover {
    padding: 0.5rem;
  }

  .cover-cta-card {
    padding: 0.65rem 0.85rem;
    gap: 0.42rem;
    max-width: 320px;
  }

  .cover-kicker,
  .cover-hint {
    display: none;
  }

  .cover-pitch {
    font-size: 0.88rem;
  }

  .play-btn {
    min-height: 42px;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
  }

  .stage-loading {
    padding: 0.75rem;
    gap: 0.4rem;
  }

  .loading-sheep-arena {
    height: 36px;
  }

  .loading-orb {
    top: 4px;
    width: 24px;
    height: 24px;
  }

  .loading-title {
    font-size: 0.95rem;
  }

  .loading-sub {
    font-size: 0.78rem;
  }

  .local-canvas-host .panel {
    padding: 3% 4%;
  }

  .local-canvas-host .eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.58rem;
  }

  .local-canvas-host .local-menu-title,
  .local-canvas-host .local-result-winner {
    font-size: clamp(1.38rem, 6vw, 3.2rem);
    line-height: 0.95;
  }

  .local-canvas-host .local-result-winner {
    margin-bottom: 0.45rem;
  }

  .local-canvas-host .lede {
    margin: 0.35rem 0 0.45rem;
    font-size: 0.72rem;
  }

  .local-canvas-host .actions {
    gap: 0.45rem;
  }

  .local-canvas-host .actions button,
  .local-canvas-host .local-rematch-btn {
    min-width: 6.4rem;
    min-height: 36px;
    padding: 0.42rem 0.75rem;
    font-size: 0.68rem;
  }

  .local-canvas-host .keys {
    margin: 0.35rem 0 0;
    font-size: 0.56rem;
  }

  .keycap-grid,
  .legacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .alt-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .alt-tile-body {
    padding: 0.6rem 0.65rem 0.75rem;
  }

  .alt-tile-body strong {
    font-size: 0.9rem;
  }

  .alt-tile-body span {
    font-size: 0.8rem;
  }

  .prose-article {
    padding: 1.15rem 1rem;
  }

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



/* ==========================================================================
   Design tokens — 2026-11-18 consolidation pass
   The light page palette lives in the :root block at the top of this file.
   These extra tokens cover the dark game stage, the local-canvas host and the
   accent colours that used to be typed in as loose hex values inside the
   component rules. Every value below is the same colour it replaces, so the
   rendered result does not change — only the source of truth does.
   ========================================================================== */

:root {
  /* dark stage / embed surfaces */
  --stage-ink: #0a180f;
  --stage-ink-raised: #0d2116;
  --stage-line: rgb(255 253 247 / 0.14);
  --pitch-ink: #07111f;
  --pitch-line: rgb(255 253 247 / 0.12);

  /* arcade accents */
  --accent-sky: #7dd3fc;
  --accent-rose: #fb7185;
  --accent-mint: #6ee7b7;
  --accent-amber: #fbbf24;
  --amber-deep: #f6722a;

  /* ink on dark surfaces */
  --cream: #fffdf7;
  --on-stage-muted: #c7d2c9;

  /* text link (light theme) */
  --link: #9f220e;
}

/* Light-theme text link now reads from the token instead of a literal hex. */
a {
  color: var(--link);
}

/* Stage shell keeps its cream-on-dark contrast via tokens. */
.stage-frame-box,
.local-stage-box {
  --stage-shadow: 0 18px 40px rgb(10 24 15 / 0.18);
}
