/* ==========================================================================
   PixelBurst.in — 2026 Modern Premium SaaS Design System
   Engineered for Visual Excellence, High Conversion, and Strict Accessibility
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Surface & Background (Deep Obsidian & Refined Slate) */
  --bg-body: #090a0f;
  --bg-surface: #10121d;
  --bg-surface-elevated: #161927;
  --bg-surface-hover: #1e2235;
  --bg-glass: rgba(16, 18, 29, 0.75);
  --bg-glass-card: rgba(22, 25, 39, 0.65);

  /* Primary Brand & Accents (Sleek 2026 SaaS Palette) */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --primary-light: rgba(99, 102, 241, 0.12);

  --accent-cyan: #06b6d4;
  --accent-cyan-light: rgba(6, 182, 212, 0.12);
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --grad-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --grad-surface: linear-gradient(180deg, rgba(22, 25, 39, 0.8) 0%, rgba(16, 18, 29, 0.95) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-hover: rgba(255, 255, 255, 0.18);

  /* Text Colors */
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.3);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-width: 1280px;
  --header-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 90% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

::selection {
  background: var(--primary);
  color: #fff;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Typography System
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

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

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

/* ==========================================================================
   Buttons System (SaaS Grade)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-card);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-card);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 7px 15px;
  font-size: 0.82rem;
  border-radius: var(--radius-xs);
}

.btn-lg {
  padding: 13px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #f43f5e 100%);
  border-radius: 11px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35);
  color: #ffffff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}

.brand-logo:hover .logo-badge {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.5);
}

.logo-badge svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.brand-text span {
  background: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  color: var(--text-main);
  font-weight: 600;
}

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

/* Navigation Dropdown (Categories List View) */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.active .nav-dropdown-trigger {
  color: var(--text-main);
}

.dropdown-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-dim);
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.active .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 440px;
  background: rgba(13, 16, 27, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 25px rgba(99, 102, 241, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  padding: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 4px 8px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.dropdown-item-icon {
  font-size: 1.25rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dropdown-item:hover .dropdown-item-icon {
  transform: scale(1.12);
  background: rgba(99, 102, 241, 0.15);
}

.dropdown-item-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.dropdown-item-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
}

.dropdown-item-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-menu-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  margin-top: 8px;
}

.dropdown-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-all-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}


/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.search-trigger span {
  white-space: nowrap;
  font-size: 0.84rem;
}

.search-trigger:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
  background: var(--bg-surface-hover);
}

.search-trigger kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--text-secondary);
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section (Refined SaaS Architecture)
   ========================================================================== */
.hero-section {
  padding: 64px 0 32px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 24px;
}

.hero-pill-badge .indicator-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-headline {
  font-size: 3.4rem;
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.035em;
}

.hero-subtext {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 560px;
}

.hero-cta-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.metric-box {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Featured Hero Showcase Card */
.featured-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.featured-hero-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.featured-card-media {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-elevated);
  margin-bottom: 20px;
}

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

.featured-hero-card:hover .featured-card-media img {
  transform: scale(1.03);
}

.featured-badge-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(16, 18, 29, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-card);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.featured-card-info h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.featured-card-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

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

.meta-stats-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-amber);
  font-weight: 600;
}

/* ==========================================================================
   Category Filter Chips
   ========================================================================== */
.categories-container {
  padding: 24px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.categories-container::-webkit-scrollbar {
  display: none;
}

.category-chips-list {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cat-pill:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-hover);
  color: var(--text-main);
  transform: translateY(-1px);
}

.cat-pill.active {
  background: var(--primary);
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.cat-pill svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-headline-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}

.headline-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.headline-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.headline-title {
  font-size: 1.85rem;
  letter-spacing: -0.025em;
}

.link-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.link-all:hover {
  gap: 9px;
  color: #a5b4fc;
}

