:root {
  /* Colors */
  --bg-main: #0b0d13;
  --bg-panel: rgba(18, 22, 33, 0.55);
  --bg-nav: rgba(11, 13, 19, 0.7);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(167, 139, 250, 0.15);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  /* Game 1: Theridactle (Emerald/Teal Theme) */
  --theri-primary: #10b981;
  --theri-primary-glow: rgba(16, 185, 129, 0.3);
  --theri-secondary: #06b6d4;
  --theri-gradient: linear-gradient(135deg, #10b981, #06b6d4);
  
  /* Game 2: L'Imposteur (Neon Pink/Purple Theme) */
  --imp-primary: #ec4899;
  --imp-primary-glow: rgba(236, 72, 153, 0.35);
  --imp-secondary: #8b5cf6;
  --imp-gradient: linear-gradient(135deg, #ec4899, #8b5cf6);
  
  /* Game 3: Quiz Géographie (Neon Cyan/Emerald Theme) */
  --geo-primary: #00f2fe;
  --geo-primary-glow: rgba(0, 242, 254, 0.35);
  --geo-secondary: #10b981;
  --geo-gradient: linear-gradient(135deg, #00f2fe, #10b981);
  --neon-cyan: #00f2fe;
  --neon-emerald: #10b981;
  
  /* Universal Accent (Glass & Shadows) */
  --accent: #a78bfa;
  --accent-glow: rgba(167, 139, 250, 0.4);
  
  /* Redactle Specifics */
  --block-bg: rgba(180, 187, 198, 0.85);
  --block-text: #0b0d13;
  --block-hover: #ffffff;
  --highlight-bg: #ec4899;
  --highlight-text: #ffffff;
  
  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Emil Kowalski Design Engineering Easing & Transitions */
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --transition-smooth: all 0.25s var(--ease-out-quint);
  --transition-fast: all 0.15s var(--ease-out-quint);
  --transition-spring: all 0.35s var(--ease-spring);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background animated glow orbs */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #151828 0%, #07090e 100%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.28;
  mix-blend-mode: screen;
  animation: orbFloat 25s infinite alternate ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
  top: -10%;
  left: -10%;
  animation-duration: 20s;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
  bottom: -20%;
  right: -10%;
  animation-duration: 28s;
  animation-delay: -5s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #10b981 0%, rgba(16, 185, 129, 0) 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 24s;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(80px, 40px) scale(1.15) rotate(180deg);
  }
  100% {
    transform: translate(-40px, -60px) scale(0.9) rotate(360deg);
  }
}

/* Typography & Layout elements */
h1, h2, h3, h4, .logo {
  font-family: var(--font-title);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #a78bfa, #f472b6, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.view-hidden {
  display: none !important;
}

/* TOP NAVIGATION */
.top-nav {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  font-size: 14px;
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 100;
  transition: var(--transition-smooth);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 2px;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

.logo-red {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  margin: 0 3px;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.top-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.top-nav a:hover, .top-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-room-badge {
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #c084fc;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.1);
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(167, 139, 250, 0.1); }
  100% { box-shadow: 0 0 20px rgba(167, 139, 250, 0.25); border-color: rgba(167, 139, 250, 0.55); }
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0) 100%);
}

/* Buttons System */
.btn {
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--theri-gradient);
  color: #fff;
  box-shadow: 0 6px 20px var(--theri-primary-glow);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 25px var(--theri-primary-glow);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--imp-gradient);
  color: #fff;
  box-shadow: 0 6px 20px var(--imp-primary-glow);
}
.btn-accent:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 25px var(--imp-primary-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-quit {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: #fff;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.25);
}
.btn-quit:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 16px;
  border-radius: 16px;
}

/* Global Sleek Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* 1. PORTAL VIEW */
.portal-container {
  width: 100%;
  margin: 0;
  padding: 2.5rem 2rem 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.portal-hero {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  max-width: 650px;
  width: 100%;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  width: 100%;
  max-width: 950px;
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.game-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(14, 18, 28, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 2.75rem 2.25rem;
  cursor: pointer;
  transition: transform 0.28s var(--ease-out-quint), border-color 0.28s var(--ease-out-quint), box-shadow 0.28s var(--ease-out-quint);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card:active {
  transform: scale(0.98);
  transition: transform 0.12s var(--ease-out-quint);
}

.card-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out-quint);
}

/* Individual Card Themes matching Theridactle aesthetic */
.card-theridactle {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(16, 185, 129, 0.15);
}
.card-theridactle:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 24px 48px -12px rgba(16, 185, 129, 0.3), 0 0 20px rgba(16, 185, 129, 0.2);
}
.card-theridactle .card-glow {
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.25) 0%, transparent 65%);
}

.card-pokedactle {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(245, 158, 11, 0.15);
}
.card-pokedactle:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 24px 48px -12px rgba(245, 158, 11, 0.3), 0 0 20px rgba(245, 158, 11, 0.2);
}
.card-pokedactle .card-glow {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.25) 0%, transparent 65%);
}

.card-merrydactle {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(239, 68, 68, 0.15);
}
.card-merrydactle:hover {
  transform: translateY(-6px);
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 24px 48px -12px rgba(239, 68, 68, 0.35), 0 0 22px rgba(245, 158, 11, 0.25);
}
.card-merrydactle .card-glow {
  background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.28) 0%, rgba(245, 158, 11, 0.15) 35%, transparent 70%);
}

.card-imposteur {
  border-color: rgba(236, 72, 153, 0.35);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(236, 72, 153, 0.15);
}
.card-imposteur:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.7);
  box-shadow: 0 24px 48px -12px rgba(236, 72, 153, 0.3), 0 0 20px rgba(236, 72, 153, 0.2);
}
.card-imposteur .card-glow {
  background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.25) 0%, transparent 65%);
}

.card-geographie {
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 242, 254, 0.15);
}
.card-geographie:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.7);
  box-shadow: 0 24px 48px -12px rgba(0, 242, 254, 0.3), 0 0 20px rgba(0, 242, 254, 0.2);
}
.card-geographie .card-glow {
  background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.25) 0%, transparent 65%);
}

.card-loup-garou {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(239, 68, 68, 0.15);
}
.card-loup-garou:hover {
  transform: translateY(-6px);
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 24px 48px -12px rgba(239, 68, 68, 0.3), 0 0 20px rgba(239, 68, 68, 0.2);
}
.card-loup-garou .card-glow {
  background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.25) 0%, transparent 65%);
}

.card-songless {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(168, 85, 247, 0.15);
}
.card-songless:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 24px 48px -12px rgba(168, 85, 247, 0.3), 0 0 20px rgba(168, 85, 247, 0.2);
}
.card-songless .card-glow {
  background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.25) 0%, transparent 65%);
}

.card-pokecries {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(245, 158, 11, 0.2);
}
.card-pokecries:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.85);
  box-shadow: 0 24px 48px -12px rgba(245, 158, 11, 0.4), 0 0 24px rgba(234, 88, 12, 0.3);
}
.card-pokecries .card-glow {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.3) 0%, rgba(234, 88, 12, 0.18) 40%, transparent 70%);
}
.card-icon-badge-pokecries {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.card-statistiques {
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(251, 191, 36, 0.15);
}
.card-statistiques:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 24px 48px -12px rgba(251, 191, 36, 0.3), 0 0 20px rgba(251, 191, 36, 0.2);
}
.card-statistiques .card-glow {
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.25) 0%, transparent 65%);
}

