/* 🥊 BOXING TIMER PRO - Custom Quality Enhancements */

/* 1. FEEDBACK TÁCTIL (Botones con vida) */
.btn, .icon-btn, .counter-btn, .mode-btn, .float-btn, .trophy-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:active, .icon-btn:active, .counter-btn:active, .float-btn:active {
    transform: scale(0.92) !important;
    filter: brightness(0.9);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3) !important;
}

/* 2. TARJETA PRINCIPAL (Diseño Sólido Personalizado) */
.timer-card {
    /* FONDO: Tu degradado Verde/Gris Personalizado */
    background: linear-gradient(145deg, #70b3a7 0%, #cdd6db 100%) !important;
    
    /* BORDES Y SOMBRAS */
    border: 1px solid #0050db !important; 
    box-shadow: 0 15px 40px rgba(4, 196, 164, 0.6) !important;
    border-radius: 28px !important;
    
    /* TEXTO */
    color: #000000 !important;
    
    /* ELIMINAR EFECTO CRISTAL (Esto causaba el azul) */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    
    /* AJUSTES DE POSICIÓN */
    position: relative;
    z-index: 50; /* Para asegurar que flote sobre el fondo */
}

/* Brillo dinámico según estado */
body.fighting .time-display {
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.6) !important;
}
body.resting .time-display {
    text-shadow: 0 0 20px rgba(0, 184, 148, 0.6) !important;
}

/* 3. REFINAMIENTO DEL PANEL DE AJUSTES */
.setting-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-bottom: 4px;
}

.counter-value {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 10px;
    border-radius: 8px;
}

