/* --- 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;
}

/* --- BOTÕES DO HEADER (HOME, SOM, PERFIL) TEMA ARCADE --- */
.img-btn {
    width: 42px; height: 42px;
    background-color: #0d47a1; /* Azul escuro sólido */
    border: 2px solid #000000; /* Borda preta grossa */
    border-radius: 50%;
    display: flex; /* Necessário para centralizar o ícone */
    justify-content: center;
    align-items: center;
    color: white; /* Cor do ícone */
    font-size: 1.2rem; /* Tamanho do ícone */
    text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000; /* Contorno preto no próprio ícone */
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 3px 0 #000000; /* Efeito 3D bloco */
    cursor: pointer; 
    transition: all 0.1s;
}

.img-btn:active { 
    transform: translateY(3px); 
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 #000000; 
}

/* Ajuste específico para o botão de som */
.icon-sound { 
    margin-left: 0; 
}

/* Estilo para quando o som estiver mutado (Fica cinza e afundado) */
.icon-sound.sound-off { 
    background-color: #555555; 
    transform: translateY(3px); 
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 #000000;
}

/* --- CARD DE SALDO (TEMA FLAPPY/ARCADE) --- */
.balance-pill {
    background: #0d47a1; 
    border: 3px solid #000000; 
    border-radius: 12px; 
    padding: 4px 6px 4px 12px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3), 0 4px 0 #000000; 
    min-width: 150px; /* Mantém um tamanho fixo e seguro */
    position: relative; 
    /* Removemos o flex:1 e as margins antigas que empurravam ele torto */
}
.balance-pill::before {
    display: none; 
}
.balance-text { 
    color: #ffd700; 
    font-weight: 900; 
    font-size: 1.2rem; 
    text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 1px 1px 0 #000, -1px -1px 0 #000, 0 4px 0 #000; 
    letter-spacing: 1px; 
}
.btn-plus {
    width: 32px; height: 32px;
    background: #39ff14;
    border: 2px solid #000000;
    border-radius: 8px;
    color: white; font-weight: 900; font-size: 1.4rem;
    display: flex; justify-content: center; align-items: center;
    margin-left: 8px; 
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.6), 0 3px 0 #000000;
    cursor: pointer;
    text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000;
    transition: all 0.1s;
}
.btn-plus:active { 
    transform: translateY(3px); 
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 0 0 #000000; 
}
.currency-symbol {
    color: #00f3ff;
    font-weight: 900;
    font-size: 1.1rem;
    text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000;
}

/* --- GAME STAGE --- */
.game-stage {
    flex: 1; position: relative; overflow: hidden;
    background-image: url('https://i.pinimg.com/564x/b2/b0/84/b2b084ad6061dfe2122302266ea8af58.jpg'); 
    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: 5px; /* Deixa os botões bem juntinhos */
    margin-bottom: 40px; align-items: center; 
}
.lobby-btn {
    width: 95%; height: 95px; /* Tamanho grande e padronizado para TODOS */
    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('https://i.ibb.co/hJqYtFQ4/image-removebg-preview-6.png'); }
.btn-deposit-home { background-image: url('https://i.ibb.co/67hwH4xW/image-removebg-preview-7.png'); }
.btn-cashout-home { background-image: url('https://i.ibb.co/tMpWXRmT/image-removebg-preview-8.png'); }

.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/fechar.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/fechar.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: 60px;
    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/menos.webp'); }
.btn-plus-skin { background-image: url('game/img/layout/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('https://i.ibb.co/YTXQ4N10/11a829e3-2126-442b-9ad6-61a32c0ae65e.png'); 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)); 
}

/* 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/fechar.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; 
}

.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) --- */
.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-image: url('https://i.ibb.co/yn2XyM9C/image-removebg-preview-10.png');
}
.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); }

/* ======================================================
   TEMA ARCADE PARA MODAIS (ZERO IMAGENS)
   ====================================================== */

/* Fundo unificado para todos os modais */
.arcade-modal {
    width: 92%; max-width: 390px;
    background: #0d47a1; /* Azul arcade de fundo */
    border: 4px solid #000000; /* Borda grossa cartoon */
    border-radius: 16px;
    box-shadow: inset 0 4px 0 rgba(255,255,255,0.2), 0 8px 0 #000000;
    padding: 25px 20px;
    display: flex; flex-direction: column; align-items: center;
    position: relative;
    max-height: 90vh; overflow-y: auto;
}
.arcade-modal::-webkit-scrollbar { display: none; }

