@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&display=swap');

/* ========================================
   OTIMIZAÇÕES DE PERFORMANCE
======================================== */
* {
    -webkit-tap-highlight-color: transparent;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Habilitar aceleração por GPU para elementos animados */
.plane,
.multiplier-display,
.waiting-timer,
.bet-button,
.modal-content,
.toast {
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Otimização para scroll suave */
#gameCanvas {
    will-change: contents;
    transform: translateZ(0);
}

/* ========================================
   PRELOADER
======================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1d29 0%, #0d0f16 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.preloader-content {
    text-align: center;
}

.preloader-gif {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(255, 8, 68, 0.6));
}

.loading-bar-container {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff0844, #ff4757, #ff0844);
    background-size: 200% 100%;
    animation: loadingGradient 1.5s ease infinite;
    border-radius: 10px;
    transition: width 0.3s ease;
}

@keyframes loadingGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.loading-text {
    color: white;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

/* ========================================
   RESET E BASE
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: pan-x pan-y;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    color: white;
}

/* Audio Unlock Overlay */
.audio-unlock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10003;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-unlock-overlay.show {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

.audio-unlock-content {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 400px;
}

.audio-unlock-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ff0844 0%, #ff4757 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseGlow 2s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(255, 8, 68, 0.6);
}

.audio-unlock-icon svg {
    color: white;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(255, 8, 68, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 60px rgba(255, 8, 68, 0.8);
    }
}

.audio-unlock-content h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.audio-unlock-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
}

/* Register Modal */
.register-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.register-modal.show {
    display: flex;
    opacity: 1;
}

.register-modal.show .register-content {
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.register-content {
    background: linear-gradient(135deg, #1a1d29 0%, #0d0f16 100%);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9),
                0 0 0 1px rgba(255, 8, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.register-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff0844 0%, #ff4757 100%);
}

.register-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.register-logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 8, 68, 0.5));
}

.register-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(34, 197, 94, 0.15);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.register-badge svg {
    width: 8px;
    height: 8px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.register-title-group {
    margin-bottom: 1.5rem;
}

.register-content h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
}

.register-subtitle {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.input-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 1rem;
    transition: all 0.3s;
}

.input-compact:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ff0844;
    box-shadow: 0 0 0 3px rgba(255, 8, 68, 0.1);
}

.input-compact svg {
    color: #64748b;
    flex-shrink: 0;
}

.input-compact input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.85rem 0;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
}