/* ==========================================================================
   Modern Game Cards Grid (2026 SaaS Card System)
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.game-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.15);
}

.game-card-media {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-surface-elevated);
  overflow: hidden;
}

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

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

.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(16, 18, 29, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
}

.card-play-action {
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 15, 0.5);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.game-card:hover .card-play-action {
  opacity: 1;
}

.play-action-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.5);
  transform: scale(0.85);
  transition: var(--transition-fast);
}

.game-card:hover .play-action-btn {
  transform: scale(1);
}

.play-action-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-left: 2px;
}

.game-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.35;
}

.card-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.play-counter-badge {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   AdSense Placement Framework (Clean, Discreet, High CTR)
   ========================================================================== */
.ad-slot-wrapper {
  margin: 32px auto;
  text-align: center;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 24px;
}

.ad-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 6px;
  display: block;
}

.ad-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
}

.ad-box:hover {
  border-color: var(--border-hover);
}

.ad-box.leaderboard {
  min-height: 90px;
  max-width: 970px;
  margin: 0 auto;
}

.ad-box.medium-rectangle {
  min-height: 250px;
  max-width: 300px;
  margin: 0 auto;
}

.ad-box.large-rectangle {
  min-height: 280px;
  max-width: 336px;
  margin: 0 auto;
}

.ad-placeholder-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.82rem;
  padding: 16px;
}

.ad-placeholder-content svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-dim);
}

/* ==========================================================================
   Editorial Content & Value Section (AdSense Approval Anchor)
   ========================================================================== */
.editorial-section {
  padding: 64px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 48px 0;
}

.editorial-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 52px;
}

.editorial-content-box h2 {
  font-size: 2.1rem;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.editorial-content-box p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.98rem;
  line-height: 1.75;
}

.feature-benefits-grid {
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefit-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: rgba(99, 102, 241, 0.1);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.benefit-text h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.benefit-text p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0;
}

/* Modern Accordion */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-card:hover {
  border-color: var(--border-hover);
}

.faq-trigger {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  gap: 12px;
}

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

.faq-content-pane {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  display: none;
}

.faq-card.active .faq-content-pane {
  display: block;
}

.faq-card.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-chevron {
  transition: var(--transition-fast);
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ==========================================================================
   Search Modal System (Ctrl + K)
   ========================================================================== */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 5, 12, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  place-items: start center;
  padding: clamp(20px, 8vh, 60px) 16px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.search-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.search-dialog {
  width: 100%;
  max-width: 640px;
  background: #0f121d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 50px rgba(99, 102, 241, 0.22);
  overflow: hidden;
  animation: dialogPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@keyframes dialogPop {
  from {
    transform: scale(0.96) translateY(-14px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.search-bar-header {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: #141727;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.search-bar-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), rgba(236, 72, 153, 0.6), transparent);
}

.search-input-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--primary);
  flex-shrink: 0;
}

.search-input-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.search-bar-header input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 500;
  color: #ffffff;
  background: transparent;
  border: none;
  outline: none;
}

.search-bar-header input::placeholder {
  color: #64748b;
  font-size: 0.95rem;
}

.search-clear-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-dim);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.search-dismiss-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-dismiss-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Quick Filter Tags Row */
.search-quick-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(16, 18, 29, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.search-quick-tags::-webkit-scrollbar {
  display: none;
}

.search-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.search-tag:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #ffffff;
  border-color: rgba(99, 102, 241, 0.3);
}

.search-tag.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Results List */
.search-results-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-section-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px 4px;
}

.search-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.12s ease;
  cursor: pointer;
}

.search-result-row:hover,
.search-result-row.selected {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateX(2px);
}

.search-result-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.search-result-row-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  background: #161927;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  flex-shrink: 0;
}