.game-card:hover .card-glow {
  opacity: 1;
}

/* Button Card Gradients */
.btn-card-theri {
  background: linear-gradient(135deg, #00f2fe 0%, #10b981 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.4);
}
.btn-card-poke {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
}
.btn-card-pokecries {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
}
.btn-card-merry {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.45);
}
.btn-card-imp {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.4);
}
.btn-card-geo {
  background: linear-gradient(135deg, #00f2fe 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.4);
}
.btn-card-wolf {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4);
}
.btn-card-songless {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.4);
}
.btn-card-stats {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.4);
}

.card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-icon {
  margin-bottom: 1.5rem;
  display: inline-flex;
}

.card-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-out-quint), box-shadow 0.3s var(--ease-out-quint), border-color 0.3s var(--ease-out-quint);
}

.card-icon-badge-theri {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.card-icon-badge-poke {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.card-icon-badge-pokecries {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.card-icon-badge-merry {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.card-icon-badge-songless {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.card-icon-badge-imp {
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: #f472b6;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.15);
}

.card-icon-badge-geo {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00f2fe;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.card-icon-badge-wolf {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.card-icon-badge-stats {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}

.game-card:hover .card-icon-badge {
  transform: scale(1.12) translateY(-2px);
}
.game-card:hover .card-icon-badge-theri {
  border-color: #34d399;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.45);
}
.game-card:hover .card-icon-badge-poke {
  border-color: #fbbf24;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.45);
}
.game-card:hover .card-icon-badge-pokecries {
  border-color: #f59e0b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.55), 0 0 10px rgba(234, 88, 12, 0.4);
}
.game-card:hover .card-icon-badge-merry {
  border-color: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.55), 0 0 10px rgba(245, 158, 11, 0.4);
}
.game-card:hover .card-icon-badge-songless {
  border-color: #c084fc;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.45);
}
.game-card:hover .card-icon-badge-imp {
  border-color: #f472b6;
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.45);
}
.game-card:hover .card-icon-badge-geo {
  border-color: #00f2fe;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.45);
}
.game-card:hover .card-icon-badge-wolf {
  border-color: #f87171;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.45);
}
.game-card:hover .card-icon-badge-stats {
  border-color: #fbbf24;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.45);
}

.card-icon-badge svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon-badge svg [fill="currentColor"],
.card-icon-badge svg circle[fill="currentColor"],
.card-icon-badge svg path[fill="currentColor"] {
  fill: currentColor;
  stroke: none;
}

.inline-svg {
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-right: 4px;
}

.nav-svg-icon {
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.card-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.btn-card {
  width: 100%;
  pointer-events: none; /* Make clicking card trigger action */
}

/* 2 & 3. MENU / PANEL VIEWS */
.menu-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2rem;
}

.menu-panel {
  max-width: 480px;
  width: 100%;
  animation: zoomIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.btn-back:hover {
  color: #fff;
  transform: translateX(-4px);
}

.menu-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.badge-primary {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-accent {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.menu-header h2 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 0.5rem;
}

.menu-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.menu-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0.5rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.divider:not(:empty)::before { margin-right: .75em; }
.divider:not(:empty)::after { margin-left: .75em; }

.join-box {
  display: flex;
  gap: 0.75rem;
}

.join-box input, .input-group input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

.join-box input {
  flex: 1;
  text-align: center;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.join-box input:focus, .input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.15);
  background: rgba(0, 0, 0, 0.5);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group input {
  width: 100%;
}

.error-msg {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* 4. THERIDACTLE GAME VIEW */
.app-container {
  display: flex;
  flex: 1;
  height: calc(100vh - 70px);
}

.article-section {
  flex: 1;
  padding: 3rem 4rem;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.article-section::-webkit-scrollbar {
  width: 6px;
}
.article-section::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.article-header {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.subtitle {
  flex: 1;
  letter-spacing: 0.5px;
}

.puzzle-id {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  padding: 4px 14px;
  border-radius: 6px;
  margin-right: 1.25rem;
  font-weight: 700;
}

.clover {
  color: #10b981;
  font-weight: 700;
}

.main-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.2rem;
  line-height: 1.25;
  color: #fff;
}

.wiki-text {
  font-size: 16px;
  line-height: 2.3;
  text-align: justify;
  color: rgba(255,255,255,0.85);
}

.wiki-text h2, .wiki-text h3 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.45em;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.5rem;
}

.wiki-text h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-title);
  font-size: 1.15em;
  font-weight: 600;
}

.wiki-text dl {
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.wiki-text dt {
  font-weight: 700;
  margin-top: 0.5rem;
}

.wiki-text dd {
  margin-left: 1rem;
  margin-bottom: 0.75rem;
}

.wiki-text p {
  margin-bottom: 1.75rem;
}

.wiki-text img, .wiki-text figure, .wiki-text picture {
  display: none !important;
}

.is-won .wiki-text img, .is-won .wiki-text figure, .is-won .wiki-text picture {
  display: block !important;
}

/* REDACTED BLOCKS SYSTEM */
.redacted {
  position: relative;
  background-color: var(--block-bg);
  color: transparent;
  display: inline-block;
  padding: 1px 0;
  margin: 1px 2px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  text-align: center;
  vertical-align: middle;
  line-height: 1;
  transition: var(--transition-fast);
}

.redacted:hover {
  background-color: var(--block-hover);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.redacted.show-length::after {
  content: attr(data-length);
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--block-text);
  font-size: 0.75em;
  font-weight: 800;
  line-height: 1;
}

.main-title .redacted {
  border-radius: 6px;
  padding: 3px 0;
}

.main-title .redacted.show-length::after {
  color: #0f172a;
}

.revealed {
  display: inline-block;
  margin: 0 0.1em;
  font-weight: 700;
  color: #fff;
}

.revealed.highlight {
  background-color: var(--highlight-bg);
  color: var(--highlight-text);
  padding: 0 0.25rem;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.6);
  animation: pulseHighlight 1s infinite alternate;
}

@keyframes pulseHighlight {
  0% { box-shadow: 0 0 8px rgba(236, 72, 153, 0.4); }
  100% { box-shadow: 0 0 18px rgba(236, 72, 153, 0.8); }
}

/* SIDEBAR AREA (Theridactle) */
.sidebar-section {
  width: 380px;
  background: rgba(14, 18, 28, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-glass);
  box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.sidebar-top {
  padding: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.btn-action {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 0.65rem;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}

.hint-dropdown-container {
  position: relative;
  flex: 1.6;
  display: flex;
}

.hint-dropdown-container .btn-action {
  width: 100%;
  color: #fff;
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.25);
}

.hint-dropdown-container .btn-action:hover {
  background: rgba(167, 139, 250, 0.18);
  border-color: rgba(167, 139, 250, 0.4);
}

.hint-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  background: #0f111a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  width: 320px;
  z-index: 1000;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  padding: 0.5rem 0;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hint-option {
  display: flex;
  gap: 1rem;
  padding: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.hint-option:hover {
  background: rgba(255,255,255,0.04);
}

.hint-option:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.hint-icon {
  font-size: 1.5rem;
}

.hint-text {
  display: flex;
  flex-direction: column;
}

.hint-text strong {
  font-size: 12px;
  color: #fff;
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
}

.hint-text span {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
}

.guess-form {
  display: flex;
  gap: 4px;
}

.guess-form input {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 10px 0 0 10px;
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.guess-form input:focus {
  border-color: var(--accent);
  box-shadow: inset 0 0 10px rgba(167, 139, 250, 0.05);
}

.guess-form .btn-submit {
  background: var(--theri-gradient);
  border: none;
  color: #fff;
  padding: 0 1.25rem;
  border-radius: 0 10px 10px 0;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px var(--theri-primary-glow);
}

.guess-form .btn-submit:hover {
  filter: brightness(1.15);
  box-shadow: 0 6px 20px var(--theri-primary-glow);
}

.phrase-hint-container {
  margin: 0 2rem 1.25rem 2rem;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 14px;
  padding: 1.1rem;
  animation: fadeIn 0.4s ease;
}

.phrase-hint-title {
  color: var(--accent);
  font-weight: 800;
  font-size: 11px;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.phrase-hint-text {
  font-size: 13px;
  color: #fff;
  line-height: 1.6;
  font-style: italic;
}

.sidebar-list-header {
  display: flex;
  padding: 1rem 2rem;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.col-rank { width: 45px; }
.col-word { flex: 1; }
.col-hits { width: 50px; text-align: right; }

.guess-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.05) transparent;
}
.guess-list::-webkit-scrollbar {
  width: 4px;
}
.guess-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.05);
}

.guess-list li {
  display: flex;
  padding: 0.85rem 2rem;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  align-items: center;
  transition: var(--transition-fast);
}

.guess-list li:hover {
  background: rgba(255,255,255,0.02);
}

.guess-list li.selected {
  background: rgba(167, 139, 250, 0.08);
  box-shadow: inset 4px 0 0 var(--highlight-bg);
}

.guess-list li.hit .col-word {
  color: #fff;
  font-weight: 700;
}

.guess-list li.hit .col-hits {
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  color: #fff;
  font-weight: 700;
  display: inline-block;
  text-align: center;
  min-width: 32px;
}

.win-message {
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid;
}

.win-message h2 {
  font-size: 28px;
  margin-bottom: 0.5rem;
  color: #fff;
}

.win-message p {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

.loading {
  text-align: center;
  padding: 4rem;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading::before {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid rgba(167,139,250,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 5. L'IMPOSTEUR GAME VIEW */
.imposteur-layout {
  display: flex;
  flex: 1;
  height: 100%;
  width: 100%;
}

.imposteur-main-section {
  flex: 1;
  padding: 3rem 4rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.imposteur-main-section::-webkit-scrollbar {
  width: 6px;
}
.imposteur-main-section::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.imposteur-panel {
  margin-bottom: 2rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.85rem;
}

.panel-header h3 {
  font-size: 20px;
  color: #fff;
}

.panel-header h4 {
  font-size: 16px;
  color: #fff;
}

.mt-15 { margin-top: 1.5rem; }
.mt-20 { margin-top: 2rem; }
.text-center { text-align: center; }

/* Lobby layout details */
.lobby-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.lobby-settings-box {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 1.75rem;
  border-radius: 14px;
}

.lobby-settings-box h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.theme-select-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 0.75rem;
}

.theme-select {
  width: 100%;
  background: rgba(11, 13, 19, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition-fast);
}

.theme-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.15);
}

.theme-select-wrapper::after {
  content: '▼';
  font-size: 10px;
  color: var(--text-muted);
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.theme-helper {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}

.lobby-start-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.helper-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Secret Word Card */
.secret-word-card {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(236, 72, 153, 0.25);
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.08);
  text-align: center;
  animation: slideUp 0.5s ease;
}

.secret-card-header {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--imp-primary);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.secret-word-value {
  font-family: var(--font-title);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 25px rgba(236, 72, 153, 0.4);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  animation: revealPulse 2s infinite alternate;
}

@keyframes revealPulse {
  0% { transform: scale(1); text-shadow: 0 0 25px rgba(236, 72, 153, 0.4); }
  100% { transform: scale(1.03); text-shadow: 0 0 35px rgba(236, 72, 153, 0.6); }
}

.secret-card-footer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Turn Indicator Bar */
.turn-indicator-bar {
  background: rgba(167, 139, 250, 0.07);
  border: 1px dashed rgba(167, 139, 250, 0.35);
  padding: 1.25rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.turn-indicator-bar.my-turn {
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.45);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.1);
}

.turn-status-icon {
  font-size: 1.5rem;
}

.turn-status-text {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* Description Form */
.desc-submission-form {
  display: flex;
  gap: 8px;
  margin-top: 1.25rem;
  animation: fadeIn 0.4s ease;
}

.desc-submission-form input {
  flex: 1;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

.desc-submission-form input:focus {
  border-color: var(--imp-primary);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.15);
}

/* Description feed */
.descriptions-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
}

.descriptions-container::-webkit-scrollbar {
  width: 4px;
}
.descriptions-container::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.06);
}

.desc-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  animation: slideLeft 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.desc-player-avatar {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.desc-content {
  flex: 1;
}

.desc-player-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.desc-player-bubble {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
}

/* Voting Grid styling */
.voting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.vote-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.vote-card:hover {
  background: rgba(236, 72, 153, 0.05);
  border-color: rgba(236, 72, 153, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.1);
}

.vote-card.voted {
  background: rgba(236, 72, 153, 0.08);
  border-color: var(--imp-primary);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.15);
}

.vote-avatar {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.1);
  transition: var(--transition-fast);
}

.vote-card:hover .vote-avatar {
  border-color: var(--imp-primary);
  transform: scale(1.1);
}

.vote-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.vote-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--imp-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition-fast);
}

.vote-card.voted .vote-indicator {
  opacity: 1;
  transform: scale(1);
}

.vote-count-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
}

.vote-card.eliminated {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.4);
}

.vote-card.eliminated::after {
  content: '❌ Éliminé';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.vote-card.skip-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.vote-card.skip-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.06);
}