.input-compact input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.register-button {
    background: linear-gradient(135deg, #ff0844 0%, #ff4757 100%);
    color: white;
    border: none;
    padding: 0.95rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(255, 8, 68, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.register-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 8, 68, 0.6);
}

.register-button:active {
    transform: translateY(0);
}

.register-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.register-button svg {
    transition: transform 0.3s;
}

.register-button:hover svg {
    transform: translateX(3px);
}

.register-footer {
    display: flex;
    justify-content: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
}

.security-badge svg {
    color: #22c55e;
}

@media (max-width: 480px) {
    .register-content {
        padding: 1.25rem;
        max-width: 340px;
    }
    
    .register-logo {
        width: 70px;
    }
    
    .register-content h2 {
        font-size: 1.35rem;
    }
    
    .register-subtitle {
        font-size: 0.8rem;
    }
    
    .input-compact {
        padding: 0 0.85rem;
    }
    
    .input-compact input {
        font-size: 0.85rem;
    }
    
    .register-button {
        padding: 0.85rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* QR Modal */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10003;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-modal.show {
    display: flex;
    opacity: 1;
}

.qr-modal.show .qr-modal-content {
    animation: modalBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.qr-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 2rem 1.8rem;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8),
                0 0 100px rgba(34, 197, 94, 0.3);
    border: 2px solid rgba(34, 197, 94, 0.4);
    position: relative;
}

.qr-modal-content h2 {
    color: #22c55e;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Deposit Modal */
.deposit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.deposit-modal.show {
    display: flex;
    opacity: 1;
}

.deposit-modal.show .deposit-content {
    animation: modalBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
    }
    70% {
        transform: scale(0.95) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.deposit-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 1.2rem 1rem;
    border-radius: 14px;
    text-align: center;
    max-width: 380px;
    width: 88%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7),
                0 0 60px rgba(34, 197, 94, 0.2);
    border: 1.5px solid rgba(34, 197, 94, 0.35);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.deposit-content h2 {
    color: #22c55e;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deposit-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.deposit-option {
    background: rgba(34, 197, 94, 0.08);
    border: 1.5px solid rgba(34, 197, 94, 0.25);
    border-radius: 10px;
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 70px;
}

.deposit-option:active {
    transform: scale(0.98);
}

.deposit-option:hover {
    background: rgba(34, 197, 94, 0.12);
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.deposit-value {
    color: #22c55e;
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 3px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.deposit-bonus {
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.deposit-info {
    color: #64748b;
    font-size: 0.65rem;
    text-align: center;
    margin-top: 8px;
    font-weight: 500;
}

.deposit-gif {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.4));
    animation: floatPlane 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.deposit-gif-container {
    position: relative;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.deposit-gif-container::before,
.deposit-gif-container::after {
    content: '';
    position: absolute;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(12px);
}

.deposit-gif-container::before {
    width: 120px;
    height: 50px;
    top: 30%;
    left: -150px;
    animation: cloudFloat1 3s linear infinite;
    z-index: 3;
}

.deposit-gif-container::after {
    width: 150px;
    height: 60px;
    top: 40%;
    right: -180px;
    animation: cloudFloat2 4s linear infinite;
    z-index: 3;
}

@keyframes cloudFloat1 {
    0% { left: -150px; }
    100% { left: calc(100% + 150px); }
}

@keyframes cloudFloat2 {
    0% { right: -180px; }
    100% { right: calc(100% + 180px); }
}

@keyframes floatPlane {
    0%, 100% {
        transform: translateY(0px) rotate(-5deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@media (max-width: 480px) {
    .deposit-content {
        width: 92%;
        padding: 1rem 0.9rem;
    }
    
    .deposit-content h2 {
        font-size: 1rem;
    }
    
    .deposit-gif {
        width: 70px;
        height: 70px;
    }
    
    .deposit-gif-container {
        height: 80px;
    }
}

.deposit-gif-container::before {
    width: 120px;
    height: 50px;
    top: 30%;
    left: -150px;
    animation: cloudFloat1 3s linear infinite;
    z-index: 3;
}

.deposit-gif-container::after {
    width: 150px;
    height: 60px;
    top: 50%;
    left: -180px;
    animation: cloudFloat2 4s linear infinite;
    z-index: 1;
}

@keyframes floatPlane {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-15px) translateX(5px);
    }
    50% {
        transform: translateY(-8px) translateX(-5px);
    }
    75% {
        transform: translateY(-12px) translateX(3px);
    }
}

@keyframes cloudFloat1 {
    0% {
        transform: translateX(calc(100vw + 200px));
        opacity: 0;
    }
    5% {
        opacity: 0.9;
    }
    95% {
        opacity: 0.9;
    }
    100% {
        transform: translateX(-300px);
        opacity: 0;
    }
}

@keyframes cloudFloat2 {
    0% {
        transform: translateX(calc(100vw + 220px));
        opacity: 0;
    }
    8% {
        opacity: 0.8;
    }
    92% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(-320px);
        opacity: 0;
    }
}

/* Withdraw Modal */
.withdraw-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.withdraw-modal.show {
    display: flex;
    opacity: 1;
}

.withdraw-modal.show .withdraw-content {
    animation: modalBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.withdraw-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 1.5rem 1.2rem;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                0 0 80px rgba(239, 68, 68, 0.15);
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    position: relative;
}

.withdraw-content h2 {
    color: #ef4444;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.withdraw-balance {
    background: rgba(239, 68, 68, 0.08);
    border: 1.5px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.withdraw-label {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.withdraw-amount {
    color: #ef4444;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.pix-account-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.2rem;
}

.pix-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.pix-label svg {
    color: #22c55e;
}

.pix-key {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-all;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.register-pix-btn {
    width: 100%;
    padding: 0.9rem;
    background: rgba(34, 197, 94, 0.12);
    border: 1.5px solid rgba(34, 197, 94, 0.4);
    border-radius: 10px;
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register-pix-btn:hover {
    background: rgba(34, 197, 94, 0.18);
    border-color: #22c55e;
    transform: translateY(-2px);
}

.withdraw-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.info-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-item strong {
    color: white;
    font-weight: 700;
}

.withdraw-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.withdraw-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.withdraw-button:active:not(:disabled) {
    transform: translateY(0);
}

.withdraw-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.withdraw-disclaimer {
    color: #64748b;
    font-size: 0.7rem;
    text-align: center;
    margin-top: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
}

/* PIX Register Form */
.pix-register-form {
    padding: 0.5rem 0;
}

.pix-register-form .input-group {
    margin-bottom: 1.2rem;
}

.pix-register-form .input-group label {
    display: block;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pix-register-form .input-group input {
    width: 100%;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.pix-register-form .input-group input:focus {
    outline: none;
    border-color: #22c55e;
    background: rgba(255, 255, 255, 0.08);
}

/* Withdraw Confirm Modal */
.withdraw-confirm {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(239, 68, 68, 0.2);
    border-top-color: #ef4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.withdraw-summary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    margin: 1.5rem 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.summary-item.highlight {
    color: #fbbf24;
}

.summary-item.total {
    color: #22c55e;
    font-size: 1.05rem;
}

.summary-item strong {
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
}

.summary-item.highlight strong {
    color: #fbbf24;
}

.summary-item.total strong {
    color: #22c55e;
    font-size: 1.3rem;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    margin: 0.5rem 0;
}

.withdraw-tax-notice {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: center;
}

.withdraw-tax-notice strong {
    color: #fbbf24;
}

.withdraw-button.confirm {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.withdraw-button.confirm:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.6);
}

.security-shield {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
    animation: shieldPulse 2s ease-in-out infinite;
}

.security-shield svg {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes shieldPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(34, 197, 94, 0.7);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .withdraw-content {
        width: 95%;
        padding: 1.2rem 1rem;
        border-radius: 14px;
    }
    
    .withdraw-content h2 {
        font-size: 1.1rem;
    }
    
    .withdraw-amount {
        font-size: 1.6rem;
    }
    
    .pix-key {
        font-size: 0.85rem;
        padding: 0.7rem;
    }
    
    .withdraw-button {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
}

.deposit-amount-section {
    margin-bottom: 2rem;
}

.deposit-label {
    display: block;
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.amount-display {
    color: #22c55e;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
    font-family: 'Outfit', sans-serif;
}

.deposit-slider {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    outline: none;
    background: linear-gradient(to right, #22c55e 0%, #22c55e 10%, rgba(255, 255, 255, 0.2) 10%, rgba(255, 255, 255, 0.2) 100%);
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 0.5rem;
}

.deposit-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #22c55e;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
    transition: all 0.3s;
}

.deposit-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(34, 197, 94, 1);
}

.deposit-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #22c55e;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
    transition: all 0.3s;
}

.deposit-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(34, 197, 94, 1);
}

.slider-limits {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================
   SISTEMA DE TOAST
   ========================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: all;
    animation: toastSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.toast.success {
    border-color: #22c55e;
    color: #22c55e;
}

.toast.error {
    border-color: #ef4444;
    color: #ef4444;
}

.toast.info {
    border-color: #3b82f6;
    color: #3b82f6;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
}

.toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: toastSlideOut 0.3s ease-out forwards;
}

@media (max-width: 480px) {
    .toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* ==========================================
   OVERLAY DE SALDO ZERADO
   ========================================== */

.no-balance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: overlayFadeIn 0.5s ease-out;
}

.no-balance-overlay.show {
    display: flex;
}

.no-balance-content {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
}

.no-balance-plane {
    width: 200px;
    height: auto;
    margin-bottom: 3rem;
    animation: planeFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.3));
}

.no-balance-text-container {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-balance-text {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: textFloat 6s ease-in-out infinite;
    margin: 0;
}

.no-balance-text.show {
    animation: textFadeIn 0.8s ease-out forwards, textFloat 6s ease-in-out infinite;
}

.no-balance-text.hide {
    animation: textFadeOut 0.8s ease-out forwards;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes planeFloat {
    0%, 100% {
        transform: translateY(0px) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes textFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@media (max-width: 768px) {
    .no-balance-plane {
        width: 150px;
        margin-bottom: 2rem;
    }
    
    .no-balance-text {
        font-size: 1.5rem;
    }
    
    .no-balance-text-container {
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .no-balance-plane {
        width: 120px;
        margin-bottom: 1.5rem;
    }
    
    .no-balance-text {
        font-size: 1.2rem;
    }
    
    .no-balance-text-container {
        min-height: 120px;
    }
    
    .no-balance-content {
        padding: 1rem;
    }
}

.qr-code-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.qr-code-container {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    display: inline-block;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.qr-code {
    width: 200px;
    height: 200px;
    display: block;
}

.pix-info {
    margin-bottom: 1.5rem;
}

.pix-text {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.pix-copy-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pix-code-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: monospace;
    outline: none;
}

.copy-pix-btn {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #22c55e;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.copy-pix-btn:hover {
    background: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

.verify-payment-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
}

.verify-payment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.verify-payment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    display: none;
}

.payment-status.success {
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid #22c55e;
    color: #22c55e;
    display: block;
}

.payment-status.error {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    color: #ef4444;
    display: block;
}

.payment-status.pending {
    background: rgba(251, 191, 36, 0.2);
    border: 2px solid #facc15;
    color: #facc15;
    display: block;
}

.deposit-button {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem 0.6rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
}

.deposit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.8);
}

.deposit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.deposit-button::after {
    content: '馃敀 PAGAMENTO SEGURO';
    display: block;
    margin-top: 0.3rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.top-bar {
    background-color: #2d2d2d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.right-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.deposit-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    color: white;
}

.deposit-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.6);
}

.balance {
    background-color: #1a1a1a;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-weight: 600;
}

.balance-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
}

.balance-value {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.balance-value .currency {
    color: #8bff8b;
    font-size: 0.9rem;
    font-weight: 700;
}

.balance-amount {
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    transition: opacity 0.2s;
    position: relative;
}

.menu-button:hover {
    opacity: 0.7;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    text-align: left;
}

.menu-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.menu-item svg {
    flex-shrink: 0;
}

.top-meta {
    background: #1f1f1f;
    padding: 0.55rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 97;
    flex-wrap: wrap;
}

.players-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    flex-shrink: 1;
    min-width: 0;
}

.avatars {
    display: flex;
    align-items: center;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #1f1f1f;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.avatars .avatar + .avatar {
    margin-left: -10px;
}

.avatar-one { background: #ff0844; }
.avatar-two { background: #ec4899; }
.avatar-three { background: #6366f1; }

.player-count-text {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-count-text #playerCount {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    margin-right: 0.2rem;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    white-space: nowrap;
}

.live-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f87171;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(22, 163, 74, 0.95) 100%);
    color: #ffffff;
    padding: 2rem 3rem;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.6),
                0 0 100px rgba(34, 197, 94, 0.4),
                inset 0 0 40px rgba(255, 255, 255, 0.2);
    text-align: center;
    min-width: 320px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: none !important;
}

.toast.show {
    animation: toastBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes toastBounce {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(-5deg);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1) rotate(2deg);
    }
    70% {
        transform: translate(-50%, -50%) scale(0.95) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

@keyframes toastFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
}

.toast.hide {
    animation: toastFadeOut 0.4s ease forwards;
}

.toast-title {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: none;
}

.toast-value {
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    margin: 0.2rem 0;
}

.toast-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 0.3rem;
}

/* Countdown */
.countdown {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.9),
                 0 0 100px rgba(147, 51, 234, 0.8),
                 0 0 140px rgba(147, 51, 234, 0.6);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
}

.countdown.show {
    animation: countdownPulse 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes countdownPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Hist贸rico de Multiplicadores */
.multiplier-history {
    background-color: #1a1a1a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.multiplier-history::-webkit-scrollbar {
    display: none;
}

.multiplier-item {
    background-color: #2d2d2d;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.multiplier-item.red {
    color: #ff4757;
    border-color: #ff4757;
}

.multiplier-item.green {
    color: #00ff00;
    border-color: #00ff00;
}

.more-button {
    background-color: #3d3d3d;
    color: #ffffff;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.more-button:hover {
    background-color: #4d4d4d;
}

/* Game Container */
.game-container {
    position: relative;
    width: 100%;
    flex: 1;
    background: #1a1d29;
    overflow: hidden;
    margin-top: 0.25rem;
    padding-bottom: 130px;
}

@keyframes stripeMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.multiplier-display {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.9),
                 0 0 80px rgba(147, 51, 234, 0.8),
                 0 0 120px rgba(147, 51, 234, 0.6);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: multiplierPulse 1.5s ease-in-out infinite;
}

@keyframes multiplierPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.9),
                     0 0 80px rgba(147, 51, 234, 0.8),
                     0 0 120px rgba(147, 51, 234, 0.6);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        text-shadow: 0 0 60px rgba(255, 255, 255, 1),
                     0 0 100px rgba(147, 51, 234, 1),
                     0 0 140px rgba(147, 51, 234, 0.8);
    }
}

/* Waiting Overlay */
.waiting-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1d29;
    z-index: 15;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.waiting-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.waiting-clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.waiting-cloud {
    position: absolute;
    width: 200px;
    height: auto;
    opacity: 0.3;
    animation: cloudPass 6s linear infinite;
}

.waiting-cloud.cloud-1 {
    top: 20%;
    animation-duration: 6s;
}

.waiting-cloud.cloud-2 {
    top: 50%;
    animation-duration: 7s;
}

.waiting-cloud.cloud-3 {
    top: 70%;
    animation-duration: 8s;
}

@keyframes cloudPass {
    0% {
        right: -200px;
    }
    100% {
        right: 100%;
    }
}

.waiting-plane {
    width: 150px;
    height: auto;
    z-index: 6;
    animation: planeFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.waiting-countdown-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
}

.waiting-text {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

.waiting-timer {
    font-size: 8rem;
    font-weight: 900;
    color: #00ff88;
    text-shadow: 0 0 40px rgba(0, 255, 136, 0.9),
                 0 0 80px rgba(0, 255, 136, 0.6),
                 0 6px 30px rgba(0, 0, 0, 0.9);
    animation: pulse 1s ease-in-out infinite;
    line-height: 1;
}

@keyframes planeFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.wind-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wind-lines.active {
    opacity: 1;
}

.wind-line {
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 1px;
    animation: windBlow 3s ease-in-out infinite;
}

@keyframes windBlow {
    0% {
        right: -150px;
        transform: translateY(0) scaleX(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) scaleX(1.2);
    }
    90% {
        opacity: 1;
    }
    100% {
        right: 100%;
        transform: translateY(-60px) scaleX(0.8);
        opacity: 0;
    }
}

.multiplier-display::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.4) 0%, rgba(147, 51, 234, 0.2) 30%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
    pointer-events: none;
}

.multiplier-display.active {
    opacity: 1;
}

.potential-win {
    position: absolute;
    top: calc(42% + 7rem);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.15) 0%, rgba(0, 255, 0, 0.08) 100%);
    border: 1.5px solid rgba(0, 255, 0, 0.4);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes potentialWinPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 20px rgba(0, 255, 0, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 6px 30px rgba(0, 255, 0, 0.5),
                    inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.potential-win.active {
    opacity: 1;
}

.game-status {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 10;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 9999;
    animation: confettiFall linear forwards;
    border-radius: 2px;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateZ(720deg);
        opacity: 0;
    }
}

.plane {
    position: absolute;
    width: 80px;
    height: 80px;
    object-fit: contain;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}

.plane.active {
    opacity: 1;
}

/* Bottom Bar */
.bottom-bar {
    background-color: #2d2d2d;
    padding: 0.6rem 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    position: fixed;
    bottom: 50px;
    left: 0;
    right: 0;
    z-index: 98;
}

.bet-input-wrapper {
    flex: 1;
    display: flex;
    gap: 6px;
    align-items: center;
}

.bet-control {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.bet-control:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.bet-control:active {
    transform: scale(0.95);
}

.bet-control:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bet-input {
    flex: 1;
    height: 38px;
    padding: 0 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
    text-align: center;
    position: relative;
}

.bet-input::before {
    content: 'R$';
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
}

.bet-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.bet-input::-webkit-inner-spin-button,
.bet-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bet-button {
    background: linear-gradient(135deg, #ff0844 0%, #ff4757 100%);
    color: #ffffff;
    border: none;
    padding: 0.65rem 2rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 8, 68, 0.4);
    white-space: nowrap;
}

.bet-button.cashout {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 4px 18px rgba(255, 152, 0, 0.6);
    animation: cashoutPulse 1.5s ease-in-out infinite;
}

.bet-button.cancel-bet {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    box-shadow: 0 4px 18px rgba(255, 68, 68, 0.6);
}

.bet-button.cancel-bet:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 68, 68, 0.8);
}

@keyframes cashoutPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 18px rgba(255, 152, 0, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(255, 152, 0, 0.8);
    }
}

