@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("assets/fonts/FrankRuhlLibre_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("assets/fonts/FrankRuhlLibre_900Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/InterTight_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/InterTight_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/InterTight_800ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-display: "Frank Ruhl Libre", Georgia, serif;
  --font-body: "Inter Tight", Arial, sans-serif;
  --bg: #0e0e10;
  --surface: #0e0e10;
  --surface-2: #15151a;
  --text: #faf7f2;
  --muted: #b8b4ac;
  --dim: #807c75;
  --rule: #26252a;
  --accent: #d85050;
  --accent-strong: #e0524f;
  --accent-soft: rgba(216, 80, 80, 0.12);
  --tile: #15151a;
  --tile-text: #faf7f2;
  --tile-border: #26252a;
  --tile-selected: #d85050;
  --tile-selected-border: #d85050;
  --tile-selected-text: #faf7f2;
  --tile-last: #d85050;
  --tile-last-border: #e0524f;
  --tile-last-text: #faf7f2;
  --path-line: #d85050;
  --path-glow: #000000;
  --success: #3f7a48;
  --danger: #d85050;
  --button-text: #faf7f2;
  --shadow: rgba(0, 0, 0, 0.42);
  --radius: 4px;
  --radius-large: 8px;
  --max: 1180px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

:root[data-theme="editorial-light"] {
  color-scheme: light;
  --bg: #faf7f2;
  --surface: #faf7f2;
  --surface-2: #f2ede4;
  --text: #0a0a0a;
  --muted: #3a3a3a;
  --dim: #6e6e6e;
  --rule: #dcd6cc;
  --accent: #8c1818;
  --accent-strong: #a52020;
  --accent-soft: rgba(140, 24, 24, 0.1);
  --tile: #ffffff;
  --tile-text: #0a0a0a;
  --tile-border: #dcd6cc;
  --tile-selected: #8c1818;
  --tile-selected-border: #8c1818;
  --tile-selected-text: #faf7f2;
  --tile-last: #8c1818;
  --tile-last-border: #a52020;
  --tile-last-text: #faf7f2;
  --path-line: #8c1818;
  --path-glow: #faf7f2;
  --success: #3f7a48;
  --danger: #8c1818;
  --button-text: #faf7f2;
  --shadow: rgba(40, 26, 18, 0.16);
}

:root[data-theme="classic-dark"] {
  color-scheme: dark;
  --font-display: "Inter Tight", Arial, sans-serif;
  --bg: #080c1a;
  --surface: #0d1528;
  --surface-2: #111d38;
  --text: #fff3b0;
  --muted: rgba(255, 255, 255, 0.78);
  --dim: rgba(255, 255, 255, 0.56);
  --rule: rgba(245, 200, 66, 0.24);
  --accent: #f5c842;
  --accent-strong: #fff3b0;
  --accent-soft: rgba(245, 200, 66, 0.16);
  --tile: #e8d99a;
  --tile-text: #2c1a00;
  --tile-border: #b8a060;
  --tile-selected: #2a2200;
  --tile-selected-border: #c9a84c;
  --tile-selected-text: #fff3b0;
  --tile-last: #c9a84c;
  --tile-last-border: #e8c76a;
  --tile-last-text: #111111;
  --path-line: #c9a84c;
  --path-glow: #000000;
  --success: #4caf50;
  --danger: #f44336;
  --button-text: #2c1a00;
  --shadow: rgba(0, 0, 0, 0.48);
  --radius: 16px;
  --radius-large: 26px;
}

:root[data-theme="classic-light"] {
  color-scheme: light;
  --font-display: "Inter Tight", Arial, sans-serif;
  --bg: #f5f0e8;
  --surface: #fffdf5;
  --surface-2: #ffffff;
  --text: #1a1200;
  --muted: #5e4720;
  --dim: #7a6847;
  --rule: rgba(139, 105, 20, 0.28);
  --accent: #c9a84c;
  --accent-strong: #8b6914;
  --accent-soft: rgba(201, 168, 76, 0.18);
  --tile: #fffdf5;
  --tile-text: #1a1200;
  --tile-border: #c4b080;
  --tile-selected: #fff3cc;
  --tile-selected-border: #c9a84c;
  --tile-selected-text: #1a1200;
  --tile-last: #c9a84c;
  --tile-last-border: #b8820a;
  --tile-last-text: #111111;
  --path-line: #c9a84c;
  --path-glow: #fffdf5;
  --success: #2e7d32;
  --danger: #c62828;
  --button-text: #111111;
  --shadow: rgba(96, 68, 22, 0.18);
  --radius: 16px;
  --radius-large: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 44px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(18px);
}

.brand-lockup,
.site-nav,
.theme-console,
.switch-group {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--surface-2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
}

.site-nav a,
.site-footer a,
.text-link {
  color: var(--muted);
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  transition: color 150ms var(--ease-out), text-decoration-color 150ms var(--ease-out);
}

.site-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--text);
  text-decoration-color: var(--accent);
}

