body {
     overscroll-behavior: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Comic Sans MS', cursive, sans-serif;
    color: white;
    padding: 10px;
    box-sizing: border-box;
}

/* Container principal que envolve apenas o jogo */
#game-wrapper {
    position: relative;
    width: 100vw;
    max-width: 800px;
    margin: 0 auto;
     touch-action: manipulation;
      overscroll-behavior: none;
}

/* Container do jogo - reduzido para dar espaço aos controles */
#game-container {
    width: 100%;
    height: 100vh;
    max-height: 500px;
    border: 2px solid #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 165, 0, 0.5);
    position: relative;
    background-color: #A9E2F3;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 auto;
}

#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.game-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.5s;
    z-index: 20;
}

.game-screen h1 {
    font-size: 2.0em;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    margin: 0px 0;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hidden {
    display: none;
    opacity: 0;
}

button, select {
    padding: 15px 30px;
    margin: 10px;
    font-size: 1.3em;
    cursor: pointer;
    border: 4px solid #FF69B4;
    border-radius: 25px;
    background: linear-gradient(135deg, #87CEEB 0%, #98D8E8 100%);
    color: #333;
    font-weight: bold;
    box-shadow: 0 6px #FF1493, 0 8px 15px rgba(0,0,0,0.3);
    transition: all 0.1s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px #FF1493, 0 10px 20px rgba(0,0,0,0.4);
}

button:active {
    transform: translateY(6px);
    box-shadow: 0 0 #FF1493;
}


#mobile-controls {
     touch-action: manipulation; /* Previne comportamentos padrão do navegador */
    -webkit-user-select: none; /* Previne seleção de texto no iOS */
    user-select: none;
    -webkit-tap-highlight-color: transparent; /* Remove destaque azul no toque */
    position: relative;
    width: 95vw;
    max-width: 800px;
    height: 100px;
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 10;
    margin: 10px auto 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 20px 20px;
}

.control-btn {
    touch-action: none;
    pointer-events: auto;
    width: 120px;
    height: 75px;
    border-radius: 50%;
    font-size: 2.2em;
    opacity: 0.85;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border: 5px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: all 0.2s;
}

.control-btn:active {
    transform: scale(0.9);
    opacity: 1;
}

.control-btn.jump {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    margin-right: 20px;
    order: 3;
}

.control-btn.move-group {
    display: flex;
    gap: 12px;
    order: 1;
}

.control-btn.move {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    width: 65px;
    height: 65px;
}

.control-btn.shoot {
    touch-action: none;
    background: linear-gradient(135deg, #FF4500 0%, #FF6347 100%);
    margin-right: 20px;
    order: 3; 
    display: none; /* Inicialmente oculto */
}

/* NOVO: Controle analógico */
#joystick-container {
    touch-action: none;
    position: absolute;
    bottom: 20px;
    left: 80px;
    width: 80px;
    height: 80px;
    pointer-events: none;
    z-index: 100;
    display: none; /* Inicialmente oculto */
}

#joystick-base {
    touch-action: none;
    width: 95%;
    height: 95%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    position: absolute;
    top: 20%;
    pointer-events: auto;
    border: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

#joystick-handle {
    touch-action: none;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 50%;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    transition: transform 0.1s;
}

/* PARA O NÍVEL 16 - CONFIGURAÇÃO ESPECIAL */
.mobile-controls-level-16 .control-btn.jump {
    display: none; /* OCULTA O BOTÃO DE PULAR */
    touch-action: none;
}

.mobile-controls-level-16 .control-btn.shoot {
    display: flex; /* MOSTRA O BOTÃO DE TIRO */
       background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 50%;
    position: absolute;
    top: 10%;
    left: 70%;
    touch-action: none;
}

.mobile-controls-level-16 .control-btn.move-group {
    display: none; /* OCULTA AS SETAS */
    touch-action: none;
    
   
}