.bet-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 8, 68, 0.6);
}

.bet-button:active {
    transform: scale(0.98);
}

.bet-button:disabled {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .deposit-content {
        padding: 1.5rem 1.3rem;
        max-width: 95%;
    }
    
    .deposit-content h2 {
        font-size: 1.5rem;
    }
    
    .amount-display {
        font-size: 2.5rem;
    }
    
    .qr-code {
        width: 180px;
        height: 180px;
    }

    .top-bar {
        padding: 0.4rem 0.75rem;
    }
    
    .logo img {
        height: 56px;
    }
    
    .deposit-btn {
        width: 40px;
        height: 40px;
    }
    
    .deposit-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .multiplier-display {
        font-size: 5rem;
    }
    
    .potential-win {
        font-size: 1rem;
        top: calc(42% + 4rem);
    }
    
    .plane {
        width: 70px;
        height: 70px;
    }
    
    .bottom-bar {
        padding: 0.75rem;
        bottom: 46px;
    }
    
    .top-meta {
        bottom: 0;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .players-chip {
        padding: 0.35rem 0.65rem;
        gap: 0.5rem;
        min-width: auto;
    }
    
    .player-count-text {
        font-size: 0.75rem;
        white-space: normal;
    }
    
    .player-count-text #playerCount {
        font-size: 0.85rem;
    }
    
    .avatar {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .live-pill {
        font-size: 0.7rem;
        padding: 0.3rem 0.65rem;
        display: none;
    }
    
    .bet-control {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .bet-input {
        font-size: 0.9rem;
        padding: 0 0.8rem;
        height: 45px;
    }
    
    .bet-button {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
    
    .right-section {
        gap: 0.75rem;
    }
    
    .balance {
        padding: 0.45rem 0.8rem;
    }
    
    .balance-amount {
        font-size: 0.9rem;
    }
    
    .balance-currency {
        font-size: 0.8rem;
    }

    .top-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    
    .menu-button span {
        width: 22px;
        height: 2.5px;
    }
}

@media (max-width: 480px) {
    .toast {
        min-width: 280px;
        padding: 1.5rem 2rem;
        font-size: 1.2rem;
    }
    
    .toast-value {
        font-size: 2rem;
    }
    
    .countdown {
        font-size: 7rem;
        top: 40%;
    }
    
    .top-bar {
        padding: 0.35rem 0.5rem;
    }
    
    .logo img {
        height: 48px;
    }
    
    .deposit-btn {
        width: 36px;
        height: 36px;
    }
    
    .deposit-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .multiplier-display {
        font-size: 5rem;
        top: 35%;
        font-weight: 900;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    .potential-win {
        font-size: 0.85rem;
        top: calc(35% + 3.2rem);
    }
    
    .game-status {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    
    .plane {
        width: 60px;
        height: 60px;
        transform: translateY(-40px);
    }
    
    .plane.active {
        transform: translateY(-40px);
    }
    
    .bottom-bar {
        padding: 0.6rem;
        gap: 0.75rem;
        bottom: 44px;
    }
    
    .bet-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .bet-input {
        font-size: 0.85rem;
        padding: 0 0.7rem;
        height: 40px;
    }
    
    .top-meta {
        bottom: 0;
        padding: 0.4rem 0.5rem;
        gap: 0.35rem;
        flex-wrap: nowrap;
    }
    
    .players-chip {
        padding: 0.3rem 0.5rem;
        gap: 0.35rem;
    }
    
    .player-count-text {
        font-size: 0.68rem;
    }
    
    .player-count-text #playerCount {
        font-size: 0.75rem;
    }
    
    .avatar {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
    
    .avatars .avatar + .avatar {
        margin-left: -8px;
    }
    
    .live-pill {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
    
    .live-pill .dot {
        width: 6px;
        height: 6px;
    }
    
    .game-container {
        padding-bottom: 90px;
    }
    
    #gameCanvas {
        transform: translateY(-60px);
    }
    
    .bet-input-wrapper {
        padding: 0.4rem 0.6rem;
    }
    
    .bet-input-wrapper input {
        width: 70px;
        font-size: 0.95rem;
    }
    
    .bet-input-container label {
        font-size: 0.65rem;
    }
    
    .bet-button {
        padding: 0.75rem 1rem;
        font-size: 0.7rem;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .bet-button.cashout {
        font-size: 0.62rem;
        padding: 0.7rem 0.6rem;
        letter-spacing: 0.3px;
    }
    
    .right-section {
        gap: 0.5rem;
    }
    
    .balance {
        padding: 0.35rem 0.6rem;
    }
    
    .balance-amount {
        font-size: 0.85rem;
    }
    
    .balance-label {
        font-size: 0.6rem;
    }

    .menu-button {
        padding: 0.35rem;
    }
    
    .menu-button span {
        width: 20px;
        height: 2px;
    }
}

@media (max-width: 360px) {
    .balance-amount {
        font-size: 0.8rem;
    }
    
    .balance-currency {
        font-size: 0.7rem;
    }
    
    .logo img {
        height: 44px;
    }
    
    .multiplier-history {
        padding: 0.5rem;
        gap: 0.4rem;
    }
    
    .multiplier-item,
    .more-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .waiting-plane {
        width: 100px;
    }
    
    .waiting-cloud {
        width: 150px;
    }
    
    .waiting-text {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    .waiting-timer {
        font-size: 5rem;
    }
    
    .waiting-overlay {
        top: -50px;
    }
    
    .waiting-plane {
        transform: translateY(-40px);
    }
    
    .plane {
        transform: translateY(-30px);
    }
}

/* ========================================
   LIVE CASHOUTS (MULTIPLAYER)
======================================== */
.live-cashout {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    z-index: 50;
}

.cashout-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

.cashout-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cashout-info {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 200, 100, 0.15));
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
    backdrop-filter: blur(10px);
}

.cashout-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #00ff88;
    margin-bottom: 2px;
}

.cashout-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 255, 136, 0.5);
}

.cashout-payout {
    font-size: 0.8rem;
    color: #ffcc00;
    font-weight: 600;
}

@keyframes cashoutPop {
    0% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    10% {
        opacity: 1;
        transform: scale(1.2) translateY(-10px);
    }
    20% {
        transform: scale(1) translateY(-5px);
    }
    70% {
        opacity: 1;
        transform: scale(1) translateY(-5px);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
}

/* ========================================
   CASHOUT TOAST (Notificações Multiplayer)
======================================== */
.cashout-toast-container {
    position: fixed;
    bottom: 125px;
    left: 15px;
    z-index: 99;
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
    pointer-events: none;
    max-width: 280px;
    max-height: calc(100vh - 200px);
    overflow: hidden;
}

.cashout-toast {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 200, 100, 0.15));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
    animation: cashoutToastSlide 3s ease-out forwards;
    min-width: 200px;
}

.cashout-toast-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ff88, #00cc70);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0d0f16;
    flex-shrink: 0;
    border: 2px solid rgba(0, 255, 136, 0.5);
}

