/* Custom CSS for LetzPlay 360 - Additional styling beyond Tailwind */

/* ============================================================================
   CSS CUSTOM PROPERTIES - Semantic Color Variables
   ============================================================================ */

:root {
  /* Brand Colors (bolder, less generic) */
  --color-primary: #0EA5E9;    /* electric cyan */
  --color-secondary: #F59E0B;  /* amber */
  --color-accent: #10B981;     /* emerald */

  /* Semantic Colors - Success (Green) */
  --color-success-50: #F0FDF4;
  --color-success-100: #DCFCE7;
  --color-success-500: #22C55E;
  --color-success-600: #16A34A;
  --color-success-700: #15803D;
  --color-success: var(--color-success-500); /* Default */

  /* Semantic Colors - Warning (Yellow) */
  --color-warning-50: #FFFBEB;
  --color-warning-100: #FEF3C7;
  --color-warning-500: #F59E0B;
  --color-warning-600: #D97706;
  --color-warning-700: #B45309;
  --color-warning: var(--color-warning-500); /* Default */

  /* Semantic Colors - Danger (Red) */
  --color-danger-50: #FEF2F2;
  --color-danger-100: #FEE2E2;
  --color-danger-500: #EF4444;
  --color-danger-600: #DC2626;
  --color-danger-700: #B91C1C;
  --color-danger: var(--color-danger-500); /* Default */

  /* Semantic Colors - Info (Blue) */
  --color-info-50: #EFF6FF;
  --color-info-100: #DBEAFE;
  --color-info-500: #3B82F6;
  --color-info-600: #0EA5E9;
  --color-info-700: #0F6BB5;
  --color-info: var(--color-info-500); /* Default */

  /* Category Colors - Sports (Green) */
  --color-sports-light: #D1FAE5;
  --color-sports: #10B981;
  --color-sports-dark: #065F46;

  /* Category Colors - Gaming (Purple) */
  --color-gaming-light: #F3E8FF;
  --color-gaming: #6366F1;
  --color-gaming-dark: #4338CA;

  /* Category Colors - Arts (Orange) */
  --color-arts-light: #FED7AA;
  --color-arts: #F59E0B;
  --color-arts-dark: #B45309;
}

/* Global look & feel */
body {
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background:
    radial-gradient(120% 80% at 20% 20%, rgba(14, 165, 233, 0.18), transparent 40%),
    radial-gradient(80% 80% at 85% 0%, rgba(16, 185, 129, 0.14), transparent 45%),
    #0b1224;
}

/* Smooth, restrained transitions */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hero Gradient Animation */
.hero-gradient {
  background: linear-gradient(135deg, #0EA5E9 0%, #10B981 45%, #F59E0B 100%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* ============================================================================
   HOME / LANDING PAGE ENHANCEMENTS
   ============================================================================ */

.home-hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.home-hero > div {
  position: relative;
  z-index: 2;
}

.home-hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 140px;
  background: linear-gradient(180deg, rgba(11, 18, 36, 0) 0%, rgba(248, 250, 252, 0.65) 70%, #ffffff 100%);
  pointer-events: none;
  z-index: 1;
}

.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.2), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.12), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.home-hero-description {
  line-height: 1.55;
  max-width: 560px;
}

.home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.home-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 600;
}

.home-hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.home-hero-panel {
  position: relative;
  z-index: 1;
}

.home-hero-panel-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  color: #fff;
}

.home-hero-panel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.9), rgba(34, 197, 94, 0.9), rgba(245, 158, 11, 0.9));
  opacity: 0.75;
}

.home-hero-panel-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.home-hero-panel-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
}

.home-hero-panel-grid {
  display: grid;
  gap: 12px;
}

.home-hero-panel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.home-hero-panel-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.home-hero-panel-item span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.home-hero-panel-icon {
  font-size: 22px;
}

.home-hero-panel-footer {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.home-hero-spectrum {
  display: grid;
  gap: 14px;
}

.home-hero-spectrum-item {
  display: grid;
  gap: 6px;
}

.home-hero-spectrum-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-hero-spectrum-label {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.home-hero-spectrum-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.home-hero-spectrum-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.home-hero-spectrum-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.home-hero-spectrum-fill--mind {
  width: 72%;
  background: linear-gradient(90deg, #38bdf8, rgba(56, 189, 248, 0.75));
}

.home-hero-spectrum-fill--body {
  width: 64%;
  background: linear-gradient(90deg, #22c55e, rgba(34, 197, 94, 0.75));
}

.home-hero-spectrum-fill--arts {
  width: 58%;
  background: linear-gradient(90deg, #f59e0b, rgba(245, 158, 11, 0.75));
}

.home-hero-spectrum-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.home-section-header {
  text-align: center;
  margin-bottom: 32px;
}

.home-section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.home-section-header p {
  color: #64748b;
  font-size: 16px;
  margin: 0;
}

.home-pillars {
  background: #ffffff;
  position: relative;
}

.home-pillars::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 64px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, #ffffff 100%);
  pointer-events: none;
}

.home-pillar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 14px 32px -22px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.home-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0.85;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.9), rgba(16, 185, 129, 0.9));
}

.home-pillars .home-pillar-card:nth-child(1)::before {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.9), rgba(56, 189, 248, 0.9));
}

.home-pillars .home-pillar-card:nth-child(2)::before {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.9), rgba(34, 197, 94, 0.9));
}

.home-pillars .home-pillar-card:nth-child(3)::before {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.9), rgba(249, 115, 22, 0.9));
}

.home-pillar-icon {
  font-size: 28px;
  display: inline-flex;
  margin-bottom: 12px;
}

.home-pillar-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.home-pillar-card p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.home-quick-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.home-quick-card p {
  flex: 1;
}

.home-quick-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0.85;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.9), rgba(16, 185, 129, 0.9));
}

.home-quick-card-buzz::before {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.95), rgba(16, 185, 129, 0.9));
}

.home-quick-card-arcade::before {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.95), rgba(14, 165, 233, 0.9));
}

.home-quick-card-sports::before {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.95), rgba(34, 197, 94, 0.85));
}

.home-quick-card-arts::before {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.95), rgba(249, 115, 22, 0.85));
}

.home-quick-card-circle::before {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.95), rgba(59, 130, 246, 0.85));
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Card Hover Effects (opt-in only) */
.card-hover {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.25);
}

.card-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.22);
  box-shadow: 0 16px 36px -18px rgba(14, 165, 233, 0.28);
}

/* ============================================================================
   MICRO-INTERACTIONS - Button Press Effects
   ============================================================================ */

/* CTA shape/size baseline */
button, .cta {
  border-radius: 14px;
  font-weight: 700;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.2;
}

/* Buttons with gentle lift (opt-in via .cta-hover) */
.cta-hover {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.2s ease, color 0.2s ease;
}

.cta-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -16px rgba(15, 23, 42, 0.28);
}

.cta-hover:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -12px rgba(15, 23, 42, 0.22);
}

/* Tab button interactions */
.trending-tab-button, .nav-tab {
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.trending-tab-button:hover, .nav-tab:hover {
  box-shadow: 0 6px 18px -14px rgba(15, 23, 42, 0.24);
}

.trending-tab-button:active, .nav-tab:active {
  transform: translateY(0);
}

/* Input focus effect */
input:focus, textarea:focus, select:focus {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

/* Link hover effect */
a {
  transition: color 0.2s ease, transform 0.1s ease;
  color: #0f172a;
}

a:active {
  transform: scale(0.98);
}

/* ============================================================================
   PROGRESS INDICATORS
   ============================================================================ */

/* Progress bar container */
.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #E5E7EB;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

/* Progress bar fill */
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0EA5E9 0%, #22D3EE 50%, #38BDF8 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Animated progress bar shimmer */
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Circular progress indicator */
.progress-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid #E5E7EB;
  border-top-color: #0EA5E9;
  animation: spin 1s linear infinite;
}

/* Step progress indicator */
.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}

.progress-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #6B7280;
  transition: all 0.3s ease;
  position: relative;
}

.progress-step.active {
  background-color: #0EA5E9;
  color: white;
  transform: scale(1.1);
}

.progress-step.completed {
  background-color: #22C55E;
  color: white;
}

.progress-step.completed::after {
  content: '✓';
}

/* Connecting lines between steps */
.progress-step::before {
  content: '';
  position: absolute;
  left: -50%;
  width: 100%;
  height: 2px;
  background-color: #E5E7EB;
  z-index: -1;
}

.progress-step:first-child::before {
  display: none;
}

.progress-step.completed::before {
  background-color: #22C55E;
}

