/* ========================================
   BAKUGO CLICKER - MODOS CSS
   Estilos para selector de modo y competencia
   ======================================== */

/* ========== SISTEMA DE PANTALLAS ========== */
.screen {
    display: none;
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.screen.active {
    display: block;
}

/* ========== PANTALLA 1: SELECTOR DE MODO (SIN SCROLL) ========== */
#mode-selector {
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Imagen de fondo para selector de modo */
#mode-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bakugo-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
}

/* Overlay oscuro sobre la imagen */
#mode-selector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(255, 119, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.mode-selector-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    padding: 20px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.main-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    color: #fff;
    text-shadow: 
        0 0 20px rgba(255, 119, 0, 1),
        0 0 40px rgba(255, 119, 0, 0.8),
        0 0 60px rgba(255, 119, 0, 0.6),
        4px 4px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 15px;
    animation: title-glow 2s ease-in-out infinite;
    text-align: center;
    font-weight: normal;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.title-explosion {
    display: inline-block;
    font-size: clamp(2rem, 6vw, 5rem);
    animation: explosion-rotate 3s ease-in-out infinite;
}

@keyframes explosion-rotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

@keyframes title-glow {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(255, 119, 0, 1),
            0 0 40px rgba(255, 119, 0, 0.8),
            0 0 60px rgba(255, 119, 0, 0.6),
            4px 4px 10px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(255, 119, 0, 1),
            0 0 60px rgba(255, 119, 0, 1),
            0 0 90px rgba(255, 119, 0, 0.8),
            4px 4px 10px rgba(0, 0, 0, 0.8);
    }
}

.subtitle {
    font-family: 'Bangers', cursive;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #f7931e;
    margin-bottom: 30px;
    text-align: center;
    font-weight: normal;
    font-style: italic;
}

.mode-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    width: 100%;
    flex-direction: row;
}

.mode-btn {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
    border: 3px solid rgba(255, 119, 0, 0.6);
    border-radius: 20px;
    padding: 30px 25px;
    flex: 1;
    max-width: 450px;
    min-width: 280px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Bangers', cursive;
    color: #fff;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 119, 0, 0.3);
    backdrop-filter: blur(10px);
}

.mode-btn:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 119, 0, 1);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 119, 0, 0.6);
}

.mode-btn:active {
    transform: translateY(-5px);
}

.mode-icon {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 15px;
}

.mode-title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    margin-bottom: 10px;
    color: #ff6b35;
    font-weight: normal;
}

.mode-desc {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-weight: normal;
    font-style: italic;
}

/* ========== HEADER DE JUEGO ========== */
.game-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 119, 0, 0.6);
    backdrop-filter: blur(10px);
}

.btn-back {
    background: rgba(255, 119, 0, 0.2);
    border: 2px solid rgba(255, 119, 0, 0.6);
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: 1rem;
    padding: 6px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: normal;
}

.btn-back:hover {
    background: rgba(255, 119, 0, 0.4);
    border-color: rgba(255, 119, 0, 1);
    transform: scale(1.05);
}

.mode-badge {
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 119, 0, 0.8);
    font-weight: normal;
}

/* ========== CONFIGURACIÓN COMPETENCIA ========== */
#competition-config {
    position: relative;
}

/* Imagen de fondo para config competencia */
#competition-config::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/bakugo-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
}

/* Overlay oscuro sobre la imagen */
#competition-config::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(255, 119, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.config-container {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
    padding: 70px 20px 20px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.config-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 119, 0, 0.8);
    font-weight: normal;
}

.config-section {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 119, 0, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.config-label {
    font-family: 'Bangers', cursive;
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    color: #ff6b35;
    margin-bottom: 15px;
    font-weight: normal;
}

.player-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 150px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 119, 0, 0.5);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-family: 'Bangers', cursive;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #fff;
    transition: all 0.3s;
    font-weight: normal;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    background: rgba(255, 119, 0, 0.3);
    border-color: rgba(255, 119, 0, 1);
    box-shadow: 0 0 20px rgba(255, 119, 0, 0.6);
}