.cashout-toast-info {
    flex: 1;
    min-width: 0;
}

.cashout-toast-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #00ff88;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cashout-toast-details {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
}

.cashout-toast-amount {
    color: #fff;
    font-weight: 700;
}

.cashout-toast-multiplier {
    color: #ffcc00;
    font-weight: 700;
}

@keyframes cashoutToastSlide {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    10% {
        opacity: 1;
        transform: translateX(0);
    }
    85% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* ========================================
   BET TOAST (Notificações de Entrada)
======================================== */
.bet-toast-container {
    position: fixed;
    bottom: 125px;
    right: 15px;
    z-index: 99;
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
    pointer-events: none;
    max-width: 280px;
    max-height: calc(100vh - 200px);
    overflow: hidden;
}

.bet-toast {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    animation: betToastSlide 3s ease-out forwards;
    min-width: 180px;
}

.bet-toast-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    border: 2px solid rgba(59, 130, 246, 0.5);
}

.bet-toast-info {
    flex: 1;
    min-width: 0;
}

.bet-toast-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bet-toast-amount {
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
}

.bet-toast-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.65rem;
    margin-right: 4px;
}

@keyframes betToastSlide {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    10% {
        opacity: 1;
        transform: translateX(0);
    }
    85% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

@media (max-width: 480px) {
    .bet-toast-container {
        bottom: 110px;
        right: 10px;
        max-width: calc(100% - 20px);
        max-height: calc(100vh - 180px);
    }
    
    .bet-toast {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .bet-toast-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .bet-toast-name {
        font-size: 0.7rem;
    }
    
    .bet-toast-amount {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .cashout-toast-container {
        bottom: 110px;
        left: 10px;
        max-width: calc(100% - 20px);
        max-height: calc(100vh - 180px);
    }
    
    .cashout-toast {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .cashout-toast-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .cashout-toast-name {
        font-size: 0.7rem;
    }
    
    .cashout-toast-details {
        font-size: 0.65rem;
        gap: 4px;
    }
}

/* ========================================
   SISTEMA DE REAÇÕES AO VIVO - REFATORADO
======================================== */

/* Container de reações flutuantes - CANTO INFERIOR ESQUERDO */
.reaction-float-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 120;
    pointer-events: none;
    overflow: visible;
}

.reaction-floating {
    position: absolute;
    bottom: 125px;
    left: 50px;
    width: 60px;
    height: 60px;
    pointer-events: none;
    will-change: transform, opacity;
    z-index: 121;
}

.reaction-floating img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.6));
    position: relative;
    z-index: 122;
}