/* 4. TRANSICIONES DE ESTADO SUAVES */
body::before {
    transition: background 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 5. SAFE AREAS (Optimización para iPhone/Pantallas curvas) */
@supports (padding: env(safe-area-inset-bottom)) {
    body.pwa-mode .settings-panel {
        /* safe-area gestionado por .settings-close-wrap — sin padding masivo aquí */
        padding-bottom: 0 !important;
    }
    body.pwa-mode .floating-controls {
        bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    }
}

/* 🥊 CUSTOM QUALITY - FIX DEFINITIVO (Flexbox Grid) */

/* 1. FEEDBACK TÁCTIL (Botones con vida) */
.btn, .icon-btn, .counter-btn, .mode-btn, .float-btn, .trophy-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn:active, .icon-btn:active, .counter-btn:active {
    transform: scale(0.92) !important;
}

/* 2. CONTENEDOR PRINCIPAL (Sin forzar display:block para no romper el JS) */
.settings-panel {
    /* IMPORTANTE: No usamos display: block !important aquí para no romper el toggle */
    /* Usamos flex-wrap para permitir que los elementos fluyan en filas */
    flex-wrap: wrap !important;
    flex-direction: row !important; /* Dirección horizontal para permitir columnas */
    align-content: flex-start !important;
    padding-bottom: 40px !important;
}

/* Forzamos que el panel sea Flex cuando está visible */
.settings-panel.show {
    display: flex !important;
}

/* 3. ELEMENTOS QUE DEBEN OCUPAR TODO EL ANCHO (100%) */
.settings-title, 
.training-summary, 
.mode-buttons, 
.kcal-goal-section {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 4. REJILLA 2x2 PARA LOS AJUSTES (Prep, Round, Time, Rest) */
.setting-row {
    display: flex !important;
    flex-direction: column !important; /* Texto arriba, botones abajo */
    width: 48% !important; /* Casi la mitad */
    margin: 1% !important; /* Espacio entre ellos */
    
    /* Estilo Visual */
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 10px 0 !important;
    min-height: 100px !important;
    justify-content: center !important;
    align-items: center !important;
}

/* 5. ETIQUETAS Y BOTONES */
.setting-label {
    font-size: 0.75rem !important;
    text-align: center !important;
    margin-bottom: 8px !important;
    opacity: 0.9;
    text-transform: uppercase;
    width: 100% !important;
}

.counter {
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
}

.counter-btn {
    width: 38px !important;
    height: 38px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
}

.counter-value {
    font-size: 1.2em !important;
    min-width: 40px !important;
    text-align: center !important;
}

/* 6. CORRECCIONES DE ESPACIADO */
.mode-buttons {
    margin-bottom: 15px !important;
}
.kcal-goal-section {
    margin-top: 10px !important;
    background: rgba(255, 69, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 15px !important;
}

/* ══════════════════════════════════════════════════════════════════
   🥊 PREMIUM ICON BUTTONS — Obsidian Toolbar
   Unified dark-glass design for all 7 top toolbar buttons.
   custom-quality.css loads last → overrides boxing-timer.css.
   ══════════════════════════════════════════════════════════════════ */

/* ── Shared base ── */
.icon-btn,
.league-btn,
.trophy-btn,
.music-btn,
.darkmode-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(12, 12, 20, 0.55) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    line-height: 1 !important;
    color: white !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    box-sizing: border-box !important;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* ── Per-button accent glows ── */
#langBtn {
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 14px rgba(255, 255, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

#profileBtn {
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 16px rgba(100, 170, 255, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

#statsBtn {
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 16px rgba(80, 220, 180, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.league-btn {
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(255, 215, 0, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.music-btn {
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 16px rgba(0, 200, 100, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.darkmode-btn {
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 16px rgba(150, 110, 255, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.trophy-btn {
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(255, 140, 60, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* ── Hover (desktop only) ── */
@media (hover: hover) and (pointer: fine) {
    .icon-btn:hover,
    .league-btn:hover,
    .trophy-btn:hover,
    .music-btn:hover,
    .darkmode-btn:hover {
        background: rgba(255, 255, 255, 0.10) !important;
        border-color: rgba(255, 255, 255, 0.22) !important;
        transform: scale(1.10) !important;
    }

    #langBtn:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 16px rgba(255,255,255,0.20), inset 0 1px 0 rgba(255,255,255,0.14) !important;
    }
    #profileBtn:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 20px rgba(100,170,255,0.40), inset 0 1px 0 rgba(255,255,255,0.14) !important;
    }
    #statsBtn:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 20px rgba(80,220,180,0.40), inset 0 1px 0 rgba(255,255,255,0.14) !important;
    }
    .league-btn:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 22px rgba(255,210,0,0.50), inset 0 1px 0 rgba(255,255,255,0.14) !important;
    }
    .music-btn:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 20px rgba(0,200,100,0.40), inset 0 1px 0 rgba(255,255,255,0.14) !important;
    }
    .darkmode-btn:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 20px rgba(150,110,255,0.40), inset 0 1px 0 rgba(255,255,255,0.14) !important;
    }
    .trophy-btn:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 22px rgba(255,140,60,0.50), inset 0 1px 0 rgba(255,255,255,0.14) !important;
    }
}

/* ── Active / tap press ── */
.icon-btn:active,
.league-btn:active,
.trophy-btn:active,
.music-btn:active,
.darkmode-btn:active {
    transform: scale(0.90) !important;
    filter: brightness(0.85) !important;
    transition: transform 0.09s ease, filter 0.09s ease !important;
}

/* ── Music playing state ── */
.music-btn.playing {
    background: rgba(0, 170, 85, 0.32) !important;
    border-color: rgba(0, 210, 110, 0.40) !important;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(0, 200, 100, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* ── Mobile: keep 44px circles, neutralize the padding override from pwa-optimizations ── */
@media (max-width: 768px) {
    .icon-btn,
    .league-btn,
    .trophy-btn,
    .music-btn,
    .darkmode-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 20px !important;
        padding: 0 !important;
    }
}

/* ══════════════════════════════════════════════════════════════════
   🥊 PREMIUM QUOTE BOX — Dark Glass Card + Epic Typography
   Font: Playfair Display (loaded in index.html)
   ══════════════════════════════════════════════════════════════════ */

.quote-box {
    background: rgba(8, 10, 22, 0.62) !important;
    backdrop-filter: blur(22px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(170%) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-left: 3px solid rgba(255, 215, 0, 0.32) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
    padding: 20px 22px 18px 20px !important;
    margin: 18px 16px 0 !important;
    width: auto !important;
    font-style: normal !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Decorative quote mark removed */
.quote-box::before { content: none; }

.quote-text {
    font-family: 'Playfair Display', Georgia, 'Palatino Linotype', Palatino, serif !important;
    font-style: italic !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.70 !important;
    color: rgba(232, 236, 252, 0.92) !important;
    letter-spacing: 0.012em !important;
    text-shadow:
        0 1px 6px rgba(0, 0, 0, 0.65),
        0 0 28px rgba(200, 210, 255, 0.07) !important;
    margin-bottom: 12px !important;
    position: relative !important;
    z-index: 1 !important;
}

.quote-author {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: normal !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    color: #FFD700 !important;
    letter-spacing: 0.09em !important;
    text-align: right !important;
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.52),
        0 0 28px rgba(255, 185, 0, 0.22),
        0 1px 4px rgba(0, 0, 0, 0.65) !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Smaller mobile */
@media (max-width: 480px) {
    .quote-box {
        padding: 16px 18px 14px 18px !important;
        margin: 14px 12px 0 !important;
    }
    .quote-text {
        font-size: 14px !important;
        line-height: 1.63 !important;
    }
    .quote-author {
        font-size: 11px !important;
    }
}


/* ══════════════════════════════════════════════════════════════════
   🥊 SETTINGS PANEL — Deep Gradient + Ascending Particles
   Pseudo-elements unused elsewhere on this selector → safe to use.
   Particles use background-position animation (compositor-only,
   no layout/paint). Ali theme keeps its red/gold override untouched.
   ══════════════════════════════════════════════════════════════════ */

/* ── Container ── */
.settings-panel {
    background: linear-gradient(
        180deg,
        #18112e 0%,
        #0e0a1c 32%,
        #080513 62%,
        #040309 100%
    ) !important;
    background-size: 100% 100% !important;
    border: 1px solid rgba(100, 70, 200, 0.22) !important;
    position: relative !important;
    /* overflow:hidden is already set when closed;
       overflow-y:auto on .show still clips overflow-x → particles
       stay within rounded corners */
}

/* ── Particle layer 1 — fine lilac dust, 16s slow float ── */
.settings-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    /* 12 dots spread across the full tile height so they're always
       distributed top-to-bottom; opacity fades toward the top */
    background-image:
        /* near-bottom band */
        radial-gradient(circle 1.5px at 12%  90%, rgba(170,130,255,0.52) 0%, transparent 80%),
        radial-gradient(circle 1px   at 57%  85%, rgba(150,110,255,0.44) 0%, transparent 80%),
        radial-gradient(circle 2px   at 82%  93%, rgba(190,150,255,0.48) 0%, transparent 80%),
        /* mid-low band */
        radial-gradient(circle 1px   at 28%  68%, rgba(160,120,255,0.36) 0%, transparent 80%),
        radial-gradient(circle 2px   at 71%  74%, rgba(180,140,255,0.40) 0%, transparent 80%),
        radial-gradient(circle 1.5px at 44%  60%, rgba(140,100,255,0.32) 0%, transparent 80%),
        /* mid band */
        radial-gradient(circle 1px   at  8%  42%, rgba(150,110,255,0.27) 0%, transparent 80%),
        radial-gradient(circle 2px   at 55%  48%, rgba(200,160,255,0.34) 0%, transparent 80%),
        radial-gradient(circle 1.5px at 90%  36%, rgba(140,100,255,0.28) 0%, transparent 80%),
        /* near-top band (more faded = "older" particles) */
        radial-gradient(circle 1px   at 33%  18%, rgba(160,120,255,0.20) 0%, transparent 80%),
        radial-gradient(circle 2px   at 76%  10%, rgba(180,140,255,0.22) 0%, transparent 80%),
        radial-gradient(circle 1px   at 50%  26%, rgba(150,110,255,0.18) 0%, transparent 80%);
    background-size: 100% 180px;
    background-repeat: repeat-y;
    background-position: 0 0;
    animation: panelParticles1 16s linear infinite;
}

/* ── Particle layer 2 — slightly brighter sparks, 10s faster ── */
.settings-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background-image:
        /* near-bottom */
        radial-gradient(circle 2px   at 22%  92%, rgba(210,175,255,0.48) 0%, transparent 75%),
        radial-gradient(circle 1px   at 66%  88%, rgba(190,155,255,0.40) 0%, transparent 75%),
        radial-gradient(circle 1.5px at  5%  80%, rgba(220,185,255,0.44) 0%, transparent 75%),
        /* mid-low */
        radial-gradient(circle 1px   at 40%  62%, rgba(200,165,255,0.34) 0%, transparent 75%),
        radial-gradient(circle 2.5px at 85%  55%, rgba(230,195,255,0.38) 0%, transparent 75%),
        /* mid */
        radial-gradient(circle 1px   at 60%  38%, rgba(190,155,255,0.28) 0%, transparent 75%),
        radial-gradient(circle 2px   at 18%  30%, rgba(210,175,255,0.30) 0%, transparent 75%),
        /* near-top */
        radial-gradient(circle 1.5px at 75%  14%, rgba(200,165,255,0.18) 0%, transparent 75%),
        radial-gradient(circle 1px   at 48%   6%, rgba(180,145,255,0.15) 0%, transparent 75%);
    background-size: 100% 130px;
    background-repeat: repeat-y;
    background-position: 0 0;
    animation: panelParticles2 10s linear infinite;
}

/* Both layers scroll upward by exactly one tile height → seamless loop */
@keyframes panelParticles1 {
    from { background-position: 0 0;      }
    to   { background-position: 0 -180px; }
}

@keyframes panelParticles2 {
    from { background-position: 0 0;      }
    to   { background-position: 0 -130px; }
}

/* All panel children sit above the particle layers */
.settings-panel > * {
    position: relative;
    z-index: 1;
}

/* ── premiumGlow: GPU via filter:brightness (no box-shadow paint) ── */
@keyframes premiumGlow {
    0%, 100% { filter: brightness(0.88); }
    50%       { filter: brightness(1.12); }
}

/* ============================================
   💬 FS-QUOTE — GLASSMORPHISM + AURA ANIMADA (Anti-Lag)
   ============================================ */

/* ── Base card: casi transparente + blur ── */
.fs-quote {
    background: rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(8px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 14px !important;
    box-shadow: none !important;         /* aura delegada al ::before */
    overflow: visible !important;        /* el ::before puede sobresalir */
    /* Posición anclada abajo — igual que el original de boxing-timer.css */
    position: absolute !important;
    bottom: 120px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 600px !important;
    z-index: 10 !important;
}

/* ── Aura pseudo-element: ESTÁTICA, solo se anima su opacity ── */
.fs-quote::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    /* Aura por defecto (neutral / idle) */
    box-shadow:
        0 0 18px 4px rgba(255, 255, 255, 0.12),
        0 0 40px 10px rgba(255, 255, 255, 0.06);
    pointer-events: none;
    z-index: -1;
    will-change: opacity;
    transform: translateZ(0);
    animation: quoteAuraPulse 3s ease-in-out infinite;
}

/* ── Colores de aura por estado ── */
body.preparing .fs-quote::before {
    box-shadow:
        0 0 20px 5px rgba(0, 255, 80, 0.28),
        0 0 50px 15px rgba(0, 200, 60, 0.12);
}

body.fighting .fs-quote::before {
    box-shadow:
        0 0 20px 5px rgba(255, 60, 30, 0.32),
        0 0 50px 15px rgba(220, 40, 0, 0.14);
}

body.resting .fs-quote::before {
    box-shadow:
        0 0 20px 5px rgba(60, 140, 255, 0.28),
        0 0 50px 15px rgba(30, 100, 220, 0.12);
}

/* ── Keyframes GPU-only: solo opacity ── */
@keyframes quoteAuraPulse {
    0%,  100% { opacity: 0.40; }
    50%        { opacity: 1.00; }
}

/* ── Contenido encima del aura ── */
.fs-quote .quote-text,
.fs-quote .quote-author {
    position: relative;
    z-index: 1;
}

/* ── Ocultar frase en landscape / pantalla baja — el timer manda ── */
/* Regla de máxima prioridad: selectores específicos + doble kill */
@media (orientation: landscape) {
    body .fullscreen-timer .fs-quote,
    body.preparing .fullscreen-timer .fs-quote,
    body.fighting  .fullscreen-timer .fs-quote,
    body.resting   .fullscreen-timer .fs-quote,
    body.ali-theme .fullscreen-timer .fs-quote {
        display: none !important;
        visibility: hidden !important;
    }
}

@media (max-height: 550px) {
    body .fullscreen-timer .fs-quote,
    body.preparing .fullscreen-timer .fs-quote,
    body.fighting  .fullscreen-timer .fs-quote,
    body.resting   .fullscreen-timer .fs-quote,
    body.ali-theme .fullscreen-timer .fs-quote {
        display: none !important;
        visibility: hidden !important;
    }
}

/* ============================================
   ⚡ PREPARING — NIVEL ÉPICO (igual que fighting)
   Sobreescribe preparing-fix.css (carga después)
   ============================================ */

/* ── Fondo base: negro verde táctico ── */
body.preparing .fullscreen-timer {
    background-color: #001a00 !important;
    overflow: hidden !important;
}

/* ── Radar verde giratorio (espejo del conic rojo de fighting) ── */
body.preparing .fullscreen-timer::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 200vmax !important;
    height: 200vmax !important;
    background: conic-gradient(
        from 0deg,
        #00ff44, #003300, #00cc33, #001a00,
        #00ff44, #003300, #00cc33, #001a00, #00ff44
    ) !important;
    opacity: 0.12 !important;
    animation: prepRadar 25s linear infinite !important;
    z-index: 1 !important;
    pointer-events: none !important;
    border-radius: 0 !important;
}

@keyframes prepRadar {
    0%   { transform: translate(-50%, -50%) rotate(0deg);   }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Pulso radial central verde ── */
body.preparing .fullscreen-timer::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 80vw !important;
    height: 80vw !important;
    background: radial-gradient(circle, rgba(0, 255, 80, 0.35) 0%, transparent 70%) !important;
    animation: prepCenterPulse 1.5s ease-in-out infinite !important;
    z-index: 2 !important;
    pointer-events: none !important;
    border-radius: 50% !important;
}

@keyframes prepCenterPulse {
    0%,  100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.35; }
    50%        { transform: translate(-50%, -50%) scale(1.4); opacity: 0.65; }
}

/* ── PREPARANDO texto — resplandor verde neón (texto SIEMPRE sólido) ── */
body.preparing .fs-status {
    position: relative !important;
    z-index: 100 !important;
    font-size: 10vw !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    background: none !important;
    -webkit-text-fill-color: white !important;
    text-shadow:
        0 0 18px rgba(0, 255, 80, 0.70),
        0 0 45px rgba(0, 200, 50, 0.35) !important;
    animation: prepStatusGlowPulse 2s ease-in-out infinite !important;
}

@keyframes prepStatusGlowPulse {
    0%, 100% { opacity: 0.82; }
    50%       { opacity: 1.00; }
}

/* ── Números del contador — texto SIEMPRE sólido ── */
body.preparing .fs-time {
    position: relative !important;
    z-index: 100 !important;
    font-size: clamp(80px, 15vh, 120px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: #FFFFFF !important;
    font-family: 'Courier New', monospace !important;
    background: none !important;
    -webkit-text-fill-color: white !important;
    opacity: 1 !important;              /* FIJO — jamás parpadea */
    text-shadow:
        0 0 24px rgba(0, 255, 80, 0.70),
        0 0 60px rgba(0, 200, 50, 0.35) !important;
    animation: prepTimerGlowPulse 2s ease-in-out infinite !important;
}

@keyframes prepTimerGlowPulse {
    0%, 100% { opacity: 0.80; }
    50%       { opacity: 1.00; }
}

/* ── Ali Theme — colores dorados, texto SIEMPRE sólido ── */
body.preparing.ali-theme .fs-status {
    opacity: 1 !important;
    animation: prepStatusGlowAli 2s ease-in-out infinite !important;
}

@keyframes prepStatusGlowAliPulse {
    0%, 100% { opacity: 0.82; }
    50%       { opacity: 1.00; }
}
body.preparing.ali-theme .fs-status {
    text-shadow:
        0 0 18px rgba(255, 215, 0, 0.70),
        0 0 45px rgba(220, 170, 0, 0.35) !important;
    animation: prepStatusGlowAliPulse 2s ease-in-out infinite !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    body.preparing .fs-status { font-size: 9vw !important; }
    body.preparing .fs-time   { font-size: clamp(80px, 15vh, 120px) !important; }
}
@media (max-width: 480px) {
    body.preparing .fs-status { font-size: 8vw !important; }
    body.preparing .fs-time   { font-size: clamp(80px, 15vh, 120px) !important; }
}

/* ============================================
   🔥 FIGHTING — ESCALADA PROGRESIVA CON CSS VAR
   ============================================ */

/* Variable por defecto (JS la sobreescribe en cada fase) */
body.fighting {
    --pulse-speed: 3s;
}

/* ── Vignette usa la variable — se acelera con el JS ── */
body.fighting::after {
    animation: fightGlow var(--pulse-speed) ease-in-out infinite !important;
}

/* ── Timer fs-time: glow que respira al ritmo de la pelea ── */
body.fighting .fs-time {
    text-shadow:
        0 0 30px rgba(255, 69, 0, 0.85),
        0 0 70px rgba(255, 50, 0, 0.50) !important;
    animation: fightTimePulse var(--pulse-speed) ease-in-out infinite !important;
}

@keyframes fightTimePulse {
    0%, 100% { opacity: 0.80; }
    50%       { opacity: 1.00; }
}

/* ── WARNING-ZONE (últimos 10s): INFIERNO TOTAL ── */

/* Viñeta extrema: el rojo devora la pantalla */
body.fighting.warning-zone::after {
    background: radial-gradient(
        ellipse at center,
        transparent 15%,
        rgba(255,   0, 0, 0.25) 40%,
        rgba(200,   0, 0, 0.55) 65%,
        rgba(120,   0, 0, 0.85) 100%
    ) !important;
    /* se acelera al doble de lo que marque --pulse-speed */
    animation: warningInferno var(--pulse-speed) ease-in-out infinite !important;
}

@keyframes warningInferno {
    0%, 100% { opacity: 0.70; }
    50%       { opacity: 1.00; }
}

/* Temblor de adrenalina sobre el texto del timer */
body.fighting.warning-zone .fs-time {
    animation:
        fightTimePulse var(--pulse-speed) ease-in-out infinite,
        fightShake 0.12s linear infinite !important;
}

/* Temblor leve también sobre el status */
body.fighting.warning-zone .fs-status {
    animation:
        warningTextPulse 0.4s ease-in-out infinite,
        fightShake 0.15s linear infinite !important;
}

@keyframes fightShake {
    0%   { transform: translateZ(0) translate(0,    0);    }
    20%  { transform: translateZ(0) translate(-2px,  1px); }
    40%  { transform: translateZ(0) translate( 2px, -1px); }
    60%  { transform: translateZ(0) translate(-1px,  2px); }
    80%  { transform: translateZ(0) translate( 1px, -2px); }
    100% { transform: translateZ(0) translate(0,    0);    }
}

/* Reducir shake en prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    body.fighting.warning-zone .fs-time,
    body.fighting.warning-zone .fs-status {
        animation: none !important;
    }
}

/* ============================================
   🌤️ RESTING — PARALLAX PREMIUM
   ============================================ */

/* ── Contenedores de efectos: detrás del timer ── */
body.resting .clouds-container,
body.resting .birds-container,
body.resting .sparkles-container,
body.resting .wind-lines {
    z-index: 0 !important;
    pointer-events: none !important;
}

/* ── Nubes: efecto parallax por capas de profundidad ── */
/* Capa lejana (muy tenue, muy borrosa, lentísima) */
body.resting .cloud:nth-child(1) {
    opacity: 0.18 !important;
    filter: blur(3px) !important;
    animation-duration: 80s !important;
}
body.resting .cloud:nth-child(2) {
    opacity: 0.22 !important;
    filter: blur(2px) !important;
    animation-duration: 65s !important;
}
/* Capa media */
body.resting .cloud:nth-child(3) {
    opacity: 0.30 !important;
    filter: blur(1px) !important;
    animation-duration: 55s !important;
}
body.resting .cloud:nth-child(4) {
    opacity: 0.28 !important;
    filter: blur(1.5px) !important;
    animation-duration: 70s !important;
}
/* Capa cercana (más nítidas, un poco más visibles) */
body.resting .cloud:nth-child(5) {
    opacity: 0.38 !important;
    filter: blur(0.5px) !important;
    animation-duration: 45s !important;
}
body.resting .cloud:nth-child(6) {
    opacity: 0.32 !important;
    filter: none !important;
    animation-duration: 50s !important;
}

/* Movimiento de nube: deslizamiento suavísimo (solo translateX) */
@keyframes cloudFloat {
    0%   { transform: translateX(110vw);  }
    100% { transform: translateX(-25vw);  }
}

/* ── Pájaros: vuelo con balanceo suave sinusoidal ── */
body.resting .bird {
    opacity: 0.35 !important;
    filter: blur(0.5px) !important;
}
body.resting .bird:nth-child(1) { animation-duration: 28s !important; opacity: 0.40 !important; }
body.resting .bird:nth-child(2) { animation-duration: 34s !important; opacity: 0.30 !important; filter: blur(1px) !important; }
body.resting .bird:nth-child(3) { animation-duration: 22s !important; opacity: 0.38 !important; }
body.resting .bird:nth-child(4) { animation-duration: 38s !important; opacity: 0.25 !important; filter: blur(1.5px) !important; }

/* Vuelo suave: left via translateX, balanceo con translateY */
@keyframes birdFly {
    0%   { transform: translateX(-10vw)  translateY(0px);   }
    15%  { transform: translateX(15vw)   translateY(-8px);  }
    30%  { transform: translateX(30vw)   translateY(3px);   }
    50%  { transform: translateX(55vw)   translateY(-6px);  }
    70%  { transform: translateX(75vw)   translateY(4px);   }
    85%  { transform: translateX(90vw)   translateY(-5px);  }
    100% { transform: translateX(115vw)  translateY(0px);   }
}

/* ── INHALA/EXHALA: zen, entre números y tarjeta de cita ── */
body.resting .breath-instruction {
    /* Posición: en el hueco entre el timer y la cita */
    position: fixed !important;
    top: 68% !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    text-align: center !important;

    /* Estilo zen */
    font-size: 1.1em !important;
    font-weight: 300 !important;
    letter-spacing: 10px !important;
    color: rgba(255, 255, 255, 0.70) !important;
    text-shadow: 0 0 20px rgba(100, 180, 255, 0.40) !important;
    text-transform: uppercase !important;

    /* Detrás del timer (z-index 100), encima de los efectos */
    z-index: 50 !important;
}

/* Animación sincronizada con la respiración (5s del círculo) */
@keyframes breathInstruction {
    0%          { opacity: 0;    transform: translateX(-50%) scale(0.97); }
    10%         { opacity: 0.70; transform: translateX(-50%) scale(1);    }
    40%, 60%    { opacity: 0.70; transform: translateX(-50%) scale(1);    }
    50%         { opacity: 0.50; transform: translateX(-50%) scale(0.98); }
    90%         { opacity: 0.70; transform: translateX(-50%) scale(1);    }
    100%        { opacity: 0;    transform: translateX(-50%) scale(0.97); }
}

/* ── Air icon: alineado y con brillo azul suave ── */
body.resting .air-icon {
    bottom: auto !important;
    top: calc(68% - 3.5em) !important;   /* justo encima del INHALA/EXHALA */
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 1.6em !important;
    filter: drop-shadow(0 0 8px rgba(100, 200, 255, 0.70)) !important;
    z-index: 50 !important;
}

@keyframes airIconFloat {
    0%, 100% { transform: translateX(-50%) translateY(0);    opacity: 0.65; }
    50%       { transform: translateX(-50%) translateY(-6px); opacity: 0.90; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    body.resting .breath-instruction {
        top: 66% !important;
        font-size: 0.95em !important;
        letter-spacing: 7px !important;
    }
    body.resting .air-icon {
        top: calc(66% - 3em) !important;
    }
}

@media (max-width: 480px) {
    body.resting .breath-instruction {
        top: 64% !important;
        font-size: 0.85em !important;
        letter-spacing: 5px !important;
    }
    body.resting .cloud:nth-child(n+5) { display: none !important; }
    body.resting .bird:nth-child(n+3)  { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    body.resting .cloud,
    body.resting .bird,
    body.resting .air-icon,
    body.resting .breath-instruction {
        animation: none !important;
    }
}

/* ============================================
   🎛️ FLOAT BUTTONS — PAUSAR / REINICIAR PREMIUM
   ============================================ */

/* ── Base compartida: pill shape, transición suave ── */
.float-btn {
    border-radius: 50px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Borde superior cristal (shimmer de relieve) */
.float-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50px 50px 0 0;
    pointer-events: none;
}

/* ── PAUSAR / CONTINUAR — dorado con volumen ── */
.float-btn.pause {
    background: linear-gradient(
        160deg,
        #ffe566 0%,
        #ffd93d 35%,
        #f0b429 70%,
        #d49a10 100%
    ) !important;
    color: #1a1200 !important;
    box-shadow:
        0 6px 20px rgba(240, 180, 40, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

.float-btn.pause:hover {
    transform: translateY(-3px) !important;
    box-shadow:
        0 10px 28px rgba(240, 180, 40, 0.70),
        0 4px 10px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

.float-btn.pause:active {
    transform: scale(0.95) translateY(1px) !important;
    box-shadow:
        0 3px 10px rgba(240, 180, 40, 0.45),
        0 1px 4px rgba(0, 0, 0, 0.20) !important;
}

/* ── REINICIAR — rojo coral con volumen ── */
.float-btn.reset {
    background: linear-gradient(
        160deg,
        #ff7070 0%,
        #ff4757 35%,
        #e63040 70%,
        #c01828 100%
    ) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.30) !important;
    box-shadow:
        0 6px 20px rgba(220, 40, 50, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

.float-btn.reset:hover {
    transform: translateY(-3px) !important;
    box-shadow:
        0 10px 28px rgba(220, 40, 50, 0.70),
        0 4px 10px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

.float-btn.reset:active {
    transform: scale(0.95) translateY(1px) !important;
    box-shadow:
        0 3px 10px rgba(220, 40, 50, 0.45),
        0 1px 4px rgba(0, 0, 0, 0.20) !important;
}

/* ============================================
   🚀 MAIN BUTTONS — EMPEZAR / AJUSTES PREMIUM
   ============================================ */

/* ── Base: pill shape, transición unificada ── */
.btn-start,
.btn-settings {
    border-radius: 50px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Shimmer de relieve: línea cristal en el borde superior */
.btn-start::before,
.btn-settings::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.50);
    border-radius: 50px 50px 0 0;
    pointer-events: none;
}

/* ── EMPEZAR: turquesa → esmeralda intenso ── */
.btn-start {
    background: linear-gradient(
        160deg,
        #00e8d8 0%,
        #00c2b8 25%,
        #00a8e8 60%,
        #0078d4 100%
    ) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 60, 120, 0.35) !important;
    box-shadow:
        0 6px 22px rgba(0, 180, 220, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-start:hover {
    transform: translateY(-3px) !important;
    box-shadow:
        0 10px 30px rgba(0, 180, 220, 0.70),
        0 4px 10px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-start:active {
    transform: scale(0.97) translateY(1px) !important;
    box-shadow:
        0 3px 12px rgba(0, 180, 220, 0.45),
        0 1px 4px rgba(0, 0, 0, 0.18) !important;
}

/* ============================================
   🃏 TIMER-CARD IDLE — REORDEN + LIMPIEZA
   ============================================ */

.timer-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 28px 24px !important;
    overflow: hidden !important;
}

/* ── Aura turquesa central que respira ── */
.timer-card::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70%; height: 50%;
    background: radial-gradient(ellipse at center,
        rgba(0, 210, 200, 0.18) 0%,
        rgba(0, 180, 220, 0.08) 50%,
        transparent 75%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: opacity;
    animation: cardAuraPulse 3s ease-in-out infinite;
}

@keyframes cardAuraPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1);    }
    50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

/* ── Shimmer diagonal que cruza cada 4s ── */
.timer-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -75%;
    width: 50%; height: 200%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
    animation: cardShimmer 5s ease-in-out infinite;
}

@keyframes cardShimmer {
    0%        { left: -75%; }
    40%, 100% { left: 125%; }
}

/* Contenido encima de los efectos */
.timer-card > * {
    position: relative;
    z-index: 1;
}

/* Ocultar barra de progreso */
.progress-wrap,
.progress-fill {
    display: none !important;
}

/* 1º — STATUS ("LISTO") */
.status-display {
    order: 1 !important;
    margin: 0 0 8px 0 !important;
}

/* 2º — TIEMPO */
.time-display {
    order: 2 !important;
    margin: 4px 0 !important;
}

/* 3º — ROUND INFO */
.round-info {
    order: 3 !important;
    font-size: 1.3em !important;
    font-weight: 300 !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    color: rgba(255, 255, 255, 0.82) !important;
    letter-spacing: 4px !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25) !important;
    margin: 15px 0 0 0 !important;
}

/* ── AJUSTES: blanco/gris sólido premium ── */
.btn-settings {
    background: linear-gradient(
        160deg,
        #ffffff 0%,
        #f5f5f5 40%,
        #e8e8e8 100%
    ) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.90) !important;
    color: #333333 !important;
    text-shadow: none !important;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.18),
        0 2px 6px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.btn-settings:hover {
    transform: translateY(-3px) !important;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.22),
        0 4px 10px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.btn-settings:active {
    transform: scale(0.97) translateY(1px) !important;
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.16),
        0 1px 4px rgba(0, 0, 0, 0.12) !important;
}



/* ═══════════════════════════════════════════════════════════
   🏆 HEAT-5 PREMIUM — Campeón absoluto
   Shimmer dorado suave + escala sutil + glow de aureola
   Sin glitch — este nivel merece elegancia, no caos
   ═══════════════════════════════════════════════════════════ */

/* Oro que viaja lento de izquierda a derecha */
@keyframes heat5Shimmer {
    0%   { background-position: -300% center; }
    100% { background-position:  300% center; }
}
/* Latido de Oro — doble pulso via opacity (GPU-safe, sin repaint) */
@keyframes heat5Heartbeat {
    0%   { opacity: 0; }
    7%   { opacity: 0.55; }
    14%  { opacity: 0.08; }
    20%  { opacity: 0.38; }
    28%  { opacity: 0; }
    100% { opacity: 0; }
}
/* Destello diagonal rojo fuego — cruza de izquierda a derecha */
@keyframes heat5FireSweep {
    0%   { left: -90%; opacity: 0; }
    8%   { opacity: 1; }
    42%  { opacity: 1; }
    55%  { left: 130%; opacity: 0; }
    100% { left: 130%; opacity: 0; }
}

.logo-text.heat-5 {
    background: linear-gradient(
        105deg,
        #5c420e  0%,
        #b8801a 12%,
        #ffd700 26%,
        #fff5a0 40%,
        #ffffff 50%,
        #fff5a0 60%,
        #ffd700 74%,
        #b8801a 88%,
        #5c420e 100%
    ) !important;
    background-size: 300% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    overflow: hidden !important;
    animation: heat5Shimmer 7s linear infinite !important;
    transition: none !important;
}

/* Latido — overlay blanco que pulsa opacity (compositor-only) */
.logo-text.heat-5::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(255, 240, 180, 1) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    mix-blend-mode: overlay !important;
    animation: heat5Heartbeat 4s ease-in-out infinite !important;
    display: block !important;
}

/* Destello rojo fuego diagonal — repurposea ::before (glitch off en heat-5) */
.logo-text.heat-5::before {
    content: '' !important;
    position: absolute !important;
    top: -10% !important;
    left: -90% !important;
    right: unset !important;
    bottom: unset !important;
    width: 40% !important;
    height: 120% !important;
    background: linear-gradient(
        115deg,
        transparent            0%,
        rgba(255,60,0,0.00)   20%,
        rgba(255,100,0,0.55)  45%,
        rgba(255,200,50,0.35) 50%,
        rgba(255,100,0,0.55)  55%,
        rgba(255,60,0,0.00)   80%,
        transparent           100%
    ) !important;
    opacity: 0 !important;
    -webkit-text-fill-color: unset !important;
    color: unset !important;
    mix-blend-mode: screen !important;
    pointer-events: none !important;
    animation: heat5FireSweep 5s ease-in-out infinite !important;
}
.logo-text.heat-5::after {
    display: none !important;
}

.logo.heat-5 {
    background: rgba(55, 30, 0, 0.28) !important;
    border: 1px solid rgba(246,211,101,0.70) !important;
    box-shadow:
        0 0  18px rgba(246,211,101,0.55),
        0 0  50px rgba(246,211,101,0.35),
        0 0 100px rgba(200,120,0,0.40),
        0 0 180px rgba(180,90,0,0.20),
        inset 0 1px 0 rgba(255,255,200,0.22) !important;
    transition: none !important;
}

/* Sin glitch en el nivel máximo */
.logo-text.heat-5.glitching::before,
.logo-text.heat-5.glitching::after {
    display: none !important;
}
.logo-text.heat-5.glitching {
    animation: heat5Shimmer 7s linear infinite !important;
}

/* ═══════════════════════════════════════════════════════════
   🥊 BOXING TIMER TITLE — Glitch cibernético
   El heat level mínimo es 1 (siempre activo), así que el efecto
   se integra directamente encima de cualquier heat level.
   ═══════════════════════════════════════════════════════════ */

/* Contexto de posición para los canales de glitch */
.logo-text {
    position: relative;
    display: inline-block;
}

/* Canales ocultos por defecto */
.logo-text::before,
.logo-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    font: inherit;
    letter-spacing: inherit;
    opacity: 0;
    pointer-events: none;
}

.logo-text::before {
    -webkit-text-fill-color: #ff2244;
    color: #ff2244;
}
.logo-text::after {
    -webkit-text-fill-color: #00d4ff;
    color: #00d4ff;
}

/* Glitch activo — controlado por JS añadiendo clase .glitching */
@keyframes bt-glitchR {
    0%   { clip-path: inset(10% 0 75% 0); opacity: .35; transform: translateX(-2px); }
    40%  { clip-path: inset(50% 0 35% 0); opacity: .25; transform: translateX( 2px); }
    70%  { clip-path: inset(70% 0 12% 0); opacity: .30; transform: translateX(-1px); }
    100% { clip-path: inset(25% 0 58% 0); opacity: .20; transform: translateX( 1px); }
}
@keyframes bt-glitchB {
    0%   { clip-path: inset(58% 0 25% 0); opacity: .30; transform: translateX( 2px); }
    40%  { clip-path: inset(20% 0 60% 0); opacity: .22; transform: translateX(-2px); }
    70%  { clip-path: inset(75% 0  8% 0); opacity: .28; transform: translateX( 1px); }
    100% { clip-path: inset(32% 0 48% 0); opacity: .20; transform: translateX(-1px); }
}
@keyframes bt-glitchSkew {
    0%   { transform: skewX(-1deg) translateX( 1px); }
    50%  { transform: skewX( 1deg) translateX(-1px); }
    100% { transform: skewX(-0.5deg) translateX(0.5px); }
}

.logo-text.glitching::before {
    opacity: 1;
    animation: bt-glitchR 0.18s ease-in-out infinite;
}
.logo-text.glitching::after {
    opacity: 1;
    animation: bt-glitchB 0.18s ease-in-out infinite;
}
.logo-text.glitching {
    animation: bt-glitchSkew 0.18s ease-in-out infinite !important;
}

/* ═══════════════════════════════════════════════════════════
   ⚙️ SETTINGS BUTTON — Giro Mecánico
   El engranaje da un giro corto y seco cada 5 segundos.
   ═══════════════════════════════════════════════════════════ */
@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.gear-icon {
    display: inline-block;
    animation: gearSpin 12s linear infinite;
    transform-origin: center;
}

/* ═══════════════════════════════════════════════════════════
   🥊 START BUTTON — Animación del guante
   Activa solo una clase a la vez: glove-punch / glove-pulse / glove-guard
   ═══════════════════════════════════════════════════════════ */

.glove-icon {
    display: inline-block;
}


/* ═══════════════════════════════════════════════════════════════
   DARK NEON GLASSMORPHISM — Profile & Stats Modals
   ═══════════════════════════════════════════════════════════════ */

/* ── Profile modal: dark glass shell ───────────────────────────── */
#profileModal .modal-content {
    background: linear-gradient(145deg, rgba(10,12,26,0.97) 0%, rgba(16,18,36,0.99) 100%) !important;
    border: 1px solid rgba(0,212,255,0.16) !important;
    box-shadow: 0 0 0 1px rgba(0,212,255,0.05), 0 0 50px rgba(0,212,255,0.07), 0 24px 64px rgba(0,0,0,0.90) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    position: relative;
}

/* ── Título cyan + SVG icon ─────────────────────────────────────── */
.profile-modal-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    color: #00d4ff !important;
    font-size: 0.82em !important;
    font-weight: 900 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 18px rgba(0,212,255,0.40) !important;
    margin-bottom: 10px !important;
}
.modal-title-icon {
    flex-shrink: 0;
    stroke: #00d4ff;
    filter: drop-shadow(0 0 5px rgba(0,212,255,0.55));
}

/* ── Profile form: glass inset ──────────────────────────────────── */
#profileModal .profile-form {
    background: rgba(0,212,255,0.025) !important;
    border: 1px solid rgba(0,212,255,0.09) !important;
    border-radius: 12px !important;
    padding: 10px 10px 4px !important;
}

/* ── Labels ─────────────────────────────────────────────────────── */
#profileModal .form-label {
    color: rgba(0,212,255,0.65) !important;
    letter-spacing: 0.08em !important;
}

/* ── Inputs ─────────────────────────────────────────────────────── */
#profileModal .form-input {
    background: rgba(0,212,255,0.05) !important;
    border: 1px solid rgba(0,212,255,0.20) !important;
    color: #e0f7ff !important;
    border-radius: 8px !important;
}
#profileModal .form-input:focus {
    border-color: rgba(0,212,255,0.55) !important;
    box-shadow: 0 0 0 2px rgba(0,212,255,0.10) !important;
    outline: none !important;
}

