/* ==========================================================================
   PlayVolt Unblocked Games - Master Modern Gamer Stylesheet
   Vibrant, High-Energy Arcade & Cyberpunk Aesthetics (Non-boring / Kid-Friendly)
   ========================================================================== */

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

:root {
  /* Neon Cyber Theme (Default) */
  --bg-primary: #0C0817;
  --bg-secondary: #140E24;
  --bg-tertiary: #1E1635;
  --bg-card: rgba(28, 20, 51, 0.75);
  --bg-card-hover: rgba(43, 30, 77, 0.9);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(168, 85, 247, 0.6);

  --accent-primary: #8B5CF6;
  --accent-primary-hover: #7C3AED;
  --accent-primary-glow: rgba(139, 92, 246, 0.4);
  
  --accent-secondary: #F43F5E;
  --accent-secondary-hover: #E11D48;
  --accent-secondary-glow: rgba(244, 63, 94, 0.4);

  --accent-tertiary: #10B981;
  --accent-tertiary-glow: rgba(16, 185, 129, 0.4);

  --accent-amber: #F59E0B;
  --accent-amber-glow: rgba(245, 158, 11, 0.4);

  --accent-cyan: #06B6D4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);

  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --grad-primary: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  --grad-secondary: linear-gradient(135deg, #F43F5E 0%, #FB923C 100%);
  --grad-emerald: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  --grad-amber: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px var(--accent-primary-glow);
  --shadow-card-hover: 0 12px 30px rgba(139, 92, 246, 0.25);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-heading: 'Fredoka', 'Outfit', sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Theme Variances */
[data-theme="sunset"] {
  --bg-primary: #12090F;
  --bg-secondary: #1E0E1B;
  --bg-tertiary: #2C1427;
  --bg-card: rgba(44, 20, 39, 0.75);
  --accent-primary: #F43F5E;
  --accent-primary-hover: #E11D48;
  --accent-primary-glow: rgba(244, 63, 94, 0.45);
  --accent-secondary: #FB923C;
  --grad-primary: linear-gradient(135deg, #F43F5E 0%, #F59E0B 100%);
  --glass-border-hover: rgba(244, 63, 94, 0.6);
}

[data-theme="mint"] {
  --bg-primary: #071311;
  --bg-secondary: #0D201D;
  --bg-tertiary: #14302C;
  --bg-card: rgba(20, 48, 44, 0.75);
  --accent-primary: #10B981;
  --accent-primary-hover: #059669;
  --accent-primary-glow: rgba(16, 185, 129, 0.45);
  --accent-secondary: #06B6D4;
  --grad-primary: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  --glass-border-hover: rgba(16, 185, 129, 0.6);
}

[data-theme="gold"] {
  --bg-primary: #141006;
  --bg-secondary: #221B0B;
  --bg-tertiary: #332911;
  --bg-card: rgba(51, 41, 17, 0.75);
  --accent-primary: #F59E0B;
  --accent-primary-hover: #D97706;
  --accent-primary-glow: rgba(245, 158, 11, 0.45);
  --accent-secondary: #EC4899;
  --grad-primary: linear-gradient(135deg, #F59E0B 0%, #EC4899 100%);
  --glass-border-hover: rgba(245, 158, 11, 0.6);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 85% 30%, rgba(244, 63, 94, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 8, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(12, 8, 23, 0.96);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFF;
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: var(--grad-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px var(--accent-primary-glow);
  transform: rotate(-5deg);
  transition: transform var(--transition-bounce);
}

.brand-logo:hover .brand-icon {
  transform: rotate(10deg) scale(1.1);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name span:first-child {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand-name span:last-child {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-tertiary);
}

/* Search Bar in Header */
.search-container {
  position: relative;
  flex: 1;
  max-width: 460px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem 0.5rem 2.6rem;
  transition: all var(--transition-normal);
}

.search-input-wrapper:focus-within {
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
  box-shadow: 0 0 18px var(--accent-primary-glow);
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #FFF;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-shortcut {
  font-size: 0.75rem;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  pointer-events: none;
}

/* Search Results Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  padding: 0.5rem;
}

.search-dropdown.active {
  display: block;
  animation: fadeInDown 0.2s ease-out;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  color: var(--text-main);
}

.search-result-item:hover, .search-result-item.focused {
  background: var(--bg-tertiary);
}

.search-result-item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
}

.search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #FFF;
}

.search-result-cat {
  font-size: 0.75rem;
  color: var(--accent-tertiary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-action:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-spin {
  background: var(--grad-secondary);
  color: #FFF;
  border: none;
  box-shadow: 0 4px 14px var(--accent-secondary-glow);
}

.btn-spin:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px var(--accent-secondary-glow);
}

.badge-count {
  background: var(--accent-primary);
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Theme & Sound Toggles */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: scale(1.05);
}

/* Category Navigation Bar */
.category-nav-bar {
  background: rgba(20, 14, 36, 0.7);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.6rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.category-nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: max-content;
}

.cat-nav-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.cat-nav-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.cat-nav-pill.active {
  background: var(--grad-primary);
  color: #FFF;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--accent-primary-glow);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 2.5rem 0 1.5rem;
  position: relative;
}

.hero-card {
  background: linear-gradient(135deg, rgba(30, 22, 53, 0.9) 0%, rgba(20, 14, 36, 0.95) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 450px;
  height: 450px;
  background: var(--accent-primary-glow);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 20%;
  width: 350px;
  height: 350px;
  background: var(--accent-secondary-glow);
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-full);
  color: #C4B5FD;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: var(--grad-primary);
  color: #FFF;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px var(--accent-primary-glow);
  transition: all var(--transition-bounce);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px var(--accent-primary-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  background: var(--bg-tertiary);
  color: #FFF;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--glass-border);
}

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

.stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFF;
  font-family: var(--font-heading);
}

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

/* Hero Floating Visual Elements */
.hero-visual {
  position: relative;
  z-index: 2;
  display: none;
}

@media (min-width: 992px) {
  .hero-visual {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 110px);
  gap: 1rem;
  transform: perspective(800px) rotateY(-12deg) rotateX(6deg);
  transition: transform var(--transition-normal);
}

.hero-card:hover .hero-mini-grid {
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
}

.hero-mini-card {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  position: relative;
  animation: float 4s ease-in-out infinite alternate;
}

.hero-mini-card:nth-child(2) { animation-delay: 1s; }
.hero-mini-card:nth-child(3) { animation-delay: 2s; }
.hero-mini-card:nth-child(4) { animation-delay: 1.5s; }

.hero-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Games Grid & Game Cards
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.2rem 0 1.2rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
}

.section-title-icon {
  font-size: 1.4rem;
}

.section-more-link {
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.section-more-link:hover {
  color: #FFF;
  transform: translateX(3px);
}

/* Grid Layout */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.1rem;
}

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  }
}

/* Game Card */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-bounce);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-card-hover);
}

