/* ═══════════════════════════════════════════
   WEELGAMES — DEEP ARENA DESIGN SYSTEM
   ═══════════════════════════════════════════ */


/* ── Tokens ── */
:root {
  --bg:           #07090f;
  --surface:      #0d1119;
  --surface-2:    #111827;
  --surface-3:    #1a2333;
  --border:       rgba(255,255,255,0.06);
  --border-2:     rgba(255,255,255,0.1);

  --accent:       #6366f1;
  --accent-glow:  rgba(99,102,241,0.18);
  --accent-cyan:  #22d3ee;
  --accent-gold:  #f59e0b;

  --text:         #e8edf5;
  --text-2:       #8896aa;
  --text-3:       #3d4f63;

  --nav-h:        68px;
  --sidebar-w:    252px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-sm:    8px;

  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:     cubic-bezier(0.4, 0, 0.2, 1);
  --t:            0.25s var(--ease-out);
}

/* Light theme override */
[data-theme="light"] {
  --bg:        #f0f2f8;
  --surface:   #ffffff;
  --surface-2: #f5f7fc;
  --surface-3: #eef1f8;
  --border:    rgba(0,0,0,0.07);
  --border-2:  rgba(0,0,0,0.12);
  --text:      #0f172a;
  --text-2:    #475569;
  --text-3:    #94a3b8;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ── Background Ambient Blobs ── */
.bg-ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(100px);
  animation: blobFloat 12s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px; top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  animation-delay: 0s;
}
.blob-2 {
  width: 500px; height: 500px; bottom: -150px; right: -100px;
  background: radial-gradient(circle, rgba(34,211,238,0.08) 0%, transparent 70%);
  animation-delay: -4s;
}
.blob-3 {
  width: 400px; height: 400px; top: 50%; left: 40%;
  background: radial-gradient(circle, rgba(245,158,11,0.05) 0%, transparent 70%);
  animation-delay: -8s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.97); }
}
[data-theme="light"] .blob { display: none; }

/* ── Subtle dot grid ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
[data-theme="light"] body::before {
  background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
}


/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 12px; left: 20px; right: 20px;
  height: var(--nav-h);
  z-index: 1000;
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  background: rgba(13, 17, 25, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
}
[data-theme="light"] nav {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
}

/* Logo */
.logo {
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.logo-icon.full-logo {
  width: 160px; height: 48px;
}
.logo-icon img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}
.logo:hover .logo-icon { transform: scale(1.04); }
.logo span {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 20px; letter-spacing: 0.5px;
  color: var(--text);
}

/* Search */
.search-wrap {
  flex: 1; max-width: 420px; position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 10px 42px 10px 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--text); outline: none;
  transition: var(--t);
}
[data-theme="light"] .search-wrap input { background: var(--surface-2); }
.search-wrap input::placeholder { color: var(--text-3); }
.search-wrap input:focus {
  background: rgba(99,102,241,0.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none; transition: var(--t);
}
.search-wrap input:focus ~ .search-icon { display: none; } /* hide on focus for cleanliness */
.search-kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: var(--text-3);
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 4px; pointer-events: none;
  font-family: 'DM Sans', sans-serif;
}
[data-theme="light"] .search-kbd { background: var(--surface-3); }

/* Nav right */
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  border: none; border-radius: 100px;
  color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: var(--t);
  box-shadow: 0 4px 16px var(--accent-glow);
  white-space: nowrap;
}
.nav-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.05);
  color: var(--text-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.theme-toggle:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
[data-theme="light"] .theme-toggle { background: var(--surface-2); }

.moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; color: #fbbf24; }

/* Mobile menu */
.menu-toggle { display: none; }


/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.main-wrapper {
  display: flex;
  padding-top: calc(var(--nav-h) + 24px);
  position: relative; z-index: 1;
}


/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */
main {
  flex: 1;
  padding: 0 32px 80px;
  min-width: 0;
}

.content-section { max-width: 1440px; margin: 0 auto; padding: 20px 0 40px; }

/* ── Section headers ── */
.section-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px; gap: 12px;
}
.section-header-left {}
.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px; font-weight: 700; letter-spacing: 0.3px;
  color: var(--text); line-height: 1.1;
}
.section-sub {
  font-size: 13px; color: var(--text-3); margin-top: 3px;
}
.section-badge {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 100px;
  background: rgba(99,102,241,0.12);
  color: var(--accent); font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; border: 1px solid rgba(99,102,241,0.2);
  flex-shrink: 0; margin-top: 2px;
}

.section-spacer { height: 48px; }