/* ── Fighter tag ─────────────────────────────────────────────────── */
#profileModal .fighter-tag { color: rgba(0,212,255,0.50) !important; }

/* ── Sex toggle ─────────────────────────────────────────────────── */
#profileModal .sex-btn {
    background: rgba(0,212,255,0.04) !important;
    border: 1px solid rgba(0,212,255,0.18) !important;
    color: rgba(200,230,255,0.55) !important;
    border-radius: 6px !important;
}
#profileModal .sex-btn.active {
    background: rgba(0,212,255,0.16) !important;
    border-color: rgba(0,212,255,0.55) !important;
    color: #00d4ff !important;
    text-shadow: 0 0 8px rgba(0,212,255,0.40) !important;
}

/* ── BMI strip ───────────────────────────────────────────────────── */
#profileModal .imc-display {
    background: rgba(0,212,255,0.04) !important;
    border: 1px solid rgba(0,212,255,0.09) !important;
    border-radius: 8px !important;
}
#profileModal .imc-label { color: rgba(0,212,255,0.55) !important; }
#profileModal .imc-value { color: #00d4ff !important; text-shadow: 0 0 10px rgba(0,212,255,0.45) !important; }

/* ── Profile divider ─────────────────────────────────────────────── */
#profileModal .profile-divider::before,
#profileModal .profile-divider::after { background: rgba(0,212,255,0.12) !important; }
#profileModal .profile-divider-label  { color: rgba(0,212,255,0.40) !important; }