/* Loading dots animation */
.loading-dots {
  display: flex;
  gap: 8px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #0EA5E9;
  animation: bounce 1.4s infinite ease-in-out;
}

.loading-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Percentage progress indicator */
.progress-percentage {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-percentage-bar {
  flex: 1;
  height: 6px;
  background-color: #E5E7EB;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-percentage-fill {
  height: 100%;
  background-color: #0EA5E9;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.progress-percentage-text {
  font-size: 14px;
  font-weight: 600;
  color: #0EA5E9;
  min-width: 45px;
  text-align: right;
}

/* Active Tab Indicator */
.nav-tab.active {
  color: #0EA5E9;
  font-weight: 600;
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #0EA5E9;
}

/* Toast Animations */
@keyframes slide-in {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.toast {
  animation: slide-in 0.3s ease-out;
}

.toast.removing {
  animation: slide-out 0.3s ease-in;
}

/* Loading Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* Fade In Animation */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fade-in 0.5s ease-in;
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bottom Navigation Safe Area (for mobile) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid #0EA5E9;
  outline-offset: 2px;
}

/* Disabled State */
button:disabled,
input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  letter-spacing: 0.01em;
}

.badge-green {
  background-color: rgba(16, 185, 129, 0.12);
  color: #065F46;
}

.badge-orange {
  background-color: rgba(245, 158, 11, 0.14);
  color: #92400E;
}

.badge-blue {
  background-color: rgba(14, 165, 233, 0.14);
  color: #075985;
}

/* Responsive Utilities */
@media (max-width: 640px) {
  .mobile-hidden {
    display: none;
  }
}

@media (min-width: 641px) {
  .mobile-only {
    display: none;
  }
}

/* --- UI polish additions --- */
.home-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.home-hero-stat {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 10px 14px;
  min-width: 140px;
  backdrop-filter: blur(6px);
}

.home-hero-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.home-hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.buzz-hero-pulse {
  display: none;
}

.buzz-hero-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
  min-width: 140px;
}

.buzz-hero-chip-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.buzz-hero-chip-value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.buzz-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #ffffff);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 14px 30px -24px rgba(15, 23, 42, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buzz-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.35);
}

.buzz-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
}

.buzz-loading-grid {
  display: grid;
  gap: 18px;
}

.buzz-skeleton-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 18px;
  display: grid;
  gap: 12px;
}

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

.buzz-skeleton-pill {
  height: 20px;
  width: 90px;
  border-radius: 999px;
}

.buzz-skeleton-time {
  height: 14px;
  width: 60px;
  border-radius: 999px;
}

.buzz-skeleton-title {
  height: 18px;
  width: 65%;
  border-radius: 8px;
}

.buzz-skeleton-line {
  height: 12px;
  width: 90%;
  border-radius: 6px;
}

.buzz-skeleton-line.short {
  width: 60%;
}

.buzz-skeleton-media {
  height: 150px;
  border-radius: 12px;
}

.buzz-skeleton-actions {
  display: flex;
  gap: 10px;
}

.buzz-skeleton-button {
  height: 30px;
  width: 90px;
  border-radius: 999px;
}

.arcade-game-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: #64748b;
}

.arcade-game-card-meta span {
  background: rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 2px 8px;
}

.tab-spotlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.tab-spotlight h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 4px 0;
}

.tab-spotlight p {
  color: #475569;
  font-size: 13px;
  margin: 0;
}

.tab-spotlight-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: #0ea5e9;
  font-weight: 700;
}

.tab-spotlight-btn {
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tab-spotlight-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -14px rgba(14, 165, 233, 0.6);
}

.tab-pulse {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tab-pulse-chip {
  flex: 1 1 160px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 10px 12px;
}

.tab-pulse-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.tab-pulse-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.tab-item-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tab-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.3);
}

.tab-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tab-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.16);
  font-size: 14px;
}

.tab-item-meta {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.circle-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.circle-summary-card {
  border-radius: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.circle-summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.circle-summary-value {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.circle-summary-meta {
  font-size: 12px;
  color: #64748b;
}

.circle-skeleton-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.circle-skeleton-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.circle-skeleton-text {
  flex: 1;
  display: grid;
  gap: 6px;
}

.circle-skeleton-line {
  height: 12px;
  border-radius: 6px;
}

.circle-skeleton-line.short {
  width: 60%;
}

.circle-skeleton-invite {
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.circle-skeleton-actions {
  display: flex;
  gap: 8px;
}

.circle-skeleton-button {
  width: 72px;
  height: 28px;
  border-radius: 999px;
}

.circle-skeleton-message {
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.circle-message-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.circle-message-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.3);
}

/* Print Styles */
@media print {
  #top-navbar,
  #bottom-nav,
  #toast-container {
    display: none !important;
  }
}

/* ============================================================================
   HEADER NAVIGATION - Twitter Style
   ============================================================================ */

/* Header tab normal state */
.header-tab {
  color: #1f2937;
  font-weight: 600;
  position: relative;
  border-bottom: 4px solid transparent;
  transition: all 0.2s ease;
  border-radius: 12px 12px 0 0;
  padding-inline: 18px;
}

/* Header tab hover state */
.header-tab:hover {
  color: var(--color-primary);
  background-color: rgba(14, 165, 233, 0.12);
}

/* Header tab active state (Twitter style with bottom border) */
.header-tab.active {
  color: var(--color-primary);
  font-weight: 700;
  border-bottom-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.12));
}

/* Glassy navbar */
#top-navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 48px -28px rgba(15, 23, 42, 0.3);
  transition: all 0.25s ease;
  animation: fade-down 0.45s ease both;
}

#top-navbar.nav-condensed {
  box-shadow: 0 16px 40px -28px rgba(15, 23, 42, 0.45);
  padding-top: 4px;
  padding-bottom: 4px;
  backdrop-filter: blur(16px);
}

/* Focus visible treatment for interactive controls */
button:focus-visible,
.buzz-tab-button:focus-visible,
.header-tab:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.5);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.12);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tab hero stripes */
.tab-hero {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 8px 0 4px;
  overflow: visible;
  background-size: cover;
}

.tab-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 10px);
  pointer-events: none;
}

.tab-hero .halo {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}

.tab-hero .halo.one { top: -140px; left: -160px; }
.tab-hero .halo.two { bottom: -140px; right: -120px; }

.tab-hero .inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  animation: fade-up 0.55s ease both;
}

/* Match header padding at breakpoints */
@media (min-width: 640px) {
  .tab-hero .inner {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .tab-hero .inner {
    padding: 0 32px;
  }
}

.tab-hero h1 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: #0b1224;
  margin: 0 0 6px;
}

.tab-hero p {
  color: #0f172a;
  opacity: 0.78;
  margin: 0;
}

.tab-hero-buzz {
  background: radial-gradient(circle at 15% 30%, rgba(99, 102, 241, 0.18), transparent 45%),
              radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.16), transparent 50%),
              linear-gradient(120deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.08));
}

