@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700;900&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #080b12;
  color: #e2e8f4;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════════
   CSS TOKENS
═══════════════════════════════════════════════ */
:root {
  --bg-0: #04060c;
  --bg-1: #080b12;
  --bg-2: #0d1120;
  --bg-3: #13192e;
  --bg-4: #1a2240;
  --bg-5: #212d52;
  --border: rgba(255,255,255,.06);
  --border-2: rgba(255,255,255,.1);
  --border-3: rgba(255,255,255,.16);
  --accent: #ff6b2b;
  --accent-2: #ff8f5e;
  --accent-dark: #e85500;
  --accent-glow: rgba(255,107,43,.2);
  --blue: #4a9eff;
  --cyan: #00d4c8;
  --green: #22c55e;
  --yellow: #fbbf24;
  --purple: #a78bfa;
  --pink: #f472b6;
  --red: #ef4444;
  --text-1: #f0f4ff;
  --text-2: #8a9ab8;
  --text-3: #4a5678;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --shadow-card: 0 4px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.7);
  --transition: .2s cubic-bezier(.4,0,.2,1);
  --header-h: 64px;
  --catbar-h: 46px;
}

/* ═══════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-5); border-radius: 3px; }

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(8,11,18,.96);
  border-bottom: 1px solid var(--border-2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center;
  padding: 0 28px; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; cursor: pointer; user-select: none;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px var(--accent-glow);
}
.logo-mark svg { width: 18px; height: 18px; fill: #fff; }
.logo-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px; font-weight: 700; letter-spacing: .5px;
}
.logo-name em { color: var(--accent); font-style: normal; }

/* Search */
.header-search {
  flex: 1; max-width: 500px; position: relative;
}
.header-search input {
  width: 100%; height: 38px;
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: var(--r-lg); padding: 0 16px 0 42px;
  color: var(--text-1); font-size: 14px; font-family: 'DM Sans', sans-serif;
  transition: var(--transition); outline: none;
}
.header-search input:focus {
  background: var(--bg-4); border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.header-search input::placeholder { color: var(--text-3); }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
}
/* Search dropdown */
.search-results {
  display: none; position: absolute; top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-3); border: 1px solid var(--border-3);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  z-index: 200; overflow: hidden; max-height: 380px; overflow-y: auto;
}
.search-results.open { display: block; }
.sr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; cursor: pointer; transition: var(--transition);
}
.sr-item:hover { background: var(--bg-4); }
.sr-thumb {
  width: 48px; height: 38px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.sr-name { font-size: 14px; font-weight: 600; }
.sr-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.sr-empty { padding: 24px; text-align: center; color: var(--text-3); font-size: 14px; }

/* Nav */
.header-nav {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
}
.nav-btn {
  padding: 7px 14px; border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  background: transparent; transition: var(--transition);
  white-space: nowrap;
}
.nav-btn:hover { background: var(--bg-3); color: var(--text-1); }
.nav-btn.active { color: var(--accent); }
.nav-btn-2p {
  background: rgba(167,139,250,.1); border: 1px solid rgba(167,139,250,.25);
  color: var(--purple); border-radius: var(--r-md);
  padding: 7px 16px; font-size: 13px; font-weight: 600;
  transition: var(--transition);
}
.nav-btn-2p:hover { background: rgba(167,139,250,.18); }

/* ═══════════════════════════════════════════════
   CATEGORY BAR
═══════════════════════════════════════════════ */
#cat-bar {
  position: sticky; top: var(--header-h); z-index: 900;
  height: var(--catbar-h);
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 2px;
  padding: 0 24px; overflow-x: auto; scrollbar-width: none;
}
#cat-bar::-webkit-scrollbar { display: none; }
.cat-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 0 16px; height: 100%;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: transparent; white-space: nowrap; flex-shrink: 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.cat-btn:hover { color: var(--text-1); }
.cat-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.cat-count {
  font-size: 11px; padding: 2px 7px; border-radius: 20px;
  background: var(--bg-4); color: var(--text-3); font-weight: 500;
  transition: var(--transition);
}
.cat-btn.active .cat-count {
  background: rgba(255,107,43,.15); color: var(--accent);
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#hero {
  position: relative; overflow: hidden;
  padding: 52px 28px 48px;
}
#hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(255,107,43,.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 100% 20%, rgba(74,158,255,.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 50% 110%, rgba(167,139,250,.04) 0%, transparent 55%);
}
.hero-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 52px; align-items: center; position: relative;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,43,.1); border: 1px solid rgba(255,107,43,.25);
  color: var(--accent-2); font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 30px;
  letter-spacing: .3px; margin-bottom: 20px; text-transform: uppercase;
}
.hero-tag-dot {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; animation: tagPulse 1.5s ease-in-out infinite;
}
@keyframes tagPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 58px; font-weight: 700;
  line-height: 1.04; letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero-title .hl {
  color: var(--accent); position: relative; display: inline-block;
}
.hero-title .hl::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}
.hero-desc {
  font-size: 16px; line-height: 1.75; color: var(--text-2);
  max-width: 460px; margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; padding: 13px 28px; border-radius: var(--r-lg);
  font-size: 15px; font-weight: 700; transition: var(--transition);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,107,43,.45);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-3); border: 1px solid var(--border-3);
  color: var(--text-1); padding: 13px 24px;
  border-radius: var(--r-lg); font-size: 15px; font-weight: 500;
  transition: var(--transition);
}
.btn-secondary:hover { background: var(--bg-4); }