.game-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.game-card:hover .game-thumb {
  transform: scale(1.08);
}

/* Card Badges */
.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  z-index: 3;
}

.badge-hot {
  background: var(--grad-secondary);
  color: #FFF;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
}

.badge-new {
  background: var(--grad-emerald);
  color: #FFF;
}

.badge-top {
  background: var(--grad-amber);
  color: #FFF;
}

/* Card Favorite Button */
.card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 3;
  transition: all var(--transition-fast);
}

.card-fav-btn:hover {
  background: var(--accent-secondary);
  color: #FFF;
  transform: scale(1.15);
}

.card-fav-btn.active {
  background: var(--accent-secondary);
  color: #FFF;
}

/* Play Hover Overlay */
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 8, 23, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 2;
}

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

.play-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #FFF;
  box-shadow: 0 4px 15px var(--accent-primary-glow);
  transform: scale(0.8);
  transition: transform var(--transition-bounce);
}

.game-card:hover .play-icon-circle {
  transform: scale(1);
}

/* Card Info */
.game-card-info {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFF;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 0.75rem;
}

.game-card-category {
  color: var(--text-dim);
  font-weight: 500;
}

.game-card-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #FBBF24;
  font-weight: 700;
}

/* ==========================================================================
   AdSense Placement Slots
   ========================================================================== */
.ad-slot-container {
  margin: 1.8rem auto;
  text-align: center;
  background: rgba(20, 14, 36, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.ad-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.ad-leaderboard {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-rectangle {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-skyscraper {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Single Game Player Page
   ========================================================================== */
.game-player-section {
  padding: 1.5rem 0 3rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent-primary);
}

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

.breadcrumbs span.current {
  color: #FFF;
  font-weight: 600;
}

/* Game Title Header */
.game-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.game-title-group h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.game-tags-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tag-pill {
  padding: 0.25rem 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tag-category {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #C4B5FD;
}

/* Game Layout Grid (Player + Sidebar) */
.game-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

@media (min-width: 1024px) {
  .game-layout-grid {
    grid-template-columns: 1fr 340px;
  }
}

/* Game Frame Stage */
.game-frame-container {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  position: relative;
}

.game-aspect-ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #05030A;
}

.game-aspect-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Game Splash / Play Trigger */
.game-splash-cover {
  position: absolute;
  inset: 0;
  z-index: 10;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-splash-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 8, 23, 0.75);
  backdrop-filter: blur(10px);
}

.game-splash-btn {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.5rem 2.8rem;
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  color: #FFF;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 8px 30px var(--accent-primary-glow);
  transform: scale(1);
  transition: all var(--transition-bounce);
}

.game-splash-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px var(--accent-primary-glow);
}

.game-splash-icon {
  font-size: 2.4rem;
}

/* In-Game Toolbar */
.game-toolbar {
  background: var(--bg-secondary);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 0.8rem;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  color: #FFF;
}

.tool-btn.active {
  background: var(--accent-secondary);
  color: #FFF;
  border-color: transparent;
}

/* Cinema / Lights Off Dimmer */
.cinema-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

body.cinema-mode .cinema-overlay {
  opacity: 1;
  pointer-events: all;
}

body.cinema-mode .game-frame-container {
  position: relative;
  z-index: 1000;
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.5);
}

/* ==========================================================================
   Controls & Rich Content Article Styles
   ========================================================================== */
.game-details-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.8rem;
}

