/* ============================================================================
 * Bombardia Lobby HUD — Layout Padrão de Mercado (F2P Multiplayer)
 *
 * Topo Esquerdo : Card de Perfil do Jogador (Emblema + Nick + Emblemas/Perfil)
 * Topo Centro   : Logo Bombardia Online centralizada no céu aberto
 * Topo Direito  : Recursos (Moedas + Gemas) + Sistema (Reportar Bug + Config)
 * Coluna Esq.   : Coleção & Progressão (Loja, Personalizar, Missões)
 * Coluna Dir.   : Social & Comunicação (Amigos, Presentes, Notícias)
 * Inferior Esq. : Chat do Lobby (intacto)
 * Inferior Dir. : Modos de Jogo & CTA Principal Battle Royale (intacto)
 * ============================================================================ */

.hud-lobby {
    --hud-edge-x: clamp(14px, 2.2vw, 34px);
    --hud-edge-top: clamp(10px, 1.8vh, 18px);
    --hud-rail-top: clamp(82px, 11.5vh, 96px);
    --hud-rail-width: clamp(172px, 13.8vw, 194px);
}

/* Header superior limpo (Esquerda = Perfil | Direita = Economia + Sistema) */
.hud-lobby .header {
    top: var(--hud-edge-top);
    height: auto;
    min-height: 58px;
    padding: 0 var(--hud-edge-x);
    pointer-events: none;
}
.hud-lobby .header-left,
.hud-lobby .header-right {
    pointer-events: auto;
}
.hud-lobby .header-right {
    gap: clamp(6px, 0.7vw, 10px);
}

/* Card de Perfil no Topo Esquerdo (padrão Brawl Stars / Stumble Guys) */
.hud-lobby .player-profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: clamp(188px, 16vw, 232px);
    max-width: min(260px, 34vw);
    min-height: 56px;
    padding: 6px 14px 8px 8px;
    border: 3px solid var(--hud-ink, #3c2010);
    border-radius: 14px 20px 14px 18px;
    background: linear-gradient(175deg, #6bd8f7 0%, #27a7df 58%, #1886bf 100%);
    box-shadow: inset 0 2px #b7f5ff, inset 0 -3px #165e88, 0 4px var(--hud-ink, #3c2010), 0 8px 18px #23140766;
    color: #fff6d9;
    text-align: left;
    cursor: pointer;
    transition: transform 0.16s ease, filter 0.16s ease;
}
.hud-lobby .player-profile-card:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}
.hud-lobby .player-profile-card:active {
    transform: translateY(1px);
}
.hud-lobby .player-profile-card:focus-visible {
    outline: 3px solid #fff1b8;
    outline-offset: 3px;
}

.hud-lobby .player-profile-emblem-wrap {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border: 2.5px solid var(--hud-ink, #3c2010);
    border-radius: 10px 13px 10px 12px;
    background: linear-gradient(160deg, #fff2b2, #ffba44 75%, #e58a24);
    box-shadow: inset 0 2px #fffbe0, 0 2px #7c411f;
}
.hud-lobby .player-profile-emblem {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 2px 1px #3b201166);
}
.hud-lobby .player-profile-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}
.hud-lobby .player-profile-name {
    font: 900 clamp(14px, 1.15vw, 17px)/1.12 var(--hud-lettering, var(--ui-display, sans-serif));
    color: #fff7d6;
    text-shadow: 0 2px var(--hud-ink, #3c2010);
    -webkit-text-stroke: 1.4px var(--hud-ink, #3c2010);
    paint-order: stroke fill;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hud-lobby .player-profile-sub {
    margin-top: 2px;
    font: 800 10px/1.1 var(--ui-display, sans-serif);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #d9f8ff;
    text-shadow: 0 1px 1px #10415c;
}

/* Logo centralizada no céu superior (livre de colisões) */
.hud-lobby .game-logo {
    position: fixed;
    top: clamp(6px, 1.2vh, 14px);
    left: 50%;
    right: auto;
    margin: 0;
    transform: translateX(-50%);
    z-index: 90;
    pointer-events: none;
}
.hud-lobby .game-logo img {
    width: clamp(104px, 9.5vw, 146px);
    max-width: 146px !important;
    height: auto;
    filter: drop-shadow(0 4px 5px #21140870);
}

/* Botão Reportar Bug integrado ao bloco de Sistema no Topo Direito (ao lado de Config) */
.hud-lobby .header-right .lobby-report-bug.hud-control {
    position: static;
    top: auto;
    left: auto;
    margin: 0;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 6px;
}
.hud-lobby .header-right .lobby-report-bug .lobby-report-icon {
    width: 28px;
    height: 28px;
}
.hud-lobby .header-right .settings-btn.hud-control {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 6px;
}
.hud-lobby .header-right .settings-btn .hud-emblem {
    width: 30px;
    height: 30px;
}

/* Coluna Esquerda (Loja, Personalizar, Missões) & Coluna Direita (Amigos, Presentes, Notícias) */
.hud-lobby .lobby-left-rail,
.hud-lobby .lobby-right-rail {
    position: fixed;
    top: var(--hud-rail-top);
    z-index: 101;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: var(--hud-rail-width);
}
.hud-lobby .lobby-left-rail {
    left: var(--hud-edge-x);
    align-items: stretch;
}
.hud-lobby .lobby-right-rail {
    right: var(--hud-edge-x);
    align-items: stretch;
}

/* Padronização dos botões nas duas colunas laterais */
.hud-lobby :is(.lobby-left-rail, .lobby-right-rail) .hud-control,
.hud-lobby .lobby-left-rail .daily-quests-launch {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    translate: none;
    transform: none;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    height: auto;
    justify-content: flex-start;
    padding: 6px 14px 8px 12px;
    gap: 8px;
}
.hud-lobby .lobby-left-rail .lobby-customize.arcade-control:hover {
    translate: 0 -2px;
}
.hud-lobby .lobby-left-rail .lobby-customize.arcade-control:active {
    translate: 0 1px;
}
.hud-lobby :is(.lobby-left-rail, .lobby-right-rail) .hud-control .hud-emblem,
.hud-lobby .lobby-left-rail .daily-quests-launch > img {
    width: 26px;
    height: 26px;
    flex: none;
}
.hud-lobby .lobby-left-rail .daily-quests-launch {
    min-height: 50px;
    padding: 6px 12px 9px 11px;
}

/* Responsividade para telas menores / notebook baixo */
@media (max-height: 680px) and (min-width: 601px) {
    .hud-lobby {
        --hud-rail-top: 76px;
        --hud-rail-width: 146px;
    }
    .hud-lobby :is(.lobby-left-rail, .lobby-right-rail) {
        gap: 6px;
    }
    .hud-lobby :is(.lobby-left-rail, .lobby-right-rail) .hud-control,
    .hud-lobby .lobby-left-rail .daily-quests-launch {
        min-height: 43px;
        padding: 4px 11px 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 780px) {
    .hud-lobby .game-logo {
        display: none;
    }
}

.settings-select {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 2px solid #80502d;
    border-radius: 8px 11px 8px 11px;
    background: #fff7e3;
    box-shadow: inset 0 2px #d5a970, 0 1px #fff5d1;
    color: var(--hud-ink, #3c2010);
    font: 700 15px var(--ui-display, sans-serif);
    cursor: pointer;
}