/* ── Modal footer layout ─────────────────────────────────────────── */
#profileModal .modal-footer {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}
#profileModal .modal-footer #saveProfile { flex: 1 !important; min-width: 0 !important; }

/* ── Save button: cyan neon ──────────────────────────────────────── */
#saveProfile {
    background: linear-gradient(135deg, rgba(0,140,190,0.18) 0%, rgba(0,212,255,0.10) 100%) !important;
    border: 1px solid rgba(0,212,255,0.42) !important;
    color: #00d4ff !important;
    box-shadow: 0 0 18px rgba(0,212,255,0.14), inset 0 0 10px rgba(0,212,255,0.04) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-weight: 800 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
    font-size: 0.76em !important;
    border-radius: 10px !important;
}
#saveProfile:hover {
    background: linear-gradient(135deg, rgba(0,170,220,0.28) 0%, rgba(0,212,255,0.18) 100%) !important;
    box-shadow: 0 0 28px rgba(0,212,255,0.28) !important;
}

/* ── Elegant X close button ──────────────────────────────────────── */
.btn-close-x {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.45) !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transition: border-color 0.20s, background 0.20s, color 0.20s !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}
.btn-close-x:hover {
    background: rgba(200,30,30,0.18) !important;
    border-color: rgba(220,38,38,0.60) !important;
    color: #ff4d4d !important;
}
.btn-close-x svg { pointer-events: none; }

