:root {
  --bg: #0b0b0d;
  --bg-elevated: #141417;
  --border: #232327;
  --text: #f4f4f5;
  --text-muted: #9a9aa2;
  --accent: #e0263f;
  --accent-dim: #7a1420;
  --live-green: #35d07f;
  --radius: 14px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

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

a {
  color: inherit;
}

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  text-decoration: none;
}

.nav-logo img {
  height: 28px;
  width: 28px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(
    ellipse 80% 60% at 50% -10%,
    rgba(224, 38, 63, 0.16),
    transparent 60%
  );
}

.hero-mark {
  height: 84px;
  width: 84px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mark img {
  max-height: 100%;
  max-width: 100%;
  display: block;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero p.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ---------- Stat bar ---------- */

.stat-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}

.stat {
  flex: 1 1 160px;
  padding: 22px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat .value {
  font-size: 1.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stat .label {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.live-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: var(--live-green);
  box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.6);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(53, 208, 127, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(53, 208, 127, 0);
  }
}

/* ---------- Games section ---------- */

.games {
  padding: 72px 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 1.5rem;
  margin: 0;
}

.section-heading p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
}

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

.game-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-elevated), #0f0f12);
  display: flex;
  flex-direction: column;
  min-height: 220px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--text);
}

.game-card[href]:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -12px rgba(224, 38, 63, 0.35);
}

.game-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}

.game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.game-card[href]:hover .game-media img {
  transform: scale(1.07);
}

.game-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.game-card .badge {
  align-self: flex-start;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.badge.badge-live {
  background: rgba(53, 208, 127, 0.14);
  color: var(--live-green);
}

.badge.badge-dev {
  background: rgba(224, 38, 63, 0.14);
  color: var(--accent);
}

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

.game-card .blurb {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

.game-stats {
  display: flex;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.game-stats .g-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.game-stats .g-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.social-links {
  display: flex;
  gap: 18px;
}

.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

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

.copyright {
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 560px) {
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stat:last-child {
    border-bottom: none;
  }
}