.vote-card.skip-card.voted {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.vote-card.skip-card.voted .vote-indicator {
  background: rgba(255, 255, 255, 0.7);
  color: #000;
}

/* Imposteur Sidebar Panel */
.imposteur-sidebar {
  width: 340px;
  background: rgba(14, 18, 28, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
}

.imposteur-sidebar-panel {
  border: none;
  background: transparent;
  padding: 2rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.imposteur-sidebar-panel .sidebar-header {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.imposteur-players-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.player-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: var(--transition-fast);
}

.player-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.player-info-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-avatar {
  background: rgba(167, 139, 250, 0.15);
  color: var(--accent);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.player-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.player-badges {
  display: flex;
  gap: 0.35rem;
}

.badge-item {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.badge-host {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-voted {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-thinking {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.badge-dead {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Game over Results styling */
.results-emoji {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  animation: popBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popBounce {
  0% { transform: scale(0.95); opacity: 0; }
  70% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.results-subtext {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

.words-reveal-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2.25rem 2rem;
  border-radius: 18px;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.word-reveal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.reveal-label {
  color: var(--text-muted);
  font-weight: 600;
}

.reveal-value {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.text-green {
  color: #10b981;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

.text-red {
  color: #ef4444;
  text-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
}

.reveal-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.08);
  padding: 4px 12px;
  border-radius: 6px;
}

/* Animations declarations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* 🗺️ QUIZ GEOGRAPHIE PREMIUM STYLES */
.card-geographie {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-geographie:hover {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.25) !important;
  transform: translateY(-5px) scale(1.02);
}

.geo-choices-grid button {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.geo-choices-grid button::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.geo-choices-grid button:active::after {
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0s;
}

.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  height: 240px;
  margin: 2rem auto;
  max-width: 400px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.podium-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 95px;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.podium-column:nth-child(1) { animation-delay: 0.25s; } /* 2nd place */
.podium-column:nth-child(2) { animation-delay: 0.1s; }  /* 1st place */
.podium-column:nth-child(3) { animation-delay: 0.4s; }  /* 3rd place */

.podium-bar {
  transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.podium-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  animation: shineBar 2.5s infinite linear;
}

@keyframes shineBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes shakeRed {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* SVG Country Silhouette glow-ups */
#geographie-media-container svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#geographie-media-container svg path {
  transition: fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
}

/* 🗺️ Interactive World Map SVG styling and animations */
.world-map-country {
  fill: #1b2a4a !important;
  stroke: rgba(255, 255, 255, 0.12) !important;
  stroke-width: 0.5px !important;
  transition: all 0.2s ease;
  cursor: default;
}

.world-map-interactive {
  fill: #1e3470 !important;
  stroke: rgba(0, 242, 254, 0.4) !important;
  stroke-width: 0.8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease;
}

.world-map-interactive:hover {
  fill: rgba(0, 242, 254, 0.3) !important;
  stroke: var(--neon-cyan) !important;
  stroke-width: 1.5px !important;
  filter: drop-shadow(0 0 5px var(--neon-cyan)) !important;
}

.world-map-selected {
  fill: rgba(0, 242, 254, 0.45) !important;
  stroke: var(--neon-cyan) !important;
  stroke-width: 2px !important;
  filter: drop-shadow(0 0 8px var(--neon-cyan)) !important;
}

.world-map-correct {
  fill: rgba(16, 185, 129, 0.65) !important;
  stroke: var(--neon-emerald) !important;
  stroke-width: 2px !important;
  filter: drop-shadow(0 0 10px var(--neon-emerald)) !important;
}

.world-map-wrong {
  fill: rgba(244, 63, 94, 0.5) !important;
  stroke: #f43f5e !important;
  stroke-width: 2px !important;
  filter: drop-shadow(0 0 8px #f43f5e) !important;
}

.world-map-muted {
  fill: #121f3a !important;
  stroke: rgba(255, 255, 255, 0.06) !important;
  stroke-width: 0.5px !important;
  filter: none !important;
  cursor: default !important;
}

/* Correct Answer Showcase Cards */
.correct-answer-showcase {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ────────────────────────────────────────────────────────
   RESPONSIVENESS & MOBILE LAYOUT OVERRIDES (preserving details)
   ──────────────────────────────────────────────────────── */

/* Desktop / Large Screens general layout helper */
.guess-form-mobile { display: none !important; }

@media (max-width: 992px) {
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 500px;
  }
}

@media (max-width: 800px) {
  /* BODY AND MAIN SCROLL */
  body {
    overflow: auto;
    height: auto;
    min-height: 100dvh;
  }

  .top-nav {
    height: 60px;
    padding: 0 0.5rem !important;
    position: sticky;
    top: 0;
    z-index: 500;
    gap: 6px !important;
  }
  .top-nav.in-room .logo {
    display: none !important;
  }
  .nav-left { gap: 0.4rem !important; }
  .logo {
    font-size: 16px !important;
    letter-spacing: 0.5px !important;
  }
  .logo-red {
    padding: 1px 4px !important;
    border-radius: 4px !important;
    margin: 0 1px !important;
  }
  .nav-room-badge {
    padding: 4px 6px !important;
    font-size: 10px !important;
  }
  .btn-quit {
    white-space: nowrap !important;
    font-size: 0px !important;
    padding: 0.4rem 0.6rem !important;
    border-radius: 8px !important;
  }
  .btn-quit::after {
    content: "🚪";
    font-size: 14px;
  }
  .btn-profile {
    padding: 4px 8px !important;
  }
  #nav-profile-name {
    display: none !important;
  }
  #btn-copy-invite {
    font-size: 0px !important;
    padding: 4px 6px !important;
  }
  #btn-copy-invite::after {
    content: "🔗";
    font-size: 12px;
  }
  .top-nav a { display: none; }
  #room-display { margin-left: 0.25rem; font-size: 11px; }

  .app-container {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  /* THERIDACTLE MOBILE SECTION */
  .article-section {
    flex: none;
    width: 100%;
    padding: 1.5rem 1.25rem 320px 1.25rem;
    overflow: visible;
  }

  .main-title { font-size: 1.85rem; margin-bottom: 1.5rem; }
  .article-header { font-size: 11px; margin-bottom: 1rem; }
  .wiki-text { font-size: 15px; line-height: 2.1; }

  /* Fixed panel at bottom just above input bar */
  .sidebar-section {
    position: fixed;
    bottom: 60px;
    left: 0;
    width: 100vw;
    height: 240px;
    z-index: 300;
    background: #0f121a;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .sidebar-section::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin: 8px auto 0 auto;
    flex-shrink: 0;
  }

  .sidebar-top {
    padding: 0.5rem 1rem 0.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
  }

  .sidebar-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
  }

  .btn-action {
    font-size: 10px;
    padding: 0.6rem 0.25rem;
  }

  .sidebar-top > .guess-form {
    display: none;
  }

  .hint-dropdown {
    top: auto;
    bottom: 110%;
    left: 10px;
    width: calc(100vw - 20px);
    max-width: 320px;
    border-radius: 12px;
  }

  .phrase-hint-container {
    margin: 0.4rem 1rem;
    padding: 0.65rem 0.85rem;
    flex-shrink: 0;
  }

  .phrase-hint-title { font-size: 10px; margin-bottom: 0.2rem; }
  .phrase-hint-text { font-size: 12px; }

  .sidebar-list-header {
    padding: 0.4rem 1rem;
    font-size: 10px;
  }

  .guess-list {
    flex: 1;
    overflow-y: auto;
  }

  .guess-list li {
    padding: 0.6rem 1rem;
    font-size: 13px;
  }

  .mobile-handle { display: none; }

  /* Mobile scroll-top and input form fixed bar */
  .guess-form-mobile {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    z-index: 400;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    background: #0b0d13;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    margin: 0;
  }

  .btn-scroll-top {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 0 10px;
    height: 42px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
  }

  .guess-form-mobile input {
    flex: 1;
    height: 42px;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    padding: 0 0.85rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
  }

  .guess-form-mobile .btn-submit {
    height: 42px;
    border-radius: 0 8px 8px 0;
    padding: 0 1.1rem;
    font-size: 13px;
    flex-shrink: 0;
  }

  /* IMPOSTEUR MOBILE OVERRIDES */
  .imposteur-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .imposteur-main-section {
    padding: 1.5rem 1rem 3rem 1rem;
    overflow: visible;
    width: 100%;
  }

  .imposteur-sidebar {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(14, 18, 28, 0.5);
    order: -1; /* Place at the top */
    overflow-y: visible;
  }

  .imposteur-sidebar-panel {
    padding: 0.75rem 1rem;
  }

  .imposteur-sidebar-panel .sidebar-header {
    display: none; /* Hide Joueurs text on mobile to save space */
  }

  .imposteur-players-list {
    display: flex;
    flex-direction: row;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.25rem 0;
    scrollbar-width: none;
  }

  .imposteur-players-list::-webkit-scrollbar {
    display: none;
  }

  .player-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 78px;
    flex-shrink: 0;
    text-align: center;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .player-info-left {
    flex-direction: column;
    gap: 0.25rem;
  }

  .player-name {
    font-size: 10px;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 68px;
  }

  .player-avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .player-badges {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    flex-direction: row;
    gap: 2px;
    pointer-events: none;
  }

  .badge-item {
    font-size: 9px;
    padding: 2px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5) !important;
  }

  .badge-text {
    display: none !important;
  }

  .desc-item {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    border-radius: 12px;
  }

  .desc-player-bubble {
    font-size: 13px;
  }

  .voting-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .secret-word-value {
    font-size: 2.25rem;
  }

  /* GEOGRAPHIE QUIZ MOBILE OVERRIDES */
  #geographie-game-view {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  /* Reduce map height on mobile for better usability */
  #geographie-interactive-map {
    height: 280px !important;
  }

  #geographie-correction-map {
    height: 260px !important;
  }

  /* Geographie media container: no fixed min-height on mobile */
  #geographie-media-container {
    min-height: unset !important;
    padding: 0.5rem !important;
  }

  /* Make the play panel glass-panel fit mobile */
  #geographie-play-panel .glass-panel,
  #geographie-correction-panel .glass-panel {
    padding: 1rem 0.75rem !important;
  }

  /* Question prompt */
  #geographie-question-prompt {
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
  }

  /* Sidebar on mobile for geographie: horizontal scroll */
  #geographie-game-view .imposteur-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-glass);
    order: -1;
  }

  #geographie-players-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    overflow-x: auto !important;
    padding: 0.25rem 0 !important;
    scrollbar-width: none !important;
  }

  #geographie-players-list::-webkit-scrollbar {
    display: none;
  }

  /* Text answer input on mobile */
  #geographie-text-input-container {
    flex-direction: row !important;
    max-width: 100% !important;
  }

  #geographie-text-answer {
    font-size: 16px !important; /* prevent iOS zoom */
  }

  /* Geo choices grid: 1 col on very small screens */
  .geo-choices-grid {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  /* Correction panel adjustments */
  #geographie-correct-answer-text {
    font-size: 1.5rem !important;
  }

  /* Leaderboard on mobile */
  #geographie-podium-container {
    height: 160px !important;
    gap: 0.5rem !important;
  }

}

