:root {
  --bg: #0f1420;
  --bg-soft: #171e2e;
  --card: #1c2538;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f6ff;
  --muted: #b7c0d8;
  --primary: #ff3b5e;
  --primary-dark: #ce1f44;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% -10%, #253456 0%, transparent 40%), var(--bg);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(13, 19, 32, 0.85);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo img {
  width: 220px;
  max-width: 48vw;
  height: auto;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
}

.hero-main {
  position: relative;
  min-height: 420px;
}

.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 30px;
  background: linear-gradient(180deg, transparent, rgba(8, 12, 20, 0.9));
}

.hero-kicker {
  margin: 0 0 10px;
  color: #ffd07c;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-overlay h1 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.1;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.side-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.side-card h2 {
  margin: 0;
  padding: 14px;
  font-size: 16px;
}

.categories {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.category-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.category-card img {
  width: 26px;
  height: 26px;
}

.games-section {
  margin-top: 30px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
}

.games-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) 2fr;
  gap: 16px;
}

.games-stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.game-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #131b2c;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 59, 94, 0.55);
}

.game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.game-card strong {
  display: block;
  padding: 12px;
  font-size: 14px;
}

.game-card--featured {
  position: relative;
}

.game-card--featured img {
  aspect-ratio: 1 / 1;
}

.game-card--featured strong {
  font-size: 16px;
  padding: 14px 14px 16px;
}

.featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 999px;
  padding: 6px 10px;
}

.game-card--compact img {
  aspect-ratio: 1 / 1;
}

.game-card--compact strong {
  font-size: 13px;
  padding: 10px;
}

.content-section {
  margin-top: 34px;
  padding: 26px;
}

.content-section h2 {
  margin-top: 0;
  font-size: 34px;
}

.content-section h3 {
  margin-top: 24px;
  font-size: 22px;
}

.content-section p {
  color: var(--muted);
  line-height: 1.7;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: #121a29;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #1b2740;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  background: #0c111b;
}

.footer-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

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

  .hero-side {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 74px;
  }

  .brand-logo img {
    width: 180px;
  }

  .header-actions .btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-main {
    min-height: 320px;
  }

  .hero-overlay {
    padding: 18px;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

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

  .games-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-section {
    padding: 16px;
  }

  .content-section h2 {
    font-size: 28px;
  }

  .footer-inner {
    min-height: 74px;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
  }
}
