.shower-style {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    height: auto !important;
    min-height: 400px !important;
    max-width: 600px !important;
    width: 95% !important;
    aspect-ratio: 4/3;
    padding: 20px !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 30, 60, 0.95)) !important;
    border: 3px solid #00bfff;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2001;
}

#shower-game {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2002;
}

.shower-stats {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 12px;
    background: rgba(0, 191, 255, 0.1);
    border: 2px solid rgba(0, 191, 255, 0.3);
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

#shower-area {
    order: 2;
    flex: 1;
    min-height: 300px;
    position: relative;
    background: linear-gradient(
        to bottom,
        rgba(0, 191, 255, 0.2) 0%,
        rgba(0, 191, 255, 0.3) 50%,
        rgba(0, 191, 255, 0.2) 100%
    ) !important;
    border: 2px solid rgba(0, 191, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        inset 0 0 30px rgba(0, 191, 255, 0.2),
        0 0 20px rgba(0, 191, 255, 0.1);
    position: relative;
    height: 300px;
    min-height: 300px;
    width: 100%;
    margin: auto;
    z-index: 2003;
}

.character-shower {
    position: absolute;
    width: 150px;
    height: 150px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.5));
}

.character-shower video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shower-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 191, 255, 0.1) 5%,
        rgba(0, 191, 255, 0.2) 10%,
        rgba(0, 191, 255, 0.1) 15%,
        transparent 20%
    );
    background-size: 100% 100px;
    animation: shower-stream 1s linear infinite;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

.shower-bubble {
    position: absolute;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: float-bubble 3s ease-in-out infinite;
    z-index: 2004;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    user-select: none;
    -webkit-user-select: none;
}

.shower-bubble:hover {
    transform: scale(1.3);
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.shower-bubble.collected {
    animation: pop 0.3s ease-out forwards;
    pointer-events: none;
}

.water-drop {
    position: absolute;
    font-size: 28px;
    cursor: pointer;
    z-index: 2004;
    filter: drop-shadow(0 0 5px rgba(0, 191, 255, 0.8));
    animation: drop-wobble 1s ease-in-out infinite;
    user-select: none;
    -webkit-user-select: none;
}

.water-drop:hover {
    transform: scale(1.2);
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(0, 191, 255, 0.8));
}

.water-drop.splashed {
    animation: splash-cold 0.3s ease-out forwards;
}

.water-splash {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,191,255,0.6) 0%, transparent 70%);
    animation: expand-splash 0.6s ease-out forwards;
    z-index: 2004;
    pointer-events: none;
}

.shower-points {
    position: absolute;
    color: #00ff39;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 57, 0.8);
    animation: float-up 1s ease-out forwards;
    z-index: 2005;
    pointer-events: none;
}

.shower-damage {
    position: absolute;
    color: #ff3939;
    font-size: 1.4em;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 57, 57, 0.8);
    animation: float-damage 1s ease-out forwards;
    z-index: 2005;
    pointer-events: none;
    text-align: center;
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 10px;
    white-space: nowrap;
    transform-origin: center;
}

.shower-instructions {
    order: 3;
    width: 100%;
    text-align: center;
    padding: 30px;
    background: rgba(0, 191, 255, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(0, 191, 255, 0.3);
    margin: auto;
    max-width: 400px;
    position: relative;
    z-index: 2004;
}

.shower-instructions h3 {
    color: #00bfff;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.shower-instructions p {
    font-size: 1.3em;
    margin: 15px 0;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.shower-instructions small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85em;
    display: block;
    margin-top: 5px;
}

.start-shower-btn, .finish-shower-btn {
    background: linear-gradient(45deg, #0088ff, #00bfff);
    color: white;
    padding: 15px 35px;
    border-radius: 15px;
    border: none;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.start-shower-btn:hover, .finish-shower-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.5);
    background: linear-gradient(45deg, #00bfff, #0088ff);
}

.shower-results {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    border: 3px solid #00bfff;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.3);
    min-width: 280px;
    z-index: 2006;
}

.shower-results h3 {
    color: #00bfff;
    font-size: 1.1em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.shower-rewards {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: rgba(0, 191, 255, 0.1);
    border: 2px solid rgba(0, 191, 255, 0.3);
    border-radius: 12px;
    font-size: 1.1em;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
    margin: 7px;
}

@keyframes shower-stream {
    from { 
        background-position: 0 0;
    }
    to { 
        background-position: 0 100px;
    }
}

@keyframes float-bubble {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5px, -8px) rotate(10deg); }
}

@keyframes drop-wobble {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

@keyframes pop {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(20deg);
        opacity: 0.5;
    }
    100% {
        transform: scale(2) rotate(45deg);
        opacity: 0;
    }
}

@keyframes splash {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    100% { transform: scale(1.8) rotate(45deg); opacity: 0; }
}

@keyframes expand-splash {
    0% { transform: scale(0); opacity: 0.8; }
    50% { opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes float-up {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.8; }
    100% { transform: translateY(-40px) scale(1); opacity: 0; }
}

@keyframes float-damage {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -100%) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -150%) scale(0.8);
        opacity: 0;
    }
}

