/* ==========================================================================
   GAMEHOOD - Exact ZapGames.io UI Theme
   Deep midnight navy/purple background, expandable left sidebar,
   pill search bar, red dice random button, authentic Top Games hero grid,
   and stunning playable game frame with blurred backdrop & action bar.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bungee+Inline&family=Bungee&family=Nunito:wght@400;500;600;700;800;900&family=Outfit:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Exact ZapGames.io Dark Grey / Graphite Palette */
  --bg-page: #0c0d14;           /* Deep dark charcoal page background */
  --bg-nav: rgba(22, 23, 34, 0.94); /* Sleek dark graphite navbar */
  --bg-sidebar: #0f1019;        /* Clean dark graphite sidebar */
  --bg-search: #1c1e2e;         /* Dark grey rounded search bar */
  --bg-card: #161726;           /* Crisp dark graphite card */
  --bg-card-hover: #1f2136;     /* Elevated dark graphite hover state */
  --border-subtle: rgba(255, 255, 255, 0.07); /* Refined hairline border */
  --border-card: rgba(255, 255, 255, 0.08);   /* Clean card border */

  /* Accent Badges (Matches ZapGames) */
  --badge-hot: #ff3b30;         /* Red/Coral hot badge */
  --badge-top-rated: #fef08a;   /* Golden yellow top rated badge */
  --badge-top-rated-text: #181926;
  --badge-new: #a855f7;         /* Vibrant purple new badge */
  --accent-gold: #facc15;       /* Bright gold accent */
  --accent-purple: #7c3aed;
  --accent-purple-light: #8b5cf6;
  --accent-cyan: #00f5ff;
  --accent-dice: #ff3b30;
  --accent-green: #10b981;

  /* High-Contrast Crisp Typography */
  --text-white: #ffffff;        /* Pure white for headings & logo */
  --text-primary: #f1f5f9;      /* Clean slate light grey */
  --text-muted: #94a3b8;        /* Medium cool grey */
  --text-dim: #64748b;          /* Dim grey */

  /* Dimensions */
  --header-height: 60px;
  --sidebar-collapsed-width: 60px;
  --sidebar-expanded-width: 230px;
  --radius-card: 12px;
  --radius-pill: 9999px;
}

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

html {
  font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  overflow-x: hidden;
  font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
}

input {
  outline: none;
  border: none;
  font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: #2b2e44;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: #facc15;
}

/* ==========================================================================
   TOP NAVBAR (Exact ZapGames Dark Grey Header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Header Left: Hamburger + Brand Logo */
.header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.nav-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-white);
  transition: background 0.2s;
  cursor: pointer;
}

.nav-toggle-btn:hover {
  background: #242638;
}

.nav-toggle-btn span {
  display: block;
  width: 18px;
  height: 2.2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s;
}

.zap-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  position: relative;
}

.brand-emblem {
  display: none !important;
}


.zap-brand-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 0.94;
  font-family: 'Outfit', 'Inter', sans-serif;
  text-transform: uppercase;
  transform-origin: center center;
  transition: transform 0.2s ease;
}

.logo-row-top {
  display: flex;
  align-items: center;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
}

