/* main/static/css/tycoon/brainrot_tycoon_game.css */

/* ===== VARIABLES DE COLORES ACTUALIZADAS ===== */
:root {
    --color-amarillo: #F7C207;
    --color-rosa-superior: #E007A4;
    --color-rosa-inferior: #8D02B4;
    --color-azul-oscuro: #000347;
    --color-azul-medio: #000347;
    --color-verde-billete: #00FF41;

    /* Gradientes */
    --gradient-principal: linear-gradient(135deg, var(--color-rosa-superior), var(--color-rosa-inferior));
    --gradient-boton: linear-gradient(45deg, var(--color-amarillo), #FFD700);
    --gradient-fondo: linear-gradient(180deg, var(--color-azul-oscuro), var(--color-azul-medio));
    --gradient-meta: linear-gradient(90deg, var(--color-rosa-superior), var(--color-rosa-inferior));
}

/* ===== EVITAR SELECCIÓN DE TEXTO ===== */
.game-page,
.game-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* ===== PÁGINA DEL JUEGO ===== */
.game-page {
    width: 100%;
    min-height: 100vh;
    background: var(--gradient-fondo);
    background-image: url("/static/imgs/tycoon/mobile/fondo_tycoon.de6b752a8881.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-y: auto;
    position: relative;
    color: white;
    /* Asegurar que el juego ocupe toda la pantalla sin navbar */
    margin: 0;
    padding: 0;
}

/* ===== BOTÓN DE RESET AL FINAL ===== */
.reset-button-bottom {
    background: rgba(224, 7, 164, 0.9);
    border: 2px solid var(--color-amarillo);
    border-radius: 12px;
    padding: 15px 25px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.reset-button-bottom:hover {
    background: var(--color-rosa-superior);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(224, 7, 164, 0.4);
}

/* ===== POPUP DE CONFIRMACIÓN ===== */
.confirmation-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 999999;
    backdrop-filter: blur(8px);
    display: none;
}

.confirmation-popup {
    background: linear-gradient(180deg, var(--color-azul-oscuro), var(--color-azul-medio));
    border: 3px solid var(--color-amarillo);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: popupBounce 0.3s ease-out;
}

/* ===== POPUP DE BIENVENIDA ===== */
.welcome-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    backdrop-filter: blur(10px);
    display: none;
}

.welcome-popup {
    background: linear-gradient(180deg, #FF6B35, #F7931E, #FFD23F);
    border: 4px solid var(--color-amarillo);
    border-radius: 25px;
    padding: 10px 10px 30px 10px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    color: white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    animation: popupBounce 0.4s ease-out;
    position: relative;
}

.welcome-popup::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-amarillo), var(--color-rosa-superior), var(--color-amarillo));
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 2s ease-in-out infinite alternate;
}

.vaca-saturno-icon {
    width: 200px;
    height: 200px;
    background-image: url("/static/imgs/tycoon/pc/vaca_saturnita.ee77559bb2cf.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    cursor: pointer;
    transition: transform 0.2s ease;
}

.vaca-saturno-icon:hover {
    transform: scale(1.05);
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(247, 194, 7, 0.5));
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(247, 194, 7, 0.8));
        transform: scale(1.02);
    }
}

@keyframes borderGlow {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

.welcome-title-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 15px;
}

.welcome-title-container::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.2) 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    border-radius: 15px;
    z-index: 0;
    filter: blur(10px);
}

.welcome-popup h2 {
    color: var(--color-rosa-superior);
    margin: 0;
    font-size: 48px;
    font-weight: bold;
    width: 100%;
    word-wrap: break-word;
    line-height: 1.1;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-popup p {
    color: white;
    line-height: 1.6;
    margin: 0 0 5px 0;
    font-size: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.welcome-popup .welcome-goal-text {
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        0 1px 0 rgba(0, 0, 0, 0.8),
        0 -1px 0 rgba(0, 0, 0, 0.8),
        1px 0 0 rgba(0, 0, 0, 0.8),
        -1px 0 0 rgba(0, 0, 0, 0.8);
    padding: 0 5px;
}

.challenge-text {
    color: white;
    font-weight: normal;
    font-size: 16px;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        0 1px 0 rgba(0, 0, 0, 0.8),
        0 -1px 0 rgba(0, 0, 0, 0.8),
        1px 0 0 rgba(0, 0, 0, 0.8),
        -1px 0 0 rgba(0, 0, 0, 0.8);
}

.welcome-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    animation: pulseGlowFast 0.8s ease-in-out infinite alternate;
}

@keyframes pulseGlowFast {
    0% {
        filter: drop-shadow(0 0 15px rgba(247, 194, 7, 0.6)) drop-shadow(0 0 30px rgba(224, 7, 164, 0.4));
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 0 25px rgba(247, 194, 7, 1)) drop-shadow(0 0 50px rgba(224, 7, 164, 0.8));
        transform: scale(1.05);
    }
}

