/* ============================================
   PHANTOM TWITCHESS - MAIN CSS
   Variables, Reset, Base Styles
   ============================================ */

:root {
    /* Colors - Dark Theme */
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --bg-input: #0d0d14;
    
    /* Borders */
    --border-subtle: #2a2a3a;
    --border-glow: #6366f1;
    
    /* Text */
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    
    /* Accents */
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-pink: #ec4899;
    
    /* Brand Colors */
    --twitch-purple: #9146ff;
    --phantom-blue: #00d4ff;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
    --gradient-card: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    
    /* Shadows */
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    
    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --nav-height: 70px;
    --sidebar-width: 380px;

    --wheel-size: 400px;
    --wheel-inner-size: calc(var(--wheel-size) * 0.65); 
    --wheel-center-size: calc(var(--wheel-size) * 0.20);


    /* Z-index layers */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 50;
    --z-nav: 100;
    --z-modal: 500;
    --z-toast: 1000;
    --z-overlay: 900;
}

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

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

body {
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}
.highlight-last-move {
    background-color: rgba(255, 235, 59, 0.4) !important;
    box-shadow: inset 0 0 0 3px rgba(255, 235, 59, 0.8) !important;
}
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.bg-glow--top-left {
    top: -200px;
    left: -200px;
    background: var(--accent-purple);
}

.bg-glow--bottom-right {
    bottom: -200px;
    right: -200px;
    background: var(--accent-cyan);
}

/* ============================================
   APP CONTAINER
   ============================================ */
#app {
    position: relative;
    z-index: var(--z-base);
    min-height: 100vh;
}
/* ============================================
   PAGES - Navigation SPA
   ============================================ */

.page {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.page.is-active {
    display: block;
    opacity: 1;
    visibility: visible;
    animation: pageIn 0.3s ease-out;
}

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

/* ============================================
   TIMER DISPLAY
   ============================================ */

.showTimer .countdown {
    display: grid;
    place-items: center;
}

.countdown {
    display: none;
    width: 120px;
    height: 120px;
    position: relative;
}

/* Variables CSS pour l'animation */
@property --t {
    syntax: "<number>";
    initial-value: 30;
    inherits: true;
}

@property --q {
    syntax: "<number>";
    initial-value: 30;
    inherits: true;
}

.countdown svg {
    width: 100%;
    height: 100%;
}

.countdown circle:first-child {
    fill: none;
    stroke: #333;
    stroke-width: 4;
    opacity: 0.3;
}

.countdown circle:last-child {
    --k: calc(var(--t) / var(--q));
    fill: none;
    stroke: color-mix(in hsl shorter hue, #8a9b0f calc(var(--k) * 100%), #940a3d);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: calc(var(--k) * 283) 283;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dasharray 0.1s linear;
}

.timer-critical .countdown {
    animation: timerShake 0.3s ease-in-out infinite;
}

@keyframes timerShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Timer textuel */
#timer-value {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
}

/* ============================================
   VOTING PANEL
   ============================================ */

.voting-panel {
    display: none;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    margin-top: 20px;
}

.voting-panel.is-visible {
    display: block;
}

.voting-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.voting-panel__title {
    font-weight: 700;
    font-size: 1.1rem;
}

.voting-panel__total {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Vote items */
.vote-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.vote-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color);
}

.vote-move {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    min-width: 60px;
}

.vote-count {
    background: var(--color);
    color: #000;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.vote-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--color);
    opacity: 0.15;
    transition: width 0.3s ease;
}

/* ============================================
   AVAILABLE MOVES
   ============================================ */

#availableList ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 5px;
}

#availableList li {
    list-style: none;
}

#availableList button {
    padding: 3px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

#availableList button:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

#availableList li.most-voted button {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #000;
    font-weight: 700;
}

/* ============================================
   BOUTON APPLIQUER
   ============================================ */

.btn--lg {
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn--primary.btn--lg {
    background: var(--gradient-hero);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

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

.sandbox__actions-separator {
    width: 1px;
    height: 30px;
    background: var(--border-subtle);
    margin: 0 8px;
}

/* ============================================
   MODE NO-BG (pour OBS)
   ============================================ */

body.no-bg {
    background: transparent !important;
}

body.no-bg .bg-grid,
body.no-bg .bg-glow,
body.no-bg .nav,
body.no-bg .sandbox__sidebar {
    display: none !important;
}

body.no-bg .board-wrapper {
    background: transparent !important;
    border: none !important;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.toast--success {
    background: var(--accent-green);
}

.toast--error {
    background: var(--accent-red);
}

.toast--warning {
    background: var(--accent-orange);
}

.toast--info {
    background: var(--accent-blue);
}

body.randomWheel #chart {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

body:not(.randomWheel) #chart {
    display: none;
}

.countdown.timer-paused circle:last-child {
    stroke: var(--accent-orange) !important;
    animation: none !important;
}

.countdown.timer-paused {
    opacity: 0.7;
}

#timer-value {
    transition: color 0.2s ease;
}

.timer-paused + #timer-value,
.countdown.timer-paused ~ #timer-value {
    color: var(--accent-orange);
}
/* ============================================
   GAME STATE INDICATORS
   ============================================ */