.search-result-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-row-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.search-result-row-info h4 {
  font-size: 0.94rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-row-info h4 mark {
  background: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  border-radius: 2px;
  padding: 0 2px;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.search-badge-cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.search-action-cue {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.search-result-row:hover .search-action-cue,
.search-result-row.selected .search-action-cue {
  opacity: 1;
}

.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.search-empty-state svg {
  width: 44px;
  height: 44px;
  stroke: var(--text-dim);
  margin-bottom: 12px;
}

.search-empty-state h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.search-empty-state p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Modal Footer Shortcuts Legend */
.search-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #0b0e18;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.search-shortcuts-guide {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-shortcuts-guide kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-right: 3px;
}

.search-powered-by {
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.72rem;
}

/* ==========================================================================
   Site Footer (Professional SaaS Layout)
   ========================================================================== */
.site-footer {
  background: #06070a;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 28px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 16px 0 20px;
  max-width: 320px;
}

.trust-badges-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.footer-column h4 {
  font-size: 0.95rem;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

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

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

.footer-links-list a:hover {
  color: var(--text-main);
  padding-left: 3px;
}

.newsletter-box {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.newsletter-box input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

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

.newsletter-box button {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 0 16px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-box button:hover {
  background: var(--primary-hover);
}

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

.footer-disclaimer-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.5;
}

/* ==========================================================================
   Cookie Consent Card (GDPR & CCPA Compliant)
   ========================================================================== */
.cookie-card-dialog {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 480px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: slideInBottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInBottom {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-card-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.cookie-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Mobile Bottom Bar (Fixed Floating Navigation on Mobile Devices)
   ========================================================================== */
.mobile-bottom-bar {
  display: none !important;
  visibility: hidden !important;
}

@media (min-width: 769px) {
  .mobile-bottom-bar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

.mobile-tab-btn {
  background: none;
  border: none;
  outline: none;
}

.mobile-tab-btn svg {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
}

/* ==========================================================================
   Mobile Drawer Overlay (Slide-Out Navigation Panel)
   ========================================================================== */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background: var(--bg-surface-elevated);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-backdrop.active .mobile-drawer-panel {
  transform: translateX(0);
}

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

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
}

.drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-top: 14px;
  margin-bottom: 6px;
  padding-left: 8px;
}

.drawer-group-title:first-child {
  margin-top: 0;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.drawer-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.drawer-link:hover,
.drawer-link.active {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   Full Desktop, Tablet & Mobile Responsive Adaptations
   ========================================================================== */
@media (max-width: 1280px) {
  .site-header .container {
    gap: 14px;
  }

  .nav-links {
    gap: 12px;
  }

  .search-trigger kbd {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }
}

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

@media (max-width: 1024px) {
  .site-header .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: grid;
    place-items: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .featured-hero-card {
    max-width: 640px;
    margin: 0 auto;
  }

  .editorial-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {

  /* Safe touch & mobile body offset */
  body {
    padding-bottom: 74px;
    /* Space for Mobile Bottom Bar */
  }

  .container {
    padding: 0 16px;
  }

  /* Header on Mobile */
  .site-header {
    height: 64px;
  }

  .site-header .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: grid;
    place-items: center;
  }

  .search-trigger kbd {
    display: none;
  }

  .search-trigger span {
    display: none;
  }

  .search-trigger {
    padding: 8px 10px;
    border-radius: var(--radius-xs);
  }

  .header-actions .btn.btn-primary.btn-sm span {
    display: none;
  }

  .header-actions .btn.btn-primary.btn-sm {
    padding: 8px 12px;
  }

  /* Hero Section on Mobile */
  .hero-section {
    padding: 32px 0 24px;
  }

  .hero-headline {
    font-size: 1.95rem;
    line-height: 1.25;
  }

  .hero-subtext {
    font-size: 0.92rem;
  }

  .hero-cta-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .hero-cta-wrapper .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 20px;
  }

  .metric-box {
    text-align: center;
  }

  .metric-number {
    font-size: 1.15rem;
  }

  .metric-label {
    font-size: 0.72rem;
  }

  /* Category Chips - Smooth Touch Swipeable Row */
  .categories-container {
    padding: 12px 16px 20px;
    margin: 0 -16px;
    width: calc(100% + 32px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .category-chips-list {
    padding: 0 16px;
    gap: 8px;
  }

  .cat-pill {
    padding: 8px 14px;
    font-size: 0.82rem;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  /* 2-Column Mobile Game Grid (App-Store Style) */
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
  }

  .game-card {
    border-radius: var(--radius-sm);
  }

  .game-card:active {
    transform: scale(0.98);
  }

  .game-card-media {
    aspect-ratio: 1/1;
  }

  .card-tag {
    top: 6px;
    left: 6px;
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  .game-card-content {
    padding: 10px 10px 12px;
  }

  .card-category-label {
    font-size: 0.68rem;
    margin-bottom: 2px;
  }

  .card-title {
    font-size: 0.92rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-description {
    display: none;
    /* Keep mobile cards snappy, clean and compact */
  }

  .card-footer-meta {
    padding-top: 8px;
    font-size: 0.74rem;
  }

  .play-counter-badge span {
    font-size: 0.72rem;
  }

  /* Ad Slots on Mobile */
  .ad-slot-wrapper {
    margin: 12px 0;
  }

  .ad-box.leaderboard {
    min-height: 60px;
    max-height: 80px;
    padding: 8px;
  }

  .ad-placeholder-content span {
    font-size: 0.74rem;
  }

  /* Editorial & Benefits */
  .feature-benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-headline-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
  }

  .headline-title {
    font-size: 1.45rem;
  }

  /* Footer on Mobile */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Cookie Dialog on Mobile */
  .cookie-card-dialog {
    left: 12px;
    right: 12px;
    bottom: 74px;
    /* Above mobile bottom bar */
    padding: 16px;
  }

  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-bar {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 12, 19, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  }

  .mobile-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-dim);
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    transition: var(--transition-fast);
    cursor: pointer;
  }

  .mobile-tab-btn svg {
    width: 20px;
    height: 20px;
  }

  .mobile-tab-btn.active,
  .mobile-tab-btn:active {
    color: var(--primary);
  }
}

@media (max-width: 380px) {
  .games-grid {
    gap: 8px;
  }

  .game-card-content {
    padding: 8px 8px 10px;
  }

  .card-title {
    font-size: 0.85rem;
  }

  .hero-headline {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   Favorites & Card Heart Button
   ========================================================================== */
.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(16, 18, 29, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 6;
  transition: var(--transition-fast);
}

.card-fav-btn:hover {
  transform: scale(1.15);
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.card-fav-btn.active {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  animation: heartPulse 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heartPulse {
  0% {
    transform: scale(0.8);
  }

  50% {
    transform: scale(1.35);
  }

  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   Recently Played Section & Horizontal Carousel
   ========================================================================== */
.recently-played-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.recently-played-scroll::-webkit-scrollbar {
  height: 6px;
}

.recently-played-scroll::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 3px;
}

.recent-card {
  flex: 0 0 210px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.recent-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.recent-card-media {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-surface-elevated);
  overflow: hidden;
}

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

.recent-card:hover .recent-card-media img {
  transform: scale(1.06);
}

.recent-card-content {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recent-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.recent-resume-btn {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Surprise Me Dice Animation */
#btn-surprise-hero:hover span,
#btn-surprise-header:hover span {
  display: inline-block;
  animation: diceRoll 0.5s ease-in-out;
}

@keyframes diceRoll {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.2);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* ==========================================================================
   Feature #2 & #3: Daily Streak & Achievement Trophies
   ========================================================================== */

/* Header Streak & Trophy Badges */
.header-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.header-badge-btn:hover {
  transform: translateY(-1px);
}

/* Streak Header Pill */
.streak-btn {
  border-color: rgba(255, 120, 0, 0.25);
  background: linear-gradient(135deg, rgba(255, 120, 0, 0.08), rgba(255, 60, 0, 0.04));
}

.streak-btn:hover {
  border-color: rgba(255, 120, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 120, 0, 0.15), rgba(255, 60, 0, 0.08));
  box-shadow: 0 0 16px rgba(255, 120, 0, 0.25);
}

.streak-btn .streak-icon {
  font-size: 0.95rem;
  display: inline-block;
  animation: flamePulse 2s infinite ease-in-out;
}

@keyframes flamePulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px #ff6600);
  }

  50% {
    transform: scale(1.18);
    filter: drop-shadow(0 0 6px #ff3300);
  }
}

.streak-btn .streak-count {
  font-weight: 700;
  color: #ff9933;
}

.streak-btn .streak-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Trophy Header Pill */
.trophy-btn {
  border-color: rgba(255, 215, 0, 0.25);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 180, 0, 0.03));
}

.trophy-btn:hover {
  border-color: rgba(255, 215, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 180, 0, 0.08));
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.25);
}

.trophy-btn .trophy-icon {
  font-size: 0.95rem;
}

.trophy-btn .trophy-count {
  font-weight: 700;
  color: #ffd700;
}

/* ==========================================================================
   Game of the Day Spotlight Section
   ========================================================================== */
.daily-spotlight-section {
  margin: 10px auto 36px;
  position: relative;
  z-index: 2;
}

.daily-spotlight-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  background: radial-gradient(circle at 10% 20%, rgba(255, 120, 0, 0.08), transparent 45%),
    linear-gradient(135deg, rgba(22, 27, 46, 0.9), rgba(12, 15, 26, 0.95));
  border: 1px solid rgba(255, 140, 0, 0.25);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.daily-spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6600, #ffd700, #ff0055, #00d4ff);
  opacity: 0.9;
}

.spotlight-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.spotlight-tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ff6600, #ff3300);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(255, 102, 0, 0.35);
}

.spotlight-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-family: monospace;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}

/* Spotlight HUD Badges (Option 1 Placement) */
.spotlight-hud-pills {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.spotlight-hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.spotlight-hud-btn:hover {
  transform: translateY(-1px);
}

.spotlight-hud-btn .streak-label,
.spotlight-hud-btn .trophy-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}


.spotlight-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}

.spotlight-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.spotlight-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.spotlight-streak-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-md);
}