/* Stats strip */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--border-2); gap: 1px;
  border: 1px solid var(--border-2); border-radius: var(--r-lg);
  overflow: hidden; max-width: 420px;
}
.stat-box { background: var(--bg-2); padding: 14px 12px; text-align: center; }
.stat-num {
  font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700;
  color: var(--accent); line-height: 1; display: block; margin-bottom: 3px;
}
.stat-lbl {
  font-size: 10px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .5px; font-weight: 500;
}

/* Hero right — featured grid */
.hero-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 210px 140px; gap: 10px;
}
.feat-card {
  border-radius: var(--r-xl); overflow: hidden; cursor: pointer;
  position: relative; border: 1px solid var(--border-2);
  transition: var(--transition);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.5); border-color: var(--border-3); }
.feat-card.large { grid-column: 1 / 2; grid-row: 1 / 3; }
.feat-emoji {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%);
  font-size: 64px; filter: drop-shadow(0 4px 16px rgba(0,0,0,.5));
  transition: var(--transition);
}
.feat-card.large .feat-emoji { font-size: 82px; }
.feat-card:hover .feat-emoji { transform: translate(-50%, -65%) scale(1.08); }
.feat-info {
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 60%, transparent 100%);
  position: relative; z-index: 1;
}
.feat-name { font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700; }
.feat-meta { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px; }
.feat-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 700; padding: 3px 9px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .3px; z-index: 2;
}
.badge-hot { background: var(--accent); color: #fff; }
.badge-new { background: var(--cyan); color: #000; }
.badge-2p { background: rgba(167,139,250,.25); color: var(--purple); border: 1px solid rgba(167,139,250,.4); }

/* ═══════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════ */
#main-content { max-width: 1400px; margin: 0 auto; padding: 36px 28px 72px; }

/* Section */
.section { margin-bottom: 48px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title-wrap { display: flex; align-items: center; gap: 12px; }
.section-icon {
  width: 34px; height: 34px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.si-fire { background: rgba(255,107,43,.12); }
.si-star { background: rgba(251,191,36,.1); }
.si-new { background: rgba(0,212,200,.1); }
.si-mp { background: rgba(167,139,250,.1); }
.si-all { background: rgba(74,158,255,.1); }
.section-title {
  font-family: 'Rajdhani', sans-serif; font-size: 21px; font-weight: 700; letter-spacing: .3px;
}
.section-title em { color: var(--accent); font-style: normal; }
.section-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.see-all {
  display: flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: 13px; font-weight: 500;
  background: rgba(255,107,43,.08); border: 1px solid rgba(255,107,43,.2);
  padding: 6px 14px; border-radius: var(--r-md); transition: var(--transition);
  cursor: pointer;
}
.see-all:hover { background: rgba(255,107,43,.15); }

/* ═══════════════════════════════════════════════
   GAME GRID
═══════════════════════════════════════════════ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
}
.game-grid-lg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 16px;
}

/* ═══════════════════════════════════════════════
   GAME CARD
═══════════════════════════════════════════════ */
.gcard {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative; display: block; color: inherit; text-decoration: none;
}
.gcard:hover {
  transform: translateY(-5px);
  border-color: var(--border-3);
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}
.gcard:hover .gcard-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.gcard:hover .gcard-emoji { transform: scale(1.08) translateY(-3px); }

.gcard-thumb {
  height: 120px; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.gcard-emoji {
  font-size: 52px; transition: var(--transition);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
  z-index: 1;
}
.gcard-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.85);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,107,43,.9); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition); z-index: 2;
}
.gcard-play svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }

