/* css/core-hotbar-hud.css — hotbar, barras do jogador, efeitos, caçada/diário/mundo, menu do jogo (#game-menu-panel).
 * v0.74: dividido de core.css SEM mudar a ordem das regras (a cascata depende dela). Ordem de carga: ver index.html. */
/* Hotbar 4 slots — sempre visível (estilo Eidolon) */
  #hotbar-container {
    display: flex !important;
    position: absolute;
    left: 50%;
    /* acima do chat/xp, à esquerda do Attack — não cobre Use */
    bottom: max(150px, calc(env(safe-area-inset-bottom) + 140px));
    transform: translateX(-50%);
    gap: 8px;
    pointer-events: auto;
    z-index: 23;
  }
  .hotbar-slot {
    width: 52px; height: 52px; border-radius: 10px;
    background: rgba(10,12,18,0.92);
    border: 1.5px solid rgba(198,161,91,0.35);
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    color: #e8d5a8; font-size: 20px;
    cursor: pointer; user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .hotbar-slot:active { transform: scale(0.94); border-color: #c6a15b; }
  .hotbar-slot.empty { opacity: 0.55; border-color: rgba(255,255,255,0.12); }
  .hotbar-slot .hotbar-key {
    position: absolute; top: 3px; left: 5px;
    font-size: 9px; color: #889; font-weight: 700;
  }
  .hotbar-slot .hotbar-cd {
    position: absolute; inset: 0; border-radius: 9px;
    background: rgba(0,0,0,0.55);
    display: none; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; color: #fff;
  }
  .hotbar-slot.cd .hotbar-cd { display: flex; }
  .hotbar-slot .hotbar-qty {
    position: absolute; bottom: 2px; right: 4px;
    font-size: 10px; font-weight: 700; color: #ffe8a0;
  }
  @media (min-width: 900px) {
    #hotbar-container { bottom: 64px; }
    .hotbar-slot { width: 48px; height: 48px; }
  }

  /* Grid denso de slots (padrão Diablo / mobile RPG) */
  #inv-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 3px !important;
    max-height: 148px;
    overflow-y: auto;
    padding: 1px 0 2px;
  }
  .inv-item-card {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    background: rgba(16, 14, 20, 0.95);
    border: 1px solid rgba(198,161,91,0.25);
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3);
    cursor: pointer;
    min-height: 0;
  }
  .inv-item-card:active { transform: scale(0.92); }
  .inv-item-card .ico { font-size: 16px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5)); pointer-events:none; }
  .inv-item-card .qty-badge {
    position: absolute; right: 1px; bottom: 0; font-size: 9px; font-weight: 800; color: #fff;
    background: rgba(0,0,0,0.75); padding: 0 3px; border-radius: 4px; line-height: 1.3; pointer-events:none;
  }
  .inv-item-card .eq-badge {
    position: absolute; left: 1px; top: 1px; font-size: 8px; font-weight: 800; color: #1a1208;
    background: #ffe8a0; border-radius: 3px; padding: 0 2px; line-height: 1.3; pointer-events:none;
  }
  .inv-item-card.rarity-rare   { border-color: #4a9fe0; }
  .inv-item-card.rarity-epic   { border-color: #a35fe0; }
  .inv-item-card.rarity-legend { border-color: #e0b34a; }
  .inv-item-card.equipped { border-color: #ffe8a0; }
  #inv-equip-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    margin: 3px 0 4px;
  }
  .inv-equip-slot {
    background: rgba(12,14,18,0.9);
    border: 1px solid rgba(198,161,91,0.28);
    border-radius: 6px;
    padding: 3px 1px;
    text-align: center;
    font-size: 9px;
    color: #9aa4af;
    min-height: 32px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  .inv-equip-slot .es-ico { font-size: 15px; display: block; margin: 0; line-height: 1.1; }
  .inv-equip-slot .es-name { display: none; }
  .inv-equip-slot.empty { opacity: 0.45; }
  #inv-footer-hint {
    font-size: 11px; color: #6a7380; margin-top: 6px; line-height: 1.35;
  }

  #player-hud-eid {
    position: absolute; top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    width: min(190px, 46vw); pointer-events: none; display: none; z-index: 22;
  }
  .bar-container {
    width: 100%; height: 20px;
    background: rgba(8,10,16,0.8);
    border: 1px solid rgba(0,0,0,0.35);
    margin-bottom: 3px; position: relative; border-radius: 6px; overflow: hidden;
  }
  .bar-fill { height: 100%; width: 100%; transition: width 0.15s ease-out; }
  .health-fill { background: linear-gradient(90deg, #8b3030, #c45a5a); }
  .mana-fill { background: linear-gradient(90deg, #2a4a8a, #4a7ac8); }
  .bar-text {
    position: absolute; inset: 0; display: flex; justify-content: center; align-items: center;
    font-size: 10px; color: #fff; text-shadow: 0 1px 2px #000; font-weight: 700;
  }

  /* XP + nome: faixa central acima do chat, sem invadir botões */
  #bottom-xp-bar {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    width: min(200px, 48vw);
    bottom: max(44px, calc(env(safe-area-inset-bottom) + 36px));
    height: 14px; z-index: 21; pointer-events: none;
    background: rgba(0,0,0,0.55); border-radius: 4px; overflow: hidden;
    border: 1px solid rgba(198,161,91,0.35);
  }
  #bottom-xp-fill {
    height: 100%; width: 0%; background: linear-gradient(90deg, #6a5020, #c6a15b);
    transition: width 0.2s;
  }
  #bottom-xp-label {
    position: absolute; left: 6px; right: 6px; top: 0; bottom: 0;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 9px; color: #f0e6d0; font-weight: 700; text-shadow: 0 1px 2px #000;
  }

  /* Painel Effects */
  #effects-panel {
    display: none; position: fixed; left: 50%; top: 22%; transform: translateX(-50%);
    z-index: 35; width: min(340px, 92vw);
    background: rgba(16,20,28,0.96); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px; padding: 14px 16px; color: #e8eef5;
    pointer-events: auto; box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  }
  #effects-panel.show { display: block; }
  #effects-panel h3 { margin: 0 0 10px; font-size: 15px; color: #e8d5a8; }
  #effects-panel .eff-card {
    border-left: 3px solid #6ee7c8; background: rgba(255,255,255,0.04);
    padding: 10px 12px; border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.4;
  }
  #effects-panel .eff-card b { display: block; margin-bottom: 4px; }
  #effects-close {
    float: right; border: none; background: rgba(255,255,255,0.1);
    color: #fff; border-radius: 8px; padding: 6px 12px; font-weight: 600; cursor: pointer;
  }

  #weapon-switch {
    position: absolute; right: 28px; bottom: 200px; display: none; flex-direction: column; gap: 8px;
    pointer-events: auto;
  }
  .weapon-btn {
    width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.3); color: #fff; font-size: 20px;
    pointer-events: auto; display: flex; align-items: center; justify-content: center; cursor: pointer;
  }
  .weapon-btn.active { border-color: #c6a15b; background: rgba(198,161,91,0.25); }

  #desktop-hint {
    position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
    color: #6b7480; font-size: 12px; letter-spacing: 0.02em;
  }

  #enemy-banner {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -160%);
    color: #ffd7d0; font-size: 13px; opacity: 0; transition: opacity 0.3s ease;
    pointer-events: none; text-shadow: 0 1px 4px #000;
  }
  #hunt-objective {
    position: absolute; top: max(58px, calc(env(safe-area-inset-top) + 52px));
    left: max(10px, env(safe-area-inset-left));
    max-width: min(200px, 48vw);
    background: rgba(10,14,20,0.9); border: 1px solid rgba(255,255,255,0.1);
    color: #e8eef5; font-size: 11px; font-weight: 600;
    padding: 6px 10px; border-radius: 8px; pointer-events: none;
  }
  #hunt-objective .avail { color: #e0b75a; font-weight: 700; margin-left: 4px; }
  #daily-hud {
    position: absolute;
    top: max(118px, calc(env(safe-area-inset-top) + 110px));
    left: max(10px, env(safe-area-inset-left));
    max-width: min(220px, 52vw);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 8px 10px;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    z-index: 20;
  }
  /* V5 — Living World + Adventure Loop */
  #world-event-hud {
    position:absolute; top:max(220px,calc(env(safe-area-inset-top) + 212px)); left:max(10px,env(safe-area-inset-left));
    width:min(250px,58vw); background:rgba(12,16,21,.88); border:1px solid rgba(198,161,91,.32);
    border-radius:11px; padding:8px 10px; z-index:20; pointer-events:none; box-shadow:0 8px 22px rgba(0,0,0,.3);
    opacity:0; transform:translateY(-5px); transition:opacity .25s,transform .25s;
  }
  #world-event-hud.show{opacity:1;transform:none}
  #world-event-hud .we-title{font-family:var(--font-display);font-size:11px;color:#e8d5a8;font-weight:800;letter-spacing:.04em}
  #world-event-hud .we-text{font-size:11px;color:#d9e1e8;margin-top:3px;line-height:1.3}
  #world-event-hud .we-progress{height:4px;background:rgba(255,255,255,.1);border-radius:4px;overflow:hidden;margin-top:6px}
  #world-event-hud .we-fill{height:100%;width:0;background:linear-gradient(90deg,#c6a15b,#7cf296);transition:width .2s}
  #world-event-hud .we-time{font-size:9px;color:#8e98a5;margin-top:4px}

  #adventure-loop-hud{
    position:absolute;right:max(10px,env(safe-area-inset-right));top:max(118px,calc(env(safe-area-inset-top) + 110px));
    width:min(210px,44vw);background:rgba(10,14,20,.84);border:1px solid rgba(255,255,255,.09);
    border-radius:10px;padding:8px 10px;z-index:20;pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.3);
  }
  #adventure-loop-hud .al-title{font-size:10px;color:#9fd8ff;font-weight:800;letter-spacing:.04em}
  #adventure-loop-hud .al-main{font-size:11px;color:#eef3f7;margin-top:3px;font-weight:700}
  #adventure-loop-hud .al-sub{font-size:9px;color:#8e98a5;margin-top:2px}
  #adventure-loop-hud .al-streak{color:#ffd166;font-weight:800}

  #daily-hud .daily-title {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 3px;
  }
  #daily-text { font-size: 11px; color: var(--ink); font-weight: 600; line-height: 1.3; }
  #daily-progress { font-size: 10px; color: var(--muted); margin-top: 3px; }
  #daily-hud.done #daily-text { color: var(--safe); }
  #safezone-label {
    position: absolute; top: max(88px, calc(env(safe-area-inset-top) + 82px));
    left: max(10px, env(safe-area-inset-left)); transform: none;
    background: rgba(20,40,25,0.9); border: 1px solid rgba(120,200,120,0.4);
    color: #b8ffc0; font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
    padding: 4px 8px; border-radius: 5px; pointer-events: none; opacity: 0; transition: opacity 0.25s;
    text-transform: uppercase;
  }
  /* --- PAINEL DE STATUS & SKILLS (ESTILO ULTIMA ONLINE) --- */
  #btn-stats-toggle {
    display: none !important; /* agora só pelo Menu do jogo */
  }
  /* Menu hub (Inventário / Pets / Habilidades) */
  #game-menu-panel {
    display: none;
    position: fixed;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 35;
    width: min(300px, 90vw);
    background: linear-gradient(165deg, rgba(22,18,14,0.98), rgba(10,10,12,0.99));
    border: 1px solid rgba(198,161,91,0.55);
    border-radius: 14px;
    padding: 14px 14px 12px;
    color: var(--ink, #f0e6d0);
    pointer-events: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  }
  #game-menu-panel.open { display: block; }
  @media (max-width: 720px), (pointer: coarse) {
    #game-menu-panel {
      left: 0; right: 0; top: auto; bottom: 0;
      transform: none;
      width: 100%; max-width: none;
      border-radius: 16px 16px 0 0;
      border-bottom: none;
      padding: 16px 14px calc(14px + env(safe-area-inset-bottom));
    }
  }
  #game-menu-panel .gm-title {
    font-size: 15px; font-weight: 700; color: var(--accent, #c6a15b);
    font-family: var(--font-display, Cinzel, Georgia, serif);
    margin: 0 0 12px; text-align: center; letter-spacing: 0.04em;
  }
  #game-menu-panel .gm-btn {
    display: block; width: 100%;
    margin: 0 0 8px; padding: 14px 14px;
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.12);
    background: rgba(30,28,24,0.95); color: var(--ink, #f0e6d0);
    font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
    min-height: 48px;
  }
  #game-menu-panel .gm-btn:active { transform: scale(0.98); background: rgba(50,42,32,0.95); }
  #game-menu-panel .gm-close {
    margin-top: 4px; background: transparent; border-color: rgba(255,255,255,0.08);
    color: var(--muted, #9a8f7a); text-align: center;
  }

  