/* ==========================================================================
   JojoPlay (jojoplay30.pages.dev) - Modernes Gamer & Arcade Webdesign
   Optimiert für Geschwindigkeit, Mobilgeräte, SEO und Google AdSense
   ========================================================================== */

:root {
  --bg-main: #0a0d14;
  --bg-surface: #121824;
  --bg-card: #182030;
  --bg-card-hover: #222d42;
  --bg-accent: #1e293b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.35);

  --primary: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.4);
  --secondary: #9d4edd;
  --accent: #ff3366;
  --warning: #ffb703;
  --success: #06d6a0;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);

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

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-neon: 0 0 20px rgba(0, 242, 254, 0.25);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a:hover {
  color: #38bdf8;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

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

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 0 15px var(--primary-glow);
}

.logo-text span {
  background: linear-gradient(90deg, var(--primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 242, 254, 0.15);
  color: var(--primary);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-trigger-btn:hover {
  background: var(--bg-card);
  border-color: rgba(0, 242, 254, 0.4);
  color: var(--text-main);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
}

.search-trigger-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-shortcut {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

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

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-btn:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--primary);
}

.header-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
}

.header-btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Category Navigation Bar */
.category-nav-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.category-nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  list-style: none;
  white-space: nowrap;
  max-width: 1380px;
  margin: 0 auto;
}

.category-nav-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.category-nav-item a:hover,
.category-nav-item.active a {
  background: var(--bg-card);
  color: #fff;
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.category-nav-item.active a {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(157, 78, 221, 0.15));
  color: var(--primary);
  border-color: var(--primary);
}

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

.hero-banner {
  background: linear-gradient(135deg, #131d33 0%, #1f1435 50%, #0d1a29 100%);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 242, 254, 0.08);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  background: linear-gradient(90deg, var(--primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-cta-play {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #050b14;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cta-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 242, 254, 0.5);
  color: #000;
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-game-showcase {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.2);
  transform: rotate(2deg);
  transition: transform var(--transition-smooth);
}

.hero-game-showcase:hover {
  transform: rotate(0deg) scale(1.03);
}

.hero-game-showcase img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* Quick Filter Bar */
.filter-bar-wrap {
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.filter-tab-btn {
  padding: 0.45rem 1.1rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab-btn:hover {
  color: #fff;
}

.filter-tab-btn.active {
  background: var(--primary);
  color: #050b14;
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.35);
}

.game-counter-badge {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.game-counter-badge strong {
  color: var(--primary);
}

/* Section Styling */
.game-section {
  padding: 2rem 0;
}

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

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  font-size: 1.6rem;
  color: var(--primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  transition: all var(--transition-fast);
}

.section-link:hover {
  background: rgba(0, 242, 254, 0.15);
  color: #fff;
  border-color: var(--primary);
}

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

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

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

/* Game Card */
.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  color: var(--text-main);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.2);
}

.game-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0f172a;
  overflow: hidden;
}

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

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

.game-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.game-card-badge.hot {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.game-card-badge.new {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.game-card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 3;
  transition: all var(--transition-fast);
}

.game-card-fav-btn:hover {
  background: rgba(255, 51, 102, 0.2);
  color: var(--accent);
  transform: scale(1.15);
}

.game-card-fav-btn.is-fav {
  background: rgba(255, 51, 102, 0.9);
  color: #fff;
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 13, 20, 0.9) 100%);
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

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

.game-card-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050b14;
  font-size: 1.3rem;
  opacity: 0;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: all var(--transition-smooth);
}

.game-card:hover .game-card-play-icon {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.game-card-body {
  padding: 0.85rem 0.9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dark);
}

.game-card-category {
  color: var(--primary);
  font-weight: 600;
}

.game-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #fbbf24;
  font-weight: 700;
}

/* Categories Grid */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 3rem;
}

.category-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, #162032 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 242, 254, 0.15);
}

.category-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
}

.category-card:hover .category-card-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary);
  color: #050b14;
}

.category-card-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.2rem;
}

.category-card-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Google AdSense & Ad Slots Styling (DSGVO / Policy Compliant)
   ========================================================================== */
.ads-wrapper {
  margin: 1.5rem auto;
  text-align: center;
  max-width: 100%;
}

.ads-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
  display: block;
}