.gcard-hot { position: absolute; top: 8px; left: 8px; z-index: 3; }
.gcard-new-badge { position: absolute; top: 8px; left: 8px; z-index: 3; }
.gcard-mp-badge { position: absolute; top: 8px; right: 8px; z-index: 3; }
.gcard-fav {
  position: absolute; bottom: 8px; right: 8px; z-index: 3;
  width: 26px; height: 26px; border-radius: var(--r-sm);
  background: rgba(0,0,0,.5); border: none; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); transition: var(--transition);
  cursor: pointer;
}
.gcard-fav:hover, .gcard-fav.liked { color: var(--pink); }

.gcard-body { padding: 10px 13px 13px; }
.gcard-name {
  font-weight: 600; font-size: 14px; color: var(--text-1);
  margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gcard-foot { display: flex; align-items: center; justify-content: space-between; }
.gcard-cat {
  font-size: 11px; background: var(--bg-4); color: var(--text-3);
  padding: 3px 9px; border-radius: 20px; font-weight: 500; text-transform: capitalize;
}
.gcard-rating {
  display: flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 600; color: var(--yellow);
}
.gcard-plays { font-size: 11px; color: var(--text-3); margin-top: 5px; }
.gcard-best { font-size: 11px; color: var(--accent); margin-top: 4px; font-weight: 500; }

/* ═══════════════════════════════════════════════
   PROMO BANNER
═══════════════════════════════════════════════ */
.promo-banner {
  background: var(--bg-3); border: 1px solid rgba(167,139,250,.2);
  border-radius: var(--r-2xl); padding: 28px 32px;
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 48px; position: relative; overflow: hidden;
}
.promo-banner::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(167,139,250,.1), transparent 70%);
  pointer-events: none;
}
.promo-icon { font-size: 44px; flex-shrink: 0; }
.promo-text h3 {
  font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700;
  margin-bottom: 6px;
}
.promo-text p { font-size: 14px; color: var(--text-2); line-height: 1.6; max-width: 480px; }
.promo-btn {
  margin-left: auto; flex-shrink: 0;
  background: var(--purple); color: #fff;
  padding: 12px 22px; border-radius: var(--r-lg);
  font-size: 13.5px; font-weight: 600; transition: var(--transition);
  white-space: nowrap;
}
.promo-btn:hover { background: #9170e8; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════
   FILTER BAR
═══════════════════════════════════════════════ */
.filter-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.sort-select {
  margin-left: auto; background: var(--bg-3);
  border: 1px solid var(--border-2); color: var(--text-2);
  padding: 7px 14px; border-radius: var(--r-md);
  font-size: 13px; font-family: 'DM Sans', sans-serif; cursor: pointer;
  outline: none; transition: var(--transition);
}
.sort-select:focus { border-color: var(--accent); }

/* ═══════════════════════════════════════════════
   GAME PAGE
═══════════════════════════════════════════════ */
.game-page { max-width: 1400px; margin: 0 auto; padding: 28px 28px 72px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-3); margin-bottom: 24px;
}
.breadcrumb a { transition: var(--transition); }
.breadcrumb a:hover { color: var(--text-1); }
.breadcrumb span { color: var(--text-3); }

