/* A janela "Mapa do mundo" (pt-mapa-mundo.js), no estilo das telas REVIVAL PT: marrom escuro, filetes dourados,
   pílulas e cartões. */
#mapaMundo { --mw-ouro: #e9c27a; --mw-ouro2: #d2a65a; --mw-texto: #efe6d4; --mw-apagado: rgba(239,230,212,.55); --mw-borda: rgba(233,194,122,.38);
  --mw-ciano: #5fd8e6; --mw-vermelho: #e0705a; --mw-roxo: #b48ce6;
  position: fixed; left: 50%; top: 50%; z-index: 9; transform: translate(-50%, -50%); box-sizing: border-box; display: flex; flex-direction: column;
  width: min(1000px, calc(100vw - 24px)); height: min(730px, calc(100vh - 24px)); padding: 0 20px 16px; overflow: hidden;
  color: var(--mw-texto); font: 13px/1.3 "Segoe UI", system-ui, sans-serif; border-radius: 12px; border: 1px solid var(--mw-borda);
  background: radial-gradient(ellipse at 50% 0, rgba(95,216,230,.07), transparent 55%), linear-gradient(#211a14, #140f0b 60%, #110d0a);
  box-shadow: 0 0 0 1px rgba(0,0,0,.65), 0 0 0 4px rgba(233,194,122,.06), 0 20px 50px rgba(0,0,0,.65); user-select: none; -webkit-user-select: none; }
#mapaMundo[hidden] { display: none; }
#mapaMundo button { font: inherit; color: inherit; margin: 0; cursor: pointer; }
#mapaMundo svg { width: 100%; height: 100%; }

.mw-cab { display: flex; align-items: center; gap: 14px; flex: none; height: 58px; }
.mw-cab h2 { margin: 0; flex: 1; font: 600 22px/1 "Cinzel", Georgia, serif; letter-spacing: .07em; font-variant: small-caps; text-shadow: 0 1px 3px #000; }
.mw-boss-chip { padding: 4px 10px; border-radius: 10px; border: 1px solid rgba(224,112,90,.4); background: rgba(80,20,10,.35); color: #f2b7a6;
  font: 700 10.5px/1 "Cinzel", Georgia, serif; letter-spacing: .1em; white-space: pre; }
#mapaMundo .mw-x { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: rgba(239,230,212,.7); font: 400 22px/1 system-ui, sans-serif; }
#mapaMundo .mw-x:hover, #mapaMundo .mw-x:focus-visible { color: #fff; background: rgba(255,255,255,.08); outline: 0; }
.mw-filete { position: relative; flex: none; height: 1px; margin: 0 -20px 16px; background: linear-gradient(90deg, transparent, rgba(233,194,122,.7) 18%, rgba(233,194,122,.7) 82%, transparent); }
.mw-filete::after { content: ''; position: absolute; left: 50%; top: 0; width: 15px; height: 15px; transform: translate(-50%, -50%) rotate(45deg); border-radius: 3px;
  background: radial-gradient(circle at 35% 30%, #e6fdff, #5fd8e6 40%, #1f6fb0); box-shadow: 0 0 14px rgba(95,216,230,.8), 0 0 0 2px rgba(0,0,0,.6); }

/* LISTA | MAPA e as pílulas */
.mw-barra { display: flex; align-items: center; gap: 10px; flex: none; margin-bottom: 14px; flex-wrap: wrap; }
.mw-abas { display: flex; flex: none; padding: 4px; border-radius: 22px; border: 1px solid var(--mw-borda); background: rgba(0,0,0,.35); }
#mapaMundo .mw-abas button { min-width: 74px; height: 32px; padding: 0 16px; border: 0; border-radius: 17px; background: none; color: var(--mw-apagado);
  font: 700 12.5px/1 "Cinzel", Georgia, serif; letter-spacing: .12em; text-transform: uppercase; }
#mapaMundo .mw-abas button:hover { color: var(--mw-texto); }
#mapaMundo .mw-abas button[aria-pressed="true"] { color: #3a2a12; background: linear-gradient(#f0d394, #d2a65a 55%, #b88a42); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 4px rgba(0,0,0,.5); }
.mw-pilulas { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; min-width: 0; }
.mw-pilulas[hidden] { display: none; }
#mapaMundo .mw-pilula { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 16px; border: 1px solid var(--mw-borda);
  background: rgba(0,0,0,.3); color: var(--mw-texto); font: 700 12px/1 "Segoe UI", system-ui, sans-serif; }
#mapaMundo .mw-pilula small { font-size: 10px; font-weight: 600; color: var(--mw-apagado); font-variant-numeric: tabular-nums; }
#mapaMundo .mw-pilula:hover { border-color: var(--mw-ouro); }
#mapaMundo .mw-pilula[aria-pressed="true"] { color: #3a2a12; border-color: transparent; background: linear-gradient(#f0d394, #d2a65a 55%, #b88a42); }
#mapaMundo .mw-pilula[aria-pressed="true"] small { color: rgba(58,42,18,.75); }
.mw-perg { margin-left: auto; padding: 5px 11px; border-radius: 12px; border: 1px solid rgba(95,216,230,.35); background: rgba(10,40,50,.35); color: #bdeef4;
  font: 600 11px/1 "Segoe UI", system-ui, sans-serif; white-space: nowrap; }
.mw-perg.mw-falta { border-color: rgba(239,230,212,.18); background: rgba(0,0,0,.25); color: var(--mw-apagado); }

.mw-painel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.mw-painel[hidden] { display: none; }

/* busca */
.mw-busca { display: flex; gap: 10px; flex: none; margin-bottom: 12px; }
.mw-campo-busca { display: flex; align-items: center; gap: 9px; flex: 1; height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--mw-borda);
  background: rgba(0,0,0,.35); color: var(--mw-apagado); cursor: text; }