body.omg-win .board-wrapper {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

body.omg-lose .board-wrapper {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

body.randomWheel .sandbox__main {
    pointer-events: none;
}

/* Turn indicator */
body[data-turn="w"] .sandbox__title::after {
    content: ' ⬜';
}

body[data-turn="b"] .sandbox__title::after {
    content: ' ⬛';
}


#myBoard .square-55d63 {
    transition: background-color 0.2s ease;
}

#myBoard img {
    /* Éviter le flash lors du changement */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}


.history-row.is-selected {
    background: rgba(99, 102, 241, 0.2);
    border-left: 3px solid #6366f1;
}

/* Indicateur de coup spécial (échec, mat, roque) */
.history-row__move.is-check::after {
    content: '+';
    color: #fbbf24;
    margin-left: 2px;
}

.history-row__move.is-checkmate::after {
    content: '#';
    color: #ef4444;
    margin-left: 2px;
}

.history-row__move.is-castle {
    color: #a78bfa;
}

/* Responsive */
@media (max-width: 768px) {
    .history-row {
        font-size: 0.85rem;
        padding: 5px 6px;
    }
    
    .history-row__number {
        min-width: 24px;
        margin-right: 8px;
    }
}
.voting-eligibility {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.voting-eligibility__label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 500;
}

.voting-eligibility__value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icône selon le mode */
.voting-eligibility__value::before {
    content: '👥';
    font-size: 1.2rem;
}

/* Couleurs selon le mode de jeu */
#voting-indicator.mode-yolo {
    color: #ffd700;
}

#voting-indicator.mode-yolo::before {
    content: '🎲';
}

#voting-indicator.mode-oneVsOne,
#voting-indicator.mode-oneVsAll {
    color: #ff6b6b;
}

#voting-indicator.mode-oneVsOne::before,
#voting-indicator.mode-oneVsAll::before {
    content: '⚔️';
}

#voting-indicator.mode-problems {
    color: #4ecdc4;
}

#voting-indicator.mode-problems::before {
    content: '🧩';
}

#voting-indicator.mode-chatVsChat {
    color: #a78bfa;
}

#voting-indicator.mode-chatVsChat::before {
    content: '🎭';
}

/* Animation de changement */
.voting-eligibility__value {
    transition: color 0.3s ease;
}

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

.voting-eligibility.is-active {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.1);
}

.voting-eligibility.is-active .voting-eligibility__value {
    animation: pulse 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .voting-eligibility {
        padding: 10px;
        margin: 10px 0;
    }
    
    .voting-eligibility__label {
        font-size: 0.7rem;
    }
    
    .voting-eligibility__value {
        font-size: 0.9rem;
    }
}


.board-timer-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Affichage du countdown circulaire */
.board-timer-container .countdown {
    display: none;
    width: 100px;
    height: 100px;
    position: relative;
}

/* Afficher le countdown quand le timer est actif */
body.showTimer .board-timer-container .countdown {
    display: block;
}

/* Variables CSS pour l'animation */
@property --t {
    syntax: "<number>";
    initial-value: 30;
    inherits: true;
}

@property --q {
    syntax: "<number>";
    initial-value: 30;
    inherits: true;
}

/* SVG du countdown */
.board-timer-container .countdown svg {
    width: 100%;
    height: 100%;
}

.board-timer-container .countdown circle:first-child {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 4;
    opacity: 0.5;
}

.board-timer-container .countdown circle:last-child {
    --k: calc(var(--t) / var(--q));
    fill: none;
    stroke: color-mix(in hsl shorter hue, #8a9b0f calc(var(--k) * 100%), #940a3d);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: calc(var(--k) * 283) 283;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dasharray 0.1s linear;
}

/* Timer en pause - couleur orange */
.countdown.timer-paused circle:last-child {
    stroke: #ff9800 !important;
    animation: none !important;
}

.countdown.timer-paused {
    opacity: 0.8;
}

/* Animation de shake pour les dernières secondes */
.timer-critical .countdown {
    animation: timerShake 0.3s ease-in-out infinite;
}

@keyframes timerShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Valeur textuelle du timer */
.board-timer-container #timer-value {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
    text-align: center;
    min-width: 60px;
    margin-top: 4px;
}

