/* ===== TOWER FLOOR TRANSITION ===== */
@keyframes towerScrollFloor {
    0%   { background-position: center 50%; opacity: 1; transform: translateY(0); }
    40%  { background-position: center 30%; opacity: 0.7; transform: translateY(-6px); }
    100% { background-position: center 0%;  opacity: 1; transform: translateY(0); }
}

@keyframes doorFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.door-game {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    font-family: 'Cinzel', 'Mafia', serif;
    min-height: 520px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background-image: url('assets/images/tower/tower-bg.png');
    background-size: cover;
    background-position: center 0%;
    background-repeat: repeat-y;
    border-radius: 15px;
    overflow: hidden;
    animation: doorFadeIn 0.22s ease-out;
}

/* Static screens stop fade animation */
.door-game.no-scroll {
    animation: none;
    background-position: center;
    background-repeat: no-repeat;
}

.door-game .game-layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    position: relative;
    z-index: 2;
}

.door-game .intro-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    flex: 1;
    min-height: 0;
}

.door-game .gate-image {
    width: 400px;
    height: 350px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 30px;
    cursor: pointer;
    transition: filter 0.3s ease;
    transform-origin: top center;
}

.door-game .gate-image:hover {
    filter: drop-shadow(0 0 18px gold) brightness(1.1);
}

@keyframes gateOpen {
    0% {
        transform: translateY(0) scaleY(1);
        filter: drop-shadow(0 0 0px gold);
        opacity: 1;
    }
    20% {
        transform: translateY(-12px) scaleY(0.97);
        filter: drop-shadow(0 0 25px gold) brightness(1.3);
    }
    50% {
        transform: translateY(-55%) scaleY(1);
        filter: drop-shadow(0 0 40px gold) brightness(1.6);
        opacity: 1;
    }
    100% {
        transform: translateY(-125%) scaleY(1);
        filter: drop-shadow(0 0 60px gold) brightness(2);
        opacity: 0;
    }
}

.door-game .enter-btn {
    background: linear-gradient(145deg, #8b5a2b, #a67c52);
    border: 4px solid #ffd700;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 28px;
    font-weight: 900;
    color: #ffd700;
    cursor: pointer;
    text-shadow: 3px 3px 0 #000;
    box-shadow: 0 8px 0 #5a3a1a, 0 0 40px gold;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.door-game .enter-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 13px 0 #5a3a1a, 0 0 60px gold;
}

.door-game .enter-btn:active {
    transform: translateY(3px);
    box-shadow: 0 5px 0 #5a3a1a, 0 0 60px gold;
}

.door-game .enter-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.door-game .game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #b89b7a;
    border-radius: 40px;
    padding: 10px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.door-game .stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.door-game .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    background: rgba(0,0,0,0.4);
    padding: 8px 15px;
    border-radius: 30px;
    border: 2px solid;
}

.door-game .stat-item .hearts {
    display: flex;
    gap: 3px;
    color: #ff4444;
    font-size: 1.2rem;
}

.door-game .keys-count {
    color: #ffd700;
}

.door-game .money-counter {
    color: #4caf50;
}

.door-game .floor-counter {
    color: #b89b7a;
    background: rgba(0,0,0,0.4);
    padding: 8px 20px;
    border-radius: 30px;
    border: 2px solid #b89b7a;
    font-weight: 700;
    font-size: 1.2rem;
}

.door-game .game-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 340px;
    width: 100%;
}

