/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep:    #040a14;
  --bg-mid:     #0a1628;
  --card-bg:    #0f1e35;
  --card-border:#1a2e4a;
  --accent:     #38bdf8;
  --accent-dim: rgba(56,189,248,0.15);
  --text:       #e2e8f0;
  --text-muted: #7a91ad;
  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

/* Ambient glow background */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(56,189,248,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 1100px;
  height: 58px;
  background: rgba(9, 18, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56,189,248,0.12);
  border-radius: 16px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  text-decoration: none;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(56,189,248,0.3);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== SIDEBAR ===== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1001;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: var(--bg-mid);
  border-left: 1px solid var(--card-border);
  padding: 24px 20px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent);
}

.sidebar-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.sidebar-close:hover {
  color: var(--text);
}

.sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.sidebar a:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.sidebar a svg {
  opacity: 0.5;
  flex-shrink: 0;
}

/* ===== MAIN CONTENT ===== */
.page-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
}

.container {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

/* Page eyebrow */
.page-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(56,189,248,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease both;
}

/* Game card wrapper */
.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.game-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}

.game-logo {
  font-size: 36px;
  line-height: 1;
}

.game-header-text h1 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 4px;
}

.game-header-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.section-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ===== GAME LINK LIST ===== */
.game-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-mid);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.game-link:hover {
  border-color: rgba(56,189,248,0.4);
  background: rgba(56,189,248,0.05);
  transform: translateX(4px);
}

.game-link-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.game-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
}

.game-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.game-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

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

.game-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.game-link:hover .game-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ===== DIVIDER ===== */
.list-divider {
  height: 1px;
  background: var(--card-border);
  margin: 6px 0;
  opacity: 0.5;
}

/* ===== FOOTER ===== */
footer {
  padding: 60px 20px 40px;
  text-align: center;
  background: linear-gradient(to bottom, transparent, var(--bg-mid));
  border-top: 1px solid var(--card-border);
  position: relative;
  z-index: 1;
}

footer h2 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 14px;
}

footer p {
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.8;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-links span {
  color: var(--card-border);
}

.footer-copy {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