/* Animação de subida das reações - DO CANTO INFERIOR ESQUERDO PARA CIMA (1.5s) */
@keyframes reactionFloat {
    0% {
        transform: translateY(0) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(-50px) translateX(10px) scale(1.1);
    }
    40% {
        transform: translateY(-150px) translateX(20px) scale(1.2) rotate(5deg);
    }
    70% {
        opacity: 1;
        transform: translateY(-250px) translateX(30px) scale(1.1) rotate(-5deg);
    }
    90% {
        opacity: 0.5;
        transform: translateY(-300px) translateX(40px) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translateY(-320px) translateX(50px) scale(0.7);
    }
}

/* ========================================
   GAVETA LATERAL DE REAÇÕES
======================================== */
.reaction-drawer {
    position: fixed;
    right: -280px;
    top: 28%;
    z-index: 100;
    transition: right 0.3s ease;
}

.reaction-drawer.open {
    right: 0;
}

/* Botão toggle (seta) - centralizado verticalmente */
.reaction-toggle {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #ff0844;
    border: none;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.reaction-toggle .toggle-arrow {
    font-size: 1.1rem;
    color: white;
    transition: transform 0.2s ease;
}

.reaction-drawer.open .reaction-toggle .toggle-arrow {
    transform: rotate(180deg);
}

/* Painel de emojis */
.reaction-panel {
    background: rgba(13, 15, 22, 0.98);
    border: 2px solid rgba(255, 8, 68, 0.3);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 12px;
    display: flex;
    gap: 10px;
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.4);
    width: 280px;
}

