/* =========================================================
   FunGameOn.online - Modern Gaming Storefront Design System
   Inspired by Steam, Epic Games & Discord
   Clean, Accessible, User-Friendly & High-Contrast
   ========================================================= */

:root {
  /* Surface & Background Colors */
  --bg-base: #0b0e14;
  --bg-surface: #111622;
  --bg-card: #171e2e;
  --bg-card-hover: #1e283d;
  --bg-card-active: #243048;
  --bg-glass: rgba(17, 22, 34, 0.85);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-focus: #6366f1;

  /* Brand Colors & Accents */
  --primary: #6366f1;           /* Modern Indigo/Blurple */
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.15);
  --accent-cyan: #06b6d4;
  --accent-cyan-light: rgba(6, 182, 212, 0.15);
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-amber-light: rgba(245, 158, 11, 0.15);
  --accent-rose: #f43f5e;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  /* Fonts */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-subtle);
  --shadow-card-hover: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.4);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1220px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 2rem;
}

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: #242c3d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38455e;
}

/* Subtle, unobtrusive ambient gradient */
.cyber-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(99, 102, 241, 0.08), transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(6, 182, 212, 0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow { display: none; } /* Disabled harsh glowing orbs */

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 2;
}

.section {
  padding-block: 4.5rem 3.5rem;
  position: relative;
}

/* Typography Helpers */
.text-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.section-tag.neon-gold {
  color: var(--accent-amber);
  background: var(--accent-amber-light);
  border-color: rgba(245, 158, 11, 0.3);
}

.section-tag.neon-cyan {
  color: var(--accent-cyan);
  background: var(--accent-cyan-light);
  border-color: rgba(6, 182, 212, 0.3);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 620px;
  margin-inline: auto;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  user-select: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-glow {
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

.btn-glow:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-light);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-icon-only {
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}

.btn-icon-only:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ==================== HEADER & NAVBAR ==================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(11, 14, 20, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.1;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex-shrink: 1;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-sm);
  position: relative;
  white-space: nowrap; /* CRITICAL: Never break text onto multiple lines */
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sound-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--border-light);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 85vw);
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 1000;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-normal);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.drawer-link {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.drawer-link:hover {
  color: var(--primary);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  padding-block: 3.5rem 4.5rem;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-amber);
  background: var(--accent-amber-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-amber);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
}

.hero-meta-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.35rem;
  width: fit-content;
}

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

.meta-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.meta-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.hero-platforms {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.platforms-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

/* Hero Showcase Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.hero-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.hero-card:hover .hero-cover-img {
  transform: scale(1.04);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 22, 34, 0.95), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.play-overlay-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  color: var(--text-inverse);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast);
}

.play-overlay-btn:hover {
  transform: scale(1.12);
}

.hero-card-footer {
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}

.footer-game-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-game-genre {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-game-badge span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
}

.floating-cyber-tag {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: var(--shadow-md);
  z-index: 5;
  pointer-events: none;
}

.tag-top { top: -12px; right: -12px; }
.tag-bottom { bottom: -12px; left: -12px; }

/* ==================== GAMES CATALOG & CARDS ==================== */
.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 260px;
}

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

.search-input {
  width: 100%;
  padding: 0.55rem 2rem 0.55rem 2.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary);
}

.search-clear-btn {
  position: absolute;
  right: 0.6rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

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

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow-card-hover);
}

.card-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0d1117;
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-rating-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-amber);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.card-genre-tag {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

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

.card-title-row {
  margin-bottom: 0.35rem;
}

.card-game-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  transition: color var(--transition-fast);
}

.game-card:hover .card-game-title {
  color: var(--primary);
}

.card-game-synopsis {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.card-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.feature-pill {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border-subtle);
}

.card-platforms {
  display: flex;
  gap: 0.4rem;
  font-size: 1rem;
}

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

/* ==================== PLAYABLE ARCADE SECTION ==================== */
.arcade-section {
  background: var(--bg-surface);
}

.arcade-card-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
}

.arcade-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.arcade-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
}

