:root {
  color-scheme: dark;
  --page: #1c1c1e;
  --panel: #252528;
  --panel-soft: #303034;
  --panel-deep: #0d0d10;
  --frame: #111115;
  --paper: #f5f0e8;
  --paper-muted: rgba(245, 240, 232, 0.72);
  --paper-soft: rgba(245, 240, 232, 0.56);
  --paper-faint: rgba(245, 240, 232, 0.14);
  --paper-line: rgba(245, 240, 232, 0.24);
  --paper-line-strong: rgba(245, 240, 232, 0.34);
  --accent: #e85d4e;
  --accent-strong: #ff755f;
  --accent-faint: rgba(232, 93, 78, 0.18);
  --ink: #151516;
  --header-surface: rgba(28, 28, 30, 0.88);
  --focus: #ffb84d;
  --shadow-high: 0 24px 80px rgba(0, 0, 0, 0.36);
  --shadow-low: 0 16px 48px rgba(0, 0, 0, 0.2);
  --content-max: 1200px;
  --page-max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  background: var(--paper);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 30;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  backdrop-filter: blur(16px);
  background: var(--header-surface);
  border-bottom: 1px solid var(--paper-faint);
  max-width: 100%;
  overflow-x: clip;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
.footer-inner,
.section-shell {
  margin: 0 auto;
  max-width: var(--content-max);
  padding-inline: 24px;
  width: 100%;
}

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

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  height: 32px;
  width: 32px;
}

.nav,
.language-switcher,
.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav {
  justify-content: center;
}

.nav a,
.nav-menu summary,
.footer-links a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--paper-muted);
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
  padding: 9px 10px;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"],
.nav-menu[open] summary,
.nav-menu summary[aria-current="page"],
.nav-menu summary:hover,
.footer-links a:hover {
  border-color: var(--paper-line);
  color: var(--paper);
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu-panel {
  background: var(--panel);
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  min-width: min(320px, 92vw);
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
}

.nav-menu-panel a {
  line-height: 1.2;
  white-space: normal;
}

.language-switcher {
  background: var(--panel-deep);
  border: 1px solid var(--paper-faint);
  border-radius: 8px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
  padding: 4px;
}

.language-switcher-logo {
  border-radius: 6px;
  flex: 0 0 auto;
  height: 22px;
  margin-inline: 2px 4px;
  width: 22px;
}

.language-option {
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--paper-muted);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1;
  min-width: 58px;
  padding: 9px 10px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.language-option:hover {
  border-color: var(--paper-line);
  color: var(--paper);
}

.language-option[aria-current="true"] {
  background: var(--paper);
  color: var(--ink);
}

.hero {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 414px);
  margin: 0 auto;
  max-width: var(--page-max);
  min-height: calc(100svh - 72px);
  padding: 64px 24px 48px;
  width: 100%;
}

.hero,
.content-section,
.legal-main {
  scroll-margin-top: 88px;
}

.hero-copy {
  align-self: center;
  max-width: 720px;
}

.hero-copy,
.game-shell,
.section-shell > *,
.point-list,
.preview-figure {
  min-width: 0;
}

.label {
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: 5.25rem;
  line-height: 0.98;
  max-width: 10ch;
}

h2 {
  font-size: 3.25rem;
  line-height: 1.05;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.lead,
.section-copy p,
.legal-content p,
.legal-content li,
.footer-inner p {
  color: var(--paper-muted);
  line-height: 1.7;
}

.lead {
  font-size: 1.25rem;
  margin: 24px 0 0;
  max-width: 680px;
}

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

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:active {
  transform: translateY(1px);
}

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

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border: 1px solid var(--paper-line-strong);
  color: var(--paper);
}

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

.game-shell {
  align-self: center;
  background: var(--panel-deep);
  border: 1px solid var(--paper-faint);
  border-radius: 8px;
  box-shadow: var(--shadow-high);
  max-width: 100%;
  overflow: hidden;
  padding: 10px;
}

.game-frame-wrap {
  aspect-ratio: 414 / 896;
  background: var(--frame);
  border-radius: 6px;
  max-height: 76svh;
  max-width: 414px;
  overflow: hidden;
  width: 100%;
}

.game-frame-wrap iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.content-section {
  border-top: 1px solid var(--paper-faint);
  overflow-x: clip;
  padding-block: 88px;
}

.content-section:nth-of-type(odd) {
  background: var(--panel-deep);
}

