:root {
  --bg: #070a12;
  --bg-elev: #0e1424;
  --card: rgba(17, 25, 44, 0.82);
  --border: rgba(148, 163, 184, 0.14);
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --emerald: #10b981;
  --text: #f1f5f9;
  --muted: #94a3b8;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: radial-gradient(circle at 15% 0%, #131c36 0%, var(--bg) 55%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  scroll-behavior: smooth;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 18, 0.82);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.04em; }
.brand img { width: 34px; height: 34px; }
.brand span {
  background: linear-gradient(90deg, #fff, #93c5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--cyan); }
.server-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.28);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; }

.hero { padding: 44px 0 36px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1.25fr; gap: 28px; align-items: stretch;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
.hero-copy {
  padding: 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between;
}
.eyebrow {
  display: inline-block; width: fit-content; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  color: var(--cyan); background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.25);
}
.hero-copy h1 { font-size: 36px; line-height: 1.15; margin: 16px 0 14px; letter-spacing: -0.02em; }
.hero-copy p { color: var(--muted); line-height: 1.68; margin: 0 0 20px; font-size: 15px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag {
  font-size: 12px; padding: 4px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.05); color: #cbd5e1; border: 1px solid rgba(255,255,255,0.08);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-primary, .btn-ghost {
  cursor: pointer; border-radius: 12px; font-weight: 700; font-size: 14px;
  padding: 12px 20px; border: none; transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #050811;
}
.btn-ghost {
  background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border);
}
.btn-primary:hover, .btn-ghost:hover { transform: translateY(-1px); opacity: 0.95; }
.stats-strip {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.stat-val { font-size: 20px; font-weight: 800; color: #fff; }
.stat-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }

.arcade-stage {
  border-radius: 20px; background: #050811; border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 40px rgba(34, 211, 238, 0.05);
  overflow: hidden; display: flex; flex-direction: column;
}
.arcade-hud {
  padding: 12px 18px; background: rgba(14, 20, 36, 0.95); border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
}
.hud-metrics { display: flex; gap: 18px; }
.hud-metrics b { color: var(--cyan); }
.canvas-wrap { position: relative; width: 100%; aspect-ratio: 16 / 10; background: #040710; }
#gameCanvas { width: 100%; height: 100%; display: block; touch-action: none; }
.arcade-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(4, 7, 16, 0.76); backdrop-filter: blur(4px); text-align: center; padding: 20px;
}
.arcade-overlay.hidden { display: none; }
.arcade-controls {
  padding: 10px 18px; font-size: 12px; color: var(--muted);
  background: rgba(14, 20, 36, 0.9); border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

.section { padding: 36px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 24px; }
.section-head span { font-size: 13px; color: var(--muted); }
.games-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px;
}
.game-card {
  border-radius: 16px; background: var(--card); border: 1px solid var(--border);
  overflow: hidden; transition: transform 0.18s ease, border-color 0.18s ease;
}
.game-card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.4); }
.game-cover {
  height: 150px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.cover-1 { background: linear-gradient(135deg, #0f172a, #1e1b4b 55%, #0891b2); }
.cover-2 { background: linear-gradient(135deg, #18181b, #3f1d38 55%, #be123c); }
.cover-3 { background: linear-gradient(135deg, #052e16, #14532d 55%, #0d9488); }
.cover-4 { background: linear-gradient(135deg, #1e1b4b, #312e81 55%, #7c3aed); }
.cover-5 { background: linear-gradient(135deg, #271709, #78350f 55%, #d97706); }
.cover-6 { background: linear-gradient(135deg, #0c192c, #1e3a5f 55%, #2563eb); }
.badge-ver {
  align-self: flex-end; font-size: 11px; font-family: ui-monospace, monospace;
  padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,0.45); color: #e2e8f0;
}
.cover-title { font-size: 20px; font-weight: 800; letter-spacing: 0.01em; }
.game-body { padding: 18px; }
.game-body p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.game-meta {
  display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #cbd5e1;
}
.rating { color: var(--amber); font-weight: 700; }

.bottom-split {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px;
}
@media (max-width: 900px) { .bottom-split { grid-template-columns: 1fr; } }
.panel {
  border-radius: 16px; background: var(--card); border: 1px solid var(--border); padding: 22px;
}
.panel h3 { margin: 0 0 16px; font-size: 18px; }
.board-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.board-table th, .board-table td {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(148,163,184,0.1);
}
.board-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.patch-item { padding: 12px 0; border-bottom: 1px solid rgba(148,163,184,0.1); }
.patch-item:last-child { border-bottom: none; }
.patch-item b { font-size: 14px; display: block; margin-bottom: 4px; color: #e2e8f0; }
.patch-item span { font-size: 13px; color: var(--muted); line-height: 1.5; }

.footer {
  margin-top: 40px; padding: 28px 0 40px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