.arcade-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.arcade-instructions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.instruction-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.inst-key {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  min-width: 80px;
  text-align: center;
}

.inst-text {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.arcade-stats-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.hud-stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.hud-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hud-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.15rem;
}

.hud-best { color: var(--accent-amber); }
.hud-mult { color: var(--accent-emerald); }

.arcade-controls-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.arcade-screen-box {
  display: flex;
  justify-content: center;
}

.arcade-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #090d15;
  border: 2px solid #242c3d;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#arcadeCanvas, #activeArcadeCanvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 560;
  background: #090d15;
  cursor: pointer;
}

.canvas-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 22, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.25s ease;
}

.canvas-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-content {
  text-align: center;
  padding: 1.5rem;
}

.overlay-icon {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

.overlay-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.overlay-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 280px;
}

.virtual-controls {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.65rem;
  background: #090d15;
  border-top: 1px solid var(--border-subtle);
}

.v-btn {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
}

/* ==================== LEADERBOARD SECTION ==================== */
.leaderboard-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.lb-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.lb-game-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lb-tab {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lb-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.lb-tab.active {
  background: var(--accent-amber);
  border-color: var(--accent-amber);
  color: #0f172a;
}

.podium-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.podium-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-fast);
}

.podium-card:hover { transform: translateY(-4px); }

.podium-first {
  border-color: rgba(245, 158, 11, 0.4);
  order: 2;
  transform: translateY(-8px);
}

.podium-second { order: 1; border-color: rgba(148, 163, 184, 0.3); }
.podium-third { order: 3; border-color: rgba(217, 119, 6, 0.3); }

.podium-rank-badge {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.podium-player-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.podium-player-platform {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.podium-score-val {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
}

.leaderboard-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 80px 2.2fr 1fr 1fr 1.2fr;
  padding: 0.75rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-row {
  display: grid;
  grid-template-columns: 80px 2.2fr 1fr 1fr 1.2fr;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  align-items: center;
  font-size: 0.9rem;
}

.table-row:hover { background: rgba(255, 255, 255, 0.03); }

.table-row.highlight-user {
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid var(--primary);
}

.col-player-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.player-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #242c3d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.col-score-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  text-align: right;
  padding-right: 0.5rem;
}

/* ==================== ABOUT, CARDS & FAQ ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.25rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.about-badge {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.about-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1rem;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.feat-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.feature-item p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.stat-highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  display: block;
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.newsletter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.newsletter-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

.newsletter-form .input-group {
  display: flex;
  gap: 0.45rem;
}

.email-input {
  flex: 1;
  padding: 0.7rem 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.email-input:focus { border-color: var(--primary); }

.form-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
}

/* FAQ Items */
.faq-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-q {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.45rem;
}

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

/* ==================== FOOTER ==================== */
.site-footer {
  background: #080b11;
  border-top: 1px solid var(--border-subtle);
  padding-block: 4rem 2rem;
  position: relative;
  z-index: 2;
  margin-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3.5rem;
  margin-bottom: 3rem;
}

.footer-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.85rem;
  margin-bottom: 1.25rem;
  max-width: 340px;
}

.footer-socials {
  display: flex;
  gap: 0.65rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.col-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 1.15rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: #ffffff;
}

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

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

.badge-pill {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
}

/* ==================== MODALS ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 18, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-dialog {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.96) translateY(15px);
  transition: transform 0.25s var(--transition-normal);
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-lg { max-width: 840px; }
.modal-sm { max-width: 460px; }
.modal-trailer { max-width: 820px; }

.modal-close-btn {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
}

/* Detail Modal Body */
.detail-modal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2.25rem;
}

.detail-main-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.detail-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
}

