:root {
  --brand: #2756e5;
  --brand-deep: #1a3fb8;
  --ink: #14182b;
  --muted: #5a6178;
  --paper: #ffffff;
  --soft: #f3f6ff;
  --jelly: #ff7ab6;
  --aqua: #3ee0d0;
  --sun: #ffd166;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: 20px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Hero */
.hero {
  position: relative;
  background: var(--brand);
  color: #fff;
  padding-bottom: 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 19px;
}

.brand img {
  border-radius: 10px;
}

.topbar-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.9;
}

.topbar-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.hero-body {
  text-align: center;
  padding-block: 32px 24px;
}

.hero-logo {
  border-radius: 36px;
  box-shadow: 0 18px 40px rgba(10, 20, 80, 0.35);
}

.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 900;
  margin: 28px auto 12px;
  max-width: 14em;
}

.lead {
  font-size: clamp(17px, 2.2vw, 21px);
  max-width: 34em;
  margin: 0 auto 28px;
  opacity: 0.92;
}

.cta {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  font-weight: 900;
  font-size: 20px;
  padding: 16px 34px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 0 var(--brand-deep);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 var(--brand-deep);
}

.cta:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 var(--brand-deep);
}

.drips {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -119px;
  width: 100%;
  height: 120px;
  fill: var(--brand);
  pointer-events: none;
}

/* Sections */
main section {
  padding-block: 56px;
}

#games {
  padding-top: 150px;
}

h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  margin: 0 0 24px;
}

/* Game cards */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.game {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 24px 22px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
  border: 3px solid transparent;
}

.game h3 {
  font-size: 24px;
  font-weight: 900;
  margin: 6px 0 2px;
}

.game p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.game-emoji {
  font-size: 44px;
  line-height: 1;
}

.game-meta {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 10px;
}

.badge {
  position: absolute;
  top: 22px;
  right: 20px;
  font-size: 13px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e3e8f7;
  color: var(--muted);
}

.game.live {
  background: #0e2a47;
  color: #fff;
  border-color: var(--jelly);
  transition: transform 0.15s ease;
}

.game.live p,
.game.live .game-meta {
  color: #c4d4ea;
}

.game.live .badge {
  background: var(--jelly);
  color: #0e2a47;
}

.game.live:hover {
  transform: translateY(-4px) rotate(-0.5deg);
}

.game.soon {
  opacity: 0.85;
}

/* How it works */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.steps li {
  padding: 22px;
  border-radius: var(--radius);
  border: 2px solid #e3e8f7;
}

.steps h3 {
  margin: 12px 0 4px;
  font-size: 20px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-block: 32px 40px;
  border-top: 2px solid #e3e8f7;
  color: var(--muted);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cta,
  .game.live {
    transition: none;
  }
}