/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  min-height: 360px;
  display: flex; align-items: flex-end;
  margin-bottom: 48px;
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring);
}
.hero-card:hover {
  transform: translateY(-4px);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-icon-wrap {
  position: absolute; right: 80px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease-spring);
}
.hero-card:hover .hero-icon-wrap { transform: translateY(-50%) scale(1.08) rotate(-3deg); }
.hero-icon-wrap span { font-size: 180px; line-height: 1; filter: drop-shadow(0 0 40px rgba(0,0,0,0.2)); }
.hero-icon-wrap svg { width: 160px; height: 160px; filter: drop-shadow(0 0 40px currentColor); opacity: 0.9; }
.hero-gradient {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, var(--bg) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 40%, transparent 100%),
              linear-gradient(to top, var(--bg) 0%, transparent 50%);
}
[data-theme="light"] .hero-gradient {
  background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 40%, transparent 100%),
              linear-gradient(to top, rgba(255,255,255,0.8) 0%, transparent 50%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 48px 56px;
  max-width: 560px;
}
.hero-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent-cyan); margin-bottom: 12px;
}
.hero-cat::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}
.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 52px; font-weight: 700; line-height: 1;
  color: var(--text); letter-spacing: 0.5px; margin-bottom: 12px;
}
.hero-desc {
  font-size: 15px; color: var(--text-2);
  line-height: 1.6; margin-bottom: 28px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; }
.hero-play-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 100px;
  font-size: 15px; font-weight: 700; font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: var(--t);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.hero-play-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px var(--accent-glow); }
.hero-rating {
  display: flex; align-items: center; gap: 5px;
  font-size: 14px; color: var(--accent-gold);
  font-weight: 600;
}


/* ═══════════════════════════════════════════
   GAME CARDS GRID
   ═══════════════════════════════════════════ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.featured-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
}

/* ── Individual Card ── */
.game-card {
  --c: var(--accent);
  position: relative; overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  aspect-ratio: 1/1;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s;
}
.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--c);
  z-index: 2;
}
.game-card.card-large {
  grid-column: span 2; grid-row: span 2; aspect-ratio: auto;
}
.game-card.card-wide { grid-column: span 2; aspect-ratio: auto; }

/* Thumbnail */
.card-thumb {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.game-card:hover .card-thumb-img { transform: scale(1.08); }

.card-thumb-icon {
  font-size: 72px; line-height: 1;
  transition: transform 0.4s var(--ease-spring);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}
.game-card.card-large .card-thumb-icon { font-size: 120px; }
.card-thumb-svg {
  width: 70px; height: 70px;
  transition: transform 0.4s var(--ease-spring);
  filter: drop-shadow(0 0 20px currentColor);
  opacity: 0.85;
}
.game-card.card-large .card-thumb-svg { width: 110px; height: 110px; }
.game-card:hover .card-thumb-icon,
.game-card:hover .card-thumb-svg {
  transform: scale(1.1) rotate(-3deg);
  opacity: 1;
}

/* Bottom info overlay — always visible */
.card-info-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  padding: 32px 14px 10px;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 95%, transparent) 0%, color-mix(in srgb, var(--bg) 60%, transparent) 60%, transparent 100%);
  display: flex; flex-direction: column; gap: 4px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.game-card:hover .card-info-overlay {
  opacity: 1;
}
.card-name {
  font-weight: 700; font-size: 14px; color: var(--text);
  line-height: 1.2; letter-spacing: 0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-card.card-large .card-name { font-size: 20px; }
.card-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--c); opacity: 0.9;
}

/* Play button — appears on hover */
.card-play-overlay {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s var(--ease-out);
  background: color-mix(in srgb, var(--bg) 30%, transparent);
}
.game-card:hover .card-play-overlay { opacity: 1; }
.card-play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(8px);
  border: 2px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s var(--ease-spring), background 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.card-play-btn:hover { transform: scale(1.12); background: var(--accent); border-color: var(--accent); }
.card-play-btn svg { stroke: var(--text); margin-left: 3px; }

/* Hover background color tint */
.card-color-bg {
  position: absolute; inset: 0; z-index: 1;
  transition: opacity 0.3s;
  opacity: 1;
}


/* ── Empty state ── */
.empty-state {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 20px; gap: 12px; text-align: center;
}
.empty-state p {
  font-size: 18px; font-weight: 600; color: var(--text-2);
}
.empty-state span {
  font-size: 14px; color: var(--text-3);
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.footer-brand img {
  width: 28px; height: 28px; object-fit: contain;
}
.footer-copy { font-size: 12.5px; color: var(--text-3); }


/* ═══════════════════════════════════════════
   GAME VIEW — THEATER MODE
   ═══════════════════════════════════════════ */
.game-view {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: var(--bg);
  flex-direction: column;
}
.game-view.open {
  display: flex;
  animation: theaterIn 0.3s var(--ease-out);
}
@keyframes theaterIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

/* Game view header */
.gv-header {
  height: 60px; flex-shrink: 0;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-2);
  display: flex; align-items: center; padding: 0 18px; gap: 14px;
}
.gv-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--t); flex-shrink: 0;
}
.gv-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.gv-back-btn:hover { background: var(--surface-3); color: var(--text); border-color: var(--border-2); }