/* ── Disconnect button ───────────────────────────────────────────── */
#profileModal #disconnectGoogleBtn {
    background: transparent !important;
    border: 1px solid rgba(255,95,50,0.22) !important;
    color: rgba(255,110,65,0.75) !important;
    font-size: 0.68em !important;
    border-radius: 8px !important;
}
#profileModal #disconnectGoogleBtn:hover {
    border-color: rgba(255,95,50,0.55) !important;
    background: rgba(255,95,50,0.09) !important;
    color: #ff7a50 !important;
}

/* ── Stats: header con X alineado a la derecha ───────────────────── */
.sme-header--with-close { justify-content: space-between !important; padding: 0 2px !important; }

/* ── Stats: Rank en GOLD ─────────────────────────────────────────── */
.sme-belt-card .league-rank-name {
    color: #FFD700 !important;
    text-shadow: 0 0 14px rgba(255,215,0,0.60), 0 0 30px rgba(255,215,0,0.20) !important;
}

/* ── Stats: footer centrado ──────────────────────────────────────── */
#statsModal .modal-footer { justify-content: center !important; }

/* ── Stats energy: SVG alineado ──────────────────────────────────── */
.sme-energy-icon { display: flex; align-items: center; justify-content: center; }
.sme-energy-icon svg { display: block; }