.tab-hero-arcade {
  position: relative;
  padding: 40px 0 30px;
  background: linear-gradient(135deg, #0EA5E9 0%, #10B981 45%, #F59E0B 100%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

.tab-hero-arcade .inner {
  align-items: stretch;
}

/* Remove diagonal line pattern from arcade hero (too visible on vibrant bg) */
.tab-hero-arcade::after {
  display: none;
}

.tab-hero-sports {
  position: relative;
  padding: 40px 0 30px;
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 55%, #34d399 100%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

.tab-hero-sports::after {
  display: none;
}

.tab-hero-arts {
  position: relative;
  padding: 40px 0 30px;
  background: linear-gradient(135deg, #0ea5e9 0%, #10b981 45%, #22c55e 100%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

.tab-hero-arts::after {
  display: none;
}

.tab-hero-circle {
  position: relative;
  padding: 40px 0 30px;
  background: linear-gradient(135deg, #0ea5e9 0%, #10b981 45%, #3b82f6 100%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

.tab-hero-circle::after {
  display: none;
}

.tab-hero-circle .inner.arcade-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.circle-hero-main {
  gap: 10px;
}

.circle-hero-tabs {
  margin-top: 4px;
}

/* Icon pills (emoji-free) */
.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  color: #0b1224;
  background: #e2e8f0;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.icon-buzz { background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(14, 165, 233, 0.25)); }
.icon-arcade { background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(14, 165, 233, 0.2)); }
.icon-sports { background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(14, 165, 233, 0.18)); }
.icon-arts { background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(99, 102, 241, 0.18)); }
.icon-circle { background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(16, 185, 129, 0.2)); }

/* Mobile menu active state */
.mobile-menu-item.active {
  color: var(--color-primary);
  background-color: rgba(14, 165, 233, 0.12);
  font-weight: 700;
}

/* Remove bottom padding from page content (no bottom nav anymore) */
#page-content {
  padding-bottom: 0;
}

/* Staggered reveal for card grids */
.stagger-grid > * {
  opacity: 0;
  animation: fade-up 0.45s ease forwards;
}
.stagger-grid > *:nth-child(1) { animation-delay: 0.02s; }
.stagger-grid > *:nth-child(2) { animation-delay: 0.06s; }
.stagger-grid > *:nth-child(3) { animation-delay: 0.10s; }
.stagger-grid > *:nth-child(4) { animation-delay: 0.14s; }
.stagger-grid > *:nth-child(5) { animation-delay: 0.18s; }
.stagger-grid > *:nth-child(6) { animation-delay: 0.22s; }
.stagger-grid > *:nth-child(7) { animation-delay: 0.26s; }
.stagger-grid > *:nth-child(8) { animation-delay: 0.30s; }

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Consistent surface spacing */
.surface {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px -18px rgba(15, 23, 42, 0.18);
  background: #ffffff;
}

/* Mobile menu slide animation */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

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

/* Hamburger menu button pulse on mobile */
#mobile-menu-btn:active {
  transform: scale(0.95);
}

/* ============================================================================
   DEEP LINKING - Highlight Flash Animation
   ============================================================================ */

/* Highlight flash for deep-linked events */
@keyframes highlight-flash {
  0%, 100% {
    background-color: transparent;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  }
  25% {
    background-color: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  }
  50% {
    background-color: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
  }
  75% {
    background-color: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  }
}

.highlight-flash {
  animation: highlight-flash 2s ease-in-out;
}

/* ============================================================================
   VIRTUAL SCROLL - Efficient rendering for large lists
   ============================================================================ */

.virtual-scroll-container {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - 280px); /* Viewport minus header/tabs/filters */
  min-height: 400px;
  -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
}

.virtual-scroll-inner {
  position: relative;
  width: 100%;
}

.virtual-scroll-item {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0 0 16px 0; /* Gap between cards */
}

/* Ensure cards inside virtual scroll have proper spacing */
.virtual-scroll-item .buzz-card {
  margin: 0;
}

/* Scrollbar styling for virtual scroll */
.virtual-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.virtual-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.virtual-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.virtual-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mobile refinements */
@media (max-width: 640px) {
  .tab-hero .inner { flex-direction: column; align-items: flex-start; padding: 0 18px; gap: 16px; }
  .tab-hero h1 { font-size: 28px; }
  .tab-hero .cta { width: 100%; justify-content: center; }
  .buzz-card { padding: 16px; }
  .buzz-card h3 { font-size: 16px; }
  .buzz-card p { font-size: 13px; }
  .buzz-media { gap: 10px; }
  .buzz-media img { height: 160px; }
  .cta { padding: 12px 14px; font-size: 14px; }
  .buzz-carousel-controls { top: 6px; right: 6px; }
}

/* Carousel controls (larger tap targets) */
.buzz-carousel-controls button {
  height: 36px;
  width: 36px;
  border-radius: 12px;
  box-shadow: 0 6px 16px -10px rgba(15, 23, 42, 0.3);
}

/* ============================================================================
   ARCADE - Game Cards & Sections
   ============================================================================ */

/* Hide scrollbar for horizontal scroll */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Game card hover effect */
.game-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -12px rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Playing now pulse animation */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.pulse-dot {
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ============================================================================
   ARCADE PAGE - Modern Game Experience
   ============================================================================ */

.arcade-page {
  min-height: 100vh;
  background: #f8fafc;
}

/* Arcade Content */
.arcade-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

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

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

/* Category Section */
.arcade-category {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.05);
}

.arcade-category-header {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.arcade-category-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.arcade-category-icon {
  font-size: 16px;
}

.arcade-category-games {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================================
   GAME CARDS - Expandable Mode Selection
   ============================================================================ */

/* Regular game card */
.game-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.game-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.1);
}

.game-card-expanded {
  flex-direction: column;
  align-items: stretch;
  padding: 12px;
  border-color: #6366f1;
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.25);
}

/* Featured game card */
.game-card-featured {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 110px;
  transition: all 0.2s ease;
}

.game-card-featured:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.15);
}

.game-card-featured-expanded {
  min-width: 280px;
  padding: 16px;
  align-items: stretch;
  text-align: left;
}

/* Expanded card header */
.game-card-expanded-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.game-card-close {
  margin-left: auto;
  padding: 4px;
  color: #94a3b8;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.game-card-close:hover {
  color: #64748b;
  background: #f1f5f9;
}

/* Mode buttons */
.game-card-modes {
  display: flex;
  gap: 8px;
}

.game-card-mode-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.game-card-mode-btn:hover {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
}

.game-card-mode-btn:hover .game-card-mode-desc {
  color: rgba(255, 255, 255, 0.8);
}

.game-card-mode-icon {
  font-size: 24px;
}

.game-card-mode-label {
  font-size: 13px;
  font-weight: 600;
}

.game-card-mode-desc {
  font-size: 11px;
  color: #64748b;
}

/* Compact mode buttons (for list cards) */
.game-card-modes-compact {
  display: flex;
  gap: 6px;
}

.game-card-mode-btn-compact {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.game-card-mode-btn-compact:hover {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
}

/* ============================================================================
   GAME SCREEN - Full Screen Game Experience
   ============================================================================ */

.game-screen {
  position: fixed;
  inset: 0;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  z-index: 100;
  animation: screenSlideIn 0.25s ease;
}

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

.game-canvas-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

/* ============================================================================
   PLAYER BAR - Adaptive Player Info + Controls
   ============================================================================ */

.player-bar {
  background: #1e293b;
  border: 1px solid #334155;
}

.player-bar-top {
  border-bottom: 1px solid #334155;
}

.player-bar-bottom {
  border-top: 1px solid #334155;
}

.player-bar-active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(14, 165, 233, 0.1));
  border-color: #6366f1;
}

.player-bar-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}

.player-bar-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-bar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.player-bar-name {
  color: white;
  font-size: 14px;
}

.player-bar-turn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  animation: pulse 2s ease-in-out infinite;
}

.player-bar-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-bar-timer {
  display: flex;
  align-items: center;
  color: #94a3b8;
  font-size: 14px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.player-bar-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: white;
}

/* Player bar controls */
.player-bar-controls {
  display: flex;
  gap: 8px;
  padding: 8px 16px 12px;
  border-top: 1px solid #334155;
}

.player-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #334155;
  border: 1px solid #475569;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.player-bar-btn:hover {
  background: #475569;
}

.player-bar-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.player-bar-btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* ============================================================================
   GAME TOOLBAR - Solo Mode Bottom Bar
   ============================================================================ */

.game-toolbar {
  background: #1e293b;
  border-top: 1px solid #334155;
  padding: 12px 16px;
}

.game-toolbar-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.game-toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #334155;
  border: 1px solid #475569;
  border-radius: 10px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.game-toolbar-btn:hover {
  background: #475569;
}

.game-toolbar-timer {
  display: flex;
  align-items: center;
  color: white;
  font-size: 16px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  padding: 0 12px;
}

.game-toolbar-difficulty {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #334155;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
}

.game-toolbar-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 8px;
  min-width: 160px;
  z-index: 50;
  box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, 0.3);
}

.game-toolbar-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  color: #e2e8f0;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.game-toolbar-menu button:hover {
  background: #334155;
}

/* ============================================================================
   DIFFICULTY SELECTOR - Inline Expandable
   ============================================================================ */

.difficulty-selector {
  position: relative;
  z-index: 45;
}

.difficulty-selector-collapsed {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #334155;
  border: 1px solid #475569;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.difficulty-selector-collapsed:hover {
  background: #475569;
}

.difficulty-selector-expanded {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
}

.difficulty-selector-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.difficulty-selector-option:hover {
  background: #334155;
  color: #e2e8f0;
}

.difficulty-selector-option-active {
  background: #334155;
  color: white;
}

.difficulty-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ============================================================================
   TURN OVERLAY - Pass Device Screen
   ============================================================================ */

.turn-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  animation: fadeIn 0.2s ease;
}

.turn-overlay-content {
  text-align: center;
  padding: 40px;
}

.turn-overlay-avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: white;
}

.turn-overlay-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0 0 8px;
}

.turn-overlay-subtitle {
  font-size: 16px;
  color: #94a3b8;
  margin: 0 0 24px;
}

.turn-overlay-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 48px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.turn-overlay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.5);
}

.turn-overlay-hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 16px;
}

/* ============================================================================
   GAME COMPLETE - Results Modal
   ============================================================================ */