.theme-console {
  gap: 8px;
}

.switch-group {
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface-2);
}

.switch-btn {
  min-width: 62px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: transform 120ms var(--ease-out), color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.switch-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--button-text);
}

.switch-btn:active,
.button:active,
.demo-tile:active {
  transform: scale(0.97);
}

.hero-section {
  position: relative;
  min-height: min(900px, 100dvh);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: opacity 180ms var(--ease-out), filter 180ms var(--ease-out);
}

:root[data-theme^="classic"] .hero-media img {
  filter: saturate(1.08) hue-rotate(180deg) brightness(0.9);
  opacity: 0.58;
}

.hero-scrim {
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 34%, color-mix(in srgb, var(--bg) 44%, transparent) 68%, var(--bg) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 42%);
}

.hero-shell {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  min-height: min(900px, 100dvh);
  margin: 0 auto;
  padding: clamp(46px, 7vh, 82px) 0 clamp(30px, 6vh, 62px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.issue-line,
.kicker,
.section-label,
.edition-topline,
.feature-ledger span,
.mode-grid span,
.demo-hud span,
.rule-list span {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.issue-line {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: end;
  margin-top: clamp(28px, 5vh, 54px);
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1,
.section-head h2,
.trailer-copy h2,
.feature-copy h2,
.campaign-copy h2,
.privacy-section h2,
.notify-section h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.96;
  font-weight: 900;
}

.hero-copy h1 {
  margin-top: 12px;
  font-size: clamp(52px, 8.2vw, 106px);
  max-width: 8.4ch;
}

:root[data-theme^="classic"] .hero-copy h1 {
  max-width: 9.4ch;
  font-size: clamp(44px, 6.2vw, 78px);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}

:root[data-theme^="classic"] .hero-grid {
  margin-top: clamp(18px, 3vh, 30px);
}

.hero-deck {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.35;
}

.hero-strap {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.12;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--button-text);
}

.button-secondary {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.button:hover {
  border-color: var(--accent);
}

.edition-card {
  padding: 20px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

:root[data-theme^="classic"] .edition-card,
:root[data-theme^="classic"] .demo-panel,
:root[data-theme^="classic"] .mode-grid article,
:root[data-theme^="classic"] .notify-section {
  border-radius: var(--radius-large);
  border: 1px solid var(--rule);
  box-shadow: 0 20px 60px var(--shadow);
}

.edition-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.edition-stats div,
.feature-ledger div,
.demo-hud div {
  padding: 12px;
  border: 1px solid var(--rule);
  background: var(--surface-2);
}

.edition-stats dt {
  color: var(--dim);
  font-size: 12px;
  text-transform: uppercase;
}

.edition-stats dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.edition-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.trailer-band,
.play-section,
.daily-section,
.campaign-section,
.modes-section,
.privacy-section,
.notify-section,
.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.trailer-band {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(52px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--rule);
}

.trailer-copy h2,
.section-head h2,
.feature-copy h2,
.campaign-copy h2,
.privacy-section h2,
.notify-section h2 {
  margin-top: 10px;
  font-size: clamp(40px, 5.8vw, 82px);
}

.trailer-copy p:not(.section-label),
.section-head p:not(.section-label),
.feature-copy p,
.campaign-copy p,
.privacy-section p,
.notify-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.trailer-frame {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius-large);
  background: var(--surface-2);
}

.trailer-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.play-section,
.modes-section {
  padding: clamp(58px, 9vw, 110px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.5fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: end;
  margin-bottom: 34px;
}

.section-head.compact {
  display: block;
  max-width: 820px;
}

.play-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(280px, 0.54fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.demo-panel {
  padding: clamp(16px, 3vw, 28px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 72%, transparent), var(--surface));
}

.demo-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.demo-hud strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.demo-word {
  min-height: 46px;
  margin: 16px 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  color: var(--muted);
  background: var(--surface-2);
  font-weight: 800;
}

.demo-word.active {
  color: var(--text);
}

.demo-word.success {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 55%, var(--rule));
}

.demo-word.error {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 55%, var(--rule));
}

.demo-board-wrap {
  position: relative;
  width: min(100%, 396px);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: 0 16px 40px var(--shadow);
}

.demo-trail {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.demo-trail-glow {
  stroke: var(--path-glow);
  stroke-width: 28;
  opacity: 0.45;
}

.demo-trail-line {
  stroke: var(--path-line);
  stroke-width: 7;
  opacity: 0.95;
}

.demo-board {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.demo-tile {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--tile-border);
  border-radius: var(--radius);
  background: var(--tile);
  color: var(--tile-text);
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 48px);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 14px var(--shadow);
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.demo-tile span:not(.demo-tile-hit) {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.demo-tile-hit {
  position: absolute;
  inset: 10%;
  z-index: 3;
}

.demo-tile.in-path {
  background: var(--tile-selected);
  border-color: var(--tile-selected-border);
  color: var(--tile-selected-text);
  transform: scale(0.95);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--path-line) 34%, var(--shadow));
}

.demo-tile.is-last {
  background: var(--tile-last);
  border-color: var(--tile-last-border);
  color: var(--tile-last-text);
}

.demo-tile.flash-success {
  animation: demoFlashSuccess 520ms var(--ease-out);
}

.demo-tile.flash-fail {
  animation: demoFlashFail 520ms var(--ease-out);
}

.demo-tile.flash-dup {
  animation: demoFlashDup 520ms var(--ease-out);
}

@keyframes demoFlashSuccess {
  0% {
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 24px color-mix(in srgb, var(--success) 70%, transparent);
  }
  100% {
    background: var(--tile);
    border-color: var(--tile-border);
  }
}

@keyframes demoFlashFail {
  0% {
    background: var(--danger);
    border-color: var(--danger);
    box-shadow: 0 0 20px color-mix(in srgb, var(--danger) 65%, transparent);
  }
  100% {
    background: var(--tile);
    border-color: var(--tile-border);
  }
}

@keyframes demoFlashDup {
  0% {
    background: var(--dim);
    border-color: var(--dim);
  }
  100% {
    background: var(--tile);
    border-color: var(--tile-border);
  }
}

.demo-log {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  margin-top: 16px;
}

.demo-chip {
  padding: 7px 10px;
  border: 1px solid var(--rule);
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  font-weight: 800;
}

.rule-list {
  border-top: 1px solid var(--rule);
}

.rule-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.rule-list h3,
.mode-grid h3 {
  margin: 0;
  font-size: 24px;
}

.rule-list p {
  grid-column: 2;
}

.rule-list p,
.mode-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.daily-section,
.campaign-section,
.privacy-section,
.notify-section {
  padding: clamp(52px, 8vw, 96px) 0;
  border-top: 1px solid var(--rule);
}

.daily-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.45fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
}

.feature-ledger {
  display: grid;
  gap: 10px;
}

.feature-ledger strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}