/* ── Sex buttons: flex row (M y F en la misma línea) ──────────────── */
#profileModal .sex-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    line-height: 1 !important;
}

/* ── Profile modal: botón cerrar prominente (texto grande) ─────────── */
.btn-close-premium {
    width: 100% !important;
    background: rgba(12,12,22,0.90) !important;
    border: 1.5px solid rgba(220,60,60,0.50) !important;
    color: rgba(255,255,255,0.82) !important;
    border-radius: 10px !important;
    padding: 11px 24px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    transition: background 0.20s, border-color 0.20s, color 0.20s !important;
}
.btn-close-premium:hover {
    background: rgba(200,30,30,0.15) !important;
    border-color: rgba(220,38,38,0.75) !important;
    color: #ff7070 !important;
}

/* ── Profile footer: stack vertical (Save arriba, Close abajo) ──────── */
#profileModal .modal-footer {
    flex-direction: column !important;
    gap: 6px !important;
}
#profileModal .modal-footer #saveProfile,
#profileModal .modal-footer .btn-close-premium {
    width: 100% !important;
    flex: none !important;
}

/* ═══════════════════════════════════════════════════════════
   STATS MODAL — PREMIUM DARK GLASSMORPHISM v3
   ═══════════════════════════════════════════════════════════ */