.game-complete-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.game-complete-modal {
  background: white;
  border-radius: 24px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.game-complete-outcome {
  margin-bottom: 24px;
}

.game-complete-emoji {
  font-size: 56px;
  display: block;
  margin-bottom: 12px;
}

.game-complete-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

/* Solo results */
.game-complete-solo {
  margin-bottom: 24px;
}

.game-complete-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.game-complete-star {
  font-size: 36px;
  transition: transform 0.2s ease;
}

.game-complete-star-filled {
  color: #f59e0b;
}

.game-complete-star-empty {
  color: #e2e8f0;
}

.game-complete-solo-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.game-complete-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.game-complete-stat-icon {
  font-size: 20px;
}

.game-complete-stat-label {
  font-size: 12px;
  color: #64748b;
}

.game-complete-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.game-complete-personal-best {
  margin-top: 16px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(234, 88, 12, 0.1));
  border-radius: 20px;
  color: #d97706;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
}

/* Versus results */
.game-complete-versus {
  margin-bottom: 24px;
}

.game-complete-players {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.game-complete-vs {
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
}

.game-complete-player-card {
  flex: 1;
  max-width: 140px;
  padding: 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  text-align: center;
}

.game-complete-player-card-winner {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
  border-color: #22c55e;
}

.game-complete-player-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.game-complete-player-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.game-complete-winner-badge {
  font-size: 11px;
  font-weight: 600;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.game-complete-player-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-complete-player-stats .game-complete-stat {
  flex-direction: row;
  justify-content: space-between;
}

.game-complete-player-stats .game-complete-stat-value {
  font-size: 14px;
}

/* Actions */
.game-complete-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-complete-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.game-complete-btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

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

.game-complete-btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.game-complete-btn-secondary:hover {
  background: #e2e8f0;
}

/* ============================================================================
   CONFIRM EXIT DIALOG
   ============================================================================ */

.confirm-exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.confirm-exit-modal {
  background: white;
  border-radius: 20px;
  padding: 28px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  animation: scaleIn 0.2s ease;
}

.confirm-exit-icon {
  margin-bottom: 16px;
}

.confirm-exit-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
}

.confirm-exit-message {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 24px;
}

.confirm-exit-actions {
  display: flex;
  gap: 12px;
}

.confirm-exit-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.confirm-exit-btn-cancel {
  background: #f1f5f9;
  color: #475569;
}

.confirm-exit-btn-cancel:hover {
  background: #e2e8f0;
}

.confirm-exit-btn-confirm {
  background: #ef4444;
  color: white;
}

.confirm-exit-btn-confirm:hover {
  background: #dc2626;
}

/* ============================================================================
   TIC-TAC-TOE GAME
   ============================================================================ */

.ttt-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #334155;
  padding: 8px;
  border-radius: 16px;
}

.ttt-cell {
  width: 80px;
  height: 80px;
  background: #1e293b;
  border: 2px solid #475569;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ttt-cell:hover:not(:disabled) {
  background: #334155;
  border-color: #6366f1;
}

.ttt-cell-available {
  cursor: pointer;
}

.ttt-cell-available:hover {
  background: rgba(99, 102, 241, 0.1);
}

.ttt-cell-x {
  border-color: #3b82f6;
}

.ttt-cell-o {
  border-color: #ef4444;
}

.ttt-cell-winning {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
  border-color: #22c55e;
  animation: pulse 1s ease-in-out infinite;
}

.ttt-symbol {
  font-size: 36px;
  font-weight: 700;
  animation: popIn 0.2s ease;
}

.ttt-symbol-x {
  color: #3b82f6;
}

.ttt-symbol-o {
  color: #ef4444;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ttt-turn-indicator {
  font-size: 16px;
  color: #94a3b8;
}

.ttt-turn-symbol {
  font-weight: 700;
}

.ttt-thinking {
  color: #f59e0b;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .ttt-cell {
    width: 70px;
    height: 70px;
  }

  .ttt-symbol {
    font-size: 30px;
  }

  .game-complete-modal {
    padding: 24px;
  }

  .game-complete-emoji {
    font-size: 48px;
  }

  .game-complete-title {
    font-size: 24px;
  }
}

/* ============================================================================
   GAME SELECTION MODAL
   ============================================================================ */

.game-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.game-modal {
  background: white;
  border-radius: 24px;
  max-width: 400px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  position: relative;
  animation: scaleIn 0.25s ease;
}

.game-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 10;
}

.game-modal-close:hover {
  background: white;
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.game-modal-preview {
  position: relative;
  height: 100px;
  background: linear-gradient(135deg, #0EA5E9 0%, #10B981 45%, #F59E0B 100%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.game-modal-preview-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.2), transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.15), transparent 40%);
}

.game-modal-icon {
  font-size: 48px;
  z-index: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.game-modal-info {
  padding: 12px 20px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}

.game-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px;
}

.game-modal-description {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 8px;
  line-height: 1.4;
}

.game-modal-stats {
  display: flex;
  justify-content: center;
}

.game-modal-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

.game-modal-stat-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.game-modal-section {
  padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.game-modal-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.game-modal-modes {
  display: flex;
  gap: 8px;
}

.game-modal-mode-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.game-modal-mode-btn:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.game-modal-mode-btn-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-color: #6366f1;
}

.game-modal-mode-icon {
  font-size: 22px;
}

.game-modal-mode-label {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

.game-modal-mode-desc {
  font-size: 10px;
  color: #64748b;
}

.game-modal-difficulties {
  display: flex;
  gap: 6px;
}

.game-modal-difficulty-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.game-modal-difficulty-btn:hover {
  border-color: var(--difficulty-color, #cbd5e1);
  background: #f1f5f9;
}

.game-modal-difficulty-btn-active {
  background: linear-gradient(135deg, rgba(var(--difficulty-color), 0.1), rgba(var(--difficulty-color), 0.05));
}

.game-modal-difficulty-icon {
  font-size: 16px;
}

.game-modal-difficulty-label {
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
}

/* Symbol/Side selector */
.game-modal-symbols {
  display: flex;
  gap: 10px;
}

.game-modal-symbol-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.game-modal-symbol-btn:hover {
  border-color: var(--symbol-color, #cbd5e1);
  background: #f1f5f9;
}

.game-modal-symbol-btn-active {
  border-width: 2px;
}

.game-modal-symbol-icon {
  font-size: 20px;
  font-weight: 700;
}

.game-modal-symbol-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

.game-modal-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 40px);
  margin: 16px 20px;
  padding: 14px 20px;
  background: white;
  color: #0EA5E9;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-modal-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -16px rgba(14, 165, 233, 0.4);
  border-color: #0EA5E9;
}

/* ============================================================================
   GAME SCREEN HEADER
   ============================================================================ */

.game-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.game-screen-back-btn,
.game-screen-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #334155;
  border: 1px solid #475569;
  border-radius: 10px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.game-screen-back-btn:hover,
.game-screen-settings-btn:hover {
  background: #475569;
}

.game-screen-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-screen-icon {
  font-size: 24px;
}

.game-screen-name {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

/* Settings wrapper for dropdown positioning */
.game-settings-wrapper {
  position: relative;
}

/* Settings Dropdown Menu */
.settings-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: -8px;
  min-width: 160px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 100;
  animation: dropdownIn 0.15s ease;
}

@media (max-width: 400px) {
  .settings-dropdown {
    right: -16px;
    min-width: 150px;
  }
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.settings-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.1s ease;
  text-align: left;
}

.settings-dropdown-item:hover {
  background: #f1f5f9;
}

.settings-dropdown-item span {
  font-size: 16px;
}

.settings-dropdown-item-danger {
  color: #dc2626;
}

.settings-dropdown-item-danger:hover {
  background: #fef2f2;
}

.settings-dropdown-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 4px 0;
}

/* ============================================================================
   GAME SETTINGS PANEL (legacy - keeping for reference)
   ============================================================================ */

.settings-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.settings-panel {
  background: white;
  border-radius: 24px;
  max-width: 400px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: scaleIn 0.25s ease;
}

.settings-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.settings-panel-title {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.settings-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  border-radius: 10px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-panel-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.settings-panel-section {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.settings-panel-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
}

.settings-panel-options {
  display: flex;
  gap: 8px;
}

.settings-panel-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-panel-option:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.settings-panel-option-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-color: #6366f1;
  color: #1e293b;
}

.settings-panel-warning {
  margin: 10px 0 0;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 8px;
  font-size: 12px;
  color: #d97706;
}

.settings-panel-actions {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.settings-panel-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-panel-btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.settings-panel-btn-secondary:hover {
  background: #e2e8f0;
}

.settings-panel-btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.settings-panel-btn-danger:hover {
  background: #dc2626;
  color: white;
}

.settings-panel-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 48px);
  margin: 20px 24px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-panel-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgba(99, 102, 241, 0.5);
}

/* Settings Panel Menu (simplified) */
.settings-panel-menu {
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.settings-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: transparent;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.settings-menu-item svg {
  color: #64748b;
  flex-shrink: 0;
}

.settings-menu-item span:first-of-type {
  flex: 1;
}

.settings-menu-hint {
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8;
}

.settings-menu-item:hover {
  background: #f1f5f9;
}

.settings-menu-item:hover svg {
  color: #0ea5e9;
}

.settings-menu-item-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.settings-menu-item-danger:hover svg,
.settings-menu-item-danger:hover span:first-of-type {
  color: #dc2626;
}

/* Action Sheet (iOS-style) */
.action-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 12px;
  animation: fadeIn 0.15s ease;
}

.action-sheet {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slideUp 0.25s ease;
}

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

.action-sheet-group {
  background: white;
  border-radius: 14px;
  overflow: hidden;
}

.action-sheet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: white;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  font-size: 17px;
  font-weight: 500;
  color: #0ea5e9;
  cursor: pointer;
  transition: background 0.15s ease;
}