/* Premium Toast Notifications */
.premium-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 15, 25, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  pointer-events: none;
}

.premium-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.premium-toast.success {
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(52, 211, 153, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ==========================================
   LOUP-GAROU THEMES & LAYOUTS
   ========================================== */

/* Night sleep moon pulse animation */
@keyframes pulse-moon {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
  }
  50% {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 30px rgba(239, 68, 68, 0.4));
  }
}

.sleep-moon {
  user-select: none;
}

/* Role Config Grid elements */
.role-config-card {
  opacity: 0.5;
  filter: grayscale(80%);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

.role-config-card.active {
  opacity: 1;
  filter: none;
}

.role-config-card.active[data-role="voyante"] {
  border-color: #a78bfa !important;
  background: rgba(167, 139, 250, 0.15) !important;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.3);
}

.role-config-card.active[data-role="sorciere"] {
  border-color: #34d399 !important;
  background: rgba(52, 211, 153, 0.15) !important;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
}

.role-config-card.active[data-role="chasseur"] {
  border-color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.15) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.role-config-card.active[data-role="cupidon"] {
  border-color: #ec4899 !important;
  background: rgba(236, 72, 153, 0.15) !important;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.3);
}

.role-config-card.active[data-role="garde"] {
  border-color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.15) !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

/* History Logs entry rules */
#loup-garou-history-journal::-webkit-scrollbar {
  width: 4px;
}
#loup-garou-history-journal::-webkit-scrollbar-thumb {
  background: rgba(239, 68, 68, 0.2);
  border-radius: 4px;
}