.logo-char.char-orange,
.logo-word-game {
  background: linear-gradient(135deg, #ff5722 20%, #ff8a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 87, 34, 0.45));
}

.logo-char.char-green {
  background: linear-gradient(135deg, #00f5ff 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.45));
}

.logo-row-bottom {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  margin-top: 1px;
}

.logo-hood {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.logo-uk {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #00f5ff;
  background: rgba(0, 245, 255, 0.14);
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 4px;
  padding: 1px 4px;
  line-height: 1.1;
  margin-left: 2px;
  text-shadow: 0 0 6px rgba(0, 245, 255, 0.6);
}

/* Subtle, gentle tactile gaming rumble on hover (reduced intensity as requested) */
@keyframes competitorShake {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(-0.6px, 0.4px) rotate(-0.3deg); }
  40%  { transform: translate(0.6px, -0.4px) rotate(0.3deg); }
  60%  { transform: translate(-0.4px, -0.2px) rotate(-0.2deg); }
  80%  { transform: translate(0.4px, 0.3px) rotate(0.2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.zap-logo:hover .zap-brand-stack {
  animation: competitorShake 0.32s infinite ease-in-out;
}

/* Header Center: Pill Search Bar (Exact ZapGames) */
.header-center {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.zap-search-bar {
  width: 100%;
  height: 42px;
  background: var(--bg-search);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  padding: 0 1.1rem;
  transition: all 0.2s ease;
}

.zap-search-bar:focus-within {
  background: #2b2e44;
  border-color: #facc15;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.2);
}

.zap-search-bar input {
  flex: 1;
  background: transparent;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
}

.zap-search-bar input::placeholder {
  color: var(--text-muted);
}

.search-submit-icon {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  flex-shrink: 0;
  transition: stroke 0.2s;
}

.zap-search-bar:focus-within .search-submit-icon {
  stroke: #facc15;
}

/* Search Dropdown (Exact ZapGames) */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #161724;
  border: 1px solid #2a2d42;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
  padding: 0.6rem;
  max-height: 480px;
  overflow-y: auto;
  z-index: 1100;
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.search-tag-chip-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.4rem;
  border-radius: 8px;
  background: #202236;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.search-tag-chip-row:hover {
  background: #2b2e48;
  color: #c084fc;
  transform: translateX(4px);
}

.search-tag-chip-row svg {
  width: 18px;
  height: 18px;
  stroke: #a855f7;
  stroke-width: 2.2;
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
  cursor: pointer;
}

.search-result-row:hover {
  background: #1f2133;
  transform: translateX(4px);
}

.search-result-row img {
  width: 48px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-row h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-row span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-all-footer-btn {
  width: 100%;
  padding: 0.65rem;
  margin-top: 0.4rem;
  border-top: 1px solid #25283e;
  background: transparent;
  color: #a855f7;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 6px;
  transition: all 0.18s;
}

.search-all-footer-btn:hover {
  background: #202236;
  color: #c084fc;
}

/* Header Right: Red Dice Button & Heart Favorites (Exact Screenshot Match) */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-dice-random,
.btn-header-heart {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #242638;
  border: 1px solid #2e3148;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  padding: 0;
}

.btn-dice-random:hover,
.btn-header-heart:hover {
  background: #2e3148;
  border-color: #3f4463;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.btn-dice-random:active,
.btn-header-heart:active {
  transform: scale(0.95);
}

.btn-dice-random svg {
  width: 24px;
  height: 24px;
  display: block;
  transition: transform 0.4s ease;
}

.btn-dice-random:hover svg {
  transform: rotate(18deg) scale(1.06);
}

.btn-header-heart svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  stroke-width: 2.2;
  fill: none;
  display: block;
  transition: transform 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
}

.btn-header-heart:hover svg {
  stroke: #ff4757;
  transform: scale(1.1);
}

.btn-header-heart.active {
  background: rgba(255, 71, 87, 0.18);
  border-color: #ff4757;
}

.btn-header-heart.active svg {
  stroke: #ff4757;
  fill: #ff4757;
}

.header-fav-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ff4757;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   APP SHELL LAYOUT: EXPANDABLE LEFT SIDEBAR + MAIN CONTENT
   Matches Screenshot (62), (63) and (64)
   ========================================================================== */
.app-shell {
  display: flex;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  position: relative;
}

/* Reserved space for collapsed sidebar so hovering NEVER moves or resizes the main viewport */
body:not(.sidebar-expanded) .app-shell::before {
  content: '';
  display: block;
  width: var(--sidebar-collapsed-width); /* 60px */
  flex-shrink: 0;
  pointer-events: none;
}

/* Sidebar Base (Default Collapsed Rail Mode: 60px)
   Expands outward smoothly on hover or when pinned open via toggle button */
.left-icon-sidebar {
  width: var(--sidebar-collapsed-width); /* 60px */
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  height: calc(100vh - var(--header-height));
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  display: flex;
  flex-direction: column;
  padding: 0.8rem 0.4rem 2rem;
  gap: 0.4rem;
  z-index: 1200;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

/* Reserved space in page flow so content is never covered when pinned */
.app-shell::before {
  content: '';
  display: block;
  width: var(--sidebar-collapsed-width); /* 60px */
  flex-shrink: 0;
  pointer-events: none;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Expanded on Hover OR Pinned via hamburger toggle button */
.left-icon-sidebar:hover,
body.sidebar-expanded .left-icon-sidebar {
  width: var(--sidebar-expanded-width); /* 230px */
  box-shadow: 14px 0 35px rgba(0, 0, 0, 0.7);
}

body.sidebar-expanded .app-shell::before {
  width: var(--sidebar-expanded-width); /* 230px */
}

.left-icon-sidebar:hover {
  scrollbar-color: #373a52 transparent;
}

.left-icon-sidebar::-webkit-scrollbar {
  width: 5px;
  display: block;
}

.left-icon-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.left-icon-sidebar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 9999px;
  transition: background 0.2s ease;
}

.left-icon-sidebar:hover::-webkit-scrollbar-thumb {
  background: #373a52;
}

.left-icon-sidebar::-webkit-scrollbar-thumb:hover {
  background: #52577c;
}

.side-nav-btn {
  width: 100%;
  height: 46px; /* Generous comfortable height */
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  color: var(--text-muted);
  position: relative;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease, color 0.18s ease;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
  gap: 14px;
  box-sizing: border-box;
  flex-shrink: 0; /* CRITICAL: prevents vertical shrinking so items never squish! */
}

.side-nav-btn:hover {
  background: #1e202f;
  color: #ffffff;
  transform: translateX(4px);
}

.side-nav-btn.active {
  background: #232537;
  color: #ffffff;
  border-left: 3px solid #facc15;
}

.side-nav-btn.active svg {
  color: #facc15 !important;
}

.side-nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.side-nav-btn svg,
.side-nav-icon svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  flex-shrink: 0 !important;
  display: block;
}

/* Text label is shown on hover OR in pinned mode */
.side-nav-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: inherit;
  opacity: 0;
  display: none;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.left-icon-sidebar:hover .side-nav-label,
body.sidebar-expanded .side-nav-label {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.left-icon-sidebar:hover .sidebar-footer,
body.sidebar-expanded .sidebar-footer {
  display: flex;
}

/* Suppress single-button tooltips when sidebar is expanded */
.left-icon-sidebar:hover .side-nav-btn::after,
.left-icon-sidebar:hover .side-nav-btn::before,
body.sidebar-expanded .side-nav-btn::after,
body.sidebar-expanded .side-nav-btn::before {
  display: none !important;
}

/* Floating Tooltip in Collapsed Mode */
body:not(.sidebar-expanded) .side-nav-btn {
  position: relative;
}

body:not(.sidebar-expanded) .side-nav-btn:hover::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: #181928;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: 9999;
  display: block !important;
  line-height: 1.2;
}

body:not(.sidebar-expanded) .side-nav-btn:hover::before {
  content: '';
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 6px 5px 0;
  border-style: solid;
  border-color: transparent #181928 transparent transparent;
  pointer-events: none;
  z-index: 9999;
  display: block !important;
}

.side-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  margin: 0.4rem 0;
}

/* Sidebar Footer (Screenshot 63) */
.sidebar-footer {
  margin-top: auto;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

body.sidebar-expanded .sidebar-footer {
  display: flex;
}

.btn-sidebar-contact {
  background: var(--accent-purple);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-sidebar-contact:hover {
  background: #6d28d9;
  transform: translateY(-1px);
}

.sidebar-legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.sidebar-legal-links a:hover {
  color: #facc15;
}

.sidebar-copy-text {
  font-size: 0.72rem;
  color: #4b4868;
}

/* Main Content Area */
.main-viewport {
  flex: 1;
  padding: 1.25rem 2rem 3rem;
  min-width: 0;
}

/* ==========================================================================
   RECENTLY PLAYED TOP PILL (Exact ZapGames)
   ========================================================================== */
.recently-played-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.recent-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  transition: background 0.2s;
}

.recent-pill-btn:hover {
  background: var(--bg-card-hover);
}

.recent-pill-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
}

.recent-thumbs-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.recent-thumb-item {
  width: 58px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s, border-color 0.2s;
}

.recent-thumb-item:hover {
  transform: scale(1.08);
  border-color: #facc15;
}

.recent-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   TOP GAMES ON GAMEHOOD (Hero Section - Exact ZapGames Parity)
   Left: Large 16:9 | Center: 2x2 Quad Grid | Right: Large 16:9
   ========================================================================== */
.top-games-section {
  margin-bottom: 2.2rem;
}

.section-headline {
  font-family: 'Nunito', 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.01em;
}

.section-headline a.view-more-link,
.section-headline button.view-more-link {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #60a5fa;
  background: transparent;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.section-headline a.view-more-link:hover,
.section-headline button.view-more-link:hover {
  color: #93c5fd;
  transform: translateX(3px);
}

/* The 3-Block Hero Grid (Exact ZapGames) */
.top-games-grid {
  display: grid;
  grid-template-columns: 1.55fr 1.55fr 1.55fr;
  gap: 12px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .top-games-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .top-games-grid {
    grid-template-columns: 1fr;
  }
}

/* Left & Right Big Feature Banners */
.feature-large-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #141524;
  border: 1px solid var(--border-card);
  aspect-ratio: 16 / 9;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none;
}

.feature-large-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #facc15;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8), 0 0 22px rgba(250, 204, 21, 0.25);
  z-index: 5;
}

.feature-large-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.feature-large-card:hover img {
  transform: scale(1.05);
}

/* Center 4-Game Quad Grid (2x2) */
.center-quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.center-quad-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #141524;
  border: 1px solid var(--border-card);
  aspect-ratio: 16 / 9;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  user-select: none;
}

.center-quad-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: #facc15;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.75), 0 0 18px rgba(250, 204, 21, 0.2);
  z-index: 5;
}

.center-quad-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.center-quad-card:hover img {
  transform: scale(1.07);
}

/* Badges (Hot, Top rated, New - Exact ZapGames) */
.zap-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2.5px 9px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  line-height: 1.2;
}

.badge-hot {
  background: var(--badge-hot);
  color: #ffffff;
}

.badge-top-rated {
  background: var(--badge-top-rated);
  color: var(--badge-top-rated-text);
}

.badge-new {
  background: var(--badge-new);
  color: #ffffff;
}

/* Card Hover Information Overlay */
.card-hover-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 0.75rem 0.6rem;
  background: linear-gradient(to top, rgba(12, 13, 20, 0.96) 0%, rgba(12, 13, 20, 0.65) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 5;
}

.standard-zap-card:hover .card-hover-overlay,
.feature-large-card:hover .card-hover-overlay,
.center-quad-card:hover .card-hover-overlay {
  opacity: 1;
  transform: translateY(0);
}

.card-title-text {
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.card-rating-text {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: #facc15;
  flex-shrink: 0;
}

/* ==========================================================================
   CATEGORY TABS BAR (Exact ZapGames)
   ========================================================================== */
.category-tabs-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0 1.8rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.category-tabs-bar::-webkit-scrollbar {
  display: none;
}

.cat-tab-btn {
  background: #161726;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.15rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.cat-tab-btn:hover {
  background: #202236;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.cat-tab-btn.active {
  background: rgba(250, 204, 21, 0.12);
  border-color: #facc15;
  color: #facc15;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.18);
}

/* ==========================================================================
   STANDARD 16:9 GAME CARD (Exact ZapGames Replica)
   ========================================================================== */
.standard-zap-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  user-select: none;
}

.standard-zap-card:hover {
  transform: translateY(-4px) scale(1.025);
  border-color: rgba(250, 204, 21, 0.8);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.75), 0 0 20px rgba(250, 204, 21, 0.2);
  z-index: 10;
}