.mw-campo-busca:focus-within { border-color: var(--mw-ouro); }
.mw-campo-busca svg { flex: none; width: 16px !important; height: 16px !important; }
.mw-campo-busca input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--mw-texto); font: 13px/1 "Segoe UI", system-ui, sans-serif; }
.mw-campo-busca input::placeholder { color: var(--mw-apagado); }
#mapaMundo .mw-ate-nivel { flex: none; height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid var(--mw-borda); background: rgba(0,0,0,.35);
  font: 700 12px/1 "Segoe UI", system-ui, sans-serif; }
#mapaMundo .mw-ate-nivel:hover { border-color: var(--mw-ouro); }
#mapaMundo .mw-ate-nivel[aria-pressed="true"] { color: #3a2a12; border-color: transparent; background: linear-gradient(#f0d394, #d2a65a 55%, #b88a42); }

/* a grade dos cartões */
.mw-rolagem { flex: 1; min-height: 0; overflow-y: auto; padding-right: 6px; margin-right: -8px; scrollbar-width: thin; scrollbar-color: rgba(233,194,122,.5) transparent; }
.mw-regiao { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; font: 700 12.5px/1 "Cinzel", Georgia, serif; letter-spacing: .14em; text-transform: uppercase; color: var(--mw-ouro); }
.mw-regiao::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(233,194,122,.45), transparent); }
.mw-cartoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px; }
.mw-vazio { margin: 40px 0; text-align: center; color: var(--mw-apagado); }
.mw-cartao { display: flex; align-items: center; gap: 11px; min-width: 0; height: 74px; box-sizing: border-box; padding: 7px 10px 7px 7px; border-radius: 9px;
  border: 1px solid rgba(233,194,122,.22); background: linear-gradient(rgba(60,46,32,.55), rgba(30,23,17,.7)); }