.radio-custom:hover {
    border-color: rgba(255, 119, 0, 0.8);
}

.time-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 119, 0, 0.5);
    border-radius: 10px;
    padding: 12px;
    font-family: 'Bangers', cursive;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #fff;
    cursor: pointer;
    font-weight: normal;
}

.time-select:focus {
    outline: none;
    border-color: rgba(255, 119, 0, 1);
}

.time-select option {
    background: #1a1a1a;
    color: #fff;
}

.btn-continue {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: clamp(1.4rem, 3vw, 1.6rem);
    padding: 15px;
    border-radius: 15px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.5);
    font-weight: normal;
}

.btn-continue:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.8);
}

/* ========== NOMBRES DE JUGADORES ========== */
.player-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.player-input-group {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 119, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
}

.player-input-label {
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    color: #ff6b35;
    margin-bottom: 10px;
    font-weight: normal;
}

.player-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 119, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    color: #fff;
    font-weight: normal;
}

.player-input:focus {
    outline: none;
    border-color: rgba(255, 119, 0, 1);
    box-shadow: 0 0 15px rgba(255, 119, 0, 0.5);
}

.time-info {
    text-align: center;
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-weight: normal;
}

.btn-start-competition {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: clamp(1.4rem, 3vw, 1.6rem);
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.5);
    font-weight: normal;
}

.btn-start-competition:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.8);
}

/* ========== MODO COMPETENCIA - INFO TURNO ========== */
.turn-info {
    position: fixed;
    left: 20px;
    top: 70px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 119, 0, 0.6);
    border-radius: 12px;
    padding: 20px;
    z-index: 900;
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.current-player {
    margin-bottom: 15px;
    text-align: center;
}

.player-label {
    font-family: 'Bangers', cursive;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.player-name {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: #ff6b35;
    text-shadow: 0 0 15px rgba(255, 119, 0, 1);
    display: block;
    font-weight: normal;
}

.timer-container {
    text-align: center;
}

.timer {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 119, 0, 1);
    margin-bottom: 15px;
    font-weight: normal;
}

.turn-progress {
    margin-top: 15px;
}

.progress-label {
    font-family: 'Bangers', cursive;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: normal;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 119, 0, 0.5);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    width: 0%;
    transition: width 0.3s;
}

/* ========== PANEL DE STATS DERECHA COMPETENCIA ========== */
.stats-panel-right-comp {
    position: fixed;
    right: 20px;
    top: 70px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 900;
}

.stat-box-right-comp {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 119, 0, 0.6);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    min-width: 140px;
    backdrop-filter: blur(10px);
}

.stat-label-right-comp {
    font-size: 1rem;
    color: #ff6b35;
    margin-bottom: 8px;
    font-weight: normal;
}

.stat-value-right-comp {
    font-size: 2.2rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 119, 0, 0.8);
    font-weight: normal;
}

/* ========== BOTÓN TERMINAR TURNO ========== */
.btn-end-turn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    padding: 12px 30px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    position: relative;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.5);
    font-weight: normal;
}

.btn-end-turn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.8);
}

/* ========== RESULTADOS INTERMEDIOS Y FINALES ========== */
.results-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    overflow-y: auto;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.results-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 119, 0, 0.8);
    font-weight: normal;
}