.spotlight-streak-status.completed {
  border-color: rgba(0, 230, 153, 0.35);
  background: rgba(0, 230, 153, 0.08);
}

.spotlight-streak-status .streak-flame {
  font-size: 1.3rem;
}

.spotlight-streak-status .streak-info-text {
  display: flex;
  flex-direction: column;
}

.spotlight-streak-status .streak-info-text strong {
  font-size: 0.85rem;
  color: #ff9933;
}

.spotlight-streak-status.completed .streak-info-text strong {
  color: #00e699;
}

.spotlight-streak-status .streak-info-text .streak-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.spotlight-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  background: #000;
}

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

.daily-spotlight-card:hover .spotlight-media-wrap img {
  transform: scale(1.05);
}

.spotlight-glass-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 15, 0.92));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spotlight-xp-bonus {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   Modals: Daily Streak & Achievement Trophies
   ========================================================================== */
.pixelburst-modal-backdrop,
.gameburst-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.pixelburst-modal,
.gameburst-modal {
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  background: #0f121e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 102, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.modal-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: rotate(90deg);
}

.modal-scrollable-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Streak Modal Specific Styles */
.streak-hero-banner {
  text-align: center;
  padding: 24px 20px;
  background: radial-gradient(circle at center, rgba(255, 102, 0, 0.15), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border: 1px solid rgba(255, 102, 0, 0.2);
  border-radius: var(--radius-md);
  position: relative;
}

.streak-flame-huge {
  font-size: 3.5rem;
  display: inline-block;
  animation: flamePulse 1.8s infinite ease-in-out;
  margin-bottom: 6px;
}

.streak-number-huge {
  font-size: 2.8rem;
  font-weight: 900;
  color: #ff9933;
  line-height: 1;
  text-shadow: 0 0 24px rgba(255, 102, 0, 0.4);
}

.streak-hero-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 6px 0 4px;
}

.streak-hero-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto;
}