.mw-cartao:hover { border-color: rgba(233,194,122,.5); }
.mw-cartao.mw-aqui { border-color: var(--mw-ciano); box-shadow: 0 0 0 1px rgba(95,216,230,.35), 0 0 14px rgba(95,216,230,.18) inset; }
.mw-cartao.mw-preso { opacity: .5; filter: grayscale(.75); }
.mw-mini { position: relative; flex: none; width: 58px; height: 58px; border-radius: 6px; overflow: hidden; background: #0d0a07; box-shadow: inset 0 0 0 1px rgba(233,194,122,.25); }
.mw-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mw-pino { position: absolute; right: 2px; top: 2px; width: 17px; height: 17px; color: var(--mw-ciano); filter: drop-shadow(0 1px 2px #000); }
.mw-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.mw-nome { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 13.5px/1.1 "Segoe UI", system-ui, sans-serif; }
.mw-tags { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; overflow: hidden; }
.mw-tag { flex: none; padding: 2px 7px; border-radius: 8px; border: 1px solid rgba(233,194,122,.45); background: rgba(0,0,0,.3); color: #e8d6ae; font: 600 10.5px/1.2 "Segoe UI", system-ui, sans-serif; }
.mw-tag.mw-cidade { border-color: transparent; color: #3a2a12; background: linear-gradient(#f0d394, #c99a4e); }
.mw-tag.mw-masmorra { border-color: rgba(180,140,230,.5); color: #d9c3f5; background: rgba(70,40,110,.45); }
.mw-tag.mw-alto { border-color: rgba(224,112,90,.6); color: #f2a593; background: rgba(90,25,15,.4); }
.mw-monstros { color: var(--mw-apagado); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-acoes { display: flex; align-items: center; gap: 8px; flex: none; }
#mapaMundo .mw-andar { display: grid; place-items: center; width: 34px; height: 34px; padding: 7px; box-sizing: border-box; border-radius: 50%;
  border: 1px solid rgba(95,216,230,.55); background: radial-gradient(circle at 50% 35%, rgba(31,111,176,.35), rgba(0,0,0,.4)); color: #bdeef4; }
#mapaMundo .mw-andar:hover, #mapaMundo .mw-andar:focus-visible { border-color: var(--mw-ciano); box-shadow: 0 0 10px rgba(95,216,230,.45); outline: 0; }
#mapaMundo .mw-ir { min-width: 50px; height: 34px; padding: 0 16px; border: 0; border-radius: 17px; color: #3a2a12; background: linear-gradient(#f3d89c, #d2a65a 55%, #b88a42);
  font: 700 13px/1 "Segoe UI", system-ui, sans-serif; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 2px 5px rgba(0,0,0,.5); }
#mapaMundo .mw-ir:hover, #mapaMundo .mw-ir:focus-visible { filter: brightness(1.1); outline: 0; }
.mw-cadeado { display: block; width: 18px; height: 18px; margin-right: 8px; color: #e7a090; }

/* aba MAPA */
.mw-visor { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 10px; border: 1px solid var(--mw-borda); cursor: grab; touch-action: none;
  background: radial-gradient(ellipse at 50% 45%, #4a3a26, #2a2015 55%, #15100b); box-shadow: inset 0 0 60px rgba(0,0,0,.7); }
.mw-visor.mw-arrastando { cursor: grabbing; }
.mw-camada { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.mw-campo { position: absolute; display: block; max-width: none; filter: sepia(.35) saturate(.9) brightness(.92); opacity: .95; transition: filter .15s; }
.mw-campo.mw-sem-imagem { background: rgba(120,95,60,.35); outline: 1px dashed rgba(233,194,122,.3); }
.mw-campo:hover { filter: sepia(.1) brightness(1.08); }
.mw-campo.mw-escolhido { filter: none; outline: 3px solid var(--mw-ouro); outline-offset: -2px; z-index: 1; }
.mw-rotulos { position: absolute; inset: 0; pointer-events: none; }
#mapaMundo .mw-rotulo { position: absolute; left: 0; top: 0; pointer-events: auto; padding: 3px 8px; border-radius: 5px; border: 1px solid rgba(233,194,122,.35);
  background: rgba(20,15,10,.82); color: #e6d9bf; font: 600 11px/1.2 "Segoe UI", system-ui, sans-serif; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.6); }
#mapaMundo .mw-rotulo:hover { border-color: var(--mw-ouro); color: #fff; }
#mapaMundo .mw-rotulo.mw-cidade { font-weight: 800; color: #fff3d2; border-color: rgba(233,194,122,.6); }
#mapaMundo .mw-rotulo.mw-preso { color: rgba(230,217,191,.5); }
#mapaMundo .mw-rotulo.mw-atual { border-color: var(--mw-ciano); color: #dffaff; }
#mapaMundo .mw-rotulo.mw-escolhido { color: #3a2a12; border-color: transparent; background: linear-gradient(#f3d89c, #d2a65a); }
.mw-eu { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.mw-eu[hidden] { display: none; }
.mw-eu::before { content: ''; position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle, #fff6c8 0 3px, #ffd34d 4px, rgba(255,211,77,.35) 7px, transparent 11px); animation: mw-pulso 1.6s ease-in-out infinite; }
@keyframes mw-pulso { 50% { transform: scale(1.35); } }
.mw-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
#mapaMundo .mw-zoom button { width: 32px; height: 32px; padding: 7px; box-sizing: border-box; border-radius: 8px; border: 1px solid var(--mw-borda); background: rgba(20,15,10,.85); color: var(--mw-texto); }
#mapaMundo .mw-zoom button:hover { border-color: var(--mw-ouro); }
.mw-viajar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; max-width: calc(100% - 28px);
  padding: 8px 8px 8px 16px; border-radius: 26px; border: 1px solid rgba(95,216,230,.5); background: rgba(16,12,9,.92); box-shadow: 0 0 16px rgba(95,216,230,.25), 0 6px 18px rgba(0,0,0,.6); }
.mw-viajar[hidden] { display: none; }
.mw-viajar-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mw-viajar-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.mw-viajar-info small { color: var(--mw-apagado); font-size: 11px; white-space: nowrap; }
.mw-viajar-bts { display: flex; align-items: center; gap: 8px; flex: none; }
#mapaMundo .mw-viajar-ir { display: inline-flex; align-items: center; gap: 4px; }
#mapaMundo .mw-viajar-ir svg { width: 14px; height: 14px; }
.mw-viajar-msg { display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; color: var(--mw-apagado); font-size: 12px; white-space: nowrap; }
.mw-viajar-msg.mw-alto { color: #f2a593; }
.mw-viajar-msg svg { width: 15px; height: 15px; }

/* a pergunta e o aviso */
.mw-pergunta { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(0,0,0,.5); }
.mw-pergunta[hidden] { display: none; }
.mw-pergunta-caixa { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 280px; padding: 20px 24px 16px; border-radius: 12px;
  border: 1px solid var(--mw-borda); background: linear-gradient(#251d15, #15100b); box-shadow: 0 14px 34px rgba(0,0,0,.7); text-align: center; }
.mw-pergunta-caixa p { margin: 0; font: 600 15px/1.2 "Cinzel", Georgia, serif; letter-spacing: .04em; }
.mw-pergunta-caixa b { color: var(--mw-ouro); font-size: 14px; }
.mw-pergunta-caixa small { color: var(--mw-apagado); }
.mw-pergunta-bts { display: flex; gap: 10px; margin-top: 10px; }
#mapaMundo .mw-nao { min-width: 70px; height: 34px; padding: 0 16px; border-radius: 17px; border: 1px solid var(--mw-borda); background: rgba(0,0,0,.35); }
#mapaMundo .mw-nao:hover { border-color: var(--mw-ouro); }
.mw-aviso { position: absolute; left: 50%; bottom: 22px; z-index: 4; transform: translateX(-50%); padding: 9px 16px; border-radius: 18px; pointer-events: none;
  border: 1px solid rgba(224,112,90,.55); background: rgba(40,14,8,.95); color: #ffd3c6; font-size: 12.5px; box-shadow: 0 6px 18px rgba(0,0,0,.6); white-space: nowrap; }
.mw-aviso[hidden] { display: none; }

@media (max-width: 900px) { .mw-cartoes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  #mapaMundo { padding: 0 12px 12px; }
  .mw-cartoes { grid-template-columns: minmax(0, 1fr); }
  .mw-perg { margin-left: 0; }
}