/* ========== RESULTADO DEL JUGADOR ========== */
.player-result {
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(255, 119, 0, 0.7);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.player-result-name {
    font-family: 'Bangers', cursive;
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: #ff6b35;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 119, 0, 1);
    font-weight: normal;
}

.player-result-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.result-stat {
    background: rgba(255, 119, 0, 0.1);
    border: 2px solid rgba(255, 119, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.result-stat-label {
    font-family: 'Bangers', cursive;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    font-weight: normal;
}

.result-stat-value {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 119, 0, 0.8);
    font-weight: normal;
}

/* ========== PREVIEW DE RANKING ========== */
.ranking-preview {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 119, 0, 0.5);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.ranking-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(1.5rem, 3.5vw, 1.8rem);
    color: #ff6b35;
    text-align: center;
    margin-bottom: 20px;
    font-weight: normal;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    background: rgba(255, 119, 0, 0.1);
    border: 2px solid rgba(255, 119, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ranking-item.first {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.15);
}

.ranking-item.second {
    border-color: #C0C0C0;
    background: rgba(192, 192, 192, 0.15);
}

.ranking-item.third {
    border-color: #CD7F32;
    background: rgba(205, 127, 50, 0.15);
}

.ranking-position {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    margin-right: 15px;
}

.ranking-name {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: #fff;
    flex: 1;
    font-weight: normal;
}

.ranking-score {
    font-family: 'Bangers', cursive;
    font-size: 1.4rem;
    color: #f7931e;
    font-weight: normal;
}

/* ========== SIGUIENTE JUGADOR ========== */
.next-player-box {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 119, 0, 0.6);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 40px;
}

.next-player-label {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-weight: normal;
}

.next-player-name {
    font-family: 'Bangers', cursive;
    font-size: 2.2rem;
    color: #ff6b35;
    text-shadow: 0 0 20px rgba(255, 119, 0, 1);
    margin-bottom: 20px;
    font-weight: normal;
}

.btn-start-turn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    padding: 15px 35px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.5);
    font-weight: normal;
}

.btn-start-turn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.8);
}

/* ========== GANADOR ========== */
.winner-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 119, 0, 0.2));
    border: 4px solid #FFD700;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    animation: winner-glow 2s ease-in-out infinite;
}

@keyframes winner-glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
    }
}

.winner-label {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: normal;
}

.winner-name {
    font-family: 'Bangers', cursive;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 215, 0, 1);
    margin-bottom: 15px;
    font-weight: normal;
}

.winner-score {
    font-family: 'Bangers', cursive;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: #FFD700;
    font-weight: normal;
}

/* ========== RANKING FINAL ========== */
.final-ranking {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 119, 0, 0.5);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.final-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.final-ranking-item {
    background: rgba(255, 119, 0, 0.1);
    border: 2px solid rgba(255, 119, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 15px;
    align-items: center;
}

.final-ranking-item.first {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.15);
}

.final-ranking-item.second {
    border-color: #C0C0C0;
    background: rgba(192, 192, 192, 0.15);
}

.final-ranking-item.third {
    border-color: #CD7F32;
    background: rgba(205, 127, 50, 0.15);
}

.final-position {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    text-align: center;
}

.final-player-info {
    display: flex;
    flex-direction: column;
}

.final-player-name {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: #fff;
    font-weight: normal;
}

.final-player-details {
    font-family: 'Bangers', cursive;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: normal;
}

.final-player-score {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: #f7931e;
    font-weight: normal;
}

/* ========== ESTADÍSTICAS EXTRA ========== */
.extra-stats {
    background: rgba(255, 119, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.extra-stat {
    text-align: center;
    padding: 15px;
}

.extra-stat-label {
    font-family: 'Bangers', cursive;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    font-weight: normal;
}

.extra-stat-value {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: #ff6b35;
    font-weight: normal;
}

/* ========== BOTONES FINALES ========== */
.final-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-play-again,
.btn-menu {
    flex: 1;
    min-width: 200px;
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid rgba(255, 255, 255, 0.3);
    font-weight: normal;
}

.btn-play-again {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
}

.btn-menu {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-color: rgba(255, 119, 0, 0.5);
}

.btn-play-again:hover,
.btn-menu:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

/* ========== SCROLL SUAVE EN RESULTADOS ========== */
.results-container {
    scroll-behavior: smooth;
}

.results-container::-webkit-scrollbar {
    width: 8px;
}

.results-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.results-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 4px;
}

.results-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f7931e, #ff6b35);
}

