:root {
  color-scheme: light;
  --page: #f6faf7;
  --paper: #ffffff;
  --ink: #182234;
  --muted: #5d6b7a;
  --line: #d8e2dc;
  --grass: #27915d;
  --grass-dark: #126542;
  --sky: #16a9d7;
  --gold: #ffc857;
  --red: #e95d4f;
  --blue: #2e69d8;
  --navy: #142037;
  --shadow: 0 18px 44px rgba(24, 34, 52, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(39, 145, 93, 0.13) 0 18%, transparent 18% 100%),
    linear-gradient(180deg, #f6faf7 0%, #ffffff 47%, #fff7df 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0.55rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: auto;
  height: 56px;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav a,
.site-footer a {
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  padding: 0.45rem 0.68rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  background: rgba(39, 145, 93, 0.12);
}

.play-section {
  display: grid;
  grid-template-columns: minmax(340px, 1.22fr) minmax(280px, 0.78fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  width: min(1180px, calc(100% - 2rem));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.game-panel,
.summary-panel,
.rating-card,
.feature-grid article,
.clean-note,
.policy-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.game-panel {
  overflow: hidden;
}

.game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--grass-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 3.25rem;
  line-height: 1;
}

h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.14;
}

h3 {
  margin: 0 0 0.62rem;
  font-size: 1.08rem;
  line-height: 1.2;
}

p {
  margin: 0;
  color: #34455c;
}

p + p {
  margin-top: 0.9rem;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(68px, 1fr));
  gap: 0.5rem;
}

.score-grid div {
  min-width: 0;
  padding: 0.55rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f8f5;
  text-align: center;
}

.score-grid span,
.control-grid label span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.score-grid strong {
  display: block;
  margin-top: 0.08rem;
  font-size: 1.24rem;
  line-height: 1;
}

.field-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 12 / 7;
  margin: 0 1rem;
  border: 1px solid rgba(18, 101, 66, 0.35);
  border-radius: 8px;
  background: #0f7147;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.screen-message {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 58px;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(20, 32, 55, 0.86);
  color: #ffffff;
}

.screen-message.is-visible {
  display: flex;
}

.screen-message span {
  color: #e0f2e7;
}

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

.control-grid label {
  display: grid;
  grid-column: span 3;
  gap: 0.35rem;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

button:hover:not(:disabled) {
  border-color: rgba(39, 145, 93, 0.65);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.primary-button {
  background: linear-gradient(135deg, var(--gold), #fff289 48%, var(--sky));
  border-color: rgba(18, 101, 66, 0.42);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--grass);
}

.summary-panel {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1rem, 3vw, 1.4rem);
}

.summary-logo {
  display: block;
  width: min(360px, 100%);
  height: auto;
}

.summary-panel p {
  font-size: 1.02rem;
}

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

.trust-strip div {
  min-width: 0;
  padding: 0.72rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf8;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 0.86rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.content-band {
  padding: 4.2rem 0;
  background: rgba(255, 255, 255, 0.74);
}

.pitch-band {
  background:
    linear-gradient(90deg, rgba(39, 145, 93, 0.12), rgba(255, 200, 87, 0.18)),
    #ffffff;
}

.section-inner {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.rating-card {
  display: grid;
  justify-items: center;
  padding: 1.4rem;
  text-align: center;
}

.rating-card strong {
  color: var(--red);
  font-size: 4rem;
  line-height: 1;
}

.rating-card span {
  font-weight: 900;
}

.rating-card p {
  max-width: 16rem;
  margin-top: 0.8rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
}

.feature-grid article {
  padding: 1.1rem;
}

.feature-grid article:nth-child(1) {
  border-top: 4px solid var(--blue);
}

.feature-grid article:nth-child(2) {
  border-top: 4px solid var(--gold);
}

.feature-grid article:nth-child(3) {
  border-top: 4px solid var(--grass);
}

.clean-note {
  padding: 1.25rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
}

.site-footer div {
  display: grid;
  gap: 0.1rem;
}

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

.policy-page {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.policy-hero {
  padding: 1rem 0 1.25rem;
}

.policy-hero h1 {
  margin-bottom: 1rem;
}

.policy-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
}

.policy-card h2 {
  margin: 1.15rem 0 0;
  font-size: 1.35rem;
}

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

.policy-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #34455c;
}

.policy-list li + li {
  margin-top: 0.45rem;
}

@media (max-width: 920px) {
  .play-section,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .play-section {
    min-height: auto;
    padding-top: 1rem;
  }

  .summary-panel {
    order: -1;
  }
}

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

  .brand img {
    height: 50px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a,
  .site-footer a {
    padding: 0.42rem 0.5rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .game-head,
  .screen-message,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .score-grid,
  .trust-strip,
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  .control-grid label {
    grid-column: auto;
  }
}
