:root {
  color-scheme: dark;
  --ink: #f7f3ea;
  --muted: #abb3c7;
  --night: #0b1020;
  --panel: #151d33;
  --panel-light: #1c2742;
  --line: rgba(255, 255, 255, 0.12);
  --pink: #ff4f9a;
  --blue: #4ca8ff;
  --yellow: #ffcb52;
  --green: #5bd7a4;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(76, 168, 255, 0.12), transparent 30rem),
    radial-gradient(circle at 90% 30%, rgba(255, 79, 154, 0.11), transparent 32rem),
    var(--night);
  color: var(--ink);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: space-between;
  justify-content: space-between;
  padding: 3px;
}

.brand-mark i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.site-header nav,
footer div {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  padding: 72px 0 86px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(54px, 7.5vw, 94px);
  font-weight: 830;
}

.hero h1 span {
  color: var(--pink);
}

.lede {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

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

.button.primary {
  background: var(--pink);
  color: #130611;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.game-card {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 0.86;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(145deg, var(--panel-light), var(--panel));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.game-card > p {
  position: absolute;
  bottom: 20px;
  left: 50%;
  margin: 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.score-chip {
  position: absolute;
  top: 26px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #0c1020;
  font-weight: 850;
}

.score-chip.pink {
  left: 26px;
  background: var(--pink);
}

.score-chip.blue {
  right: 26px;
  background: var(--blue);
}

.mini-board {
  position: absolute;
  inset: 112px 58px 82px;
}

.dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  z-index: 3;
}

.d1, .d5, .d9, .d13 { left: 0%; }
.d2, .d6, .d10, .d14 { left: 33.33%; }
.d3, .d7, .d11, .d15 { left: 66.66%; }
.d4, .d8, .d12, .d16 { left: 100%; }
.d1, .d2, .d3, .d4 { top: 0%; }
.d5, .d6, .d7, .d8 { top: 33.33%; }
.d9, .d10, .d11, .d12 { top: 66.66%; }
.d13, .d14, .d15, .d16 { top: 100%; }

.claimed {
  position: absolute;
  width: 33.33%;
  height: 33.33%;
  border: 7px solid;
  border-radius: 4px;
  z-index: 2;
}

.claimed.one {
  top: 0;
  left: 0;
  border-top-color: var(--pink);
  border-right-color: var(--blue);
  border-bottom-color: var(--yellow);
  border-left-color: var(--green);
  background: rgba(255, 79, 154, 0.34);
  box-shadow: inset 0 0 24px rgba(255, 79, 154, 0.18);
}

.claimed.two {
  top: 66.66%;
  left: 33.33%;
  border-top-color: var(--blue);
  border-right-color: var(--pink);
  border-bottom-color: var(--green);
  border-left-color: var(--yellow);
  background: rgba(76, 168, 255, 0.34);
  box-shadow: inset 0 0 24px rgba(76, 168, 255, 0.18);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.features article {
  padding: 48px 36px;
}

.features article + article {
  border-left: 1px solid var(--line);
}

.feature-number {
  color: var(--pink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.features h2 {
  margin: 32px 0 12px;
  font-size: 28px;
}

.features p,
.privacy-callout p,
.how-to li span,
.page-title > p,
.panel p,
.panel li,
.contact-card p,
.policy-copy p {
  color: var(--muted);
}

.how-to {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  padding: 110px 0;
}

.how-to h2,
.privacy-callout h2,
.contact-card h2 {
  font-size: clamp(38px, 5vw, 58px);
}

.how-to ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.how-to li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.how-to li strong {
  color: var(--blue);
}

.privacy-callout,
.contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 100px;
  padding: clamp(34px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
}

.privacy-callout h2,
.privacy-callout p:last-child,
.contact-card h2,
.contact-card p:last-child {
  margin-bottom: 0;
}

.privacy-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 12px rgba(91, 215, 164, 0.1);
}

.text-link {
  white-space: nowrap;
  color: var(--green);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer p {
  margin: 0;
}

footer a {
  text-decoration: none;
}

.page-main {
  padding: 90px 0 110px;
}

.page-title {
  max-width: 760px;
  margin-bottom: 72px;
}

.page-title h1 {
  margin-bottom: 24px;
  font-size: clamp(58px, 9vw, 108px);
}

.page-title > p:not(.eyebrow) {
  max-width: 670px;
  font-size: 20px;
}

.page-title .button {
  margin-top: 18px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 90px;
}

.panel {
  min-height: 330px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.panel h2 {
  margin: 32px 0 18px;
  font-size: 30px;
}

.panel-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  color: #0b1020;
  font-weight: 900;
  letter-spacing: 2px;
}

.panel-icon.pink { background: var(--pink); }
.panel-icon.blue { background: var(--blue); }
.panel-icon.yellow { background: var(--yellow); }
.panel-icon.green { background: var(--green); }

.panel ul {
  margin-bottom: 0;
  padding-left: 22px;
}

.settings-path {
  padding: 13px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink) !important;
  font-size: 15px;
  font-weight: 700;
}

.contact-card {
  margin-bottom: 0;
}

.policy .page-title {
  margin-bottom: 86px;
}

.effective-date {
  color: var(--yellow) !important;
  font-size: 14px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 720px);
  gap: clamp(50px, 10vw, 120px);
}

.policy-layout aside {
  align-self: start;
  position: sticky;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.policy-layout aside p {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-layout aside a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.policy-layout aside a:hover {
  color: var(--pink);
}

.policy-copy section {
  padding: 0 0 46px;
  scroll-margin-top: 30px;
}

.policy-copy section + section {
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.policy-copy h2 {
  margin-bottom: 20px;
  font-size: 34px;
}

.policy-copy a {
  color: var(--blue);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .game-card {
    width: min(100%, 480px);
    justify-self: start;
  }

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

  .features article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .how-to,
  .policy-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .policy-layout aside {
    position: static;
    display: none;
  }

  .privacy-callout,
  .contact-card {
    grid-template-columns: auto 1fr;
  }

  .privacy-callout .text-link,
  .contact-card .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

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

  .site-header {
    min-height: 76px;
  }

  .brand > span:last-child {
    display: none;
  }

  .site-header nav,
  footer div {
    gap: 18px;
  }

  .hero {
    padding-top: 56px;
  }

  .game-card {
    border-radius: 26px;
  }

  .mini-board {
    inset-inline: 45px;
  }

  .how-to li {
    grid-template-columns: 88px 1fr;
  }

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

  .panel {
    min-height: 0;
  }

  .privacy-callout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .privacy-dot {
    margin-left: 8px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 28px 0;
  }
}

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

  .button {
    transition: none;
  }
}