.standard-zap-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.standard-zap-card:hover img {
  transform: scale(1.06);
}

/* ==========================================================================
   SHELVES & HORIZONTAL SLIDER TRACKS (Exact ZapGames)
   ========================================================================== */
.games-shelf-section {
  margin-bottom: 2.2rem;
}

.shelf-slider-container {
  position: relative;
  width: 100%;
}

.shelf-slider-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 2px 14px;
  width: 100%;
  align-items: stretch;
}

.shelf-slider-track::-webkit-scrollbar {
  display: none;
}

.shelf-slider-track .standard-zap-card {
  flex: 0 0 216px;
  width: 216px;
  height: 121.5px; /* exactly 16:9 ratio */
  aspect-ratio: 16 / 9;
}

.shelf-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 56px;
  background: rgba(18, 19, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.shelf-slider-container:hover .shelf-nav-arrow {
  opacity: 0.95;
  pointer-events: auto;
}

.shelf-nav-arrow:hover {
  background: rgba(28, 30, 48, 0.98);
  border-color: #facc15;
  transform: translateY(-50%) scale(1.08);
  opacity: 1;
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.35);
}

.shelf-nav-arrow.shelf-arrow-prev {
  left: -8px;
}

.shelf-nav-arrow.shelf-arrow-next {
  right: -8px;
}