.section-shell {
  align-items: start;
  display: grid;
  gap: 36px;
}

.section-copy {
  max-width: 720px;
}

.section-copy p {
  font-size: 1.125rem;
  margin: 18px 0 0;
  max-width: 66ch;
}

.content-section.split .section-shell,
.content-section.ledger .section-shell,
.content-section.media .section-shell {
  align-items: start;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.72fr);
}

.content-section.grid .section-shell,
.content-section.faq .section-shell {
  gap: 40px;
}

.content-section.grid .section-copy,
.content-section.faq .section-copy,
.content-section.cta .section-copy {
  max-width: 860px;
}

.content-section.ledger .point-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-section.media .preview-figure {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.content-section.media .point-list,
.content-section.media .section-actions {
  grid-column: 1;
}

.content-section.quote .section-copy {
  border-left: 4px solid var(--accent);
  padding-left: 28px;
}

.content-section.cta {
  background: var(--panel-soft);
}

.content-section.cta .section-shell {
  justify-items: start;
}

.point-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.point-list li {
  background: var(--panel);
  border: 1px solid var(--paper-faint);
  border-left: 3px solid var(--paper-line);
  border-radius: 8px;
  color: var(--paper-muted);
  line-height: 1.6;
  padding: 18px 18px 18px 20px;
}

.point-list li:nth-child(3n + 1) {
  border-left-color: var(--accent);
}

.content-section.grid .point-list,
.content-section.faq .point-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ledger-list {
  counter-reset: ledger;
}

.ledger-list li {
  counter-increment: ledger;
  padding-left: 52px;
  position: relative;
}

.ledger-list li::before {
  align-items: center;
  background: var(--accent-faint);
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  color: var(--accent-strong);
  content: counter(ledger);
  display: inline-flex;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  left: 16px;
  position: absolute;
  top: 18px;
  width: 28px;
}

.preview-figure {
  margin: 0;
}

.preview-figure img {
  border: 1px solid var(--paper-faint);
  border-radius: 8px;
  box-shadow: var(--shadow-low);
  display: block;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}

.legal-page {
  min-height: 100svh;
}

.legal-main {
  border-top: 1px solid var(--paper-faint);
}

.legal-hero,
.legal-content {
  margin: 0 auto;
  max-width: 860px;
  padding-inline: 24px;
}

.legal-hero {
  padding-block: 80px 48px;
}

.legal-hero h1 {
  max-width: none;
}

.legal-content {
  padding-bottom: 80px;
}

.legal-content section {
  border-top: 1px solid var(--paper-faint);
  padding-block: 32px;
}

.legal-content h2 {
  font-size: 2rem;
}

.site-footer {
  border-top: 1px solid var(--paper-faint);
  max-width: 100%;
  overflow-x: clip;
}

.footer-inner {
  align-items: center;
  color: var(--paper-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-block: 32px;
}

.footer-inner p {
  margin: 6px 0 0;
}

@media (max-width: 1100px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

  .nav,
  .language-switcher {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .game-shell {
    justify-self: center;
    width: min(100%, 438px);
  }

  .content-section.split .section-shell,
  .content-section.ledger .section-shell,
  .content-section.media .section-shell {
    grid-template-columns: 1fr;
  }

  .content-section.ledger .point-list {
    grid-template-columns: 1fr;
  }

  .content-section.media .preview-figure,
  .content-section.media .point-list,
  .content-section.media .section-actions {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .header-inner,
  .footer-inner,
  .section-shell,
  .legal-hero,
  .legal-content {
    padding-inline: 18px;
  }

  .hero {
    gap: 32px;
    padding: 40px 18px 48px;
  }

  h1 {
    font-size: 3.5rem;
    max-width: 11ch;
  }

  h2 {
    font-size: 2.25rem;
  }

  .lead {
    font-size: 1.125rem;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .nav-menu {
    width: 100%;
  }

  .nav-menu summary {
    width: 100%;
  }

  .nav-menu-panel {
    margin-top: 8px;
    min-width: 0;
    position: static;
    width: 100%;
  }

  .game-shell {
    width: 100%;
  }

  .content-section {
    padding-block: 64px;
  }

  .content-section.grid .point-list,
  .content-section.faq .point-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .nav a,
  .nav-menu summary,
  .footer-links a {
    font-size: 0.8125rem;
    padding-inline: 8px;
  }

  .language-switcher {
    width: 100%;
  }

  .language-option {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 6px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .game-shell {
    padding: 8px;
  }
}