.action-sheet-btn:last-child {
  border-bottom: none;
}

.action-sheet-btn:hover {
  background: #f8fafc;
}

.action-sheet-btn:active {
  background: #f1f5f9;
}

.action-sheet-icon {
  font-size: 18px;
}

.action-sheet-btn-danger {
  color: #dc2626;
}

.action-sheet-cancel {
  width: 100%;
  padding: 16px;
  background: white;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  color: #0ea5e9;
  cursor: pointer;
  transition: background 0.15s ease;
}

.action-sheet-cancel:hover {
  background: #f8fafc;
}

.action-sheet-cancel:active {
  background: #f1f5f9;
}

/* ============================================================================
   UPDATED GAME CARD STYLES
   ============================================================================ */

.game-card-online {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.game-card-online-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.game-card-featured .game-card-online {
  margin-top: 4px;
  justify-content: center;
}

/* ============================================================================
   BUZZ PAGE - Elite Pulse Layout
   ============================================================================ */

.buzz-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 8%, rgba(14, 165, 233, 0.14), transparent 45%),
    radial-gradient(circle at 90% 18%, rgba(16, 185, 129, 0.12), transparent 40%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.7), rgba(246, 247, 251, 0.9) 60%),
    linear-gradient(180deg, #f0f7ff 0%, #f6f7fb 45%, #f3f6fb 100%);
  position: relative;
}

.buzz-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(15, 118, 110, 0.12), transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(20, 184, 166, 0.12), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.buzz-page > * {
  position: relative;
  z-index: 1;
}

/* Hero */
.tab-hero-buzz {
  position: relative;
  padding: 32px 0 22px;
  background: linear-gradient(120deg, #0f766e 0%, #16a34a 45%, #65a30d 100%);
  background-size: 200% 200%;
  animation: gradient-shift 10s ease infinite;
}

.tab-hero-buzz::after {
  display: none;
}

.tab-hero-buzz .inner {
  align-items: stretch;
}

.tab-hero-buzz .inner.buzz-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: center;
}

.buzz-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: center;
}

.buzz-hero.buzz-hero-single,
.tab-hero-buzz .inner.buzz-hero.buzz-hero-single {
  grid-template-columns: minmax(0, 1fr);
}

.buzz-hero-main {
  display: grid;
  gap: 12px;
}

.buzz-hero-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.buzz-hero-title {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  color: #f8fafc !important;
  margin: 0;
  text-shadow: 0 12px 28px rgba(15, 23, 42, 0.4);
}

.buzz-hero-subtitle {
  font-size: 16px;
  color: rgba(248, 250, 252, 0.82) !important;
  margin: 0;
  line-height: 1.35;
}

.buzz-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: none;
  justify-content: flex-start;
}

.buzz-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.buzz-nav-tab:hover {
  background: rgba(255, 255, 255, 0.2);
}

.buzz-nav-tab-active {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

.buzz-nav-tab-icon {
  font-size: 15px;
}

@media (max-width: 900px) {
  .buzz-hero-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.buzz-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buzz-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.buzz-chip:hover {
  background: rgba(255, 255, 255, 0.25);
}

.buzz-chip-active {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.buzz-hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.5);
}

.buzz-hero-search-icon {
  width: 18px;
  height: 18px;
  color: #64748b;
}

.buzz-hero-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #0f172a;
}

.buzz-hero-search-input:focus {
  outline: none;
}

.buzz-hero-search-input::placeholder {
  color: #94a3b8;
}

.buzz-hero-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: #e2e8f0;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.buzz-hero-search-clear:hover {
  background: #cbd5e1;
  color: #475569;
}

/* Content container */
.buzz-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 18px 100px;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 26px;
  box-shadow: 0 28px 70px -60px rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
}

/* Toolbar */
.buzz-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 12px 12px 10px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.buzz-toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 240px;
}

.buzz-toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.playbook-add-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(14, 165, 233, 0.2));
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 12px 24px -20px rgba(16, 185, 129, 0.5);
}

.playbook-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -22px rgba(15, 23, 42, 0.35);
}

.buzz-content-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.buzz-content-search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.buzz-content-search-input {
  width: 100%;
  padding: 12px 40px 12px 44px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  color: #0f172a;
  transition: all 0.2s ease;
  box-shadow: 0 12px 24px -20px rgba(15, 23, 42, 0.35);
}

.buzz-content-search-input::placeholder {
  color: #94a3b8;
}

.buzz-content-search-clear {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s ease;
}

.buzz-content-search-clear:hover {
  background: #cbd5e1;
  color: #475569;
}

.buzz-refresh-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 12px 24px -20px rgba(14, 165, 233, 0.45);
}

.buzz-refresh-btn:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.25);
}

.buzz-refresh-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.playbook-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.playbook-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.playbook-range-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.playbook-range-chip.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.playbook-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.playbook-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.playbook-filters select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 13px;
  color: #0f172a;
}

.playbook-filter-reset {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

/* Feed meta */
.buzz-feed-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

.buzz-feed-meta-muted {
  color: #64748b;
  font-weight: 500;
}

.playbook-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.playbook-hero-card {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  padding: 10px 14px;
  color: #f8fafc;
  display: grid;
  gap: 4px;
  min-width: 140px;
}

.playbook-hero-card strong {
  font-size: 14px;
  font-weight: 700;
}

.playbook-hero-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.7);
  font-weight: 600;
}

.playbook-hero-next {
  min-width: 220px;
}

.playbook-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: start;
}

.playbook-feed {
  display: grid;
  gap: 18px;
}

.playbook-section {
  display: grid;
  gap: 10px;
}

.playbook-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  font-weight: 700;
}

.playbook-section-list {
  display: grid;
  gap: 12px;
}

.playbook-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.playbook-card-compact {
  grid-template-columns: 90px minmax(0, 1fr);
}

.playbook-date {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
  display: grid;
  gap: 4px;
}

.playbook-date-primary {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.playbook-date-secondary {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 600;
}

.playbook-body {
  display: grid;
  gap: 6px;
}

.playbook-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.playbook-chip {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.8);
}

.playbook-chip-ticket {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.playbook-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.playbook-summary {
  font-size: 13px;
  color: #475569;
  margin: 0;
}

.playbook-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
}

.playbook-link {
  color: #0ea5e9;
  font-weight: 600;
}

.playbook-cta {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.playbook-cta:hover {
  box-shadow: 0 12px 24px -20px rgba(14, 165, 233, 0.5);
  transform: translateY(-1px);
}

.playbook-rail {
  display: grid;
  gap: 16px;
}

.playbook-rail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: 0 16px 32px -24px rgba(15, 23, 42, 0.4);
}

.playbook-rail-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.playbook-rail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
}

.playbook-rail-row strong {
  color: #0f172a;
}

.playbook-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.playbook-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.playbook-select select,
.playbook-select input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 13px;
  color: #0f172a;
}

.playbook-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

/* Featured */
.buzz-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  margin-bottom: 22px;
}

.buzz-featured-card {
  display: grid;
  grid-template-rows: 220px auto;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 26px 60px -40px rgba(15, 23, 42, 0.45);
  transition: all 0.2s ease;
}

.buzz-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -30px rgba(15, 23, 42, 0.5);
}

.buzz-featured-media {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(16, 185, 129, 0.22));
  background-size: cover;
  background-position: center;
}

.buzz-featured-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.buzz-featured-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #16a34a;
  font-weight: 700;
}