/* 7-Day Streak Timeline */
.streak-timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.streak-day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.streak-day-cell .day-name {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.streak-day-cell .day-icon {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.streak-day-cell .day-status {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.streak-day-cell.completed {
  background: rgba(0, 230, 153, 0.08);
  border-color: rgba(0, 230, 153, 0.35);
}

.streak-day-cell.completed .day-status {
  background: rgba(0, 230, 153, 0.2);
  color: #00e699;
}

.streak-day-cell.active-today {
  background: rgba(255, 120, 0, 0.12);
  border-color: rgba(255, 120, 0, 0.5);
  box-shadow: 0 0 14px rgba(255, 102, 0, 0.25);
  transform: translateY(-2px);
}

.streak-day-cell.active-today .day-status {
  background: #ff6600;
  color: #fff;
}

.streak-day-cell.locked {
  opacity: 0.5;
}

.streak-day-cell.locked .day-status {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

/* Modal Stats Summary Grid */
.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.modal-stat-card {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  text-align: center;
}

.modal-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Achievements Modal Specific Styles */
.achievements-progress-card {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(0, 212, 255, 0.04));
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.achievements-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.achievements-progress-header strong {
  font-size: 0.92rem;
  color: #fff;
}

.achievements-progress-header span {
  font-size: 0.85rem;
  color: #ffd700;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ff8800, #00e699);
  border-radius: 9999px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Trophy Filter Tabs */
.trophy-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.trophy-tab-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trophy-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.trophy-tab-btn.active {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Trophy Grid */
.trophies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.trophy-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.trophy-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.trophy-card.unlocked {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 215, 0, 0.3);
}

.trophy-card.unlocked::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  bottom: 0;
  background: #ffd700;
}

.trophy-card.locked {
  opacity: 0.6;
}

.trophy-card-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.trophy-card.unlocked .trophy-card-icon {
  background: rgba(255, 215, 0, 0.12);
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.3));
}

.trophy-card-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
  min-width: 0;
}

.trophy-tier-badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
}

