:root {
  --bg-base: #080c14;
  --bg-surface: #0f172a;
  --bg-card: #151f32;
  --bg-card-hover: #1c2942;
  --border: #1e293b;
  --border-highlight: #334155;
  
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.35);
  --accent-alt: #6366f1;
  --accent-warm: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-cyan: #06b6d4;
  
  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Container */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Announcement Bar */
.top-banner {
  background: linear-gradient(90deg, #065f46, #047857, #0284c7);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.top-banner .badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navigation Bar */
.navbar {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  transition: var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 15px var(--accent-glow);
  border: 2px solid var(--accent);
  transition: var(--transition);
}
.brand-logo:hover img {
  transform: scale(1.05) rotate(-3deg);
}
.brand-text h1 {
  font-size: 1.35rem;
  color: #fff;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-text h1 span {
  color: var(--accent);
}
.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Search Bar */
.search-box {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrapper i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 11px 40px 11px 44px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.search-input:focus {
  border-color: var(--accent);
  background: #182236;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.search-clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  padding: 4px;
  font-size: 0.9rem;
}
.search-clear:hover {
  color: #fff;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}
.nav-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}
.nav-btn-accent {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.nav-btn-accent:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs span.current {
  color: #fff;
  font-weight: 600;
}

/* Hero / Master Game Stage */
.stage-section {
  padding: 20px 0;
}
.stage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

/* Series Tab Switcher */
.stage-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b1120;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.stage-tab-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}
.stage-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.stage-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.stage-tab-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}
.stage-tab-btn .badge-pill {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.25);
}

.stage-quick-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.stage-quick-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Game Screen Frame */
.game-screen-wrapper {
  position: relative;
  background: #000;
  width: 100%;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.stage-card.theater-mode .game-screen-wrapper {
  min-height: 720px;
}
.game-iframe {
  width: 100%;
  height: 580px;
  border: none;
  display: block;
  transition: var(--transition);
}
.stage-card.theater-mode .game-iframe {
  height: 720px;
}

/* Player Control Bar */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #0c1424;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.player-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.player-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-highlight);
}
.player-titles h1, .player-titles h2 {
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.player-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.player-meta .rating {
  color: var(--accent-warm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.player-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-sub);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tool-btn:hover {
  color: #fff;
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
}
.tool-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.1);
}
.tool-btn-fullscreen {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
}
.tool-btn-fullscreen:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Controls Cheat Bar */
.controls-guide-bar {
  background: #090e1a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.keys-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.key-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.kbd {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 2px 0 #0f172a;
}

/* Category Hero Banner (for category pages) */
.cat-hero {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.9)), var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  margin: 28px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: var(--shadow-card);
}
.cat-hero-left {
  max-width: 700px;
}
.cat-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.cat-hero-title {
  font-size: 2.2rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}
.cat-hero-desc {
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.6;
}
.cat-hero-right {
  display: flex;
  gap: 14px;
  align-items: center;
}
.hero-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
}
.hero-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Outfit';
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Trilogy Promo Banner (for game pages) */
.trilogy-banner {
  background: linear-gradient(135deg, #131c2e, #0c1424);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 24px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.trilogy-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.trilogy-banner-left img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}
.trilogy-banner-left h3 {
  font-size: 1.1rem;
  color: #fff;
}
.trilogy-banner-left p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.trilogy-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trilogy-link-btn {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #fff;
  transition: var(--transition);
}
.trilogy-link-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Trilogy Grid (for index page) */
.trilogy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.trilogy-card {
  position: relative;
  background: linear-gradient(145deg, #131c2e, #0c1424);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
}
.trilogy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: var(--transition);
}
.trilogy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-card);
}
.trilogy-card:hover::before {
  opacity: 1;
}
.trilogy-card img {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.trilogy-content h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trilogy-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}
.trilogy-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
}
.trilogy-badge.hot {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
}
.trilogy-badge.latest {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-alt);
}

/* Category Pill Selector */
.category-pills-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-pills-bar::-webkit-scrollbar {
  display: none;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-sub);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}
.cat-pill:hover {
  color: #fff;
  border-color: var(--border-highlight);
  background: var(--bg-card);
  transform: translateY(-2px);
}
.cat-pill.active {
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.cat-pill i {
  font-size: 0.95rem;
}

/* Section Headers */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 14px;
}
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.1));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.section-title {
  font-size: 1.4rem;
  color: #fff;
}
.section-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

/* Main Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
@media (min-width: 1400px) {
  .games-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Game Card */
.game-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.7), 0 0 15px rgba(16, 185, 129, 0.2);
}
.game-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #090e17;
}
.game-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.game-card:hover .game-thumb-box img {
  transform: scale(1.08);
}

