/* Home original restaurada: objetivos individuais e percentual por objetivo.
   Recompensa com ícones brancos: preto SÓ no quadrado da imagem. */

/* Imagem branca legível: não altera a faixa amarela da recompensa. */
.hdbr-hud-v2 .hdbr-hud-reward-symbol{
  background:#050607!important;
  border:1px solid #d0b443!important;
  box-shadow:inset 0 0 0 1px #4d432a,0 1px 7px #0008!important;
  color:#f0f3f4!important;
}
.hdbr-hud-v2 .hdbr-hud-reward-symbol .hdbr-hud-reward-image{
  display:block;width:38px;height:38px;max-width:100%;max-height:100%;
  object-fit:contain;flex:0 1 auto;
}
.hdbr-hud-v2 .hdbr-hud-reward-symbol .hdbr-hud-reward-image[hidden]{display:none!important}

/* Aviso redundante eliminado em HOME, GUERRA e ORDEM.
   O botão de troca e o gesto horizontal permanecem funcionais. */
.hdbr-campaign-host .hdbr-campaign-nav .hdbr-swipe-cue{display:none!important}

/* HOME desktop: manter identificação, briefing, resumo e N objetivos;
   dentro de cada objetivo ficam SÓ título, barra e percentual. */
body.fundo-principal #hd-ov-order .hd-mo-task > :not(.hd-mo-task-kicker):not(h4):not(.hd-mo-task-progress):not(.hd-mo-task-progress-label){
  display:none!important;
}
body.fundo-principal #hd-ov-order .hd-mo-task{
  min-height:0;min-width:0;
  padding:10px!important;
}
body.fundo-principal #hd-ov-order .hd-mo-task-progress-label{
  display:flex;justify-content:space-between;gap:7px;
  min-width:0;flex-wrap:wrap;
}
body.fundo-principal #hd-ov-order .hd-mo-task-progress-label > *{
  max-width:100%;min-width:0;overflow-wrap:anywhere;
}
body.fundo-principal #hd-ov-order .hd-mo-objectives-grid{align-items:stretch}
body.fundo-principal #hd-ov-order .hd-home-mo-link{
  display:inline-flex;align-items:center;justify-content:space-between;gap:20px;
  margin-top:11px;min-height:40px;padding:10px 13px;
  border:1px solid #a4892b;border-radius:9px;
  background:#11171bdc;color:#ffe042;
  font:700 13px/1 'Rajdhani',Arial,sans-serif;
  text-decoration:none;letter-spacing:1px;
}
body.fundo-principal #hd-ov-order .hd-home-mo-link:hover{color:#fff;background:#31301c}
body.fundo-principal #hd-ov-order .hd-home-mo-link:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* O botão antigo do topo só some quando o dock inferior foi montado. */
@media(max-width:768px){
  body.has-mobile-navigation > .mobile-header{display:none!important}

  body.fundo-principal .mobile-order.hdbr-campaign-host{
    display:block!important;box-sizing:border-box;
    width:100%;min-width:0;max-width:100%;
    padding:0!important;margin-bottom:14px;overflow:hidden;
  }
  body.fundo-principal .mobile-order.hdbr-campaign-host > :not(.hdbr-campaign-nav):not(.hdbr-campaign-view){
    box-sizing:border-box;max-width:calc(100% - 24px);min-width:0;
    margin-left:12px;margin-right:12px;
  }
  body.fundo-principal .mobile-order .mobile-order-top{
    display:flex;justify-content:space-between;align-items:center;
    margin:0!important;padding:12px 12px 0!important;
    gap:8px;flex-wrap:wrap;max-width:100%!important;
  }
  body.fundo-principal .mobile-order .mobile-order-top h2{
    margin:0;font-size:16px;
  }
  body.fundo-principal .mobile-order #mobile-order-state{
    max-width:100%;min-width:0;overflow-wrap:anywhere;
    letter-spacing:.3px;
  }
  body.fundo-principal .mobile-order #mobile-order-title{
    display:block!important;
    font-size:19px;line-height:1.25;
    margin:9px 12px 5px!important;overflow-wrap:anywhere;
  }
  body.fundo-principal .mobile-order #mobile-order-brief{
    display:-webkit-box!important;
    -webkit-line-clamp:2;-webkit-box-orient:vertical;
    font-size:12px;line-height:1.5;
    margin:0 12px 10px!important;max-width:calc(100% - 24px);
    overflow:hidden;
  }
  body.fundo-principal .mobile-order #mobile-order-meta{display:none!important}
  body.fundo-principal .mobile-order #mobile-order-objectives{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px;
    margin:0 12px 10px!important;
    width:calc(100% - 24px);
    max-width:calc(100% - 24px);
    min-width:0;
    padding:0;
    box-sizing:border-box;
  }
  body.fundo-principal .mobile-order #mobile-order-objectives[hidden]{display:none!important}
  body.fundo-principal .mobile-order #mobile-order-objectives .mobile-order-objective{
    box-sizing:border-box;min-width:0;max-width:100%;
    overflow:hidden;padding:10px!important;
    min-height:0;border-radius:10px;
  }
  body.fundo-principal .mobile-order .mobile-order-objective .hd-mo-task-kicker{
    gap:6px;flex-wrap:wrap;overflow-wrap:anywhere;
  }
  body.fundo-principal .mobile-order .mobile-order-objective h4{
    display:flex;align-items:center;min-width:0;
    font-size:14px;line-height:1.3;
    margin:6px 0 9px;overflow-wrap:anywhere;
  }
  body.fundo-principal .mobile-order .mobile-order-objective h4 img{
    max-width:27px;height:27px;flex:0 0 27px;object-fit:contain;
  }
  body.fundo-principal .mobile-order .mobile-order-objective .hd-mo-task-progress{
    width:100%;max-width:100%;box-sizing:border-box;
  }
  body.fundo-principal .mobile-order .mobile-order-objective .hd-mo-task-progress-label{
    display:flex;align-items:center;justify-content:space-between;
    min-width:0;max-width:100%;gap:8px;flex-wrap:wrap;
  }
  body.fundo-principal .mobile-order .mobile-order-objective .hd-mo-task-progress-label span{
    color:#9ea9af;font-size:10px;
  }
  body.fundo-principal .mobile-order .mobile-order-objective .hd-mo-task-progress-label strong{
    color:#ffe042;font:700 17px/1.2 'Rajdhani',Arial,sans-serif;
    white-space:nowrap;
  }
  body.fundo-principal .mobile-order > a{
    display:flex!important;justify-content:space-between;
    margin:0 12px 11px!important;
    max-width:calc(100% - 24px);width:auto;
    min-height:42px;padding:8px 2px 0;
    box-sizing:border-box;
  }
  body.fundo-principal .mobile-order .hdbr-campaign-nav{
    box-sizing:border-box;width:100%;max-width:100%;
    min-width:0;padding:8px 10px;
  }
  body.fundo-principal .mobile-order .hdbr-campaign-view{
    width:100%;max-width:100%;min-width:0;
    box-sizing:border-box;overflow:hidden;overflow-wrap:anywhere;
  }
  .hdbr-hud-v2 .hdbr-hud-reward-symbol .hdbr-hud-reward-image{
    width:32px;height:32px;
  }
}