.game-layout { display: grid; grid-template-columns: 1fr 256px; gap: 22px; align-items: start; }
.game-header { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.game-header-emoji { font-size: 42px; }
.game-title-block {}
.game-title {
  font-family: 'Rajdhani', sans-serif; font-size: 30px; font-weight: 700; letter-spacing: .3px;
}
.game-meta-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
.meta-badge {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; text-transform: capitalize;
}
.meta-cat { background: var(--bg-4); color: var(--text-3); }
.meta-rating { color: var(--yellow); font-weight: 700; }
.meta-plays { font-size: 12px; color: var(--text-3); }
.meta-2p {
  background: rgba(167,139,250,.12); color: var(--purple);
  border: 1px solid rgba(167,139,250,.3); font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.game-save-btn {
  margin-left: auto; background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: var(--r-md); padding: 8px 16px;
  font-size: 13px; color: var(--text-2); transition: var(--transition);
}
.game-save-btn:hover, .game-save-btn.liked { color: var(--pink); border-color: rgba(244,114,182,.3); }

/* Game stage */
.game-stage-wrap {
  width: 100%; height: 720px;
  background: #000; border-radius: var(--r-xl);
  overflow: hidden; position: relative;
  border: 1px solid var(--border-2);
}
.game-stage-wrap iframe {
  width: 100%; height: 100%; border: none; display: block;
}
/* Overlays for idle/gameover */
.stage-overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; backdrop-filter: blur(6px); background: rgba(0,0,0,.72);
  transition: opacity .3s;
}
.stage-overlay.hidden { opacity: 0; pointer-events: none; }
.stage-overlay-emoji { font-size: 72px; }
.stage-overlay-title { font-family: 'Rajdhani', sans-serif; font-size: 32px; font-weight: 700; }
.stage-controls-hint { display: flex; gap: 14px; }
.ctrl-pill {
  padding: 7px 16px; border-radius: var(--r-md); font-size: 13px; font-weight: 600;
}
.ctrl-p1 { background: rgba(74,158,255,.15); color: #93c5fd; border: 1px solid rgba(74,158,255,.3); }
.ctrl-p2 { background: rgba(244,114,182,.15); color: #f9a8d4; border: 1px solid rgba(244,114,182,.3); }

/* Score + controls row */
.game-info-row { display: grid; gap: 12px; margin-top: 14px; }
.game-info-row.mp { grid-template-columns: 1fr 1fr 1fr; }
.game-info-row.sp { grid-template-columns: 1fr 2fr; }

.score-card {
  border-radius: var(--r-lg); padding: 14px 16px;
  background: var(--bg-2); border: 1px solid var(--border);
}
.score-card.p1 { border-color: rgba(74,158,255,.2); background: rgba(74,158,255,.06); }
.score-card.p2 { border-color: rgba(244,114,182,.2); background: rgba(244,114,182,.06); }
.score-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.score-card.p1 .score-label { color: #60a5fa; }
.score-card.p2 .score-label { color: #f472b6; }
.score-number { font-family: 'Rajdhani', sans-serif; font-size: 38px; font-weight: 700; line-height: 1; }
.score-card.p1 .score-number { color: #93c5fd; }
.score-card.p2 .score-number { color: #f9a8d4; }
.score-best { font-size: 12px; color: var(--text-3); margin-top: 5px; }

.controls-card {
  border-radius: var(--r-lg); padding: 14px 16px;
  background: var(--bg-2); border: 1px solid var(--border);
}
.controls-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); margin-bottom: 10px; }
.ctrl-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.ctrl-key {
  background: var(--bg-4); border: 1px solid var(--border-3);
  border-radius: 5px; padding: 3px 9px;
  font-size: 11px; font-weight: 700; color: var(--text-1);
  font-family: monospace; flex-shrink: 0; white-space: nowrap;
}
.ctrl-desc { font-size: 12px; color: var(--text-2); }

/* Sidebar */
.game-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 16px;
}
.sidebar-title { font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.rounds-list { display: flex; flex-direction: column; gap: 0; }
.round-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px;
}
.round-row:last-child { border-bottom: none; }
.round-winner-p1 { color: #60a5fa; font-weight: 600; }
.round-winner-p2 { color: #f472b6; font-weight: 600; }
.session-summary {
  display: flex; justify-content: space-between; padding: 10px 12px;
  background: var(--bg-3); border-radius: var(--r-md); margin-bottom: 12px;
}
.sim-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: var(--r-md); cursor: pointer; transition: var(--transition);
}
.sim-item:hover { background: var(--bg-3); }
.sim-emoji { font-size: 28px; width: 44px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); flex-shrink: 0; }
.sim-name { font-size: 13px; font-weight: 600; }
.sim-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ═══════════════════════════════════════════════
   MULTIPLAYER PAGE
═══════════════════════════════════════════════ */
.mp-hero {
  text-align: center; padding: 56px 28px 48px;
  background: var(--bg-1); position: relative; overflow: hidden;
}
.mp-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(167,139,250,.08) 0%, transparent 60%);
}
.mp-title {
  font-family: 'Rajdhani', sans-serif; font-size: 52px; font-weight: 700;
  letter-spacing: -1px; margin: 12px 0;
}
.mp-title em { color: var(--purple); font-style: normal; }
.mp-desc { font-size: 16px; color: var(--text-2); max-width: 500px; margin: 0 auto 36px; line-height: 1.7; }
.mp-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 820px; margin: 0 auto; }
.how-step {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 24px 20px; text-align: center;
}
.how-icon { font-size: 32px; margin-bottom: 12px; }
.how-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.how-desc { font-size: 13px; color: var(--text-3); line-height: 1.6; }

.controls-ref {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  max-width: 1400px; margin: 0 auto 40px;
}
.ctrl-ref-card { border-radius: var(--r-xl); padding: 20px 24px; }
.crc-1 { background: rgba(74,158,255,.06); border: 1px solid rgba(74,158,255,.18); }
.crc-2 { background: rgba(244,114,182,.06); border: 1px solid rgba(244,114,182,.18); }
.crc-name { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.crc-1 .crc-name { color: #93c5fd; }
.crc-2 .crc-name { color: #f9a8d4; }
.crc-keys { display: flex; gap: 10px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════ */
#toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--bg-4); border: 1px solid var(--border-3);
  color: var(--text-1); padding: 12px 20px; border-radius: var(--r-lg);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-card);
  z-index: 9000; transform: translateY(80px); opacity: 0;
  transition: .35s cubic-bezier(.34,1.56,.64,1); pointer-events: none;
}
#toast.show { transform: translateY(0); opacity: 1; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
#site-footer {
  background: var(--bg-0); border-top: 1px solid var(--border);
  padding: 16px 28px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-3);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-featured { grid-template-columns: repeat(4, 1fr); grid-template-rows: 130px; }
  .feat-card.large { grid-column: 1/3; grid-row: auto; }
  .game-layout { grid-template-columns: 1fr; }
  .game-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 38px; }
  .header-nav { display: none; }
  #site-header { padding: 0 16px; }
  .hero-featured { display: none; }
  .game-grid, .game-grid-lg { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .controls-ref { grid-template-columns: 1fr; }
  .mp-how { grid-template-columns: 1fr; }
  .game-info-row.mp, .game-info-row.sp { grid-template-columns: 1fr; }
  .game-stage-wrap { height: 480px; }
}