.door-game .doors-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    width: 100%;
    margin-bottom: 40px;
    position: relative;
    flex-wrap: wrap;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.door-game .door-wrapper {
    position: relative;
    width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.door-game .door-wrapper:hover {
    transform: translateY(-15px);
    filter: drop-shadow(0 0 30px gold);
}

.door-game .door-wrapper.selected {
    transform: translateY(-20px);
    filter: drop-shadow(0 0 40px gold);
}

.door-game .door-image {
    width: 200px;
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    box-shadow: 0 15px 25px rgba(0,0,0,0.6);
    position: relative;
    border: 2px solid rgba(255,215,0,0.3);
}

.door-wrapper.selected .door-image {
    border: 3px solid #ffd700;
}

.door-game .arrow-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 90px;
    background-image: url('../../images/tower/arrow.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: arrowFloat 1.2s infinite ease-in-out;
    z-index: 20;
    filter: drop-shadow(0 0 15px gold);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.door-game .arrow-indicator.left {
    left: 40%;
    transform: translateY(-50%) scaleX(1);
}

.door-game .arrow-indicator.right {
    right: 40%;
    transform: translateY(-50%) scaleX(-1); 
}

@keyframes arrowFloat {
    0%, 100% { transform: translateY(-50%) translateX(0) scaleX(1); }
    50% { transform: translateY(-50%) translateX(-5px) scaleX(1); }
}

.door-game .arrow-indicator.right {
    animation: arrowFloatRight 1.2s infinite ease-in-out;
}

@keyframes arrowFloatRight {
    0%, 100% { transform: translateY(-50%) scaleX(-1) translateX(0); }
    50% { transform: translateY(-50%) scaleX(-1) translateX(5px); }
}

.door-game .door-locks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.door-game .lock {
    position: absolute;
    width: 35px;
    height: 35px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
    z-index: 15;
}

.door-game .lock:hover {
    transform: scale(1.3) rotate(15deg);
    filter: drop-shadow(0 0 15px gold);
}

.door-game .lock.unlocking {
    animation: unlockPop 0.3s ease forwards;
}

@keyframes unlockPop {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.5) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

.lock-pos-1 { top: 15%; left: 15%; }
.lock-pos-2 { top: 25%; left: 65%; }
.lock-pos-3 { top: 45%; left: 25%; }
.lock-pos-4 { top: 55%; left: 75%; }
.lock-pos-5 { top: 70%; left: 35%; }
.lock-pos-6 { top: 35%; left: 45%; }
.lock-pos-7 { top: 80%; left: 55%; }
.lock-pos-8 { top: 40%; left: 80%; }
.lock-pos-9 { top: 60%; left: 10%; }

.door-popup-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    z-index: 20000;
    width: 100%;
    max-width: none;
    transform: none;
    box-sizing: border-box;
}

.door-popup-content {
    background: linear-gradient(145deg, #2a1e14, #1a120b);
    border: 4px solid #b89b7a;
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 80px gold;
    animation: popupAppear 0.3s ease;
    backdrop-filter: blur(5px);
    width: min(400px, 100%);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
}

@keyframes popupAppear {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.door-popup-icon {
    font-size: 70px;
    margin-bottom: 15px;
}

.door-popup-title {
    font-size: 28px;
    font-weight: 900;
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 2px 2px #000;
}

.door-popup-message {
    font-size: 24px;
    text-shadow: 2px 2px #000;
    letter-spacing: 2.5px;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.5;
}

.door-popup-result {
    font-size: 24px;
    color: #ffd700;
    margin-bottom: 25px;
    font-weight: 700;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 40px;
    border: 2px solid #ffd700;
}

.door-popup-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.door-popup-btn {
    background: linear-gradient(145deg, #3a2a1c, #1e140e);
    border: 2px solid #b89b7a;
    border-radius: 40px;
    padding: 12px 35px;
    font-size: 20px;
    font-weight: 700;
    color: #e0d3b0;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 4px 0 #0a0806;
    min-width: 120px;
}

.door-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #0a0806;
    background: linear-gradient(145deg, #5a4a3a, #3a2a1c);
    color: #ffd700;
    border-color: #ffd700;
}

.door-popup-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #0a0806;
}

.door-bomb-animation {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: bombExplode 2s steps(37) forwards;
}

@keyframes bombExplode {
    0% { background-image: url('../../images/tower/bomb_anim/bomb1.png'); }
    2.7% { background-image: url('../../images/tower/bomb_anim/bomb2.png'); }
    5.4% { background-image: url('../../images/tower/bomb_anim/bomb3.png'); }
    8.1% { background-image: url('../../images/tower/bomb_anim/bomb4.png'); }
    10.8% { background-image: url('../../images/tower/bomb_anim/bomb5.png'); }
    13.5% { background-image: url('../../images/tower/bomb_anim/bomb6.png'); }
    16.2% { background-image: url('../../images/tower/bomb_anim/bomb7.png'); }
    18.9% { background-image: url('../../images/tower/bomb_anim/bomb8.png'); }
    21.6% { background-image: url('../../images/tower/bomb_anim/bomb9.png'); }
    24.3% { background-image: url('../../images/tower/bomb_anim/bomb10.png'); }
    27.0% { background-image: url('../../images/tower/bomb_anim/bomb11.png'); }
    29.7% { background-image: url('../../images/tower/bomb_anim/bomb12.png'); }
    32.4% { background-image: url('../../images/tower/bomb_anim/bomb13.png'); }
    35.1% { background-image: url('../../images/tower/bomb_anim/bomb14.png'); }
    37.8% { background-image: url('../../images/tower/bomb_anim/bomb15.png'); }
    40.5% { background-image: url('../../images/tower/bomb_anim/bomb16.png'); }
    43.2% { background-image: url('../../images/tower/bomb_anim/bomb17.png'); }
    45.9% { background-image: url('../../images/tower/bomb_anim/bomb18.png'); }
    48.6% { background-image: url('../../images/tower/bomb_anim/bomb19.png'); }
    51.3% { background-image: url('../../images/tower/bomb_anim/bomb20.png'); }
    54.0% { background-image: url('../../images/tower/bomb_anim/bomb21.png'); }
    56.7% { background-image: url('../../images/tower/bomb_anim/bomb22.png'); }
    59.4% { background-image: url('../../images/tower/bomb_anim/bomb23.png'); }
    62.1% { background-image: url('../../images/tower/bomb_anim/bomb24.png'); }
    64.8% { background-image: url('../../images/tower/bomb_anim/bomb25.png'); }
    67.5% { background-image: url('../../images/tower/bomb_anim/bomb26.png'); }
    70.2% { background-image: url('../../images/tower/bomb_anim/bomb27.png'); }
    72.9% { background-image: url('../../images/tower/bomb_anim/bomb28.png'); }
    75.6% { background-image: url('../../images/tower/bomb_anim/bomb29.png'); }
    78.3% { background-image: url('../../images/tower/bomb_anim/bomb30.png'); }
    81.0% { background-image: url('../../images/tower/bomb_anim/bomb31.png'); }
    83.7% { background-image: url('../../images/tower/bomb_anim/bomb32.png'); }
    86.4% { background-image: url('../../images/tower/bomb_anim/bomb33.png'); }
    89.1% { background-image: url('../../images/tower/bomb_anim/bomb34.png'); }
    91.8% { background-image: url('../../images/tower/bomb_anim/bomb35.png'); }
    94.5% { background-image: url('../../images/tower/bomb_anim/bomb36.png'); }
    97.2% { background-image: url('../../images/tower/bomb_anim/bomb37.png'); }
    100% { background-image: url('../../images/tower/bomb_anim/bomb37.png'); }
}

.door-game .key-shop {
    background: linear-gradient(145deg, #2a1e14, #1a120b);
    border: 4px solid #ffd700;
    border-radius: 30px;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
}

.door-game .shop-title {
    font-size: 28px;
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
    text-shadow: 2px 2px 0 #000;
}

.door-game .shop-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.door-game .shop-item {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #b89b7a;
    border-radius: 15px;
    padding: 15px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.door-game .shop-item:hover:not(.sold) {
    transform: translateY(-5px);
    border-color: #ffd700;
    box-shadow: 0 0 30px gold;
}

.door-game .shop-item.sold {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

.door-game .shop-item-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.door-game .shop-item-name {
    font-size: 14px;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 700;
}

.door-game .shop-item-price {
    font-size: 16px;
    color: #ffd700;
    font-weight: 900;
    text-shadow: 1px 1px 0 #000;
}

.door-game .shop-item-buy {
    font-size: 12px;
    color: #4caf50;
    margin-top: 5px;
    display: block;
}

.door-game .shop-item.ultra-chest {
    background: linear-gradient(145deg, #4a1a2a, #2a0a1a);
    border: 3px solid #ff00ff;
    animation: ultraPulse 2s infinite alternate;
    position: relative;
    z-index: 5;
}

@keyframes ultraPulse {
    from { box-shadow: 0 0 15px #ff00ff; }
    to { box-shadow: 0 0 30px #ff00ff, 0 0 45px gold; }
}

.door-game .shop-item.ultra-chest .shop-item-name {
    color: gold;
    font-size: 15px;
    text-shadow: 0 0 10px gold;
}

.door-game .shop-item.ultra-chest .shop-item-price {
    color: #ff00ff;
    text-shadow: 0 0 15px #ff00ff;
    font-size: 18px;
}

.door-game .destiny-wheel-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.door-game .destiny-wheel {
    background: linear-gradient(145deg, #2a1e14, #1a120b);
    border: 4px solid #9c27b0;
    border-radius: 24px;
    padding: 12px 16px 16px;
    text-align: center;
    width: min(560px, 96vw);
    max-width: 96vw;
    margin: 0 auto;
    position: relative;
}

.door-game .destiny-title {
    font-size: 22px;
    color: #9c27b0;
    margin-bottom: 8px;
    text-shadow: 0 0 16px #9c27b0;
}

.door-game .destiny-prizes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
    padding: 6px 8px;
    background: rgba(0,0,0,0.5);
    border-radius: 40px;
    border: 2px solid #9c27b0;
}

.door-game .prize-item {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid;
    background: rgba(0,0,0,0.3);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
}

.door-game .destiny-wheel-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 0 auto 8px;
}

.door-game .destiny-wheel-wrapper svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(156, 39, 176, 0.5));
    overflow: visible;
}

.wheel-segment {
    transition: filter 0.3s ease, stroke 0.3s ease;
}

.wheel-segment.winning-segment {
    filter: brightness(1.3) drop-shadow(0 0 15px gold);
    stroke: gold !important;
    stroke-width: 4px !important;
}

.door-game .destiny-pointer {
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 22px solid #ffd700;
    filter: drop-shadow(0 0 8px gold);
    z-index: 20;
}

@media (max-width: 900px) {
    .door-game .destiny-wheel-wrapper {
        width: 290px;
        height: 290px;
    }

    .door-game .destiny-pointer {
        top: 50px;
    }
}

@keyframes jackpotPulse {
    0% { filter: drop-shadow(0 0 20px #ff00ff) drop-shadow(0 0 40px gold); }
    50% { filter: drop-shadow(0 0 40px #ff00ff) drop-shadow(0 0 80px gold) brightness(1.2); }
    100% { filter: drop-shadow(0 0 20px #ff00ff) drop-shadow(0 0 40px gold); }
}

@keyframes bombShake {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-5deg); }
    40% { transform: rotate(5deg); }
    60% { transform: rotate(-3deg); }
    80% { transform: rotate(3deg); }
}

@keyframes winGlow {
    0% { filter: drop-shadow(0 0 10px #4caf50); }
    50% { filter: drop-shadow(0 0 30px #4caf50) drop-shadow(0 0 20px gold); }
    100% { filter: drop-shadow(0 0 10px #4caf50); }
}

.effect-jackpot {
    animation: jackpotPulse 1.5s ease-in-out !important;
}

.effect-bomb {
    animation: bombShake 0.5s ease-in-out !important;
}

.effect-money,
.effect-key,
.effect-heal {
    animation: winGlow 1.5s ease-in-out !important;
}

.door-game .destiny-result {
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    background: rgba(0,0,0,0.7);
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-block;
    border: 3px solid #9c27b0;
    margin: 6px 0;
    min-width: 160px;
    text-shadow: 2px 2px 0 #000;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

@keyframes textJackpot {
    0% { color: #fff; text-shadow: 0 0 10px gold; }
    50% { color: gold; text-shadow: 0 0 30px #ff00ff, 0 0 20px gold; transform: scale(1.1); }
    100% { color: #fff; text-shadow: 0 0 10px gold; }
}

@keyframes textBomb {
    0%, 100% { color: #fff; background: rgba(244, 67, 54, 0.7); }
    50% { color: #f44336; background: rgba(0,0,0,0.9); transform: scale(0.95); }
}

@keyframes textWin {
    0% { border-color: #4caf50; }
    50% { border-color: gold; box-shadow: 0 0 40px #4caf50; }
    100% { border-color: #4caf50; }
}

.effect-text-jackpot {
    animation: textJackpot 1.5s ease-in-out !important;
}

.effect-text-bomb {
    animation: textBomb 0.5s ease-in-out !important;
}

.effect-text-win {
    animation: textWin 1.5s ease-in-out !important;
}

.door-game .destiny-spin-btn {
    background: linear-gradient(145deg, #3a2a1c, #1e140e);
    border: 3px solid #9c27b0;
    border-radius: 40px;
    padding: 10px 28px;
    font-size: 18px;
    font-weight: 700;
    color: #e0d3b0;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 4px 0 #0a0806;
    min-width: 160px;
}

.door-game .destiny-spin-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #0a0806;
    background: linear-gradient(145deg, #5a4a3a, #3a2a1c);
    color: #ffd700;
    border-color: #ffd700;
}

.door-game .destiny-spin-btn:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #0a0806;
}

.door-game .destiny-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.door-game .action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.door-game .action-btn {
    background: linear-gradient(145deg, #3a2a1c, #1e140e);
    border: 3px solid #b89b7a;
    border-radius: 40px;
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #e0d3b0;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 5px 0 #0a0806;
    min-width: 200px;
}

.door-game .action-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #0a0806;
    background: linear-gradient(145deg, #5a4a3a, #3a2a1c);
    color: #ffd700;
    border-color: #ffd700;
}

.door-game .action-btn:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #0a0806;
}

.door-game .action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.door-game .exit-money-btn {
    background: linear-gradient(145deg, #1a4620, #2d7a3a);
    border-color: #4caf50;
    color: #4caf50;
}

.door-game .exit-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background-image: url('../../images/tower/exit-btn.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 30;
    opacity: 0.9;
    filter: drop-shadow(0 0 5px rgba(255,0,0,0.5));
}

.door-game .exit-btn:hover {
    transform: scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 0 15px #f44336);
}

@media (max-width: 800px) {
    .door-game .doors-container { 
        gap: 40px; 
    }
    
    .door-game .door-wrapper,
    .door-game .door-image { 
        width: 160px; 
        height: 230px; 
    }
    
    .door-game .gate-image { 
        width: 300px; 
        height: 280px; 
    }
    
    .door-game .enter-btn { 
        font-size: 22px; 
        padding: 12px 25px; 
    }
    
    .door-game .shop-items { 
        grid-template-columns: repeat(2, 1fr); 
    }

    .door-game .arrow-indicator {
        width: 60px;
        height: 80px;
    }
    .door-game .arrow-indicator.left {
        left: 120px;
    }
    .door-game .arrow-indicator.right {
        right: 120px;
    }
    
    .door-game .exit-btn {
        width: 70px;
        height: 70px;
    }

    .door-game .destiny-wheel-wrapper {
        width: 220px !important;
        height: 220px !important;
    }
    
    .door-game .destiny-wheel-wrapper svg text {
        font-size: 13px !important;
    }
    
    .door-game .destiny-pointer {
        border-left: 12px solid transparent !important;
        border-right: 12px solid transparent !important;
        border-top: 24px solid #ffd700 !important;
    }
}

@media (max-width: 700px) {
    .door-game {
        min-height: 0;
        height: auto;
        padding: 6px;
    }

    .door-game .doors-container { 
        gap: 30px; 
    }
    
    .door-game .door-wrapper,
    .door-game .door-image { 
        width: 150px; 
        height: 215px; 
    }
    
    .door-game .arrow-indicator {
        width: 50px;
        height: 70px;
    }
    .door-game .arrow-indicator.left {
        left: calc(50% - 120px);
    }
    .door-game .arrow-indicator.right {
        right: calc(50% - 120px);
    }
}

@media (max-width: 600px) {
    .door-game .game-header {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }
    
    .door-game .stats {
        justify-content: center;
    }
    
    .door-game .doors-container {
        gap: 20px;
    }
    
    .door-game .door-wrapper,
    .door-game .door-image { 
        width: 140px; 
        height: 200px; 
    }
    
    .door-game .shop-items { 
        grid-template-columns: 1fr; 
    }
    
    .door-game .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin: 20px 0;
    }
    
    .door-game .action-btn {
        width: 100%;
        min-width: unset;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .door-game .arrow-indicator {
        width: 45px;
        height: 60px;
    }
    .door-game .arrow-indicator.left {
        left: calc(50% - 108px);
    }
    .door-game .arrow-indicator.right {
        right: calc(50% - 108px);
    }
    
    .door-game .exit-btn {
        width: 60px;
        height: 60px;
        bottom: 15px;
        right: 15px;
    }

    .door-game .destiny-wheel-wrapper {
        width: 190px !important;
        height: 190px !important;
    }
    
    .door-game .destiny-wheel-wrapper svg text {
        font-size: 11px !important;
    }
    
    .door-game .destiny-result {
        font-size: 16px !important;
        padding: 7px 14px !important;
        min-width: 140px !important;
    }
    
    .door-game .destiny-spin-btn {
        font-size: 16px !important;
        padding: 9px 22px !important;
    }
    
    .door-game .prize-item {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
}

@media (max-width: 480px) {
    .door-game .doors-container {
        gap: 15px;
    }
    
    .door-game .door-wrapper,
    .door-game .door-image { 
        width: 130px; 
        height: 185px; 
    }
    
    .door-game .stat-item {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
    
    .door-game .stat-item .hearts {
        font-size: 1rem;
    }
    
    .door-game .floor-counter {
        font-size: 1rem;
        padding: 5px 15px;
    }
    
    .door-game .arrow-indicator {
        width: 40px;
        height: 55px;
    }
    .door-game .arrow-indicator.left {
        left: calc(50% - 100px);
    }
    .door-game .arrow-indicator.right {
        right: calc(50% - 100px);
    }
    
    .door-game .exit-btn {
        width: 55px;
        height: 55px;
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 380px) {
    .door-game .doors-container {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
    }
    
    .door-game .door-wrapper,
    .door-game .door-image { 
        width: 130px;
        height: 185px;
    }
    
    .door-game .arrow-indicator {
        width: 35px;
        height: 50px;
    }
    .door-game .arrow-indicator.left {
        left: calc(50% - 95px);
    }
    .door-game .arrow-indicator.right {
        right: calc(50% - 95px);
    }
    
    .door-game .exit-btn {
        width: 45px;
        height: 45px;
    }
}