.ads-slot {
  background: rgba(18, 24, 36, 0.7);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  min-height: 90px;
  position: relative;
  overflow: hidden;
  color: var(--text-dark);
  font-size: 0.85rem;
}

.ads-slot.banner-728x90 {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
}

.ads-slot.rectangle-300x250 {
  width: 100%;
  max-width: 300px;
  min-height: 250px;
}

.ads-slot.responsive-display {
  width: 100%;
  min-height: 100px;
}

/* ==========================================================================
   Game Player Page Layout
   ========================================================================== */
.game-play-layout {
  padding: 1.5rem 0 3rem;
}

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

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

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

.breadcrumbs-sep {
  color: var(--text-dark);
  font-size: 0.75rem;
}

.breadcrumbs-current {
  color: var(--text-main);
  font-weight: 600;
}

.game-player-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

/* Game Stage & Screen */
.game-stage-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.game-stage-container.theater-mode {
  position: relative;
  z-index: 950;
  grid-column: 1 / -1;
}

.game-iframe-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  max-height: 75vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-iframe-loader {
  position: absolute;
  inset: 0;
  background: #070a10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 5;
  transition: opacity 0.4s ease;
}

.game-iframe-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 242, 254, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Player Control Toolbar */
.game-player-toolbar {
  padding: 0.9rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.game-player-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.game-player-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-player-heading h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.game-player-heading p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.game-player-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.player-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.player-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.player-btn.danger.active {
  background: rgba(255, 51, 102, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

/* Lights Off Dimmer Overlay */
.lights-dimmer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lights-dimmer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Game Content & SEO Article Section */
.game-content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
}

.game-content-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 1.75rem 0 0.75rem;
}

.game-content-card h2:first-child {
  margin-top: 0;
}

.game-content-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 1.25rem 0 0.5rem;
}

.game-content-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.game-content-card ul, .game-content-card ol {
  color: var(--text-muted);
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.game-content-card li {
  margin-bottom: 0.4rem;
}

/* Controls Table */
.controls-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.controls-table th, .controls-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.controls-table th {
  background: rgba(0, 242, 254, 0.08);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.controls-table td {
  font-size: 0.92rem;
  color: var(--text-main);
}

.key-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

/* FAQ Accordion */
.faq-accordion {
  margin-top: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  transition: transform var(--transition-fast);
  font-size: 0.85rem;
  color: var(--primary);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

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

.faq-item.open .faq-answer {
  display: block;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-game-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-game-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.sidebar-game-item:hover {
  background: var(--bg-card);
}

.sidebar-game-item img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.sidebar-game-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}

.sidebar-game-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Legal & Editorial Pages */
.legal-page-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2rem 0 4rem;
}

.legal-page-content h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.legal-page-content .last-updated {
  color: var(--text-dark);
  font-size: 0.88rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 0.75rem;
}

.legal-page-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 1.25rem 0 0.5rem;
}

.legal-page-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.legal-page-content ul {
  color: var(--text-muted);
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-box {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  padding: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

/* Contact Form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* Footer */
.site-footer {
  background: #07090f;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

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

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 1rem 0 1.25rem;
  max-width: 340px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.search-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-box {
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 242, 254, 0.15);
  overflow: hidden;
  transform: translateY(-20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal.open .search-modal-box {
  transform: translateY(0) scale(1);
}

.search-modal-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  gap: 0.75rem;
}

.search-modal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: #fff;
}

.search-modal-close {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-modal-close:hover {
  color: #fff;
  border-color: var(--accent);
}

.search-modal-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 0.75rem;
}

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

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

.search-result-item img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.search-result-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.search-result-info span {
  font-size: 0.78rem;
  color: var(--primary);
}

.search-empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

/* Cookie Consent Banner (DSGVO / GDPR compliant) */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 460px;
  background: rgba(18, 24, 36, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  z-index: 3000;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 242, 254, 0.15);
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
}

.cookie-btn {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.cookie-btn.accept {
  background: var(--primary);
  color: #050b14;
}

.cookie-btn.accept:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.cookie-btn.decline {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.cookie-btn.decline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .hero-banner {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }
  .hero-visual {
    display: none;
  }
  .header-inner {
    height: 64px;
  }
  .search-shortcut {
    display: none;
  }
  .game-iframe-wrapper {
    height: 460px;
  }
  .game-player-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .game-player-actions {
    width: 100%;
    justify-content: space-between;
  }
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
}