.tier-bronze {
  background: rgba(205, 127, 50, 0.2);
  color: #cd7f32;
  border: 1px solid rgba(205, 127, 50, 0.35);
}

.tier-silver {
  background: rgba(192, 192, 192, 0.2);
  color: #e0e0e0;
  border: 1px solid rgba(192, 192, 192, 0.35);
}

.tier-gold {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.tier-diamond {
  background: rgba(0, 212, 255, 0.2);
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.35);
}

.trophy-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trophy-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.trophy-meta-status {
  font-size: 0.68rem;
  margin-top: 4px;
  font-weight: 600;
}

.trophy-card.unlocked .trophy-meta-status {
  color: #00e699;
}

.trophy-card.locked .trophy-meta-status {
  color: var(--text-dim);
}

/* ==========================================================================
   Achievement Toast Notification
   ========================================================================== */
#achievement-toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.achievement-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 18, 30, 0.95);
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  max-width: 380px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.achievement-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.achievement-toast-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px #ffd700);
  animation: trophySpin 0.6s ease;
}

@keyframes trophySpin {
  0% {
    transform: scale(0.5) rotate(-20deg);
  }

  60% {
    transform: scale(1.2) rotate(10deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.achievement-toast-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.achievement-toast-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd700;
}

.achievement-toast-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.achievement-toast-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.achievement-toast-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  margin-left: 6px;
}

.achievement-toast-close:hover {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .daily-spotlight-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .spotlight-right {
    order: -1;
  }
}

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

  .streak-timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .streak-timeline .streak-day-cell:nth-child(n+5) {
    display: none;
  }

  #achievement-toast-container {
    top: 70px;
    right: 12px;
    left: 12px;
  }

  .achievement-toast {
    max-width: 100%;
  }

  .header-badge-btn .streak-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-badge-btn {
    padding: 5px 8px;
    font-size: 0.76rem;
  }

  .modal-stats-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-hud-pills {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
    justify-content: flex-start;
  }
}