:root {
  --bg: #0d0f17;
  --bg-card: #161925;
  --bg-card-hover: #1d2130;
  --border: #262b3d;
  --text: #f3f5fa;
  --text-muted: #9aa3b8;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-2: #4f46e5;
  --accent-2-hover: #4338ca;
  --success: #10b981;
  --radius: 16px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.14), transparent 45%),
              radial-gradient(circle at top left, rgba(225, 29, 72, 0.12), transparent 40%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 18px;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 15, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-btn:hover {
  color: var(--text);
  background: var(--bg-card);
}

.nav-btn.active {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--border);
}

/* MAIN */
.main-content {
  flex: 1;
  padding-top: 28px;
  padding-bottom: 42px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.2s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HERO */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  margin-bottom: 20px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.18);
  border: 1px solid rgba(79, 70, 229, 0.4);
  color: #c7d2fe;
  margin-bottom: 12px;
}

.hero-card h1 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hero-card h1 span {
  color: #fb7185;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 0.98rem;
  margin-bottom: 22px;
}

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 11px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--accent-2);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--accent-2-hover);
}

/* CARDS */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.info-card,
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.info-card p,
.about-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.card-link,
.card-link-btn {
  color: #fb7185;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* GAMES */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.game-thumb {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.25), rgba(79, 70, 229, 0.25));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}

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

.game-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.game-title-row h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.game-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.tag-live {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 560px) {
  .game-card {
    flex-direction: column;
  }
  .hero-card {
    padding: 22px 18px;
  }
}
