:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6475;
  --line: #dfe7f3;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --green: #16a34a;
  --paper: #ffffff;
  --soft: #f5f8fc;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header {
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

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

.mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  font-size: 22px;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.24);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nav-links a,
.footer-links a {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  padding: 9px 13px;
  background: white;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hero {
  padding: 64px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.legal h1 {
  font-size: clamp(34px, 6vw, 58px);
}

h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  background: var(--ink);
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.button.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.game-card {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 28px;
  background: radial-gradient(circle at 20% 15%, rgba(6, 182, 212, 0.26), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(37, 99, 235, 0.22), transparent 25%), white;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.shape {
  position: absolute;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  color: white;
  font-weight: 1000;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.circle {
  left: 34px;
  top: 54px;
  border-radius: 999px;
  background: var(--blue);
}

.square {
  right: 44px;
  top: 88px;
  border-radius: 20px;
  background: var(--green);
}

.triangle {
  left: 50%;
  bottom: 64px;
  width: 0;
  height: 0;
  border-left: 52px solid transparent;
  border-right: 52px solid transparent;
  border-bottom: 92px solid #f97316;
  box-shadow: none;
  transform: translateX(-50%);
}

.rule-card {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  padding: 16px;
  backdrop-filter: blur(10px);
}

.rule-card strong {
  display: block;
  margin-bottom: 4px;
}

.features {
  padding: 28px 0 72px;
}

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

.panel,
.legal-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  background: white;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.panel p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal {
  padding: 56px 0 72px;
}

.legal-card {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 36px);
}

.section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: 0;
  padding-top: 0;
}

ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

li + li {
  margin-top: 8px;
}

.updated {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f172a;
  color: white;
  padding: 34px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.64);
}

.site-footer .footer-links a {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 760px) {
  .nav,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    padding-top: 44px;
  }

  .game-card {
    min-height: 300px;
  }
}