.spec-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.spec-val { font-weight: 600; color: #fff; }

.detail-info-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.detail-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.detail-tag {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
}

.detail-tag.highlight {
  color: var(--primary);
  background: var(--primary-light);
  border-color: rgba(99, 102, 241, 0.3);
}

.detail-header-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.detail-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.detail-download-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.store-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-playstore {
  background: #01875f;
  color: #fff;
}
.btn-playstore:hover { background: #006e4d; }

.btn-appstore {
  background: #242c3d;
  color: #fff;
}
.btn-appstore:hover { background: #323d54; }

.btn-apk-direct {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.btn-apk-direct:hover { background: rgba(99, 102, 241, 0.25); }

/* Score Modal */
.score-modal-content {
  padding: 2rem;
  text-align: center;
}

.score-modal-icon {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.score-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
  margin-top: 1.25rem;
}

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

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  padding: 0.65rem 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.form-control:focus { border-color: var(--primary); }

.modal-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.modal-actions .btn { flex: 1; }

/* ==================== ADSENSE CONTAINERS ==================== */
.ad-container-wrapper {
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-block: 1.85rem;
  max-width: 100%;
}

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

.ad-placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 23, 34, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.78rem;
  overflow: hidden;
}

.ad-placeholder-box.banner-ad {
  min-height: 90px;
  width: 100%;
  max-width: 970px;
  margin-inline: auto;
}

.ad-placeholder-box.sidebar-ad {
  min-height: 250px;
  width: 100%;
}

.ad-demo-text { padding: 1.25rem; opacity: 0.6; }

/* ==================== GUIDES & ARTICLES ==================== */
.guides-layout-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.articles-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.article-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.badge-action { background: var(--primary-light); color: var(--primary); }
.badge-racing { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.badge-rpg { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.badge-puzzle { background: var(--accent-amber-light); color: var(--accent-amber); }
.badge-tech { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }

.article-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.85rem;
}

.article-lead {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-content-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.article-content-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.guide-tip-box {
  display: flex;
  gap: 0.85rem;
  background: var(--accent-amber-light);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-block: 1.25rem;
}

.guide-tip-box strong { color: var(--accent-amber); display: block; margin-bottom: 0.25rem; }
.guide-tip-box p { color: var(--text-primary); font-size: 0.88rem; margin: 0; }

.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.25rem;
  font-size: 0.85rem;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.guide-table th, .guide-table td {
  padding: 0.75rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.guide-table th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  color: #fff;
}

.guides-sidebar {
  position: sticky;
  top: 90px;
}

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

.sidebar-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

.sidebar-links-list a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sidebar-links-list a:hover { color: #fff; }

/* ==================== POLICY & CONTACT ==================== */
.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-card);
}

.policy-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.policy-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.policy-section { margin-bottom: 2rem; }
.policy-section h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.65rem;
}

.policy-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.25rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.contact-channel-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.15rem;
  color: #fff;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
  from { transform: translateX(80px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 999;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
  .nav-links {
    gap: 0.35rem;
  }
  .nav-link {
    font-size: 0.83rem;
    padding: 0.38rem 0.55rem;
  }
  .sound-toggle-btn .sound-label {
    display: none;
  }
  .sound-toggle-btn {
    padding: 0.45rem 0.65rem;
  }
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-content { align-items: center; }
  .hero-meta-strip { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-platforms { align-items: center; }
  .arcade-card-layout { grid-template-columns: 1fr; padding: 2rem; }
  .about-grid, .contact-grid, .guides-layout-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-cta { display: none; }
  .section { padding-block: 3.5rem 2.5rem; }
  .hero-title { font-size: 2.1rem; }
  .podium-row { grid-template-columns: 1fr; }
  .podium-first { order: 1; transform: none; }
  .podium-second { order: 2; }
  .podium-third { order: 3; }
  .table-header, .table-row { grid-template-columns: 50px 1.5fr 1fr; }
  .col-date, .col-platform, .table-row .col-platform-badge, .table-row .col-date-text { display: none; }
  .detail-modal-layout { grid-template-columns: 1fr; padding: 1.5rem; }
  .virtual-controls { display: grid; }
  .footer-links-group { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-links-group { grid-template-columns: 1fr; }
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .search-box-wrapper { min-width: 100%; }
  .arcade-stats-hud { grid-template-columns: 1fr; }
}
