:root {
  --ink: #11151d;
  --ink-2: #1a2230;
  --paper: #f6efe4;
  --paper-2: #fffaf2;
  --muted: #6f6a61;
  --line: #ded2c0;
  --red: #d93a42;
  --red-deep: #9f2430;
  --amber: #f0aa44;
  --blue: #5fa8c7;
  --green: #78885a;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(17, 21, 29, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

img {
  max-width: 100%;
}

code {
  border: 1px solid rgba(217, 58, 66, 0.18);
  border-radius: 6px;
  background: rgba(217, 58, 66, 0.08);
  padding: 0.08rem 0.32rem;
  color: var(--red-deep);
  font-size: 0.94em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(222, 210, 192, 0.78);
  background: rgba(246, 239, 228, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 780;
}

.brand-icon {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--red-deep);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: clamp(34px, 7vw, 88px);
  align-items: center;
  padding: clamp(54px, 8vw, 94px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(217, 58, 66, 0.09), transparent 34%),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}

.game-hero {
  background:
    linear-gradient(135deg, rgba(95, 168, 199, 0.1), transparent 34%),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}

.legal-hero {
  padding: clamp(54px, 9vw, 112px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(217, 58, 66, 0.09), transparent 34%),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}

.hero-copy,
.legal-hero {
  max-width: 920px;
}

.kicker,
.section-label {
  margin: 0 0 16px;
  color: var(--red-deep);
  font-size: 0.9rem;
  font-weight: 820;
}

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

h1 {
  margin: 0;
  max-width: 940px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7.4vw, 6.8rem);
  line-height: 0.96;
  font-weight: 650;
}

.lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.5rem);
  line-height: 1.68;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 780;
}

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

.button.secondary {
  border: 1px solid rgba(17, 21, 29, 0.18);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

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

.signal-board,
.game-board {
  border: 1px solid rgba(17, 21, 29, 0.14);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 24px;
}

.board-topline,
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.board-topline {
  justify-content: flex-start;
}

.board-topline img {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.board-topline span,
.board-header span {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
}

.board-topline strong,
.board-header strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.board-plot,
.trajectory-field {
  position: relative;
  height: 280px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    #121925;
  background-size: 44px 44px;
  overflow: hidden;
}

.plot-line,
.trajectory-arc {
  position: absolute;
  left: 34px;
  right: 36px;
  bottom: 60px;
  height: 180px;
  border-top: 4px solid var(--amber);
  border-radius: 50% 50% 0 0;
  transform: skewY(-10deg);
  transform-origin: bottom left;
}

.plot-dot,
.vehicle-dot,
.impact-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(217, 58, 66, 0.16);
}

.dot-a {
  left: 40px;
  bottom: 54px;
}

.dot-b,
.vehicle-dot {
  left: 48%;
  top: 82px;
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(240, 170, 68, 0.16);
}

.dot-c,
.impact-dot {
  right: 34px;
  bottom: 72px;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(95, 168, 199, 0.16);
}

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 58px;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.board-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.board-list span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.board-list span:nth-child(1) {
  width: 84%;
}

.board-list span:nth-child(2) {
  width: 62%;
}

.board-list span:nth-child(3) {
  width: 72%;
}

.section-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 86px) clamp(20px, 5vw, 64px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact-panel h2,
.studio-band h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.section-heading p:last-child,
.contact-panel p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(190px, 270px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 38px);
}

.game-symbol {
  position: relative;
  display: grid;
  width: min(100%, 245px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(17, 21, 29, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 21, 29, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 21, 29, 0.05) 1px, transparent 1px),
    var(--paper-2);
  background-size: 28px 28px;
  text-decoration: none;
  overflow: hidden;
}

.symbol-orbit {
  position: absolute;
  width: 72%;
  height: 72%;
  border: 3px solid rgba(17, 21, 29, 0.16);
  border-top-color: var(--red);
  border-right-color: var(--amber);
  border-radius: 999px;
  transform: rotate(-22deg);
}

.symbol-core {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--ink);
}

.symbol-trail {
  position: absolute;
  right: 52px;
  top: 58px;
  width: 78px;
  height: 3px;
  background: var(--red);
  transform: rotate(-42deg);
  transform-origin: right center;
}

.game-card-body h3 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.game-card-body p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.game-status {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 820;
}

.policy-meta,
.compact-meta {
  display: grid;
  gap: 12px;
}

.policy-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
  margin: 34px 0 0;
}

.policy-meta div,
.compact-meta div {
  min-height: 98px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.76);
  padding: 18px;
}

.compact-meta {
  margin: 24px 0 0;
}

.policy-meta dt,
.compact-meta dt {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.policy-meta dd,
.compact-meta dd {
  margin: 0;
  font-weight: 760;
}

.studio-band {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: 32px;
  padding: clamp(42px, 7vw, 78px) clamp(20px, 5vw, 64px);
  background: var(--ink);
  color: var(--white);
}

.studio-band .section-label {
  color: var(--amber);
}

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

.studio-grid li {
  min-height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.board-readouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.board-readouts span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.document-link {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.9);
  padding: 24px;
  text-decoration: none;
  box-shadow: 0 16px 44px rgba(17, 21, 29, 0.08);
}

.document-link span {
  display: block;
  margin-bottom: 16px;
  color: var(--red-deep);
  font-weight: 820;
}

.document-link strong {
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.45;
}

.content-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 920px);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 86px) clamp(20px, 5vw, 64px);
}

.toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
  border-left: 3px solid var(--red);
  padding: 2px 0 2px 18px;
}

.toc p {
  margin: 0 0 4px;
  color: var(--red-deep);
  font-weight: 820;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
}

.toc a:hover {
  color: var(--red-deep);
}

.policy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: var(--shadow);
}

.policy-heading {
  padding: clamp(28px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}

.policy-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
}

.policy-heading p:last-child {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.policy-section {
  scroll-margin-top: 96px;
  padding: clamp(28px, 5vw, 48px);
  border-bottom: 1px solid rgba(222, 210, 192, 0.85);
}

.policy-section:last-child {
  border-bottom: 0;
}

.policy-section h3 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.18;
}

.policy-section p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.82;
}

.policy-section p + p {
  margin-top: 16px;
}

.contact-section {
  padding-top: 0;
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  padding: clamp(28px, 5vw, 54px);
  box-shadow: var(--shadow);
}

.contact-block {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 20px;
}

.contact-block span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-block a,
.contact-email {
  color: var(--red-deep);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 820;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px clamp(20px, 5vw, 64px);
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  max-width: 560px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.not-found {
  display: grid;
  min-height: 100vh;
  align-content: center;
  gap: 18px;
  padding: clamp(32px, 7vw, 80px);
}

.not-found img {
  border-radius: 12px;
}

.not-found .button {
  width: max-content;
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 20px;
    font-size: 0.9rem;
  }

  .hero,
  .game-card,
  .studio-band,
  .studio-grid,
  .content-layout,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .policy-meta {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .policy-meta div,
  .studio-grid li {
    min-height: auto;
  }

  .button {
    width: 100%;
  }

  .signal-board,
  .game-board {
    padding: 18px;
  }

  .board-plot,
  .trajectory-field {
    height: 230px;
  }
}
