/* ============================================================
   JH Games — CrazyGames-Style Portfolio
   ============================================================ */

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

:root {
  --bg-primary: #0a0a14;
  --bg-secondary: #0e0e1c;
  --bg-card: #12122a;
  --border-color: #1a1a2e;
  --text-primary: #e0e0e8;
  --text-secondary: #9999bb;
  --text-muted: #8888aa;
  --text-dim: #6666aa;
  --text-dimmer: #55557a;
  --text-dimmest: #44446a;
  --accent-purple: #7b2ff7;
  --accent-blue: #00c8ff;
  --accent-pink: #ff2d95;
  --tag-color: #7b8fff;
  --scrollbar-thumb: #2a2a44;
  --scrollbar-hover: #3a3a5a;
  --nav-hover-bg: #1a1a2e;
  --nav-text: #8888aa;
  --overlay-bg: rgba(0,0,0,0.6);
  --sidebar-bg: #0e0e1c;
  --transition-theme: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

body.light-theme {
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --border-color: #ddd;
  --text-primary: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #666;
  --text-dim: #888;
  --text-dimmer: #999;
  --text-dimmest: #aaa;
  --scrollbar-thumb: #ccc;
  --scrollbar-hover: #aaa;
  --nav-hover-bg: #eee;
  --nav-text: #666;
  --overlay-bg: rgba(0,0,0,0.4);
  --sidebar-bg: #ffffff;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  transition: var(--transition-theme);
}

/* ===== SIDEBAR ===== */
#sidebar {
  width: 240px;
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  transition: var(--transition-theme);
}

