:root {
  color-scheme: light;
  --ink: #191816;
  --muted: #6f665a;
  --paper: #fff8e8;
  --cream: #f7ecd1;
  --teal: #2f93a0;
  --teal-dark: #1f6f78;
  --gold: #f6a21a;
  --red: #d93d2f;
  --line: #1d1a17;
  --shadow: 0 18px 40px rgba(25, 24, 22, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-hero {
  min-height: 88vh;
  padding: 22px clamp(18px, 4vw, 56px) 48px;
  background:
    linear-gradient(90deg, rgba(255, 248, 232, 0.96), rgba(255, 248, 232, 0.78)),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(47, 147, 160, 0.08) 44px 46px),
    var(--cream);
  border-bottom: 4px solid var(--line);
}

.topbar,
.hero-grid,
.feature-band,
.about,
footer {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-actions > a:not(.button) {
  text-decoration: none;
  font-weight: 750;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--line);
  text-decoration: none;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--line);
}

.button-dark {
  background: var(--ink);
  color: #fffaf0;
}

.button-gold {
  background: var(--gold);
}

.button-outline {
  background: #fffdf5;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 7vw, 88px);
  align-items: center;
  padding-top: clamp(54px, 9vw, 112px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.95;
}

h1 {
  max-width: 780px;
  font-size: clamp(4rem, 13vw, 9.5rem);
  text-transform: uppercase;
  text-shadow: 5px 5px 0 #fffdf5, 8px 8px 0 var(--line);
}

.lede {
  max-width: 620px;
  margin: 30px 0 26px;
  color: #3e3933;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.phone-panel {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(320px, 86vw);
  aspect-ratio: 9 / 18.4;
  padding: 15px;
  border: 5px solid var(--line);
  border-radius: 42px;
  background: #111;
  box-shadow: var(--shadow);
}

.phone-screen {
  height: 100%;
  padding: 24px 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 20%, rgba(246, 162, 26, 0.22), transparent 22%),
    linear-gradient(180deg, var(--teal), var(--teal-dark));
  color: #fff8e8;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.game-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 900;
}

.score-card {
  margin-top: 18px;
  padding: 18px;
  background: #1d1a17;
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 0 var(--line);
}

.score-card span {
  display: block;
  color: #e7d9ba;
  font-weight: 800;
}

.score-card strong {
  display: block;
  color: var(--gold);
  font-size: 3.5rem;
  line-height: 1;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 7px;
  height: 86px;
  padding: 12px;
  background: #fff1d0;
  border: 3px solid var(--line);
  border-radius: 8px;
}

.mini-chart span {
  display: block;
  border-radius: 999px 999px 0 0;
  background: var(--gold);
  border: 2px solid var(--line);
}

.mini-chart span:nth-child(1) { height: 36%; }
.mini-chart span:nth-child(2) { height: 62%; }
.mini-chart span:nth-child(3) { height: 48%; }
.mini-chart span:nth-child(4) { height: 74%; }
.mini-chart span:nth-child(5) { height: 58%; }
.mini-chart span:nth-child(6) { height: 83%; }

.game-menu {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.game-menu a {
  padding: 10px 12px;
  background: #fff8e8;
  color: var(--ink);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 3px 0 var(--line);
  text-align: center;
  text-decoration: none;
  font-weight: 950;
}

main {
  padding: 46px clamp(18px, 4vw, 56px);
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-band article {
  padding: 22px;
  background: #fffdf6;
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 5px 0 var(--line);
}

.feature-band h2,
.about h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}

.feature-band p,
.about p {
  color: var(--muted);
  font-weight: 650;
}

.about {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 64px;
  padding-top: 42px;
  border-top: 3px solid var(--line);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 56px) 38px;
  color: var(--muted);
  font-weight: 800;
}

footer a {
  color: var(--teal-dark);
  text-decoration: none;
}

.verify-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}

.verify-box {
  width: min(460px, 100%);
  padding: 34px;
  background: #fffdf6;
  border: 4px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 7px 0 var(--line);
  text-align: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: #fffdf6;
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 820px) {
  .topbar,
  .hero-grid,
  .about,
  footer {
    align-items: flex-start;
  }

  .topbar,
  footer {
    flex-direction: column;
  }

  .hero-grid,
  .feature-band,
  .about {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.5rem, 20vw, 6.2rem);
  }
}