.buzz-featured-body h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.buzz-featured-summary {
  margin: 0;
  font-size: 13px;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.buzz-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
}

.buzz-featured-side {
  display: grid;
  gap: 12px;
}

.buzz-featured-mini {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 16px 30px -24px rgba(15, 23, 42, 0.4);
}

.buzz-featured-mini:hover {
  transform: translateY(-2px);
}

.buzz-featured-mini-tag {
  font-size: 11px;
  color: #16a34a;
  font-weight: 700;
  text-transform: uppercase;
}

.buzz-featured-mini-meta {
  font-size: 12px;
  color: #64748b;
}

/* Feed layout */
.buzz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.buzz-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.buzz-rail {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 16px;
  box-shadow: 0 16px 36px -26px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
}

.buzz-rail-section h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.buzz-rail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #475569;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.3);
}

.buzz-rail-item:last-child {
  border-bottom: none;
}

/* Loading state */
.buzz-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  color: #64748b;
  font-size: 14px;
}

.buzz-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Error state */
.buzz-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
}

.buzz-error span {
  font-size: 32px;
}

.buzz-error p {
  color: #ef4444;
  font-size: 14px;
  margin: 0;
}

.buzz-retry-btn {
  padding: 8px 16px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.buzz-retry-btn:hover {
  background: #dc2626;
}

/* Empty state */
.buzz-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 64px 24px;
  text-align: center;
}

.buzz-empty-icon {
  font-size: 48px;
  opacity: 0.8;
}

.buzz-empty h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.buzz-empty p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.buzz-empty-actions {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.buzz-empty-hint {
  font-size: 12px;
  color: #94a3b8;
}

.buzz-empty-cta {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.buzz-empty-cta:hover {
  box-shadow: 0 10px 24px -12px rgba(14, 165, 233, 0.6);
}

/* Floating Action Button (FAB) */
.buzz-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
  transition: all 0.2s ease;
  z-index: 50;
}

.buzz-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(14, 165, 233, 0.5);
}

.buzz-fab:active {
  transform: scale(1.02);
}

/* Responsive refinements */
@media (max-width: 1024px) {
  .buzz-hero {
    grid-template-columns: 1fr;
  }

  .buzz-featured {
    grid-template-columns: 1fr;
  }

  .buzz-layout {
    grid-template-columns: 1fr;
  }

  .buzz-feed {
    grid-template-columns: 1fr;
  }

  .buzz-hero-search {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .tab-hero-buzz {
    padding: 20px 0;
  }

  .buzz-content {
    padding: 16px 16px 100px;
  }

  .buzz-nav-tab {
    padding: 6px 10px;
    font-size: 12px;
  }

  .buzz-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .buzz-chip-row::-webkit-scrollbar {
    height: 4px;
  }

  .buzz-chip-row::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
  }

  .buzz-fab {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
}


/* ============================================================================
   ARCADE PAGE - Tab Navigation Design (matching Buzz)
   ============================================================================ */

/* Arcade Hero Layout */
.tab-hero-arcade .inner.arcade-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.arcade-hero-main {
  display: grid;
  gap: 12px;
}

.arcade-hero-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Arcade Hero Title & Subtitle */
.arcade-hero-title {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  color: white !important;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 12px 28px rgba(15, 23, 42, 0.4);
}

.arcade-hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88) !important;
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}

/* Tabs container */
.arcade-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: none;
  justify-content: flex-start;
}

/* Individual tab */
.arcade-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.16);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.arcade-nav-tab:hover {
  background: rgba(255, 255, 255, 0.2);
}

.arcade-nav-tab-icon {
  font-size: 15px;
}

/* Active tab */
.arcade-nav-tab-active {
  font-weight: 600;
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

.arcade-nav-tab-active:hover {
  background: #ffffff !important;
}

@media (max-width: 900px) {
  .arcade-hero-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .arcade-nav-tabs {
    justify-content: flex-start;
  }
}

/* Arcade Games Grid - Max 3 cards per row, fixed width */
.arcade-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 160px);
  gap: 12px;
}

/* Arcade Game Card - Compact, left-aligned */
.arcade-game-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 20px 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.arcade-game-card:hover {
  transform: translateY(-2px);
  border-color: #6366f1;
  box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.2);
}

.arcade-game-card-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.arcade-game-card-info {
  flex: 1;
  min-width: 0;
}

.arcade-game-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 2px;
}

.arcade-game-card-desc {
  font-size: 11px;
  color: #64748b;
  margin: 0 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.arcade-game-card-online {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #94a3b8;
}

.arcade-game-card-online-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* Arcade Empty State */
.arcade-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 64px 24px;
  text-align: center;
}

.arcade-empty-icon {
  font-size: 48px;
  opacity: 0.8;
}

.arcade-empty h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.arcade-empty p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* Arcade Mobile Refinements */
@media (max-width: 640px) {
  .arcade-nav-tabs {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .arcade-nav-tab {
    padding: 10px 12px 12px;
    font-size: 12px;
    gap: 4px;
    flex-shrink: 0;
  }

  .arcade-nav-tab-icon {
    font-size: 14px;
  }

  .arcade-content-search {
    width: 100%;
  }

  .arcade-content-search-input {
    width: 100%;
  }

  .arcade-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .arcade-game-card {
    padding: 16px 12px;
  }

  .arcade-game-card-icon {
    font-size: 36px;
    margin-bottom: 8px;
  }

  .arcade-game-card-name {
    font-size: 13px;
  }

  .arcade-game-card-desc {
    font-size: 11px;
    -webkit-line-clamp: 1;
  }
}

/* ============================================================================
   ARCADE MASTER-DETAIL LAYOUT
   ============================================================================ */

.arcade-master-detail {
  display: flex;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 16px 96px;
  min-height: calc(100vh - 280px);
}

/* Games List (Left Side) */
.arcade-games-list {
  flex: 0 0 auto;
  min-width: 0;
}

.arcade-games-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.arcade-games-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.arcade-games-header p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

/* Content Search Box */
.arcade-content-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  width: 100%;
  max-width: 420px;
}

.arcade-content-search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.arcade-content-search-input {
  width: 100%;
  padding: 12px 40px 12px 44px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.2s ease;
  box-shadow: 0 12px 24px -20px rgba(15, 23, 42, 0.35);
}

.arcade-content-search-input::placeholder {
  color: #94a3b8;
}

.arcade-content-search-input:focus {
  outline: none;
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12), 0 16px 32px -24px rgba(15, 23, 42, 0.35);
}

.arcade-content-search-clear {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s ease;
}

.arcade-content-search-clear:hover {
  background: #cbd5e1;
  color: #475569;
}

/* Selection Panel (Right Side) */
.arcade-selection-panel {
  flex: 1;
  max-width: 380px;
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

/* Selected game card highlight */
.arcade-game-card-selected {
  border-color: #6366f1 !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05)) !important;
  box-shadow: 0 4px 16px -4px rgba(99, 102, 241, 0.25) !important;
  transform: none !important;
}

/* ============================================================================
   GAME SELECTION PANEL (Inline)
   ============================================================================ */

.game-panel {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.3s ease-out;
}

.game-panel-header {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.game-panel-icon {
  font-size: 36px;
  background: #f8fafc;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.game-panel-header-info h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.game-panel-header-info p {
  margin: 0 0 6px;
  font-size: 13px;
  color: #64748b;
}

.game-panel-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

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

/* Panel Sections */
.game-panel-section {
  margin-bottom: 20px;
}

.game-panel-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}

/* Mode Buttons */
.game-panel-modes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-panel-mode-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.game-panel-mode-btn:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.game-panel-mode-btn-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
  border-color: #6366f1;
}

.game-panel-mode-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.game-panel-mode-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.game-panel-mode-desc {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* Symbol Buttons */
.game-panel-symbols {
  display: flex;
  gap: 10px;
}

.game-panel-symbol-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.game-panel-symbol-btn:hover {
  background: #f1f5f9;
}

.game-panel-symbol-btn-active {
  background: white;
}

.game-panel-hint {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  margin: 8px 0 0;
}

/* Difficulty Buttons */
.game-panel-difficulties {
  display: flex;
  gap: 8px;
}

.game-panel-difficulty-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.game-panel-difficulty-btn:hover {
  background: #f1f5f9;
}

.game-panel-difficulty-btn-active {
  background: white;
}

/* Play Button */
.game-panel-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.game-panel-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.5);
}

/* Empty State */
.game-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: white;
  border: 2px dashed #e2e8f0;
  border-radius: 20px;
  min-height: 300px;
}

.game-panel-empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.game-panel-empty h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px;
}