.sidebar-logo {
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.logo-icon { font-size: 28px; }

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 18px;
  background: linear-gradient(135deg, #00c8ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.1em;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.nav-item:hover { background: var(--nav-hover-bg); color: var(--text-primary); }

.nav-item.active {
  background: linear-gradient(135deg, #7b2ff722, #00c8ff11);
  color: #ffffff;
  border: 1px solid #7b2ff744;
}

body.light-theme .nav-item.active {
  color: #7b2ff7;
}

.nav-icon { font-size: 18px; width: 24px; text-align: center; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.game-count {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.game-count span { color: #7b2ff7; font-weight: 700; }

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
  font-family: inherit;
}
.theme-toggle-btn:hover { color: var(--text-primary); border-color: var(--accent-purple); }

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  margin-bottom: 8px;
}

.github-btn:hover { color: var(--text-primary); }

.copyright { font-size: 11px; color: var(--text-dimmest); }

/* ===== MAIN CONTENT ===== */
#main {
  margin-left: 240px;
  flex: 1;
  min-height: 100vh;
  transition: var(--transition-theme);
  overflow-x: hidden;
}
html, body {
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 60px 40px 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7b2ff722, #00c8ff11, #ff2d9511);
  background-size: 400% 400%;
  animation: hero-shift 10s ease infinite;
}

@keyframes hero-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #00c8ff, #7b2ff7, #ff2d95);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #00c8ff;
}

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== PLAYER COUNTER ===== */
.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30e060;
  margin-right: 6px;
  animation: pulse-dot 2s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(48, 224, 96, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(48, 224, 96, 0); }
}

.stat-num.online-count {
  color: #30e060;
}

.card-players {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.card-players .mini-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #30e060;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

/* ===== SEARCH BAR ===== */
.search-container {
  position: relative;
  max-width: 500px;
}

.search-input {
  width: 100%;
  padding: 12px 44px 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.3s;
}
.search-input:focus { border-color: var(--accent-purple); }
.search-input::placeholder { color: var(--text-dim); }

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: none;
  line-height: 1;
  padding: 4px;
}
.search-clear.visible { display: block; }
.search-clear:hover { color: var(--text-primary); }

.search-results-text {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
  display: none;
}

/* ===== PLAYER ACCOUNTS WIDGET ===== */
.player-widget {
  position: absolute;
  top: 20px;
  right: 40px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}
.player-widget .player-name {
  color: var(--accent-blue);
  font-weight: 600;
}

/* ===== SECTIONS ===== */
.section {
  padding: 32px 40px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}

body.light-theme .section-title {
  -webkit-text-fill-color: initial;
}

/* ===== SORT BAR ===== */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sort-btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.sort-btn:hover { border-color: var(--accent-purple); color: var(--text-primary); }
.sort-btn.active {
  background: linear-gradient(135deg, #7b2ff7, #00c8ff);
  color: #fff;
  border-color: transparent;
}

/* ===== FEATURED CARD ===== */
.featured-card {
  border-radius: 16px;
  overflow: hidden;
}

.featured-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 40px;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.featured-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(123,47,247,0.3);
}

.featured-icon { font-size: 80px; flex-shrink: 0; }
.featured-canvas { flex-shrink: 0; border-radius: 12px; image-rendering: pixelated; }

.featured-info { flex: 1; }

.featured-badge {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ffd700;
  background: #ffd70022;
  border: 1px solid #ffd70044;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.featured-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 8px;
}
body.light-theme .featured-name { color: #1a1a2e; }

.featured-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.featured-tags { margin-bottom: 16px; }

.featured-play {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(135deg, #7b2ff7, #00c8ff);
  padding: 10px 28px;
  border-radius: 8px;
  transition: box-shadow 0.3s, transform 0.2s;
}

.featured-inner:hover .featured-play {
  box-shadow: 0 0 20px rgba(123,47,247,0.5);
  transform: scale(1.05);
}

/* ===== GAME OF THE WEEK ===== */
.gotw-section { padding: 0 40px 12px; }
.gotw-card {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #ffd700;
  box-shadow: 0 0 30px rgba(255,215,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.gotw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,215,0,0.25);
}
.gotw-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 36px;
  text-decoration: none;
  color: inherit;
}
.gotw-badge {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ffd700;
  background: #ffd70022;
  border: 1px solid #ffd70066;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 10px;
  animation: gotw-pulse 2s ease-in-out infinite;
}
@keyframes gotw-pulse {
  0%, 100% { box-shadow: 0 0 5px rgba(255,215,0,0.2); }
  50% { box-shadow: 0 0 15px rgba(255,215,0,0.4); }
}
.gotw-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 6px;
}
body.light-theme .gotw-name { color: #1a1a2e; }
.gotw-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.gotw-canvas { flex-shrink: 0; border-radius: 10px; image-rendering: pixelated; }

/* ===== CAROUSEL ROWS ===== */
.carousel-section { padding: 16px 40px 8px; }
.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.carousel-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}
.carousel-arrows {
  display: flex;
  gap: 8px;
}
.carousel-arrow {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.carousel-arrow:hover { border-color: var(--accent-purple); color: var(--text-primary); }

.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
.carousel-track::-webkit-scrollbar { height: 6px; }
.carousel-track::-webkit-scrollbar-track { background: transparent; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

.carousel-card {
  flex: 0 0 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-color: #7b2ff744;
}
.carousel-card .cc-banner {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.carousel-card .cc-banner canvas { image-rendering: pixelated; }
.carousel-card .cc-info {
  padding: 10px 12px;
}
.carousel-card .cc-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.carousel-card .cc-tags {
  font-size: 10px;
  color: var(--text-dim);
}
.carousel-card .new-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: #ff2d95;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 3;
}

/* Quick play cards are smaller */
.carousel-card.compact {
  flex: 0 0 170px;
}
.carousel-card.compact .cc-banner { height: 80px; }

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ===== GAME CARD ===== */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
}

.game-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.25s, border-color 0.25s;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4), 0 0 20px rgba(123,47,247,0.15);
  border-color: #7b2ff744;
}