/* Botão Fechar (X Vermelho) */
.arcade-btn-close {
    position: absolute; top: -15px; right: -15px;
    width: 45px; height: 45px;
    background: #ff3333; border: 3px solid #000; border-radius: 50%;
    color: white; font-size: 1.5rem;
    display: flex; justify-content: center; align-items: center;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.4), 0 4px 0 #000;
    cursor: pointer; transition: 0.1s; z-index: 100;
}
.arcade-btn-close:active { transform: translateY(4px); box-shadow: inset 0 0 0 rgba(255,255,255,0.4), 0 0 0 #000; }

/* Títulos Substituindo Imagens */
.arcade-title {
    color: #ffd700; font-size: 2.2rem; font-weight: 900; text-transform: uppercase;
    margin-bottom: 20px; letter-spacing: 2px;
    text-shadow: 3px 0 0 #000, -3px 0 0 #000, 0 3px 0 #000, 0 -3px 0 #000, 2px 3px 0 #000;
}

/* Campos de Texto / Inputs */
.arcade-input-bar {
    width: 100%; height: 55px;
    background: #050810; border: 3px solid #000; border-radius: 10px;
    display: flex; align-items: center; padding: 0 15px;
    box-shadow: inset 0 4px 5px rgba(0,0,0,0.8);
}
.arcade-input-bar input { flex: 1; outline: none; }

/* Botões Menos/Mais do Depósito */
.arcade-btn-qty {
    width: 55px; height: 55px;
    border: 3px solid #000; border-radius: 12px;
    color: white; font-size: 1.5rem; font-weight: 900;
    display: flex; justify-content: center; align-items: center;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.4), 0 4px 0 #000; cursor: pointer;
}
.arcade-btn-qty.red { background: #ff3333; }
.arcade-btn-qty.green { background: #39ff14; }
.arcade-btn-qty:active { transform: translateY(4px); box-shadow: none; }

/* Botões de Valores Prontos (R$ 10, 20, 50) */
.arcade-btn-preset {
    flex: 1; height: 45px;
    background: #00f3ff; color: #000;
    border: 3px solid #000; border-radius: 8px;
    font-weight: 900; font-size: 1rem;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.5), 0 3px 0 #000; cursor: pointer;
}
.arcade-btn-preset:active { transform: translateY(3px); box-shadow: none; }

/* Botãozão Principal (Verde para confirmar, Vermelho para Sair) */
.arcade-btn-confirm {
    width: 100%; height: 65px;
    background: #39ff14; color: #000;
    border: 3px solid #000; border-radius: 12px;
    font-weight: 900; font-size: 1.4rem; text-transform: uppercase;
    margin-top: 15px; margin-bottom: 10px;
    box-shadow: inset 0 3px 0 rgba(255,255,255,0.5), 0 5px 0 #000; cursor: pointer;
}
.arcade-btn-confirm.danger { background: #ff3333; color: white; }
.arcade-btn-confirm:active { transform: translateY(5px); box-shadow: inset 0 0 0 rgba(255,255,255,0.5), 0 0 0 #000; }

/* Barras de Estatística (Afiliados e Perfil) */
.arcade-stat-bar {
    width: 100%; height: 50px;
    background: #1a2c55; border: 3px solid #000; border-radius: 10px;
    display: flex; align-items: center; justify-content: space-between;
}

/* ======================================================
   MODAIS MODERNOS - TEMA HOME/JOGO
   ====================================================== */
.new-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 6000;
    padding: 18px 12px max(18px, env(safe-area-inset-bottom));
    background:
        linear-gradient(180deg, rgba(4, 12, 34, 0.54), rgba(2, 8, 24, 0.74)),
        radial-gradient(circle at 50% 20%, rgba(65, 227, 255, 0.12), transparent 24%);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px) saturate(1.05);
}

.modal-skin-frame,
.modal-withdraw-new,
.profile-card-custom,
.affiliate-card {
    width: min(94vw, 420px) !important;
    max-height: min(88dvh, 760px);
    border-radius: 28px !important;
    border: 2px solid rgba(150, 215, 255, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 24px 50px rgba(0,0,0,0.34) !important;
    backdrop-filter: blur(10px) saturate(1.05);
    overflow: hidden;
}

.modal-skin-frame {
    min-height: 0 !important;
    padding: 96px 18px 24px !important;
    background:
        linear-gradient(180deg, rgba(8, 31, 84, 0.92), rgba(2, 18, 52, 0.96)) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-withdraw-new,
.profile-card-custom,
.affiliate-card {
    padding: 22px 18px !important;
    background:
        linear-gradient(180deg, rgba(8, 31, 84, 0.92), rgba(2, 18, 52, 0.96)) !important;
}

.profile-card-custom::before {
    border: 1px solid rgba(255,255,255,0.06) !important;
}

.btn-close-skin,
.btn-close-withdraw,
.btn-close-affiliate {
    top: 12px !important;
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));
}

.title-img,
.affiliate-title-img {
    width: min(72%, 250px) !important;
    margin-bottom: 16px !important;
}

#deposit-input-area,
#deposit-qr-container,
.modal-scroll-content,
.profile-stats-container {
    width: 100%;
}

.modal-scroll-content {
    padding: 0 2px 2px !important;
}

.input-bar-skin,
.input-bar-blue,
.info-bar-skin,
.link-box,
.stat-row,
.stat-bar-img {
    border-radius: 18px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 18px rgba(0,0,0,0.18);
}

.field-label-skin,
.profile-email,
.link-input,
.qr-code-text,
.stat-label {
    color: #d8ecff !important;
}

.profile-username,
.stat-value,
.info-value-text,
.stat-val-text {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.35) !important;
}