.gv-game-info { display: flex; flex-direction: column; gap: 2px; }
.gv-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 17px; color: var(--text);
  letter-spacing: 0.3px; line-height: 1;
}
.gv-meta {
  display: flex; align-items: center; gap: 10px;
}
.gv-meta-pill {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px;
  background: var(--surface-3);
  color: var(--text-2);
}
.gv-meta-rating {
  font-size: 11px; color: var(--accent-gold); font-weight: 600;
  display: flex; align-items: center; gap: 3px;
}

.gv-actions { margin-left: auto; display: flex; gap: 8px; }

/* Game view body */
.gv-content {
  flex: 1; display: flex;
  padding: 16px; gap: 14px; min-height: 0;
}

/* Frame */
.gv-frame-wrap {
  flex: 1; position: relative;
  border-radius: var(--radius); overflow: hidden;
  /* Neon border glow */
  box-shadow: 0 0 0 1px rgba(99,102,241,0.3), 0 0 40px rgba(99,102,241,0.1), 0 24px 60px rgba(0,0,0,0.7);
}
.gv-frame-container {
  width: 100%; height: 100%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden; position: relative;
}
.gv-frame-container iframe {
  width: 100%; height: 100%; border: none; display: block;
}
.gv-frame-container.loading .gv-loader {
  opacity: 1; visibility: visible;
}
.gv-loader {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #000;
  z-index: 10;
  gap: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(99, 102, 241, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}
.gv-loader span {
  color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Sidebar */
.gv-sidebar {
  width: 300px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.gv-sidebar::-webkit-scrollbar { width: 3px; }
.gv-sidebar::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

.sb-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.sb-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 12px;
}
.sb-instructions {
  font-size: 13px; line-height: 1.7; color: var(--text-2);
}
.sb-instructions b, .sb-instructions strong { color: var(--accent); font-weight: 600; }

/* Sidebar game cards */
.sb-games-list { display: flex; flex-direction: column; gap: 8px; }
.sb-game-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer; transition: var(--t);
  background: var(--surface);
}
.sb-game-card:hover {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  transform: translateX(4px);
}
.sb-thumb {
  width: 46px; height: 46px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.sb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sb-info {}
.sb-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.2; }
.sb-plays { font-size: 11px; color: var(--text-3); margin-top: 2px; }


/* ═══════════════════════════════════════════
   ENTRANCE ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.game-card {
  animation: fadeUp 0.4s var(--ease-out) both;
}
.game-card:nth-child(1)  { animation-delay: 0.04s; }
.game-card:nth-child(2)  { animation-delay: 0.08s; }
.game-card:nth-child(3)  { animation-delay: 0.12s; }
.game-card:nth-child(4)  { animation-delay: 0.16s; }
.game-card:nth-child(5)  { animation-delay: 0.20s; }
.game-card:nth-child(6)  { animation-delay: 0.24s; }
.game-card:nth-child(7)  { animation-delay: 0.28s; }
.game-card:nth-child(8)  { animation-delay: 0.32s; }
.game-card:nth-child(n+9) { animation-delay: 0.36s; }


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  :root { --sidebar-w: 220px; }
  .hero-title { font-size: 42px; }
  .hero-icon-wrap span { font-size: 140px; }
  .hero-icon-wrap svg { width: 130px; height: 130px; }
  .hero-icon-wrap { right: 50px; }
}

@media (max-width: 1024px) {
  nav { padding-left: 58px; }
  .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 9px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border); color: var(--text-2); cursor: pointer;
    z-index: 1010;
  }
  .menu-toggle:hover { background: var(--accent); color: #fff; }
  aside {
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease-out);
    background: var(--bg);
    border-right: 1px solid var(--border-2);
    box-shadow: none;
  }
  aside.open {
    transform: translateX(0);
    box-shadow: 16px 0 48px rgba(0,0,0,0.4);
  }
  main { margin-left: 0; padding: 0 24px 80px; }
  .gv-sidebar { display: none; }
  .nav-btn span { display: none; }
  .nav-btn { padding: 8px 12px; }
  .search-kbd { display: none; }
}

@media (max-width: 640px) {
  nav { height: 56px; left: 12px; right: 12px; top: 8px; padding-left: 52px; padding-right: 12px; }
  :root { --nav-h: 56px; }
  .logo span { display: none; }
  main { padding: 0 14px 60px; }
  .hero-card { min-height: 260px; }
  .hero-title { font-size: 32px; }
  .hero-content { padding: 28px 28px; }
  .hero-desc { display: none; }
  .hero-icon-wrap { display: none; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .game-card.card-large, .game-card.card-wide { grid-column: span 1; }
  .section-title { font-size: 21px; }
  .nav-btn { display: none; }
}