.card-banner {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-banner canvas {
  position: relative;
  z-index: 1;
  image-rendering: pixelated;
}

.card-icon {
  font-size: 52px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  transition: transform 0.3s;
}

.game-card:hover .card-icon { transform: scale(1.15); }

/* Hover particle canvas */
.card-banner .hover-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.game-card:hover .card-banner .hover-particles {
  opacity: 1;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 2;
}

.game-card:hover .card-overlay { opacity: 1; }

.play-badge {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #7b2ff7, #00c8ff);
  padding: 10px 24px;
  border-radius: 8px;
  letter-spacing: 0.1em;
  box-shadow: 0 0 20px rgba(123,47,247,0.4);
}

.new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background: #ff2d95;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 3;
  box-shadow: 0 0 10px rgba(255,45,149,0.4);
}

.card-info {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

/* ===== RATING ===== */
.card-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 6px;
}
.card-rating .star {
  font-size: 14px;
  cursor: pointer;
  color: #444;
  transition: color 0.15s;
  line-height: 1;
  user-select: none;
}
.card-rating .star.filled { color: #ffd700; }
.card-rating .star:hover { color: #ffec80; }
.card-rating .rating-val {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 4px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--tag-color);
  background: #7b8fff15;
  border: 1px solid #7b8fff22;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.tag[data-category="action"] { color: #ff6b6b; background: #ff6b6b15; border-color: #ff6b6b33; }
.tag[data-category="strategy"] { color: #6bb5ff; background: #6bb5ff15; border-color: #6bb5ff33; }
.tag[data-category="rpg"] { color: #bb6bff; background: #bb6bff15; border-color: #bb6bff33; }
.tag[data-category="simulation"] { color: #6bffaa; background: #6bffaa15; border-color: #6bffaa33; }
.tag[data-category="adventure"] { color: #ffaa6b; background: #ffaa6b15; border-color: #ffaa6b33; }
.tag[data-category="other"] { color: #ff6bbb; background: #ff6bbb15; border-color: #ff6bbb33; }

/* ===== GAME DETAIL MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modal-fade-in 0.2s ease;
}
.modal-overlay.active { display: flex; }

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modal-slide-in 0.25s ease;
}

@keyframes modal-slide-in {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-banner {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px 18px 0 0;
  position: relative;
}
.modal-banner canvas { image-rendering: pixelated; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(0,0,0,0.8); }

.modal-body { padding: 24px 28px 28px; }
.modal-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.modal-category {
  font-size: 12px;
  color: var(--accent-purple);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.modal-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.modal-meta-item {
  font-size: 12px;
  color: var(--text-dim);
}
.modal-meta-item strong {
  color: var(--text-primary);
}
.modal-controls {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.modal-controls-label {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.modal-tags { margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px; }

.modal-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.modal-play-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(135deg, #7b2ff7, #00c8ff);
  border: none;
  padding: 12px 32px;
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
}
.modal-play-btn:hover {
  box-shadow: 0 0 24px rgba(123,47,247,0.5);
  transform: scale(1.05);
}

.modal-share-btn {
  font-family: inherit;
  font-size: 13px;
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-share-btn:hover { border-color: var(--accent-purple); color: var(--text-primary); }

/* Copy toast */
.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #22cc66;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 600;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== CHANGELOG / WHAT'S NEW ===== */
.changelog-section { padding: 32px 40px; }
.changelog-list {
  list-style: none;
  position: relative;
  padding-left: 24px;
}
.changelog-list::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border-color);
}
.changelog-item {
  position: relative;
  padding: 10px 0 10px 20px;
}
.changelog-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 16px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-purple);
  border: 2px solid var(--bg-primary);
}
.changelog-date {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.changelog-game {
  font-weight: 700;
  color: var(--accent-blue);
  font-size: 13px;
}
.changelog-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b2ff7, #00c8ff);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(123,47,247,0.3);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover { box-shadow: 0 6px 24px rgba(123,47,247,0.5); }

/* ===== SKELETON LOADING ===== */
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== FOOTER (old - replaced by .site-footer) ===== */

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }

/* ===== MOBILE ===== */
#mobile-menu-btn {
  display: none;
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 22px;
  width: 44px; height: 44px;
  border-radius: 10px;
  cursor: pointer;
}

@media (max-width: 768px) {
  #sidebar {
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
  }
  #sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
  }
  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
  #main { margin-left: 0; }
  #mobile-menu-btn { display: block; }
  .hero { padding: 80px 20px 40px; }
  .hero-title { font-size: 2rem; }
  .section { padding: 24px 16px; }
  .carousel-section { padding: 16px 16px 8px; }
  .gotw-section { padding: 0 16px 12px; }
  .changelog-section { padding: 24px 16px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .featured-inner { flex-direction: column; text-align: center; padding: 24px 20px; }
  .staff-picks-grid { grid-template-columns: 1fr !important; }
  .featured-icon { font-size: 56px; }
  .card-banner { height: 130px; }
  .player-widget { top: 14px; right: 16px; font-size: 11px; }
  .gotw-inner { flex-direction: column; text-align: center; padding: 20px; gap: 16px; }
  .modal-content { max-width: 100%; margin: 12px; }
}


@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-banner { height: 100px; }
  .card-icon { font-size: 36px; }
  .card-info { padding: 10px 12px 14px; }
  .card-name { font-size: 13px; }
  .card-desc { font-size: 11px; -webkit-line-clamp: 2; }
  .carousel-card { flex: 0 0 160px; }
  .carousel-card.compact { flex: 0 0 140px; }
}

