  /* --- RESET E VARIÁVEIS --- */
        :root {
            --bg-color: #050810;
            --neon-blue: #00f3ff;
            --neon-dark-blue: #004080;
            --gold: #ffd700;
            --panel-gradient: linear-gradient(180deg, #101626 0%, #050810 100%);
            --input-bg: #0b101a;
            --border-color: #1f2b45;
        }

        * {
            box-sizing: border-box;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            font-family: 'Fredoka', sans-serif;
            margin: 0; padding: 0; outline: none;
        }

        body, html {
            width: 100%; height: 100%;
            background-color: #000;
            overflow: hidden;
            display: flex; justify-content: center; align-items: center;
        }

        .hidden { display: none !important; }

        /* --- TELA DE LOGIN --- */
        #auth-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.95); z-index: 9999;
            display: none;
            justify-content: center; align-items: center;
            backdrop-filter: blur(5px);
        }
        .auth-card {
            width: 85%; max-width: 350px;
            background: var(--panel-gradient);
            border: 2px solid var(--neon-blue);
            border-radius: 20px; padding: 25px 20px;
            text-align: center;
            box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
            position: relative;
        }
        .auth-logo { width: 100px; margin-bottom: 15px; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); }
        .auth-title { color: white; font-size: 1.5rem; margin-bottom: 20px; text-transform: uppercase; font-weight: 800; }
        .auth-input {
            width: 100%; padding: 15px; margin-bottom: 12px;
            background: #0b101a; border: 1px solid #1f2b45; border-radius: 12px;
            color: white; font-size: 1rem; font-weight: 600;
            transition: border 0.3s;
        }
        .auth-input:focus { border-color: var(--neon-blue); }
        .auth-btn {
            width: 100%; padding: 15px;
            background: linear-gradient(180deg, #00f3ff 0%, #007bff 100%);
            border: none; border-radius: 12px;
            color: #003366; font-weight: 900; font-size: 1.1rem;
            cursor: pointer; margin-top: 10px;
            box-shadow: 0 4px 0 #004080;
            transition: transform 0.1s;
        }
        .auth-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #004080; }
        .toggle-auth { color: #00f3ff; font-size: 0.9rem; margin-top: 20px; cursor: pointer; text-decoration: none; font-weight: 600; display: inline-block; padding: 5px; }

        /* --- PRELOADER --- */
        #game-preloader {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: #000; z-index: 10000;
            display: flex; justify-content: center; align-items: center;
        }

        /* --- ESTRUTURA PRINCIPAL --- */
        .mobile-frame {
            position: relative;
            width: 100%; height: 100%;
            max-width: 450px;
            background-color: var(--bg-color);
            display: flex; flex-direction: column;
            overflow: hidden;
            box-shadow: 0 0 50px rgba(0,0,0,0.5);
        }

        /* --- HEADER --- */
        .header-container {
            height: 65px; width: 100%; 
            display: flex; justify-content: space-between; align-items: center; 
            padding: 0 15px;
            background: linear-gradient(180deg, rgba(10, 15, 30, 0.95) 0%, rgba(5, 8, 16, 0.8) 100%);
            z-index: 100;
            position: absolute; top: 0; left: 0;
        }
        .img-btn {
            width: 38px; height: 38px;
            border: none; background-color: transparent;
            background-size: contain; background-repeat: no-repeat; background-position: center;
            cursor: pointer; transition: transform 0.1s;
        }
        .img-btn:active { transform: scale(0.9); }
        .icon-home { background-image: url('game/img/layout/botão_home_02.webp'); }
        .icon-user { background-image: url('game/img/layout/botao_user_03.webp'); }
        
        .icon-sound { 
            background-image: url('game/img/layout/botao_som_01.webp'); 
            width: 38px; height: 38px; 
            margin-left: 10px;
            transition: all 0.2s ease;
        }
        .icon-sound.sound-off { opacity: 0.4; filter: grayscale(100%); transform: scale(0.9); }

        .balance-pill {
            background: linear-gradient(180deg, #001a4d 0%, #000d26 100%);
            border: 2px solid #004080;
            border-top: 2px solid #0080ff;
            border-bottom: 2px solid #00264d;
            border-radius: 30px;
            padding: 4px 6px 4px 15px;
            display: flex; align-items: center; justify-content: space-between;
            box-shadow: 0 0 15px rgba(0, 64, 128, 0.5), inset 0 0 10px rgba(0,0,0,0.5);
            min-width: 140px; position: relative; flex: 1; margin: 0 10px;
        }
        .balance-pill::before {
            content: ''; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
            width: 4px; height: 16px; background: rgba(255,255,255,0.1); filter: blur(2px);
        }
        .balance-text { color: #ffd700; font-weight: 900; font-size: 1.1rem; text-shadow: 0 2px 0px rgba(0,0,0,1); letter-spacing: 0.5px; }
        .btn-plus {
            width: 28px; height: 28px;
            background: linear-gradient(180deg, #0080ff 0%, #004080 100%);
            border: 1px solid #3399ff; border-radius: 8px;
            color: white; font-weight: bold; font-size: 1.2rem;
            display: flex; justify-content: center; align-items: center;
            margin-left: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.5); cursor: pointer;
        }

        /* --- GAME STAGE --- */
        .game-stage {
            flex: 1; position: relative; overflow: hidden;
            background-image: url('game/img/layout/bg-home.webp'); 
            background-size: cover; background-position: center;
        }
        .game-stage::after {
            content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
            background: linear-gradient(to bottom, rgba(5,8,16,0.0), rgba(5,8,16,0.3));
            pointer-events: none;
        }
        .world-container {
            position: absolute; bottom: 0; left: 0; width: 100%;
            display: flex; flex-direction: column-reverse; align-items: center;
            transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
            will-change: transform; padding-bottom: 20px; z-index: 10;
        }
        .step-row {
            height: 180px; width: 100%; position: relative;
            display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
            flex-shrink: 0;
        }
        .base-asset {
            width: 130px; height: 55px;
            background-size: contain; background-repeat: no-repeat; background-position: bottom center;
            z-index: 5; margin-bottom: 5px; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
        }
        .base-green { background-image: url('game/img/base-green.png'); }
        .base-red { background-image: url('game/img/base-red.png'); }
        .portal-wrapper {
            position: absolute; bottom: 85px; width: 120px; height: 120px;
            display: flex; justify-content: center; align-items: center; z-index: 4;
        }
        .portal-asset {
            position: absolute; width: 100%; height: 100%;
            background-size: contain; background-repeat: no-repeat; background-position: center;
            opacity: 0.8; transition: opacity 0.3s;
        }
        .portal-asset.active { opacity: 1; filter: drop-shadow(0 0 20px currentColor); }
        .portal-green { background-image: url('game/img/portal_verde.png'); color: #39ff14; }
        .portal-red { background-image: url('game/img/portal_vermelho.png'); color: #ff3333; }
        .multiplier-text { position: relative; font-size: 1.5rem; font-weight: 900; color: white; text-shadow: 0 3px 6px #000; z-index: 10; }
        .character {
            width: 90px; height: 90px;
            position: absolute; left: 50%; bottom: 60px;
            transform: translateX(-50%);
            background-size: contain; background-repeat: no-repeat; background-position: bottom center;
            z-index: 20; transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
        }

        /* --- BET PANEL --- */
        .bet-panel-wrapper {
            width: 100%; background: #0b101a;
            border-top: 1px solid #1a2540; box-shadow: 0 -10px 40px rgba(0,0,0,0.9);
            padding: 15px 15px; border-radius: 25px 25px 0 0;
            z-index: 50; display: flex; flex-direction: column; gap: 10px; position: relative;
        }
        .bet-panel-wrapper::before {
            content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
            width: 60%; height: 1px; background: linear-gradient(90deg, transparent, #00f3ff, transparent);
        }
        .row-top-input {
            display: flex; justify-content: space-between; align-items: center;
            background: #121826; padding: 4px; border-radius: 15px; border: 1px solid #1f2b45; height: 60px;
        }
        .btn-ctrl {
            width: 55px; height: 100%; background: #1c2538; border: none; border-radius: 12px;
            color: #fff; font-size: 1.6rem; cursor: pointer; box-shadow: 0 4px 0 #111623; transition: all 0.1s;
        }
        .btn-ctrl:active { transform: translateY(3px); box-shadow: 0 1px 0 #111623; }
        .input-display { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
        .label-bet { font-size: 0.65rem; color: #5c7091; font-weight: bold; margin-bottom: 2px; letter-spacing: 1px; }
        .bet-input-field { background: transparent; border: none; color: white; font-size: 1.8rem; font-weight: 800; text-align: center; width: 100%; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
        .row-middle-presets { display: flex; justify-content: space-between; gap: 6px; }
        .btn-preset {
            flex: 1; background: #151b2b; border: 1px solid #232d42; color: #8a9bbd;
            border-radius: 8px; padding: 10px 0; font-size: 0.8rem; font-weight: 800; cursor: pointer; transition: all 0.2s;
        }
        .btn-preset:active { background: #232d42; color: white; border-color: #3b4c6e; }
        .row-bottom-actions { display: flex; gap: 12px; height: 65px; margin-top: 5px; width: 100%; }
        .btn-go {
            flex: 1; border: none; border-radius: 15px; cursor: pointer;
            background: linear-gradient(180deg, #39ff14 0%, #00b300 100%);
            box-shadow: 0 5px 0 #006600, 0 0 20px rgba(57, 255, 20, 0.4);
            color: #003300; font-size: 1.8rem; font-weight: 900;
            text-transform: uppercase; text-shadow: 0 1px 0 rgba(255,255,255,0.4);
            display: flex; justify-content: center; align-items: center; transition: all 0.1s; height: 100%;
        }
        .btn-go:active { transform: translateY(4px); box-shadow: 0 1px 0 #006600; }
        .btn-go:disabled { filter: grayscale(100%); cursor: not-allowed; }
        .btn-cashout {
            flex: 1; border: none; border-radius: 15px; cursor: pointer;
            background: #232d42; border: 2px solid #2f3b52;
            display: flex; flex-direction: column; justify-content: center; align-items: center; 
            line-height: 1.1; color: #5c7091; transition: all 0.2s; height: 100%;
        }
        .btn-cashout.active {
            background: linear-gradient(180deg, #ffd700 0%, #ffaa00 100%);
            color: #4d3300; border: none;
            box-shadow: 0 5px 0 #b37700, 0 0 20px rgba(255, 215, 0, 0.4);
        }
        .btn-cashout.active:active { transform: translateY(4px); box-shadow: 0 1px 0 #b37700; }
        .btn-cashout .info-label { font-size: 0.75rem; font-weight: 900; text-transform: uppercase; }
        .btn-cashout .value-row { font-size: 1.2rem; font-weight: 900; display: flex; align-items: center; gap: 4px; }

        /* --- LOBBY LAYER --- */
        #lobby-layer {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 200;
            display: flex; flex-direction: column; align-items: center; padding: 15px;
            background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('game/img/layout/bg-home.webp');
            background-size: cover; background-position: center;
        }
        .lobby-hero-area { flex: 1; width: 100%; display: flex; justify-content: center; align-items: center; position: relative; }
        .hero-chicken { width: 80%; max-width: 250px; animation: float 3s infinite; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); }
        .lobby-actions { width: 100%; display: flex; flex-direction: column; gap: 15px; margin-bottom: 40px; align-items: center; }
        .lobby-btn {
            width: 90%; height: 60px; border: none; background: transparent; cursor: pointer;
            background-size: contain; background-repeat: no-repeat; background-position: center;
            transition: transform 0.1s;
        }
        .lobby-btn:active { transform: scale(0.95); }
        .btn-play-home { background-image: url('game/img/layout/home/botão_jogar.webp'); }
        .btn-deposit-home { background-image: url('game/img/layout/home/botão-depositar.webp'); }
        .btn-cashout-home { background-image: url('game/img/layout/home/sacar.webp'); }

        .lobby-floating-menu { position: absolute; top: 25%; right: 15px; z-index: 250; }
        .floating-btn-box {
            border: 2px solid #00f3ff; background: linear-gradient(180deg, #00b3ff 0%, #000066 100%);
            border-radius: 15px; width: 60px; height: 75px;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            box-shadow: 0 0 15px rgba(0, 243, 255, 0.5); cursor: pointer; position: relative;
            animation: floatIcon 3s ease-in-out infinite; padding: 5px;
        }
        .floating-btn-box:active { transform: scale(0.95); }
        .floating-icon { width: 40px; height: auto; object-fit: contain; margin-bottom: 2px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
        .btn-label { color: white; font-weight: 800; font-size: 0.65rem; text-transform: uppercase; }
        .notify-badge {
            position: absolute; top: -5px; right: -5px;
            background: #ff3333; color: white; width: 20px; height: 20px;
            border-radius: 50%; border: 2px solid #fff;
            display: flex; justify-content: center; align-items: center; font-size: 0.8rem; font-weight: bold;
        }

        /* --- MODAL PADRÃO --- */
        .new-modal-overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.85); z-index: 600;
            display: flex; justify-content: center; align-items: center;
            backdrop-filter: blur(8px);
        }

        /* --- SKIN DEPOSITO (Com Frame) --- */
        .modal-skin-frame {
            background: transparent !important; border: none !important; box-shadow: none !important;
            background-image: url('image_c6f983.jpg'); 
            background-size: 100% 100%; background-position: center top; background-repeat: no-repeat;
            padding: 130px 25px 40px 25px; 
            width: 95%; max-width: 380px; min-height: 480px; 
            display: flex; flex-direction: column; align-items: center; position: relative;
        }
        
        /* CORREÇÃO CENTRALIZAÇÃO BOTÃO DEPÓSITO */
        #deposit-input-area {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* QR CODE DE DEPÓSITO */
        #deposit-qr-container {
            display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%;
        }
        .qr-img { width: 150px; height: 150px; background: #fff; padding: 5px; border-radius: 10px; }
        .qr-code-text { 
            width: 100%; height: 60px; background: rgba(0,0,0,0.5); border: 1px solid #00f3ff; color: #fff;
            border-radius: 8px; font-size: 0.7rem; padding: 5px; resize: none; overflow: hidden;
        }

        /* --- SKIN SAQUE NOVA (Estilo Clean/Moderno) --- */
        .modal-withdraw-new {
            width: 90%; max-width: 400px;
            background: linear-gradient(180deg, #0d1b2a 0%, #050810 100%);
            border: 2px solid #00f3ff;
            border-radius: 25px;
            box-shadow: 0 0 30px rgba(0, 243, 255, 0.2), inset 0 0 50px rgba(0,0,0,0.8);
            position: relative;
            padding: 25px 20px;
            display: flex; flex-direction: column; align-items: center;
            max-height: 90vh;
            overflow: hidden;
        }

        /* --- MODAL PERFIL --- */
        .profile-card-custom {
            width: 90%;
            max-width: 380px;
            background: radial-gradient(circle at center top, #1a2c55 0%, #050810 80%);
            border: 3px solid #004080;
            border-top: 3px solid #00f3ff;
            border-bottom: 3px solid #00f3ff;
            border-radius: 25px;
            box-shadow: 0 0 30px rgba(0, 64, 128, 0.6), inset 0 0 50px rgba(0,0,0,0.8);
            position: relative;
            padding: 30px 20px;
            display: flex; flex-direction: column; align-items: center;
            animation: popIn 0.3s ease-out;
        }
        .profile-card-custom::before {
            content: ''; position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px;
            border: 1px solid rgba(0, 243, 255, 0.1); border-radius: 15px; pointer-events: none;
        }
        .profile-avatar-section { display: flex; flex-direction: column; align-items: center; margin-bottom: 25px; width: 100%; }
        .avatar-circle-glow {
            width: 80px; height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
            border: 3px solid #fff;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
            display: flex; justify-content: center; align-items: center;
            margin-bottom: 10px;
        }
        .avatar-icon { font-size: 2.5rem; color: #5c3a00; }
        .profile-username { color: #fff; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; text-shadow: 0 2px 5px rgba(0,0,0,1); }
        .profile-email { color: #00f3ff; font-size: 0.9rem; font-weight: 600; margin-top: -2px; }
        
        .profile-stats-container { width: 100%; display: flex; flex-direction: column; gap: 12px; }
        .stat-row {
            background: linear-gradient(90deg, rgba(0,64,128,0.5) 0%, rgba(10,15,30,0.8) 100%);
            border: 2px solid #1f2b45; border-left: 4px solid #00f3ff;
            border-radius: 12px; padding: 10px 15px;
            display: flex; align-items: center; justify-content: space-between;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        }
        .stat-icon-box { width: 40px; height: 40px; margin-right: 12px; display: flex; justify-content: center; align-items: center; }
        .stat-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 5px rgba(255,255,255,0.3)); }
        .stat-info { flex: 1; display: flex; flex-direction: column; }
        .stat-label { color: #fff; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
        .stat-value { color: #ffd700; font-size: 1.1rem; font-weight: 900; text-shadow: 0 1px 2px #000; }

        /* --- BOTÃO SAIR --- */
        .btn-logout {
            width: 100%; padding: 15px; margin-top: 20px;
            background: linear-gradient(180deg, #ff3333 0%, #cc0000 100%);
            border: none; border-radius: 12px;
            color: white; font-weight: 900; font-size: 1rem;
            cursor: pointer; box-shadow: 0 4px 0 #990000;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            text-transform: uppercase; z-index: 100; position: relative;
        }
        .btn-logout:active { transform: translateY(3px); box-shadow: 0 1px 0 #990000; }

        /* Títulos */
        .title-img { width: 70%; margin-bottom: 15px; filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); }

        /* Botão Fechar Customizado */
        .btn-close-skin {
            position: absolute; top: 85px; right: 20px;
            width: 40px; height: 40px; border: none; background-color: transparent;
            background-image: url('game/img/layout/botão%20fechar.webp'); background-size: contain; background-repeat: no-repeat;
            cursor: pointer; transition: transform 0.1s; z-index: 10;
        }
        .btn-close-withdraw {
            position: absolute; top: 10px; right: 10px;
            width: 35px; height: 35px; border: none; background-color: transparent;
            background-image: url('game/img/layout/modal_sacar/botão%20fechar.webp'); background-size: contain; background-repeat: no-repeat;
            cursor: pointer; transition: transform 0.1s; z-index: 10;
        }
        .btn-close-skin:active, .btn-close-withdraw:active { transform: scale(0.9); }

        /* Barras de Input e Info */
        .input-bar-skin {
            width: 100%; height: 45px;
            background-image: url('game/img/layout/depositar/valor_preencher.webp'); 
            background-size: 100% 100%; display: flex; justify-content: center; align-items: center; padding: 0 10px;
        }
        .input-bar-blue {
            width: 100%; height: 45px;
            background-image: url('game/img/layout/modal_sacar/input.webp'); 
            background-size: 100% 100%; display: flex; justify-content: center; align-items: center; padding: 0 10px;
        }
        .input-transparent { background: transparent; border: none; width: 100%; color: white; font-size: 1.2rem; font-weight: bold; text-align: center; }
        .input-transparent-left { background: transparent; border: none; width: 100%; color: white; font-size: 1.1rem; font-weight: bold; text-align: left; padding-left: 5px; }

        /* Elementos Depósito */
        .deposit-row-graphic { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 5px; margin-bottom: 15px; }
        .btn-qty-graphic {
            width: 45px; height: 45px; background-color: transparent; border: none;
            background-size: contain; background-repeat: no-repeat; background-position: center;
            cursor: pointer; transition: transform 0.1s;
        }
        .btn-minus-skin { background-image: url('game/img/layout/depositar/botão_menos.webp'); }
        .btn-plus-skin { background-image: url('game/img/layout/depositar/botão_mais.webp'); }
        .btn-qty-graphic:active { transform: scale(0.9); }
        .presets-row-graphic { display: flex; gap: 5px; width: 100%; justify-content: center; margin-bottom: 25px; }
        .btn-preset-graphic {
            flex: 1; height: 40px; background-image: url('game/img/layout/depositar/botão_valor.webp'); background-size: 100% 100%;
            background-color: transparent; border: none; color: white; font-weight: bold; font-size: 0.9rem;
            cursor: pointer; display: flex; align-items: center; justify-content: center; transition: filter 0.2s;
        }
        .btn-preset-graphic:active { filter: brightness(1.2); transform: translateY(2px); }
        .btn-confirm-skin {
            width: 80%; height: 60px; background-image: url('game/img/layout/depositar/botão_confirmar.webp'); background-size: contain; background-repeat: no-repeat;
            background-color: transparent; border: none; background-position: center; cursor: pointer; transition: transform 0.1s; margin-top: 10px;
        }
        .btn-confirm-skin:active { transform: scale(0.95); }

        /* Elementos Saque */
        .btn-confirm-withdraw {
            width: 80%; height: 60px; background-image: url('game/img/layout/modal_sacar/botão_confirmar.webp'); background-size: contain; 
            background-repeat: no-repeat; background-color: transparent; border: none; background-position: center; cursor: pointer; 
            transition: transform 0.1s; margin-top: 15px; margin-bottom: 10px;
        }
        .btn-confirm-withdraw:active { transform: scale(0.95); }
        
        .info-bar-skin {
            width: 100%; height: 45px; background-size: 100% 100%;
            display: flex; align-items: center; justify-content: flex-end; padding-right: 15px;
            margin-bottom: 8px;
        }
        .info-value-text { color: #fff; font-weight: 800; font-size: 1rem; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
        .field-group-skin { width: 100%; margin-bottom: 8px; display: flex; flex-direction: column; gap: 2px; }
        .field-label-skin { color: #8a9bbd; font-size: 0.75rem; font-weight: 700; margin-left: 5px; text-transform: uppercase; }
        
        .modal-scroll-content {
            width: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 0 5px;
        }
        .modal-scroll-content::-webkit-scrollbar { width: 3px; }
        .modal-scroll-content::-webkit-scrollbar-thumb { background: #00f3ff; border-radius: 3px; }

        .pix-grid { display: flex; gap: 4px; width: 100%; }
        .pix-item { flex: 1; position: relative; cursor: pointer; }
        .pix-item input { display: none; }
        .pix-visual {
            display: flex; justify-content: center; align-items: center; width: 100%; padding: 8px 0;
            background: rgba(0,0,0,0.3); border: 1px solid #1f2b45; border-radius: 6px;
            color: #8a9bbd; font-size: 0.7rem; font-weight: bold; transition: all 0.2s;
        }
        .pix-item input:checked + .pix-visual { background: #00f3ff; color: #000; border-color: #fff; box-shadow: 0 0 5px rgba(0, 243, 255, 0.4); }

        /* --- MODAL DE VITÓRIA --- */
        #win-modal-overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.9); z-index: 800;
            display: flex; justify-content: center; align-items: center; backdrop-filter: blur(5px);
        }
        .win-card {
            width: 320px; height: 360px;
            background: url('game/img/layout/modal_confirmar/popup_background.webp');
            background-size: 100% 100%; background-repeat: no-repeat;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .win-value { 
            font-size: 3rem; font-weight: 900; color: #ffea00; 
            text-shadow: 0 4px 0 #b37700, 0 0 20px rgba(255, 234, 0, 0.5); 
            margin-top: 50px; font-family: 'Fredoka', sans-serif;
        }
        .btn-win-confirm {
            width: 140px; height: 55px; border: none; background: transparent;
            background-image: url('game/img/layout/ganhou/botão_ok.webp'); 
            background-size: contain; background-repeat: no-repeat; background-position: center;
            cursor: pointer; margin-top: 25px; transition: transform 0.1s;
        }
        .btn-win-confirm:active { transform: scale(0.9); }

        .game-notify {
            position: absolute; top: 100px; left: 50%; transform: translateX(-50%);
            background: rgba(0,0,0,0.95); padding: 10px 20px; border-radius: 30px; z-index: 1000;
            opacity: 0; transition: opacity 0.3s; pointer-events: none; font-weight: bold; font-size: 0.9rem;
            border: 1px solid #333; color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.5); text-align: center; white-space: nowrap;
        }
        .game-notify.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
        .notify-error { border-color: #ff3333; color: #ff6666; }
        .notify-success { border-color: #39ff14; color: #39ff14; }
        
        .float-text {
            position: absolute; color: #39ff14; font-weight: 900; font-size: 1.8rem;
            text-shadow: 0 2px 0 #006600; left: 50%; top: 40%;
            transform: translate(-50%, -50%); animation: floatUp 1s forwards;
            pointer-events: none; z-index: 200;
        }

        @keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        @keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
        @keyframes floatUp { to { top: 25%; opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
        @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
        @keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
        .shake { animation: shake 0.4s; }
        /* Adicione no final do style.css */
body.page-home { background-image: url('game/img/layout/bg-home.webp'); background-size: cover; background-position: center; }
body.page-game { background-color: #000; }
/* =========================================
   SISTEMA DE AFILIADOS (IMAGENS CORRIGIDAS)
   ========================================= */

/* Fundo do Modal */
.affiliate-card {
    width: 95%; max-width: 400px;
    background: radial-gradient(circle at center, #1a2c55 0%, #050810 100%);
    border: 2px solid #00f3ff;
    border-radius: 20px;
    padding: 25px 20px;
    display: flex; flex-direction: column; align-items: center;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    animation: popIn 0.3s ease-out;
}

/* Imagem do Título (AFILIADOS) */
.affiliate-title-img { 
    width: 70%; 
    margin-bottom: 20px; 
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5)); 
    /* Nota: O src desta imagem é definido no HTML como image_d5908a.png */
}

/* Botão Fechar (X Azul) */
.btn-close-affiliate {
    position: absolute; top: -10px; right: -10px;
    width: 45px; height: 45px;
    background-image: url('game/img/layout/afiliados/botão%20fechar.webp'); /* */
    background-size: contain; background-repeat: no-repeat; background-position: center;
    background-color: transparent; border: none; cursor: pointer; z-index: 10;
    transition: transform 0.2s;
}
.btn-close-affiliate:active { transform: scale(0.9); }

/* --- ÁREA DO LINK DE COMPARTILHAMENTO --- */
.share-row {
    width: 100%; 
    display: flex; align-items: center; justify-content: space-between; 
    gap: 8px; margin-bottom: 25px;
}

/* Caixa do Link (Barra Azul com Ícone de Usuário) */
.link-box {
    flex: 1; height: 50px;
    background-image: url('game/img/layout/afiliados/link_espaço.webp'); /* */
    background-size: 100% 100%;
    display: flex; align-items: center; 
    padding: 0 15px 0 50px; /* Padding extra na esquerda para não escrever em cima do ícone */
}

.link-input {
    width: 100%; background: transparent; border: none;
    color: #fff; font-weight: bold; font-size: 0.9rem;
    outline: none; overflow: hidden; text-overflow: ellipsis;
}

/* Botão Copiar (Botão Dourado) */
.btn-copy {
    width: 60px; height: 50px;
    background-image: url('game/img/layout/afiliados/botão_link.webp'); /* */
    background-size: contain; background-repeat: no-repeat; background-position: center;
    background-color: transparent; border: none; cursor: pointer;
    transition: filter 0.2s;
}
.btn-copy:active { filter: brightness(1.2); transform: translateY(2px); }

/* --- BARRAS DE ESTATÍSTICA (Base) --- */
/* As imagens específicas (Indicados, Comissão, Disponível) são definidas no HTML via style inline */
.stat-bar-img {
    width: 100%; height: 55px; margin-bottom: 12px;
    background-size: 100% 100%; background-repeat: no-repeat;
    display: flex; align-items: center; justify-content: flex-end;
    padding-right: 25px;
}

.stat-val-text {
    color: #fff; font-size: 1.2rem; font-weight: 900;
    text-shadow: 0 2px 2px rgba(0,0,0,1);
}

/* --- BOTÃO SACAR COMISSÃO (Botão Verde Largo) --- */
.btn-claim-green {
    width: 90%; height: 60px; margin-top: 15px;
    background-image: url('game/img/layout/afiliados/botão_sacar_comissão.webp'); /* */
    background-size: contain; background-repeat: no-repeat; background-position: center;
    background-color: transparent; border: none; cursor: pointer;
    transition: transform 0.1s;
}
.btn-claim-green:active { transform: scale(0.95); }

/* --- BOTÃO DA HOME --- */
.btn-affiliate-home {
    background: transparent; border: none; padding: 0;
    display: flex; align-items: center; justify-content: center;
    width: 90%; height: 60px; cursor: pointer; overflow: hidden;
}
.btn-affiliate-home img {
    height: 100%; width: auto; max-width: 100%;
    object-fit: contain; filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
    pointer-events: none;
}
.btn-affiliate-home:active { transform: scale(0.95); }