/* ── Fondo abismal sólido ───────────────────────────────────── */
#statsModal .modal-content {
    background: #090c15 !important;
}

/* ── Textura de circuito (grid cyan ultra-sutil, 3% opacidad) ── */
#statsModal .modal-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg,  rgba(0,255,255,0.04) 0px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(0,255,255,0.04) 0px, transparent 1px, transparent 40px);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

/* ── Tarjetas: glassmorphism exacto del spec ────────────────── */
.sme-card {
    background: rgba(0, 20, 30, 0.40) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 255, 255, 0.15) !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.05) inset !important;
}

/* ── Icono SVG encima del valor ─────────────────────────────── */
.sme-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.sme-card-icon svg {
    stroke: rgba(0, 255, 255, 0.50);
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.22));
}

/* ── Números: #00ffff más brillante ─────────────────────────── */
.sme-val,
.sme-val--gold {
    color: #00ffff !important;
    text-shadow: 0 0 10px rgba(0,255,255,0.40), 0 0 22px rgba(0,255,255,0.14) !important;
}

/* ── Belt card: borde dorado + pulso dorado ─────────────────── */
.sme-belt-card {
    background: rgba(15, 12, 2, 0.55) !important;
    border: 1px solid rgba(255, 215, 0, 0.40) !important;
    box-shadow: 0 0 20px rgba(255,215,0,0.10), inset 0 0 12px rgba(255,215,0,0.04) !important;
    animation: goldPulse 4s infinite ease-in-out !important;
}
.sme-belt-card::before {
    background: radial-gradient(ellipse, rgba(255,200,0,0.07) 0%, transparent 70%) !important;
}
@keyframes goldPulse {
    0%,100% { box-shadow: 0 0 14px rgba(255,215,0,0.08), inset 0 0 10px rgba(255,215,0,0.03); }
    50%     { box-shadow: 0 0 28px rgba(255,215,0,0.20), inset 0 0 14px rgba(255,215,0,0.08); }
}