.shelf-nav-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  stroke-width: 2.8;
  fill: none;
}

/* ==========================================================================
   ALL GAMES COMPLETE LIBRARY GRID
   ========================================================================== */
.standard-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  width: 100%;
  padding: 6px 0 2rem;
}

.standard-games-grid .standard-zap-card {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* Search Results Section */
.search-results-section {
  display: none;
  margin-bottom: 2.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #1f2133;
}

.search-results-section.active {
  display: block;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 1.5rem;
}

.search-highlight-card {
  position: relative;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.35);
  user-select: none;
}

.search-highlight-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.search-highlight-count {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
  align-self: flex-end;
}

.search-results-keyword-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #161724;
  border: 1px solid #232537;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-results-keyword-pill strong {
  color: #ffffff;
}

/* ==========================================================================
   POPULAR GAME CATEGORIES & TAGS (Exact ZapGames Style)
   ========================================================================== */
.tags-section {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: #121320;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.tags-section-title {
  font-family: 'Nunito', 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1b1c2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.tag-pill:hover {
  background: #262840;
  border-color: #facc15;
  color: #facc15;
  transform: translateY(-2px);
}

.tag-count {
  background: rgba(255, 255, 255, 0.08);
  color: #facc15;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   EDITORIAL & SEO DISCOVERY SECTION (Exact ZapGames Parity)
   ========================================================================== */
.seo-content-section {
  margin: 2.8rem 0 2rem;
  padding: 2rem 2.2rem;
  background: #11121d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  line-height: 1.65;
}

.seo-main-title {
  font-family: 'Nunito', 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.seo-intro-p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.6rem;
}

.seo-intro-p strong {
  color: #ffffff;
}

.seo-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .seo-columns-grid {
    grid-template-columns: 1fr;
  }
}

.seo-col-box {
  background: #161726;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.35rem;
}

.seo-col-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #facc15;
  margin-bottom: 0.75rem;
}

.seo-col-box p {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-bottom: 0.85rem;
}

.seo-col-box strong {
  color: #ffffff;
}

.seo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-left: 0;
}

.seo-list li {
  color: var(--text-muted);
  font-size: 0.84rem;
  position: relative;
  padding-left: 1.2rem;
}

.seo-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #facc15;
  font-weight: 900;
}

/* ==========================================================================
   FOOTER (Exact ZapGames Layout)
   ========================================================================== */
/* ==========================================================================
   GAMEHOOD ULTRA-PREMIUM FOOTER (Multi-Column Competitor Grade)
   ========================================================================== */
.zap-footer {
  margin-top: auto;
  background-color: #080910;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3.5rem 2rem 2rem;
  color: var(--text-muted);
}

.footer-inner-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-col-brand .zap-logo {
  margin-bottom: 1rem;
}

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 1.4rem;
  max-width: 360px;
}

.footer-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #e2e8f0;
}

.footer-badge-pill svg {
  color: #facc15;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col-links a:hover {
  color: #facc15;
  transform: translateX(4px);
}

.footer-bottom-bar {
  max-width: 1400px;
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-disclaimer-text {
  max-width: 780px;
  line-height: 1.55;
  font-size: 0.78rem;
  color: #64748b;
}

.footer-bottom-copy {
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}

/* Backward compatibility for any remaining single row footer */
.footer-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.1rem;
}

.footer-nav-row a {
  font-size: 0.88rem;
  font-weight: 700;
  color: #94a3b8;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
}

.footer-nav-row a:hover {
  color: #facc15;
  transform: translateY(-1px);
}

