:root {
  --ink: #1A1A1A;
  --paper: #FFF8EC;
  --white: #FFFFFF;
  --muted: #4A4640;
  --divider: #D9D1C3;
  --sun: #FFD23F;
  --coral: #FF5A3C;
  --teal: #22B8A0;
  --lilac: #B8A4FF;
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --display: "Lalezar", "Arial Black", sans-serif;
  --body: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.nav { display: flex; gap: 6px; }

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 2px solid transparent;
}

.nav a:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--sun);
  border-bottom: var(--line);
}

.hero .wrap {
  position: relative;
  padding-top: 72px;
  padding-bottom: 64px;
  max-width: 760px;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  background: var(--ink);
  color: var(--sun);
  padding: 4px 12px;
  border-radius: 6px;
}

.title {
  margin: 10px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 88px);
  line-height: 1;
  color: var(--white);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink);
}

.lede {
  max-width: 34em;
  margin: 22px auto 28px;
  font-size: 19px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.confetti {
  position: absolute;
  border: 3px solid var(--ink);
  pointer-events: none;
}

.c1 { width: 44px; height: 18px; background: var(--coral); border-radius: 5px; top: 30px; left: 8%; transform: rotate(28deg); }
.c2 { width: 26px; height: 26px; background: var(--teal); border-radius: 50%; bottom: 36px; left: 6%; }
.c3 { width: 30px; height: 30px; background: var(--lilac); border-radius: 7px; top: 40px; right: 8%; transform: rotate(18deg); }
.c4 { width: 14px; height: 14px; background: var(--ink); border-radius: 50%; bottom: 60px; right: 10%; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  padding: 14px 24px 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.08s, box-shadow 0.08s;
}

.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn.alt { background: var(--white); color: var(--ink); }

.btn.disabled {
  background: var(--divider);
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

/* ---------- Sections ---------- */

section { padding: 72px 0 8px; }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 48px);
  line-height: 1.05;
  margin: 0 0 8px;
  text-align: center;
}

.sub {
  color: var(--muted);
  margin: 0 auto 40px;
  max-width: 36em;
  text-align: center;
}

/* ---------- Game grid ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 72px;
}

.game-card {
  position: relative;
  background: var(--white);
  border: var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-card.upcoming { background: #FBF5E6; }

.ribbon {
  position: absolute;
  top: 18px;
  right: -8px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px 4px 4px 999px;
  box-shadow: 3px 3px 0 var(--ink);
}

.ribbon.soon { background: var(--sun); color: var(--ink); }
.ribbon.later { background: var(--lilac); color: var(--ink); }
.ribbon.live { background: var(--teal); color: var(--white); }

.game-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.game-tile {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 28px;
  color: var(--ink);
}

.game-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  margin: 0;
}

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

/* ---------- Contact ---------- */

.contact {
  position: relative;
  overflow: hidden;
  background: var(--teal);
  color: var(--white);
  border: var(--line);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 40px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
}

.contact h2 {
  color: var(--white);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
  text-align: left;
}

.contact p { margin: 0; max-width: 28em; }

.contact .btn { background: var(--sun); color: var(--ink); }

/* ---------- Footer ---------- */

footer {
  margin-top: 40px;
  background: var(--ink);
  color: var(--paper);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  padding-bottom: 26px;
  font-size: 15px;
}

footer nav { display: flex; gap: 18px; }
footer a { text-decoration: none; opacity: 0.85; }
footer a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Narrow screens ---------- */

@media (max-width: 820px) {
  .game-grid { grid-template-columns: 1fr; }
  .contact { padding: 30px 24px; }
  .contact h2 { text-align: center; }
  .c2 { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav a { padding: 6px 11px; font-size: 14px; }
  section { padding-top: 56px; }
  .c1, .c3 { display: none; }
}

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