/* Play overlay button */
.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.game-card:hover .card-play-overlay {
  opacity: 1;
}
.play-btn-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: scale(0.8);
  transition: var(--transition);
}
.game-card:hover .play-btn-circle {
  transform: scale(1);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.card-badge.hot {
  background: rgba(244, 63, 94, 0.85);
  color: #fff;
}
.card-badge.new {
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
}
.card-badge.top {
  background: rgba(245, 158, 11, 0.85);
  color: #fff;
}

.game-meta-box {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
  flex: 1;
  justify-content: space-between;
}
.game-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.game-card:hover .game-title {
  color: var(--accent);
}
.game-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.game-cat-tag {
  text-transform: capitalize;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}
.game-star-rating {
  color: var(--accent-warm);
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

/* Load More Button */
.load-more-wrap {
  text-align: center;
  margin: 30px 0 60px;
}
.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.load-more-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* SEO / Content Article Box */
.seo-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  margin: 40px 0;
}
.seo-content h2 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 16px;
}
.seo-content h3 {
  font-size: 1.25rem;
  color: var(--accent);
  margin: 24px 0 10px;
}
.seo-content p {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.seo-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.seo-feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.seo-feat-card i {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.seo-feat-card h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}
.seo-feat-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Accordion FAQ */
.faq-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-question {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  user-select: none;
}
.faq-question i {
  transition: transform 0.3s;
  color: var(--accent);
}
.faq-item.open .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
  display: none;
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  background: #070a12;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 380px;
}
.footer-col h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid #111827;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* Back to top floating button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 90;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.mobile-drawer.open {
  transform: translateX(0);
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 190;
  display: none;
}
.drawer-overlay.open {
  display: block;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}
.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.drawer-nav a:hover {
  background: var(--bg-card);
  color: var(--accent);
}

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  border: 1px solid var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 300;
  opacity: 0;
  transition: var(--transition);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive Queries */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .nav-actions {
    display: none;
  }
  .stage-card.theater-mode .game-screen-wrapper {
    min-height: 480px;
  }
  .game-iframe {
    height: 480px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .brand-text h1 {
    font-size: 1.1rem;
  }
  .brand-tag {
    display: none;
  }
  .search-box {
    max-width: 100%;
  }
  .cat-hero {
    padding: 24px 20px;
  }
  .cat-hero-title {
    font-size: 1.6rem;
  }
  .game-screen-wrapper {
    min-height: 380px;
  }
  .game-iframe {
    height: 380px;
  }
  .stage-card.theater-mode .game-screen-wrapper {
    min-height: 380px;
  }
  .stage-card.theater-mode .game-iframe {
    height: 380px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .seo-section {
    padding: 24px 20px;
  }
  .controls-guide-bar {
    display: none;
  }
}


/* =========================================================
   EEAT CONTENT, EDITORIAL & POLICY PAGES STYLES
   ========================================================= */

.page-hero {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(15, 23, 42, 0.95)), var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  margin: 28px 0 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.page-hero-title {
  font-size: 2.4rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}
.page-hero-subtitle {
  color: var(--text-sub);
  font-size: 1.05rem;
  max-width: 780px;
  line-height: 1.6;
}
.page-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.page-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Page Layout with Sidebar */
.content-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin-bottom: 50px;
  align-items: start;
}
.content-sidebar {
  position: sticky;
  top: 90px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.sidebar-title {
  font-size: 0.95rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toc-link {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border-left: 2px solid transparent;
}
.toc-link:hover, .toc-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--accent);
  padding-left: 14px;
}

/* Main Content Article Body */
.article-body {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-card);
}
.article-body h2 {
  font-size: 1.65rem;
  color: #fff;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-body h2:first-of-type {
  margin-top: 0;
}
.article-body h3 {
  font-size: 1.25rem;
  color: var(--accent);
  margin: 24px 0 10px;
}
.article-body p {
  color: var(--text-sub);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.article-body ul, .article-body ol {
  color: var(--text-sub);
  margin: 0 0 20px 24px;
  line-height: 1.8;
  font-size: 0.98rem;
}
.article-body li {
  margin-bottom: 8px;
}
.article-body strong {
  color: #fff;
}

/* Highlight / Alert Boxes */
.callout-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 22px 0;
}
.callout-box p {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.95rem;
}
.callout-box-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 4px solid var(--accent-warm);
}
.callout-box-info {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-left: 4px solid var(--accent-cyan);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
}
.metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Author / Team Grid (Core EEAT) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
}
.author-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.author-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.author-info h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 2px;
}
.author-role {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}
.author-bio {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin: 0;
}
.author-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.author-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

/* Contact Form & Cards */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  margin: 28px 0;
}
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-method-text h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 4px;
}
.contact-method-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}
.contact-method-text a {
  color: var(--accent);
  font-weight: 600;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.form-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 14px var(--accent-glow);
}
.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

@media (max-width: 992px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .content-sidebar {
    display: none;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .article-body {
    padding: 28px 24px;
  }
  .page-hero {
    padding: 30px 24px;
  }
  .page-hero-title {
    font-size: 1.8rem;
  }
}