@keyframes cold-shock {
    0%, 100% { transform: translate(-50%, -50%); }
    25% { transform: translate(-52%, -50%); }
    50% { transform: translate(-50%, -52%); }
    75% { transform: translate(-48%, -50%); }
}

@keyframes splash-cold {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: brightness(1) drop-shadow(0 0 5px rgba(0, 191, 255, 0.8));
    }
    100% {
        transform: scale(2) rotate(45deg);
        opacity: 0;
        filter: brightness(1.5) drop-shadow(0 0 10px rgba(0, 191, 255, 0.8));
    }
}

@media screen and (max-width: 480px) {
    .shower-style {
        aspect-ratio: 3/4;
        padding: 15px !important;
    }

    .character-shower {
        width: 120px;
        height: 120px;
    }

    .shower-stats {
        font-size: 1em;
        padding: 10px;
    }

    .shower-bubble, .water-drop {
        font-size: 24px;
    }

    .shower-results {
        padding: 20px;
        width: 90%;
    }

    .reward-item {
        font-size: 1em;
        padding: 12px;
    }
}

#shower-modal {
    z-index: 2000;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2010;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Ajustar el contenedor del modal */
.modal-content.shower-style {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    height: auto !important;
    max-width: 600px !important;
    width: 95% !important;
    padding: 20px !important;
    position: relative;
    margin: auto;
    overflow-y: auto;
}

/* Asegurar que las instrucciones estén centradas */
.shower-instructions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 30px;
    box-sizing: border-box;
}

/* Asegurar que el área de juego tenga altura fija */
#shower-area {
    height: 300px;
    min-height: 300px;
    width: 100%;
    margin: auto;
    position: relative;
}

/* Asegurar que las estadísticas estén bien posicionadas */
.shower-stats {
    width: 100%;
    margin: auto;
    box-sizing: border-box;
}

/* Efecto de vibración para el personaje cuando toca agua fría */
.cold-shock {
    animation: cold-shock 0.5s ease-in-out;
}

/* Estilos para la selección de modo */
.shower-mode-select {
    text-align: center;
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shower-modes {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.mode-btn {
    background: rgba(0, 191, 255, 0.1);
    border: 2px solid rgba(0, 191, 255, 0.3);
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 280px;
    margin: 5px 0;
}

.mode-btn:hover {
    transform: translateY(-5px);
    background: rgba(0, 191, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

.mode-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

.mode-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #00bfff;
    display: block;
    margin-bottom: 10px;
}

.mode-desc {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

/* Estilos para el modo frotar */
.dirty-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.dirt-particle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(139, 69, 19, 0.3);
    border-radius: 50%;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

.dirt-particle.cleaned {
    opacity: 0;
}

.sponge {
    position: absolute;
    font-size: 40px;
    cursor: grab;
    user-select: none;
    transform: rotate(-45deg);
    filter: drop-shadow(0 0 10px rgba(255, 255, 0, 0.5));
    z-index: 2005;
    left: 50%;
    top: 50%;
}

.sponge:active {
    cursor: grabbing;
}

.clean-splash {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: clean-splash 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes clean-splash {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Añadir estos estilos */
.foggy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: none;
    z-index: 2005;
    touch-action: none; /* Prevenir scroll en móviles */
}

.sponge-cursor {
    position: absolute;
    font-size: 40px;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-45deg);
    filter: drop-shadow(0 0 10px rgba(255, 255, 0, 0.5));
    z-index: 2006;
    transition: all 0.1s ease;
}

.cleaning-effect {
    position: fixed;
    font-size: 20px;
    pointer-events: none;
    animation: float-cleaning 1s ease-out forwards;
    z-index: 10001;
    transform: translate(-50%, -50%);
}

@keyframes float-cleaning {
    0% {
        transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -150%) scale(1.5) rotate(360deg);
        opacity: 0;
    }
}

.game-foggy-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: all;
}

.game-foggy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: none;
    touch-action: none;
}

.scrub-stats {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 30px;
    border-radius: 20px;
    color: white;
    font-size: 1.2em;
    display: flex;
    gap: 20px;
    z-index: 10000;
}

.scrub-results {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #00bfff;
    color: white;
    text-align: center;
    z-index: 10000;
}

.finish-scrub-btn {
    background: linear-gradient(45deg, #0088ff, #00bfff);
    color: white;
    padding: 15px 35px;
    border-radius: 15px;
    border: none;
    font-size: 1.3em;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.finish-scrub-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}

/* Ajustar espaciado de los stats */
.mode-stats {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 191, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-item {
    font-size: 0.85em;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-item.gain {
    color: #00ff39;
    background: rgba(0, 255, 57, 0.1);
}

.stat-item.loss {
    color: #ff3939;
    background: rgba(255, 57, 57, 0.1);
} 