:root {
  color-scheme: dark light;
  --bg: #0f0f1a;
  --bg-alt: #161628;
  --card: #1c1c34;
  --accent: #7c5cff;
  --accent-soft: rgba(124, 92, 255, 0.12);
  --accent-strong: rgba(124, 92, 255, 0.22);
  --text: #f4f4ff;
  --text-muted: #b5b8d3;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 40px rgba(14, 12, 38, 0.4);
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(124, 92, 255, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 206, 201, 0.2), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
button:hover {
  opacity: 0.85;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

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

.section {
  padding: 80px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.section-copy {
  max-width: 460px;
  color: var(--text-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(15, 15, 26, 0.85);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 20px;
  font-weight: 500;
  color: var(--text-muted);
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--text);
}

.cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  font-weight: 600;
}

.hero {
  padding: 120px 0 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 3.6rem);
  margin: 12px 0 24px;
}

.hero-copy p {
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 28px 0;
}

.hero-actions .primary,
.load-game {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.hero-actions .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-preview {
  position: relative;
}

.hero-card {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(12, 12, 24, 0.9);
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-countdown {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-button:hover,
.filter-button:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.filter-button.active {
  background: var(--accent);
  color: var(--text);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.game-card,
.latest-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.game-card header h3,
.latest-card h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.game-card header p,
.latest-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.iframe-shell {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(7, 7, 16, 0.6);
  min-height: 220px;
  display: grid;
  place-items: center;
}

.iframe-shell iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: none;
  background: #000;
}

.iframe-shell.active iframe {
  display: block;
}

.iframe-shell.active .load-game {
  display: none;
}

.load-game {
  background: linear-gradient(135deg, var(--accent), #00d2ff);
  box-shadow: 0 12px 24px rgba(0, 210, 255, 0.2);
}

.game-card footer,
.latest-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tag {
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
}

.pill-line {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  color: var(--text-muted);
}

.pill-line span {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 18px;
  border-radius: 999px;
}

.category-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.category-card {
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.14), rgba(12, 12, 24, 0.9));
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.category-card h3 {
  margin: 0 0 12px;
}

.category-card p {
  color: var(--text-muted);
  line-height: 1.5;
}

.text-link {
  color: #7cc9ff;
  font-weight: 500;
}

.pitch {
  background: radial-gradient(circle at top right, rgba(124, 92, 255, 0.2), transparent),
    var(--bg-alt);
}

.pitch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.pitch-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(8, 8, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.6;
}

.adsense {
  background: rgba(8, 8, 16, 0.8);
}

.adsense-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ad-slot {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  gap: 12px;
}

.ad-explainer {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.in-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.feed-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  text-align: center;
}

.feed-card.ad {
  background: var(--accent-strong);
  color: var(--accent);
  font-weight: 600;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.newsletter {
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.22), rgba(12, 12, 24, 0.95));
}

.newsletter-card {
  background: rgba(6, 6, 16, 0.6);
  border-radius: 32px;
  padding: 48px;
  display: grid;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.newsletter-form {
  display: grid;
  gap: 12px;
  align-content: start;
}

.newsletter-form input {
  padding: 14px 16px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 14px 16px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.privacy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  background: rgba(7, 7, 14, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.footer-links h3,
.footer-social h3 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.footer-links a,
.footer-social a {
  color: var(--text-muted);
  display: block;
  margin: 6px 0;
  font-size: 0.95rem;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.loading-state {
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .site-header .cta {
    margin-left: auto;
  }

  .hero {
    padding-top: 100px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-card {
    position: static;
    margin-top: -40px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.is-hidden {
  display: none !important;
}

.iframe-shell .loading-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 16, 0.9);
}