/* ========== PANEL DE STATS MOBILE COMPETENCIA (NUEVO) ========== */
.stats-panel-mobile-comp {
    display: none;
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(255, 119, 0, 0.6);
    border-radius: 12px;
    padding: 8px 15px;
    z-index: 900;
    backdrop-filter: blur(10px);
    width: calc(100% - 20px);
    max-width: 500px;
}

.stats-grid-mobile-comp {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

.stat-item-mobile-comp {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label-mobile-comp {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
    font-weight: normal;
}

.stat-value-mobile-comp {
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 119, 0, 0.8);
    font-weight: normal;
}

/* ========== INFO TURNO MOBILE (NUEVO) ========== */
.turn-info-mobile {
    display: none;
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(255, 119, 0, 0.6);
    border-radius: 10px;
    padding: 8px 15px;
    z-index: 900;
    backdrop-filter: blur(10px);
    width: calc(100% - 20px);
    max-width: 500px;
    text-align: center;
}

.player-info-mobile {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
}

.player-name-mobile {
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    color: #ff6b35;
    font-weight: normal;
}

.timer-mobile {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 119, 0, 1);
    font-weight: normal;
}

.turn-progress-mobile {
    font-family: 'Bangers', cursive;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: normal;
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 768px) {
    /* Ajustes selector de modo mobile */
    .mode-selector-container {
        padding: 15px;
    }

    .main-title {
        font-size: 2.5rem;
        gap: 10px;
        margin-bottom: 10px;
    }

    .title-explosion {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .mode-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        gap: 15px;
    }

    .mode-btn {
        width: 100%;
        max-width: 100%;
        padding: 25px 20px;
        min-width: 100%;
    }

    .mode-icon {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .mode-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .mode-desc {
        font-size: 1rem;
    }

    /* OCULTAR INFO TURNO Y STATS LATERALES EN MOBILE */
    .turn-info {
        display: none;
    }

    .stats-panel-right-comp {
        display: none;
    }

    /* MOSTRAR VERSIONES MOBILE */
    .stats-panel-mobile-comp {
        display: block;
    }

    .turn-info-mobile {
        display: block;
    }

    /* Botón terminar turno más compacto */
    .btn-end-turn {
        font-size: 1.1rem;
        padding: 10px 25px;
        margin-top: 10px;
    }

    /* Resultados más compactos */
    .results-container {
        padding: 70px 15px 30px;
    }

    .player-result {
        padding: 20px;
    }

    .player-result-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ranking-preview {
        padding: 20px;
    }

    .next-player-box {
        padding: 20px;
    }

    .winner-box {
        padding: 30px 20px;
    }

    .final-ranking {
        padding: 20px;
    }

    .final-ranking-item {
        grid-template-columns: 50px 1fr;
        gap: 10px;
        padding: 15px;
    }

    .final-player-score {
        grid-column: 2;
        text-align: right;
    }

    .final-position {
        font-size: 2rem;
    }

    .final-player-name {
        font-size: 1.4rem;
    }

    .final-player-score {
        font-size: 1.6rem;
    }

    .final-buttons {
        flex-direction: column;
    }

    .btn-play-again,
    .btn-menu {
        width: 100%;
        min-width: 100%;
    }

    .extra-stats {
        grid-template-columns: 1fr;
    }
}

/* ========== RESPONSIVE DESKTOP ========== */
@media (min-width: 769px) {
    .mode-selector-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 40px;
    }
    
    .mode-buttons {
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .results-container {
        max-width: 650px;
    }
    
    .winner-name {
        font-size: 3.2rem;
    }
    
    .winner-score {
        font-size: 2rem;
    }
    
    .config-container {
        max-width: 480px;
    }
    
    .final-ranking-item {
        padding: 18px;
    }
    
    .final-player-name {
        font-size: 1.6rem;
    }
    
    .final-player-score {
        font-size: 1.8rem;
    }
}

/* ========== RESPONSIVE DESKTOP GRANDE ========== */
@media (min-width: 1200px) {
    .results-container,
    .config-container {
        max-width: 600px;
    }
    
    .mode-selector-container {
        max-width: 100%;
    }
}