/* Botões de reação */
.reaction-btn {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}

.reaction-btn:hover {
    border-color: rgba(255, 8, 68, 0.5);
}

.reaction-btn:active {
    transform: scale(0.95);
}

.reaction-emoji {
    width: 38px;
    height: 38px;
    object-fit: contain;
    pointer-events: none;
}

/* Animação de clique */
@keyframes reactionClick {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.9); }
}

.reaction-btn.clicked {
    animation: reactionClick 0.2s ease;
}

/* Responsivo */
@media (max-width: 768px) {
    .reaction-drawer {
        right: -240px;
        top: 25%;
    }
    
    .reaction-toggle {
        width: 35px;
        height: 35px;
        left: -35px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .reaction-toggle .toggle-arrow {
        font-size: 1rem;
    }
    
    .reaction-panel {
        width: 240px;
        padding: 10px;
        gap: 8px;
    }
    
    .reaction-btn {
        width: 50px;
        height: 50px;
    }
    
    .reaction-emoji {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .reaction-drawer {
        right: -220px;
        top: 22%;
    }
    
    .reaction-toggle {
        width: 32px;
        height: 32px;
        left: -32px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .reaction-toggle .toggle-arrow {
        font-size: 0.9rem;
    }
    
    .reaction-panel {
        width: 220px;
        padding: 8px;
        gap: 6px;
    }
    
    .reaction-btn {
        width: 46px;
        height: 46px;
    }
    
    .reaction-emoji {
        width: 30px;
        height: 30px;
    }
    
    .reaction-floating {
        width: 45px;
        height: 45px;
    }
}

/* ========================================
   OTIMIZAÇÕES CRÍTICAS PARA MOBILE
======================================== */
@media (max-width: 768px) {
    /* Desabilitar backdrop-filters pesados em mobile */
    .register-modal,
    .deposit-modal,
    .modal-overlay,
    .no-balance-overlay,
    .audio-settings-overlay,
    .potential-win,
    .toast-container {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Simplificar APENAS animações de modais e transições rápidas */
    .modal-content,
    .toast,
    .register-modal,
    .deposit-modal {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
    
    /* Reduzir complexidade de sombras */
    .plane,
    .multiplier-display,
    .bet-button {
        filter: none !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Otimizar rendering do canvas */
    #gameCanvas {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduzir motion para dispositivos que preferem menos animação */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
