/* ============================================================
   HABLA PANA! 🇻🇪 — Estilo 100% venezolano
   ============================================================ */

:root {
    --ven-yellow: #ffcc00;
    --ven-blue: #0033a0;
    --ven-red: #ce1126;
    --bg-dark: #050810;
    --bg-panel: #0c1120;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-dim: #9aa3b2;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; margin: 0; padding: 0; }

html, body {
    height: 100%;
    background: var(--bg-dark);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.hidden { display: none !important; }

.screen {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(0, 51, 160, 0.25), transparent 60%),
        radial-gradient(900px 500px at 10% 110%, rgba(206, 17, 38, 0.18), transparent 60%),
        var(--bg-dark);
}

/* ---------- Utilidades ---------- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 14px;
    border: none;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
    letter-spacing: .02em;
    user-select: none;
}
.btn:active { transform: scale(.96); filter: brightness(1.15); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn-primary {
    background: linear-gradient(135deg, var(--ven-yellow), #e6b800);
    color: #1a1400;
}
.btn-secondary {
    background: linear-gradient(135deg, var(--ven-blue), #0044d4);
    color: #fff;
}
.btn-gold {
    background: linear-gradient(135deg, #ffd54a, #f0a500);
    color: #221a00;
}
.btn-ghost {
    background: rgba(255,255,255,.06);
    color: var(--text);
    border: 1px solid var(--glass-border);
}
.btn-danger { background: rgba(206,17,38,.2); color: #ff8a95; border: 1px solid rgba(206,17,38,.4); }

.input {
    width: 100%;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.input::placeholder { color: #5a6472; }
.input:focus { border-color: var(--ven-yellow); }

.icon-btn {
    background: rgba(255,255,255,.08);
    border: none;
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 800;
}

/* ---------- Auth / Bienvenida ---------- */
#screen-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
    gap: 40px;
}
.landing-hero { text-align: center; }
.hero-welcome { color: var(--text-dim); font-size: 14px; max-width: 460px; margin: 14px auto 0; line-height: 1.6; }
.auth-hero { text-align: center; }
.flag-strip {
    height: 6px;
    width: 120px;
    margin: 0 auto 18px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ven-yellow) 33%, var(--ven-blue) 33% 66%, var(--ven-red) 66%);
}
.logo {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(54px, 12vw, 110px);
    letter-spacing: .02em;
    line-height: 1;
    background: linear-gradient(90deg, var(--ven-yellow), #4d7cff, var(--ven-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.tagline { color: var(--text-dim); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }

.auth-card {
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-tab {
    flex: 1;
    padding: 11px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255,255,255,.04);
    color: var(--text-dim);
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
}
.auth-tab.active { background: rgba(255,204,0,.12); color: var(--ven-yellow); border-color: rgba(255,204,0,.4); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-note { margin-top: 16px; text-align: center; font-size: 11px; color: var(--text-dim); }
.form-row { display: flex; gap: 10px; }
.form-row .input { flex: 1; }

/* Info sections (qué / cómo / qué ofrecemos) */
.info-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 1000px;
}
.info-card {
    border-radius: 20px;
    padding: 26px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-icon { font-size: 40px; }
.info-card h3 { font-size: 20px; color: var(--ven-yellow); }
.info-card p { color: var(--text-dim); font-size: 13px; line-height: 1.6; }

/* ---------- Topbar ---------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(5,8,16,.8);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(20px);
}
.brand-mini { font-family: 'Bebas Neue', cursive; font-size: 22px; letter-spacing: .05em; color: var(--ven-yellow); }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}
.badge-wallet { background: rgba(255,204,0,.12); color: var(--ven-yellow); border: 1px solid rgba(255,204,0,.35); }
.badge-premium { background: linear-gradient(135deg, #ffd54a, #f0a500); color: #221a00; }
.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ven-blue), var(--ven-red));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.avatar-img { color: transparent; }

.profile-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    transition: transform .15s ease;
}
.profile-btn:hover { transform: scale(1.08); }

.mail-btn {
    position: relative;
    width: 36px; height: 36px;
    font-size: 16px;
    background: rgba(255,255,255,.08);
}
.mail-badge {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 18px; height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    background: var(--ven-red);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* ---------- Lobby ---------- */
.lobby { max-width: 1000px; margin: 0 auto; padding: 40px 24px; }
.lobby-title { font-family: 'Bebas Neue', cursive; font-size: 40px; letter-spacing: .03em; }
.lobby-sub { color: var(--text-dim); margin: 4px 0 32px; }
.lobby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.lobby-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 28px 22px;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lobby-card:hover { transform: translateY(-4px); border-color: rgba(255,204,0,.4); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.lobby-card h3 { font-size: 20px; }
.lobby-card p { color: var(--text-dim); font-size: 13px; line-height: 1.5; flex: 1; }
.lobby-icon { font-size: 40px; }
.premium-card { border-color: rgba(255,213,74,.35); }

/* ---------- Chat / Video ---------- */
#screen-chat { background: #000; }
.chat-stage { position: relative; width: 100%; height: 100%; }
#remote-video { width: 100%; height: 100%; object-fit: cover; background: #000; }

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(5,8,16,.92);
    z-index: 30;
    text-align: center;
    padding: 24px;
}
.overlay-title { font-family: 'Bebas Neue', cursive; font-size: 34px; letter-spacing: .06em; color: var(--ven-yellow); }
.overlay-sub { color: var(--text-dim); font-size: 14px; }
.spinner {
    width: 52px; height: 52px;
    border: 5px solid rgba(255,204,0,.2);
    border-top-color: var(--ven-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.partner-hud {
    position: absolute;
    top: 20px; left: 20px;
    z-index: 25;
    background: rgba(0,0,0,.45);
    padding: 12px 18px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}
#partner-nick { font-family: 'Bebas Neue', cursive; font-size: 26px; letter-spacing: .03em; }
#partner-state { color: #7da2ff; font-size: 11px; text-transform: uppercase; letter-spacing: .3em; }

.video-pip {
    position: absolute;
    bottom: 110px; right: 18px;
    width: 130px; height: 175px;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: 0 12px 40px rgba(0,0,0,.6);
    z-index: 25;
    background: #111;
}
#local-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }

.filter-canvas {
    position: fixed;
    left: -10000px;
    top: -10000px;
    width: 320px;
    height: 240px;
    pointer-events: none;
}

.chat-hud {
    position: absolute;
    bottom: 22px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 40px;
    background: rgba(10,15,30,.9);
    border: 1px solid rgba(255,255,255,.15);
    z-index: 40;
    backdrop-filter: blur(24px);
}
.hud-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: transform .15s ease;
}
.hud-btn:active { transform: scale(.85); }
.hud-btn-primary {
    width: auto;
    padding: 0 26px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--ven-yellow), #e6b800);
    color: #1a1400;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .05em;
}
.hud-btn-danger { background: rgba(206,17,38,.25); border-color: rgba(206,17,38,.5); }
.hud-btn.off { background: rgba(206,17,38,.5); }

.chat-panel {
    position: absolute;
    right: 16px; top: 16px; bottom: 90px;
    width: 320px; max-width: 90vw;
    background: rgba(10,15,30,.95);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    z-index: 45;
    backdrop-filter: blur(24px);
    overflow: hidden;
}
.chat-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-weight: 900;
    border-bottom: 1px solid var(--glass-border);
}
.chat-scroller {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--ven-blue), #0044d4); }
.msg.them { align-self: flex-start; background: rgba(255,255,255,.08); }
.msg .who { display: block; font-size: 11px; font-weight: 800; opacity: .6; margin-bottom: 2px; }
.emoji-bar { display: flex; gap: 6px; padding: 8px 12px; flex-wrap: wrap; }
.emoji { font-size: 20px; background: none; border: none; cursor: pointer; transition: transform .15s; }
.emoji:active { transform: scale(1.3); }
.chat-input-row { display: flex; gap: 8px; padding: 12px; }

/* ---------- Juegos (menu) ---------- */
.games-menu {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    padding: 18px;
    z-index: 50;
    width: 300px;
    background: rgba(10,15,30,.95);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.games-menu-head { display: flex; justify-content: space-between; font-weight: 900; }
.game-option {
    padding: 13px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.05);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}
.game-option:hover { border-color: rgba(255,204,0,.4); }

/* ---------- Amigos ---------- */
.friends-layout { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 66px); }
.friends-side { border-right: 1px solid var(--glass-border); overflow-y: auto; padding: 16px; }
.add-friend { display: flex; gap: 8px; margin-bottom: 18px; }
.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--text-dim); margin: 14px 0 8px; font-weight: 800; }
.friend-list { display: flex; flex-direction: column; gap: 6px; }
.friend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    cursor: pointer;
    transition: background .15s;
}
.friend-item:hover { background: rgba(255,204,0,.08); }
.friend-item .avatar { flex-shrink: 0; }
.friend-item .fname { font-weight: 700; font-size: 14px; }
.friend-item .fstate { font-size: 11px; color: var(--text-dim); }
.friend-item .factions { margin-left: auto; display: flex; gap: 6px; }
.friend-chat { display: flex; flex-direction: column; overflow: hidden; }
.friend-chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text-dim); padding: 30px; text-align: center; }
#friend-chat-active { flex: 1; display: flex; flex-direction: column; }

