:root {
  --bg-deep: #06080f;
  --bg-surface: #0c1019;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --text-muted: #8b95a8;
  --accent-start: #7c3aed;
  --accent-end: #22d3ee;
  --ember: #e85d04;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(34, 211, 238, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(124, 58, 237, 0.1), transparent);
  pointer-events: none;
  z-index: 0;
}

a:focus-visible {
  outline: 2px solid var(--accent-end);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 140px 0 72px;
  text-align: center;
}

.hero-logo {
  width: min(200px, 45vw);
  height: auto;
  margin: 0 auto 32px;
  display: block;
  filter: drop-shadow(0 12px 40px rgba(124, 58, 237, 0.35));
}

.hero-tagline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline .gradient-word {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 400;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 48px 0 80px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: var(--text);
}

/* Game cards */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.game-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.game-card--coming {
  opacity: 0.92;
}

.game-card--coming:hover {
  transform: none;
}

.game-card--stember {
  border-color: rgba(232, 93, 4, 0.2);
}

.game-card--stember:hover {
  border-color: rgba(232, 93, 4, 0.35);
}

.game-card-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.game-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.game-meta {
  flex: 1;
  min-width: 0;
}

.game-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.game-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.game-name a:hover {
  color: var(--accent-end);
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.badge--live {
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-end);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.badge--soon {
  background: rgba(232, 93, 4, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(232, 93, 4, 0.35);
}

.game-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

.game-card-actions {
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-start), #5b21b6);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: default;
}

/* Contact */
.contact-block {
  text-align: center;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-block p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 1rem;
}

.contact-email {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-end);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: #67e8f9;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Inner pages */
.page-hero {
  padding: 120px 0 48px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-hero .gradient-line {
  width: 64px;
  height: 4px;
  margin: 20px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
}

.page-main {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

.page-main .container {
  max-width: 720px;
}

.page-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.policy-section {
  margin-bottom: 32px;
}

.policy-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.policy-section p,
.policy-section li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.policy-section ul {
  margin: 10px 0 10px 20px;
}

.text-link {
  color: var(--accent-end);
  text-decoration: none;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: #67e8f9;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 80px 24px 100px;
}

.error-code {
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-message {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 32px;
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

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

  .game-card-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .game-meta {
    width: 100%;
  }

  .game-card-actions {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .game-card {
    padding: 20px;
  }
}
