* {
    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;
}

/* 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;
}

.register-modal.show {
    display: flex;
    opacity: 1;
}

.register-modal.show .register-content {
    animation: modalBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.register-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9),
                0 0 100px rgba(255, 8, 68, 0.3);
    border: 2px solid rgba(255, 8, 68, 0.4);
}

.register-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 0 20px rgba(255, 8, 68, 0.6));
    display: block;
}

.register-content h2 {
    color: #ff0844;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.register-subtitle {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group {
    text-align: left;
}

.input-group label {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ff0844;
    box-shadow: 0 0 0 3px rgba(255, 8, 68, 0.1);
}

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

.register-button {
    background: linear-gradient(135deg, #ff0844 0%, #ff4757 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 30px rgba(255, 8, 68, 0.6);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.register-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 8, 68, 0.8);
}

.register-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 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: 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(-300px);
        opacity: 0;
    }
}

.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;
    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;
}

.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: #00ff00;
    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: 6rem;
    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;
}

/* 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));
}

@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;
}

.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% + 5rem);
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #00ff00;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.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;
}

.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;
}

@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: 4.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-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: 3.5rem;
    }
    
    .potential-win {
        font-size: 0.85rem;
        top: calc(42% + 3.2rem);
    }
    
    .game-status {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    
    .plane {
        width: 60px;
        height: 60px;
    }
    
    .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: 115px;
    }
    
    .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 1.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .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;
    }
}