.history-log-entry {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  animation: slideLeft 0.3s ease-out;
}

.premium-toast.error {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(239, 68, 68, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Premium Loup-Garou Role Builder Styles */
.role-catalog-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255,255,255,0.06);
}

.role-catalog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.btn-lg-add-role {
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-lg-add-role:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(255,255,255,0.2);
}

.lg-active-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: scaleUp 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lg-active-card-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.lg-active-card-chip .btn-remove {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 900;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 14px;
  height: 14px;
  transition: color 0.15s;
}

.lg-active-card-chip .btn-remove:hover {
  color: #ef4444;
}

/* Role Chip Glow Colors */
.lg-active-card-chip[data-role="loup"] { border-color: #ef4444; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25); }
.lg-active-card-chip[data-role="simple_villageois"] { border-color: #94a3b8; }
.lg-active-card-chip[data-role="voyante"] { border-color: #a78bfa; box-shadow: 0 2px 8px rgba(167, 139, 250, 0.25); }
.lg-active-card-chip[data-role="sorciere"] { border-color: #34d399; box-shadow: 0 2px 8px rgba(52, 211, 153, 0.25); }
.lg-active-card-chip[data-role="chasseur"] { border-color: #f59e0b; box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25); }
.lg-active-card-chip[data-role="cupidon"] { border-color: #ec4899; box-shadow: 0 2px 8px rgba(236, 72, 153, 0.25); }
.lg-active-card-chip[data-role="garde"] { border-color: #3b82f6; box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25); }
.lg-active-card-chip[data-role="voleur"] { border-color: #06b6d4; box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25); }
.lg-active-card-chip[data-role="petite_fille"] { border-color: #f472b6; }
.lg-active-card-chip[data-role="bouc_emissaire"] { border-color: #f97316; }
.lg-active-card-chip[data-role="idiot_du_village"] { border-color: #84cc16; }
.lg-active-card-chip[data-role="montreur_d_ours"] { border-color: #78716c; }
.lg-active-card-chip[data-role="ancien"] { border-color: #a1a1aa; }

/* ==========================================
   STATS VIEW
   ========================================== */

.stats-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  align-items: center;
}

.stats-layout {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stats-header-bar {
  text-align: center;
  padding-bottom: 0.5rem;
}

.stats-main-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.5rem 0;
}

.stats-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.stats-game-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stats-game-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-body);
}

.stats-game-tab:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.stats-game-tab:active {
  transform: scale(0.96);
}

.stats-game-tab.active {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: #fbbf24;
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.35);
}

.stats-period-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.35rem;
}

.stats-period-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1), background 0.2s, color 0.2s;
  font-family: var(--font-body);
}

.stats-period-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.stats-period-btn:active {
  transform: scale(0.96);
}

.stats-period-btn.active {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.stats-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Podium */
.stats-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

.podium-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.podium-player:nth-child(1) { animation-delay: 0.1s; }
.podium-player:nth-child(2) { animation-delay: 0.2s; }
.podium-player:nth-child(3) { animation-delay: 0.3s; }

.podium-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 3px solid transparent;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  position: relative;
}

.podium-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.podium-avatar.rank-1 { border-color: #fbbf24; box-shadow: 0 0 20px rgba(251, 191, 36, 0.4); width: 76px; height: 76px; font-size: 32px; }
.podium-avatar.rank-2 { border-color: #e2e8f0; box-shadow: 0 0 12px rgba(226, 232, 240, 0.2); }
.podium-avatar.rank-3 { border-color: #f97316; box-shadow: 0 0 12px rgba(249, 115, 22, 0.2); }

.podium-crown {
  font-size: 24px;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.podium-nickname {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.podium-wins {
  font-size: 11px;
  color: var(--text-muted);
}

.podium-bar {
  width: 90px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 0.75rem;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.podium-bar.rank-1 { height: 80px; background: linear-gradient(180deg, rgba(251, 191, 36, 0.25), rgba(251, 191, 36, 0.08)); }
.podium-bar.rank-2 { height: 60px; background: linear-gradient(180deg, rgba(226, 232, 240, 0.18), rgba(226, 232, 240, 0.05)); }
.podium-bar.rank-3 { height: 48px; background: linear-gradient(180deg, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0.05)); }

/* Leaderboard table */
.stats-table-panel {
  padding: 0;
  overflow: hidden;
}

.stats-leaderboard-list {
  display: flex;
  flex-direction: column;
}

.stats-leaderboard-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
  cursor: default;
}

.stats-leaderboard-item:last-child {
  border-bottom: none;
}

.stats-leaderboard-item:hover {
  background: rgba(255,255,255,0.04);
}

.stats-leaderboard-item.highlighted {
  background: rgba(251, 191, 36, 0.06);
  border-left: 3px solid #fbbf24;
}

.stats-rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.07);
  color: var(--text-muted);
}

.stats-rank-badge.r1 { background: rgba(251, 191, 36, 0.2); color: #fbbf24; font-size: 18px; }
.stats-rank-badge.r2 { background: rgba(226, 232, 240, 0.15); color: #e2e8f0; font-size: 18px; }
.stats-rank-badge.r3 { background: rgba(249, 115, 22, 0.15); color: #f97316; font-size: 18px; }

.stats-player-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255,255,255,0.07);
  flex-shrink: 0;
  overflow: hidden;
}

.stats-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.stats-player-info {
  flex: 1;
}

.stats-player-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.stats-player-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.stats-player-metrics {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.stats-metric {
  text-align: center;
}

.stats-metric-value {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.stats-metric-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 14px;
}

.stats-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-dim);
}

.stats-empty-emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ==========================================
   PROFILE MODAL
   ========================================== */

.profile-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.profile-modal-content {
  width: 94%;
  max-width: 720px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  border-radius: 20px;
  animation: zoomIn 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.profile-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.profile-modal-close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.profile-modal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 1rem;
}

.profile-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.profile-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.profile-tab.active {
  color: #fff;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.profile-tab-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Avatar Section */
.profile-avatar-section {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.profile-avatar-preview {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 3px solid rgba(167, 139, 250, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar-actions {
  flex: 1;
}

.profile-avatar-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.profile-emoji-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.profile-emoji-btn:hover {
  background: rgba(255,255,255,0.12);
  transform: scale(1.1);
}

.profile-emoji-btn.selected {
  border-color: rgba(167, 139, 250, 0.6);
  background: rgba(167, 139, 250, 0.15);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

.profile-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-upload-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Profile form */
.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-field input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.profile-field input:focus {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.15);
}

/* Profile stats tab */
.profile-stats-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.profile-stats-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: 2px solid rgba(167, 139, 250, 0.3);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-stats-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-stats-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.profile-stats-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.profile-stats-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.profile-stats-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.profile-stats-card:active {
  transform: scale(0.98);
}

.profile-stats-card.has-activity {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.05));
  border-color: rgba(168, 85, 247, 0.3);
}

.stats-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-card-title {
  font-size: 14px;
  font-weight: 750;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stats-points-badge {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  font-variant-numeric: tabular-nums;
}

.stats-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.stats-metric-label {
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
}

.stats-metric-value {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stats-ranks-group {
  display: flex;
  gap: 5px;
}

.stats-rank-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-dim, #cbd5e1);
}

.stats-rank-tag strong {
  color: #a78bfa;
  font-weight: 700;
}

/* Nav avatar display */
.nav-avatar-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

/* Avatar in player lists */
.player-list-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  flex-shrink: 0;
  vertical-align: middle;
}

.player-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ==========================================
   PROFILE HISTORY TAB
   ========================================== */
.profile-history-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.profile-history-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.history-game-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-game-name {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.history-game-date {
  font-size: 11px;
  color: var(--text-muted);
}

.history-game-result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.history-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.history-badge-win {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.history-badge-loss {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.history-role {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
}

/* ==========================================
   SONGLESS (CARASONG) STYLES
   ========================================== */

.badge-songless {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.songless-play-area {
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.songless-board {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* Guesses Stack */
.songless-guesses-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.songless-guess-row {
  min-height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.25s var(--ease-out-quint), border-color 0.25s var(--ease-out-quint), background-color 0.25s var(--ease-out-quint);
}

.songless-guess-row.is-empty {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
}

.songless-guess-row.is-wrong {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  animation: songlessShake 0.4s var(--ease-out-quint);
}

.songless-guess-row.is-partial {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde047;
  animation: songlessPop 0.3s var(--ease-out-quint);
}

.songless-guess-row.is-correct {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  font-weight: 700;
  animation: songlessPop 0.4s var(--ease-out-quint);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.songless-guess-row.is-skipped {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.songless-guess-title {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.songless-guess-status-icon {
  font-size: 14px;
  flex-shrink: 0;
}

@keyframes songlessShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

@keyframes songlessPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Audio Player Card */
.songless-player-card {
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  border-color: rgba(168, 85, 247, 0.25);
  background: rgba(15, 12, 28, 0.7);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.songless-track-container {
  position: relative;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
}

.songless-track-segments {
  display: flex;
  width: 100%;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 3px;
}

.songless-segment {
  height: 100%;
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.3s var(--ease-out-quint), box-shadow 0.3s var(--ease-out-quint);
}

.songless-segment[data-step="0"] { flex: 0.1; min-width: 4px; }
.songless-segment[data-step="1"] { flex: 0.4; }
.songless-segment[data-step="2"] { flex: 0.5; }
.songless-segment[data-step="3"] { flex: 1.5; }
.songless-segment[data-step="4"] { flex: 2.5; }
.songless-segment[data-step="5"] { flex: 5.0; }

.songless-segment.is-unlocked {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.6), rgba(236, 72, 153, 0.6));
}

.songless-segment.is-current {
  background: linear-gradient(90deg, #a855f7, #ec4899);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.songless-segment .seg-label {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  pointer-events: none;
  white-space: nowrap;
}

.songless-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #ffffff;
  box-shadow: 0 0 10px #ec4899, 0 0 20px #a855f7;
  border-radius: 2px;
  pointer-events: none;
  transition: left 0.08s linear;
}

.songless-player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.songless-time-label {
  font-size: 13px;
  font-weight: 700;
  color: #c084fc;
  font-family: monospace;
  min-width: 80px;
}

/* Volume Control Box */
.songless-volume-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 4px 10px;
  transition: all 0.2s var(--ease-out-quint);
}

.songless-volume-box:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(168, 85, 247, 0.4);
}

.btn-songless-vol-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: color 0.15s ease;
}

.btn-songless-vol-icon:hover {
  color: #fff;
}

.songless-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.songless-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.8);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.songless-vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.songless-vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c084fc;
  border: none;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.8);
  cursor: pointer;
}

.btn-songless-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.5);
  transition: transform 0.2s var(--ease-out-quint), box-shadow 0.2s var(--ease-out-quint);
}

.btn-songless-play:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.7);
}

.btn-songless-play:active {
  transform: scale(0.94);
}

.btn-songless-skip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-quint);
}

.btn-songless-skip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-songless-skip:active {
  transform: scale(0.96);
}

.btn-songless-giveup {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-quint);
}

.btn-songless-giveup:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
}

.btn-songless-giveup:active {
  transform: scale(0.96);
}

/* Search and Autocomplete Input */
.songless-search-wrapper {
  position: relative;
  width: 100%;
}

.songless-input-box {
  display: flex;
  align-items: center;
  background: rgba(18, 14, 32, 0.85);
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-radius: 9999px;
  padding: 4px 6px 4px 16px;
  transition: border-color 0.25s var(--ease-out-quint), box-shadow 0.25s var(--ease-out-quint);
}

.songless-input-box:focus-within {
  border-color: #c084fc;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
}

.songless-search-icon {
  color: #c084fc;
  margin-right: 8px;
  flex-shrink: 0;
}

#songless-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
  padding: 8px 0;
}

#songless-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-songless-submit {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out-quint), opacity 0.2s;
}

.btn-songless-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-songless-submit:not(:disabled):hover {
  transform: scale(1.04);
}

.btn-songless-submit:not(:disabled):active {
  transform: scale(0.96);
}

/* Autocomplete Dropdown */
.songless-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(14, 11, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 150;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.15);
  display: flex;
  flex-direction: column;
}

.songless-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.songless-autocomplete-item:last-child {
  border-bottom: none;
}

.songless-autocomplete-item:hover,
.songless-autocomplete-item.is-selected {
  background: rgba(168, 85, 247, 0.18);
}

.songless-auto-artwork {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.songless-auto-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.songless-auto-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.songless-auto-artist {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Result Box */
.songless-result-panel {
  border-radius: 20px;
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(16, 12, 30, 0.85);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.2);
  animation: songlessPop 0.4s var(--ease-out-quint);
}

.songless-result-header {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.songless-song-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
  text-align: left;
}

.songless-artwork-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.songless-song-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.songless-song-artist {
  font-size: 14px;
  color: #c084fc;
  font-weight: 500;
  margin-bottom: 4px;
}

.songless-song-year {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.btn-songless-full-play {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  border-radius: 12px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-songless-full-play:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #fff;
}

.songless-result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-songless-share {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transition: transform 0.2s var(--ease-out-quint);
}

.btn-songless-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-songless-share:active {
  transform: scale(0.97);
}

/* Multiplayer Lobby & Sidebar */
.songless-lobby-panel {
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  border-color: rgba(168, 85, 247, 0.3);
}

.songless-lobby-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 8px 0 1.5rem;
}

.songless-lobby-players {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.songless-multi-sidebar {
  width: 100%;
}

.songless-sidebar-panel {
  padding: 1rem;
  border-radius: 16px;
  border-color: rgba(168, 85, 247, 0.3);
}

.songless-players-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  list-style: none;
}

.songless-player-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}

/* ==========================================
   POKECRIES (CRIS POKEMON) MODULE STYLES
   ========================================== */

.pokecries-top-banner {
  padding: 12px 20px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(18, 20, 29, 0.7);
}

.pokecries-hero-card {
  padding: 2.2rem 1.5rem;
  border-radius: 20px;
  border-color: rgba(245, 158, 11, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: radial-gradient(circle at center top, rgba(245, 158, 11, 0.12) 0%, rgba(18, 20, 29, 0.8) 70%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(245, 158, 11, 0.15);
}

.pokecries-sound-visualizer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pokecries-speaker-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
}

.pokecries-speaker-btn {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.45), 0 0 0 4px rgba(245, 158, 11, 0.15);
  transition: transform 0.16s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.16s ease;
  z-index: 2;
}

.pokecries-speaker-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.6), 0 0 0 6px rgba(245, 158, 11, 0.25);
}