.game-panel-empty p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* ============================================================================
   ARCADE MASTER-DETAIL - RESPONSIVE
   ============================================================================ */

/* Tablet/Mobile: Stacked layout with horizontal scroll cards */
@media (max-width: 1023px) {
  .arcade-master-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 16px 80px;
  }

  .arcade-games-list {
    flex: none;
    width: 100%;
  }

  /* Horizontal scroll for cards on mobile/tablet */
  .arcade-games-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .arcade-games-grid::-webkit-scrollbar {
    display: none;
  }

  .arcade-game-card {
    flex: 0 0 auto;
    width: 140px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    scroll-snap-align: start;
    padding: 16px 12px;
    gap: 8px;
  }

  .arcade-game-card-icon {
    font-size: 32px;
  }

  .arcade-game-card-info {
    width: 100%;
  }

  .arcade-game-card-name {
    font-size: 13px;
    text-align: center;
  }

  .arcade-game-card-desc {
    display: none;
  }

  .arcade-game-card-online {
    justify-content: center;
  }

  /* Show selection panel below cards */
  .arcade-selection-panel {
    flex: none;
    width: 100%;
    position: static;
    max-height: none;
    display: flex;
    justify-content: center;
  }

  .game-panel {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
  }
}

/* Small mobile refinements */
@media (max-width: 640px) {
  .arcade-master-detail {
    padding: 20px 12px 72px;
    gap: 20px;
  }

  .arcade-selection-panel {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .arcade-game-card {
    width: 130px;
    padding: 16px 12px;
  }

  .arcade-game-card-icon {
    font-size: 36px;
    margin-bottom: 8px;
  }

  .arcade-game-card-name {
    font-size: 13px;
  }

  .game-panel,
  .game-panel-empty {
    padding: 20px;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
  }

  .game-panel-header {
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .game-panel-icon {
    font-size: 40px;
  }

  .game-panel-title {
    font-size: 18px;
  }
}

/* Large desktop refinements */
@media (min-width: 1400px) {
  .arcade-master-detail {
    gap: 56px;
    padding: 36px 40px 100px;
  }

  .arcade-games-list {
    flex: 0 0 60%;
  }

  .arcade-selection-panel {
    flex: 0 0 calc(40% - 48px);
  }
}

/* =============================================================================
   UI/UX ENHANCEMENTS - Micro-interactions & Polish
   ============================================================================ */

/* Buzz Feed Item Entrance Animation */
.buzz-feed > * {
  animation: buzzFadeIn 0.4s ease-out backwards;
}

.buzz-feed > *:nth-child(1) { animation-delay: 0ms; }
.buzz-feed > *:nth-child(2) { animation-delay: 50ms; }
.buzz-feed > *:nth-child(3) { animation-delay: 100ms; }
.buzz-feed > *:nth-child(4) { animation-delay: 150ms; }
.buzz-feed > *:nth-child(5) { animation-delay: 200ms; }
.buzz-feed > *:nth-child(n+6) { animation-delay: 250ms; }

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

/* Arcade Game Card Enhanced Hover */
.arcade-game-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.arcade-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -8px rgba(99, 102, 241, 0.2);
}

.arcade-game-card:active {
  transform: translateY(-2px);
  transition-duration: 0.1s;
}

.arcade-game-card-selected {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.25);
}

/* Game Card Icon Bounce on Hover */
.arcade-game-card:hover .arcade-game-card-icon {
  animation: iconBounce 0.4s ease-out;
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Arcade Games Grid Entrance */
.arcade-games-grid > * {
  animation: cardSlideIn 0.35s ease-out backwards;
}

.arcade-games-grid > *:nth-child(1) { animation-delay: 0ms; }
.arcade-games-grid > *:nth-child(2) { animation-delay: 40ms; }
.arcade-games-grid > *:nth-child(3) { animation-delay: 80ms; }
.arcade-games-grid > *:nth-child(4) { animation-delay: 120ms; }
.arcade-games-grid > *:nth-child(5) { animation-delay: 160ms; }
.arcade-games-grid > *:nth-child(6) { animation-delay: 200ms; }
.arcade-games-grid > *:nth-child(n+7) { animation-delay: 240ms; }

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Play Button Pulse Animation */
.game-panel-play-btn {
  position: relative;
  overflow: hidden;
}

.game-panel-play-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.game-panel-play-btn:hover::after {
  transform: translateX(100%);
}

/* Hot Buzz Card Hover Enhancement */
.buzz-hot-card {
  transition: all 0.25s ease;
}

.buzz-hot-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px -8px rgba(14, 165, 233, 0.25);
}

/* Search Input Focus Animation */
.buzz-content-search-input,
.arcade-content-search-input {
  transition: all 0.2s ease;
}

.buzz-content-search-input:focus,
.arcade-content-search-input:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.arcade-content-search-input:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Tab Hover Micro-interaction */
.buzz-nav-tab,
.arcade-nav-tab {
  transition: all 0.2s ease;
}