/* ---------- Juegos / Apuestas ---------- */
.games-layout { max-width: 1000px; margin: 0 auto; padding: 30px 24px; }
.premium-gate { border-radius: 24px; padding: 40px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.premium-gate h2 { font-family: 'Bebas Neue', cursive; font-size: 34px; color: var(--ven-yellow); }
.premium-gate-note { color: var(--text-dim); font-size: 12px; max-width: 420px; }
.premium-redeem { display: flex; gap: 10px; width: 100%; max-width: 420px; flex-wrap: wrap; }
.premium-redeem .input { flex: 1; min-width: 200px; text-transform: uppercase; letter-spacing: .08em; }
.bet-games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 26px; }
.bet-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 22px;
    cursor: pointer;
    transition: transform .18s, border-color .18s;
    display: flex; flex-direction: column; gap: 8px;
}
.bet-card:hover { transform: translateY(-3px); border-color: rgba(255,204,0,.4); }
.bet-card.selected { border-color: var(--ven-yellow); box-shadow: 0 0 0 2px rgba(255,204,0,.25); }
.bet-card.special { border-color: rgba(255,213,74,.5); }
.bet-card h3 { font-size: 18px; }
.bet-card p { color: var(--text-dim); font-size: 12px; }
.bet-setup { border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.bet-setup-row { display: flex; flex-direction: column; gap: 10px; }
.bet-setup-row label { font-weight: 800; font-size: 13px; }
.bet-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.05);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.chip.active { background: rgba(255,204,0,.18); border-color: var(--ven-yellow); color: var(--ven-yellow); }
.bet-status { text-align: center; font-size: 13px; color: var(--text-dim); font-weight: 600; }
#active-bet { margin-top: 20px; }

