/* Placeholder de MVP: um arquivo só, sem módulo e sem fetch, para abrir com dois cliques.
     Visual de client antigo: pedra cinza granulada, relevo claro em cima e escuro embaixo, Verdana 11px.
     Arranjo: vida/mana no topo, mapa no centro, barra de magias EMBAIXO do mapa (um grupo por classe: 4 de ataque
     e, embaixo delas, as 2 de suporte), chat no rodapé; à esquerda a caçada, à direita equipamento e containers. */
  * { box-sizing: border-box; }
  html, body { height: 100%; margin: 0; }
  body { background: #222 var(--pedra); color: #c0c0c0; overflow: hidden; font: 11px Verdana, Tahoma, Geneva, sans-serif; user-select: none; }
  button { font: inherit; }
  .item-lock { position: absolute; top: 0; left: 2px; color: #ffe090; font-size: 11px; text-shadow: 1px 1px #000; }
  .protected-note { color: #ffe090; line-height: 1.5; }
  .hunt-preparo { padding: 10px; margin-bottom: 10px; line-height: 1.5; }
  .hunt-preparo h4 { margin: 0 0 8px; color: #ffe090; }
  .preparo-stats, .preparo-supplies { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0; }
  .preparo-supplies span { background: #242424; padding: 5px 8px; border: 1px solid #606060; }
  .supply-low { color: #ffb38c; }
  .best-toolbar { padding: 0 2px 8px; line-height: 1.5; }
  .best-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
  .best-filters label { display: flex; flex: 1; min-width: 130px; flex-direction: column; gap: 4px; }
  .best-filters label:first-child { flex: 2; min-width: 180px; }
  .best-filters input, .best-filters select { width: 100%; min-width: 0; border: 1px solid #777; background: #202020; color: #eee; font: inherit; padding: 7px; }
  #best-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  #best-list .best-card { margin: 0; align-items: flex-start; min-width: 0; }
  #best-list .best-card[hidden] { display: none; }
  .best-card .meio { min-width: 0; overflow-wrap: anywhere; }
  .best-unknown { font-size: 22px; color: #999; align-self: center; }
  .best-complete { color: #85de85; }
  @media (max-width: 600px) { #best-list { grid-template-columns: 1fr; } .best-filters label { min-width: 120px; } }
  #app { display: flex; height: 100%; }
  .lateral { flex: none; display: flex; flex-direction: column; gap: 3px; padding: 3px; overflow-y: auto;
             background: #2a2a2a var(--pedra); scrollbar-width: thin; scrollbar-color: #555 #222; }
  #latE { width: 172px; border-right: 1px solid #111; box-shadow: inset -1px 0 #555; }
  #latD { width: 190px; border-left: 1px solid #111; box-shadow: inset 1px 0 #555; }
  #centro { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  #palco { flex: 1; min-height: 0; min-width: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
  .win { background: #444 var(--pedra2); border: 1px solid; border-color: #7a7a7a #161616 #161616 #7a7a7a; }
  .fundo { border: 1px solid; border-color: #161616 #7a7a7a #7a7a7a #161616; background-color: #262626; }
  .titulo { height: 15px; line-height: 13px; font-size: 10px; color: #969696; padding: 0 2px 0 4px;
            background: #333 var(--pedra); border-bottom: 1px solid #161616; display: flex; justify-content: space-between; align-items: center; gap: 4px; }
  .titulo .bts { display: flex; gap: 1px; align-items: center; }
  .titulo .bt { min-width: 11px; height: 11px; line-height: 7px; padding: 0 2px; font-size: 8px; }
  .titulo img { width: 12px; height: 12px; image-rendering: pixelated; margin-right: 3px; vertical-align: -2px; }
  .bt { background: #4c4c4c var(--pedra2); color: #c0c0c0; font-size: 10px; height: 20px; padding: 0 6px; cursor: pointer;
        border: 1px solid; border-color: #8c8c8c #161616 #161616 #8c8c8c; }
  .bt:hover { color: #fff; }
  .bt:active, .bt.on { border-color: #161616 #8c8c8c #8c8c8c #161616; background: #303030; color: #fff; }
  .bt.g { height: 22px; min-width: 60px; }
  .bt.ouro { color: #e0c060; font-weight: bold; }
  #moldura { padding: 3px; line-height: 0; background: #000; border: 1px solid; border-color: #7a7a7a #161616 #161616 #7a7a7a; box-shadow: 0 0 0 1px #000; }
  canvas { image-rendering: pixelated; }
  .painel .miolo { padding: 4px; }

  /* topo: vida à esquerda, mana à direita, personagem no meio; experiência na linha de baixo */
  .barra { height: 11px; background: #161616; position: relative; margin: 2px 0; border: 1px solid #000; }
  .barra i { display: block; height: 100%; box-shadow: inset 0 2px rgba(255,255,255,.22), inset 0 -2px rgba(0,0,0,.3); }
  .barra b { position: absolute; inset: 0; text-align: center; color: #fff; font-size: 9px; line-height: 9px; font-weight: normal; text-shadow: 1px 1px #000; }
  .hp i { background: #c03030; } .mp i { background: #3f57e0; } .xp i { background: #d0a020; }
  #vitais .hp i { background: #2fb02f; }

  /* barra de magias, embaixo do mapa: por classe, ataque em cima e suporte embaixo */
  #acoes { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 6px; padding: 3px; border-top: 1px solid #111; box-shadow: inset 0 1px #555; }
  .grupo { padding: 0 3px 3px; cursor: pointer; }
  .grupo.sel { border-color: #e0e0e0 #161616 #161616 #e0e0e0; }
  .gnome { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; line-height: 13px; color: #969696; }
  .grupo.sel .gnome span:first-child { color: #fff; font-weight: bold; }
  .fila { display: flex; gap: 2px; justify-content: center; }
  .fila + .fila { margin-top: 2px; padding-top: 2px; border-top: 1px solid #161616; box-shadow: inset 0 1px #6a6a6a; }
  .fila small { align-self: center; font-size: 8px; color: #7fbf8f; letter-spacing: .5px; padding: 0 3px; }
  .sk { width: 36px; height: 36px; position: relative; background: #1a1a1a center/32px no-repeat; image-rendering: pixelated;
        border: 1px solid; border-color: #161616 #7a7a7a #7a7a7a #161616; }
  .sk i { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.72); border-top: 1px solid rgba(255,255,255,.35); }
  .sk u { position: absolute; left: 2px; top: 0; font-size: 8px; text-decoration: none; color: #e8e8e8; text-shadow: 1px 1px #000, -1px 0 #000; }
  .sk.sup { box-shadow: inset 0 0 0 1px #2f8f4f; }
  .sk.uso { box-shadow: inset 0 0 0 2px #fff0a0; }

  /* chat */
  #console { height: 112px; flex: none; display: flex; flex-direction: column; margin: 0 3px 3px; }
  #abas { display: flex; gap: 1px; padding: 2px 2px 0; }
  #abas .bt { height: 17px; border-bottom: none; color: #909090; }
  #abas .bt.on { color: #e0e0e0; background: #1a1a1a; }
  #log { flex: 1; background: #0c0c0c; color: #ddd; overflow-y: auto; padding: 3px 5px; margin: 0 2px; user-select: text; scrollbar-width: thin; scrollbar-color: #555 #161616; }
  #log div { white-space: nowrap; line-height: 13px; }
  #digita { margin: 2px; height: 17px; padding: 1px 5px; color: #707070; background-color: #161616; }
  .c-dano { color: #fff; } .c-loot { color: #30e030; } .c-info { color: #f0f0f0; } .c-xp { color: #f0f0f0; }
  .c-magia { color: #ffa030; } .c-morte { color: #ff5050; } .c-sis { color: #ffd800; } .c-cura { color: #60c8ff; }

  .linha { display: flex; justify-content: space-between; padding: 1px 0; }
  .linha b { font-weight: normal; color: #e0e0e0; }
  #prog { height: 9px; margin: 3px 0 1px; } #prog i { background: #d0a020; }
  .membro { padding: 2px 3px; cursor: pointer; border: 1px solid transparent; }
  .membro:hover { background: #505050; }
  .membro.sel { border-color: #c0c0c0; background: #565656; color: #fff; }
  .membro .nm, .bicho .nm { display: flex; justify-content: space-between; }
  .membro .nm span:last-child { color: #909090; font-size: 10px; }
  .bicho { padding: 1px 3px; } .bicho .barra { height: 5px; margin: 1px 0 2px; }
  #batalha { min-height: 70px; }
  .grade { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

  /* direita: equipamento dos 4 e os containers */
  #invs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
  .inv { cursor: pointer; padding-bottom: 3px; }
  .inv.sel { border-color: #e0e0e0 #161616 #161616 #e0e0e0; }
  .inv .titulo { justify-content: center; } .inv.sel .titulo { color: #fff; background-color: #5a5a5a; }
  .inv .titulo span + span { display: none; }
  .inv .grade3 { display: grid; grid-template-columns: repeat(3, 26px); gap: 2px; justify-content: center; padding-top: 3px; }
  .inv .slot, .bolsa .slot { background: #242424 center no-repeat; image-rendering: pixelated; border: 1px solid; border-color: #161616 #6a6a6a #6a6a6a #161616; position: relative; }
  .inv .slot { width: 26px; height: 26px; background-size: 24px; }
  .inv .barra { height: 4px; margin: 3px 4px 0; }
  .bolsa .grade4 { display: grid; grid-template-columns: repeat(5, 34px); gap: 1px; justify-content: center; padding: 3px 0; }
  .bolsa .slot { width: 34px; height: 34px; background-size: 32px; }
  .bolsa .slot b { position: absolute; right: 1px; bottom: 0; font-size: 9px; font-weight: normal; color: #e0e0e0; text-shadow: 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000; }
  .bolsa .rod { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 3px; font-size: 10px; color: #969696; }

  #dlg { position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%); width: 330px; z-index: 10; box-shadow: 0 0 0 1px #000, 4px 4px 0 rgba(0,0,0,.5); }
  #dlg .miolo { padding: 12px; display: flex; gap: 12px; align-items: flex-start; line-height: 15px; }
  #dlg .miolo b { color: #fff; }
  #dlg .rodape { text-align: right; padding: 6px; border-top: 1px solid #161616; box-shadow: inset 0 1px #6a6a6a; }
  #dlg .ico { font-size: 24px; line-height: 26px; color: #e0c060; }
  #raiz { display: flex; flex-direction: column; height: 100%; }
  #raiz > #app { flex: 1; min-height: 0; height: auto; }
  /* menu superior: ícone do pack + rótulo; à direita, a vida e a mana do personagem selecionado */
  #menu { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 6px; padding: 2px 3px; background: #333 var(--pedra); border-bottom: 1px solid #111; box-shadow: 0 1px #555; }
  .mi { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 82px; padding: 3px 8px 4px; cursor: pointer; color: #c8c8c8; font-size: 11px;
        background: #4c4c4c var(--pedra2); border: 1px solid; border-color: #8c8c8c #161616 #161616 #8c8c8c; }
  .mi img { width: 32px; height: 32px; image-rendering: pixelated; }
  .jabas { grid-column: 1 / -1; display: flex; gap: 2px; border-bottom: 1px solid #161616; box-shadow: 0 1px #5a5a5a; padding-bottom: 4px; } .jabas .bt { height: 24px; padding: 0 12px; font-size: 11px; } .jabas .bt.on { color: #e0c060; }
  .mi:hover { color: #fff; } .mi:active { border-color: #161616 #8c8c8c #8c8c8c #161616; background: #303030; }
  .mi.ouro { color: #e0c060; font-weight: bold; }
  .mcentro { display: flex; gap: 2px; justify-content: safe center; min-width: 0; } .mlado { display: flex; align-items: stretch; gap: 4px; min-width: 0; } .mlado.dir { justify-content: flex-end; }
  .gaveta { display: none; height: auto; white-space: nowrap; }
  #vitais { display: flex; flex-direction: column; justify-content: center; gap: 1px; width: 330px; max-width: 100%; min-width: 0; padding: 0 4px; }
  #vitais .cima { display: flex; justify-content: space-between; font-size: 10px; color: #e0c060; font-weight: bold; text-shadow: 1px 1px #000; }
  #vitais .cima span + span { color: #c0c0c0; font-weight: normal; }
  #vitais .duas { display: flex; gap: 3px; } #vitais .duas .barra { flex: 1; height: 11px; margin: 0; }
  #vitais .xp { height: 4px; margin: 0; }
  /* janela de conteúdo (Hunts, Bestiário, Personagens) */
  #jan { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 640px; max-width: 94vw; max-height: 86vh; z-index: 9; display: flex; flex-direction: column; box-shadow: 0 0 0 1px #000, 5px 5px 0 rgba(0,0,0,.5); }
  #jan .titulo { height: 18px; font-size: 11px; color: #d0d0d0; }
  #janC { padding: 6px; overflow-y: auto; display: grid; gap: 5px; scrollbar-width: thin; scrollbar-color: #555 #222; }
  .cartao { display: flex; gap: 8px; align-items: center; padding: 5px 7px; }
  .cartao.atual { border-color: #e0c060 #6a5410 #6a5410 #e0c060; }
  .cartao h5 { margin: 0 0 2px; font-size: 12px; color: #e0c060; font-weight: bold; }
  .cartao p { margin: 0; color: #a8a8a8; line-height: 14px; }
  .cartao .bichos { display: flex; align-items: flex-end; gap: 2px; min-width: 190px; height: 52px; padding: 2px 4px; }
  .cartao .bichos img, .ret img { image-rendering: pixelated; }
  .cartao .meio { flex: 1; min-width: 0; }
  .duascol { grid-template-columns: 1fr 1fr; }
  .ret { width: 56px; height: 56px; flex: none; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
  .skl { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 3px; } .skl img { width: 24px; height: 24px; image-rendering: pixelated; background: #1a1a1a; border: 1px solid #161616; }
  /* party: cada membro abre e fecha; fechado continua mostrando nome, vida, mana e XP */
  .mb { padding: 3px 4px; border-bottom: 1px solid #161616; box-shadow: 0 1px #5a5a5a; cursor: pointer; }
  .mb:last-child { border-bottom: 0; box-shadow: none; }
  .mb.sel { background: rgba(255,255,255,.07); }
  .mb .cab { display: flex; align-items: center; gap: 4px; }
  .mb .tag { font-size: 8px; font-weight: bold; letter-spacing: .5px; padding: 0 3px; line-height: 12px; border: 1px solid #161616; color: #111; }
  .tag.TANK { background: #d8b040; } .tag.DPS { background: #9a7ae0; } .tag.SUP { background: #5fc08a; }
  .mb .nomeM { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e0e0e0; }
  .mb.sel .nomeM { color: #e0c060; font-weight: bold; }
  .mb .seta { flex: none; width: 14px; text-align: center; color: #909090; font-size: 9px; }
  .mb .seta:hover { color: #fff; }
  .mb .sub { color: #909090; font-size: 10px; padding: 1px 0 2px; }
  .mb .tres { display: grid; grid-template-columns: 12px 1fr; gap: 1px 3px; align-items: center; margin-top: 2px; }
  .mb .tres span { font-size: 9px; text-align: center; line-height: 9px; }
  .mb .tres .barra { margin: 0; height: 5px; }
  .mb.aberto .tres .barra { height: 11px; }
  .mb:not(.aberto) .tres .barra b { display: none; }
  .an .linha { gap: 4px; } .an .linha span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .an .linha b small { color: #909090; font-size: 9px; }
  .an .sepa { border-top: 1px solid #161616; box-shadow: inset 0 1px #6a6a6a; margin: 3px 0 2px; height: 2px; }
  .an .el { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border: 1px solid #000; }
  .an .kl { display: flex; align-items: center; gap: 4px; } .an .kl img { height: 18px; image-rendering: pixelated; }
  .an .vazio { color: #808080; }
  .mb .corpo { display: flex; gap: 5px; align-items: flex-start; }
  .mb .esq { flex: 1; min-width: 0; }
  .mb .eq { flex: none; display: grid; grid-template-columns: repeat(3, 22px); gap: 1px; margin-top: 1px; }
  .mb .eq div { width: 22px; height: 22px; background: #242424 center/20px no-repeat; image-rendering: pixelated; border: 1px solid; border-color: #161616 #6a6a6a #6a6a6a #161616; }
  .mb .skm { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 4px; }
  .mb .skm img { width: 22px; height: 22px; image-rendering: pixelated; background: #1a1a1a; border: 1px solid #161616; }
  .mb .bots { display: flex; gap: 2px; margin-top: 4px; } .mb .bots .bt { flex: 1; height: 18px; }
  /* itens clicáveis, janelas de lista (itens, loja, depot, tasks, casa) e tática */
  /* janela Baiak (menu Táticas): abas de personagem em cima, seções à esquerda, formulário à direita */
  .helper { display: grid; grid-template-columns: 140px 1fr; gap: 6px; min-height: 340px; align-items: start; }
  .htopo { grid-column: 1 / -1; display: flex; align-items: center; gap: 3px; } .htopo .esp { flex: 1; }
  .hchar { display: flex; align-items: center; gap: 3px; height: 28px; padding: 0 6px 0 2px; overflow: hidden; } .hchar img, .hchar canvas { height: 22px; image-rendering: pixelated; }
  .hnav { display: flex; flex-direction: column; gap: 2px; } .hnav .bt { text-align: left; height: auto; min-height: 25px; padding: 3px 6px 4px; line-height: 13px; } .hnav .bt span { display: inline-block; width: 14px; color: #909090; }
  .hnav .bt small { display: block; padding-left: 14px; font-size: 9px; font-weight: normal; color: #909090; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hnav .bt.on small { color: inherit; opacity: .75; }
  .hferr { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; } .hferr .bt { height: 25px; font-size: 10px; }
  .hnav .bt.on, .modos .bt.on, .htopo .bt.on { color: #e0c060; }
  .hcorpo { padding: 6px 9px 9px; min-height: 330px; } .hcorpo h4 { margin: 0 0 6px; padding-bottom: 3px; font-size: 12px; color: #e0c060; border-bottom: 1px solid #161616; box-shadow: 0 1px #5a5a5a; } .hcorpo h4 small { color: #909090; font-weight: normal; font-size: 10px; }
  .hlin { display: flex; align-items: center; gap: 6px; padding: 3px 0; } .cresce { flex: 1; }
  .hcampo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 5px; color: #e0e0e0; white-space: nowrap; overflow: hidden; } .hcampo img { height: 18px; image-rendering: pixelated; } .hcampo small { color: #909090; }
  .hcorpo select { font: inherit; background: #1a1a1a; color: #e0e0e0; border: 1px solid #161616; height: 20px; }
  .hchk { display: flex; align-items: center; gap: 4px; cursor: pointer; color: #e0e0e0; }
  .modos { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 4px 0 6px; } .modos .bt { height: 26px; }
  .cab { color: #909090; font-size: 9px; text-transform: uppercase; letter-spacing: .5px; margin: 6px 0 2px; }
  .htab { display: grid; grid-template-columns: 1fr 90px 90px; gap: 4px 8px; align-items: center; margin-top: 6px; } .htab.dois { grid-template-columns: 1fr 1fr; } .htab .cab { margin: 0; }
  .nota { color: #909090; line-height: 14px; margin: 6px 0 0; }
  .hordem { display: flex; gap: 8px; justify-content: center; padding: 4px 0; } .hmag { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 96px; text-align: center; }
  .hmag img { width: 36px; height: 36px; image-rendering: pixelated; background: #1a1a1a; border: 1px solid #161616; cursor: pointer; } .hmag .bts { display: flex; gap: 1px; } .hmag .bts .bt { height: 16px; padding: 0 5px; font-size: 8px; }
  .hpreset { display: flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 6px; margin-top: 3px; cursor: pointer; } .hpreset:hover { background-color: #303030; } .hpreset img { height: 22px; image-rendering: pixelated; } .hpreset .bts { display: flex; gap: 1px; } .hpreset .bts .bt { height: 18px; }
  /* tela de entrada e personagem bloqueado */
  #login { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: #181818 var(--pedra); overflow-y: auto; } #login[hidden] { display: none; }
  #login .caixa { width: 560px; max-width: 94vw; padding: 10px 12px 12px; box-shadow: 0 0 0 1px #000, 6px 6px 0 rgba(0,0,0,.5); } #loginC { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; } #login .rot { width: 130px; }
  .marca { text-align: center; color: #e0c060; font: bold 20px Georgia, serif; letter-spacing: 4px; text-shadow: 1px 1px #000; padding: 4px 0 8px; }
  .campo { flex: 1; min-width: 0; height: 22px; padding: 0 6px; font: inherit; color: #e0e0e0; outline: none; user-select: text; } .campo:focus { border-color: #e0c060; }
  .vocs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 4px 0 8px; }
  .voc { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 4px; cursor: pointer; text-align: center; } .voc img { height: 44px; image-rendering: pixelated; } .voc b { color: #e0e0e0; } .voc small { color: #909090; font-size: 9px; line-height: 11px; }
  .voc:hover { background-color: #333; } .voc.on { border-color: #e0c060; background-color: #3a3420; } .voc.on b { color: #e0c060; }
  .grupo.bloq { opacity: .45; } .grupo.bloq:hover, .mb.bloq:hover { opacity: 1; } .mb.bloq { opacity: .7; }
  /* pop-up de item */
  #dica { position: fixed; z-index: 30; width: 210px; padding: 8px 10px 9px; pointer-events: none; text-align: center; box-shadow: 0 0 0 1px #000, 4px 4px 0 rgba(0,0,0,.5); }
  #dica .dr { font-weight: bold; font-size: 10px; text-transform: capitalize; } #dica .dn { color: #fff; font-weight: bold; font-size: 12px; margin-bottom: 5px; } #dica .dn::first-letter { text-transform: uppercase; }
  #dica .di { width: 44px; height: 44px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; } #dica .di img { width: 32px; height: 32px; image-rendering: pixelated; }
  #dica .dl { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; text-align: left; } #dica .dl span { color: #909090; } #dica .dl b { color: #e0e0e0; text-align: right; }
  #dica .dt { color: #fff; font-weight: bold; margin-top: 6px; } #dica .db { color: #60e060; } #dica .db b { font-weight: normal; }
  #dica .dv { margin-top: 6px; padding: 2px 0; background: #2a2a2a; border: 1px solid #161616; color: #e0e0e0; font-weight: bold; }
  #dica .dp { margin-top: 6px; padding-top: 5px; border-top: 1px solid #161616; box-shadow: inset 0 1px #5a5a5a; color: #909090; font-size: 10px; line-height: 13px; }
  /* seletor de magia/runa */
  .sk.vazia { background-image: none; box-shadow: inset 0 0 0 1px #3a3a3a; } .sk { cursor: pointer; }
  .pkTopo { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; align-items: center; } .pkAbas { grid-column: 1 / -1; display: flex; gap: 2px; border-bottom: 1px solid #161616; box-shadow: 0 1px #5a5a5a; padding-bottom: 4px; } .pkAbas .bt.on { color: #e0c060; }
  .pk code { color: #c0c0c0; font: 11px Consolas, monospace; } .pk .botoes select { font: inherit; background: #1a1a1a; color: #e0e0e0; border: 1px solid #161616; height: 20px; }
  .sk.off { opacity: .3; } .sk.trava { filter: grayscale(1) brightness(.45); }
  .slot.clic { cursor: pointer; } .slot.clic:hover { background-color: #3a3a3a; }
  .bt:disabled { color: #707070; cursor: default; }
  .botoes { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; justify-content: flex-end; } #dlg .botoes { margin-top: 8px; justify-content: flex-start; }
  #dlg #dTxt { flex: 1; min-width: 0; }
  .sec { grid-column: 1 / -1; margin: 0; }
  h4.sec { font-size: 10px; font-weight: normal; color: #969696; padding: 3px 2px 1px; border-bottom: 1px solid #161616; box-shadow: 0 1px #5a5a5a; }
  .ret.p { width: 36px; height: 36px; align-items: center; } .ret.p img { width: 32px; height: 32px; }
  .ret canvas { image-rendering: pixelated; flex: none; }
  .cor { width: 20px; height: 20px; cursor: pointer; border: 1px solid; border-color: #161616 #7a7a7a #7a7a7a #161616; } .cor.on { outline: 2px solid #e0c060; outline-offset: -1px; }
  .ret.escolha { cursor: pointer; } .ret.escolha:hover { background-color: #3a3a3a; } .ret.escolha.on { border-color: #e0c060; background-color: #3a3420; }
  .cartao h5::first-letter { text-transform: uppercase; }
  .tat label { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 0; color: #c0c0c0; }
  .tat select { font: inherit; background: #1a1a1a; color: #e0e0e0; border: 1px solid #161616; }
  /* ---------- responsivo: 1200 encolhe o menu; 980 some com os vitais e a lateral esquerda vira gaveta; 700 (celular) a direita também */
  @media (max-width: 1200px) { .mi { min-width: 62px; padding: 2px 5px 3px; font-size: 10px; } .mi img { width: 26px; height: 26px; } #vitais { width: 240px; } }
  @media (max-width: 980px) {
    #vitais { display: none; } #tgE { display: block; } #menu { grid-template-columns: auto minmax(0, 1fr) auto; } .mcentro { overflow-x: auto; scrollbar-width: none; }
    #latE { position: fixed; z-index: 8; left: 0; top: var(--topo, 56px); bottom: 0; transform: translateX(-105%); transition: transform .15s; box-shadow: 4px 0 0 rgba(0,0,0,.45); } #latE.aberta { transform: none; }
    .duascol { grid-template-columns: 1fr; } #jan { width: 96vw; max-height: 90vh; }
  }
  @media (max-width: 700px) {
    #tgD { display: block; } .mi { min-width: 50px; font-size: 9px; } .mi img { width: 22px; height: 22px; } .mi.ouro { display: none; }
    #latD { position: fixed; z-index: 8; right: 0; top: var(--topo, 50px); bottom: 0; transform: translateX(105%); transition: transform .15s; box-shadow: -4px 0 0 rgba(0,0,0,.45); } #latD.aberta { transform: none; }
    #acoes { flex-wrap: nowrap; justify-content: safe center; overflow-x: auto; scrollbar-width: none; } .grupo { flex: none; } #console { height: 78px; } #abas { overflow-x: auto; scrollbar-width: none; } #abas .bt { flex: none; }
    #dlg { width: 94vw; } .helper { grid-template-columns: 1fr; } .hnav { flex-direction: row; flex-wrap: wrap; } .hnav .bt { flex: 1 1 30%; } .hferr { flex: 1 1 100%; flex-direction: row; } .hferr .bt { flex: 1; } .htopo { flex-wrap: wrap; }
    .vocs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cartao { flex-wrap: wrap; } .cartao .bichos { min-width: 0; } .pkTopo { grid-template-columns: 1fr; }
    .htab { grid-template-columns: 1fr 70px 70px; } #login .caixa { padding: 8px; } #dica { display: none; }
    #login .hlin { flex-wrap: wrap; } #login .rot { width: auto; flex: 1 0 100%; } #login .campo { flex: 1 1 140px; min-width: 0; }
  }
  @media (max-height: 560px) { #console { height: 64px; } .mi img { width: 22px; height: 22px; } .mi { font-size: 9px; padding: 1px 5px 2px; } }
  [hidden] { display: none !important; }
/* Verified world names and city filters. */
.wiki-link { color: #a4d4ff; text-decoration: underline; }
.wiki-link:hover { color: #fff; }
.wiki-note { margin: 8px; color: #c2c2b8; line-height: 1.5; }
.hunt-cities { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px; }
.hunt-cities .bt.on { border-color: #c5a754; color: #ffe1a0; }
@media (max-width: 600px) {
  #jan .hunt-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  #jan .hunt-card > .bichos { grid-column: 1 / -1; grid-row: 2; width: auto; min-width: 0; max-width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  #jan .hunt-card > .meio { min-width: 0; }
  #jan .hunt-card > .bt { align-self: start; }
}