.mobile-controls-level-16 #joystick-container {
    display: block; /* MOSTRA O JOYSTICK */
    top: 10%;
    right: 0;
    touch-action: none;
    
}

#level-transition {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

#level-transition.active {
    opacity: 1;
    pointer-events: auto;
}

#level-transition h2 {
    font-size: 3em;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.4);
    animation: pulse 0.8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    color: yellow;
    font-size: 2em;
    animation: twinkle 1s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Estilo para notificações otimizadas */
.notification {
            position: absolute;
            top: 10%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 1.5em;
            font-weight: bold;
            text-align: center;
            z-index: 25;
            pointer-events: none;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
            opacity: 0;
            transition: opacity 0.3s;
        }

.notification.show {
    opacity: 1;
}

/* EFEITOS EM CSS - LEVES E PERFORMÁTICOS */
#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.css-particle {
    position: absolute;
    font-size: 20px;
    pointer-events: none;
    animation: particle-float 1s ease-out forwards;
    will-change: transform, opacity;
}

@keyframes particle-float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.3);
        opacity: 0;
    }
}

.css-particle.bounce {
    animation: particle-bounce 0.6s ease-out forwards;
}

@keyframes particle-bounce {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(var(--tx), -30px) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translate(calc(var(--tx) * 1.5), var(--ty)) scale(0.2);
        opacity: 0;
    }
}

/* Efeito de velocidade */
.speed-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,0,0.1) 0%, 
        rgba(255,165,0,0.2) 50%, 
        rgba(255,255,0,0.1) 100%);
    pointer-events: none;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.5s;
}

.speed-effect.active {
    opacity: 1;
    animation: speedLines 0.3s linear infinite;
}

@keyframes speedLines {
    0% { background-position: 0 0; }
    100% { background-position: 100px 0; }
}

/* Efeito de invencibilidade */
.invincibility-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s;
}

.invincibility-effect.active {
    opacity: 1;
    animation: invincibilityPulse 0.5s infinite alternate;
}

@keyframes invincibilityPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* Efeito de plataforma quebrando */
.breaking-platform {
    animation: breakPlatformAnim 0.5s forwards;
    filter: brightness(1.2) grayscale(0.3) blur(1px);
}
@keyframes breakPlatformAnim {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    60% { transform: scale(1.1) rotate(-6deg); opacity: 0.8; }
    100% { transform: scale(0.7) rotate(18deg); opacity: 0; }
}

/* NOVO: Estilo para a pergunta matemática */
.math-question {
            position: absolute;
            top: 20%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.95);
            color: #333;
            padding: 15px 25px;
            border-radius: 15px;
            font-size: 1.3em;
            font-weight: bold;
            text-align: center;
            z-index: 40;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            border: 4px solid #FFD700;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s;
        }

.math-question.show {
    opacity: 1;
}

.math-platform {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    border: 3px dashed #FF6347 !important;
    animation: mathPlatformGlow 1.5s infinite alternate;
}