.buzz-nav-tab:hover .buzz-nav-tab-icon,
.arcade-nav-tab:hover .arcade-nav-tab-icon {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* FAB Enhanced Animation */
.buzz-fab {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.buzz-fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 24px -4px rgba(14, 165, 233, 0.5);
}

.buzz-fab:active {
  transform: scale(1.05) rotate(90deg);
}

/* Loading States Enhancement */
.buzz-loading,
.arcade-loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.buzz-loading-spinner,
.arcade-loading-spinner {
  animation: spin 1s linear infinite;
}

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

/* Empty State Icon Float */
.buzz-empty-icon,
.arcade-empty-icon,
.game-panel-empty-icon {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Mode & Difficulty Button Press Effect */
.game-panel-mode-btn:active,
.game-panel-difficulty-btn:active,
.game-panel-symbol-btn:active {
  transform: scale(0.98);
  transition-duration: 0.1s;
}

/* Smooth scrollbar for horizontal scroll areas */
.arcade-games-grid::-webkit-scrollbar,
.buzz-hot-card::-webkit-scrollbar {
  height: 4px;
}

.arcade-games-grid::-webkit-scrollbar-track,
.buzz-hot-card::-webkit-scrollbar-track {
  background: transparent;
}

.arcade-games-grid::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 2px;
}

.buzz-hot-card::-webkit-scrollbar-thumb {
  background: rgba(14, 165, 233, 0.3);
  border-radius: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .buzz-feed > *,
  .arcade-games-grid > *,
  .game-panel,
  .arcade-game-card,
  .buzz-hot-card,
  .buzz-fab,
  .buzz-empty-icon,
  .arcade-empty-icon,
  .game-panel-empty-icon {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================================
   RESPONSIVE POLISH - Tablet, Mobile & Desktop Refinements
   ============================================================================ */

/* --- TABLET BREAKPOINT (768px - 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Hero section padding for tablet */
  .tab-hero .inner {
    padding: 0 24px;
  }

  /* Show labels on tablet */
  .nav-hero-label {
    display: block;
    font-size: 20px;
    padding-bottom: 12px;
  }

  .nav-hero-divider {
    display: block;
    height: 24px;
    bottom: 10px;
  }

  /* Adjust divider position for tablet */
  .buzz-nav-bar .nav-hero-divider {
    left: 175px;
  }

  .arcade-nav-bar .nav-hero-divider {
    left: 105px;
  }

  /* Buzz tabs - slightly smaller on tablet */
  .buzz-nav-tab,
  .arcade-nav-tab {
    padding: 11px 16px 13px;
    font-size: 13px;
    gap: 6px;
  }

  .buzz-nav-tab-icon,
  .arcade-nav-tab-icon {
    font-size: 15px;
  }

  /* Buzz content padding */
  .buzz-content {
    padding: 24px 24px 100px;
  }

  /* Buzz search - medium width */
  .buzz-content-search {
    max-width: 400px;
  }

  /* Hot items - larger cards on tablet */
  .buzz-hot-card {
    min-width: 160px;
    padding: 16px;
  }

  /* Arcade games grid - 3 columns on tablet portrait */
  .arcade-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .arcade-game-card {
    width: auto;
    flex-direction: row;
    text-align: left;
  }

  .arcade-game-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
  }

  /* Game panel on tablet */
  .game-panel {
    max-width: 100%;
  }
}

/* --- MOBILE TOUCH TARGET IMPROVEMENTS --- */
@media (max-width: 767px) {
  /* Ensure minimum 44px touch targets */
  .buzz-nav-tab,
  .arcade-nav-tab {
    min-height: 44px;
    padding: 12px 14px 14px;
  }

  .buzz-content-search-clear,
  .arcade-content-search-clear {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .game-panel-mode-btn,
  .game-panel-difficulty-btn,
  .game-panel-symbol-btn {
    min-height: 48px;
  }

  .game-panel-play-btn {
    min-height: 52px;
    font-size: 16px;
  }

  /* Better spacing for mobile cards */
  .arcade-game-card {
    min-height: 100px;
  }

  /* Improve touch scrolling feedback */
  .arcade-games-grid {
    scroll-padding: 12px;
  }

  /* FAB positioned for thumb reach */
  .buzz-fab {
    bottom: 24px;
    right: 16px;
  }
}

/* --- SMALL MOBILE (< 380px) --- */
@media (max-width: 380px) {
  .buzz-nav-tab,
  .arcade-nav-tab {
    padding: 10px 10px 12px;
    font-size: 11px;
    gap: 3px;
  }

  .buzz-nav-tab-icon,
  .arcade-nav-tab-icon {
    font-size: 12px;
  }

  .arcade-game-card {
    width: 110px;
    padding: 12px 10px;
  }

  .arcade-game-card-icon {
    font-size: 28px;
  }

  .arcade-game-card-name {
    font-size: 12px;
  }

  .buzz-hot-card {
    min-width: 100px;
    padding: 10px;
  }

  .buzz-hot-card-title {
    font-size: 11px;
  }

  .game-panel,
  .game-panel-empty {
    padding: 16px;
  }

  .game-panel-play-btn {
    padding: 14px 20px;
  }
}

/* --- CONTENT AREA ALIGNMENT (Match Header) --- */
@media (min-width: 640px) {
  .buzz-content {
    padding: 28px 24px 100px;
  }
}

@media (min-width: 1024px) {
  .buzz-content {
    padding: 32px 32px 100px;
  }
}

/* Arcade master-detail alignment */
.arcade-master-detail {
  max-width: 1280px;
}

@media (min-width: 1024px) {
  .arcade-master-detail {
    padding: 32px 32px 96px;
  }
}

/* --- DESKTOP POLISH (1024px+) --- */
@media (min-width: 1024px) {
  /* Larger tabs on desktop */
  .buzz-nav-tab,
  .arcade-nav-tab {
    padding: 12px 22px 14px;
    font-size: 14px;
    gap: 8px;
  }

  .buzz-nav-tab-icon,
  .arcade-nav-tab-icon {
    font-size: 18px;
  }

  /* Better underline */
  .buzz-nav-underline,
  .arcade-nav-underline {
    height: 3px;
    border-radius: 3px 3px 0 0;
  }

  /* Arcade games grid - show more columns */
  .arcade-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }

  /* Game card hover area */
  .arcade-game-card {
    padding: 16px;
  }
}

/* --- LARGE DESKTOP (1400px+) --- */
@media (min-width: 1400px) {
  .buzz-content {
    padding: 32px 40px 100px;
  }

  .buzz-content-search {
    max-width: 360px;
  }

  .arcade-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
}

/* --- LANDSCAPE MOBILE ADJUSTMENTS --- */
@media (max-height: 500px) and (orientation: landscape) {
  .tab-hero {
    padding: 16px 0;
  }

  .tab-hero .inner {
    padding: 0 24px;
  }

  .buzz-nav-bar,
  .arcade-nav-bar {
    margin-top: 0;
  }

  /* Hide hot items in landscape to save space */
  .buzz-hot-card {
    min-width: 120px;
    padding: 10px;
  }

  .buzz-fab {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
}

/* --- SAFE AREA INSETS (iPhone X+, etc.) --- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .buzz-content {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }

  .buzz-fab {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .arcade-master-detail {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* ============================================================================
   BUZZ COMPOSER - Full Screen Post Creation (Polished UI)
   ============================================================================ */

.buzz-composer-screen {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(14, 165, 233, 0.16), transparent 45%),
    radial-gradient(circle at 88% 18%, rgba(16, 185, 129, 0.14), transparent 48%),
    linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  display: flex;
  flex-direction: column;
  z-index: 50;
  animation: composerSlideIn 0.3s ease-out;
}

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

.buzz-composer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.buzz-composer-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.6);
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.buzz-composer-back-btn:hover {
  background: rgba(226, 232, 240, 0.9);
  transform: translateX(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.buzz-composer-back-btn:active {
  transform: translateX(-1px) scale(0.98);
}

.buzz-composer-toggle {
  display: flex;
  background: rgba(241, 245, 249, 0.9);
  border-radius: 12px;
  padding: 5px;
  gap: 4px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.buzz-composer-toggle .toggle-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.buzz-composer-toggle .toggle-btn:hover {
  color: #475569;
}

.buzz-composer-toggle .toggle-btn.active {
  background: white;
  color: #0ea5e9;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.buzz-composer-post-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.buzz-composer-post-btn:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4), 0 3px 6px rgba(0, 0, 0, 0.12);
}

.buzz-composer-post-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.buzz-composer-post-btn:disabled {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.buzz-composer-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px 48px;
}

.buzz-composer-form {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.buzz-composer-form-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
  overflow: visible;
}

.buzz-composer-template-card {
  z-index: 4;
}

.buzz-composer-form-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.buzz-composer-form-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  border-radius: 2px;
}

.buzz-composer-preview {
  max-width: 500px;
  margin: 0 auto;
}

.buzz-composer-preview-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.buzz-composer-preview-hint {
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
  margin-top: 20px;
  padding: 12px 20px;
  background: rgba(241, 245, 249, 0.6);
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
}

.buzz-composer-attachments {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.buzz-composer-attach-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(241, 245, 249, 0.8);
  border: 2px dashed rgba(203, 213, 225, 0.8);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.buzz-composer-attach-btn:hover {
  background: rgba(226, 232, 240, 0.9);
  border-color: #0ea5e9;
  color: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.buzz-composer-attach-btn svg {
  opacity: 0.8;
}

.buzz-composer-attach-btn:hover svg {
  opacity: 1;
}

/* Template Dropdown Styles - Polished */
.template-dropdown {
  position: relative;
  z-index: 2;
}

.template-dropdown-open {
  z-index: 6;
}

.template-dropdown-collapsed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.template-dropdown-collapsed:hover {
  border-color: #0ea5e9;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.template-dropdown-collapsed:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15), 0 4px 12px rgba(14, 165, 233, 0.1);
}

.template-dropdown-expanded {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08);
  z-index: 80;
  max-height: 420px;
  overflow-y: auto;
  animation: dropdownSlideIn 0.2s ease-out;
}

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

.template-group {
  padding: 12px 0 8px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}

.template-group:last-child {
  border-bottom: none;
}

.template-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #94a3b8;
  text-transform: uppercase;
}

.template-group-label span {
  font-size: 14px;
}

.template-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  text-align: left;
  transition: all 0.15s ease;
  border-radius: 8px;
  margin: 2px 8px;
  width: calc(100% - 16px);
}

.template-option:hover {
  background: rgba(14, 165, 233, 0.08);
  color: #0ea5e9;
}

.template-option-active {
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
  font-weight: 600;
}

.template-option svg {
  color: #0ea5e9;
}

/* Form field enhancements */
.buzz-composer-form label {
  font-weight: 600;
  color: #334155;
  font-size: 14px;
}

.buzz-composer-form input,
.buzz-composer-form textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.buzz-composer-form input:focus,
.buzz-composer-form textarea:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
  outline: none;
}

.buzz-composer-form input::placeholder,
.buzz-composer-form textarea::placeholder {
  color: #94a3b8;
}

/* Error state */
.buzz-composer-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile adjustments for composer */
@media (max-width: 640px) {
  .buzz-composer-header {
    padding: 12px 16px;
  }

  .buzz-composer-back-btn {
    width: 40px;
    height: 40px;
  }

  .buzz-composer-toggle .toggle-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .buzz-composer-post-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .buzz-composer-content {
    padding: 20px 16px 40px;
  }

  .buzz-composer-form {
    gap: 20px;
  }

  .buzz-composer-form-card {
    padding: 20px;
    border-radius: 16px;
  }

  .template-dropdown-collapsed {
    padding: 14px 16px;
    font-size: 15px;
  }

  .template-dropdown-expanded {
    max-height: 350px;
  }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
  .buzz-composer-form {
    max-width: 520px;
  }
}

/* Desktop enhancements */
@media (min-width: 1025px) {
  .buzz-composer-content {
    padding: 40px 32px 60px;
  }

  .buzz-composer-form-card {
    padding: 32px;
  }
}

@media (max-width: 900px) {
  .playbook-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .playbook-rail {
    display: none;
  }

  .playbook-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .playbook-cta {
    justify-self: start;
  }

  .playbook-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .playbook-filters {
    width: 100%;
  }
}