/* Hide sidebar overlay on desktop */
.sidebar-overlay { display: none; }

/* ===== SIDEBAR ACCOUNT WIDGET ===== */
.sidebar-account {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.sidebar-avatar { font-size: 18px; }
.sidebar-username { color: var(--accent-blue); font-weight: 600; }
.sidebar-guest { color: var(--text-dim); }
.sidebar-signin {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  margin-left: auto;
  transition: color 0.2s;
}
.sidebar-signin:hover { color: var(--accent-blue); }

/* ===== RANDOM GAME BUTTON ===== */
.random-game-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #ffd700;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  background-image: linear-gradient(var(--bg-secondary), var(--bg-secondary)), linear-gradient(135deg, #ffd700, #ff2d95);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  margin-top: 8px;
  width: 100%;
  text-align: left;
}
.random-game-btn:hover {
  background-image: linear-gradient(var(--nav-hover-bg), var(--nav-hover-bg)), linear-gradient(135deg, #ffd700, #ff2d95);
  color: #fff;
}

/* ===== STAFF PICKS ===== */
.staff-picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.staff-pick-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 14px;
  border: 2px solid #ffd70066;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.staff-pick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(255,215,0,0.2);
}
.staff-pick-thumb { flex-shrink: 0; border-radius: 10px; image-rendering: pixelated; }
.staff-pick-info { flex: 1; min-width: 0; }
.staff-pick-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.staff-pick-quote {
  font-size: 13px;
  color: #ffd700;
  font-style: italic;
  margin-bottom: 8px;
}
.staff-pick-badge {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffd700;
  background: #ffd70022;
  border: 1px solid #ffd70044;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ===== PLAY COUNT ===== */
.card-play-count {
  margin-left: 8px;
  color: var(--text-dimmer);
  font-size: 11px;
}

/* ===== COMING SOON ===== */
.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.coming-soon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  position: relative;
  opacity: 0.55;
  transition: opacity 0.2s;
  overflow: hidden;
}
.coming-soon-card:hover { opacity: 0.75; }
.coming-soon-icon { font-size: 40px; margin-bottom: 10px; filter: grayscale(0.6); }
.coming-soon-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 16px;
  opacity: 0.6;
}
.coming-soon-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.coming-soon-badge {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: 4px;
}