.pokecries-speaker-btn:active {
  transform: scale(0.95);
}

.pokecries-pulse-ring {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.5);
  pointer-events: none;
  opacity: 0;
}

.pokecries-speaker-wrap.is-playing .ring-1 {
  animation: pokecriesPulseRing 1.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pokecries-speaker-wrap.is-playing .ring-2 {
  animation: pokecriesPulseRing 1.4s cubic-bezier(0.215, 0.61, 0.355, 1) 0.45s infinite;
}

@keyframes pokecriesPulseRing {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Equalizer Bars */
.pokecries-equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 24px;
}

.eq-bar {
  width: 4px;
  height: 6px;
  background: #fbbf24;
  border-radius: 9999px;
  transition: height 0.15s ease;
}

.pokecries-equalizer.is-active .eq-1 {
  animation: soundwaveBounce 0.6s ease-in-out infinite alternate;
}
.pokecries-equalizer.is-active .eq-2 {
  animation: soundwaveBounce 0.45s ease-in-out 0.1s infinite alternate;
}
.pokecries-equalizer.is-active .eq-3 {
  animation: soundwaveBounce 0.7s ease-in-out 0.2s infinite alternate;
}
.pokecries-equalizer.is-active .eq-4 {
  animation: soundwaveBounce 0.5s ease-in-out 0.15s infinite alternate;
}
.pokecries-equalizer.is-active .eq-5 {
  animation: soundwaveBounce 0.65s ease-in-out 0.05s infinite alternate;
}

@keyframes soundwaveBounce {
  0% {
    height: 4px;
    opacity: 0.6;
  }
  100% {
    height: 22px;
    opacity: 1;
  }
}

.pokecries-status-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary, #cbd5e1);
  text-align: center;
}