@keyframes mathPlatformGlow {
    0% { box-shadow: 0 0 10px #FFD700; }
    100% { box-shadow: 0 0 20px #FF6347, 0 0 30px #FFD700; }
}

.bonus-math-platform {
    background: linear-gradient(135deg, #9370DB 0%, #8A2BE2 100%) !important;
    border: 3px dashed #FFD700 !important;
    animation: bonusMathPlatformGlow 1.5s infinite alternate;
}

@keyframes bonusMathPlatformGlow {
    0% { box-shadow: 0 0 10px #9370DB; }
    100% { box-shadow: 0 0 20px #FFD700, 0 0 30px #9370DB; }
}

.answer-platform {
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 100%) !important;
    border: 3px solid #4169E1 !important;
}

.correct-answer {
    background: linear-gradient(135deg, #90EE90 0%, #32CD32 100%) !important;
    border: 3px solid #008000 !important;
    animation: correctGlow 0.5s infinite alternate;
}

@keyframes correctGlow {
    0% { box-shadow: 0 0 10px #90EE90; }
    100% { box-shadow: 0 0 20px #32CD32, 0 0 30px #90EE90; }
}

.wrong-answer {
    background: linear-gradient(135deg, #FFB6C1 0%, #FF6347 100%) !important;
    border: 3px solid #DC143C !important;
}

/* NOVO: Estilo para seleção de personagem */
.character-selection {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.character-option {
    padding: 15px;
    border: 4px solid transparent;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.character-option:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

.character-option.selected {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.character-emoji {
    font-size: 4em;
    margin-bottom: 10px;
}

/* NOVO: Estilo para a máquina de cassino de bônus */
#bonus-wheel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    padding-top: 40px;
}
#bonus-wheel-container.active {
    opacity: 1;
    pointer-events: auto;
}
#casino-machine {
    width: 340px;
    height: 340px;
    background: linear-gradient(135deg, #FFD700 60%, #B8860B 100%);
    border-radius: 30px 30px 40px 40px;
    box-shadow: 0 0 40px 10px rgba(255, 215, 0, 0.5), 0 8px 40px #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 30px;
    margin-top: 0;
}
#casino-top {
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, #FFD700 60%, #FFF8DC 100%);
    border-radius: 30px 30px 15px 15px;
    box-shadow: 0 4px 10px #B8860B;
}
#casino-reels {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fffbe6;
    border-radius: 18px;
    margin: 30px 0 20px 0;
    box-shadow: 0 2px 10px #FFD700;
    padding: 10px 0;
    width: 90%;
}
.casino-reel {
    width: 70px;
    height: 90px;
    margin: 0 10px;
    background: linear-gradient(180deg, #fff 80%, #FFD700 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px #B8860B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8em;
    font-weight: bold;
    color: #333;
    border: 4px solid #FFD700;
    transition: background 0.2s, color 0.2s;
}
#casino-lever-container {
    position: absolute;
    right: -60px;
    top: 60px;
    width: 60px;
    height: 180px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
#casino-lever {
    width: 16px;
    height: 120px;
    background: linear-gradient(180deg, #B8860B 60%, #FFD700 100%);
    border-radius: 8px;
    margin-top: 0;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.2,0.8,0.3,1);
    cursor: pointer;
    box-shadow: 0 0 20px 5px #FFD700;
}
#casino-lever.highlight {
    animation: leverPulse 1s infinite alternate;
    box-shadow: 0 0 30px 10px #fff700, 0 0 10px 2px #FFD700;
}
@keyframes leverPulse {
    0% { box-shadow: 0 0 20px 5px #FFD700; }
    100% { box-shadow: 0 0 40px 20px #fff700, 0 0 20px 5px #FFD700; }
}

#lever-knob {
    width: 36px;
    height: 36px;
    background: radial-gradient(circle, #FFD700 60%, #B8860B 100%);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px #B8860B;
    border: 3px solid #fffbe6;
}

#bonus-result {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 0.5s;
    min-height: 5.9em; /* Reserva espaço para os 3 emojis grandes */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

#bonus-result.show {
    opacity: 1;
}

#spin-wheel-btn {
    margin-top: 20px;
    font-size: 1.5em;
    padding: 15px 30px;
}

/* NOVO: Estilo para a tela de fim de jogo completo */
#game-complete-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

#game-complete-screen.active {
    opacity: 1;
    pointer-events: auto;
}

#game-complete-screen h1 {
    font-size: 3em;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.4);
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

#game-complete-screen p {
    font-size: 1.5em;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#total-diamonds-final {
    font-size: 2em;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* NOVO: Estilo para as imagens de pássaros */
.bird {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 5;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* NOVO: Estilo para os enemies com PNG sequencial */
.enemy-sprite {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ============================================= */
/* MEDIA QUERIES PARA RESPONSIVIDADE */
/* ============================================= */

/* Para telas com altura menor que 700px */
@media (max-height: 700px) {
    #game-container {
        height: 60vh;
        max-height: 400px;
    }
    
    #mobile-controls {
        height: 80px;
        padding: 10px 15px;
    }
    
    .control-btn {
        width: 100px !important;
        height: 60px !important;
        font-size: 1.8em !important;
    }
    
    .control-btn.move {
        width: 55px !important;
        height: 55px !important;
    }
}

/* Para telas com altura menor que 500px */
@media (max-height: 500px) {
    #game-container {
        height: 50vh;
        max-height: 300px;
    }
    
    #mobile-controls {
        height: 60px;
        padding: 8px 10px;
    }
    
    .control-btn {
        width: 80px !important;
        height: 50px !important;
        font-size: 1.5em !important;
    }
    
    .control-btn.move {
        width: 45px !important;
        height: 45px !important;
    }
}

/* Para telas com largura menor que 480px */
@media (max-width: 480px) {
    #game-container {
        height: 60vh;
    }
    
    #mobile-controls {
        padding: 10px;
    }
    
    .control-btn {
        width: 90px !important;
        height: 55px !important;
    }
    
    .control-btn.move {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Para telas muito pequenas (smartphones pequenos) */
@media (max-width: 360px) {
    #game-container {
        height: 55vh;
    }
    
    #mobile-controls {
        padding: 8px;
        height: 70px;
    }
    
    .control-btn {
        width: 75px !important;
        height: 50px !important;
        font-size: 1.3em !important;
    }
    
    .control-btn.move {
        width: 40px !important;
        height: 40px !important;
    }
    
    .control-btn.move-group {
        gap: 8px;
    }
}