.footer-copy {
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

/* ==========================================================================
   GAME PLAYER PAGE LAYOUT (Screenshots 68–73)
   Exact replica of ZapGames Player, Action Bar, Right Sidebar & Metadata
   ========================================================================== */
.player-layout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.player-center-col {
  flex: 1;
  min-width: 0;
}

.player-sidebar {
  width: 330px;
  flex-shrink: 0;
  position: relative; /* Not fixed/sticky: scrolls naturally with the page */
  top: auto;
}

/* The Player Screen Container */
.player-screen-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85);
}

/* When in fullscreen */
.player-screen-wrap:fullscreen,
.player-screen-wrap:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
}

/* Embed Area for EmulatorJS or iFrames */
#game-embed-area {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 5;
  display: none;
}

#game {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

#game iframe,
#game canvas,
#game embed {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border: none !important;
}

/* Launch Overlay (Screenshot 68) */
.game-launch-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  overflow: hidden;
  background: #0b091a;
}

.launch-overlay-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) brightness(0.35);
  transform: scale(1.15);
  pointer-events: none;
  z-index: 1;
}

.launch-overlay-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 1.5rem;
  max-width: 90%;
}

.launch-overlay-thumb {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.launch-overlay-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.launch-overlay-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 500px;
}

.btn-launch-game {
  background: var(--accent-purple);
  color: #fff;
  padding: 14px 44px;
  border-radius: var(--radius-pill);
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.btn-launch-game:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.65);
}

.btn-launch-game svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Under-Screen Action Bar (Exact ZapGames) */
.player-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-nav);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  height: 58px;
  padding: 0 1.25rem;
  margin-top: 0.85rem;
  gap: 1rem;
}

.action-game-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-search);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
  cursor: pointer;
}

.action-pill-btn:hover {
  background: #2e3148;
  border-color: #facc15;
  color: #facc15;
}

.action-pill-btn.liked {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

.action-pill-btn.disliked {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

.action-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-search);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.action-icon-btn:hover {
  background: #2e3148;
  border-color: #facc15;
  transform: scale(1.08);
}

.action-icon-btn.active {
  color: #ff2d55 !important;
  border-color: rgba(255, 45, 85, 0.7) !important;
  background: rgba(255, 45, 85, 0.22) !important;
  box-shadow: 0 0 16px rgba(255, 45, 85, 0.45);
}

.action-icon-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), fill 0.2s ease, stroke 0.2s ease;
}

.action-icon-btn.active svg {
  fill: #ff2d55 !important;
  stroke: #ff2d55 !important;
  transform: scale(1.15);
}

@keyframes heartPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1.15); }
}

.action-icon-btn.animate-pop svg {
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Right Sidebar: 2-Column Grid (Exact ZapGames) */
.player-sidebar-card {
  background: var(--bg-nav);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.2rem;
}

.player-sidebar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-sidebar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.sidebar-grid-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: block;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.sidebar-grid-card:hover {
  transform: translateY(-3px);
  border-color: #facc15;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.sidebar-grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Breadcrumbs (Exact ZapGames) */
.breadcrumbs-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1.5rem 0 0.75rem;
}

.breadcrumbs-nav a:hover {
  color: #facc15;
}

.breadcrumbs-nav span.separator {
  color: var(--text-dim);
}

/* Game Info Card (Exact ZapGames) */
.game-info-card {
  background: var(--bg-nav);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.game-title-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.game-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: #12131c;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.game-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.game-long-desc {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* Controls Box (Exact ZapGames) */
.controls-box {
  background: #12131c;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.controls-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.ctrl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.key-badge {
  display: inline-block;
  background: #242638;
  border: 1px solid #373a52;
  box-shadow: 0 2px 0 #12131c;
  border-radius: 6px;
  padding: 3px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #facc15;
}

/* Features List (Screenshot 72) */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.2);
  color: var(--accent-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.75rem;
}

/* Floating "Back to game" Button (Screenshot 73) */
/* Floating "Back to game" Button (Bottom-Right Circular Arrow Only) */
.floating-back-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  left: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 0;
  background: var(--accent-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s, background 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(80px);
  pointer-events: none;
  border: none;
  cursor: pointer;
}

.floating-back-btn.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-back-btn:hover {
  background: #6d28d9;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.75), 0 0 0 2px rgba(250, 204, 21, 0.45);
}

.floating-back-btn svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

/* Toast Notification */
.gamehood-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1c1a36;
  border: 1px solid var(--accent-purple-light);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  background: #0f172a;
}

.gamehood-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Category Tabs Bar on Homepage (Exact ZapGames Style) */
.category-tabs-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.85rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
}

.category-tabs-bar::-webkit-scrollbar {
  display: none;
}

.cat-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-tab-btn:hover {
  background: #212335;
  color: #ffffff;
  border-color: #facc15;
  transform: translateY(-2px);
}

.cat-tab-btn.active {
  background: #facc15;
  color: #0c0d14;
  border-color: #facc15;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(250, 204, 21, 0.35);
}

/* ==========================================================================
   GAME ARTICLE BODY & IN-DEPTH CONTENT (Exact ZapGames Structure)
   ========================================================================== */