/* Indicateur de pause dans le texte */
.timer-paused ~ #timer-value,
.countdown.timer-paused ~ #timer-value {
    color: #ff9800;
}

/* Bouton de pause/reprise */
.board-timer-container .timer-pause-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.board-timer-container .timer-pause-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.board-timer-container .timer-pause-btn:active {
    transform: translateY(0);
}

/* Icônes dans le bouton */
.board-timer-container .timer-pause-btn i {
    font-size: 0.9rem;
}

/* Masquer le timer quand il n'est pas actif */
body:not(.showTimer) .board-timer-container {
    opacity: 0.3;
    pointer-events: none;
}

body.showTimer .board-timer-container {
    opacity: 1;
    pointer-events: all;
}

/* Responsive - ajuster la taille sur petit écran */
@media (max-width: 768px) {
    .board-timer-container {
        top: 5px;
        right: 5px;
        padding: 8px;
    }
    
    .board-timer-container .countdown {
        width: 80px;
        height: 80px;
    }
    
    .board-timer-container #timer-value {
        font-size: 1rem;
    }
}

.moves-panel {
    position: fixed;
    left: 20px;
    height: 80%;
    top: 100px;
    width: 280px;
    max-height: calc(100vh - 120px);
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    overflow-y: auto;
    z-index: 1000;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
}

.moves-panel__header h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: #ffd700;
}

.voter-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.voter-input label {
    font-size: 0.85rem;
    color: #aaa;
}

.voter-input input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #0d1117;
    color: #fff;
    font-size: 0.9rem;
}

.moves-panel__timer {
    background: #0d1117;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: center;
}

.timer-display {
    font-size: 2rem;
    font-weight: bold;
    color: #4ade80;
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
}

.timer-display.timer-urgent {
    color: #ef4444;
    animation: pulse 0.5s ease-in-out infinite;
}

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

.timer-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.timer-controls .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.available-moves {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.moves-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 4px;
    margin: 0;
    list-style: none;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    min-height: 32px;
}

.moves-group:empty,
.moves-group:not(:has(li)) {
    display: none;
}

.moves-group .piece-icon {
    font-size: 1.2rem;
    width: 24px;
    opacity: 0.7;
}

.moves-group li {
    list-style: none;
}

.moves-group button {
    padding: 4px 8px;
    font-size: 0.8rem;
    background: #2d3748;
    color: #fff;
    border: 1px solid #4a5568;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
}

.moves-group button:hover {
    background: #4a5568;
    border-color: #ffd700;
    transform: translateY(-1px);
}

.moves-group li.most-voted button {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
    font-weight: bold;
}

.moves-panel__votes {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #333;
}

.moves-panel__votes h4 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    color: #aaa;
}

.vote-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 150px;
    overflow-y: auto;
}

.vote-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.vote-item .vote-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--color, #4a5568);
    opacity: 0.2;
    z-index: 0;
}

.vote-item .vote-move {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    z-index: 1;
}

.vote-item .vote-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: #aaa;
    z-index: 1;
}

.vote-total {
    margin-top: 8px;
    text-align: right;
    font-size: 0.85rem;
    color: #888;
}

/* Responsive */
@media (max-width: 1200px) {
    .moves-panel {
        position: static;
        width: 100%;
        max-height: none;
        margin-top: 20px;
    }
}
.voting-eligibility {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.voting-eligibility__label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 500;
}

.voting-eligibility__value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voting-eligibility__value::before {
    content: '👥';
    font-size: 1.2rem;
}

#voting-indicator.mode-yolo { color: #ffd700; }
#voting-indicator.mode-yolo::before { content: '🎲'; }

#voting-indicator.mode-oneVsOne,
#voting-indicator.mode-oneVsAll { color: #ff6b6b; }
#voting-indicator.mode-oneVsOne::before,
#voting-indicator.mode-oneVsAll::before { content: '⚔️'; }

#voting-indicator.mode-problems { color: #4ecdc4; }
#voting-indicator.mode-problems::before { content: '🧩'; }

#voting-indicator.mode-chatVsChat { color: #a78bfa; }
#voting-indicator.mode-chatVsChat::before { content: '🎭'; }
/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--accent-purple);
    color: white;
}
.countdown.timer-paused ~ #timer-value {
    animation: timerWaitingPulse 1.2s ease-in-out infinite;
}

@keyframes timerWaitingPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
.wheel-center.winner-reveal {
    background: var(--winner-color, #10b981) !important;
}