.pokecries-player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-pokecries-replay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1), background 0.15s ease;
}

.btn-pokecries-replay:hover {
  background: rgba(245, 158, 11, 0.22);
  transform: translateY(-1px);
}

.btn-pokecries-replay:active {
  transform: scale(0.97);
}

/* Hints Section */
.pokecries-hints-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 1.2rem 0;
}

.pokecries-hints-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pokecries-hints-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-pokecries-hint {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.15s ease, background 0.15s ease;
}

.btn-pokecries-hint:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.08);
}

.btn-pokecries-hint:active {
  transform: scale(0.97);
}

.btn-pokecries-hint.is-used {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.pokecries-revealed-hints {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hint-card {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 20, 29, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  animation: pokecriesFadeIn 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.hint-label {
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
}

.hint-val {
  color: #fbbf24;
  font-weight: 700;
}

.silhouette-wrapper {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 6px;
}

.pokemon-silhouette-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

/* MCQ Options Grid */
.pokecries-mcq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 1.5rem 0;
  width: 100%;
}

@media (max-width: 600px) {
  .pokecries-mcq-grid {
    grid-template-columns: 1fr;
  }
}

.pokecries-mcq-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.pokecries-mcq-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.pokecries-mcq-btn:active {
  transform: scale(0.97);
}

.mcq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
}

.pokecries-mcq-btn.is-correct {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(16, 185, 129, 0.8) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35) !important;
}

