* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 50%, #0d47a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: splashFadeOut 4s ease forwards;
}

.splash-content {
    text-align: center;
    color: white;
}

.logo-container {
    margin-bottom: 100px;
}

.logo-text {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.letter {
    font-size: 4rem;
    font-weight: 900;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: letterBounce 0.6s ease forwards;
    transform: translateY(50px);
    opacity: 0;
}

.letter-b {
    color: #ffa726;
    animation-delay: 0.1s;
}

.letter-l {
    color: #42a5f5;
    animation-delay: 0.2s;
}

.letter-o {
    color: #ef5350;
    animation-delay: 0.3s;
}

.letter-c {
    color: #ffee58;
    animation-delay: 0.4s;
}

.letter-k {
    color: #ab47bc;
    animation-delay: 0.5s;
}

.logo-subtitle {
    margin-top: 10px;
}

.blast-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: #00bcd4;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: blastAppear 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.adventure-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    letter-spacing: 2px;
    animation: adventureAppear 0.6s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

.loading-container {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
}

.loading-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    width: 60px;
    height: 60px;
}

.loading-block {
    background: #ffeb3b;
    border-radius: 6px;
    animation: blockPulse 1.5s ease-in-out infinite;
}

.block1 {
    animation-delay: 0s;
}

.block2 {
    animation-delay: 0.2s;
}

.block3 {
    animation-delay: 0.4s;
}

.block4 {
    animation-delay: 0.6s;
}