/* ===== CARD HOVER INFO OVERLAY ===== */
.card-hover-info {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.game-card:hover .card-hover-info {
  opacity: 1;
  transform: translateY(0);
}
.hover-lines {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 2px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.hover-cat-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(123,47,247,0.7);
  padding: 2px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.hover-play-btn {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7b2ff7, #00c8ff);
  padding: 3px 10px;
  border-radius: 4px;
  margin-left: auto;
}

/* ===== HERO PARTICLES CANVAS ===== */
#hero-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== CHAT ROOM ===== */
#chatRoom {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}
#chatMessages {
  height: 280px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  animation: chatFadeIn 0.3s ease;
}
@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
}
.chat-body {
  flex: 1;
  min-width: 0;
}
.chat-user {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}
.chat-text {
  font-size: 13px;
  color: var(--text);
  word-wrap: break-word;
  line-height: 1.4;
}
.chat-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 400;
}
.chat-system {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 0;
}
#chatInputRow {
  display: flex;
  border-top: 1px solid var(--border);
}
#chatInput {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-main);
  border: none;
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 13px;
  outline: none;
}
#chatInput::placeholder { color: var(--text-muted); }
#chatSend {
  padding: 12px 20px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
#chatSend:hover { filter: brightness(1.15); }
#chatInfo {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  padding: 6px;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
}

/* ===== NOTIFICATION BELL ===== */
.notification-bell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.2s;
}
.notification-bell:hover { background: var(--nav-hover-bg); }
.notification-bell .bell-icon { font-size: 18px; }
.notification-bell .bell-badge {
  position: absolute;
  top: 6px;
  left: 30px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff2d55;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 8px rgba(255,45,85,0.5);
  animation: bell-pulse 1.5s ease-in-out infinite;
}
@keyframes bell-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ===== NOTIFICATION PANEL ===== */
.notif-panel {
  position: fixed;
  left: 250px;
  top: 60px;
  width: 340px;
  max-height: 75vh;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  z-index: 500;
  overflow-y: auto;
  animation: notifSlideIn .2s ease;
}
@keyframes notifSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.notif-header {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border-color);
  background: var(--sidebar-bg);
  position: sticky;
  top: 0;
}
.notif-list {
  padding: 6px 0;
}
.notif-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: background 0.15s;
  cursor: default;
}
.notif-item:hover { background: var(--nav-hover-bg); }
.notif-item:last-child { border-bottom: none; }
.notif-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.notif-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.notif-time {
  font-size: 10px;
  color: var(--text-muted, #666);
  margin-top: 3px;
}
.notif-empty {
  padding: 30px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .notif-panel {
    left: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: 60vh;
    border-radius: 12px 12px 0 0;
    position: fixed;
  }
}

/* ===== SIDEBAR PLAY STATS ===== */
.sidebar-stats {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  margin-bottom: 4px;
}
.sidebar-stats-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sidebar-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 0;
}
.sidebar-stat-row .stat-val {
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 12px;
}

/* ===== GAME REVIEWS ===== */
.modal-reviews {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}
.modal-reviews-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.review-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.review-input-row input {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.review-input-row input:focus { border-color: var(--accent-purple); }
.review-input-row input::placeholder { color: var(--text-dim); }
.review-submit-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7b2ff7, #00c8ff);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.review-submit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(123,47,247,0.4);
}
.review-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.review-user {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
}
.review-stars {
  font-size: 11px;
  color: #ffd700;
  letter-spacing: 1px;
}
.review-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.review-time {
  font-size: 10px;
  color: var(--text-dimmer);
  margin-top: 4px;
}
.no-reviews {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}

/* ===== GAME PREVIEW ON HOVER (thumbnail zoom) ===== */
.card-banner .game-thumb {
  transition: transform 0.35s ease;
}
.game-card:hover .card-banner .game-thumb {
  transform: scale(1.1);
}

/* ===== ANIMATED GAME PREVIEW ON HOVER ===== */
.card-banner .hover-anim-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.game-card:hover .card-banner .hover-anim-canvas {
  opacity: 1;
}