/* ── Barra de progreso: gradiente dorado/naranja ────────────── */
.sme-belt-card .league-progress-fill {
    background: linear-gradient(90deg, #ff8c00, #ffd700) !important;
    box-shadow: 0 0 10px rgba(255,180,0,0.55) !important;
}
.sme-belt-card .league-progress-bar {
    background: rgba(255, 180, 0, 0.08) !important;
}

/* ── Botón CLOSE: neon rojo limpio ──────────────────────────── */
.btn-close-stats-neon {
    width: 100% !important;
    background: transparent !important;
    border: 1px solid rgba(255,50,50,0.50) !important;
    color: rgba(255,85,85,0.90) !important;
    border-radius: 10px !important;
    padding: 10px 24px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    min-height: 40px !important;
    cursor: pointer !important;
    transition: background 0.20s, border-color 0.20s, color 0.20s !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.btn-close-stats-neon:hover {
    background: rgba(255,30,30,0.10) !important;
    border-color: rgba(255,50,50,0.80) !important;
    color: #ff5555 !important;
}

/* ═══════════════════════════════════════════════════════════════
   AUDIO MODAL — DARK NEON GLASSMORPHISM  (Compact v2)
   Proporciones alineadas al Profile Modal
   ═══════════════════════════════════════════════════════════════ */

/* ── Shell: override del padding grueso del CSS base (24px → 14px) ── */
.audio-modal-content {
    background: linear-gradient(145deg, rgba(10,12,26,0.97) 0%, rgba(16,18,36,0.99) 100%) !important;
    border: 1px solid rgba(0,212,255,0.16) !important;
    box-shadow: 0 0 0 1px rgba(0,212,255,0.05), 0 0 50px rgba(0,212,255,0.07), 0 24px 64px rgba(0,0,0,0.90) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    padding: 14px 16px 12px !important;   /* ← era 24px 20px 20px en base */
    gap: 7px !important;                   /* ← era 12px entre paneles */
    height: fit-content !important;
    min-height: unset !important;
    width: min(340px, 92vw) !important;
    border-radius: 20px !important;
}

/* ── Header: compactar margen inferior ── */
#audioModal .audio-modal-header {
    margin-bottom: 2px !important;
}

/* ── Título: mismo tamaño que profile-modal-title (0.82em) ── */
.audio-modal-title {
    color: #00d4ff !important;
    font-size: 0.82em !important;
    font-weight: 900 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 18px rgba(0,212,255,0.40) !important;
    display: flex !important;
    align-items: center !important;
}
.audio-modal-title svg {
    stroke: #00d4ff !important;
    filter: drop-shadow(0 0 5px rgba(0,212,255,0.55)) !important;
}

/* ── Panels: padding interno compacto (era 14px 16px en base) ── */
.audio-panel {
    background: rgba(0,212,255,0.025) !important;
    border: 1px solid rgba(0,212,255,0.09) !important;
    border-radius: 10px !important;
    box-shadow: inset 0 0 8px rgba(0,212,255,0.03) !important;
    padding: 8px 10px !important;          /* ← era 14px 16px */
    gap: 6px !important;
}

/* ── Labels de sección: misma escala que form-label del perfil ── */
.audio-section-label {
    color: rgba(0,212,255,0.65) !important;
    font-size: 0.68rem !important;         /* ← era 0.78rem */
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-bottom: 4px !important;         /* ← era 10px */
}
.audio-section-label svg {
    stroke: rgba(0,212,255,0.60) !important;
    filter: drop-shadow(0 0 3px rgba(0,212,255,0.25)) !important;
    flex-shrink: 0 !important;
    width: 13px !important;
    height: 13px !important;
}

/* ── Vol row: sin gap excesivo ── */
#audioModal .audio-vol-row {
    gap: 8px !important;
}

/* ── Sliders: track fino (4px), thumb pequeño (12px) ── */
#masterVolumeSlider,
#fxVolumeSlider {
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 4px !important;
    border-radius: 99px !important;
    background: linear-gradient(to right,
        #00d4ff calc(var(--vol, 100) * 1%),
        rgba(0,212,255,0.10) calc(var(--vol, 100) * 1%)
    ) !important;
    outline: none !important;
    cursor: pointer !important;
}
#masterVolumeSlider::-webkit-slider-thumb,
#fxVolumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 13px !important;
    height: 13px !important;
    border-radius: 50% !important;
    background: #0a0f1e !important;
    border: 1.5px solid #00d4ff !important;
    box-shadow: 0 0 7px rgba(0,212,255,0.55) !important;
    cursor: pointer !important;
    transition: transform 0.12s !important;
}
#masterVolumeSlider::-webkit-slider-thumb:active,
#fxVolumeSlider::-webkit-slider-thumb:active {
    transform: scale(1.25) !important;
}
#masterVolumeSlider::-moz-range-thumb,
#fxVolumeSlider::-moz-range-thumb {
    width: 13px !important;
    height: 13px !important;
    border-radius: 50% !important;
    background: #0a0f1e !important;
    border: 1.5px solid #00d4ff !important;
    box-shadow: 0 0 7px rgba(0,212,255,0.55) !important;
    cursor: pointer !important;
}

/* ── Vol pct: texto pequeño alineado ── */
#audioModal .audio-vol-pct {
    font-size: 0.70rem !important;
    color: rgba(0,212,255,0.70) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    min-width: 30px !important;
    text-align: right !important;
}

/* ── Play button: compacto y cyan ── */
.audio-play-btn {
    padding: 7px 14px !important;          /* ← era 13px 0 */
    border-radius: 8px !important;
    background: transparent !important;
    border: 1px solid rgba(0,212,255,0.40) !important;
    color: #00d4ff !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    box-shadow: 0 0 10px rgba(0,212,255,0.10) !important;
    transition: background 0.18s, box-shadow 0.18s !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
}
.audio-play-btn:hover {
    background: rgba(0,212,255,0.07) !important;
    box-shadow: 0 0 18px rgba(0,212,255,0.22) !important;
}

/* ── Mode toggle: gap ajustado ── */
.audio-mode-toggle {
    display: flex !important;
    gap: 7px !important;
}
.audio-mode-btn {
    flex: 1 !important;
    background: rgba(0,20,30,0.55) !important;
    border: 1px solid rgba(0,212,255,0.15) !important;
    color: rgba(0,212,255,0.55) !important;
    border-radius: 8px !important;
    padding: 6px 4px !important;           /* ← era 9px 6px */
    font-size: 0.70rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.audio-mode-btn svg {
    stroke: currentColor !important;
    width: 11px !important;
    height: 11px !important;
}
.audio-mode-btn.active,
.audio-mode-btn:focus {
    background: rgba(0,212,255,0.10) !important;
    border-color: rgba(0,212,255,0.50) !important;
    color: #00d4ff !important;
    box-shadow: 0 0 10px rgba(0,212,255,0.18) !important;
}
.audio-mode-btn:hover {
    background: rgba(0,212,255,0.06) !important;
    border-color: rgba(0,212,255,0.30) !important;
    color: rgba(0,212,255,0.80) !important;
}

/* ── Close button: neon rojo compacto ── */
.audio-btn-close-neon {
    width: 100% !important;
    background: transparent !important;
    border: 1px solid rgba(255,50,50,0.45) !important;
    color: rgba(255,85,85,0.85) !important;
    border-radius: 8px !important;
    padding: 7px 16px !important;          /* ← era 10px 24px */
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    min-height: unset !important;          /* ← era 40px */
    cursor: pointer !important;
    transition: background 0.18s, border-color 0.18s, color 0.18s !important;
    box-shadow: none !important;
    margin-top: 2px !important;
}
.audio-btn-close-neon:hover {
    background: rgba(255,30,30,0.08) !important;
    border-color: rgba(255,50,50,0.75) !important;
    color: #ff5555 !important;
}

/* ═══════════════════════════════════════════════════════════════
   LEADERBOARD — Fighter Tag display
   ═══════════════════════════════════════════════════════════════ */

/* Wrapper del nombre: asegura columna flex para nombre + tag */
.lb-name {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1px !important;
}

/* Nombre del fighter (primera línea) */
.lb-name-text {
    line-height: 1.2;
}

/* Tag #XXXX debajo del nombre — gris apagado, tamaño pequeño */
.lb-fighter-tag {
    color: #8892b0 !important;
    font-size: 0.72em !important;
    font-weight: 500 !important;
    letter-spacing: 0.03em !important;
    line-height: 1.1 !important;
}

/* En la fila propia (lb-row-me) el tag toma el tono dorado apagado */
.lb-row-me .lb-fighter-tag {
    color: rgba(255,184,0,0.55) !important;
}

/* Hall of Fame: tag inline junto al nombre */
.hof-name {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    overflow: hidden !important;
}

.hof-tag {
    color: #8892b0 !important;
    font-size: 0.72em !important;
    font-weight: 500 !important;
    letter-spacing: 0.03em !important;
    flex-shrink: 0 !important;
}

/* Top 1-3 del HoF: el tag hereda el tono del nombre pero más apagado */
.hof-row-top1 .hof-tag { color: rgba(255,229,102,0.50) !important; }
.hof-row-top2 .hof-tag { color: rgba(216,216,216,0.45) !important; }
.hof-row-top3 .hof-tag { color: rgba(232,160,96,0.48) !important; }