/* Animações */
@keyframes letterBounce {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes blastAppear {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes adventureAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blockPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes splashFadeOut {
    0% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.game-container {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    height: 100vh;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px 5px 15px;
    color: white;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.timer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.timer-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.timer-number {
    font-size: 16px;
    font-weight: 900;
    color: #fbbf24;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.main-score {
    background: rgba(30, 58, 138, 0.9);
    border-radius: 12px;
    padding: 6px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.money-symbol {
    font-size: 20px;
    font-weight: 900;
    color: #10b981;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.score-number {
    font-size: 28px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gift-icon {
    font-size: 24px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 5px;
    touch-action: manipulation;
    animation: giftBlink 2s ease-in-out infinite;
}

.gift-icon:active {
    transform: scale(1.1);
}

@keyframes giftBlink {
    0% { 
        opacity: 1; 
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
    50% { 
        opacity: 0.4; 
        filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.6));
    }
    100% { 
        opacity: 1; 
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
}

/* Perfect Message */
.perfect-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
    pointer-events: none;
}

.perfect-text {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    text-shadow: 
        0 0 10px #ff6b35,
        0 0 20px #ff6b35,
        0 0 30px #ff6b35,
        2px 2px 0px #d63031,
        4px 4px 0px #b71c1c;
    animation: perfectPulse 1s ease-in-out;
}

.perfect-effects {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: perfectGlow 1s ease-in-out;
}

@keyframes perfectPulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes perfectGlow {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Tabuleiro */
.game-board-container {
    background: #1e293b;
    border-radius: 15px;
    padding: 10px;
    margin: 10px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    border: 2px solid #334155;
    position: relative;
    width: calc(100% - 20px);
    box-sizing: border-box;
    flex-shrink: 0;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 1px;
    background: #0f172a;
    padding: 8px;
    border-radius: 12px;
    aspect-ratio: 1;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.board-cell {
    background: #1e293b;
    border-radius: 3px;
    aspect-ratio: 1;
    transition: all 0.2s ease;
    border: 1px solid #334155;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.3);
    min-height: 30px;
    min-width: 30px;
}

.board-cell.filled {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.board-cell.highlight {
    background: rgba(34, 197, 94, 0.6) !important;
    border: 2px solid #22c55e !important;
    box-shadow: 
        0 0 10px rgba(34, 197, 94, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3) !important;
    animation: pulseGreen 0.8s infinite alternate;
}

@keyframes pulseGreen {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Cores dos blocos - Mais vibrantes como no print */
.color-red { 
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
}
.color-blue { 
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
}
.color-green { 
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
}
.color-yellow { 
    background: linear-gradient(135deg, #eab308, #ca8a04);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
}
.color-purple { 
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
}
.color-orange { 
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
}
.color-cyan { 
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
}
.color-pink { 
    background: linear-gradient(135deg, #ec4899, #db2777);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Área das peças */
.pieces-container {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 15px;
    padding: 15px 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 100px;
    margin: 10px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    width: calc(100% - 20px);
    box-sizing: border-box;
    flex-shrink: 0;
}

.pieces-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
    z-index: -1;
}

.piece-slot {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

.piece-slot:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.piece {
    display: grid;
    gap: 3px;
    user-select: none;
    pointer-events: auto;
    cursor: pointer;
}

.piece-block {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Drag and Drop */
.dragging {
    transform: scale(1.2);
    z-index: 1000;
    opacity: 0.8;
}

.drag-preview {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.95;
    transform: scale(1.3);
    transition: none;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

/* Animações */
@keyframes blockPlace {
    0% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes lineComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background: #fff; }
    100% { transform: scale(0); opacity: 0; }
}

.block-placed {
    animation: blockPlace 0.3s ease;
}

.line-complete {
    animation: lineComplete 0.5s ease forwards;
}

/* Efeitos visuais */
.money-earned {
    position: fixed;
    color: #2ed573;
    font-weight: bold;
    font-size: 18px;
    z-index: 1002;
    animation: moneyFloat 2s ease forwards;
}

@keyframes moneyFloat {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-50px); }
}

/* Otimizações específicas para telas muito pequenas */
@media (max-width: 360px) {
    .header {
        padding: 10px 15px;
    }
    
    .crown-icon {
        font-size: 18px;
    }
    
    .crown-number {
        font-size: 14px;
    }
    
    .score-number {
        font-size: 24px;
    }
    
    .settings-icon {
        font-size: 20px;
    }
    
    .game-board {
        max-width: 300px;
        padding: 6px;
    }
    
    .piece-slot {
        width: 70px;
        height: 70px;
    }
    
    .piece-block {
        width: 14px;
        height: 14px;
    }
    
}

/* Tela de Tutorial */
.tutorial-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #4a5fc1 0%, #3b4ba8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.tutorial-footer-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url('images/enlarged.avif') center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.tutorial-content {
    width: 100%;
    max-width: 350px;
    text-align: center;
    animation: tutorialSlideIn 0.8s ease-out;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}


/* Logo Section */
.logo-section {
    margin-bottom: 40px;
}

.game-title {
    font-size: 48px;
    font-weight: 900;
    margin: 0;
    line-height: 0.9;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.letter-b { color: #ff8c42; }
.letter-l { color: #4a90e2; }
.letter-o { color: #e74c3c; }
.letter-c { color: #2ecc71; }

.blast-text {
    color: #4dd0e1;
    font-size: 32px;
    letter-spacing: 2px;
    display: block;
    margin-top: 5px;
}

/* Collection Section */
.collection-section {
    margin-bottom: 60px;
}

.collection-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 0 0 20px 0;
    font-weight: 400;
}

.gems {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.gem {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gem-blue {
    background: linear-gradient(135deg, #4dd0e1, #26c6da);
}

.gem-green {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
}

.gem::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* Description Section */
.description-section {
    margin-bottom: 80px;
}

.game-description {
    color: white;
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
    max-width: 280px;
}



/* Buttons Section */
.buttons-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.btn-play-demo {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    width: 100%;
}

.btn-play-demo:active {
    transform: scale(0.98) translateY(1px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.6);
}

.btn-how-to-link {
    background: none;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

.btn-how-to-link:active {
    color: white;
    transform: scale(0.98);
}

.btn-icon {
    font-size: 20px;
}


@keyframes tutorialSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Como Funciona */
.how-to-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px 20px;
    border-bottom: 2px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 900;
    color: #6366f1;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
    touch-action: manipulation;
}

.close-modal:active {
    color: #ef4444;
    transform: scale(0.9);
}

.modal-body {
    padding: 20px;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    border-left: 4px solid #6366f1;
}

.step-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
}

.step-text strong {
    color: #6366f1;
    font-weight: 900;
    display: block;
    margin-bottom: 5px;
}

.step-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.modal-footer {
    padding: 15px 20px 20px 20px;
    text-align: center;
}

.btn-got-it {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

.btn-got-it:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.5);
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Tutorial Visual */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    pointer-events: none;
}

.tutorial-finger {
    position: fixed;
    font-size: 30px;
    z-index: 10001;
    pointer-events: none;
    display: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    animation: fingerPulse 1s ease-in-out infinite;
}

.tutorial-arrow {
    position: fixed;
    font-size: 24px;
    z-index: 10001;
    pointer-events: none;
    display: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes fingerPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes arrowBounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* Tela de Autenticação */
.auth-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important; /* Dynamic viewport height para mobile */
    background: linear-gradient(180deg, #4a5fc1 0%, #3b4ba8 100%) !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    z-index: 99999 !important;
    padding: env(safe-area-inset-top, 20px) 20px 20px 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    pointer-events: auto !important;
    padding-top: max(env(safe-area-inset-top), 20px) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Garantir que tutorial screen seja escondida quando auth screen estiver ativa */
.auth-screen[style*="display: flex"] ~ .tutorial-screen,
.auth-screen[style*="display: flex"] + .tutorial-screen {
    display: none !important;
    visibility: hidden !important;
    z-index: -1 !important;
}

.auth-content {
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: tutorialSlideIn 0.8s ease-out;
    padding: 20px 0;
    box-sizing: border-box;
    pointer-events: auto;
    z-index: 10000;
    position: relative;
    margin-top: 20px;
}

.auth-logo-section {
    margin-bottom: 30px;
}

.auth-game-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 15px 0;
    line-height: 0.9;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0 0 15px 0;
    font-weight: 400;
}

.demo-earnings {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-earnings p {
    color: white;
    font-size: 14px;
    margin: 0;
    font-weight: 600;
}

.demo-earnings span {
    color: #fbbf24;
    font-weight: 900;
    font-size: 16px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 15px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    pointer-events: auto;
    z-index: 100;
    position: relative;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.auth-tab:active {
    transform: scale(0.98);
}

/* Formulários */
.auth-forms {
    margin-bottom: 25px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    position: relative;
    z-index: 1000;
    pointer-events: auto !important;
}

.input-group input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    font-weight: 500;
    box-sizing: border-box;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    z-index: 1000;
    position: relative;
    min-height: 56px;
    touch-action: manipulation;
    cursor: text;
    outline: none;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.auth-button {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    transition: all 0.2s ease;
    touch-action: manipulation;
    margin-top: 10px;
    min-height: 56px;
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.3);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.auth-button:active {
    transform: scale(0.98) translateY(1px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.6);
}

/* ===== LOBBY SCREEN STYLES ===== */
.lobby-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: url('images/bglobby.png') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow-y: auto;
    padding: env(safe-area-inset-top, 0) 0 0 0;
    box-sizing: border-box;
}

/* Header do Lobby */
.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Botões do lado esquerdo */
.header-left-buttons {
    display: flex;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.avatar-letter {
    color: white;
    font-weight: 900;
    font-size: 18px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.username {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.user-balance {
    color: #fbbf24;
    font-size: 14px;
    font-weight: 700;
}

.header-buttons {
    display: flex;
    gap: 8px;
}

.header-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
}

.header-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.25);
}

.indicate-btn {
    background: linear-gradient(135deg, #10b981, #059669);
}

.deposit-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.withdraw-btn {
    background: linear-gradient(135deg, #10b981, #059669);
}

.btn-icon {
    font-size: 14px;
}

/* Conteúdo principal */
.lobby-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
    animation: lobbyFadeIn 0.8s ease-out;
}

/* Título do jogo no lobby */
.game-title-section {
    margin-bottom: 20px;
}

.lobby-game-title {
    font-size: 48px;
    font-weight: 900;
    margin: 0;
    line-height: 0.9;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: titleBlink 1.5s ease-in-out infinite;
}

/* Seção do personagem */
.character-section {
    flex: 1;
    position: relative;
    min-height: 120px;
    /* A mulher estará na imagem de background, então esta seção serve como espaçamento */
}


/* Botões principais horizontais */
.main-buttons-horizontal {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 350px;
    margin: 60px 0 40px 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.play-button-new, .deposit-button-new {
    flex: 1;
    padding: 18px 20px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    touch-action: manipulation;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-button-new {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #ea580c);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.deposit-button-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.play-button-new:active, .deposit-button-new:active {
    transform: scale(0.95) translateY(2px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

/* Seção de informações */
.info-section {
    margin-top: 20px;
}

.info-button {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    min-height: 48px;
}

.info-button:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.25);
}

.info-icon {
    font-size: 16px;
}

/* Responsividade */
@media (max-width: 480px) {
    .lobby-header {
        padding: 15px;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .header-left-buttons {
        gap: 8px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .user-details {
        text-align: right;
    }
    
    .username {
        font-size: 14px;
    }
    
    .user-balance {
        font-size: 12px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .avatar-letter {
        font-size: 16px;
    }
    
    .lobby-game-title {
        font-size: 36px;
    }
    
    .character-section {
        min-height: 100px;
    }
    
    .main-buttons-horizontal {
        max-width: 320px;
        gap: 12px;
        padding: 0 15px;
        margin: 50px 0 30px 0;
    }
    
    .play-button-new, .deposit-button-new {
        font-size: 16px;
        padding: 16px 15px;
        min-height: 55px;
    }
}

/* Animações */
@keyframes lobbyFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleBlink {
    0% { 
        opacity: 1; 
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    50% { 
        opacity: 0.7; 
        text-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    }
    100% { 
        opacity: 1; 
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

/* ===== TUTORIAL SCREENS STYLES ===== */
.tutorial-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 10000;
    background-color: #000;
}

.tutorial-slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.tutorial-screen {
    width: 33.333%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}


.tutorial-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 10;
    cursor: pointer;
    touch-action: manipulation;
}

/* Backgrounds específicos para cada tela */
#tutorialScreen1 .tutorial-image {
    background-image: url('images/s1.png');
}

#tutorialScreen2 .tutorial-image {
    background-image: url('images/s2.png');
}

#tutorialScreen3 .tutorial-image {
    background-image: url('images/s3.png');
}

.tutorial-btn {
    display: none;
}

.tutorial-btn:active {
    transform: scale(0.95) translateY(2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.6);
}

.test-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.test-btn:active {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.6);
}

@keyframes tutorialButtonPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    }
}

/* Responsividade para telas menores */
@media (max-width: 480px) {
    .tutorial-btn {
        padding: 16px 30px;
        font-size: 16px;
        min-height: 50px;
        max-width: 280px;
    }
}

@media (max-height: 600px) {
    .tutorial-btn {
        padding: 14px 25px;
        font-size: 16px;
        min-height: 48px;
    }
}

/* ===== AVATAR SUBMENU STYLES ===== */
.user-info {
    position: relative;
}

.user-avatar {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.avatar-submenu {
    position: absolute;
    top: 100%;
    right: -10px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(30, 30, 30, 0.95));
    border-radius: 16px;
    padding: 12px 0;
    min-width: 180px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    margin-top: 8px;
}

.avatar-submenu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    position: relative;
    margin: 2px 8px;
    border-radius: 10px;
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInSubmenu 0.3s ease forwards;
}

.submenu-item:nth-child(1) { animation-delay: 0.1s; }
.submenu-item:nth-child(2) { animation-delay: 0.15s; }
.submenu-item:nth-child(3) { animation-delay: 0.2s; }
.submenu-item:nth-child(4) { animation-delay: 0.25s; }

@keyframes slideInSubmenu {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.submenu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #ff6b35, #f7931e);
    border-radius: 2px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.submenu-item:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(247, 147, 30, 0.15));
    transform: translateX(4px);
}

.submenu-item:hover::before {
    transform: scaleY(1);
}

.submenu-item:active {
    transform: translateX(4px) scale(0.98);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25), rgba(247, 147, 30, 0.25));
}

.submenu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.submenu-text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Adicionar uma seta indicativa no submenu */
.avatar-submenu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 0, 0, 0.95);
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.2));
}

/* Responsividade do submenu */
@media (max-width: 480px) {
    .avatar-submenu {
        min-width: 160px;
        right: -10px;
        left: auto;
    }
    
    .avatar-submenu::before {
        left: auto;
        right: 25px;
    }
    
    .submenu-item {
        padding: 12px 16px;
        margin: 2px 6px;
    }
    
    .submenu-text {
        font-size: 14px;
    }
    
    .submenu-icon {
        font-size: 16px;
        width: 20px;
    }
}

/* ===== BET MODAL STYLES ===== */
.bet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.bet-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

.bet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bet-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.close-bet-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
    touch-action: manipulation;
}

.close-bet-modal:active {
    color: #ff6b6b;
    transform: scale(0.9);
}

.bet-modal-body {
    padding: 20px 25px 25px 25px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 25px;
    color: #22c55e;
    font-size: 14px;
    font-weight: 600;
}

.payment-icon {
    background: #22c55e;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

.bet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.bet-item {
    background: #333;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.bet-item:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.bet-item:active {
    transform: scale(0.95);
}

.bet-item.recommended {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-color: #ff6b35;
    color: white;
}

.bet-item.popular {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-color: #ff6b35;
    color: white;
}

.bet-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bet-value {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
}

.bet-item.recommended .bet-value,
.bet-item.popular .bet-value {
    color: #ffffff;
}

.bet-label {
    font-size: 11px;
    font-weight: 600;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bet-item.insufficient-funds {
    background: #444;
    border-color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.bet-item.insufficient-funds:hover {
    transform: none;
    box-shadow: none;
    border-color: #666;
}

.user-balance-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-balance-info p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
    font-weight: 600;
}

.current-balance {
    color: #22c55e;
    font-weight: 900;
    font-size: 16px;
}

/* Responsividade do modal */
@media (max-width: 480px) {
    .bet-modal {
        padding: 15px;
    }
    
    .bet-modal-content {
        max-width: 350px;
    }
    
    .bet-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .bet-item {
        padding: 14px 10px;
        min-height: 70px;
    }
    
    .bet-value {
        font-size: 14px;
    }
    
    .bet-label {
        font-size: 10px;
    }
    
    .bet-modal-header h3 {
        font-size: 16px;
    }
    
    .payment-method {
        font-size: 12px;
        padding: 10px 12px;
    }
}

/* ===== RESULT MODAL STYLES ===== */
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
}

.result-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 25px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: resultModalSlideIn 0.4s ease-out;
    overflow: hidden;
}

.result-modal-content.win {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 20px 50px rgba(34, 197, 94, 0.2);
}

.result-modal-content.loss {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.2);
}

.result-header {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    padding: 25px;
    text-align: center;
}

.result-modal-content.win .result-header {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.result-modal-content.loss .result-header {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.result-header h2 {
    color: white;
    font-size: 24px;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.result-body {
    padding: 30px 25px;
}

.result-message {
    text-align: center;
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.4;
}

.result-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
}

.stat-value {
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
}

.result-modal-content.win .stat-value {
    color: #22c55e;
}

.result-buttons {
    display: flex;
    gap: 12px;
}

.result-btn {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    touch-action: manipulation;
}

.result-btn.play-again {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.result-btn.play-again:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.5);
}

.result-btn.close-modal {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-btn.close-modal:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.15);
}

@keyframes resultModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsividade dos modais de resultado */
@media (max-width: 480px) {
    .result-modal-content {
        max-width: 350px;
        margin: 10px;
    }
    
    .result-header h2 {
        font-size: 20px;
    }
    
    .result-body {
        padding: 25px 20px;
    }
    
    .result-message {
        font-size: 14px;
    }
    
    .result-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .result-btn {
        padding: 14px 16px;
        font-size: 13px;
    }
}

/* ===== GAME PLAY STYLES ===== */
.bet-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.bet-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.bet-amount {
    font-size: 16px;
    font-weight: 900;
    color: #fbbf24;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== WITHDRAW MODAL STYLES ===== */
.withdraw-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.withdraw-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.withdraw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.withdraw-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.close-withdraw-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.close-withdraw-modal:active {
    color: #ff6b6b;
    transform: scale(0.9);
}

.withdraw-modal-body {
    padding: 20px 25px 25px 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: #2d2d2d;
    color: #ffffff;
}

.balance-info {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.pix-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #6366f1;
    font-weight: 500;
    min-height: 16px;
}

.withdraw-info {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 16px;
}

.info-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.withdraw-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-cancel,
.btn-confirm {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:active {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(0.98);
}

.btn-confirm {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-confirm:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.btn-confirm:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}

/* Responsividade do modal de saque */
@media (max-width: 480px) {
    .withdraw-modal {
        padding: 15px;
    }
    
    .withdraw-modal-content {
        max-width: 350px;
    }
    
    .withdraw-modal-header {
        padding: 18px 20px;
    }
    
    .withdraw-modal-header h3 {
        font-size: 16px;
    }
    
    .withdraw-modal-body {
        padding: 18px 20px 20px 20px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .withdraw-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-cancel,
    .btn-confirm {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ===== DEPOSIT MODAL STYLES ===== */
.deposit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10003;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.deposit-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

.deposit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.deposit-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.close-deposit-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.close-deposit-modal:active {
    color: #ff6b6b;
    transform: scale(0.9);
}

.deposit-modal-body {
    padding: 20px 25px 25px 25px;
}

.deposit-step {
    animation: fadeIn 0.3s ease-out;
}

.step-header {
    text-align: center;
    margin-bottom: 25px;
}

.step-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.step-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Etapa 1: Seleção de Valores */
.deposit-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.amount-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    touch-action: manipulation;
}

.amount-item:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.amount-item.selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.amount-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #6366f1;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    text-transform: uppercase;
}

.amount-item.popular .amount-badge {
    background: #f59e0b;
}

.amount-value {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.amount-bonus {
    font-size: 11px;
    color: #4ade80;
    font-weight: 600;
}

.custom-amount {
    margin-bottom: 25px;
}

.custom-amount label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.custom-amount input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.custom-amount input:focus {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-continue {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-continue:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-continue:not(:disabled):active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Etapa 2: Dados do Cliente */
.deposit-summary {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item.total {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.summary-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.summary-item.bonus .summary-value {
    color: #4ade80;
}

.summary-item.total .summary-value {
    color: #fbbf24;
    font-size: 16px;
}

.deposit-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-back,
.btn-generate-pix {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-back:active {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(0.98);
}

.btn-generate-pix {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-generate-pix:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.btn-generate-pix:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}

/* Etapa 3: PIX Gerado */
.pix-container {
    text-align: center;
}

.pix-qrcode {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pix-qrcode img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: white;
    padding: 8px;
}

.pix-code-container {
    margin: 20px 0;
}

.pix-code-container label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.pix-code-input {
    display: flex;
    gap: 8px;
}

.pix-code-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 12px;
    font-family: monospace;
    outline: none;
}

.btn-copy {
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    white-space: nowrap;
}

.btn-copy:active {
    transform: scale(0.98);
}

.pix-info {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.deposit-status {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    transition: all 0.3s ease;
}

.status-icon {
    font-size: 20px;
}

.status-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.btn-new-deposit {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-new-deposit:active {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(0.98);
}

/* Responsividade do modal de depósito */
@media (max-width: 480px) {
    .deposit-modal {
        padding: 15px;
    }
    
    .deposit-modal-content {
        max-width: 350px;
        max-height: 95vh;
    }
    
    .deposit-modal-header {
        padding: 18px 20px;
    }
    
    .deposit-modal-header h3 {
        font-size: 16px;
    }
    
    .deposit-modal-body {
        padding: 18px 20px 20px 20px;
    }
    
    .deposit-amounts {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .amount-item {
        padding: 10px 6px;
    }
    
    .amount-value {
        font-size: 13px;
    }
    
    .amount-bonus {
        font-size: 10px;
    }
    
    .deposit-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-back,
    .btn-generate-pix {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .pix-code-input {
        flex-direction: column;
    }
    
    .btn-copy {
        padding: 12px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===== ESTILOS TAXA DE SAQUE ===== */
.tax-payment-container {
    padding: 20px 0;
}

.tax-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tax-summary .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tax-summary .summary-item:last-child {
    margin-bottom: 0;
}

.tax-summary .summary-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.tax-summary .summary-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
}

.tax-status {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    transition: all 0.3s ease;
}

.tax-status .status-icon {
    font-size: 20px;
}

.tax-status .status-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.tax-success-container {
    text-align: center;
    padding: 40px 20px;
}

.tax-success-container .success-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.tax-success-container h3 {
    color: #4CAF50;
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 700;
}

.tax-success-container p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.tax-success-container p strong {
    color: #ffffff;
    font-weight: 600;
}

.btn-close-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
}

.btn-close-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.btn-copy {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-left: 8px;
}

.btn-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pix-code-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.pix-code-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 12px;
    font-family: monospace;
}

.pix-code-input input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Responsividade para taxa de saque */
@media (max-width: 480px) {
    .tax-payment-container {
        padding: 15px 0;
    }
    
    .tax-summary {
        padding: 12px;
        margin: 15px 0;
    }
    
    .tax-summary .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 16px;
    }
    
    .tax-success-container {
        padding: 30px 15px;
    }
    
    .tax-success-container h3 {
        font-size: 18px;
    }
    
    .pix-code-input {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-copy {
        width: 100%;
        margin-left: 0;
    }
}