.pokecries-mcq-btn.is-correct .mcq-badge {
  background: #10b981;
  color: #000;
}

.pokecries-mcq-btn.is-wrong {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.8) !important;
  animation: pokecriesShake 0.35s ease;
}

.pokecries-mcq-btn.is-wrong .mcq-badge {
  background: #ef4444;
  color: #fff;
}

@keyframes pokecriesShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.btn-pokecries-submit {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-pokecries-submit:not(:disabled):active {
  transform: scale(0.97);
}

.btn-pokecries-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Reveal Result Showcase */
.pokecries-reveal-card {
  padding: 1.8rem;
  border-radius: 20px;
  border-color: rgba(245, 158, 11, 0.45);
  background: radial-gradient(circle at center top, rgba(245, 158, 11, 0.18) 0%, rgba(18, 20, 29, 0.95) 75%);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(245, 158, 11, 0.2);
  margin-top: 1.5rem;
  animation: pokecriesEntrance 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes pokecriesEntrance {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pokecries-reveal-header {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  color: #fff;
  margin-bottom: 1.2rem;
}

.pokecries-pokemon-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pokecries-artwork-frame {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.2);
}

.pokecries-artwork-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.pokecries-reveal-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pokecries-pokedex-num {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 1px;
}

.pokecries-pokemon-name {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.pokecries-en-name {
  font-size: 14px;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 6px;
}

.pokecries-types-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Pokemon Types Badges */
.poke-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.type-plante { background: #78c850; }
.type-feu { background: #f08030; }
.type-eau { background: #6890f0; }
.type-electrik, .type-électrik { background: #f8d030; color: #000; }
.type-glace { background: #98d8d8; color: #000; }
.type-combat { background: #c03028; }
.type-poison { background: #a040a0; }
.type-sol { background: #e0c068; color: #000; }
.type-vol { background: #a890f0; }
.type-psy { background: #f85888; }
.type-insecte { background: #a8b820; }
.type-roche { background: #b8a038; }
.type-spectre { background: #705598; }
.type-dragon { background: #7038f8; }
.type-tenebres, .type-ténèbres { background: #705848; }
.type-acier { background: #b8b8d0; color: #000; }
.type-fee, .type-fée { background: #ee99ac; }
.type-normal { background: #a8a878; }

.pokecries-reveal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes pokecriesFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   EMIL KOWALSKI DESIGN POLISH & ACCESSIBILITY
   ========================================== */

/* Active states for tabs, pills, and interactive chips */
.profile-tab:active,
.stats-game-tab:active,
.stats-period-btn:active,
.btn-geo-mode:active,
.nav-link:active,
.btn-profile:active {
  transform: scale(0.97) !important;
  transition: transform 0.12s var(--ease-out-quint) !important;
}

/* Accessible Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .glow-orb {
    animation: none !important;
  }

  .game-card:hover {
    transform: none !important;
  }

  .game-card:active {
    transform: none !important;
  }
}



/* Unified statistics ranking */
.stats-ranking-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 4px 0 8px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; background: rgba(255,255,255,.035);
}
.stats-sort-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.24); }
.stats-sort-btn {
  border: 0; border-radius: 9px; padding: 8px 14px; color: var(--text-muted); background: transparent;
  cursor: pointer; font: inherit; font-size: 13px; font-weight: 700;
  transition: transform 120ms cubic-bezier(.23,1,.32,1), background-color 160ms cubic-bezier(.23,1,.32,1), color 160ms cubic-bezier(.23,1,.32,1);
}
.stats-sort-btn:hover { color: #fff; background: rgba(255,255,255,.07); }
.stats-sort-btn.active { color: #111827; background: #fbbf24; }
.stats-sort-btn:active { transform: scale(.97); }

/* Global Loading Overlay (Impeccable Style & Emil Kowalski Principles) */
.loading-overlay-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loading-card {
  background: rgba(18, 22, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(168, 85, 247, 0.18);
  border-radius: 20px;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  animation: popInCard 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes popInCard {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.loading-spinner-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: #a855f7;
  border-right-color: #ec4899;
  animation: spinRing 0.8s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loading-title {
  font-size: 16px;
  font-weight: 750;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.loading-subtitle {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  margin: 0;
}
.stats-ranking-note { margin: 0; max-width: 430px; color: var(--text-muted); font-size: 12px; line-height: 1.45; text-align: right; }
.stats-table-header, .stats-leaderboard-item { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(92px, .34fr)); align-items: center; }
.stats-table-header { padding: 10px 24px; color: var(--text-dim); font-size: 11px; font-weight: 700; text-align: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.stats-table-header span:first-child { text-align: left; }
.stats-leaderboard-item { gap: 12px; padding: 12px 24px; border-bottom: 1px solid rgba(255,255,255,.06); transition: background-color 160ms cubic-bezier(.23,1,.32,1); }
.stats-leaderboard-item.highlighted { border-left: 0; box-shadow: inset 3px 0 #fbbf24; }
.stats-player-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.stats-you { display: inline-flex; margin-left: 7px; padding: 2px 6px; border-radius: 9999px; background: rgba(251,191,36,.14); color: #fbbf24; font-size: 11px; }
.stats-cell { min-width: 0; padding: 6px 8px; text-align: center; border-radius: 9px; }
.stats-cell strong { display: block; color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; }
.stats-cell span { display: block; margin-top: 1px; color: var(--text-dim); font-size: 11px; }
.stats-cell.is-sorted { background: rgba(251,191,36,.09); }
.stats-cell.is-sorted strong { color: #fbbf24; }
.podium-place { color: var(--text-dim); font-size: 11px; font-weight: 700; }
.stats-empty-title { margin-bottom: 5px; color: #fff; font-size: 16px; font-weight: 750; }
.stats-empty p { margin: 0; font-size: 13px; }
@media (max-width: 700px) {
  .stats-ranking-toolbar { align-items: stretch; flex-direction: column; }
  .stats-sort-tabs { width: 100%; }
  .stats-sort-btn { flex: 1; padding-inline: 8px; }
  .stats-ranking-note { max-width: none; text-align: left; }
  .stats-table-header { display: none; }
  .stats-leaderboard-item { grid-template-columns: 1fr 1fr 1fr; padding: 14px 16px; }
  .stats-player-identity { grid-column: 1 / -1; }
  .stats-cell { background: rgba(255,255,255,.025); }
  .stats-cell::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--text-dim); font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .stats-sort-btn, .stats-leaderboard-item, .podium-player, .podium-crown { animation: none !important; transition: none !important; transform: none !important; }
}

/* Multi-theme selector pills */
.multi-theme-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.theme-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #94a3b8);
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.theme-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.theme-pill:active {
  transform: scale(0.95);
}

.theme-pill.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
  border-color: rgba(168, 85, 247, 0.7);
  color: #fff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

