:root {
  color-scheme: light;
  --ink: #18212b;
  --ink-soft: #4b5c69;
  --paper: #f7fbfc;
  --paper-strong: #ffffff;
  --navy: #122d40;
  --navy-bright: #1c4965;
  --aqua: #87e1db;
  --coral: #ff7a66;
  --line: #d6e3e8;
  --shadow: 0 18px 50px rgba(18, 45, 64, 0.11);
  --radius: 22px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(18, 45, 64, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 45, 64, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: #075f78;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: #a33a2d;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
  border-radius: 5px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--paper-strong);
  color: var(--ink);
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 45, 64, 0.97);
  color: white;
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(var(--content), calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid var(--aqua);
  border-radius: 11px 4px 11px 4px;
  color: var(--aqua);
  font-size: 0.85rem;
  letter-spacing: 0;
  transform: rotate(-3deg);
}

.nav-list {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 999px;
  color: #e9f6f8;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: rgba(135, 225, 219, 0.16);
  color: white;
}

.hero {
  overflow: hidden;
  background: var(--navy);
  color: white;
}

.hero-inner {
  position: relative;
  width: min(var(--content), calc(100% - 40px));
  min-height: 500px;
  margin: 0 auto;
  padding: 88px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  align-items: center;
  gap: 72px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--aqua);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.13;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 900;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 670px;
  margin: 0;
  color: #dcebef;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.puzzle-board {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  transform: rotate(3deg);
}

.puzzle-board span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  color: white;
  font-size: 1.45rem;
  font-weight: 900;
}

.puzzle-board span:nth-child(3n + 1) {
  border-color: rgba(135, 225, 219, 0.75);
  color: var(--aqua);
}

.puzzle-board span:nth-child(5n) {
  border-color: rgba(255, 122, 102, 0.8);
  color: #ffb2a5;
}

.section {
  padding: 88px 0;
}

.section-inner,
.legal-shell {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.game-card {
  position: relative;
  min-height: 320px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.game-card::before {
  content: "";
  width: 64px;
  height: 8px;
  margin-bottom: 34px;
  border-radius: 99px;
  background: var(--aqua);
}

.game-card.daily::before {
  background: var(--coral);
}

.game-card h3 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.game-card p {
  margin: 0 0 26px;
  color: var(--ink-soft);
}

.card-link {
  margin-top: auto;
  align-self: flex-start;
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.card-link:hover {
  background: var(--navy-bright);
  color: white;
}

.promise-strip {
  background: #e5f5f5;
}

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

.promise-item {
  padding-left: 20px;
  border-left: 4px solid var(--aqua);
}

.promise-item:nth-child(2) {
  border-color: var(--coral);
}

.promise-item h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.18rem;
}

.promise-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.website-note {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.website-note h2 {
  color: var(--navy);
  font-size: 1.75rem;
}

.website-note p:last-child {
  margin-bottom: 0;
}

.legal-hero {
  background: var(--navy);
  color: white;
}

.legal-hero .section-inner {
  padding: 72px 0 68px;
}

.legal-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 6vw, 4.7rem);
}

.legal-hero .lede {
  max-width: 760px;
  margin: 0 0 20px;
  color: #dcebef;
  font-size: 1.13rem;
}

.date-chip {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid rgba(135, 225, 219, 0.55);
  border-radius: 999px;
  color: var(--aqua);
  font-size: 0.84rem;
  font-weight: 800;
}

.legal-shell {
  padding: 68px 0 96px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 58px;
}

.toc {
  position: sticky;
  top: 104px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc li {
  margin: 6px 0;
}

.toc a {
  color: var(--ink-soft);
  font-size: 0.87rem;
  font-weight: 650;
  text-decoration: none;
}

.toc a:hover {
  color: #075f78;
  text-decoration: underline;
}

.legal-content {
  min-width: 0;
}

.summary-box {
  margin-bottom: 48px;
  padding: 30px;
  border-left: 7px solid var(--coral);
  border-radius: 6px 18px 18px 6px;
  background: #fff1ee;
}

.summary-box h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 1.65rem;
}

.summary-box ul {
  margin-bottom: 0;
}

.legal-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.legal-section:first-of-type {
  border-top: 0;
}

.legal-section h2 {
  margin-bottom: 17px;
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.legal-section h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--navy-bright);
  font-size: 1.12rem;
}

.legal-section p,
.legal-section ul {
  max-width: 820px;
}

.legal-section li + li {
  margin-top: 7px;
}

.callout {
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid #b9dddd;
  border-radius: 14px;
  background: #edfafa;
}

.callout p {
  margin: 0;
}

.site-footer {
  background: #0b2332;
  color: #cfe0e6;
}

.footer-inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.footer-links a {
  color: white;
}

@media (max-width: 840px) {
  .header-inner {
    padding: 13px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav-list {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-list a {
    white-space: nowrap;
  }

  .hero-inner {
    min-height: 0;
    padding: 66px 0 76px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .puzzle-board {
    width: min(72vw, 330px);
    justify-self: center;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .hero-inner,
  .section-inner,
  .legal-shell,
  .footer-inner {
    width: min(100% - 28px, var(--content));
  }

  .hero-inner {
    padding-top: 52px;
  }

  .section {
    padding: 64px 0;
  }

  .game-grid,
  .promise-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 0;
    padding: 28px;
  }

  .legal-hero .section-inner {
    padding: 54px 0;
  }

  .legal-shell {
    padding: 44px 0 68px;
  }

  .summary-box,
  .website-note {
    padding: 24px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