.btn-confirm-skin,
.btn-confirm-withdraw,
.btn-claim-green {
    width: min(88%, 300px) !important;
    height: 64px !important;
    margin-top: 14px !important;
}

.btn-copy {
    width: 64px !important;
    height: 50px !important;
}

.btn-logout {
    border-radius: 18px !important;
    background: linear-gradient(180deg, #ff5858 0%, #dc2626 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 10px 18px rgba(0,0,0,0.22) !important;
}

.game-notify {
    position: fixed !important;
    top: max(20px, env(safe-area-inset-top)) !important;
    border-radius: 18px !important;
    background: rgba(6, 18, 49, 0.94) !important;
    border: 1px solid rgba(148, 214, 255, 0.18) !important;
    box-shadow: 0 14px 24px rgba(0,0,0,0.26) !important;
}

#win-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(2, 8, 24, 0.82) !important;
    backdrop-filter: blur(8px);
}

.win-card {
    width: min(88vw, 340px) !important;
    height: min(70vh, 380px) !important;
}

@media (min-width: 900px) {
    .new-modal-overlay {
        padding: 28px;
    }

    .modal-skin-frame,
    .modal-withdraw-new,
    .profile-card-custom,
    .affiliate-card {
        width: min(420px, 92vw) !important;
    }
}

@media (max-width: 480px) {
    .new-modal-overlay {
        align-items: center; /* <-- AQUI FOI ALTERADO PARA CENTER */
        padding: 10px 10px max(10px, env(safe-area-inset-bottom));
    }

    .modal-skin-frame,
    .modal-withdraw-new,
    .profile-card-custom,
    .affiliate-card {
        width: 100% !important;
        max-height: min(88dvh, 760px);
        border-radius: 24px !important;
    }

    .modal-skin-frame {
        padding: 84px 14px 18px !important;
    }

    .modal-withdraw-new,
    .profile-card-custom,
    .affiliate-card {
        padding: 18px 14px !important;
    }

    .title-img,
    .affiliate-title-img {
        width: min(76%, 220px) !important;
    }

    .btn-confirm-skin,
    .btn-confirm-withdraw,
    .btn-claim-green {
        width: min(94%, 280px) !important;
        height: 58px !important;
    }

    .profile-username {
        font-size: 1.2rem !important;
    }

    .stat-row {
        padding: 10px 12px !important;
    }

    .stat-val-text,
    .stat-value,
    .info-value-text {
        font-size: 1rem !important;
    }
}
    padding: 0 15px; margin-bottom: 10px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.1), 0 4px 0 #000;
    color: white; font-weight: 800; font-size: 1.1rem;
}
.arcade-stat-bar i { color: #ffd700; margin-right: 10px; font-size: 1.3rem; text-shadow: 2px 2px 0 #000;}

/* Correção visual tipo PIX */
.pix-grid { display: flex; gap: 6px; width: 100%; margin-top: 5px; }
.pix-visual {
    background: #1a2c55; border: 2px solid #000; border-radius: 8px;
    color: white; font-weight: 900; padding: 10px 0; box-shadow: 0 3px 0 #000;
    display: flex; justify-content: center; align-items: center; width: 100%;
}
.pix-item input:checked + .pix-visual {
    background: #00f3ff; color: #000; transform: translateY(3px); box-shadow: none;
}