/* Ajuste do controle analógico para telas menores Celulares*/
@media (max-height: 600px) {
    #joystick-container {
        bottom: 30px !important;
        left: 20px !important;
        width: 100px !important;
        height: 100px !important;
    }
}

/* Para orientação paisagem em dispositivos móveis */
@media (max-height: 400px) and (orientation: landscape) {
    #game-container {
        height: 80vh;
        max-height: 250px;
    }
    
    #mobile-controls {
        height: 50px;
        padding: 5px 10px;
        margin-top: 5px;
    }
    
    .control-btn {
        width: 70px !important;
        height: 40px !important;
        font-size: 1.2em !important;
    }
    
    .control-btn.move {
        width: 35px !important;
        height: 35px !important;
    }
}

/* Para tablets e dispositivos maiores */
@media (min-width: 768px) and (min-height: 1024px) {
    #game-container {
        height: 60vh;
        max-height: 600px;
    }
    
    #mobile-controls {
        height: 120px;
        padding: 20px 30px;
    }
    
    .control-btn {
        width: 140px !important;
        height: 85px !important;
        font-size: 2.5em !important;
    }
    
    .control-btn.move {
        width: 75px !important;
        height: 75px !important;
    }
}

/* Ajustes para quando o teclado virtual está aberto em dispositivos móveis */
@media (max-height: 300px) {
    #game-container {
        height: 40vh;
    }
    
    #mobile-controls {
        display: none; /* Esconde controles quando teclado está aberto */
    }
}
/* ============================================= */
/* RESPONSIVIDADE ESPECÍFICA PARA ROLETA DE BÔNUS */
/* ============================================= */

/* Container da roleta - ajustes gerais */
#bonus-wheel-container {
    padding-top: 20px;
    overflow-y: auto;
    max-height: 100%;
}

/* Máquina de cassino responsiva */
#casino-machine {
    width: 90vw;
    max-width: 340px;
    height: 90vw;
    max-height: 340px;
    margin-bottom: 15px;
}

/* Rolos responsivos */
.casino-reel {
    width: 18vw;
    height: 22vw;
    max-width: 70px;
    max-height: 90px;
    margin: 0 8px;
    font-size: 2em;
}