.game-article-body {
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.game-article-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2.2rem 0 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.game-article-body h2:first-of-type {
  margin-top: 0.5rem;
}

.game-article-body p {
  font-size: 0.98rem;
  line-height: 1.85;
  color: #c4c6d5;
  margin-bottom: 1.15rem;
}

.article-bullet-list {
  margin: 0.85rem 0 1.5rem 1.5rem;
  line-height: 1.85;
  color: #c4c6d5;
}

.article-bullet-list li {
  margin-bottom: 0.5rem;
}

.article-bullet-list strong {
  color: #ffffff;
}

.controls-subgroup {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.controls-subgroup h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #facc15;
  margin-bottom: 1rem;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
}

.faq-question {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.faq-answer {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Community Discussion & Comments Section */
.community-comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.comments-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.comments-header .rating-badge {
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: #facc15;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.comment-input-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1rem;
}

.comment-input-box textarea {
  background: var(--bg-search);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  resize: vertical;
  min-height: 80px;
}

.comment-input-box textarea:focus {
  border-color: #facc15;
}

.btn-post-comment {
  align-self: flex-end;
  background: #facc15;
  color: #0c0d14;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.35);
}

.btn-post-comment:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-card {
  display: flex;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  transition: transform 0.2s;
}

.comment-card:hover {
  transform: translateX(2px);
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.comment-content {
  flex: 1;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.comment-author {
  font-weight: 700;
  font-size: 0.94rem;
  color: #ffffff;
}

.comment-date {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.comment-text {
  font-size: 0.92rem;
  color: #c4c6d5;
  line-height: 1.65;
}

.comment-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.65rem;
}

.comment-btn-like,
.comment-btn-reply {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}

.comment-btn-like:hover {
  color: #34d399;
}

.comment-btn-reply:hover {
  color: #facc15;
}



/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1100px) {
  .top-games-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-large-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .player-layout {
    flex-direction: column;
  }
  .player-sidebar {
    width: 100%;
    position: static;
  }
  .player-sidebar-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 768px) {
  .left-icon-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    z-index: 1200;
    box-shadow: 10px 0 30px rgba(0,0,0,0.8);
    transform: translateX(-100%);
    width: var(--sidebar-expanded-width) !important;
  }
  body.sidebar-expanded .left-icon-sidebar {
    transform: translateX(0);
  }
  .main-viewport {
    padding: 1rem 1rem 2rem;
  }
  .top-games-grid {
    grid-template-columns: 1fr;
  }
  .center-quad-grid {
    grid-template-columns: 1fr 1fr;
  }
  .header-center {
    max-width: none;
  }
  .standard-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
  }
  .player-action-bar {
    flex-direction: column;
    height: auto;
    padding: 0.85rem 1rem;
    align-items: flex-start;
  }
  .action-buttons-group {
    width: 100%;
    justify-content: space-between;
  }
}

/* =====================================================================
   EDITORIAL BLOG & ARTICLE SYSTEM (PREMIUM ZAPGAMES AESTHETIC)
   ===================================================================== */

/* Blog Portal Listing Page */
.blog-portal-header {
  margin-bottom: 2.2rem;
  position: relative;
}

.blog-portal-header .blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #facc15;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.blog-portal-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.blog-portal-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.6;
}

/* Featured Blog Hero */
.blog-featured-hero {
  position: relative;
  background: linear-gradient(135deg, #18192c 0%, #111221 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.15);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.blog-featured-hero:hover {
  transform: translateY(-3px);
  border-color: #8b5cf6;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 0 35px rgba(139, 92, 246, 0.3);
}

.blog-featured-media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.blog-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-featured-hero:hover .blog-featured-media img {
  transform: scale(1.04);
}

.blog-featured-content {
  padding: 2.5rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-tag-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.tag-gta5 { background: rgba(239, 68, 68, 0.18); border: 1px solid rgba(239, 68, 68, 0.4); color: #f87171; }
.tag-gtavc { background: rgba(236, 72, 153, 0.18); border: 1px solid rgba(236, 72, 153, 0.4); color: #f472b6; }
.tag-gta6 { background: rgba(139, 92, 246, 0.18); border: 1px solid rgba(139, 92, 246, 0.4); color: #c084fc; }

.blog-featured-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.85rem;
  transition: color 0.2s ease;
}

.blog-featured-hero:hover .blog-featured-title {
  color: #facc15;
}

.blog-featured-excerpt {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.blog-meta-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.blog-author-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: #ffffff;
}

.blog-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  font-weight: 800;
}

/* 2-3 Column Editorial Grid */
.blog-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.6rem;
  margin-bottom: 3.5rem;
}

.blog-post-card {
  background: #141524;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.blog-post-card:hover {
  transform: translateY(-5px);
  border-color: #facc15;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 25px rgba(250, 204, 21, 0.18);
}

.blog-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c0d17;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-post-card:hover .blog-card-media img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0.6rem 0 0.75rem;
  transition: color 0.2s ease;
}

.blog-post-card:hover .blog-card-title {
  color: #facc15;
}

.blog-card-snippet {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.read-arrow {
  color: #facc15;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.blog-post-card:hover .read-arrow {
  transform: translateX(4px);
}

/* =====================================================================
   SINGLE BLOG ARTICLE VIEW
   ===================================================================== */
.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 3.5rem;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.article-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-breadcrumbs a:hover {
  color: #facc15;
}

.article-breadcrumbs span {
  opacity: 0.5;
}

.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0.8rem 0 1.1rem;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.article-featured-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
  aspect-ratio: 16 / 9;
}

.article-featured-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Table of Contents */
.toc-box {
  background: #141524;
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-left: 4px solid #facc15;
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.5rem;
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: #facc15;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
}

.toc-list a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s ease, transform 0.15s ease;
}

.toc-list a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* Article Prose Typography */
.article-body {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #d1d5db;
}

.article-body p {
  margin-bottom: 1.4rem;
}

.article-body h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  position: relative;
  letter-spacing: -0.015em;
}

