:root {
  --bg: #0b1120;
  --bg-alt: #111a2e;
  --card: #17233d;
  --text: #e7edf9;
  --muted: #b7c2d9;
  --primary: #5eead4;
  --primary-dark: #2dd4bf;
  --border: #2a3a61;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 17, 32, 0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  color: var(--muted);
  font-weight: 500;
}

.main-nav a[aria-current="page"] {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
}

.hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at top right, #1f335f 0, transparent 52%);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: #042b26;
}

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  text-decoration: none;
  border-color: var(--primary);
}

.section {
  padding: 3rem 0;
}

.ad-section {
  padding: 1rem 0;
}

.ad-section-top {
  padding-top: 1.2rem;
}

.ad-slot {
  width: 100%;
  border: 1px dashed var(--primary);
  border-radius: 12px;
  background: #0f1a31;
  text-align: left;
  padding: 0.9rem;
}

.ad-slot-label {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ad-slot ins.adsbygoogle {
  display: block;
  width: 100%;
}

.ad-slot--banner {
  min-height: 92px;
}

.ad-slot--incontent,
.ad-slot--pregame,
.ad-slot--postgame {
  min-height: 160px;
}

.ad-slot--grid-break {
  min-height: 130px;
}

.ad-slot--footer {
  min-height: 90px;
  margin-bottom: 1rem;
}

.ad-slot--sidebar {
  min-height: 280px;
  position: sticky;
  top: 92px;
}

.section-alt {
  background: var(--bg-alt);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
}

.spacing {
  margin-top: 1.5rem;
}

.check-list {
  margin: 0;
  padding-left: 1rem;
}

.prose {
  max-width: 760px;
}

.prose ul {
  padding-left: 1.1rem;
}

.game-shell {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1rem;
}

.game-shell iframe {
  display: block;
  width: 100%;
  min-height: 580px;
  border: 0;
}

.game-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.game-card {
  background: #101b32;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.game-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.game-card p {
  margin: 0.35rem 0;
}

.game-card--ad-break {
  grid-column: 1 / -1;
}

.play-btn {
  margin-top: 0.7rem;
  background: var(--primary);
  color: #042b26;
  border-color: transparent;
}

.play-btn:hover {
  background: var(--primary-dark);
  color: #042b26;
  text-decoration: none;
}

.error-message {
  margin-top: 0.7rem;
  color: #fecaca;
}

.code-block {
  background: #0a1324;
  color: #d5e6ff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  white-space: pre-wrap;
}

.note {
  color: var(--muted);
  margin-top: 0.7rem;
}

.games-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  align-items: start;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #0a1020;
  padding-top: 1.4rem;
}

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

.copyright {
  text-align: center;
  color: var(--muted);
  margin: 0;
  padding: 0.8rem 0 1.2rem;
}

@media (max-width: 800px) {
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .games-layout {
    grid-template-columns: 1fr;
  }

  .ad-slot--sidebar {
    position: static;
    min-height: 140px;
  }

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

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 69px;
    left: 0;
    right: 0;
    padding: 0.8rem 4%;
    background: #0a1020;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
  }

  .main-nav.open {
    display: flex;
  }

  .cta-row {
    flex-wrap: wrap;
  }
}