.controls-guide-box {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.controls-guide-box h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.controls-table {
  width: 100%;
  border-collapse: collapse;
}

.controls-table tr {
  border-bottom: 1px solid var(--glass-border);
}

.controls-table tr:last-child {
  border-bottom: none;
}

.controls-table td {
  padding: 0.75rem 0.5rem;
  font-size: 0.92rem;
}

.controls-table td:first-child {
  font-weight: 700;
  color: var(--accent-tertiary);
  width: 40%;
}

.kbd-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
  font-family: monospace;
  font-size: 0.85rem;
  color: #FFF;
  margin: 2px;
}

/* Rich Article Prose */
.game-rich-content {
  color: var(--text-main);
  line-height: 1.75;
}

.game-rich-content h2, .game-rich-content h3 {
  margin: 1.8rem 0 0.8rem;
  color: #FFF;
}

.game-rich-content p {
  margin-bottom: 1rem;
  color: #CBD5E1;
  font-size: 1rem;
}

.game-rich-content ul, .game-rich-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: #CBD5E1;
}

.game-rich-content ul { list-style: disc; }
.game-rich-content ol { list-style: decimal; }

.game-rich-content li {
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
}

.game-rich-content strong {
  color: #FFF;
}

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

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item[open] {
  border-color: rgba(139, 92, 246, 0.4);
}

.faq-question {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: #FFF;
  cursor: pointer;
  outline: none;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent-primary);
  font-weight: 400;
  transition: transform var(--transition-normal);
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Sidebar & Related Games
   ========================================================================== */
.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.sidebar-title {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-games-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-game-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-fast);
}

.sidebar-game-item:hover {
  background: var(--bg-tertiary);
  transform: translateX(4px);
}

.sidebar-game-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-game-info {
  flex: 1;
  overflow: hidden;
}

.sidebar-game-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-game-genre {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Spin & Play Random Roulette Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 8, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 1rem;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.roulette-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-bounce);
}

.modal-backdrop.active .roulette-modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #FFF;
  background: var(--accent-secondary);
}

.roulette-box {
  width: 160px;
  height: 160px;
  margin: 1.5rem auto;
  border-radius: var(--radius-lg);
  border: 3px solid var(--accent-primary);
  overflow: hidden;
  box-shadow: 0 0 30px var(--accent-primary-glow);
  position: relative;
}

.roulette-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.1s ease;
}

.roulette-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  min-height: 2rem;
}

.roulette-cat {
  font-size: 0.85rem;
  color: var(--accent-tertiary);
  margin-bottom: 1.5rem;
  min-height: 1.2rem;
}

/* ==========================================================================
   Cookie Consent Banner (AdSense & GDPR)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 580px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  z-index: 1500;
  display: none;
  animation: slideUp 0.3s ease-out;
}

.cookie-banner.active {
  display: block;
}

.cookie-banner h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  padding: 0.55rem 1.2rem;
  background: var(--grad-primary);
  color: #FFF;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
}

.btn-cookie-decline {
  padding: 0.55rem 1.2rem;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #08050F;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0.85rem 0 1.2rem;
  max-width: 360px;
}

.footer-column h4 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: #FFF;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-column a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-column a:hover {
  color: var(--accent-primary);
  transform: translateX(3px);
  display: inline-block;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Static Policy Page Layout */
.legal-page-container {
  padding: 3rem 0 5rem;
  max-width: 920px;
  margin: 0 auto;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.legal-card h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.legal-card .last-updated {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  display: block;
}

.legal-card h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.8rem;
  color: #FFF;
}

.legal-card p {
  color: #CBD5E1;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.legal-card ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #CBD5E1;
}

.legal-card li {
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.9rem;
  }
  .search-container {
    display: none; /* Can be toggled on mobile */
  }
  .game-title-group h1 {
    font-size: 1.5rem;
  }
  .legal-card {
    padding: 1.5rem;
  }
}