.campaign-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.54fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.campaign-art {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius-large);
  background: var(--surface-2);
}

.campaign-art img {
  width: 100%;
  aspect-ratio: 16 / 8.6;
  object-fit: cover;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.mode-grid article {
  min-height: 250px;
  padding: 20px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.mode-grid h3 {
  margin-top: 28px;
}

.privacy-section {
  max-width: 900px;
  text-align: center;
}

.privacy-section .text-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
}

.legal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  justify-content: center;
}

.legal-link-row .text-link {
  margin-top: 0;
}

.notify-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.6fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin-bottom: clamp(48px, 8vw, 90px);
  padding-inline: clamp(0px, 3vw, 32px);
}

.page-main {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.page-hero {
  padding: clamp(58px, 9vw, 118px) 0 clamp(34px, 6vw, 70px);
  border-bottom: 1px solid var(--rule);
}

.page-hero h1 {
  max-width: 900px;
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 108px);
  font-weight: 900;
  line-height: 0.96;
}

.page-lede {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.35;
}

.page-meta {
  margin-top: 22px;
  color: var(--dim);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.privacy-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.privacy-pill {
  padding: 9px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.policy-copy {
  max-width: 860px;
  padding: clamp(42px, 7vw, 82px) 0;
}

.policy-copy h2 {
  margin: 42px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.02;
}

.policy-copy h2:first-child {
  margin-top: 0;
}

.policy-copy h3 {
  margin: 28px 0 10px;
  color: var(--text);
  font-size: 21px;
}

.policy-copy p,
.policy-copy li {
  color: var(--muted);
  line-height: 1.72;
}

.policy-copy ul,
.policy-copy ol {
  display: grid;
  gap: 10px;
  margin: 12px 0 22px;
  padding: 0;
  list-style: none;
}

.policy-copy li {
  padding: 12px 0 12px 24px;
  border-top: 1px solid var(--rule);
  position: relative;
}

.policy-copy li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.policy-copy ol {
  counter-reset: policy-step;
}

.policy-copy ol li {
  counter-increment: policy-step;
  padding-left: 40px;
}

.policy-copy ol li::before {
  content: counter(policy-step);
  top: 13px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  line-height: 1;
}

.policy-copy strong {
  color: var(--text);
}

.policy-copy code {
  padding: 2px 5px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.callout,
.controller-block {
  margin: 20px 0;
  padding: clamp(18px, 3vw, 26px);
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.danger-callout {
  margin: 20px 0;
  padding: clamp(18px, 3vw, 26px);
  border-left: 3px solid #ee5f64;
  background: color-mix(in srgb, #ee5f64 10%, var(--surface));
}

.callout p:last-child,
.controller-block p:last-child,
.danger-callout p:last-child {
  margin-bottom: 0;
}

.content-section {
  padding: clamp(42px, 7vw, 82px) 0;
  border-bottom: 1px solid var(--rule);
}

.content-section h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1;
}

.content-section p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.content-grid,
.fact-grid,
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.content-card,
.fact-card,
.asset-card {
  min-height: 164px;
  padding: 20px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.content-card h3,
.fact-card h3,
.asset-card h3 {
  margin: 0;
  font-size: 22px;
}

.content-card p,
.fact-card p,
.asset-card p {
  margin: 10px 0 0;
}

.policy-list,
.press-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.policy-list li,
.press-list li {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  line-height: 1.55;
}

.policy-list strong,
.press-list strong {
  color: var(--text);
}

.press-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.44fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: end;
}

.press-image {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius-large);
  background: var(--surface-2);
}

.press-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.press-app-capture {
  width: min(360px, 100%);
  justify-self: center;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.press-app-capture img {
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.signup-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.signup-input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 16px;
  outline: none;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.signup-input::placeholder {
  color: color-mix(in srgb, var(--muted) 68%, transparent);
}

.signup-input:focus,
.switch-btn:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible,
.site-footer a:focus-visible,
.brand-lockup:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.signup-state {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--muted);
}

.signup-state.ok {
  color: #3f7a48;
}

.signup-state.err {
  color: var(--accent-strong);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.site-footer div,
.site-footer nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.site-footer strong {
  color: var(--text);
}

.footer-social,
.site-footer .footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.footer-social a {
  display: inline-flex;
  padding: 2px;
}
.footer-social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.privacy-footer {
  align-items: start;
}

.privacy-footer p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--dim);
  line-height: 1.55;
  font-size: 13px;
}

:root[data-theme^="classic"] .brand-mark,
:root[data-theme^="classic"] .demo-tile {
  border-radius: 10px;
}

:root[data-theme^="classic"] .hero-section {
  background:
    radial-gradient(ellipse 80% 60% at 52% 16%, #1a3a8a 0%, var(--bg) 70%),
    var(--bg);
}

:root[data-theme^="classic"] .hero-copy::before {
  content: "";
  display: block;
  width: min(220px, 58vw);
  height: 86px;
  margin-bottom: 12px;
  background: url("assets/wordy_bunch_title.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 28px rgba(245, 200, 66, 0.4));
}

:root[data-theme^="classic"] .button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .brand-lockup,
  .site-nav,
  .theme-console {
    justify-content: center;
  }

  .hero-grid,
  .trailer-band,
  .section-head,
  .play-layout,
  .daily-section,
  .campaign-section,
  .notify-section,
  .press-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    padding-top: 34px;
  }

  .edition-card {
    max-width: 560px;
  }

  .campaign-art {
    order: 2;
  }

  .campaign-copy {
    order: 1;
  }

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

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }

  .theme-console {
    flex-wrap: wrap;
  }

  .switch-group {
    flex: 1 1 150px;
  }

  .switch-btn {
    flex: 1;
  }

  .hero-shell,
  .hero-section {
    min-height: auto;
  }

  .hero-shell {
    padding-bottom: 42px;
  }

  .hero-grid {
    margin-top: 32px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 18vw, 72px);
  }

  .hero-deck {
    font-size: 18px;
  }

  .edition-stats,
  .demo-hud,
  .mode-grid,
  .content-grid,
  .fact-grid,
  .asset-grid,
  .signup-row {
    grid-template-columns: 1fr;
  }

  .demo-board {
    gap: 6px;
  }

  .rule-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mode-grid article {
    min-height: 0;
  }

  .site-footer,
  .site-footer div,
  .site-footer nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