.article-body h2::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #facc15, #8b5cf6);
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f3f4f6;
  margin: 1.8rem 0 0.8rem;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.5rem 1.4rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.article-body strong {
  color: #ffffff;
}

.article-body blockquote {
  margin: 1.8rem 0;
  padding: 1.2rem 1.6rem;
  background: rgba(139, 92, 246, 0.08);
  border-left: 4px solid #8b5cf6;
  border-radius: 0 12px 12px 0;
  color: #e2e8f0;
  font-style: italic;
}

/* Cheat Tables */
.cheat-table-wrap {
  overflow-x: auto;
  margin: 1.8rem 0 2.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111221;
}

.cheat-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.cheat-table th {
  background: #1b1c31;
  color: #facc15;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cheat-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
}

.cheat-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.cheat-code-badge {
  display: inline-block;
  font-family: monospace;
  font-weight: 700;
  background: #0c0d17;
  color: #00f5ff;
  border: 1px solid rgba(0, 245, 255, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

/* Play Now In-Article CTA Banner */
.play-game-cta-banner {
  margin: 2.5rem 0;
  padding: 1.8rem 2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.12) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(250, 204, 21, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.play-game-cta-banner .cta-info h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.play-game-cta-banner .cta-info p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
}

.play-game-cta-btn {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  color: #000000;
  font-weight: 800;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-game-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(250, 204, 21, 0.55);
}

/* FAQ Accordion Styling */
.article-faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item-card {
  background: #141524;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-item-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-item-card h4::before {
  content: 'Q.';
  color: #facc15;
  font-weight: 800;
}

.faq-item-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* =====================================================================
   STATIC / POLICY PAGES (ABOUT, DMCA, PRIVACY, TERMS)
   ===================================================================== */
.policy-page-wrap {
  max-width: 960px;
  margin: 0 auto 3rem;
}

.policy-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.policy-breadcrumbs a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

.policy-breadcrumbs a:hover {
  color: #facc15;
}

.policy-tabs-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
  padding: 0.45rem;
  background: rgba(18, 19, 32, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.policy-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.policy-tab-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

.policy-tab-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.policy-tab-item.active {
  background: #facc15;
  color: #0c0d14;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.35);
}

.policy-tab-item.active svg {
  stroke: #0c0d14;
}

.policy-header-card {
  background: linear-gradient(135deg, #18192c 0%, #121323 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2.2rem 2.4rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.policy-header-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c084fc;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.policy-header-card h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.policy-header-card p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0;
}

.policy-card {
  background: #141524;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 2.2rem 2.4rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.policy-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-card h2 svg,
.policy-card h2 i {
  color: #facc15;
}

.policy-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e5e7eb;
  margin: 1.4rem 0 0.6rem;
}

.policy-card p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 1.1rem;
}

.policy-card ul,
.policy-card ol {
  margin: 0.75rem 0 1.2rem 1.4rem;
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.7;
}

.policy-card li {
  margin-bottom: 0.45rem;
}

.policy-notice-box {
  background: rgba(250, 204, 21, 0.08);
  border-left: 4px solid #facc15;
  padding: 1.1rem 1.4rem;
  border-radius: 0 10px 10px 0;
  margin: 1.4rem 0;
  color: #fef08a;
  font-size: 0.92rem;
  line-height: 1.6;
}

.policy-contact-box {
  background: #191a2e;
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 14px;
  padding: 1.6rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.policy-contact-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.policy-contact-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.policy-contact-btn {
  background: #facc15;
  color: #000;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.policy-contact-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .blog-featured-hero {
    grid-template-columns: 1fr;
  }
  .blog-featured-media {
    min-height: 220px;
  }
  .blog-editorial-grid {
    grid-template-columns: 1fr;
  }
  .toc-list {
    grid-template-columns: 1fr;
  }
  .play-game-cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .policy-header-card,
  .policy-card {
    padding: 1.6rem 1.4rem;
  }
  .article-title {
    font-size: 1.85rem;
  }
}

/* ==========================================================================
   ZAPGAMES-STYLE UNIFIED FOOTER (Exact Consistent Footer for Every Page)
   ========================================================================== */
.zap-footer {
  width: 100%;
  background: #0c0d14;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2.2rem 1.5rem 2.8rem;
  margin-top: auto;
  text-align: center;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.footer-nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem 1.6rem;
  margin-bottom: 1.1rem;
}

.footer-nav-row a {
  color: #94a3b8;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.footer-nav-row a:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
  transform: translateY(-1px);
}

.footer-copy {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.contact-badge-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  flex-shrink: 0;
}

.contact-badge-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.contact-badge-item p,
.contact-badge-item a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.18s;
}

.contact-badge-item a:hover {
  color: #facc15;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 2.2rem;
}

.contact-form-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-form-card p.form-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.6rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #141522;
  border: 1px solid #282a3e;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background: #1a1c2d;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.form-select {
  cursor: pointer;
}

.form-select option {
  background: #161726;
  color: #fff;
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(236, 72, 153, 0.5);
}

.form-submit-btn:active {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Dispatch & Success State */
.contact-success-card {
  text-align: center;
  padding: 0.5rem 0.2rem;
  animation: contactFadeInScale 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes contactFadeInScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid rgba(34, 197, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem auto;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.25);
}

.contact-success-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.contact-success-card .success-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.contact-success-card .success-desc strong {
  color: #facc15;
}

.dispatch-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.dispatch-opt-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.dispatch-opt-btn .dispatch-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dispatch-opt-btn .dispatch-text strong {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
}

.dispatch-opt-btn .dispatch-text span {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Gmail Primary */
.dispatch-opt-btn.btn-gmail {
  background: linear-gradient(135deg, rgba(234, 67, 53, 0.15) 0%, rgba(217, 48, 37, 0.08) 100%);
  border-color: rgba(234, 67, 53, 0.35);
  box-shadow: 0 4px 15px rgba(234, 67, 53, 0.15);
}
.dispatch-opt-btn.btn-gmail:hover {
  background: linear-gradient(135deg, rgba(234, 67, 53, 0.25) 0%, rgba(217, 48, 37, 0.18) 100%);
  border-color: #ea4335;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.3);
}

/* Mail App Secondary */
.dispatch-opt-btn.btn-mailapp {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(14, 165, 233, 0.06) 100%);
  border-color: rgba(56, 189, 248, 0.3);
}
.dispatch-opt-btn.btn-mailapp:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(14, 165, 233, 0.14) 100%);
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

/* Copy Message */
.dispatch-opt-btn.btn-copy {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.dispatch-opt-btn.btn-copy:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
.dispatch-opt-btn.btn-copy.copied {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
}

.btn-reset-contact {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.86rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}

.btn-reset-contact:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   SS 4: "MY GAMES" RIGHT FLYOUT DRAWER (Recent, Favorites, Liked)
   Exact ZapGames Parity: Opens on the right side under navbar, 
   100% transparent backdrop keeps website content completely visible!
   ========================================================================== */
.my-games-modal-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 1200;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.my-games-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.my-games-modal {
  position: fixed;
  top: var(--header-height, 60px);
  right: 0;
  width: 390px;
  max-width: 92vw;
  height: calc(100vh - var(--header-height, 60px));
  max-height: calc(100vh - var(--header-height, 60px));
  background: #141728;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 0 16px;
  box-shadow: -12px 18px 45px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1201;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.my-games-modal-overlay.active .my-games-modal {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.my-games-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 0.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.my-games-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.btn-close-my-games {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  padding: 0;
}

.btn-close-my-games:hover {
  color: #ffffff;
  transform: scale(1.15);
}

/* Modal Tabs (Exact ZapGames Match: Recent, Favorites, Liked) */
.my-games-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 2.2rem;
  padding: 0.25rem 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.my-games-tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.my-games-tab-btn:hover {
  color: #e2e8f0;
}

.my-games-tab-btn.active {
  color: #ffffff;
  font-weight: 700;
}

.my-games-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #8b5cf6;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

/* Modal Content Area */
.my-games-body {
  flex: 1;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
}

.my-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.my-game-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #1c2035;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: block;
}

.my-game-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #8b5cf6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 14px rgba(139, 92, 246, 0.3);
}

.my-game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.my-game-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 8px 6px;
  background: linear-gradient(transparent, rgba(10, 12, 20, 0.95));
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Circular Red Delete Button on Top Right (Exact SS 4 Match) */
.my-game-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e11d48;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 10;
  padding: 0;
}

.my-game-delete-btn:hover {
  transform: scale(1.18);
  background: #f43f5e;
}

/* Empty State */
.my-games-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  color: #94a3b8;
  min-height: 220px;
}

.my-games-empty-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.my-games-empty p {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ==========================================================================
   SS 5: GAME CONTROLS FLOATING GUIDE POPUP & BUTTON
   ========================================================================== */
.player-action-bar {
  position: relative;
}

.btn-controls-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-controls-toggle:hover,
.btn-controls-toggle.active {
  background: rgba(0, 245, 255, 0.18);
  border-color: #00f5ff;
  color: #00f5ff;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.35);
  transform: scale(1.06);
}

.game-controls-modal {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 390px;
  max-width: calc(100vw - 2rem);
  background: rgba(18, 22, 36, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 245, 255, 0.12);
  z-index: 500;
  overflow: hidden;
  animation: popInControls 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popInControls {
  0%   { opacity: 0; transform: scale(0.92) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.controls-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.controls-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.controls-modal-title svg {
  color: #00f5ff;
  flex-shrink: 0;
}

.btn-close-controls {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-close-controls:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: scale(1.08);
}

.controls-modal-body {
  padding: 1.1rem 1.25rem;
  max-height: 320px;
  overflow-y: auto;
}

.controls-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.controls-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.controls-list li::before {
  content: '•';
  color: #00f5ff;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.controls-list li strong {
  color: #ffffff;
  font-weight: 700;
}