.accept-challenge-btn {
    background: linear-gradient(45deg, var(--color-rosa-superior), var(--color-rosa-inferior));
    border: 3px solid var(--color-amarillo);
    padding: 20px 40px;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    text-shadow: none;
    box-shadow: 0 5px 15px rgba(224, 7, 164, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    position: relative;
    color: transparent;
    margin-top: 10px;
}

.accept-challenge-btn::after {
    content: 'Acepto el desafío';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: transparent;
    text-shadow:
        -2px -2px 0 rgba(0, 0, 0, 1),
        -2px -1px 0 rgba(0, 0, 0, 1),
        -2px 0px 0 rgba(0, 0, 0, 1),
        -2px 1px 0 rgba(0, 0, 0, 1),
        -2px 2px 0 rgba(0, 0, 0, 1),
        -1px -2px 0 rgba(0, 0, 0, 1),
        -1px -1px 0 rgba(0, 0, 0, 1),
        -1px 0px 0 rgba(0, 0, 0, 1),
        -1px 1px 0 rgba(0, 0, 0, 1),
        -1px 2px 0 rgba(0, 0, 0, 1),
        0px -2px 0 rgba(0, 0, 0, 1),
        0px -1px 0 rgba(0, 0, 0, 1),
        0px 1px 0 rgba(0, 0, 0, 1),
        0px 2px 0 rgba(0, 0, 0, 1),
        1px -2px 0 rgba(0, 0, 0, 1),
        1px -1px 0 rgba(0, 0, 0, 1),
        1px 0px 0 rgba(0, 0, 0, 1),
        1px 1px 0 rgba(0, 0, 0, 1),
        1px 2px 0 rgba(0, 0, 0, 1),
        2px -2px 0 rgba(0, 0, 0, 1),
        2px -1px 0 rgba(0, 0, 0, 1),
        2px 0px 0 rgba(0, 0, 0, 1),
        2px 1px 0 rgba(0, 0, 0, 1),
        2px 2px 0 rgba(0, 0, 0, 1);
    z-index: 1;
    pointer-events: none;
}

.accept-challenge-btn::before {
    content: 'Acepto el desafío';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            #ff3366 0%,
            #ff8000 14.28%,
            #ffff00 28.56%,
            #80ff00 42.84%,
            #00ff80 57.12%,
            #00ccff 71.4%,
            #cc66ff 85.68%,
            #ff3366 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rainbowSlide 3s linear infinite;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    z-index: 2;
    pointer-events: none;
}

@keyframes rainbowSlide {
    0% {
        background-position: 0% 50%;
    }

    14.28% {
        background-position: 28.56% 50%;
    }

    28.56% {
        background-position: 57.12% 50%;
    }

    42.84% {
        background-position: 85.68% 50%;
    }

    57.12% {
        background-position: 114.24% 50%;
    }

    71.4% {
        background-position: 142.8% 50%;
    }

    85.68% {
        background-position: 171.36% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.accept-challenge-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(224, 7, 164, 0.6);
    background: linear-gradient(45deg, var(--color-rosa-inferior), var(--color-rosa-superior));
    animation: pulseGlow 1s ease-in-out infinite alternate;
}

.accept-challenge-btn:hover::before {
    background: linear-gradient(90deg,
            #ff4444 0%,
            #ffaa44 14.28%,
            #ffff44 28.56%,
            #aaffaa 42.84%,
            #44ffaa 57.12%,
            #44aaff 71.4%,
            #aa44ff 85.68%,
            #ff4444 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rainbowSlide 2s linear infinite;
}

@keyframes popupBounce {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-popup h3 {
    color: var(--color-amarillo);
    margin: 0 0 20px 0;
    font-size: 20px;
    text-shadow:
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000;
}

.confirmation-popup p {
    color: white;
    line-height: 1.5;
    margin: 0 0 25px 0;
    font-size: 14px;
    text-shadow:
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000;
}

.confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.confirm-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: 2px solid var(--color-amarillo);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.confirm-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.cancel-btn {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    border: 2px solid var(--color-amarillo);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.cancel-btn:hover {
    background: linear-gradient(45deg, #7f8c8d, #6c7b7d);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
}

/* ===== POPUP DE INICIO DE CHALLENGE NT REAL ===== */
.challenge-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    z-index: 1000001;
    backdrop-filter: blur(15px);
    display: none;
}

.challenge-popup {
    background: linear-gradient(180deg, #4CAF50, #2E7D32, #1B5E20);
    border: 5px solid var(--color-amarillo);
    border-radius: 30px;
    padding: 15px 15px 35px 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    color: white;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    animation: popupBounce 0.5s ease-out;
    position: relative;
}

.challenge-popup::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #FFD700, #4CAF50, #2196F3, #FFD700);
    border-radius: 30px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

.challenge-title-container {
    position: relative;
    width: 100%;
    margin-bottom: 25px;
    padding: 20px 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.challenge-popup h2 {
    color: var(--color-amarillo);
    margin: 0;
    font-size: 52px;
    font-weight: bold;
    width: 100%;
    word-wrap: break-word;
    line-height: 1.1;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 1;
}

.vaca-saturno-icon-large {
    width: 180px;
    height: 180px;
    background-image: url("/static/imgs/tycoon/pc/vaca_saturnita.ee77559bb2cf.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

.challenge-goal-text {
    font-size: 26px;
    font-weight: bold;
    color: white;
    margin: 20px 0;
    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.9),
        -2px 2px 0 rgba(0, 0, 0, 0.9),
        2px -2px 0 rgba(0, 0, 0, 0.9),
        -2px -2px 0 rgba(0, 0, 0, 0.9);
    line-height: 1.3;
}

.challenge-instructions {
    color: white;
    font-size: 18px;
    margin: 25px 0;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

.challenge-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    animation: pulseGlowFast 1s ease-in-out infinite alternate;
}

.challenge-start-btn {
    background: linear-gradient(45deg, #FF5722, #E91E63, #9C27B0);
    border: 4px solid var(--color-amarillo);
    padding: 25px 50px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    text-shadow: none;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.5),
        inset 0 0 25px rgba(255, 255, 255, 0.2);
    position: relative;
    color: transparent;
}

.challenge-start-btn::after {
    content: '🚀 ¡Comenzar Reto!';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    color: transparent;
    text-shadow:
        -2px -2px 0 rgba(0, 0, 0, 1),
        -2px -1px 0 rgba(0, 0, 0, 1),
        -2px 0px 0 rgba(0, 0, 0, 1),
        -2px 1px 0 rgba(0, 0, 0, 1),
        -2px 2px 0 rgba(0, 0, 0, 1),
        -1px -2px 0 rgba(0, 0, 0, 1),
        -1px -1px 0 rgba(0, 0, 0, 1),
        -1px 0px 0 rgba(0, 0, 0, 1),
        -1px 1px 0 rgba(0, 0, 0, 1),
        -1px 2px 0 rgba(0, 0, 0, 1),
        0px -2px 0 rgba(0, 0, 0, 1),
        0px -1px 0 rgba(0, 0, 0, 1),
        0px 1px 0 rgba(0, 0, 0, 1),
        0px 2px 0 rgba(0, 0, 0, 1),
        1px -2px 0 rgba(0, 0, 0, 1),
        1px -1px 0 rgba(0, 0, 0, 1),
        1px 0px 0 rgba(0, 0, 0, 1),
        1px 1px 0 rgba(0, 0, 0, 1),
        1px 2px 0 rgba(0, 0, 0, 1),
        2px -2px 0 rgba(0, 0, 0, 1),
        2px -1px 0 rgba(0, 0, 0, 1),
        2px 0px 0 rgba(0, 0, 0, 1),
        2px 1px 0 rgba(0, 0, 0, 1),
        2px 2px 0 rgba(0, 0, 0, 1);
    z-index: 1;
    pointer-events: none;
}

.challenge-start-btn::before {
    content: '🚀 ¡Comenzar Reto!';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            #ff1744 0%,
            #ff9100 20%,
            #ffeb3b 40%,
            #4caf50 60%,
            #2196f3 80%,
            #9c27b0 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rainbowSlide 2s linear infinite;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    z-index: 2;
    pointer-events: none;
}

.challenge-start-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.7);
    background: linear-gradient(45deg, #E91E63, #9C27B0, #FF5722);
}

/* ===== POPUP DE CHALLENGE COMPLETADO ===== */
.challenge-completed-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    z-index: 1000002;
    backdrop-filter: blur(20px);
    display: none;
}

.challenge-completed-popup {
    background: linear-gradient(180deg, #FFD700, #FFA000, #FF6F00);
    border: 5px solid #4CAF50;
    border-radius: 35px;
    padding: 20px 20px 40px 20px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    color: white;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.95);
    animation: victoryBounce 0.8s ease-out;
    position: relative;
}

.challenge-completed-popup::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #4CAF50, #FFD700, #FF5722, #2196F3, #4CAF50);
    border-radius: 35px;
    z-index: -1;
    animation: victoryGlow 1.5s ease-in-out infinite alternate;
}

@keyframes victoryBounce {
    0% {
        transform: scale(0.3) rotate(-10deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes victoryGlow {
    0% {
        opacity: 0.8;
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        filter: blur(0px);
    }
}

.challenge-completed-title h2 {
    color: #1B5E20;
    margin: 0 0 25px 0;
    font-size: 56px;
    font-weight: bold;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.vaca-saturno-icon-celebration {
    width: 200px;
    height: 200px;
    background-image: url("/static/imgs/tycoon/pc/vaca_saturnita.ee77559bb2cf.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 25px auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.8));
    animation: celebrationSpin 3s ease-in-out infinite;
}

@keyframes celebrationSpin {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(5deg);
    }

    50% {
        transform: scale(1.05) rotate(-5deg);
    }

    75% {
        transform: scale(1.1) rotate(3deg);
    }
}

.challenge-completed-text {
    font-size: 28px;
    font-weight: bold;
    color: #1B5E20;
    margin: 25px 0;
    text-shadow:
        2px 2px 0 rgba(255, 255, 255, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.challenge-completed-instructions {
    color: #2E7D32;
    font-size: 20px;
    margin: 25px 0;
    text-shadow:
        1px 1px 0 rgba(255, 255, 255, 0.6),
        -1px -1px 0 rgba(0, 0, 0, 0.2);
    line-height: 1.7;
    font-weight: 600;
}

.challenge-return-text {
    color: #1B5E20;
    font-size: 22px;
    margin: 30px 0 0 0;
    text-shadow:
        1px 1px 0 rgba(255, 255, 255, 0.7),
        -1px -1px 0 rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

/* ===== LAYOUT PRINCIPAL ===== */
.game-container {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    /* 4 filas: meta, stats, click area, brainrots horizontal */
    min-height: 100vh;
    padding: 15px 15px 15px 15px;
    gap: 10px;
    position: relative;
    overflow: hidden;
    /* Evitar scroll vertical */
}

/* ===== BARRA SUPERIOR DE STATS ===== */
.stats-bar {
    background: rgba(0, 3, 71, 0.5);
    border: 3px solid var(--color-amarillo);
    border-radius: 20px;
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(247, 194, 7, 0.3);
    width: 100%;
    gap: 30px;
    position: relative;
    /* Para posicionamiento correcto de las bolsas */
    grid-row: 2;
    /* Segunda fila */
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    justify-content: center;
}

.stat-item:first-child {
    justify-content: center;
}

.stat-item:last-child {
    justify-content: center;
}

.money-stat {
    font-size: 24px;
    /* Aumentado de 20px */
    color: var(--color-verde-billete);
    text-shadow:
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000;
    line-height: 1.1;
}

.money-icon {
    width: 40px;
    /* Aumentado de 35px */
    height: 40px;
    /* Aumentado de 35px */
    background-image: url("/static/imgs/tycoon/mobile/dinero_icono.a1577a0fc536.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.bps-stat {
    font-size: 18px;
    /* Aumentado de 14px */
    color: white;
    text-shadow:
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000;
    line-height: 1.1;
}

.time-icon {
    width: 40px;
    /* Aumentado de 35px */
    height: 40px;
    /* Aumentado de 35px */
    background-image: url("/static/imgs/tycoon/mobile/tiempo_icono.1ef7b2d895c3.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ===== BARRA DE META ===== */
.meta-bar {
    background: rgba(0, 3, 71, 0.5);
    border: 3px solid var(--color-amarillo);
    border-radius: 25px;
    padding: 18px 25px;
    /* Aumentado de 12px 20px */
    text-align: center;
    box-shadow: 0 6px 15px rgba(224, 7, 164, 0.4);
    position: relative;
    overflow: hidden;
    min-height: 65px;
    /* Aumentado de 50px */
    grid-row: 1;
    /* Primera fila */
}

.meta-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(224, 7, 164, 1.0), rgba(141, 2, 180, 1.0));
    width: 0%;
    transition: width 0.3s ease;
    z-index: 1;
    border-radius: 22px;
}

.meta-text {
    font-size: 24px;
    /* Aumentado de 20px para texto meta más grande */
    font-weight: bold;
    color: var(--color-amarillo);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

/* ===== ZONA CENTRAL DE CLICK ===== */
.click-zone {
    grid-row: 3;
    /* Tercera fila - ahora antes de brainrots */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    /* Permitir que se ajuste */
    flex: 1;
    /* Ocupa todo el espacio restante */
    padding: 10px;
    gap: 10px;
}

.clicker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.1s ease;
    padding: 10px;
    width: 100%;
    /* Ocupa todo el ancho disponible */
    height: 100%;
    /* Ocupa toda la altura disponible */
    justify-content: center;
}

.clicker-container:hover {
    transform: scale(1.02);
}

.clicker-container:active {
    transform: scale(0.98);
}

.clicker-area {
    width: 100%;
    /* Ocupa todo el ancho del contenedor */
    max-width: 300px;
    /* Mucho más grande que 220px */
    height: 300px;
    /* Mucho más grande que 220px */
    background-image: url("/static/imgs/tycoon/pc/tralalero.6a222ffe9572.webp");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    position: relative;
    transition: transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.click-text {
    font-size: 28px;
    /* Mucho más grande que 20px */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: var(--color-amarillo);
    text-align: center;
    line-height: 1.2;
    pointer-events: none;
    width: 100%;
    /* Ocupa todo el ancho disponible */
    max-width: 280px;
    /* Apropiado para el nuevo tamaño */
}

.money-popup {
    position: absolute;
    color: var(--color-amarillo);
    font-weight: bold;
    font-size: 22px;
    animation: popupFloat 1.2s ease-out;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ===== BOLSAS DE DINERO ANIMADAS ===== */
.money-bag-popup {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 100;
    animation: bagPopupFloat 1.5s ease-out forwards;
    /* Prevenir parpadeos y reposicionamientos */
    backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    /* Fijar posición inicial inmediatamente */
    animation-fill-mode: both;
}

.money-bag-icon {
    width: 32px;
    height: 32px;
    background-image: url("/static/imgs/tycoon/mobile/dinero_icono.a1577a0fc536.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: bagBounce 0.6s ease-out forwards;
    /* Prevenir parpadeos del icono */
    backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    animation-fill-mode: both;
}

.money-bag-text {
    color: var(--color-verde-billete);
    font-weight: bold;
    font-size: 22px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    /* Prevenir parpadeos del texto */
    backface-visibility: hidden;
    will-change: opacity;
}

/* Estilos específicos para bolsas de dinero de brainrots */
.money-bag-popup.brainrot-bag .money-bag-text {
    color: #ff4444;
    /* Color rojo para indicar gasto */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.money-bag-popup.brainrot-bag .money-bag-icon {
    filter: hue-rotate(0deg) brightness(0.9);
    /* Ajuste sutil del color */
}

/* Estilos específicos para bolsas de dinero de la barra de stats */
.money-bag-popup.stats-bag {
    z-index: 200;
    /* Más alto que otras bolsas para que esté encima */
}

.money-bag-popup.stats-bag .money-bag-text {
    color: var(--color-amarillo);
    /* Color amarillo dorado para stats */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    font-weight: bold;
}

/* Contenedor de iconos para stats-bag */
.stats-bag-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Icono de tiempo en las bolsas de stats */
.stats-time-icon {
    width: 20px;
    height: 20px;
    background-image: url("/static/imgs/tycoon/mobile/tiempo_icono.1ef7b2d895c3.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: bagBounce 0.6s ease-out forwards;
    /* Prevenir parpadeos del icono de tiempo */
    backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    animation-fill-mode: both;
}

@keyframes bagBounce {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

@keyframes textFloat {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }

    70% {
        opacity: 1;
        transform: translateY(-60px) translateX(var(--random-x, 0px)) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) translateX(var(--random-x, 0px)) scale(0.8);
    }
}

/* Animación completa del popup de bolsa - MEJORADA */
@keyframes bagPopupFloat {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }

    70% {
        opacity: 1;
        transform: translateY(-60px) translateX(var(--random-x, 0px)) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) translateX(var(--random-x, 0px)) scale(0.8);
    }
}

@keyframes popupFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-80px) scale(0.5);
    }
}

@keyframes pulseAmarillo {

    0%,
    100% {
        box-shadow: 0 0 25px rgba(247, 194, 7, 0.6);
    }

    50% {
        box-shadow: 0 0 35px rgba(247, 194, 7, 0.9);
    }
}

/* ===== PANEL DE BRAINROTS - SCROLL HORIZONTAL EN MÓVIL ===== */
.brainrots-section {
    grid-row: 4;
    /* Cuarta fila - ahora al final */
    background: linear-gradient(180deg, rgba(224, 7, 164, 0.3), rgba(141, 2, 180, 0.3));
    border: 3px solid var(--color-rosa-superior);
    border-radius: 20px;
    padding: 15px 15px 25px 15px;
    /* Más espacio abajo para la barra de scroll */
    box-shadow: 0 10px 25px rgba(141, 2, 180, 0.4);
    height: 320px;
    /* Aumentado de 280px */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.brainrots-title {
    text-align: center;
    margin: 0 0 8px 0;
    /* Reducido de 15px para menos espacio */
    color: var(--color-amarillo);
    font-size: 24px;
    /* Aumentado de 20px para título más grande */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
}

.brainrots-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100%;
    /* Ocupar toda la altura disponible */
    padding: 10px 0;
    /* Solo padding vertical */
    flex: 1;
    /* Ocultar scrollbar nativo para usar el personalizado */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

.brainrots-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari y Opera */
}

/* ===== BARRA DE SCROLL PERSONALIZADA FUNCIONAL ===== */
.brainrots-scroll-container {
    position: relative;
    height: 12px;
    background: rgba(0, 3, 71, 0.5);
    border-radius: 6px;
    border: 1px solid var(--color-amarillo);
    margin: 5px 10px 0 10px;
    cursor: pointer;
}

.brainrots-scroll-thumb {
    position: absolute;
    top: 1px;
    left: 1px;
    height: 8px;
    background: linear-gradient(90deg, var(--color-amarillo), #FFD700);
    border-radius: 4px;
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brainrots-scroll-thumb:hover {
    background: linear-gradient(90deg, #FFD700, var(--color-amarillo));
    box-shadow: 0 3px 6px rgba(247, 194, 7, 0.5);
}

.brainrots-scroll-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

/* ===== SCROLLBAR HORIZONTAL PERSONALIZADO (OCULTO) ===== */
.brainrots-grid::-webkit-scrollbar {
    display: none;
    /* Ocultar scrollbar nativo */
}

.brainrots-grid {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* ===== CARDS DE BRAINROTS - ESTILO VERTICAL EN MÓVIL ===== */
.brainrot-card {
    background: linear-gradient(180deg, rgba(224, 7, 164, 0.5), rgba(141, 2, 180, 0.5));
    border: 3px solid rgba(247, 194, 7, 0.5);
    border-radius: 15px;
    padding: 6px;
    /* Reducido de 8px para cards aún más estrechas */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 10px rgba(247, 194, 7, 0.3);
    min-width: 110px;
    /* Reducido de 130px para tarjetas mucho más estrechas */
    flex-shrink: 0;
    /* No se encojan en el flex */
    height: 100%;
    /* Ocupar toda la altura disponible del contenedor */
    display: flex;
    flex-direction: column;
    /* Layout vertical: imagen arriba, texto abajo */
    align-items: center;
    justify-content: flex-start;
    gap: 1px;
    /* Reducido de 2px para elementos aún más juntos */
}

.brainrot-card:hover {
    transform: translateY(-2px);
}

/* ===== ESTADO: NOT AFFORDABLE ===== */
.brainrot-card.not-affordable {
    background: linear-gradient(180deg, rgba(80, 80, 80, 0.4), rgba(60, 60, 60, 0.5)) !important;
    border-color: rgba(247, 194, 7, 0.4) !important;
    filter: grayscale(50%) brightness(0.6) !important;
    cursor: not-allowed !important;
    box-shadow: 0 2px 5px rgba(247, 194, 7, 0.3) !important;
}

.brainrot-card.not-affordable:hover {
    transform: none !important;
}

/* ===== ESTADO: OWNED ===== */
.brainrot-card.owned {
    background: linear-gradient(180deg, rgba(224, 7, 164, 0.5), rgba(141, 2, 180, 0.5)) !important;
    border-color: rgba(247, 194, 7, 0.8) !important;
    box-shadow: 0 6px 15px rgba(247, 194, 7, 0.4) !important;
}

/* ===== ESTADO: OWNED BUT NOT AFFORDABLE ===== */
.brainrot-card.owned-not-affordable {
    opacity: 0.6 !important;
    /* Reducir opacidad para indicar que no se puede comprar */
    background: linear-gradient(180deg, rgba(224, 7, 164, 0.3), rgba(141, 2, 180, 0.3)) !important;
    border-color: rgba(247, 194, 7, 0.5) !important;
    box-shadow: 0 4px 10px rgba(247, 194, 7, 0.2) !important;
    cursor: not-allowed !important;
}

/* ===== ESTADO: AFFORDABLE (MÁXIMA PRIORIDAD) ===== */
.brainrot-card.affordable {
    background: linear-gradient(180deg, rgba(224, 7, 164, 1.0), rgba(141, 2, 180, 1.0)) !important;
    border-color: rgba(247, 194, 7, 1.0) !important;
    box-shadow: 0 0 25px rgba(247, 194, 7, 0.6) !important;
    animation: pulseAmarillo 2s infinite !important;
    cursor: pointer !important;
}

.brainrot-card.affordable:hover {
    background: linear-gradient(180deg, rgba(224, 7, 164, 1.0), rgba(141, 2, 180, 1.0)) !important;
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 8px 30px rgba(247, 194, 7, 0.8) !important;
}

/* Asegurar que affordable siempre tenga prioridad sobre owned - MÁXIMA ESPECIFICIDAD */
.brainrots-section .brainrot-card.owned.affordable,
.brainrots-section .brainrot-card.affordable.owned,
.brainrot-card.owned.affordable.affordable {
    background: linear-gradient(180deg, rgba(224, 7, 164, 1.0), rgba(141, 2, 180, 1.0)) !important;
    border-color: rgba(247, 194, 7, 1.0) !important;
    box-shadow: 0 0 25px rgba(247, 194, 7, 0.6) !important;
    animation: pulseAmarillo 2s infinite !important;
    filter: none !important;
    cursor: pointer !important;
}

/* ===== ELEMENTOS DENTRO DE LAS CARDS - ADAPTADO PARA VERTICAL ===== */
.brainrot-image {
    width: 140px;
    /* Aumentado de 130px para mejor visibilidad */
    height: 140px;
    /* Aumentado de 130px para mejor visibilidad */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    /* No se encoja */
    max-height: 70%;
    /* Aumentado para dar más espacio a las imágenes */
}

.brainrot-info {
    width: 100%;
    /* Ocupa todo el ancho de la card */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centrar contenido */
    gap: 0px;
    /* Sin gap entre elementos */
    text-align: center;
    /* Alineación central para diseño vertical */
    flex: 0 1 auto;
    /* No crece, puede encogerse, tamaño automático según contenido */
    justify-content: flex-start;
    /* Elementos juntos al inicio, no separados */
    padding: 0;
    /* Sin padding para máximo compacto */
}

/* Imágenes específicas para cada brainrot */
.brainrot-card[data-brainrot="ballerina"] .brainrot-image {
    background-image: url("/static/imgs/tycoon/mobile/ballerina.1a5e5ebd93c3.webp");
}

.brainrot-card[data-brainrot="bombardiro"] .brainrot-image {
    background-image: url("/static/imgs/tycoon/mobile/crocodilo.ab63d13cd939.webp");
}

.brainrot-card[data-brainrot="cocofanto"] .brainrot-image {
    background-image: url("/static/imgs/tycoon/mobile/cocofanto.ff67c71fc4aa.webp");
}

.brainrot-card[data-brainrot="tralalero"] .brainrot-image {
    background-image: url("/static/imgs/tycoon/mobile/tralalero.2547da28ad49.webp");
}

.brainrot-card[data-brainrot="giraffa"] .brainrot-image {
    background-image: url("/static/imgs/tycoon/mobile/jiraffa.955d07f22ab1.webp");
}

.brainrot-card[data-brainrot="vaca"] .brainrot-image {
    background-image: url("/static/imgs/tycoon/mobile/vaca_saturnita.7f7054ec6aae.webp");
}

.brainrot-name {
    font-weight: bold;
    font-size: 13px;
    /* Reducido de 14px para cards aún más estrechas */
    margin: 0;
    /* Sin margen para texto completamente junto */
    color: var(--color-amarillo);
    line-height: 1.2;
    /* Separado un poco más para mejor legibilidad */
    text-align: center;
    word-wrap: break-word;
    /* Para que el texto se ajuste al ancho estrecho */
}

.brainrot-total {
    font-size: 14px;
    /* Reducido de 15px para cards aún más estrechas */
    color: var(--color-verde-billete);
    /* Cambiado a verde */
    font-weight: bold;
    margin: 0;
    /* Sin margen para texto completamente junto */
    line-height: 1.2;
    /* Separado un poco más para mejor legibilidad */
    text-align: center;
    text-shadow:
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000;
}

.brainrot-cost-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centrar para diseño vertical */
    gap: 3px;
    /* Reducido de 4px para cards aún más estrechas */
    margin-top: 0px;
    /* Eliminado margen para mantener elementos completamente juntos */
}

.brainrot-cost-icon {
    width: 12px;
    /* Reducido de 13px para cards aún más estrechas */
    height: 12px;
    /* Reducido de 13px para cards aún más estrechas */
    background-image: url("/static/imgs/tycoon/mobile/dinero_icono.a1577a0fc536.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.brainrot-cost {
    color: #ff4444;
    /* Cambiado a rojo */
    font-weight: bold;
    font-size: 14px;
    /* Reducido de 15px para cards aún más estrechas */
    text-align: center;
    text-shadow:
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000;
}

.brainrot-owned-count {
    position: absolute;
    top: 8px;
    /* Reducido de 10px para cards más estrechas */
    right: 8px;
    /* Reducido de 10px para cards más estrechas */
    background: var(--color-amarillo);
    color: var(--color-azul-oscuro);
    padding: 3px 8px;
    /* Reducido de 4px 10px para cards más estrechas */
    border-radius: 10px;
    /* Reducido de 12px */
    font-size: 12px;
    /* Reducido de 14px para cards más estrechas */
    font-weight: bold;
}

/* ===== PANTALLA DE VICTORIA ===== */
.win-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 3, 71, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10002;
    padding: 15px;
}

.win-content {
    text-align: center;
    background: linear-gradient(180deg, var(--color-rosa-superior), var(--color-rosa-inferior));
    padding: 30px;
    border-radius: 20px;
    color: white;
    border: 4px solid var(--color-amarillo);
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.win-content h1 {
    font-size: 36px;
    /* Aumentado significativamente de 24px */
    margin-bottom: 8px;
    color: var(--color-amarillo);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

.win-content h2 {
    font-size: 16px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    display: none;
    /* Ocultar el subtítulo */
}

.win-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Reducido de 20px para menos espacio entre tiempo y dinero */
    margin-bottom: 35px;
    /* Aumentado de 25px para empujar botones más abajo */
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    /* Aumentado de 15px */
    border-radius: 12px;
}

.stat-row {
    display: flex;
    align-items: center;
    /* Cambiar a center para centrar verticalmente iconos y texto */
    gap: 20px;
    /* Aumentado de 12px */
    justify-content: center;
    /* Centrar las filas de stats */
}

.stat-icon {
    width: 80px;
    /* Aumentado significativamente de 50px */
    height: 80px;
    /* Aumentado significativamente de 50px */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.time-icon-win {
    background-image: url("/static/imgs/tycoon/mobile/tiempo_icono.1ef7b2d895c3.webp");
}

.money-icon-win {
    background-image: url("/static/imgs/tycoon/mobile/dinero_icono.a1577a0fc536.webp");
}

.stat-label {
    font-size: 28px;
    /* Aumentado de 22px */
    font-weight: bold;
    color: white;
    flex: 1;
    text-align: center;
    /* Centrar el texto */
    margin-bottom: 2px;
    /* Reducido de 5px para menos espacio */
}

.stat-value {
    font-size: 26px;
    /* Aumentado de 20px */
    font-weight: bold;
    color: var(--color-verde-billete);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    text-align: center;
    /* Centrar el valor */
}

/* Estilo específico para el tiempo (color amarillo) */
.stat-row:first-child .stat-value {
    color: var(--color-amarillo);
}

/* Contenedor de texto a la derecha del icono */
.stat-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centrar el contenido del texto */
    gap: 2px;
}

.win-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
}

/* Contenedor para botones en paralelo */
.win-buttons-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.win-buttons-row .win-btn {
    flex: 1;
    /* Cada botón ocupa la mitad del espacio */
}

.win-btn {
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 20px;
    /* Aumentado de 16px */
    cursor: pointer;
    font-weight: normal;
    /* Cambiar a normal por defecto */
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    text-shadow:
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000;
}

.primary-btn {
    background: linear-gradient(45deg, var(--color-amarillo), #FFD700);
    color: white;
    /* Cambiar a blanco */
    border: 3px solid #FFD700;
    font-size: 28px;
    /* Aumentado de 22px para hacer el texto mucho más grande */
    box-shadow: 0 5px 15px rgba(247, 194, 7, 0.4);
    text-shadow:
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000;
    font-weight: bold;
    /* Añadir peso bold para más énfasis */
}

.primary-btn:hover {
    background: linear-gradient(45deg, #FFD700, var(--color-amarillo));
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(247, 194, 7, 0.6);
    color: white;
    /* Mantener blanco en hover */
    text-decoration: none;
}

.secondary-btn {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
    border: 2px solid var(--color-amarillo);
    font-weight: normal;
    text-shadow:
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000;
}

.secondary-btn:hover {
    background: linear-gradient(45deg, #7f8c8d, #6c7b7d);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
}

.tertiary-btn {
    background: linear-gradient(45deg, var(--color-rosa-superior), var(--color-rosa-inferior));
    color: white;
    border: 2px solid var(--color-amarillo);
    font-weight: normal;
    text-shadow:
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000;
}

.tertiary-btn:hover {
    background: linear-gradient(45deg, var(--color-rosa-inferior), var(--color-rosa-superior));
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(224, 7, 164, 0.4);
}

/* ===== CONFIGURACIÓN DE SCROLLBAR HORIZONTAL PARA MÓVILES (OCULTO) ===== */
.brainrots-grid::-webkit-scrollbar {
    display: none;
    /* Ocultar scrollbar nativo */
}

.brainrots-grid {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* ===== TABLET RESPONSIVE ===== */
@media (min-width: 768px) {
    .game-fullscreen {
        background-image: url("/static/imgs/tycoon/tablet/fondo_tycoon.7fc8ff3e5d6a.webp");
    }

    /* Restaurar layout de tablet */
    .game-container {
        display: grid;
        grid-template-columns: 1fr 350px;
        /* Ancho fijo para la columna derecha */
        grid-template-rows: auto auto 1fr;
        gap: 15px;
        padding: 30px 20px 20px 20px;
        min-height: 100vh;
        overflow: visible;
        /* Permitir scroll en tablet */
    }

    .meta-bar {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .stats-bar {
        grid-column: 2;
        grid-row: 2;
        padding: 12px 20px;
        gap: 40px;
        margin-bottom: 0;
        width: 100%;
    }

    /* Restaurar layout vertical para brainrots en tablet */
    .brainrots-section {
        grid-column: 1;
        grid-row: 2 / 4;
        display: flex;
        flex-direction: column;
        min-height: 0;
        /* Permite que tome toda la altura disponible */
        min-width: 400px;
        /* Ancho mínimo para evitar movimiento */
        height: auto;
        /* Restaurar altura automática */
        overflow-y: auto;
        /* Restaurar scroll vertical */
        padding: 20px;
        /* Restaurar padding original */
    }

    .brainrots-title {
        font-size: 26px;
        /* Aumentado de 22px */
        margin: 0 0 20px 0;
    }

    .brainrots-grid {
        flex: 1;
        /* Ocupa todo el espacio disponible */
        display: grid;
        /* Restaurar grid para tablet */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        align-content: start;
        overflow-x: visible;
        /* Quitar scroll horizontal */
        overflow-y: visible;
        /* Permitir scroll normal */
        height: auto;
        /* Altura automática */
        padding-bottom: 0;
        /* Quitar padding del scrollbar */
    }

    /* Restaurar estilo vertical para cards en tablet */
    .brainrot-card {
        padding: 15px;
        height: auto;
        /* Altura automática */
        min-width: auto;
        /* Quitar min-width */
        flex-shrink: 1;
        /* Permitir encogimiento */
        display: block;
        /* Restaurar display block */
        text-align: center;
        /* Restaurar alineación central */
    }

    .brainrot-image {
        width: 130px;
        /* Aumentado significativamente de 110px para tablets */
        height: 130px;
        /* Aumentado significativamente de 110px para tablets */
        margin: 0 auto 8px auto;
        /* Restaurar margen */
    }

    .brainrot-name {
        font-size: 15px;
        /* Restaurar tamaño tablet */
        margin: 0;
        /* Sin margen para texto compacto */
        line-height: 1.2;
        /* Separado un poco más para mejor legibilidad */
    }

    .brainrot-total {
        font-size: 17px;
        /* Restaurar tamaño tablet */
        margin: 0;
        /* Sin margen para texto compacto */
        line-height: 1.2;
        /* Separado un poco más para mejor legibilidad */
        text-shadow:
            -1px -1px 0 #000000,
            1px -1px 0 #000000,
            -1px 1px 0 #000000,
            1px 1px 0 #000000;
    }

    .brainrot-cost-container {
        gap: 4px;
        /* Restaurar gap tablet */
    }

    .brainrot-cost-icon {
        width: 18px;
        /* Restaurar tamaño tablet */
        height: 18px;
        background-image: url("/static/imgs/tycoon/tablet/dinero_icono.4f0443954e04.webp");
    }

    .brainrot-cost {
        font-size: 17px;
        /* Restaurar tamaño tablet */
        text-shadow:
            -1px -1px 0 #000000,
            1px -1px 0 #000000,
            -1px 1px 0 #000000,
            1px 1px 0 #000000;
    }

    .brainrot-owned-count {
        top: 8px;
        /* Restaurar posición tablet */
        right: 8px;
        padding: 2px 6px;
        /* Restaurar padding tablet */
        border-radius: 8px;
        font-size: 10px;
        /* Restaurar tamaño tablet */
    }

    /* Restaurar scrollbar vertical para tablet */
    .brainrots-section::-webkit-scrollbar {
        width: 8px;
    }

    .brainrots-section::-webkit-scrollbar-track {
        background: rgba(0, 3, 71, 0.3);
        border-radius: 10px;
    }

    .brainrots-section::-webkit-scrollbar-thumb {
        background: var(--color-amarillo);
        border-radius: 10px;
        border: 2px solid rgba(141, 2, 180, 0.8);
    }

    .brainrots-section::-webkit-scrollbar-thumb:hover {
        background: #FFD700;
    }

    .click-zone {
        grid-column: 2;
        grid-row: 3;
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0;
        min-height: 0;
        height: 100%;
        /* Ocupa toda la altura disponible */
        justify-content: center;
        align-items: center;
    }

    .stat-item {
        gap: 12px;
        justify-content: center;
    }

    .clicker-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 18px;
        padding: 15px;
        width: 100%;
        height: 100%;
    }

    .clicker-area {
        width: 320px;
        /* Reducido de 380px */
        height: 320px;
        /* Reducido de 380px */
        max-width: 320px;
        /* Restaurar máximo específico */
        background-image: url("/static/imgs/tycoon/pc/tralalero.6a222ffe9572.webp");
    }

    .click-text {
        font-size: 30px;
        /* Aumentado de 26px */
        max-width: 320px;
        /* Aumentado de 280px */
    }

    .money-stat {
        font-size: 28px;
        /* Aumentado de 24px */
        text-shadow:
            -1px -1px 0 #000000,
            1px -1px 0 #000000,
            -1px 1px 0 #000000,
            1px 1px 0 #000000;
    }

    .money-icon {
        width: 45px;
        /* Aumentado de 40px */
        height: 45px;
        /* Aumentado de 40px */
        background-image: url("/static/imgs/tycoon/tablet/dinero_icono.4f0443954e04.webp");
    }

    .bps-stat {
        font-size: 20px;
        /* Aumentado de 16px */
        text-shadow:
            -1px -1px 0 #000000,
            1px -1px 0 #000000,
            -1px 1px 0 #000000,
            1px 1px 0 #000000;
    }

    .time-icon {
        width: 43px;
        /* Aumentado de 38px */
        height: 43px;
        /* Aumentado de 38px */
        background-image: url("/static/imgs/tycoon/tablet/tiempo_icono.c34376d02464.webp");
    }

    .meta-text {
        font-size: 22px;
        /* Aumentado de 16px */
    }

    /* Imágenes tablet para brainrots */
    .brainrot-card[data-brainrot="ballerina"] .brainrot-image {
        background-image: url("/static/imgs/tycoon/tablet/ballerina.b3c323680e38.webp");
    }

    .brainrot-card[data-brainrot="bombardiro"] .brainrot-image {
        background-image: url("/static/imgs/tycoon/tablet/crocodilo.f0fe063264d6.webp");
    }

    .brainrot-card[data-brainrot="cocofanto"] .brainrot-image {
        background-image: url("/static/imgs/tycoon/tablet/cocofanto.cb2f62f85b89.webp");
    }

    .brainrot-card[data-brainrot="tralalero"] .brainrot-image {
        background-image: url("/static/imgs/tycoon/tablet/tralalero.c2f1caa4e1fe.webp");
    }

    .brainrot-card[data-brainrot="giraffa"] .brainrot-image {
        background-image: url("/static/imgs/tycoon/tablet/jiraffa.a84fdbb57f29.webp");
    }

    .brainrot-card[data-brainrot="vaca"] .brainrot-image {
        background-image: url("/static/imgs/tycoon/tablet/vaca_saturnita.568e49324eeb.webp");
    }

    /* Estilos para bolsas de dinero en tablet */
    .money-bag-popup {
        font-size: 20px;
        /* Tamaño más grande para tablet */
        padding: 8px 12px;
        border-radius: 16px;
    }

    .money-bag-popup::before {
        font-size: 24px;
        /* Icono más grande */
    }

    .money-bag-popup.brainrot-bag .money-bag-text {
        font-size: 20px;
        /* Tamaño específico para brainrots en tablet */
    }

    .money-bag-popup.stats-bag .money-bag-text {
        font-size: 20px;
        /* Tamaño específico para stats en tablet */
    }

    .stats-time-icon {
        width: 24px;
        /* Tamaño más grande para tablet */
        height: 24px;
        background-image: url("/static/imgs/tycoon/tablet/tiempo_icono.c34376d02464.webp");
    }
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
    .game-fullscreen {
        background-image: url("/static/imgs/tycoon/pc/fondo_tycoon.d6a375c74690.webp");
    }

    /* Restaurar layout de desktop */
    .game-container {
        display: grid;
        grid-template-columns: 1fr 420px;
        /* Ancho fijo para la columna derecha */
        grid-template-rows: auto auto 1fr;
        gap: 20px;
        padding: 40px 25px 25px 25px;
        min-height: 100vh;
        overflow: visible;
        /* Permitir scroll en desktop */
    }

    .meta-bar {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .stats-bar {
        grid-column: 2;
        grid-row: 2;
        padding: 15px 25px;
        gap: 50px;
        margin-bottom: 0;
        width: 100%;
    }

    /* Restaurar layout vertical para brainrots en desktop */
    .brainrots-section {
        grid-column: 1;
        grid-row: 2 / 4;
        display: flex;
        flex-direction: column;
        min-height: 0;
        /* Permite que tome toda la altura disponible */
        min-width: 500px;
        /* Ancho mínimo para evitar movimiento en PC */
        height: auto;
        /* Restaurar altura automática */
        overflow-y: auto;
        /* Restaurar scroll vertical */
        padding: 20px;
        /* Restaurar padding original */
    }

    .brainrots-title {
        font-size: 28px;
        /* Aumentado de 24px */
        margin: 0 0 20px 0;
    }

    .brainrots-grid {
        flex: 1;
        /* Ocupa todo el espacio disponible */
        display: grid;
        /* Restaurar grid para desktop */
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        /* Asegurar que las filas ocupen toda la altura */
        gap: 15px;
        align-content: stretch;
        /* Estirar contenido para ocupar toda la altura */
        overflow-x: visible;
        /* Quitar scroll horizontal */
        overflow-y: visible;
        /* Permitir scroll normal */
        height: auto;
        /* Altura automática */
        padding-bottom: 0;
        /* Quitar padding del scrollbar */
    }

    /* Restaurar estilo horizontal para cards en desktop */
    .brainrot-card {
        padding: 15px;
        display: flex;
        /* Layout horizontal en desktop */
        align-items: center;
        text-align: left;
        gap: 15px;
        height: 100%;
        /* Ocupa toda la altura disponible */
        min-height: 0;
        /* Permite que se ajuste al contenedor */
        min-width: auto;
        /* Quitar min-width */
        flex-shrink: 1;
        /* Permitir encogimiento */
        flex-direction: row;
        /* Horizontal en desktop */
        justify-content: flex-start;
    }

    .brainrot-image {
        width: 180px;
        /* Mucho más grande solo para PC */
        height: 180px;
        /* Mucho más grande solo para PC */
        flex-shrink: 0;
        margin: 0;
        /* Sin margen en desktop */
    }

    .brainrot-info {
        flex: 1;
    }

    .brainrot-name {
        font-size: 17px;
        /* Restaurar tamaño desktop */
        margin-bottom: 4px;
        text-align: left;
        /* Alineación izquierda en desktop */
    }

    .brainrot-total {
        font-size: 19px;
        /* Restaurar tamaño desktop */
        margin-bottom: 4px;
        text-align: left;
        /* Alineación izquierda en desktop */
        text-shadow:
            -1px -1px 0 #000000,
            1px -1px 0 #000000,
            -1px 1px 0 #000000,
            1px 1px 0 #000000;
    }

    .brainrot-cost-container {
        gap: 4px;
        /* Restaurar gap desktop */
        justify-content: flex-start;
        /* Alineación izquierda en desktop */
    }

    .brainrot-cost-icon {
        width: 20px;
        /* Restaurar tamaño desktop */
        height: 20px;
        background-image: url("/static/imgs/tycoon/pc/dinero_icono.6c91241d28f4.webp");
    }

    .brainrot-cost {
        font-size: 19px;
        /* Restaurar tamaño desktop */
        text-shadow:
            -1px -1px 0 #000000,
            1px -1px 0 #000000,
            -1px 1px 0 #000000,
            1px 1px 0 #000000;
    }

    .brainrot-owned-count {
        top: 8px;
        /* Restaurar posición desktop */
        right: 8px;
        padding: 2px 6px;
        /* Restaurar padding desktop */
        border-radius: 8px;
        font-size: 10px;
        /* Restaurar tamaño desktop */
    }

    /* Restaurar scrollbar vertical para desktop */
    .brainrots-section::-webkit-scrollbar {
        width: 8px;
    }

    .brainrots-section::-webkit-scrollbar-track {
        background: rgba(0, 3, 71, 0.3);
        border-radius: 10px;
    }

    .brainrots-section::-webkit-scrollbar-thumb {
        background: var(--color-amarillo);
        border-radius: 10px;
        border: 2px solid rgba(141, 2, 180, 0.8);
    }

    .brainrots-section::-webkit-scrollbar-thumb:hover {
        background: #FFD700;
    }

    .click-zone {
        grid-column: 2;
        grid-row: 3;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0;
        min-height: 0;
        height: 100%;
        /* Ocupa toda la altura disponible */
        justify-content: center;
        align-items: center;
    }

    .stat-item {
        gap: 15px;
        justify-content: center;
    }

    .clicker-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 20px;
        width: 100%;
        height: 100%;
    }

    .money-stat {
        font-size: 32px;
        /* Aumentado de 28px */
        text-shadow:
            -1px -1px 0 #000000,
            1px -1px 0 #000000,
            -1px 1px 0 #000000,
            1px 1px 0 #000000;
    }

    .money-icon {
        width: 50px;
        /* Aumentado de 45px */
        height: 50px;
        /* Aumentado de 45px */
        background-image: url("/static/imgs/tycoon/pc/dinero_icono.6c91241d28f4.webp");
    }

    .bps-stat {
        font-size: 22px;
        /* Aumentado de 18px */
        text-shadow:
            -1px -1px 0 #000000,
            1px -1px 0 #000000,
            -1px 1px 0 #000000,
            1px 1px 0 #000000;
    }

    .time-icon {
        width: 47px;
        /* Aumentado de 42px */
        height: 47px;
        /* Aumentado de 42px */
        background-image: url("/static/imgs/tycoon/pc/tiempo_icono.f88c7624db8c.webp");
    }

    .meta-text {
        font-size: 24px;
        /* Aumentado de 18px */
    }

    .clicker-area {
        width: 380px;
        /* Reducido de 450px */
        height: 380px;
        /* Reducido de 450px */
        max-width: 380px;
        /* Restaurar máximo específico */
        background-image: url("/static/imgs/tycoon/pc/tralalero.6a222ffe9572.webp");
    }

    .click-text {
        font-size: 36px;
        /* Aumentado de 32px */
        max-width: none;
        /* Sin límite de ancho en desktop */
        text-align: center;
        /* Centrado en desktop */
    }

    /* Imágenes PC para brainrots */
    .brainrot-card[data-brainrot="ballerina"] .brainrot-image {
        background-image: url("/static/imgs/tycoon/pc/ballerina.5aec8e69cfbc.webp");
    }

    .brainrot-card[data-brainrot="bombardiro"] .brainrot-image {
        background-image: url("/static/imgs/tycoon/pc/crocodilo.6259548a6159.webp");
    }

    .brainrot-card[data-brainrot="cocofanto"] .brainrot-image {
        background-image: url("/static/imgs/tycoon/pc/cocofanto.11845777bc4f.webp");
    }

    .brainrot-card[data-brainrot="tralalero"] .brainrot-image {
        background-image: url("/static/imgs/tycoon/pc/tralalero.6a222ffe9572.webp");
    }

    .brainrot-card[data-brainrot="giraffa"] .brainrot-image {
        background-image: url("/static/imgs/tycoon/pc/jiraffa.f50158195d33.webp");
    }

    .brainrot-card[data-brainrot="vaca"] .brainrot-image {
        background-image: url("/static/imgs/tycoon/pc/vaca_saturnita.ee77559bb2cf.webp");
    }

    /* Estilos para bolsas de dinero en PC */
    .money-bag-popup {
        font-size: 22px;
        /* Tamaño más grande para PC */
        padding: 10px 15px;
        border-radius: 18px;
    }

    .money-bag-popup::before {
        font-size: 28px;
        /* Icono más grande */
    }

    .money-bag-popup.brainrot-bag .money-bag-text {
        font-size: 22px;
        /* Tamaño específico para brainrots en PC */
    }

    .money-bag-popup.stats-bag .money-bag-text {
        font-size: 22px;
        /* Tamaño específico para stats en PC */
    }

    .stats-time-icon {
        width: 28px;
        /* Tamaño más grande para PC */
        height: 28px;
        background-image: url("/static/imgs/tycoon/pc/tiempo_icono.f88c7624db8c.webp");
    }
}

/* ===== AJUSTES PARA MÓVILES ===== */
@media (max-width: 768px) {

    /* Reducir tamaño de texto de los botones secundarios en móvil */
    .secondary-btn,
    .tertiary-btn {
        font-size: 16px;
        /* Reducido de 20px para móviles */
        padding: 12px 16px;
        /* Reducir padding también */
    }

    /* Mantener el botón principal con tamaño normal */
    .primary-btn {
        font-size: 24px;
        /* Ligeramente reducido de 28px pero aún prominente */
    }
}

/* ===== AJUSTES PARA MÓVILES MUY PEQUEÑOS ===== */
@media (max-width: 360px) {
    .game-container {
        padding: 10px 8px 10px 8px;
        gap: 8px;
    }

    .money-stat {
        font-size: 20px;
        /* Reducido para móviles pequeños */
    }

    .money-icon {
        width: 35px;
        /* Reducido para móviles pequeños */
        height: 35px;
        /* Reducido para móviles pequeños */
    }

    .bps-stat {
        font-size: 14px;
        /* Reducido para móviles pequeños */
    }

    .time-icon {
        width: 35px;
        /* Reducido para móviles pequeños */
        height: 35px;
        /* Reducido para móviles pequeños */
    }

    .stat-item {
        gap: 8px;
        justify-content: center;
    }

    .meta-text {
        font-size: 16px;
        /* Reducido para móviles pequeños */
    }

    .click-zone {
        padding: 20px 8px;
        /* Más espacio vertical, menos horizontal */
        gap: 8px;
    }

    .clicker-container {
        gap: 8px;
        /* Reducido para móviles pequeños */
        padding: 8px;
        /* Reducido para móviles pequeños */
        width: 100%;
        /* Ocupa todo el ancho disponible */
    }

    .clicker-area {
        width: 100%;
        /* Ocupa todo el ancho del contenedor */
        max-width: 260px;
        /* Ajustado para móviles muy pequeños */
        height: 260px;
        /* Ajustado para móviles muy pequeños */
        background-image: url("/static/imgs/tycoon/pc/tralalero.6a222ffe9572.webp");
    }

    .click-text {
        font-size: 22px;
        /* Ajustado para móviles muy pequeños */
        width: 100%;
        /* Ocupa todo el ancho disponible */
        max-width: 240px;
        /* Ajustado para móviles muy pequeños */
    }

    /* Ajustes para scroll horizontal en móviles pequeños */
    .brainrots-section {
        height: 220px;
        /* Reducido del nuevo tamaño */
        padding: 12px 12px 20px 12px;
        /* Mantener espacio para scroll */
    }

    .brainrots-title {
        font-size: 18px;
        /* Aumentado un poco */
        margin: 0 0 10px 0;
        /* Ajustado */
    }

    .brainrots-grid {
        height: 100%;
        /* Ocupar toda la altura disponible */
        gap: 10px;
        /* Mantener espacio entre tarjetas */
        padding: 8px 0;
        /* Solo padding vertical */
    }

    /* Barra de scroll más pequeña para móviles */
    .brainrots-scroll-container {
        height: 8px;
        margin: 3px 5px 0 5px;
    }

    .brainrots-scroll-thumb {
        height: 6px;
    }

    /* Cards más pequeñas para móviles muy pequeños pero manteniendo diseño vertical */
    .brainrot-card {
        padding: 8px;
        /* Reducido más */
        height: 100%;
        /* Ocupar toda la altura disponible */
        min-width: 90px;
        /* Más estrecho del nuevo tamaño */
        gap: 4px;
        /* Reducido más */
    }

    .brainrot-image {
        width: 85px;
        /* Aumentado de 75px para mejor visibilidad */
        height: 85px;
        /* Aumentado de 75px para mejor visibilidad */
        max-height: 45%;
        /* Aumentado para dar más espacio a las imágenes */
    }

    .brainrot-name {
        font-size: 13px;
        /* Ajustado para móviles pequeños */
        margin: 0;
        /* Sin margen para máximo compacto */
        line-height: 1.1;
        /* Separado un poco más para mejor legibilidad */
    }

    .brainrot-total {
        font-size: 15px;
        /* Ajustado para móviles pequeños */
        margin: 0;
        /* Sin margen para máximo compacto */
        line-height: 1.1;
        /* Separado un poco más para mejor legibilidad */
        color: var(--color-verde-billete);
        /* Mantener verde en móviles pequeños */
        text-shadow:
            -1px -1px 0 #000000,
            1px -1px 0 #000000,
            -1px 1px 0 #000000,
            1px 1px 0 #000000;
    }

    .brainrot-cost-container {
        gap: 4px;
        /* Ajustado */
    }

    .brainrot-cost-icon {
        width: 13px;
        /* Ajustado para móviles pequeños */
        height: 13px;
        /* Ajustado para móviles pequeños */
    }

    .brainrot-cost {
        font-size: 15px;
        /* Ajustado para móviles pequeños */
        color: #ff4444;
        /* Mantener rojo en móviles pequeños */
        text-shadow:
            -1px -1px 0 #000000,
            1px -1px 0 #000000,
            -1px 1px 0 #000000,
            1px 1px 0 #000000;
    }

    .brainrot-owned-count {
        top: 6px;
        /* Ajustado */
        right: 6px;
        /* Ajustado */
        padding: 2px 5px;
        /* Ajustado */
        border-radius: 8px;
        /* Ajustado */
        font-size: 10px;
        /* Ajustado */
    }

    /* Botones aún más pequeños para móviles muy pequeños */
    .secondary-btn,
    .tertiary-btn {
        font-size: 14px;
        /* Aún más pequeño para pantallas muy pequeñas */
        padding: 10px 12px;
        /* Padding más compacto */
    }

    .primary-btn {
        font-size: 20px;
        /* Reducido también para móviles muy pequeños */
        padding: 12px 16px;
        /* Padding ajustado */
    }
}

/* ===== MEJORAS DE SCROLL PARA MÓVIL ===== */
.brainrots-section {
    -webkit-overflow-scrolling: touch;
}

/* ===== OPTIMIZACIONES DE RENDIMIENTO ===== */
.clicker-area,
.brainrot-card {
    will-change: transform;
}

/* ===== ICONOS CENTRALES DINÁMICOS - SIEMPRE PC PARA MÁXIMA CALIDAD ===== */
.clicker-area.central-ballerina {
    background-image: url("/static/imgs/tycoon/pc/ballerina.5aec8e69cfbc.webp") !important;
}

.clicker-area.central-bombardiro {
    background-image: url("/static/imgs/tycoon/pc/crocodilo.6259548a6159.webp") !important;
}

.clicker-area.central-cocofanto {
    background-image: url("/static/imgs/tycoon/pc/cocofanto.11845777bc4f.webp") !important;
}

.clicker-area.central-giraffa {
    background-image: url("/static/imgs/tycoon/pc/jiraffa.f50158195d33.webp") !important;
}

.clicker-area.central-tralalero {
    background-image: url("/static/imgs/tycoon/pc/tralalero.6a222ffe9572.webp") !important;
}

.clicker-area.central-vaca {
    background-image: url("/static/imgs/tycoon/pc/vaca_saturnita.ee77559bb2cf.webp") !important;
}