/* ---------- Overlay de juego ---------- */
.game-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}
.game-modal {
    width: 100%;
    max-width: 460px;
    border-radius: 24px;
    padding: 22px;
    background: rgba(10,15,30,.97);
}
.game-modal-head { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 18px; margin-bottom: 18px; }
.game-board { display: flex; flex-direction: column; gap: 16px; }

.tictactoe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 300px; margin: 0 auto; }
.tictactoe .cell {
    aspect-ratio: 1;
    font-size: 44px;
    font-weight: 900;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.05);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.tictactoe .cell:disabled { cursor: default; }

.game-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.game-move {
    padding: 14px 22px;
    font-size: 22px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}
.game-move:active { transform: scale(.94); }

.game-score { display: flex; justify-content: space-around; text-align: center; }
.game-score div b { display: block; font-family: 'Bebas Neue', cursive; font-size: 40px; }
.game-score.multi { flex-wrap: wrap; gap: 10px; }
.score-name { font-size: 11px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; }
.score-name.me { color: var(--ven-yellow); }
.game-info { text-align: center; color: var(--text-dim); font-size: 14px; font-weight: 600; }
.game-info.big { font-family: 'Bebas Neue', cursive; font-size: 26px; color: var(--ven-yellow); }

.card-face {
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    color: #222;
    text-align: center;
    font-weight: 900;
    min-width: 80px;
}
.card-face.oro, .card-face.basto { color: #b8860b; }
.card-face.copa, .card-face.espada { color: #c0392b; }

/* ---------- Toast ---------- */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: min(92vw, 420px);
    pointer-events: none;
}
.toast {
    padding: 13px 20px;
    border-radius: 14px;
    background: rgba(10,15,30,.95);
    border: 1px solid var(--glass-border);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
    animation: toast-in .3s ease, toast-out .3s 3.2s ease forwards;
}
.toast.error { border-color: rgba(206,17,38,.5); color: #ff9aa4; }
.toast.success { border-color: rgba(255,204,0,.5); color: var(--ven-yellow); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-16px); } }

@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.animate-float { animation: float-y 3s ease-in-out infinite; }