/* ===== USER PROFILE PANEL ===== */
.profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.2s ease;
}
.profile-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  width: 380px;
  max-width: 95vw;
  padding: 28px 32px;
  position: relative;
  animation: modal-slide-in 0.25s ease;
}
.profile-panel .profile-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}
.profile-panel .profile-close:hover { color: var(--text-primary); }
.profile-avatar-big {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b2ff7, #00c8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  font-weight: 800;
  margin: 0 auto 12px;
}
.profile-username {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 16px;
}
.profile-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.profile-stat-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.profile-stat-num {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-blue);
}
.profile-stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.profile-recent-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.profile-recent-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-recent-chip {
  font-size: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text-secondary);
}

/* ===== TOP RATED CAROUSEL ===== */
/* uses existing carousel styles */

/* ===== GAME RECOMMENDATIONS ===== */
.modal-recommendations {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}
.modal-rec-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.rec-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}
.rec-card {
  flex: 0 0 140px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.rec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.rec-card-banner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rec-card-banner canvas { image-rendering: pixelated; }
.rec-card-info {
  padding: 8px 10px;
}
.rec-card-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 10px;
  color: var(--text-primary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-card-play {
  font-size: 10px;
  color: var(--accent-purple);
  font-weight: 600;
}

/* ===== SPRING THEME / CHERRY BLOSSOMS ===== */
#blossom-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ===== SEARCH SUGGESTIONS DROPDOWN ===== */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 50;
  display: none;
  overflow: hidden;
}
.search-suggestions.visible { display: block; }
.search-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-color);
}
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion:hover,
.search-suggestion.active {
  background: var(--nav-hover-bg);
}
.search-suggestion .ss-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.search-suggestion .ss-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.search-suggestion .ss-cat {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: auto;
  text-transform: capitalize;
}
.search-tip {
  font-size: 11px;
  color: var(--text-dimmer);
  margin-top: 6px;
}

/* ===== GAME COMPARISON ===== */
.compare-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
}
.compare-btn:hover { background: rgba(123,47,247,0.7); border-color: #7b2ff7; }
.compare-btn.selected { background: #7b2ff7; border-color: #00c8ff; }
.compare-float-btn {
  position: fixed;
  bottom: 80px;
  right: 28px;
  z-index: 400;
  background: linear-gradient(135deg, #7b2ff7, #00c8ff);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(123,47,247,0.5);
  display: none;
  animation: modal-fade-in 0.3s ease;
}
.compare-float-btn:hover { transform: scale(1.05); }
.compare-modal-body {
  display: flex;
  gap: 20px;
  padding: 24px;
}
.compare-col {
  flex: 1;
  text-align: center;
}
.compare-col canvas { image-rendering: pixelated; margin-bottom: 12px; }
.compare-col .compare-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
}
.compare-row .compare-label {
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  flex: 0 0 80px;
  text-align: center;
}
.compare-row .compare-val {
  flex: 1;
  text-align: center;
}
.compare-row .compare-val.winner {
  color: #00e676;
  font-weight: 700;
}

/* ===== BETTER FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
  padding: 40px;
  background: var(--bg-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-col h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.footer-col p,
.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-blue); }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-dimmer);
  margin-bottom: 4px;
}
.footer-heart { color: #ff2d95; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== SKELETON SHIMMER ENHANCED ===== */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 60%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer-sweep 1.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes shimmer-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-banner {
  height: 160px;
  background: linear-gradient(90deg, var(--bg-secondary) 25%, #222244 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
  border-radius: 14px 14px 0 0;
}
.skeleton-info {
  padding: 16px 18px 18px;
}
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-secondary) 25%, #222244 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
  margin-bottom: 8px;
}
body.light-theme .skeleton-card::after {
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.02) 40%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.02) 60%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer-sweep 1.8s ease-in-out infinite;
}
body.light-theme .skeleton-banner,
body.light-theme .skeleton-line {
  background: linear-gradient(90deg, #e8e8e8 25%, #f0f0f0 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}