/* Alavanca responsiva */
#casino-lever-container {
    right: -10vw;
    max-width: 60px;
    width: 10vw;
    height: 25vw;
    max-height: 180px;
}

#casino-lever {
    width: 4vw;
    max-width: 16px;
    height: 18vw;
    max-height: 120px;
}

#lever-knob {
    width: 8vw;
    height: 8vw;
    max-width: 36px;
    max-height: 36px;
    bottom: -4vw;
}

/* Texto do resultado responsivo */
#bonus-result {
    font-size: 1.5em;
    min-height: 4em;
    padding: 0 10px;
    text-align: center;
}

/* Títulos responsivos */
#bonus-wheel-container h2 {
    font-size: 1.8em;
    padding: 0 10px;
    text-align: center;
}

#bonus-wheel-container p {
    font-size: 1.1em;
    padding: 0 15px;
    text-align: center;
}

/* Media Queries específicas para a roleta */

/* Para telas menores que 500px */
@media (max-width: 500px) {
    #casino-machine {
        width: 95vw;
        height: 95vw;
    }
    
    .casino-reel {
        width: 22vw;
        height: 28vw;
        margin: 0 5px;
        font-size: 1.8em;
    }
    
    #casino-lever-container {
        right: -12vw;
    }
    
    #bonus-result {
        font-size: 1.3em;
    }
    
    #bonus-wheel-container h2 {
        font-size: 1.6em;
    }
}

/* Para telas menores que 400px */
@media (max-width: 400px) {
    #casino-machine {
        width: 98vw;
        height: 98vw;
        margin-bottom: 10px;
    }
    
    .casino-reel {
        width: 25vw;
        height: 32vw;
        margin: 0 3px;
        font-size: 1.6em;
    }
    
    #casino-reels {
        padding: 5px 0;
        margin: 15px 0 10px 0;
    }
    
    #casino-lever-container {
        right: -15vw;
        top: 50%;
    }
    
    #bonus-wheel-container h2 {
        font-size: 1.4em;
        margin-bottom: 10px;
    }
    
    #bonus-wheel-container p {
        font-size: 1em;
        margin-bottom: 15px;
    }
    
    #bonus-result {
        font-size: 1.1em;
        margin-top: 10px;
    }
}

/* Para orientação paisagem em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
    #bonus-wheel-container {
        padding-top: 5px;
        justify-content: flex-start;
        overflow-y: scroll;
    }
    
    #casino-machine {
        width: 70vh;
        height: 70vh;
        max-width: 300px;
        max-height: 300px;
        margin: 5px 0;
    }
    
    .casino-reel {
        width: 15vh;
        height: 18vh;
        max-width: 60px;
        max-height: 75px;
    }
    
    #bonus-wheel-container h2 {
        font-size: 1.4em;
        margin: 5px 0;
    }
    
    #bonus-result {
        min-height: 3em;
    }
}

/* Para tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    #casino-machine {
        width: 70vw;
        height: 70vw;
        max-width: 400px;
        max-height: 400px;
    }
    
    .casino-reel {
        width: 15vw;
        height: 18vw;
        max-width: 80px;
        max-height: 100px;
        font-size: 3em;
    }
    
    #bonus-result {
        font-size: 1.8em;
    }
}

/* Para garantir que o container do jogo não sobreponha a roleta */
#game-container {
    z-index: 1;
}

#bonus-wheel-container {
    z-index: 100;
}

/* Ajuste do botão de girar roleta */
#spin-wheel-btn {
    font-size: 1.2em;
    padding: 12px 25px;
    margin: 15px 0;
}

@media (max-width: 400px) {
    #spin-wheel-btn {
        font-size: 1.1em;
        padding: 10px 20px;
    }
}

/* Ajuste para quando o teclado virtual está aberto */
@media (max-height: 300px) {
    #bonus-wheel-container {
        padding-top: 0;
        justify-content: center;
    }
    
    #casino-machine {
        transform: scale(0.8);
        margin: 0;
    }
}