/* ---------- Perfil ---------- */
.profile-layout { max-width: 560px; margin: 0 auto; padding: 30px 20px; }
.profile-card { border-radius: 24px; padding: 28px; }
.profile-photo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}
.profile-photo {
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,204,0,.4);
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.profile-avatar-fallback { width: 120px; height: 120px; font-size: 44px; }
.profile-upload { cursor: pointer; }
.profile-fields { display: flex; flex-direction: column; gap: 10px; }
.profile-fields label { font-weight: 800; font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* ---------- Billetera ---------- */
.wallet-layout { max-width: 900px; margin: 0 auto; padding: 30px 24px; display: flex; flex-direction: column; gap: 20px; }
.wallet-instructions { border-radius: 18px; padding: 20px 24px; }
.wallet-instructions h3 { font-size: 18px; color: var(--ven-yellow); margin-bottom: 8px; }
.wallet-instructions p { color: var(--text-dim); font-size: 13px; line-height: 1.6; }
.wallet-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.wallet-form { border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.wallet-form h3 { font-size: 18px; }
.wallet-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.wallet-list-col { display: flex; flex-direction: column; gap: 8px; }
.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-item {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wi-amount { font-weight: 900; font-size: 18px; color: var(--ven-yellow); }
.wi-info { font-size: 12px; color: var(--text-dim); }
.wi-status { font-size: 11px; font-weight: 800; }
.wi-status.pending { color: #f0a500; }
.wi-status.approved { color: var(--green, #3fb950); }
.wi-status.rejected { color: var(--red, #da3633); }

/* ---------- Filtros de animales ---------- */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.05);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}
.filter-option:hover { border-color: rgba(255,204,0,.4); }
.filter-option span { font-size: 22px; }

.partner-add { margin-top: 8px; }

/* ---------- Responsive: tablet ---------- */
@media (max-width: 1024px) {
    .lobby { padding: 28px 18px; }
    .wallet-layout, .games-layout, .profile-layout { padding: 22px 18px; }
    .chat-panel { width: 280px; }
}

/* ---------- Responsive: móvil ---------- */
@media (max-width: 720px) {
    html, body { font-size: 15px; }

    /* Landing */
    #screen-auth { padding: 28px 16px; gap: 28px; }
    .logo { font-size: clamp(44px, 16vw, 64px); }
    .form-row { flex-direction: column; }
    .auth-card { padding: 20px; }
    .info-sections { grid-template-columns: 1fr; }

    /* Topbar */
    .topbar { padding: 10px 12px; gap: 8px; }
    .brand-mini { font-size: 17px; }
    .badge-premium { display: none; }
    .topbar-user { gap: 6px; }
    .topbar-user .badge-wallet { padding: 5px 9px; font-size: 11px; }

    /* Lobby */
    .lobby { padding: 22px 14px; }
    .lobby-title { font-size: 30px; }
    .lobby-grid { grid-template-columns: 1fr; gap: 14px; }

    /* Perfil */
    .profile-card { padding: 20px; }

    /* Billetera */
    .wallet-forms, .wallet-lists { grid-template-columns: 1fr; }

    /* Juegos / apuestas */
    .bet-games-grid { grid-template-columns: 1fr; }

    /* Video chat */
    .partner-hud { top: 10px; left: 10px; padding: 10px 14px; }
    #partner-nick { font-size: 20px; }
    .video-pip { width: 90px; height: 128px; bottom: 132px; right: 10px; }
    .chat-hud {
        bottom: 12px;
        width: 96%;
        max-width: none;
        gap: 5px;
        padding: 8px 10px;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 28px;
    }
    .hud-btn { width: 40px; height: 40px; font-size: 16px; }
    .hud-btn-primary { padding: 0 14px; font-size: 11px; }
    .chat-panel { top: 8px; right: 8px; bottom: 140px; width: 92vw; max-width: none; }

    /* Friends */
    .friends-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: calc(100vh - 58px); }
    .friends-side { border-right: none; border-bottom: 1px solid var(--glass-border); max-height: 45vh; }
    .friend-chat { min-height: 45vh; }

    /* Overlay de juego */
    .game-modal { max-width: 100%; border-radius: 18px; padding: 16px; }
    .tictactoe .cell { font-size: 34px; }

    /* Diálogo de copia */
    .toast { width: 92vw; font-size: 13px; }
}

/* ---------- Responsive: móvil pequeño ---------- */
@media (max-width: 380px) {
    .logo { font-size: 40px; }
    .hud-btn { width: 36px; height: 36px; font-size: 15px; }
    .hud-btn-primary { padding: 0 12px; font-size: 10px; }
    .video-pip { width: 76px; height: 110px; bottom: 140px; }
}

