:root {
  --bg: #120c12;
  --panel: #2a1e24;
  --panel2: #3a2a30;
  --edge: #0a0608;
  --hi: #5a4048;
  --text: #f2e4cc;
  --muted: #a8907c;
  --gold: #ffcc4a;
  --fire: #ff8a3a;
  --good: #6fd45a;
  --bad: #e04848;
  --blue: #6ab0ff;
  --pink: #ff60d0;
  --px: 'Press Start 2P', monospace;
  --body: 'VT323', monospace;
  --topH: 50px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.1;
  overflow: hidden;
  user-select: none;
}

canvas { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
img { image-rendering: pixelated; image-rendering: crisp-edges; }
.hidden { display: none !important; }

/* ---------- Botões ---------- */
.btn {
  font-family: var(--px); font-size: 10px; color: var(--text);
  background: #6a4430; border: none; padding: 9px 12px; cursor: pointer;
  box-shadow: inset -3px -3px 0 #3e2418, inset 3px 3px 0 #9a6a48, 0 0 0 3px #000;
  margin: 3px;
}
.btn:hover:not(:disabled) { filter: brightness(1.15); }
.btn:active:not(:disabled) { box-shadow: inset 3px 3px 0 #3e2418, inset -3px -3px 0 #9a6a48, 0 0 0 3px #000; transform: translateY(1px); }
.btn:disabled { filter: grayscale(.8) brightness(.6); cursor: not-allowed; }
.btn.sm { padding: 6px 8px; font-size: 9px; }
.btn.xs { padding: 5px 7px; font-size: 8px; }
.btn.settings-btn { font-family: var(--body); font-size: 22px; padding: 1px 8px; }
.btn.go, .btn.on { background: #3a7a34; box-shadow: inset -3px -3px 0 #1f4a1e, inset 3px 3px 0 #5aa04e, 0 0 0 3px #000; }
.btn.fire { background: #b0501e; box-shadow: inset -3px -3px 0 #6a2a10, inset 3px 3px 0 #e08048, 0 0 0 3px #000; }
.btn.danger { background: #8a2a2a; box-shadow: inset -3px -3px 0 #4a1010, inset 3px 3px 0 #c04848, 0 0 0 3px #000; }

.card {
  background: var(--panel);
  border: 4px solid var(--edge);
  box-shadow: inset 0 0 0 2px var(--hi), 5px 5px 0 rgba(0,0,0,.55);
  padding: 10px;
}
h2, h3 { font-family: var(--px); margin: 0 0 10px; color: var(--fire); text-shadow: 2px 2px 0 #000; }
h2 { font-size: 12px; }
h3 { font-size: 10px; }

/* ---------- Barra do topo ---------- */
.top {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 14px;
  height: var(--topH); padding: 0 12px;
  background: rgba(36, 24, 30, .9);
  border-bottom: 3px solid var(--edge);
  box-shadow: inset 0 -2px 0 var(--hi), 0 3px 0 rgba(0,0,0,.35);
}
.brand { font-family: var(--px); font-size: 11px; color: var(--fire); text-shadow: 2px 2px 0 #000; white-space: nowrap; }
.res { display: flex; align-items: center; gap: 5px; font-size: 24px; text-shadow: 2px 2px 0 #000; min-width: 60px; }
.res img { width: 18px; height: 18px; }
.res.gold { color: var(--gold); }
.res.pink { color: var(--pink); }
.res.cyan { color: #60e0ff; }

/* ---------- Arena ---------- */
.fight-box { background: var(--panel); box-shadow: 0 0 0 4px #000, inset 0 0 0 3px var(--hi), 8px 8px 0 4px rgba(0,0,0,.6); padding: 12px 16px; width: min(640px, 94vw); max-height: 96vh; max-height: 96dvh; overflow-y: auto; }
#fightCanvas { width: min(100%, 62vh); margin: 10px auto 0; aspect-ratio: 104 / 60; box-shadow: 0 0 0 3px #000; }
.fight-box { scrollbar-color: var(--hi) #140c10; }
.fight-box .end { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 8px; }
.d-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.d-cab h2 { margin: 0; flex: 1; white-space: nowrap; }
.d-bruma { font-size: 18px; color: #e0c8ff; }
.d-nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fside.B { text-align: right; }
.fside .bar { margin: 4px 2px; }
.d-foco { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.fside.B .d-foco { flex-direction: row-reverse; }
.d-foco i { width: 12px; height: 12px; background: #140c10; box-shadow: 0 0 0 2px #000; }
.d-foco i.on { background: #60e0ff; box-shadow: 0 0 0 2px #000, inset -2px -2px 0 #2080c0; }
.d-press { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 14px; min-height: 48px; margin-top: 8px; padding: 3px 6px; text-align: center; background: #1e1418; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #6a4aa0; }
.d-press img { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; }
.d-press small { width: 100%; color: var(--muted); font-size: 17px; }
.d-acoes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 3px 4px; }
.d-acao { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 8px 5px 6px; touch-action: manipulation; }
.d-acao img { width: 30px; height: 30px; object-fit: contain; }
.d-acao b { font-weight: normal; font-size: 8px; }
.d-acao small { font-family: var(--body); font-size: 16px; line-height: 1; }
.d-acao .d-custo { color: #60e0ff; }
.d-acao i { position: absolute; top: 5px; left: 6px; font-style: normal; font-size: 8px; color: var(--muted); }
.d-acao.raio { background: #6a5a1e; }
.d-acao.explosao { background: #8a3a1a; }
.d-acao.barreira { background: #24508a; }
.d-acao.espelho { background: #54388a; }
.d-acao.concentrar { background: #2a6a34; }
.d-log { min-height: 64px; margin-top: 6px; padding: 4px 8px; font-size: 18px; background: #1e1418; box-shadow: 0 0 0 2px #000; }
.d-ajuda { margin-top: 10px; }
.d-ajuda p { margin: 7px 0; font-size: 19px; }
.d-ajuda h3 { margin: 12px 0 6px; }
.d-ajuda h3 small { font-family: var(--body); font-size: 17px; color: var(--muted); text-shadow: none; }
.d-lin { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: 18px; line-height: 1; }
.d-lin img { width: 28px; height: 28px; flex: none; object-fit: contain; }
.d-lin small { color: #60e0ff; }
.d-at { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; font-size: 18px; }
.d-at span { display: flex; justify-content: space-between; gap: 6px; }
.d-at b { color: var(--gold); font-weight: normal; }
.a-at { margin: 8px 3px; padding: 6px 8px; background: #1e1418; box-shadow: 0 0 0 3px #000; }
.a-regra { margin: 8px 3px; padding: 6px 8px; background: #241a1e; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #8a6a20; }
.a-itens { display: grid; grid-template-columns: repeat(9, minmax(0, 26px)); gap: 4px; margin: 6px 3px; }
.a-itens span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 15px; line-height: 1; }
.a-itens img, .a-itens u { width: 20px; height: 20px; object-fit: contain; background: #1e1418; }
.a-itens u { box-shadow: 0 0 0 2px #000; }
.a-itens .vazio { opacity: .5; }
.a-itens.det { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.a-itens.det span { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 1px 8px; padding: 5px; background: #241a1e; box-shadow: 0 0 0 2px #000; }
.a-itens.det img, .a-itens.det u { grid-row: span 2; width: 24px; height: 24px; }
.a-itens.det b { font-size: 19px; color: var(--gold); }
.a-itens.det small { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  #fight { align-items: flex-start; padding-top: 12px; }   /* a caixa não pula quando o texto muda de tamanho */
  .fight-box { padding: 10px; }
  .frow { gap: 8px; }
  .fside { min-width: 0; }
  .d-foco { gap: 5px; }
  .d-nome small { display: block; line-height: 1; }
  .d-press { min-height: 74px; }
  .d-cab { flex-wrap: nowrap; }
  .d-bruma { font-size: 16px; }
  .d-log { min-height: 46px; }
  .d-foco i { width: 10px; height: 10px; }
  .d-acoes { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .d-acao { grid-column: span 2; }
  .d-acao.raio, .d-acao.explosao { grid-column: span 3; }
  .d-acao .d-curto { font-size: 15px; }
  .d-acao i { display: none; }
  .d-at { gap: 2px 10px; font-size: 17px; }
}
.frow { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.fside { flex: 1; font-size: 20px; }
.fside small { color: var(--muted); font-size: 16px; }
.fvs { font-family: var(--px); font-size: 12px; color: var(--fire); }
.fres { font-family: var(--px); font-size: 18px; text-align: center; margin: 12px 0 6px; text-shadow: 3px 3px 0 #000; }
.fres.win { color: var(--gold); }
.fres.lose { color: #ff8080; }
.fprize { text-align: center; font-size: 20px; }
.fprize img { width: 15px; height: 15px; vertical-align: middle; }
.rank { box-shadow: 0 0 0 3px #000; margin: 3px; background: #1e1418; }
.rank div { display: grid; grid-template-columns: 44px 1fr 60px; padding: 3px 8px; font-size: 18px; }
.rank div:nth-child(odd) { background: #241a1e; }
.rank div span:last-child { text-align: right; color: var(--gold); }
.rank div.me { background: #3a2a18; color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.spacer { flex: 1; }

.stagebox { display: flex; align-items: center; gap: 2px; }
.stage-info { text-align: center; min-width: 118px; }
.zone-name { font-size: 16px; color: var(--blue); text-shadow: 1px 1px 0 #000; white-space: nowrap; }
.stage-label { font-family: var(--px); font-size: 9px; }
.stage-label.boss { color: var(--bad); }

.bars { display: flex; flex-direction: column; gap: 5px; width: 170px; }
.bar { position: relative; height: 14px; background: #140c10; box-shadow: 0 0 0 2px #000; }
.bar .fill { height: 100%; width: 0; transition: width .15s linear; }
.bar span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; text-shadow: 1px 1px 0 #000, -1px 0 0 #000; white-space: nowrap; }
.bar.kills .fill { background: repeating-linear-gradient(90deg, #d4a030 0 6px, #b88820 6px 8px); }
.bar.kills.boss .fill { background: repeating-linear-gradient(90deg, #e04848 0 6px, #b03030 6px 8px); }
.bar.hp .fill { background: repeating-linear-gradient(90deg, #4ac04a 0 6px, #3a9a3a 6px 8px); }
.bar.hp.low .fill { background: repeating-linear-gradient(90deg, #e04848 0 6px, #b03030 6px 8px); }

.goal { font-size: 16px; padding: 3px 7px; background: #1e1418; box-shadow: 0 0 0 2px #000; white-space: nowrap; cursor: help; }
.goal.ok { color: var(--good); }
.goal.lock { color: var(--gold); }
.goal.now { color: #ff8080; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { color: #ff6a6a; } }

/* ---------- Mapa ---------- */
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.arena-box { position: relative; box-shadow: 0 0 0 4px #000, 0 0 0 8px var(--hi), 0 0 0 12px #000; }
#arena { cursor: crosshair; }
.hint { margin-top: 18px; color: var(--muted); font-size: 18px; text-align: center; }
.boss-banner {
  font-family: var(--px); font-size: 10px; white-space: nowrap;
  background: #3a0e0e; color: #ffd0d0; padding: 8px 10px;
  box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #8a2a2a;
  animation: blink 1s steps(2) infinite;
}

/* ---------- Barra de skills ---------- */
.hotbar { display: flex; gap: 10px; padding: 8px 10px 12px; background: rgba(18, 12, 18, .7); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--hi); }
.sk {
  position: relative; width: 50px; height: 50px; cursor: pointer;
  background: #1e1418; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--hi);
  display: flex; align-items: center; justify-content: center;
}
.sk img { width: 32px; height: 32px; }
.sk .cd { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(0, 0, 0, .7); }
.sk .cdt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--px); font-size: 11px; text-shadow: 2px 2px 0 #000; }
.sk .key { position: absolute; top: 0; left: 3px; font-size: 15px; color: var(--muted); text-shadow: 1px 1px 0 #000; }
.sk .lv { position: absolute; top: 0; right: 3px; font-size: 15px; color: var(--gold); text-shadow: 1px 1px 0 #000; }
.sk .auto {
  position: absolute; bottom: -9px; right: -7px; border: none; cursor: pointer;
  font-family: var(--px); font-size: 6px; color: var(--muted); padding: 3px 3px;
  background: #3a2a30; box-shadow: 0 0 0 2px #000;
}
.sk .auto.on { color: #fff; background: #3a7a34; }
.sk.ready { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold); }
.sk.locked { filter: grayscale(1) brightness(.5); cursor: help; }
.sk:hover:not(.locked) { filter: brightness(1.2); }

/* ---------- Saque (some sozinho) + personagem ---------- */
#lootLog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
#lootLog li {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 5px;
  font-size: 18px; padding: 1px 7px 1px 4px;
  background: rgba(18, 12, 18, .75); box-shadow: 0 0 0 2px #000;
  text-shadow: 1px 1px 0 #000;
}
#lootLog li img { width: 15px; height: 15px; }
#lootLog li .n { color: var(--good); }

.hero { padding: 5px; position: relative; }
.hero-row { display: flex; gap: 6px; align-items: center; }
.gear { display: grid; grid-template-columns: repeat(3, 38px); grid-auto-rows: 38px; gap: 6px; padding: 2px 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 8px; }
.chips .btn { margin: 3px; }
.sub small { color: var(--muted); font-size: 15px; }
.gslot {
  position: relative; cursor: pointer;
  background: #120a0e; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--hi);
  display: flex; align-items: center; justify-content: center;
}
.gslot img { max-width: 28px; max-height: 30px; }
.gslot i { position: absolute; top: -2px; right: 1px; font-style: normal; font-size: 14px; color: var(--gold); text-shadow: 1px 1px 0 #000, -1px 0 0 #000; }
.gslot.empty img { opacity: .5; }
.gslot.has { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #8a6a3a; }
.gslot:hover { filter: brightness(1.25); }
.hero-view { box-shadow: 0 0 0 2px #000; background: #000; display: flex; justify-content: center; }
/* nível do mago: a faixa é a barra de XP */
.nivel { position: relative; display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 0 0 6px; padding: 3px 6px; border: 0; cursor: pointer;
  font: inherit; font-size: 17px; line-height: 1; color: #c8f4ff; text-shadow: 1px 1px 0 #000, -1px 0 0 #000; box-shadow: 0 0 0 2px #000;
  background: linear-gradient(90deg, #2a78b0 var(--p), #14202c var(--p)); }
.nivel b { font-weight: normal; color: #fff; }
.nivel:hover { filter: brightness(1.2); }
.nivel.festa { animation: nivelFesta .5s steps(2) 5; }
@keyframes nivelFesta { 50% { filter: brightness(1.8); box-shadow: 0 0 0 2px #000, 0 0 10px 3px #80e8ff; } }
.nivel-aj { display: flex; gap: 6px; margin: -1px 0 6px; font-size: 15px; line-height: 1; }
.nivel-aj span { flex: 1; padding: 2px 3px; text-align: center; white-space: nowrap; background: #140c10; box-shadow: 0 0 0 1px #000; }
.nivel-aj .sup { color: #ffe070; } .nivel-aj .fer { color: #ff8a7a; }
.nivel-aj .ben { color: #80f0c0; }
.nivel-tal { width: 100%; margin: -1px 0 6px; padding: 6px 4px; border: 0; cursor: pointer; font-family: var(--px); font-size: 8px; color: #fff8d0; text-shadow: 1px 1px 0 #402000;
  background: linear-gradient(#f0a830, #b05818); box-shadow: 0 0 0 2px #000, 0 0 8px rgba(255,190,60,.6); animation: talPulsa 1.6s steps(6) infinite; }
@keyframes talPulsa { 50% { filter: brightness(1.35); } }

/* talentos: o observatório */
.tl-modos { margin: 0 3px 9px; }
.tl-modos .fj-modo b.novo { margin-left: 2px; }
.tl-ceu .bs-cena { box-shadow: 0 0 0 2px #000, 0 0 18px color-mix(in srgb, var(--mz) 45%, transparent); }
.tl-toque { border-radius: 50%; }
.tl-cartas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 8px 2px; }
.tl-carta { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; min-height: 92px; padding: 9px 2px 7px; border: 0; cursor: pointer; font: inherit; color: var(--text);
  background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--mz) 34%, #14122a), #0c0a1c 76%); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px color-mix(in srgb, var(--mz) 45%, #14122a); }
.tl-carta img { width: 51px; height: 51px; image-rendering: pixelated; }
.tl-carta b { font-size: 18px; font-weight: normal; line-height: .9; text-align: center; }
.tl-carta small { font-size: 16px; line-height: 1; color: #b8b4d8; } .tl-carta em { font-style: normal; color: #8af070; }
.tl-carta u { position: absolute; top: -5px; left: 50%; transform: translateX(-50%); padding: 3px 5px; font-family: var(--px); font-size: 7px; white-space: nowrap; text-decoration: none; color: #102808; background: #8ae060; box-shadow: 0 0 0 2px #000; }
.tl-carta.sel { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #fff, 0 0 0 4px var(--mz), 0 0 14px 4px color-mix(in srgb, var(--mz) 60%, transparent); }
.tl-carta:hover { filter: brightness(1.2); }
.tl-carta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tl-faz { margin: 12px 2px 4px; padding: 9px 11px; font-size: 19px; line-height: 1.1; color: #fff; background: #14122a; box-shadow: 0 0 0 2px #000, inset 4px 0 0 var(--mz); }
.tl-reforco { margin: -2px -2px 12px; padding: 8px 8px 6px; background: linear-gradient(#3a2c14, #20180e); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #c89030; }
.tl-reforco .fj-h { margin: 2px 0 9px; color: #ffe080; text-align: center; line-height: 1.5; }
.tl-dividir { display: block; width: calc(100% - 8px); margin: 4px; }

/* evento no mapa: cartão pequeno, que não tapa a luta */
.ev { position: fixed; z-index: 2; top: calc(var(--topH) + 48px); left: 50%; transform: translateX(-50%); width: 300px; max-width: calc(100vw - 24px); box-sizing: border-box; padding: 8px 10px 12px;
  color: #fff; background: linear-gradient(rgba(34,24,46,.95), rgba(16,11,22,.95)); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--ev), 0 0 18px color-mix(in srgb, var(--ev) 55%, transparent); animation: evEntra .35s steps(6); }
.ev:not(.escolha) { pointer-events: none; }
.ev.escolha { width: 440px; }
@keyframes evEntra { from { opacity: 0; transform: translate(-50%, -16px); } }
.ev-topo { display: flex; align-items: center; gap: 9px; }
.ev-topo img { width: 46px; height: 46px; object-fit: contain; image-rendering: pixelated; }
.ev-topo > div { flex: 1; min-width: 0; }
.ev h3 { margin: 0; font-family: inherit; font-size: 22px; font-weight: normal; line-height: .95; color: var(--ev); text-shadow: 1px 1px 0 #000; }
.ev p { margin: 3px 0 0; font-size: 17px; line-height: 1; color: #e0d4e8; } .ev p b { font-weight: normal; color: #ffe070; }
.ev-t { font-size: 24px; color: #ffe070; text-shadow: 1px 1px 0 #000; }
.ev-barra { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 4px; background: linear-gradient(90deg, var(--ev) var(--p), #0a0610 var(--p)); }
.ev-ops { display: flex; gap: 8px; margin: 9px 2px 3px; }
.ev-ops button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border: 0; cursor: pointer; font: inherit; color: #fff;
  background: linear-gradient(color-mix(in srgb, var(--ev) 45%, #2a2034), #1c1424); box-shadow: 0 0 0 2px #000, inset 0 2px 0 color-mix(in srgb, var(--ev) 70%, #fff); }
.ev-ops img { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; }
.ev-ops b { font-size: 19px; font-weight: normal; line-height: .9; } .ev-ops small { font-size: 15px; line-height: .95; color: #dccfe4; }
.ev-ops button:hover:not(:disabled) { filter: brightness(1.25); } .ev-ops button:disabled { cursor: default; opacity: .5; }
.ev-ops button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ev-premio { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 11px; margin-top: 7px; font-size: 18px; line-height: 1; color: #ffe070; }
.ev-premio span { display: inline-flex; align-items: center; gap: 4px; } .ev-premio img { width: 18px; height: 18px; object-fit: contain; image-rendering: pixelated; }
body.eco .ev { display: none; }
@media (prefers-reduced-motion: reduce) { .nivel-tal, .ev { animation: none; } }
.rt-barra { height: 20px; margin: 4px 2px 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; text-shadow: 1px 1px 0 #000;
  background: linear-gradient(90deg, #2a78b0 var(--p), #14202c var(--p)); box-shadow: 0 0 0 2px #000; }
.fj-res { position: absolute; z-index: 1; left: 0; right: 0; bottom: 25px; padding: 3px 5px; text-align: center; font-size: 16px; line-height: 1; color: #ffe880; background: rgba(40,16,44,.88); }
.fj-ocupada .fj-res { visibility: hidden; }
.rl-sub.rl-res, .mkt-resumo .rl-res { color: #ffe880; } .rl-res b { color: #fff; font-weight: normal; }
@media (prefers-reduced-motion: reduce) { .nivel.festa { animation: none; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; margin-top: 6px; font-size: 17px; }
.stats b { color: var(--gold); font-weight: normal; }
.stats .full { grid-column: 1 / -1; color: var(--muted); }

/* ---------- Menu de up (botões + gaveta) ---------- */
.tabs { display: flex; gap: 6px; }
.tabs button {
  position: relative;
  font-family: var(--px); font-size: 8px; color: var(--muted);
  background: var(--panel2); border: none; cursor: pointer;
  box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--hi);
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px;
}
.tabs button img { width: 24px; height: 24px; }
.tabs button:hover { color: var(--text); filter: brightness(1.15); }
.tabs button.active { color: var(--text); background: #6a4430; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--fire); }
.badge {
  position: absolute; top: -6px; right: -6px; font-style: normal;
  font-family: var(--px); font-size: 8px; color: #fff; background: var(--bad);
  padding: 3px 4px; box-shadow: 0 0 0 2px #000; animation: bob .8s steps(2) infinite;
}
@keyframes bob { 50% { transform: translateY(-2px); } }

.drawer { display: flex; flex-direction: column; min-height: 0; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.drawer-head h2 { margin: 0; }
.tab-body { flex: 1; overflow-y: auto; padding: 3px 6px 3px 3px; scrollbar-color: var(--hi) #140c10; }

.opt { display: flex; align-items: center; gap: 8px; padding: 8px; background: #1e1418; box-shadow: 0 0 0 3px #000; margin: 3px 3px 12px; font-size: 18px; cursor: pointer; }
.opt img { width: 21px; height: 21px; }
.opt small { color: var(--muted); font-size: 16px; display: block; }
.opt input { width: 18px; height: 18px; accent-color: var(--pink); }

.item {
  display: grid; grid-template-columns: 52px 1fr; gap: 8px;
  background: #1e1418; padding: 8px; margin: 3px 3px 12px;
  box-shadow: 0 0 0 3px #000;
}
.item.equipped { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold); }
.item.locked { opacity: .55; }
.item .ico { width: 52px; height: 52px; background: #120a0e; box-shadow: inset 0 0 0 2px #000; display: flex; align-items: center; justify-content: center; }
.item .ico img { max-width: 44px; max-height: 44px; }
.item .name { font-size: 21px; }
.item .name .plus { color: var(--gold); }
.item .name .tag { font-family: var(--px); font-size: 7px; color: #000; background: var(--gold); padding: 3px 4px; vertical-align: middle; margin-left: 4px; }
.item .name .tag.key { background: var(--pink); color: #fff; }
.item .sub { color: var(--muted); font-size: 18px; }
.item .sub b { color: var(--text); font-weight: normal; }
.costs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 5px 0 2px; }
.cost { display: inline-flex; align-items: center; gap: 3px; font-size: 18px; }
.cost img { width: 15px; height: 15px; }
.cost.ok { color: var(--good); }
.cost.no { color: var(--bad); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 4px; }
.chance { font-size: 18px; margin-left: 6px; }
.refine { margin-top: 6px; padding-top: 6px; border-top: 2px dashed #3a2a30; }

.mult { display: flex; gap: 4px; justify-content: flex-end; margin-bottom: 8px; }
.up .lv { color: var(--gold); }

.bag { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; padding: 3px; }
.bag .slot { background: #1e1418; box-shadow: 0 0 0 3px #000; padding: 8px 4px; text-align: center; font-size: 17px; }
.bag .slot img { width: 32px; height: 32px; display: block; margin: 0 auto 4px; }
.bag .slot .c { color: var(--gold); font-size: 21px; }
.bag .slot.unk { opacity: .35; }
.bag .slot .src { color: var(--blue); font-size: 15px; margin-top: 2px; }
.bag .slot, .cost { cursor: help; }
.bag-stats { margin-top: 16px; font-size: 19px; color: var(--muted); }
.bag-stats b { color: var(--text); font-weight: normal; }

/* ---------- Toasts / modal ---------- */
#toasts { position: fixed; top: calc(var(--topH) + 14px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; pointer-events: none; }
.toast {
  font-family: var(--px); font-size: 10px; padding: 10px 14px; background: var(--panel);
  box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--hi), 4px 4px 0 3px rgba(0,0,0,.6);
  animation: tin .2s steps(3); text-align: center; max-width: 90vw;
}
.toast.good { color: var(--good); }
.toast.bad { color: #ff8080; }
.toast.gold { color: var(--gold); }
.toast.out { opacity: 0; transition: opacity .4s; }
@keyframes tin { from { transform: translateY(-12px); opacity: 0; } }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 60; }
.modal-box { background: var(--panel); box-shadow: 0 0 0 4px #000, inset 0 0 0 3px var(--hi), 8px 8px 0 4px rgba(0,0,0,.6); padding: 20px; width: min(460px, 92vw); max-height: 90vh; overflow: auto; }
.modal-box .row { display: flex; align-items: center; justify-content: space-between; margin: 10px 0; font-size: 21px; }
.modal-box textarea { width: 100%; height: 90px; background: #120a0e; color: var(--text); border: none; box-shadow: 0 0 0 3px #000; font-family: var(--body); font-size: 15px; margin: 8px 0; padding: 6px; }
.modal-box .grid { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0; }
.modal-box .grid span { display: inline-flex; align-items: center; gap: 4px; }
.modal-box .grid img { width: 18px; height: 18px; }
.modal-box p { font-size: 20px; margin: 8px 0; }
.modal-box .end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* =====================================================================
   PC: mapa em tela cheia; HUD pequeno flutuando por cima
   ===================================================================== */
@media (min-width: 901px) {
  #arena { position: fixed; left: 0; top: 0; z-index: 0; }
  .layout { display: block; }
  .arena-box { position: static; box-shadow: none; }
  .hint { display: none; }
  .boss-banner { position: fixed; top: calc(var(--topH) + 12px); left: 50%; transform: translateX(-50%); z-index: 2; }
  .hotbar { position: fixed; bottom: 12px; left: 0; right: 0; margin: 0 auto; width: max-content; z-index: 2; }

  /* canto inferior esquerdo */
  .left {
    position: fixed; left: 12px; bottom: 12px; z-index: 2;
    display: flex; flex-direction: column; gap: 8px; width: max-content;
  }
  .left .hero-view { width: 192px; }
  .left .hero .stats {
    position: absolute; left: 0; right: 0; bottom: calc(100% + 6px);
    background: var(--panel); padding: 8px; margin: 0;
    box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--hi);
    opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; pointer-events: none;
  }
  .left .hero:hover .stats { opacity: 1; transform: none; }

  /* direita: botões em coluna + gaveta que desliza */
  .right { position: fixed; top: calc(var(--topH) + 12px); right: 12px; bottom: 12px; z-index: 2; pointer-events: none; }
  .tabs { position: absolute; right: 0; top: 0; flex-direction: column; gap: 12px; pointer-events: auto; }
  .tabs button { width: 62px; }
  .drawer {
    position: absolute; right: 76px; top: 0; bottom: 0; width: 390px;
    pointer-events: auto;
    display: none;
  }
  .right.open .drawer { display: flex; animation: slidein .16s steps(4); }
  @keyframes slidein { from { opacity: 0; right: 40px; } to { opacity: 1; right: 76px; } }
}

/* =====================================================================
   Celular / telas estreitas: tudo empilhado
   ===================================================================== */
@media (max-width: 900px) {
  html, body { overflow: auto; height: auto; }
  .top { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px 12px; }
  .brand { font-size: 10px; }
  .bars { width: 100%; order: 5; }
  .goal { order: 6; white-space: normal; }
  .layout { display: flex; flex-direction: column; gap: 14px; padding: 14px; }
  .boss-banner { margin-top: 12px; }
  .hotbar { margin-top: 18px; gap: 6px; flex-wrap: wrap; justify-content: center; }
  .sk { width: 44px; height: 44px; }
  .left { display: flex; flex-direction: column; gap: 8px; }
  #lootLog:empty { display: none; }
  .hero-view { flex: 1; }
  .tabs { margin-bottom: 8px; }
  .tabs button { flex: 1; }
  #drawerClose { display: none; }
}

/* loja de diamantes */
.res.cyan { cursor: pointer; }
.stats .boosts { display: flex; flex-wrap: wrap; gap: 6px; color: #ffcc4a; }
.stats .boosts span { display: inline-flex; align-items: center; gap: 2px; }
.stats .boosts img { width: 12px; height: 12px; image-rendering: pixelated; }
/* LOJA: vitrine de diamantes (quantidade livre, sem pacotes) */
.lj-vit { margin: 3px 3px 12px; padding: 6px; background: linear-gradient(#2c4658, #16222e 14%, #121a26 88%, #0c1018); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #4a8aa8; }
.lj-cena { position: relative; height: 132px; overflow: hidden; box-shadow: 0 0 0 2px #000;
  background: radial-gradient(ellipse at 50% 78%, rgba(96,224,255,.5), transparent 58%), linear-gradient(#101028, #1a2a50 62%, #2c5070 62%, #16283c); }
.lj-cena > i { position: absolute; width: 4px; height: 4px; background: #e0ffff; animation: ljBrilho 2.4s steps(4) infinite; }
.lj-cena > i:nth-child(1) { left: 24%; top: 52%; } .lj-cena > i:nth-child(2) { left: 38%; top: 24%; animation-delay: -.6s; }
.lj-cena > i:nth-child(3) { left: 60%; top: 34%; animation-delay: -1.1s; } .lj-cena > i:nth-child(4) { left: 76%; top: 56%; animation-delay: -1.6s; }
.lj-cena > i:nth-child(5) { left: 50%; top: 12%; animation-delay: -2s; }
.lj-monte { position: absolute; left: 50%; bottom: 16px; }
.lj-monte img { position: absolute; left: calc(var(--x) - var(--t) / 2); bottom: var(--y); width: var(--t); image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)); animation: ljFlutua 2.6s steps(6) var(--a) infinite; }
.lj-saldo, .lj-preco { position: absolute; top: 6px; padding: 5px 7px; line-height: 1; background: rgba(8,10,20,.82); box-shadow: 0 0 0 2px #000; z-index: 30; }
.lj-saldo { left: 6px; } .lj-preco { right: 6px; text-align: right; }
.lj-saldo small, .lj-preco small { display: block; font-size: 16px; color: #b8ccd8; }
.lj-saldo b, .lj-preco b { font-size: 22px; font-weight: normal; color: #80ecff; } .lj-preco b { color: #ffe070; }
.lj-tit { display: block; margin: 11px 0 7px; text-align: center; font-family: var(--px); font-size: 9px; color: #a0f0ff; }
.lj-qtd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: stretch; margin: 0 3px; }
.lj-qtd .btn { min-width: 66px; min-height: 42px; }
.lj-qtd input { min-width: 0; padding: 2px 6px; border: 0; outline: 0; text-align: center; font-family: var(--body); font-size: 32px; line-height: 1;
  color: #fff; background: #0a1018; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #3a7a98; }
.lj-qtd input:focus { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #80ecff; }
.lj-total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 9px 3px; padding: 6px 10px; line-height: 1; background: #0c1620; box-shadow: 0 0 0 2px #000; }
.lj-total span { font-family: var(--px); font-size: 9px; color: #b8ccd8; } .lj-total b { font-size: 30px; font-weight: normal; color: #ffe070; white-space: nowrap; }
.lj-bt { display: block; width: calc(100% - 6px); min-height: 46px; margin: 0 3px; padding: 9px 8px 7px; }
.lj-bt small { display: block; margin-top: 5px; font-family: var(--body); font-size: 19px; line-height: 1; }
.lj-nota { margin: 8px 3px 2px; text-align: center; font-size: 17px; line-height: 1.1; color: #b8ccd8; } .lj-nota.ruim { color: #ffa898; }
/* celular deitado: a vitrine menor deixa o botão inteiro na tela */
.deitado .lj-cena { height: 92px; } .deitado .lj-monte { bottom: 9px; transform: scale(.74); transform-origin: 0 100%; }
.deitado .lj-tit { margin: 7px 0 5px; } .deitado .lj-total { margin: 6px 3px; padding: 4px 10px; } .deitado .lj-total b { font-size: 26px; }
@keyframes ljFlutua { 50% { transform: translateY(-3px); } }
@keyframes ljBrilho { 0%, 100% { opacity: 0; transform: scale(.5); } 50% { opacity: 1; transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .lj-monte img, .lj-cena > i { animation: none; } }
/* eventos do servidor: faixa que todos veem no mapa */
.srv-eventos { position: fixed; z-index: 2; left: 70px; top: calc(var(--topH) + 12px); display: grid; gap: 8px; pointer-events: none; }
.srv-eventos > div { display: flex; align-items: center; gap: 8px; padding: 5px 9px; line-height: 1; font-size: 19px; color: #fff; background: linear-gradient(90deg, #a03414, #3c1408); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #ffb040, 0 0 12px rgba(255,140,40,.6); animation: srvEvento 2.4s ease-in-out infinite; }
.srv-eventos img { width: 20px; height: 20px; object-fit: contain; image-rendering: pixelated; }
.srv-eventos b { font-family: var(--px); font-size: 9px; font-weight: normal; color: #ffe070; } .srv-eventos span { margin-left: auto; min-width: 46px; text-align: right; }
@keyframes srvEvento { 50% { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #fff0a0, 0 0 18px 4px rgba(255,170,60,.8); } }
.no-santuario .srv-eventos { display: none; }
@media (max-width: 900px) { .srv-eventos { position: static; grid-template-columns: repeat(2, auto); justify-content: center; margin: 8px; } }
@media (min-width: 901px) { .deitado .srv-eventos { left: calc(var(--m) + var(--se) + 118px); top: calc(var(--topH) + 46px); gap: 6px; } .deitado .srv-eventos > div { padding: 3px 7px; font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .srv-eventos > div { animation: none; } }
/* painel do administrador */
.adm-btn { display: inline-flex; flex: none; align-items: center; gap: 6px; color: #ffe8e0; background: #a82828; box-shadow: inset -3px -3px 0 #581010, inset 3px 3px 0 #e86060, 0 0 0 3px #000; }
.adm-btn img { width: 16px; image-rendering: pixelated; }
.deitado .adm-btn span { display: none; }
.adm-box { width: min(900px, 96vw); height: min(680px, 92vh); padding: 0; display: flex; flex-direction: column; background: linear-gradient(#3c1c24, #1c1016 18%, #160e14); box-shadow: 0 0 0 3px #000, inset 0 0 0 3px #d8a040, 0 0 30px rgba(255,90,60,.35); }
.adm-topo { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; } .adm-topo h2 { margin: 0; color: #ffd860; } .adm-topo > img { width: 28px; image-rendering: pixelated; }
.adm-nums { display: flex; gap: 8px; margin-left: auto; } .adm-nums span { padding: 4px 8px; text-align: center; line-height: 1; font-family: var(--px); font-size: 6px; color: #d8a8a0; background: #120a0e; box-shadow: 0 0 0 2px #000; }
.adm-nums b { display: block; margin-top: 3px; font-family: var(--body); font-size: 20px; font-weight: normal; color: #fff; }
.adm-abas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 4px 16px 10px; }
.adm-abas button, .adm-linha button { min-height: 36px; padding: 6px 4px; border: 0; cursor: pointer; font-family: var(--px); font-size: 8px; color: #e8c8c0; background: linear-gradient(#54303a, #2c181e); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #8a5058; }
.adm-abas .on, .adm-linha .on { color: #2a0c04; background: linear-gradient(#ffe080, #e09030); }
.adm-corpo { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 18px 18px; font-size: 19px; line-height: 1.15; overscroll-behavior: contain; }
.adm-corpo h3 { margin: 18px 0 8px; } .adm-dica { margin: 12px 0; color: #d8c0c0; } .adm-dica b { font-weight: normal; color: #ffe070; }
.adm-ev { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.adm-ev button { display: grid; justify-items: center; gap: 6px; padding: 14px 4px 10px; border: 0; cursor: pointer; line-height: 1; font-family: var(--body); color: #fff; background: radial-gradient(circle at 50% 30%, #5c3440, #22121a 72%); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #8a5058; }
.adm-ev img { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; } .adm-ev b { font-family: var(--px); font-size: 9px; font-weight: normal; } .adm-ev small { font-size: 17px; color: #b89898; }
.adm-ev i, .adm-mudo i { font-style: normal; }
.adm-ev .vivo { background: radial-gradient(circle at 50% 30%, #e08030, #5c1c08 72%); } .adm-ev .vivo small { color: #fff0a0; }
.adm-ev .on { box-shadow: 0 0 0 2px #000, inset 0 0 0 3px #ffe070, 0 0 14px rgba(255,200,80,.6); }
.adm-linha { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 10px 0; } .adm-linha span { width: 66px; font-family: var(--px); font-size: 8px; color: #d8a8a0; } .adm-linha button { flex: 1; max-width: 110px; }
.adm-acoes { display: flex; align-items: center; gap: 14px; margin-top: 14px; } .adm-acoes .fj-btn small { display: block; margin-top: 5px; font-family: var(--body); font-size: 18px; line-height: 1; }
.adm-item { display: flex; align-items: center; gap: 12px; margin: 9px 2px; padding: 9px 11px; background: #24141a; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #5c343c; }
.adm-item > div:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; } .adm-item b { font-weight: normal; font-size: 21px; color: #ffe9b0; } .adm-item small { display: block; color: #b89898; font-size: 17px; } .adm-item .adm-login { display: inline; }
.adm-item p { margin: 3px 0 0; color: #fff; } .adm-item.alto { align-items: flex-start; } .adm-item.apagada { opacity: .55; } .adm-item.apagada p { text-decoration: line-through; }
.adm-bts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; max-width: 400px; } .adm-bts > span { color: #d8a8a0; } .adm-bts .adm-mudo { color: #ff9080; }
.adm-tag { display: inline-block; margin-left: 6px; padding: 3px 5px 2px; font-family: var(--px); font-size: 7px; font-style: normal; line-height: 1; color: #140c10; background: #b8a0a0; vertical-align: 2px; }
.adm-tag.on { background: #80e070; } .adm-tag.ouro { background: #ffd050; } .adm-tag.ruim { background: #ff8070; }
.adm-busca { display: flex; gap: 10px; margin: 4px 2px 12px; } .adm-busca input, .adm-senha input { flex: 1; min-width: 0; padding: 8px 10px; border: 0; outline: 0; font: 21px var(--body); color: #fff; background: #120a0e; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #8a5058; }
.adm-busca input:focus, .adm-senha input:focus { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #ffe070; }
.adm-log { display: grid; grid-template-columns: 110px 210px 1fr; gap: 10px; padding: 5px 2px; border-bottom: 1px solid #3c2228; overflow-wrap: anywhere; } .adm-log time { color: #a08088; } .adm-log b { font-weight: normal; color: #ffe070; }
.adm-senha { position: relative; display: grid; align-content: center; justify-items: center; gap: 14px; height: 100%; padding: 24px; text-align: center; } .adm-senha > img { width: 76px; image-rendering: pixelated; filter: drop-shadow(0 0 14px #ffb040); }
.adm-senha h2 { margin: 0; font-size: 17px; color: #ffd860; } .adm-senha p { margin: 0; max-width: 400px; font-size: 19px; } .adm-senha p b { font-weight: normal; color: #ffe070; } .adm-senha .adm-pw, .adm-senha .fj-btn { width: min(400px, 100%); }
.adm-pw { display: flex; gap: 10px; align-items: stretch; } .adm-erro { max-width: 440px; font-size: 18px; line-height: 1.1; color: #ff9080; } .adm-erro:empty { display: none; } .adm-senha .mkt-x { position: absolute; right: 14px; top: 14px; }
.adm-abas button:focus-visible, .adm-ev button:focus-visible, .adm-linha button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 900px) { .adm-nums { display: none; } .adm-topo > .btn { margin-left: auto; } .adm-abas, .adm-ev { grid-template-columns: repeat(3, 1fr); } .adm-item { flex-wrap: wrap; } .adm-log { grid-template-columns: 1fr; gap: 2px; } }
@media (min-width: 901px) { .deitado .adm-box { height: calc(var(--alt) - 16px); } .deitado .adm-topo { padding: 8px 14px 6px; } .deitado .adm-ev button { padding: 8px 4px 6px; } .deitado .adm-ev img { width: 32px; height: 32px; } .deitado .adm-dica { margin: 8px 0; font-size: 18px; } .deitado .adm-linha { margin: 7px 0; } .deitado .adm-acoes { margin-top: 8px; } .deitado .adm-acoes .fj-btn { padding: 8px; } .deitado .adm-senha { gap: 9px; padding: 12px; } }
/* santuário: QUERO IGUAL e ilha em destaque */
.st-quero { --rc: #6a5090; display: flex; align-items: center; gap: 10px; margin: 8px 3px; padding: 6px 8px; font-size: 18px; line-height: 1; background: #2c1c48; box-shadow: 0 0 0 2px #000, inset 3px 0 0 var(--rc); }
.st-quero > img { flex: none; width: 58px; height: 52px; object-fit: contain; image-rendering: pixelated; } .st-quero > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.st-quero b { display: block; font-weight: normal; font-size: 20px; color: #ffe9a8; } .st-quero small { display: block; margin-top: 3px; font-size: 17px; color: #c8b8e0; }
.st-quero em { font-style: normal; font-size: 20px; color: #80ecff; } .st-quero em img { width: 16px; height: 13px; object-fit: contain; image-rendering: pixelated; vertical-align: -1px; }
.st-quero .btn { flex: none; } .st-quero.foco { background: #58388c; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #ffe070, 0 0 14px rgba(255,220,100,.5); }
.st-destaque .st-lugar { background: linear-gradient(90deg, #7a4c10, #482070); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #ffd860, 0 0 16px rgba(255,200,80,.5); }
/* LOJA: ateliê (provador de visuais) */
.at-aba { color: #fff0ff; background: linear-gradient(#b03890, #601858); box-shadow: inset 2px 2px 0 #ff90d8, inset -2px -2px 0 #380830, 0 0 0 3px #000, 0 0 10px 2px rgba(255,90,200,.45); }
.at-aba.on { color: #40062c; background: linear-gradient(#ffa8e8, #e058b0); }
.at-reino { background: linear-gradient(#8a4c98, #3c1c54 14%, #241038 88%, #14081e); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #b878d0; }
.at-cena { aspect-ratio: 176 / 126; box-shadow: 0 0 0 2px #000, 0 0 18px rgba(220,100,255,.5); }
.at-nome { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font-size: 20px; line-height: 1; text-shadow: 1px 1px 0 #000, -1px 0 0 #000; pointer-events: none; }
.at-limpa { float: right; margin: 2px 2px 4px 8px; }
.at-placa { padding: 8px 4px 2px; line-height: 1.05; }
.at-placa b { display: block; font-size: 25px; font-weight: normal; color: #ffe070; text-shadow: 2px 2px 0 #000; }
.at-placa small { display: block; margin-top: 2px; font-size: 17px; color: #e8d0f8; }
.at-lado > .fj-btn { display: block; margin: 9px 3px 3px; padding: 10px 8px 8px; }
.at-lado .lj-bt small img, .at-grade em img { width: 16px; height: 13px; object-fit: contain; image-rendering: pixelated; vertical-align: -1px; }
.at-veste small { display: block; }
.at-ok, .at-conta { margin: 9px 4px 3px; text-align: center; font-size: 18px; line-height: 1.1; color: #90f080; } .at-conta { margin-top: 6px; color: #e8d0f8; }
.at-link { display: block; width: calc(100% - 6px); margin: 7px 3px 3px; padding: 7px; border: 0; cursor: pointer; font-family: var(--body); font-size: 18px; line-height: 1; color: #e8d0f8; background: #2a1638; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #8a58a8; }
.at-link b { font-weight: normal; color: #ffe070; }
.at-pecas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 9px 5px 3px; }
.at-pecas button { position: relative; height: 46px; min-width: 0; padding: 3px; border: 0; cursor: pointer; background: radial-gradient(circle, #5c3478, #221030); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #8a58a8; }
.at-pecas .tem::after { content: '\2713'; position: absolute; right: 2px; bottom: 0; font-size: 18px; line-height: 1; color: #90f080; text-shadow: 1px 1px 0 #000; }
.at-pecas .ico, .at-grade .ico { display: grid; place-items: center; width: 100%; height: 100%; min-width: 0; padding: 0; background: none; box-shadow: none; }
.at-pecas img { max-width: 100%; max-height: 40px; image-rendering: pixelated; }
.at-abas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 4px; }
.at-abas button { min-width: 0; min-height: 34px; padding: 5px 2px; border: 0; cursor: pointer; font-family: var(--px); font-size: 8px; color: #d8b8e8; background: linear-gradient(#46285c, #28143a); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #7a4c98; }
.at-abas .on { color: #40062c; background: linear-gradient(#ffa8e8, #d850a8); }
.at-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px; }
.at-grade.conj { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.at-grade > button { display: grid; grid-template-rows: 72px 1fr auto; gap: 3px; min-width: 0; padding: 5px 4px; border: 0; cursor: pointer; line-height: 1; font-family: var(--body); color: #f0e4f8;
  background: radial-gradient(circle at 50% 32%, #64408a, #26143a 68%); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #8460a0; }
.at-grade.conj > button { grid-template-rows: 100px 1fr auto; }
.at-grade img { max-width: 100%; max-height: 70px; margin: auto; object-fit: contain; image-rendering: pixelated; } .at-grade.conj > button > img { max-height: 98px; }
.at-grade .ico .mold { font-size: 22px; }
.at-grade span { font-size: 17px; align-self: center; }
.at-grade em { font-style: normal; font-size: 18px; color: #80ecff; white-space: nowrap; } .at-grade em.falta { color: #ffa898; } .at-grade em.ok { color: #90f080; }
.at-grade s { margin-right: 5px; font-size: 15px; color: #a890b8; } .at-grade em img { margin: 0 4px 0 0; }
.at-grade .on { box-shadow: 0 0 0 2px #000, inset 0 0 0 3px #ff90e0, 0 0 14px rgba(255,120,220,.6); }
.at-grade button:focus-visible, .at-abas button:focus-visible, .at-pecas button:focus-visible, .at-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 901px) {      /* palco de um lado (sempre à vista) e vitrine do outro */
  .drawer:has(.at-reino) { width: min(800px, calc(100vw - 460px)); }
  .tab-body:has(.at-reino) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 10px; align-items: start; }
  .tab-body:has(.at-reino) > .mult { grid-column: 1 / -1; margin-bottom: 4px; }
  .at-lado { position: sticky; top: 0; }
  .at-abas { margin-top: 4px; }
  .deitado .drawer:has(.at-reino) { width: min(760px, calc(100vw - 440px)); }
  .deitado .drawer:has(.at-reino) .drawer-head { position: absolute; right: 8px; top: 8px; z-index: 2; margin: 0; } .deitado .drawer:has(.at-reino) #drawerTitle { display: none; }
  .deitado .at-cena { aspect-ratio: 176 / 112; } .deitado .at-placa { padding-top: 5px; } .deitado .at-placa b { font-size: 22px; } .deitado .at-placa small { font-size: 16px; }
  .deitado .at-pecas button { height: 38px; } .deitado .at-pecas img { max-height: 32px; } .deitado .at-pecas { margin-top: 7px; }
  .deitado .at-lado > .fj-btn { padding: 7px 6px 6px; margin-top: 7px; min-height: 40px; } .deitado .at-link { margin-top: 5px; padding: 5px; font-size: 16px; }
  .deitado .at-conta { font-size: 16px; } .deitado .at-abas button { font-size: 7px; }
}
.lg-eq .btn { margin-left: auto; flex: none; align-self: center; }
/* LOJA: VIP (o salão real) */
.vip-btn, .vp-aba { display: inline-flex; flex: none; align-items: center; gap: 6px; color: #fff4c0; background: linear-gradient(#b8862a, #7a4c10); box-shadow: inset 2px 2px 0 #ffe080, inset -2px -2px 0 #4a2c08, 0 0 0 3px #000, 0 0 10px 2px rgba(255,200,60,.45); }
.vip-btn img, .vp-aba img { width: 16px; image-rendering: pixelated; }
.vip-btn.on, .vp-aba.on { background: linear-gradient(#ffd860, #c88a20); color: #2a1604; }
.vp-reino { background: linear-gradient(#5a4c78, #2c2444 14%, #1e1832 88%, #120e20); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #7c6ca8; }
.vp-reino.on { background: linear-gradient(#ffd860, #8a5a18 12%, #3c2408 88%, #201204); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #ffe890; }
.vp-cena { aspect-ratio: 176 / 100; box-shadow: 0 0 0 2px #000, 0 0 14px rgba(110,90,200,.4); }
.vp-reino.on .vp-cena { box-shadow: 0 0 0 2px #000, 0 0 20px rgba(255,210,80,.6); }
.vp-placa { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; padding: 9px 6px 2px; line-height: 1; }
.vp-placa img { width: 25px; image-rendering: pixelated; }
.vp-placa b { font-family: var(--px); font-size: 12px; font-weight: normal; color: #ffe070; text-shadow: 2px 2px 0 #000; }
.vp-placa small { text-align: right; font-size: 18px; color: #e8e0ff; text-shadow: 1px 1px 0 #000; }
.vp-fala { margin-top: 7px; padding: 5px 8px; font-size: 19px; line-height: 1.15; background: #140e1e; box-shadow: 0 0 0 2px #000; overflow-wrap: anywhere; }
.vp-ganhos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 5px; }
.vp-ganhos > div { display: grid; justify-items: center; align-content: start; gap: 2px; min-width: 0; padding: 6px 3px 5px; text-align: center; line-height: 1; background: linear-gradient(#2e2648, #1c172c); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #5c4e84; }
.vp-ganhos img { width: 24px; height: 24px; object-fit: contain; image-rendering: pixelated; }
.vp-ganhos b { font-size: 18px; font-weight: normal; color: #ffe070; }
.vp-ganhos small { font-size: 16px; color: #c8c0e0; }
.vp-planos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 6px; }
.vp-planos button { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: baseline; gap: 5px; padding: 8px 4px 6px; border: 0; cursor: pointer; line-height: 1; font-family: var(--body); color: #c8c0e0;
  background: linear-gradient(#343050, #201c34); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #565078; }
.vp-planos b { font-family: var(--px); font-size: 16px; font-weight: normal; color: #ffffff; } .vp-planos span { font-family: var(--px); font-size: 7px; }
.vp-planos em { grid-column: 1 / -1; justify-self: center; display: flex; align-items: center; gap: 5px; font-style: normal; font-size: 23px; color: #80ecff; }
.vp-planos em img, .vp-bt small img { width: 16px; height: 16px; object-fit: contain; image-rendering: pixelated; }
.vp-planos .on { color: #fff0c0; background: linear-gradient(#8a5a1c, #4c2c0a); box-shadow: 0 0 0 3px #000, inset 0 0 0 3px #ffd860, 0 0 14px rgba(255,210,80,.55); }
@media (min-width: 901px) {      /* celular deitado: cena de um lado, compra do outro */
  .deitado .drawer:has(.vp-reino) { width: min(700px, calc(100vw - 440px)); }
  .deitado .tab-body:has(.vp-reino) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 8px; align-items: start; }
  .deitado .vp-corpo { grid-column: 2; grid-row: 1 / 3; }
  .deitado .vp-ganhos { gap: 6px; margin: 3px 3px 9px; } .deitado .vp-ganhos b { font-size: 17px; } .deitado .vp-ganhos small { font-size: 15px; }
  .deitado .vp-planos { margin: 11px 6px; }
}
.vp-planos button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vp-bt small img { vertical-align: -2px; }
.vip-ico { width: 15px; height: 12px; margin: 0 1px 0 5px; object-fit: contain; image-rendering: pixelated; vertical-align: -1px; filter: drop-shadow(0 0 3px #60e0ff); }
.titulo.vip { color: #ffe880; text-shadow: 0 0 5px #ffb020, 1px 1px 0 #000; }
.nivel .nivel-vip { display: flex; align-items: center; gap: 5px; margin: 0 auto 0 10px; font-style: normal; color: #ffe070; }
.nivel-vip img { width: 16px; image-rendering: pixelated; }
.boss-banner.cast { color: #fff0a0; }

/* =====================================================================
   Contas: tela de entrar / criar conta / recuperar
   ===================================================================== */
.auth { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 20px 12px;
  background: radial-gradient(ellipse at 50% 110%, #5a2a1a 0%, #2a141a 35%, #120c12 75%); transition: opacity .4s; user-select: text; }
.auth.saindo { opacity: 0; pointer-events: none; }
.auth-embers { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.auth-embers i { position: absolute; bottom: -10px; width: 4px; height: 4px; background: #ff8a3a; box-shadow: 0 0 6px #ff6a1a; animation: brasa linear infinite; opacity: 0; }
.auth-embers i:nth-child(3n) { background: #ffd040; width: 3px; height: 3px; }
@keyframes brasa { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(30px, -105vh); opacity: 0; } }
.auth-box { position: relative; width: min(420px, 100%); margin: auto; background: var(--panel); padding: 22px 22px 18px;
  box-shadow: 0 0 0 4px #000, inset 0 0 0 3px var(--hi), 10px 10px 0 4px rgba(0,0,0,.6); }
.auth-logo { text-align: center; margin-bottom: 14px; }
.auth-hero { width: 60px; height: auto; animation: flutua 2.4s ease-in-out infinite; filter: drop-shadow(0 4px 0 rgba(0,0,0,.5)); }
@keyframes flutua { 50% { transform: translateY(-6px); } }
.auth-logo h1 { font-family: var(--px); font-size: 18px; color: var(--gold); margin: 8px 0 6px; text-shadow: 3px 3px 0 #6a2a10, -1px -1px 0 #000; letter-spacing: 1px; }
.auth-logo p { margin: 0; color: var(--muted); font-size: 19px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.auth-tabs button { flex: 1; font-family: var(--px); font-size: 9px; padding: 10px 4px; color: var(--muted); background: #1e1418; border: none; cursor: pointer; box-shadow: 0 0 0 3px #000; }
.auth-tabs button.on { color: var(--text); background: #6a4430; box-shadow: 0 0 0 3px #000, inset 0 -3px 0 var(--fire); }
.auth-field { display: block; margin: 0 0 10px; }
.auth-field > span { display: block; font-size: 18px; color: var(--muted); margin-bottom: 3px; }
.auth-input { position: relative; }
.auth-input input { width: 100%; font-family: var(--body); font-size: 22px; color: var(--text); background: #120a0e; border: none; padding: 7px 34px 7px 10px; box-shadow: 0 0 0 3px #000, inset 0 0 0 1px #3a2a30; outline: none; }
.auth-input input:focus { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--fire); }
.auth-field.bad input { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--bad); }
.auth-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 18px; opacity: .55; padding: 4px; }
.auth-eye.on, .auth-eye:hover { opacity: 1; }
.auth-err { display: block; color: #ff8080; font-size: 17px; margin-top: 3px; }
.auth-err:empty { display: none; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 12px; flex-wrap: wrap; }
.auth-row.center { justify-content: center; margin: 8px 0 0; }
.auth-check { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; cursor: pointer; margin: 4px 0 10px; }
.auth-check input { width: 16px; height: 16px; accent-color: var(--fire); }
.auth-link { background: none; border: none; color: var(--blue); font-family: var(--body); font-size: 18px; cursor: pointer; padding: 2px; text-decoration: underline; text-underline-offset: 3px; }
.auth-link:hover { color: #a0d0ff; }
.auth-main { display: block; width: calc(100% - 6px); padding: 12px; font-size: 11px; margin: 6px 3px 4px; }
.auth-guest { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 2px dashed #3a2a30; color: var(--muted); font-size: 17px; }
.auth-msg { padding: 8px 10px; margin: 4px 0 10px; font-size: 18px; box-shadow: 0 0 0 2px #000; }
.auth-msg.bad { background: #3a1418; color: #ffb0b0; }
.auth-msg.ok { background: #14301a; color: #b0ffb8; }
.auth-h { font-family: var(--px); font-size: 12px; text-align: center; color: var(--gold); margin: 4px 0 10px; }
.auth-p { font-size: 19px; color: var(--text); margin: 6px 0 12px; text-align: center; }
.auth-p.warn { color: var(--gold); }
.auth-code { font-family: var(--px); font-size: 16px; text-align: center; letter-spacing: 2px; color: #60e0ff; background: #0c141c; padding: 14px 6px; margin: 8px 0; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #2a6a8a; user-select: all; }
.auth-strength { height: 6px; background: #120a0e; box-shadow: 0 0 0 2px #000; margin: -4px 0 4px; }
.auth-strength i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.auth-strength i.f0 { background: #e04848; } .auth-strength i.f1 { background: #ff8a3a; } .auth-strength i.f2 { background: #ffcc4a; }
.auth-strength i.f3 { background: #9ad45a; } .auth-strength i.f4 { background: #4ad45a; }
.auth-hint { display: block; color: var(--muted); font-size: 16px; margin-bottom: 10px; }

/* botão da conta na barra de cima + janela da conta */
.conta-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; max-width: 140px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.conta-btn .dot { width: 6px; height: 6px; flex: none; background: var(--good); box-shadow: 0 0 0 1px #000; }
.conta-btn.erro .dot { background: var(--bad); }
.conta-btn.guest { background: #2a6a8a; box-shadow: inset -3px -3px 0 #164058, inset 3px 3px 0 #4a9ac0, 0 0 0 3px #000; }
.conta-box h2 { font-family: var(--px); font-size: 13px; color: var(--gold); margin: 0 0 12px; }
.conta-card { display: flex; gap: 12px; align-items: center; background: #1e1418; padding: 10px; box-shadow: 0 0 0 3px #000; margin-bottom: 12px; }
.conta-card img { width: 44px; height: auto; }
.conta-nome { font-family: var(--px); font-size: 12px; margin-bottom: 4px; }
.conta-sub { color: var(--muted); font-size: 17px; }
.conta-sub .ok { color: var(--good); } .conta-sub .bad { color: var(--bad); }
.conta-acoes { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.conta-f { background: #1e1418; padding: 10px; box-shadow: 0 0 0 3px #000; margin: 8px 3px; }
.conta-aviso { position: fixed; left: 50%; top: 64px; transform: translateX(-50%); z-index: 300; padding: 10px 16px; font-size: 19px; box-shadow: 0 0 0 3px #000; transition: opacity .5s; max-width: 92vw; }
.conta-aviso.ok { background: #14301a; color: #b0ffb8; } .conta-aviso.bad { background: #3a1418; color: #ffb0b0; }
.conta-aviso.sai { opacity: 0; }

/* =====================================================================
   Relíquias + Mercado RMT
   ===================================================================== */
.mercado-btn { flex: none; background: #8a2a8a; box-shadow: inset -3px -3px 0 #4a104a, inset 3px 3px 0 #c060c0, 0 0 0 3px #000; color: #ffe0ff; }
.mkt-box { width: min(760px, 96vw); max-height: 92vh; padding: 0; display: flex; flex-direction: column; }
.mkt-tabs { display: flex; gap: 4px; padding: 12px 12px 0; flex-wrap: wrap; align-items: stretch; }
.mkt-tabs button { font-family: var(--px); font-size: 9px; padding: 9px 10px; color: var(--muted); background: #1e1418; border: none; cursor: pointer; box-shadow: 0 0 0 3px #000; margin: 3px; }
.mkt-tabs button.on { color: var(--text); background: #6a2a6a; box-shadow: 0 0 0 3px #000, inset 0 -3px 0 #ff60d0; }
.mkt-tabs .mkt-x { margin-left: auto; color: var(--text); background: #6a4430; }
.mkt-body { padding: 12px 15px 16px; overflow-y: auto; }
.mkt-load, .mkt-vazio { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 20px; }
.mkt-teste { background: #3a2a10; color: #ffd890; padding: 7px 10px; margin-bottom: 10px; font-size: 17px; box-shadow: 0 0 0 2px #000; }
.mkt-filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mkt-filtros select, .mkt-saque input, .rl-vender input { font-family: var(--body); font-size: 19px; color: var(--text); background: #120a0e; border: none; padding: 5px 8px; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #3a2a30; }
.mkt-h { font-family: var(--px); font-size: 10px; color: var(--gold); margin: 16px 2px 8px; }
.mkt-p { font-size: 19px; margin: 8px 2px; color: var(--text); }
.mkt-p.warn { color: #ffd890; }
.mkt-vendas div { display: flex; gap: 8px; align-items: baseline; padding: 4px 6px; font-size: 18px; border-bottom: 1px dashed #3a2a30; }
.mkt-vendas b { margin-left: auto; color: var(--good); }
.mkt-vendas i { color: #ffd890; font-style: normal; }
.mkt-resumo { background: #1e1418; padding: 8px 10px; margin-bottom: 10px; box-shadow: 0 0 0 2px #000; font-size: 18px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.mkt-resumo span { color: var(--good); }
.mkt-status { background: #2a1e14; color: #ffd890; padding: 8px 10px; margin-bottom: 10px; box-shadow: 0 0 0 2px #000, inset 3px 0 0 #ffb030; font-size: 18px; }
.mkt-status.ok { background: #14241a; color: var(--good); box-shadow: 0 0 0 2px #000, inset 3px 0 0 var(--good); }
.conta-email { background: #2a1e14; color: #ffd890; padding: 8px 10px; margin-bottom: 8px; box-shadow: 0 0 0 2px #000; font-size: 18px; }
.mkt-saldos { display: flex; gap: 10px; flex-wrap: wrap; }
.mkt-saldos div { flex: 1; min-width: 160px; background: #1e1418; padding: 10px; box-shadow: 0 0 0 3px #000; }
.mkt-saldos small { display: block; color: var(--muted); font-size: 17px; }
.mkt-saldos b { font-family: var(--px); font-size: 15px; color: var(--good); }
.mkt-saldos b.teste { color: #ffd890; }
.mkt-saque { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 2px; }
.mkt-saque input { flex: 1; min-width: 120px; }
.mkt-tab { width: 100%; border-collapse: collapse; font-size: 18px; margin: 8px 0; }
.mkt-tab th, .mkt-tab td { text-align: left; padding: 5px 6px; border-bottom: 1px solid #3a2a30; }
.mkt-tab th { color: var(--muted); font-weight: normal; }

/* cartão de relíquia: a borda brilha na cor da raridade */
.rl { --rc: #fff; display: flex; gap: 10px; align-items: center; background: #1e1418; padding: 8px 10px; margin: 0 3px 10px;
  box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--rc), inset 0 0 18px -6px var(--rc); }
.rl-ico { width: 52px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; background: #120a0e; box-shadow: 0 0 0 2px #000, inset 0 0 14px -4px var(--rc); }
.rl-ico img { max-width: 46px; max-height: 46px; filter: drop-shadow(0 0 4px var(--rc)); }
.rl-info { flex: 1; min-width: 0; }
.rl-nome { font-family: var(--px); font-size: 11px; color: var(--rc); margin-bottom: 4px; text-shadow: 0 0 6px var(--rc); }
.rl-sub { font-size: 17px; color: var(--muted); }
.rl-sub b { color: var(--text); }
.rl-tag { display: inline-block; font-family: var(--px); font-size: 7px; color: #000; background: var(--rc); padding: 2px 5px; margin-right: 6px; vertical-align: 2px; }
.rl-act { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.rl-preco { font-family: var(--px); font-size: 12px; color: var(--good); }
.rl-vender { display: flex; align-items: center; gap: 4px; font-size: 18px; }
.rl-vender input { width: 92px; }
.rl-liq { color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .rl { flex-wrap: wrap; } .rl-act { width: 100%; flex-direction: row; justify-content: flex-end; align-items: center; } }

/* anúncio de relíquia encontrada */
.rl-drop { --rc: #fff; position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.78); overflow: hidden; animation: rlFade .4s; }
.rl-drop-raios { position: absolute; width: 160vmax; height: 160vmax; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 35%, transparent) 0 10deg, transparent 10deg 20deg); animation: rlGira 14s linear infinite; opacity: .55; }
.rl-drop-box { position: relative; text-align: center; background: var(--panel); padding: 22px 26px; width: min(420px, 92vw); box-shadow: 0 0 0 4px #000, inset 0 0 0 3px var(--rc), 0 0 60px var(--rc); animation: rlPop .5s cubic-bezier(.2,1.6,.4,1); }
.rl-drop-box img { width: auto; height: 110px; margin: 10px 0; filter: drop-shadow(0 0 12px var(--rc)); animation: flutua 2s ease-in-out infinite; }
.rl-drop-top { font-family: var(--px); font-size: 12px; color: var(--gold); }
.rl-drop-rar { font-family: var(--px); font-size: 10px; color: #000; background: var(--rc); display: inline-block; padding: 3px 8px; }
.rl-drop-nome { font-family: var(--px); font-size: 15px; color: var(--rc); margin: 10px 0 6px; text-shadow: 0 0 10px var(--rc); }
.rl-drop-sub { font-size: 19px; color: var(--text); }
.rl-drop-box p { font-size: 18px; color: var(--muted); }
@keyframes rlGira { to { transform: rotate(360deg); } }
@keyframes rlPop { from { transform: scale(.3); opacity: 0; } }
@keyframes rlFade { from { opacity: 0; } }

/* sem servidor não há progresso: a luta espera com este aviso no meio da tela */
.srv-pausa { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 80; width: min(420px, calc(100vw - 32px)); padding: 16px;
  text-align: center; background: #1e1418; box-shadow: 0 0 0 3px #000, inset 0 0 0 3px var(--gold), 0 0 0 100vmax rgba(6, 4, 8, .6); }
.srv-pausa.hidden { display: none; }
.srv-pausa h2 { margin: 0 0 10px; font-size: 13px; color: var(--gold); }
.srv-pausa p { margin: 0 0 12px; font-size: 20px; line-height: 1.15; }
.srv-pausa p:last-child { margin-bottom: 0; }

/* =====================================================================
   Chat geral (canto de baixo à direita, à esquerda das abas)
   ===================================================================== */
.chat { position: fixed; right: 92px; bottom: 12px; z-index: 1; width: 330px; display: flex; flex-direction: column;
  background: rgba(18, 12, 18, .86); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--hi); user-select: text; }
.chat-head { display: flex; align-items: center; gap: 8px; width: 100%; border: none; cursor: pointer; padding: 7px 10px;
  background: #2a1e24; color: var(--gold); font-family: var(--px); font-size: 9px; text-align: left; }
.chat-head span { flex: 1; }
.chat-seta::after { content: '▼'; font-size: 10px; color: var(--muted); }
.chat.fechado .chat-seta::after { content: '▲'; }
.chat-badge { font-style: normal; font-family: var(--px); font-size: 8px; color: #fff; background: var(--bad); padding: 3px 5px; box-shadow: 0 0 0 2px #000; }
.chat-msgs { height: 190px; overflow-y: auto; padding: 6px 8px; font-size: 18px; line-height: 1.15; }
.cm { margin: 2px 0; word-wrap: break-word; overflow-wrap: anywhere; color: var(--text); }
.cm time { color: #6a5a62; font-size: 15px; margin-right: 5px; }
/* avisos do sistema: cada tipo tem a sua cor (--av), na faixa, na etiqueta e no texto (AVISOS no chat.js) */
.cm.sys { --av: #f2e4cc; color: var(--av); margin: 4px 0; padding: 2px 5px 3px 6px; border-left: 3px solid var(--av); background: rgba(0, 0, 0, .35); }
.cm.sys time { color: #a08e98; }
.cm-tag { display: inline-block; font-family: var(--px); font-size: 7px; font-style: normal; line-height: 1; color: #140c12;
  background: var(--av); padding: 3px 4px 2px; margin-right: 6px; vertical-align: 2px; }
.cm.av-chefe { --av: #ff8a3a; }
.cm.av-evento { --av: #ffb040; background: rgba(150, 60, 10, .45); }
.cm.av-vitoria { --av: #6fd45a; }
.cm.av-batalha { --av: #c8a0ff; background: rgba(90, 40, 160, .45); }
.cm.av-campeao { --av: #ffe070; }
.cm-ir { margin-left: 4px; padding: 4px 7px 3px; border: 0; cursor: pointer; font-family: var(--px); font-size: 8px; color: #fff; background: #7a3ac8; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #d8b0ff; }
.cm-ir:hover { filter: brightness(1.2); }
.cm.av-mural { --av: #ffc020; }
.cm.av-ilha { --av: #d8a878; }
.cm.av-guilda { --av: #6ab0ff; }
/* relíquias: a mesma cor da raridade no resto do jogo */
.cm.av-ancestral { --av: #ff6060; }
.cm.av-mitico { --av: #ff50e0; }
.cm.av-divino { --av: #40fff0; }
.cm.av-unico { --av: #ffe880; }
.cm.av-artefato { --av: #b898ff; }
.cm.av-pedra { --av: #ffa8dc; }
/* só no canal da guilda */
.cm.av-entrou { --av: #6fd45a; }
.cm.av-saiu { --av: #ff7a7a; }
.cm.av-pedido { --av: #7ef0d0; }
.cm.av-cargo { --av: #ffc020; }
.cm.av-nivel { --av: #d090ff; }
/* aviso da administração: o único com o fundo colorido */
.cm.av-aviso { --av: #fff; background: #a02438; }
.cm.av-aviso time { color: #f0c0c8; }
.chat-msgs:empty::before { content: 'Nenhuma mensagem por aqui ainda.'; color: var(--muted); }
.chat-form { display: flex; gap: 4px; padding: 6px; border-top: 2px solid #000; }
.chat-form input { flex: 1; min-width: 0; font-family: var(--body); font-size: 19px; color: var(--text); background: #120a0e; border: none; padding: 4px 7px; box-shadow: 0 0 0 2px #000; outline: none; }
.chat-form input:focus { box-shadow: 0 0 0 2px #000, inset 0 0 0 1px var(--fire); }
.chat-form input:disabled { opacity: .6; }
.chat.fechado .chat-msgs, .chat.fechado .chat-form { display: none; }
.chat.fechado { width: 190px; }
/* telas médias: sobe o chat para não ficar atrás da barra de skills */
@media (max-width: 1400px) and (min-width: 901px) { .chat { bottom: 96px; width: 300px; } }
@media (max-width: 900px) {
  .chat { right: 8px; bottom: 8px; width: min(330px, calc(100vw - 16px)); z-index: 5; }
  .chat-msgs { height: 150px; }
}

/* =====================================================================
   Modos de tela: economia, imersivo e pocket (botões ao lado do mapa)
   ===================================================================== */
.modos { position: fixed; left: 12px; top: calc(var(--topH) + 12px); z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.modo-btn { width: 44px; height: 44px; padding: 0; border: none; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(#d860e8, #a03cc0); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #ffb878, inset 0 -4px 0 rgba(0,0,0,.25); }
.modo-btn img { image-rendering: pixelated; width: 27px; height: auto; }
.modo-btn:hover { filter: brightness(1.15); }
.modo-btn:active { transform: translateY(2px); }
.modo-btn.on { background: linear-gradient(#ffe070, #ffa030); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #fff4c0, 0 0 12px #ffb030; }
.eco-tela { position: fixed; inset: 0; z-index: 1; background: #000; display: flex; align-items: center; justify-content: center; }
.eco-box { width: min(340px, 86vw); text-align: center; color: var(--muted); font-size: 19px; }
.eco-t { font-family: var(--px); font-size: 12px; color: var(--good); margin-bottom: 10px; }
.eco-n { display: flex; justify-content: space-between; padding: 4px 6px; border-bottom: 1px solid #1a1418; }
.eco-n b { color: var(--text); font-weight: normal; }
.eco-box .btn { margin-top: 14px; }
body.eco #arena { visibility: hidden; }
/* imersivo: só a batalha, tela cheia */
body.imersivo .top, body.imersivo .left, body.imersivo .right, body.imersivo .hotbar, body.imersivo .hint, body.imersivo #chat { display: none !important; }
body.imersivo .modos { top: 12px; opacity: .45; }
body.imersivo .modos:hover { opacity: 1; }
body.imersivo .modo-btn:not(.on) { display: none; }
body.imersivo { overflow: hidden; }
.pocket-video { position: fixed; width: 2px; height: 2px; opacity: 0; pointer-events: none; left: 0; bottom: 0; }
@media (max-width: 900px) {
  .arena-box { position: relative; }
  .modos { position: absolute; left: 6px; top: 6px; gap: 6px; }
  .modo-btn { width: 36px; height: 36px; }
  .modo-btn img { width: 21px; }
  .eco-tela { position: absolute; padding: 8px 10px 8px 50px; }
  .eco-box { width: 100%; font-size: 17px; }
  body.imersivo #arena { position: fixed; left: 0; top: 0; z-index: 0; }
  body.imersivo .arena-box { position: static; box-shadow: none; }
  body.imersivo .modos { position: fixed; }
}
.rl-teste { font-family: var(--px); font-size: 8px; color: #120c12; background: #ffcc4a; padding: 5px 6px; box-shadow: 0 0 0 2px #000; white-space: nowrap; }

/* ---------- Chefe Mundial ---------- */
.wb-btn { position: relative; margin-top: 10px; }
.wb-btn img { width: 32px; }
.wb-btn small { position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); font-family: var(--px); font-size: 7px; color: var(--muted);
  background: #120c12; padding: 2px 3px; box-shadow: 0 0 0 2px #000; white-space: nowrap; }
.wb-btn.vivo { animation: wbPulso 1s steps(2) infinite; }
.wb-btn.vivo small { color: #ff7070; }
.wb-btn.on small { color: var(--good); }
.wb-btn.premio small { color: var(--gold); }
.wb-btn.premio { box-shadow: 0 0 0 3px #000, 0 0 12px #ffcc4a; }
@keyframes wbPulso { 50% { box-shadow: 0 0 0 3px #000, 0 0 14px #ff4040; } }
.wb-box { background: var(--panel); box-shadow: 0 0 0 4px #000, inset 0 0 0 3px var(--hi), 8px 8px 0 4px rgba(0,0,0,.6); padding: 14px; width: min(760px, 96vw); max-height: 94vh; overflow: auto; }
.wb-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wb-top h2 { margin: 0; flex: 1; font-size: 13px; color: #ff6060; }
.wb-top span { font-size: 19px; color: var(--muted); }
.wb-vida { position: relative; height: 18px; background: #3a1414; box-shadow: 0 0 0 3px #000; margin: 4px 3px 10px; }
.wb-vida .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#ff6060, #b02020); transition: width .4s; }
.wb-vida span { position: relative; display: block; text-align: center; font-size: 17px; line-height: 18px; text-shadow: 1px 1px 0 #000; }
#wbCanvas { width: 100%; aspect-ratio: 200 / 120; box-shadow: 0 0 0 3px #000; image-rendering: pixelated; display: block; }
/* minha vida na luta e o próximo ataque do chefe */
.wb-luta { margin: 9px 3px 0; }
.wb-mvida { position: relative; height: 18px; background: #3a1414; box-shadow: 0 0 0 3px #000; }
.wb-mvida .fill { position: absolute; inset: 0 auto 0 0; filter: brightness(.62); }
.wb-mvida span { position: relative; display: block; text-align: center; font-size: 17px; line-height: 18px; color: #fff; text-shadow: 1px 1px 0 #000; }
.wb-luta p { margin: 7px 0 0; min-height: 22px; font-size: 19px; line-height: 22px; text-align: center; }
.wb-luta.alvo p { color: #ff9080; }
.wb-luta.caiu p { color: #a0c8ff; }
.wb-rank div.disputa { background: linear-gradient(90deg, #5a2430 var(--p), transparent var(--p)); }
.wb-rank .wb-caiu { color: #a0c8ff; }
.wb-info { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 19px; margin: 10px 2px; }
.wb-info b { color: var(--gold); }
.wb-box .end { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.wb-box .sub, .wb-av-box .sub { color: var(--muted); font-size: 18px; }
.wb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.wb-cols h3 { font-size: 10px; }
.wb-rank div { display: grid; grid-template-columns: 34px 1fr auto; gap: 6px; font-size: 18px; padding: 2px 4px; border-bottom: 1px solid #2a1e24; }
.wb-rank div:nth-child(-n+3) span:first-child { color: var(--gold); }
.wb-caixa { display: flex; align-items: center; gap: 8px; font-size: 19px; margin-top: 6px; }
.wb-caixa img { width: 30px; image-rendering: pixelated; }
.wb-caixa span { flex: 1; }
img.ic { width: 14px; vertical-align: -2px; image-rendering: pixelated; }
.wb-pend { background: #2a2010; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #8a6a20; padding: 8px 10px; margin: 8px 2px; font-size: 19px; }
.wb-premio { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 10px 0; font-size: 21px; color: var(--gold); }
.wb-premio img { width: 20px; vertical-align: -3px; image-rendering: pixelated; }
.wb-pend .wb-premio { justify-content: flex-start; }
.wb-aviso { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); }
.wb-av-box { background: var(--panel); box-shadow: 0 0 0 4px #000, inset 0 0 0 3px #a03030, 0 0 40px rgba(255,60,60,.35), 8px 8px 0 4px rgba(0,0,0,.6);
  padding: 20px; width: min(420px, 92vw); text-align: center; animation: wbEntra .25s steps(4); }
.wb-av-box h2 { color: #ff6060; font-size: 14px; }
.wb-av-box h2.raro { color: var(--gold); }
.wb-av-box p { font-size: 20px; margin: 8px 0; }
.wb-av-box .end { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.wb-av-ico img { width: 72px; image-rendering: pixelated; margin-bottom: 8px; }
@keyframes wbEntra { from { transform: scale(.6); opacity: 0; } }
@media (max-width: 900px) {
  .wb-box { padding: 10px; }
  .wb-cols { grid-template-columns: 1fr; }
  .wb-btn { margin-top: 8px; }
  .wb-luta p { min-height: 44px; }   /* cabe em 2 linhas sem a tela pular */
}

/* ---------- Calendário de login (aba MISSÕES) ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0 3px; }
.cal-dia { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px; background: #1e1418; box-shadow: 0 0 0 3px #000; text-align: center; }
.cal-dia b { font-family: var(--px); font-size: 7px; font-weight: normal; color: var(--muted); }
.cal-dia img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
.cal-dia small { font-size: 15px; color: var(--text); line-height: 1; }
.cal-dia.raro { background: #2a1a2a; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--pink); }
.cal-dia.feito { opacity: .45; }
.cal-dia.feito small { color: #6fd45a; }
.cal-dia.hoje { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold); animation: bob .8s steps(2) infinite; }
.cal-dia.hoje b { color: var(--gold); }

/* =====================================================================
   Guildas, arena online e canais do chat
   ===================================================================== */
.gtag { color: #80f090; font-size: .9em; }
.gnav { display: flex; gap: 6px; margin: 2px 3px 10px; }
.gm { display: flex; align-items: center; gap: 6px; justify-content: space-between; padding: 5px 8px; margin: 3px;
  background: #1e1418; box-shadow: 0 0 0 2px #000; font-size: 19px; }
.gm.eu { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--gold); }
.gm-n { min-width: 0; overflow-wrap: anywhere; }
.gm-n small { display: block; color: var(--muted); font-size: 16px; }
.gm-n .tag { font-family: var(--px); font-size: 7px; color: #000; background: var(--gold); padding: 3px 4px; vertical-align: middle; margin-left: 4px; }
.gm-n .tag.key { background: var(--pink); color: #fff; }
.gm-b { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; flex-shrink: 0; }
.gm-on { display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: #4a3a40; box-shadow: 0 0 0 1px #000; vertical-align: middle; }
.gm-on.on { background: #6fd45a; }
.gform { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.gform label { display: flex; flex-direction: column; gap: 3px; font-size: 19px; color: var(--muted); }
.gform input { font-family: var(--body); font-size: 21px; color: var(--text); background: #120a0e; border: none; padding: 6px 9px;
  box-shadow: 0 0 0 3px #000, inset 0 0 0 1px #3a2a30; outline: none; }
.gform input:focus { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--fire); }
.rank div.ok span:first-child { color: #6fd45a; font-size: 15px; }
.rank div.bad span:first-child { color: var(--bad); font-size: 15px; }
.rank div span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank div small { font-size: 15px; }
.wb-rank div.me { color: var(--gold); }
.wb-rank small { color: var(--muted); font-size: 15px; }
.wb-grupo b { color: #80f090 !important; }
.chat-canais { display: flex; border-bottom: 2px solid #000; }
.chat-canais button { flex: 1; border: none; cursor: pointer; padding: 5px 6px; background: #1e1418; color: var(--muted);
  font-family: var(--px); font-size: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.chat-canais button.on { background: #3a2a30; color: var(--gold); }
.chat-canais button.hidden, .chat-msgs.hidden { display: none; }
.chat.fechado .chat-canais { display: none; }

/* ---------- cosméticos: molduras do nome ---------- */
.mold { display: inline-block; padding: 0 5px; line-height: 1.15; border: 1px solid var(--mb); background: var(--mbg); border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 0 5px var(--mb); }
.mold-brilho { animation: moldBrilho 1.6s ease-in-out infinite alternate; }
.mold-fogo { animation: moldFogo 0.9s ease-in-out infinite alternate; }
.mold-real { background: linear-gradient(90deg, var(--mbg), #6a4a14, var(--mbg)); background-size: 200% 100%; animation: moldReal 2.4s linear infinite, moldBrilho 1.6s ease-in-out infinite alternate; }
.mold-eclipse { animation: moldEclipse 1.8s ease-in-out infinite alternate; }
@keyframes moldBrilho { from { box-shadow: 0 0 0 1px #000, 0 0 2px var(--mb); } to { box-shadow: 0 0 0 1px #000, 0 0 9px var(--mb); } }
@keyframes moldFogo { from { box-shadow: 0 0 0 1px #000, 0 0 3px #ff6a20; } to { box-shadow: 0 0 0 1px #000, 0 -2px 10px #ffcc40; } }
@keyframes moldReal { to { background-position: -200% 0; } }
@keyframes moldEclipse { from { box-shadow: 0 0 0 1px #000, 0 0 2px #ff2040; } to { box-shadow: 0 0 0 1px #000, 0 0 10px #ff2040, inset 0 0 6px #ff204088; } }
.item .ico .mold { font-size: 18px; }
.cosm-prev .ico { width: 76px; height: 68px; }
.cosm-prev .ico img { max-width: 72px; max-height: 64px; width: 68px; image-rendering: pixelated; }
.cosm-prev .name .mold { font-size: 20px; }
.item.cosm-passe { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #8a6a20; }
.wb-rank .mold { font-size: 16px; padding: 0 3px; }

/* ---------- Passe da Bruma ---------- */
.ps-topo { margin: 4px 3px 8px; padding: 8px; background: linear-gradient(180deg, #2a1e10, #1e1418); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #8a6a20; }
.ps-tit { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ps-tit b { font-family: var(--px); font-size: 9px; font-weight: normal; color: var(--gold); }
.ps-tit small { color: var(--muted); font-size: 16px; }
.ps-nv { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ps-nv > span { white-space: nowrap; font-size: 18px; }
.ps-nv > span b { color: var(--gold); }
.ps-nv .bar { flex: 1; margin: 0; }
.ps-compra { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold); background: #2a2010; }
.ps-grade { margin: 8px 3px; display: flex; flex-direction: column; gap: 4px; }
.ps-cab, .ps-lin { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); gap: 5px; align-items: stretch; }
.ps-cab span { font-family: var(--px); font-size: 7px; color: var(--muted); text-align: center; }
.ps-cab .ouro { color: var(--gold); }
.ps-n { display: flex; align-items: center; justify-content: center; font-family: var(--px); font-size: 8px; color: var(--muted); background: #1a1216; box-shadow: 0 0 0 2px #000; }
.ps-lin.ok .ps-n { color: var(--gold); }
.ps-lin.prox .ps-n { color: var(--text); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px var(--gold); }
.ps-pr { display: flex; align-items: center; gap: 5px; padding: 3px 5px; min-height: 34px; background: #1e1418; box-shadow: 0 0 0 2px #000; min-width: 0; }
.ps-pr .ico { width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center; background: none; box-shadow: none; }
.ps-pr .ico img { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; }
.ps-pr .ico .mold { font-size: 13px; padding: 0 2px; }
.ps-pr small { font-size: 15px; line-height: 1; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ps-lin > .ps-pr:last-child { background: #2a2010; }
.ps-pr.raro { box-shadow: 0 0 0 2px #000, inset 0 0 0 1px var(--pink); }
.ps-lin > .ps-pr.raro:last-child { box-shadow: 0 0 0 2px #000, inset 0 0 0 1px var(--gold); }
.ps-pr.livre { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #6fd45a; animation: bob .8s steps(2) infinite; }
.ps-pr.pego { opacity: .4; }
.ps-pr.pego small { color: #6fd45a; }
.ps-pr.tranc { filter: saturate(.55) brightness(.8); }
.ps-novos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 10px 0; }
.ps-novos > div { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 120px; text-align: center; }
.ps-novos .ico img { width: 60px; image-rendering: pixelated; }
.ps-novos .ico .mold { font-size: 22px; }

/* 11 abas na coluna do PC: aperta um pouco em telas baixas */
@media (min-width: 901px) and (max-height: 860px) {
  .tabs { gap: 7px !important; }
  .tabs button { padding: 5px 4px; gap: 3px; }
  .tabs button img { width: 20px; height: 20px; }
}
/* celular: abas em até duas linhas (não cabem 9 a 11 numa linha só) */
@media (max-width: 900px) {
  .tabs { flex-wrap: wrap; row-gap: 9px; }
  .tabs button { flex: 1 1 calc(20% - 6px); min-width: 0; }
}

/* ---------- conquistas, coleções e títulos ---------- */
.titulo { font-style: normal; color: #ffd890; font-size: .85em; text-shadow: 0 0 4px #a06a1a; }
.chat-guilda { color: var(--blue); }
.cq-titulos { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 3px; }
.cq-titulos .btn.on { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold); color: var(--gold); }
.cq-col { margin: 0 3px 10px; padding: 7px 8px; background: #1e1418; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--hi); }
.cq-col.pronta { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #6fd45a; }
.cq-col.pego { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold); background: #241c10; }
.cq-col-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.cq-col-top b { font-family: var(--px); font-size: 8px; font-weight: normal; color: var(--text); }
.cq-col-top span { font-size: 16px; color: var(--muted); }
.cq-col.pego .cq-col-top span { color: var(--gold); }
.cq-mobs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 5px; }
.cq-mobs > div { display: flex; flex-direction: column; align-items: center; width: 54px; padding: 3px 0; background: #120a0e; box-shadow: inset 0 0 0 2px #000; }
.cq-mobs > div.ok { box-shadow: inset 0 0 0 2px #6fd45a; }
.cq-mobs > div.chefe { background: #2a1418; }
.cq-mobs > div.chefe.ok { box-shadow: inset 0 0 0 2px var(--gold); }
.cq-mobs img { height: 28px; width: auto; max-width: 48px; object-fit: contain; image-rendering: pixelated; }
.cq-mobs small { font-size: 14px; line-height: 1; color: var(--muted); }
.cq-mobs .ok small { color: #6fd45a; }
.cq-mobs .chefe.ok small { color: var(--gold); }
.item.cq-feita { opacity: .7; }
@media (max-width: 900px) { .tabs button { flex-basis: calc(16.6% - 6px); } }

/* ---------- roleta (aba PET) ---------- */
.rol { position: relative; width: min(250px, 78%); margin: 24px auto 12px; }
.rol-roda { position: relative; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 3px #000, 0 0 0 7px var(--gold), 0 0 0 10px #000; transition: transform 0s cubic-bezier(.12, .7, .15, 1); }
.rol-roda img { position: absolute; width: 24px; height: 24px; object-fit: contain; transform: translate(-50%, -50%); }
.rol-roda img.pet { width: 30px; height: 30px; padding: 3px; background: #120a0e; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.rol-seta { position: absolute; z-index: 2; top: -14px; left: 50%; margin-left: -10px; border: 10px solid transparent; border-top: 18px solid #fff; border-bottom: 0; filter: drop-shadow(0 2px 0 #000); }
.rol-res { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; margin: 18px 3px 8px; text-align: center; }
.rol-res img { width: 28px; height: 28px; object-fit: contain; }
.rol-res b, .rol-res.raro { color: var(--gold); font-weight: normal; }
.rol-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 3px 12px; }
.rol-btns .btn { width: 100%; }
.rol-btns .costs { justify-content: center; }
.rol-lista { margin: 0 3px 10px; padding: 4px 8px; background: #1e1418; box-shadow: 0 0 0 3px #000; }
.rol-lista > div { display: grid; grid-template-columns: 10px 22px 1fr auto; align-items: center; gap: 8px; padding: 4px 0; font-size: 18px; }
.rol-lista i { width: 10px; height: 10px; box-shadow: 0 0 0 1px #000; }
.rol-lista img { width: 22px; height: 22px; object-fit: contain; }
.rol-lista b { font-weight: normal; color: var(--text); }
.rol-lista .raro, .rol-lista .raro b { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .rol-roda { transition: none; } }

/* =====================================================================
   Legado: Salão, coleções, Consagração, rankings, Mural e Códice
   ===================================================================== */
.legado-btn { flex: none; background: #8a6a1a; box-shadow: inset -3px -3px 0 #4a3608, inset 3px 3px 0 #d0a840, 0 0 0 3px #000; color: #fff4d0; }
.modal.lg-acima { z-index: 65; }
.lg-link, .chat-nome { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
.lg-link { color: #ffd890; text-decoration: underline dotted; }
.lg-link:hover, .chat-nome:hover { filter: brightness(1.3); text-decoration: underline; }
.lg-link:focus-visible, .chat-nome:focus-visible, .lg-ped:focus-visible, .lg-rank button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rl-est { color: #ffe880; text-shadow: 0 0 5px #c08a10; letter-spacing: 1px; font-family: var(--body); font-size: 20px; line-height: 1; }
.rl-proc { color: #ffb0ee; }
#fProcura select { font-family: var(--body); font-size: 19px; color: var(--text); background: #120a0e; border: none; padding: 5px 8px; box-shadow: 0 0 0 2px #000; flex: 1; min-width: 120px; }
#legBox .sim { color: var(--good); } #legBox .nao, #legHist .nao { color: #ff8a8a; }
.lg-sub { color: var(--muted); font-size: 17px; margin: 5px 2px; }
#legBox p.lg-sub { font-size: 17px; margin: 6px 2px; }
.lg-tag { color: var(--blue); }

.lg-barra { position: relative; height: 20px; margin: 6px 3px; box-shadow: 0 0 0 2px #000; text-align: center; font-size: 16px; line-height: 20px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--pc, #8a6ad0) 60%, #120a0e) var(--p), #120a0e var(--p)); }
.lg-barra span { text-shadow: 1px 1px 0 #000, -1px 0 0 #000; }

.lg-salao { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; padding: 16px 14px; margin: 3px; box-shadow: 0 0 0 3px #000, inset 0 0 40px #000;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 22px, transparent 22px 60px), linear-gradient(#2a1c34, #160e1c 70%, #3a2418 70%, #24150e); }
.lg-ped { --rc: #5a4a5a; display: flex; flex-direction: column; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: center; cursor: pointer; }
.lg-ped.vazio { cursor: default; opacity: .5; }
.lg-obj { flex: 1; min-height: 88px; display: flex; align-items: flex-end; justify-content: center; padding: 8px 0 6px;
  background: radial-gradient(ellipse at 50% 75%, color-mix(in srgb, var(--rc) 45%, transparent), transparent 68%); }
.lg-ped.vazio .lg-obj { background: none; }
.lg-obj img { max-width: 90%; max-height: 80px; filter: drop-shadow(0 0 7px var(--rc)); transition: transform .15s; }
.lg-ped:hover .lg-obj img { transform: translateY(-4px); }
.lg-base { display: block; padding: 7px 4px 8px; font-size: 16px; background: #4a3a48; box-shadow: inset 0 4px 0 #7a647a, inset 0 -4px 0 #2a1e2a, 0 0 0 2px #000; overflow-wrap: anywhere; }
.lg-base b { display: block; color: var(--rc); font-weight: normal; font-size: 18px; text-shadow: 1px 1px 0 #000; }
.lg-base .rl-est { display: block; }
.lg-base small { color: #cfc0cf; }
.lg-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 3px; font-size: 18px; }
.lg-form > span { flex: 1; min-width: 200px; }
.lg-form input, .lg-esc select { font-family: var(--body); font-size: 19px; color: var(--text); background: #120a0e; border: none; padding: 6px 8px; box-shadow: 0 0 0 2px #000; }
.lg-form input { flex: 1; min-width: 160px; user-select: text; }
.lg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 3px; }
.lg-chips span { padding: 4px 8px; background: #1e1418; box-shadow: 0 0 0 2px #000; font-size: 17px; }
.lg-chips .mural { color: #ffe880; background: #3a2c0c; } .lg-chips .col { color: #ffb0ee; background: #341a34; }
.lg-achei { color: var(--gold); }

.lg-col, .lg-cons { --rc: #fff; display: flex; gap: 10px; align-items: center; background: #1e1418; padding: 9px 11px; margin: 0 3px 10px; box-shadow: 0 0 0 3px #000; }
.lg-col > div { flex: 1; min-width: 0; }
.lg-col small { color: var(--gold); }
.lg-col.ok { background: #1c2a1c; box-shadow: 0 0 0 3px #000, inset 3px 0 0 var(--good); }
.lg-esc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 5px 0; font-size: 18px; }
.lg-esc label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: 100%; }
.lg-esc select { max-width: 100%; min-width: 0; }
.lg-cons .btn { white-space: normal; line-height: 1.5; }

.lg-rank { display: flex; flex-direction: column; gap: 5px; margin: 6px 3px; }
.lg-rank > button, .lg-rank > .me { display: grid; grid-template-columns: 42px 1fr auto; gap: 8px; align-items: center; padding: 6px 9px; border: 0; background: #1e1418; color: var(--text);
  font: inherit; font-size: 19px; text-align: left; box-shadow: 0 0 0 2px #000; overflow-wrap: anywhere; }
.lg-rank > button { cursor: pointer; }
.lg-rank > button:hover { filter: brightness(1.3); }
.lg-rank > .me { background: #2a3a24; }
.lg-rank small { display: block; color: var(--muted); font-size: 16px; }
.lg-rank > * > b { color: var(--gold); }
.lg-rank .p1 > span:first-child { color: #ffe880; } .lg-rank .p2 > span:first-child { color: #d8e0e8; } .lg-rank .p3 > span:first-child { color: #e0a070; }

.lg-mural { display: grid; gap: 7px; margin: 3px; }
.lg-mural > div { padding: 8px 11px; font-size: 18px; background: #1a1418; color: var(--muted); box-shadow: 0 0 0 2px #000; }
.lg-mural b { display: block; font-weight: normal; }
.lg-mural .feito { color: var(--text); background: linear-gradient(90deg, #4a3810, #241c10); box-shadow: 0 0 0 2px #000, inset 3px 0 0 var(--gold); }
.lg-mural .feito b { color: #ffe880; }
.lg-cod { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 3px; }
.lg-cod > div { --rc: #fff; display: flex; gap: 9px; align-items: center; padding: 7px 8px; background: #17110f; box-shadow: 0 0 0 2px #000; font-size: 18px; min-width: 0; }
.lg-cod > div > span { min-width: 0; overflow-wrap: anywhere; }
.lg-cod img { width: 32px; flex: none; filter: brightness(0) opacity(.6); }
.lg-cod b { font-weight: normal; color: var(--muted); }
.lg-cod small { display: block; color: var(--muted); font-size: 16px; }
.lg-cod .achada { background: #241a20; box-shadow: 0 0 0 2px #000, inset 3px 0 0 var(--rc); }
.lg-cod .achada img { filter: drop-shadow(0 0 4px var(--rc)); }
.lg-cod .achada b { color: var(--rc); }

.lg-hist { --rc: #fff; text-align: center; }
.lg-hist img { max-height: 100px; margin: 6px 0 12px; filter: drop-shadow(0 0 10px var(--rc)); }
.lg-linha { list-style: none; margin: 16px 0 0 6px; padding: 0; border-left: 3px solid var(--hi); }
.lg-linha li { position: relative; padding: 0 0 12px 16px; font-size: 19px; overflow-wrap: anywhere; }
.lg-linha li::before { content: ''; position: absolute; left: -7px; top: 4px; width: 11px; height: 11px; background: var(--gold); box-shadow: 0 0 0 2px #000; }
.lg-linha time { display: block; color: var(--muted); font-size: 16px; }
.lg-linha i { color: #ffd890; font-style: normal; }
@media (max-width: 560px) {
  .lg-salao { grid-template-columns: repeat(2, 1fr); padding: 12px 10px; }
  .lg-col, .lg-cons { flex-wrap: wrap; } .lg-col > div { flex-basis: 100%; } .lg-cons .btn { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .lg-obj img { transition: none; } }
/* telas médias: o nome do jogo dá lugar aos botões (senão a engrenagem sai da tela) */
@media (min-width: 901px) and (max-width: 1250px) { .top .brand { display: none; } .top .bars { min-width: 70px; } }
@media (min-width: 901px) and (max-width: 1040px) { .top .goal { display: none; } }

/* nova versão do jogo: avisa e atualiza sozinho (conta.js) */
.atualiza { position: fixed; left: 50%; top: calc(var(--topH, 40px) + 12px); transform: translateX(-50%); z-index: 290; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 5px 12px; width: max-content; max-width: 94vw; padding: 8px 12px; font-size: 18px; background: #14301a; color: #d8ffd0; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #5aa04e; }
.atualiza b { font-family: var(--px); font-size: 9px; font-weight: normal; color: #ffe880; }

/* Salão: personagem, equipamentos e relíquias em uso */
#legBox .lg-beta { padding: 3px 10px; font-size: 16px; }
.lg-perso { --pc: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; margin: 3px; align-items: start; }
.lg-cena { padding: 10px 4px 0; box-shadow: 0 0 0 3px #000, inset 0 0 36px #000;
  background: radial-gradient(ellipse at 50% 70%, #5a3a78, transparent 65%), repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 20px, transparent 20px 54px), #1a1024; }
/* o mago fica um pouco à esquerda (o pet ocupa a direita): a placa acompanha */
.lg-placa { position: relative; z-index: 1; padding: 0 10% 0 0; text-align: center; overflow-wrap: anywhere; pointer-events: none; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 0 -1px 0 #000; }
.lg-nome { font-family: var(--px); font-size: 12px; line-height: 1.6; }
.lg-pat { font-size: 16px; line-height: 1.1; color: #cfc0cf; }
.lg-pat b { font-weight: normal; color: var(--pc); }
.lg-mago { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.lg-frase { margin: 8px 3px 0; font-size: 18px; text-align: center; color: #ffe8c0; overflow-wrap: anywhere; }
.lg-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 6px; background: #1e1418; box-shadow: 0 0 0 2px #000; text-align: center; }
.lg-nums div { padding: 4px 3px; }
.lg-nums div + div { border-left: 2px solid #000; }
.lg-nums small, .lg-nums em { display: block; color: var(--muted); font-size: 15px; line-height: 1; font-style: normal; }
.lg-nums b { display: block; font-family: var(--px); font-size: 10px; font-weight: normal; color: var(--blue); margin: 4px 0; overflow-wrap: anywhere; }
.lg-nums b.ouro { color: var(--gold); } .lg-nums b.rosa { color: var(--pink); }
.lg-lado .lg-barra { margin: 6px 0; }
.lg-rev { display: block; width: calc(100% - 6px); }
.lg-det { margin: 5px 3px; font-size: 17px; }
.lg-det summary { color: #ffd890; cursor: pointer; }
.lg-det[data-ajustes] { margin: 14px 3px; padding: 8px 10px; background: #1e1418; box-shadow: 0 0 0 2px #000; }
.lg-det summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#legBox p.lg-meta { margin: 4px 3px 0; font-size: 15px; text-align: center; }
#legBox p.lg-nada { margin: 12px 4px; text-align: center; }
.lg-eqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.lg-eq { --ec: #6a5a62; display: flex; gap: 7px; align-items: center; min-width: 0; padding: 3px 6px; background: #1e1418; box-shadow: 0 0 0 2px #000, inset 3px 0 0 var(--ec); font-size: 17px; line-height: 1; }
.lg-eq.vazio { opacity: .55; }
.lg-eqi { flex: none; width: 34px; height: 36px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lg-eqi img { max-width: 32px; max-height: 34px; }
.lg-eq > span:last-child, .lg-usa > div > span { min-width: 0; overflow-wrap: anywhere; }
.lg-eq small { display: block; color: var(--muted); font-size: 15px; }
.lg-eq b { font-weight: normal; color: var(--ec); }
.lg-eq.vazio b { color: var(--muted); }
.lg-usa { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 3px; }
.lg-usa > div { --rc: #fff; display: flex; gap: 9px; align-items: center; min-width: 0; padding: 7px 8px; font-size: 18px; background: #241a20; box-shadow: 0 0 0 2px #000, inset 3px 0 0 var(--rc); }
.lg-usa > div > span { flex: 1; }
.lg-usa img { flex: none; width: 34px; filter: drop-shadow(0 0 4px var(--rc)); }
.lg-usa b { display: block; font-weight: normal; color: var(--rc); }
.lg-usa small { color: var(--muted); font-size: 16px; }
.lg-usa span > small:first-of-type { display: block; }
.lg-usa .oculto img { opacity: .45; filter: none; }
.lg-hist .lg-cena { max-width: 340px; margin: 0 auto 14px; }
.lg-rars { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin: 10px 0; }
@media (max-width: 640px) { .lg-perso { grid-template-columns: minmax(0, 1fr); } .lg-lado { width: 100%; max-width: 340px; margin: 0 auto; } }

/* =====================================================================
   Aba FORJA: oficina animada, encaixes de metal e um item por vez
   ===================================================================== */
.fj-oficina { display: grid; grid-template-columns: 58px minmax(0, 1fr) 58px; gap: 6px; margin: 3px; padding: 6px;
  background: linear-gradient(#4c4650, #2a262e 12%, #221e26 88%, #151217); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #6e6674; }
.fj-lado { display: grid; grid-template-rows: repeat(5, 1fr); gap: 6px; }
.fj-slot, .fj-modo, .fj-cel { position: relative; border: 0; padding: 6px 2px 2px; font: inherit; color: var(--text); cursor: pointer; }
.fj-slot { --rc: #5a5058; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 52px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc) 42%, #352c36), #141016 78%);
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px color-mix(in srgb, var(--rc) 75%, #000), inset 0 3px 0 2px rgba(255,255,255,.1); }
.fj-slot img { max-width: 30px; max-height: 29px; filter: drop-shadow(0 0 1px rgba(255,255,255,.75)); }
.fj-slot.vazio img { filter: brightness(1.9); }
.fj-slot span { max-width: 100%; overflow: hidden; font-size: 14px; line-height: .9; color: #b8aab8; text-shadow: 1px 1px 0 #000; }
.fj-slot.sel { z-index: 1; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #ffe080, 0 0 0 4px #ff9a30, 0 0 14px 4px rgba(255,130,40,.6); }
.fj-slot.sel span { color: #fff0c0; }
.fj-slot.bau { background: radial-gradient(circle at 50% 40%, #7a5228, #241810 78%); }
.fj-slot i, .fj-cel i { position: absolute; z-index: 1; top: 2px; left: 4px; font-style: normal; font-size: 14px; line-height: 1; color: var(--gold); text-shadow: 1px 1px 0 #000, -1px 0 0 #000; }
.fj-slot > b, .fj-modo > b { font-family: var(--px); font-size: 8px; font-weight: normal; color: #7ee068; text-shadow: 1px 1px 0 #000; }
.fj-slot > b { position: absolute; top: 4px; right: 4px; }
.fj-slot > b.novo, .fj-modo > b.novo { padding: 3px 4px; color: #fff; background: #d03030; box-shadow: 0 0 0 2px #000; }
.fj-slot > b.novo { top: -4px; right: -4px; }
.fj-slot:hover, .fj-modo:hover, .fj-cel:hover { filter: brightness(1.2); }
.fj-slot:focus-visible, .fj-modo:focus-visible, .fj-cel:focus-visible { outline: 2px solid #fff; outline-offset: 2px; z-index: 2; }

.fj-cena { position: relative; min-width: 0; overflow: hidden; background: #17131a; box-shadow: 0 0 0 2px #000, 0 0 16px rgba(255,120,30,.35); }
.fj-cena canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; image-rendering: pixelated; }
.fj-placa { position: absolute; z-index: 1; left: 0; right: 0; top: 0; padding: 7px 5px 14px; text-align: center; overflow-wrap: anywhere;
  background: linear-gradient(rgba(10,6,12,.94) 78%, transparent); text-shadow: 1px 1px 0 #000, -1px 0 0 #000; }
.fj-sup { font-family: var(--px); font-size: 7px; color: #ffb050; margin-bottom: 3px; }
.fj-nome { font-size: 21px; line-height: .95; }
.fj-nome .plus { color: var(--gold); }
.fj-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px 7px; margin-top: 3px; font-size: 17px; line-height: 1; }
.fj-tags .tag { font-family: var(--px); font-size: 7px; color: #000; background: var(--gold); padding: 3px 4px; text-shadow: none; }
.fj-tags .tag.key { color: #fff; background: #b0308a; }
.fj-stat { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 4px 5px; text-align: center; font-size: 17px; line-height: 1; color: #f0dcc0; background: rgba(14,9,14,.88); box-shadow: 0 -2px 0 #000; }
.fj-stat b { color: #fff; font-weight: normal; }

.fj-modos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 9px 3px 0; }
.fj-modo { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 3px; font-family: var(--px); font-size: 9px; color: #a89cac;
  background: linear-gradient(#3e3844, #28242c); box-shadow: 0 0 0 2px #000, inset 0 2px 0 #5c5464; }
.fj-modo.sel { color: #fff4c8; text-shadow: 1px 1px 0 #6a2008; background: linear-gradient(#a84818, #5e2410); box-shadow: 0 0 0 2px #000, inset 0 2px 0 #ffa050, 0 0 10px rgba(255,110,30,.45); }
.fj-corpo { margin: 2px 3px 6px; padding: 10px; background: linear-gradient(#302a34, #211d25); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #4c4452; }
.fj-ocupada .fj-oficina, .fj-ocupada .fj-modos, .fj-ocupada .fj-corpo { pointer-events: none; }
.fj-ocupada .fj-lado, .fj-ocupada .fj-modos, .fj-ocupada .fj-corpo { filter: brightness(.6); }
.fj-ocupada .fj-stat { visibility: hidden; }

.fj-h { margin: 13px 0 7px; font-size: 9px; color: #ffb050; }
.fj-corpo > .fj-h:first-child, .fj-corpo > .fj-p:first-child { margin-top: 0; }
.fj-p { margin: 6px 0; font-size: 17px; line-height: 1.1; color: #cdbfcc; }
.fj-p .nao { color: #ff9090; font-weight: normal; }
.fj-odds { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 9px; font-size: 16px; text-shadow: 1px 1px 0 #000; }
.fj-comp { display: flex; align-items: stretch; gap: 5px; }
.fj-comp > div { flex: 1; min-width: 0; padding: 7px 3px; text-align: center; background: linear-gradient(#17131a, #221c26); box-shadow: 0 0 0 2px #000, inset 0 2px 5px #000; overflow-wrap: anywhere; }
.fj-comp > u { align-self: center; color: #ffb050; text-decoration: none; }
.fj-comp small { display: block; font-size: 15px; line-height: 1; color: #a89cac; }
.fj-comp b { display: block; margin-top: 4px; font-size: 21px; font-weight: normal; line-height: .95; }
.fj-comp .bom b { color: #8af070; } .fj-comp .ruim b { color: #ff9090; }
.fj-aviso { margin: 9px 5px; padding: 7px 10px; font-size: 18px; line-height: 1.1; color: #ffe0a0; background: #33220f; box-shadow: 0 0 0 2px #000, inset 4px 0 0 #ffa030; }
.fj-corpo .fj-aviso { margin: 9px 0; }
.fj-corpo > .fj-aviso:first-child { margin-top: 0; }
.fj-aviso.ok { color: #c8ffb8; background: #15301c; box-shadow: 0 0 0 2px #000, inset 4px 0 0 #60d060; }
.fj-chance { --c1: #a8f070; --c2: #2c7a2c; height: 26px; margin: 10px 0 5px; line-height: 26px; text-align: center; font-size: 18px; background: #120e14; box-shadow: 0 0 0 2px #000, inset 0 2px 5px #000; position: relative; }
.fj-chance::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: linear-gradient(var(--c1) 0 12%, color-mix(in srgb, var(--c1) 40%, var(--c2)) 12% 50%, var(--c2) 50%); }
.fj-chance.media { --c1: #ffe080; --c2: #b06a10; } .fj-chance.baixa { --c1: #ff9080; --c2: #a02820; }
.fj-chance span { position: relative; text-shadow: 1px 1px 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }
.fj-pedra { display: flex; align-items: center; gap: 8px; margin: 9px 0; padding: 7px 9px; font-size: 17px; line-height: 1.1; cursor: pointer; background: linear-gradient(90deg, #4a1c48, #2a1a30); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #8a3a80; }
.fj-pedra input { flex: none; width: 20px; height: 20px; accent-color: var(--pink); }
.fj-pedra img { width: 24px; filter: drop-shadow(0 0 4px #ff60d0); }
.fj-pedra small { color: #e0b8d8; font-size: 16px; }

/* materiais: peças com ícone, quanto tem e quanto falta */
.fj-mats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.fj-mat { --mc: #54b048; position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 7px 2px 9px; text-align: center; line-height: .95;
  background: linear-gradient(#2c3a2c, #18201a); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #4a7a44; }
.fj-mat img { width: 27px; height: 27px; object-fit: contain; filter: drop-shadow(0 2px 0 #000); }
.fj-mat span { display: flex; align-items: center; min-height: 28px; font-size: 15px; color: #d0c8c8; }
.fj-mat b { font-size: 17px; font-weight: normal; color: #8af070; }
.fj-mat b small { display: block; font-size: 15px; color: #a8b0a0; }
.fj-mat > i { position: absolute; left: 1px; right: 1px; bottom: 1px; height: 5px; background: linear-gradient(90deg, var(--mc) var(--p), #0a0808 var(--p)); }
.fj-mat.no { --mc: #f08030; background: linear-gradient(#442420, #221314); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #a04838; }
.fj-mat.no b { color: #ffa090; }
.fj-mat em { margin-top: 4px; font-style: normal; font-size: 15px; color: #ffcf80; }
.fj-mat .btn { margin: 6px 2px 2px; padding: 5px 4px; font-size: 7px; white-space: nowrap; }

/* botão principal: metal em brasa */
.fj-pe { position: sticky; bottom: -3px; z-index: 1; margin: 0 -8px; padding: 9px 8px 6px; background: linear-gradient(transparent, #241f28 30%); }
.fj-pe.solto { position: static; background: none; }
.fj-btn { width: calc(100% - 6px); padding: 15px 8px; font-size: 12px; }
.fj-btn.fire:not(:disabled) { color: #fff8d0; text-shadow: 1px 1px 0 #7a2000, 0 0 6px #ffb040;
  background: linear-gradient(100deg, transparent 40%, rgba(255,250,200,.65) 50%, transparent 60%) 130% 0 / 250% 100% no-repeat, linear-gradient(#ffb040, #f06a18 45%, #a83010);
  box-shadow: inset 0 3px 0 #ffe8a0, inset 0 -4px 0 #701c08, 0 0 0 3px #000, 0 0 16px 3px rgba(255,110,20,.55); animation: fjBrilho 3.2s ease-in-out infinite; }
@keyframes fjBrilho { 0%, 55% { background-position: 130% 0, 0 0; } 100% { background-position: -30% 0, 0 0; } }

.fj-rar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 8px 10px; font-size: 17px; line-height: 1.1; background: linear-gradient(90deg, #173848, #18222c); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #3a7a98; }
.fj-rar small { display: block; margin-top: 3px; font-size: 16px; color: #a8c8d8; }
.fj-rar b { font-weight: normal; }
.fj-rar > div { flex: none; text-align: center; }
.fj-rar .btn { background: #2a7aa0; box-shadow: inset -3px -3px 0 #143e58, inset 3px 3px 0 #60b0d8, 0 0 0 3px #000; }
.fj-preco { display: flex; justify-content: center; gap: 7px; }
.fj-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 7px; }
.fj-cel { --rc: #4a3a42; height: 54px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--rc) 40%, #2a2430), #141016 80%); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px color-mix(in srgb, var(--rc) 75%, #000); }
.fj-cel img { max-width: 34px; max-height: 38px; filter: drop-shadow(0 0 1px rgba(255,255,255,.6)); }
.fj-cel.livre img { opacity: .6; } .fj-cel.preso img { opacity: .4; filter: none; }
.fj-cel.sel { z-index: 1; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #ffe080, 0 0 0 4px #ff9a30; }
.fj-cel u { position: absolute; left: 2px; right: 2px; bottom: 2px; font-size: 12px; line-height: 1; text-decoration: none; text-align: center; color: #000; background: var(--gold); }
@media (max-width: 900px) { .fj-pe { position: static; background: none; } .fj-mats { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .fj-btn.fire:not(:disabled) { animation: none; } }

/* =====================================================================
   Aba BASE: o reino animado (usa também as peças .fj-* da Forja)
   ===================================================================== */
.bs-reino { margin: 3px; padding: 6px; background: linear-gradient(#4c4650, #2a262e 12%, #221e26 88%, #151217); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #6e6674; }
.bs-cena { aspect-ratio: 176 / 126; box-shadow: 0 0 0 2px #000, 0 0 16px rgba(255,200,90,.3); }
.bs-reino > .fj-stat { position: static; margin-top: 2px; box-shadow: 0 0 0 2px #000; }
.bs-cena .fj-placa { pointer-events: none; padding: 5px 5px 12px; background: linear-gradient(rgba(10,6,12,.85) 60%, transparent); }
.bs-toque { position: absolute; border: 0; padding: 0; background: none; cursor: pointer; }
.bs-toque:hover { background: radial-gradient(closest-side, rgba(255,240,160,.28), transparent); }
.bs-fila { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.bs-fila .fj-slot { min-height: 62px; padding-top: 12px; }
.bs-fila .fj-slot img { width: auto; max-width: 44px; max-height: 32px; image-rendering: pixelated; filter: none; }
.bs-fila .bs-falta img { opacity: .85; filter: grayscale(1) brightness(1.5); }
.bs-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.bs-topo .fj-h { margin: 0 0 5px; }
.bs-topo .btn { flex: none; }
.bs-ganhos { display: flex; gap: 6px; margin-bottom: 12px; }
.bs-ganhos > div { flex: 1; min-width: 0; padding: 7px 3px; text-align: center; overflow-wrap: anywhere; background: linear-gradient(#17131a, #221c26); box-shadow: 0 0 0 2px #000, inset 0 2px 5px #000; }
.bs-ganhos small { display: block; font-size: 15px; line-height: 1; color: #a89cac; }
.bs-ganhos span, .bs-ganhos b { display: block; font-size: 20px; font-weight: normal; line-height: 1; }
.bs-ganhos span { margin-top: 4px; color: #e8dcc8; }
.bs-ganhos u { display: block; font-size: 10px; line-height: 1.3; text-decoration: none; color: #ffb050; }
.bs-ganhos b { color: #8af070; }
.bs-evo { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 7px; }
.bs-evo .fj-cel { height: 60px; }
.bs-evo .fj-cel img { max-width: 54px; max-height: 46px; image-rendering: pixelated; filter: none; }
.bs-evo .fj-cel:disabled { cursor: default; filter: none; }

/* =====================================================================
   Aba SKILLS: campo de treino (usa também as peças .fj-* e .bs-*)
   --mz = cor da magia aberta
   ===================================================================== */
.mz-campo .bs-cena { box-shadow: 0 0 0 2px #000, 0 0 18px color-mix(in srgb, var(--mz) 45%, transparent); }
.mz-toque { inset: 0; width: 100%; height: 100%; }
.mz-toque:hover { background: none; }
.mz-toque:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.mz-nv { display: grid; grid-template-columns: repeat(25, 1fr); gap: 2px; margin: 5px 2px 1px; }
.mz-nv i { height: 6px; background: #2c2430; }
.mz-nv i.on { background: var(--mz); box-shadow: inset 0 2px 0 rgba(255,255,255,.5); }
.mz-nv i.marco { outline: 1px solid #d8a850; }
.mz-fila { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.mz-fila .fj-slot img { width: 30px; height: 30px; max-height: 30px; object-fit: contain; }
.mz-fila .fj-slot span { font-size: 13px; }
.mz-falta img { opacity: .75; filter: grayscale(1) brightness(1.3) !important; }
.bs-ganhos em { display: block; margin-top: 5px; font-style: normal; font-size: 15px; line-height: 1; color: #d8b878; }
.mz-bonus { text-align: center; } .mz-bonus b { font-weight: normal; color: #8af070; }
.mz-preco { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; margin: 12px 0 4px; font-size: 20px; color: #ffb0a0; text-shadow: 1px 1px 0 #000;
  background: linear-gradient(90deg, #7a3424 var(--p), #1a1216 var(--p)); box-shadow: 0 0 0 2px #000, inset 0 2px 0 rgba(255,255,255,.12); }
.mz-preco.ok { color: #d8ffc8; background: linear-gradient(#3f7a34, #24501f); }
.mz-preco img { width: 24px; height: 24px; }
.mz-preco b { font-weight: normal; color: #fff; }
.mz-auto { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 8px 0 0; padding: 8px 10px; border: 0; cursor: pointer; text-align: left; font: inherit; font-size: 19px; line-height: 1; color: var(--text);
  background: linear-gradient(90deg, #2c2630, #1e1a22); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #564c5e; }
.mz-auto small { display: block; margin-top: 4px; font-size: 16px; color: #a89cac; }
.mz-auto b { flex: none; padding: 6px 7px; font-family: var(--px); font-size: 8px; font-weight: normal; color: #b8aab8; background: #141016; box-shadow: 0 0 0 2px #000; }
.mz-auto.on { background: linear-gradient(90deg, #1f3c22, #18241a); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #4a8a44; }
.mz-auto.on b { color: #fff; background: #3a7a34; }
.mz-auto:hover { filter: brightness(1.15); }
.mz-auto:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mz-formas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.mz-formas .fj-cel { height: auto; aspect-ratio: 1; padding: 2px; }
.mz-formas .fj-cel img { max-width: 100%; max-height: 100%; image-rendering: pixelated; filter: none; }
.mz-formas .fj-cel:not(.tem) img { opacity: .75; }
.mz-formas .fj-cel:disabled { cursor: default; filter: none; }
.mz-nota { text-align: center; color: #a89cac; }
@media (max-width: 900px) { .mz-tecla { display: none; } }

/* =====================================================================
   Aba UP: santuário (usa também as peças .fj-*, .bs-* e .mz-*) e o botão dourado do menu
   ===================================================================== */
.dp-reino .bs-cena { box-shadow: 0 0 0 2px #000, 0 0 18px color-mix(in srgb, var(--mz) 45%, transparent); }
.dp-total { position: relative; background: linear-gradient(90deg, #7a5412 var(--p), #161016 var(--p)); text-shadow: 1px 1px 0 #000; }
.dp-fila { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dp-fila .fj-slot { min-height: 62px; padding: 4px 2px 3px; gap: 1px; }
.dp-fila .fj-slot > img { width: 26px; height: 26px; max-height: 26px; object-fit: contain; }
.dp-fila em { display: flex; align-items: center; justify-content: center; gap: 2px; max-width: 100%; font-style: normal; font-size: 14px; line-height: 1; color: #ff9c8c; text-shadow: 1px 1px 0 #000; }
.dp-fila em img { width: 10px; height: 10px; filter: none; }
.dp-fila em.ok { color: #90f078; } .dp-fila em.max { color: var(--gold); }
.dp-mult { display: flex; gap: 5px; margin-left: auto; }
.dp-mult .fj-modo { min-height: 34px; min-width: 38px; padding: 4px; font-size: 8px; }
.dp-reino + .fj-corpo .fj-btn { padding: 9px 8px 6px; }
.dp-reino + .fj-corpo .fj-btn small { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 4px; font-family: var(--body); font-size: 19px; line-height: 1; }
.dp-reino + .fj-corpo .fj-btn small img { width: 17px; height: 17px; }
.dp-reino + .fj-corpo .bs-ganhos { margin-bottom: 4px; }
.dp-reino + .fj-corpo .bs-ganhos > div { padding: 5px 3px; }
.dp-nome { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.dp-nome > img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 5px var(--mz)); }
.dp-nome b { display: block; font-size: 21px; font-weight: normal; line-height: 1; color: #fff; }
.dp-nome small { font-size: 17px; color: var(--gold); }
.bs-ganhos .dp-ganho { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(#24401f, #17261a); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #4a8a44; }
.dp-ganho small { color: #b0d0a8; }
.dp-evo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bs-evo.dp-evo .fj-cel { height: auto; aspect-ratio: 4 / 3; padding: 2px; }
.bs-evo.dp-evo .fj-cel img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }

/* o UP é a aba mais usada: botão dourado que pulsa quando dá para comprar */
.tabs .tab-up { color: #fff6c8; font-size: 11px; text-shadow: 1px 1px 0 #6a3000, -1px 0 0 #6a3000, 0 -1px 0 #6a3000;
  background: linear-gradient(#ffdc60, #f09420 55%, #b04c10); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #fff0a0, inset 0 -4px 0 #8c3808; }
.tabs .tab-up:hover { color: #fff; }
.tabs .tab-up.active { color: #fff; background: linear-gradient(#fff0a0, #ffac30 55%, #c86018); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #fff, 0 0 12px 3px #ffb030; }
.tabs .tab-up.pode:not(.active) { animation: dpPulsa 1.6s ease-in-out infinite; }
.tabs .tab-up.pode img { animation: bob .8s steps(2) infinite; }
@keyframes dpPulsa { 50% { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #fff, inset 0 -4px 0 #8c3808, 0 0 14px 6px rgba(255, 190, 50, .8); } }
@media (prefers-reduced-motion: reduce) { .tabs .tab-up.pode, .tabs .tab-up.pode:not(.active), .tabs .tab-up.pode img { animation: none; } }

/* =====================================================================
   Aba ARENA e duelo: coliseu (usa também as peças .fj-*, .bs-*, .mz-* e .dp-*)
   ===================================================================== */
.cl-reino .bs-cena { box-shadow: 0 0 0 2px #000, 0 0 18px rgba(255,90,50,.45); }
.cl-placa { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.bs-cena .cl-placa { padding: 5px 8px 12px; }
.cl-placa > div:first-child { text-align: left; } .cl-placa > div:last-child:not(:first-child) { text-align: right; }
.cl-placa b, .cl-placa small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: normal; line-height: 1; }
.cl-placa b { font-size: 20px; color: #a8dcff; text-shadow: 1px 1px 0 #000; } .cl-placa i ~ div b { color: #ffb0a0; }
.cl-placa small { font-size: 16px; color: #e8dcc8; }
.cl-placa i { font-family: var(--px); font-style: normal; font-size: 13px; color: #ffe060; text-shadow: 2px 2px 0 #a02010, 0 0 8px #ff6020; }
.cl-ent { display: flex; align-items: center; gap: 8px; min-height: 38px; margin-top: 8px; padding: 4px 4px 4px 8px; font-size: 18px; line-height: 1; background: #17121a; box-shadow: 0 0 0 2px #000; }
.cl-ent > span:not(.cl-fichas) { flex: 1; min-width: 0; } .cl-ent b { font-weight: normal; color: var(--gold); }
.cl-ent small { display: block; font-size: 15px; color: #b8aab8; }
.cl-fichas { display: flex; gap: 6px; }
.cl-fichas i { width: 11px; height: 11px; transform: rotate(45deg); background: #3a3040; box-shadow: 0 0 0 2px #000; }
.cl-fichas i.on { background: linear-gradient(135deg, #fff0a0, #ff9020 60%); box-shadow: 0 0 0 2px #000, 0 0 7px 2px rgba(255,150,40,.7); }
.cl-fila { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cl-fila .fj-slot { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 3px 5px; min-height: 48px; padding: 4px; text-align: left; background: linear-gradient(color-mix(in srgb, var(--rc) 42%, #1c161f), #17121a 85%); }
.cl-fila .fj-slot > img { grid-row: span 2; width: 26px; height: 37px; max-height: none; max-width: none; object-fit: contain; }
.cl-fila .fj-slot span { align-self: end; font-size: 16px; line-height: 1; white-space: nowrap; text-overflow: ellipsis; color: #f0e4d8; }
.cl-fila em { align-self: start; font-style: normal; font-size: 17px; line-height: 1; text-shadow: 1px 1px 0 #000; }
.cl-modos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cl-corpo { margin-top: 8px; padding-top: 8px; }
.cl-corpo .dp-nome { margin-bottom: 7px; }
.cl-estilo > img { width: 34px; height: 34px; }
.cl-estilo > span { margin-left: auto; text-align: right; font-size: 18px; line-height: 1; text-shadow: 1px 1px 0 #000; }
.cl-dir { margin-left: auto; }
.cl-comp { display: grid; gap: 4px; padding: 8px; background: linear-gradient(#17131a, #221c26); box-shadow: 0 0 0 2px #000, inset 0 2px 5px #000; }
.cl-comp > div { display: grid; grid-template-columns: 46px 1fr 52px 1fr 46px; align-items: center; gap: 5px; line-height: 1; }
.cl-comp b { font-size: 18px; font-weight: normal; color: #e8dcc8; } .cl-comp b:last-child { text-align: right; }
.cl-comp small { text-align: center; font-size: 16px; color: #b8aab8; }
.cl-comp i { height: 9px; background: #0c080e; box-shadow: 0 0 0 1px #000; }
.cl-comp u { display: block; height: 100%; background: linear-gradient(#ffa898, #d84030 50%, #a02420); }
.cl-comp i.eu u { margin-left: auto; background: linear-gradient(#a8e0ff, #3898e8 50%, #2060a8); }
.cl-comp .bom b:first-child, .cl-comp .ruim b:last-child { color: #8af070; }
.cl-premios { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 0; }
.cl-premios > div { padding: 6px 4px; text-align: center; font-size: 17px; line-height: 1.1; color: #d8ccd0; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #4a8a44; background: linear-gradient(#24401f, #17261a); }
.cl-premios .ruim { box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #8a4038; background: linear-gradient(#44201f, #261718); }
.cl-premios small { display: block; font-size: 16px; color: #c8bcc0; } .cl-premios b { font-weight: normal; color: #a0f088; } .cl-premios .ruim b { color: #ffa898; }
.cl-premios em { font-style: normal; font-size: 15px; white-space: nowrap; } .cl-premios img { width: 13px; height: 13px; vertical-align: -1px; }
.cl-corpo .fj-btn { padding: 11px 8px 7px; font-size: 15px; }
.cl-corpo .fj-btn small { display: block; margin-top: 5px; font-family: var(--body); font-size: 18px; line-height: 1; }
.cl-andamento b { font-weight: normal; color: #fff; }
.cl-vidas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 3px 8px; font-size: 18px; }
.cl-vidas > div { min-width: 0; } .cl-vidas small { display: block; margin-bottom: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 18px; line-height: 1; color: #ffb0a0; }
.cl-vidas > div:first-child small { color: #a8dcff; }
.cl-bau { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 8px 10px; line-height: 1; background: linear-gradient(90deg, #173848, #18222c); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #3a7a98; }
.cl-bau:first-child { margin-top: 0; }
.cl-bau > img { width: 28px; height: 28px; filter: drop-shadow(0 0 6px #60e0ff); }
.cl-bau > div { flex: 1; min-width: 0; } .cl-bau b { display: block; font-size: 21px; font-weight: normal; color: #a0f0ff; } .cl-bau small { font-size: 16px; color: #b8ccd4; }
.cl-bau.pronto { background: linear-gradient(90deg, #806018, #3c2c14); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #ffd050, 0 0 12px rgba(255,200,60,.5); }
.cl-corpo .a-itens { margin: 6px 0; } .cl-corpo .a-regra, .cl-corpo .a-at { margin: 8px 0; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #8a6a20; }
.cl-podio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 5px; margin: 4px 0 10px; text-align: center; line-height: 1; }
.cl-podio > div { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.cl-podio img { width: 36px; height: 36px; filter: drop-shadow(0 0 5px rgba(255,220,120,.6)); } .cl-podio .p1 img { width: 48px; height: 48px; }
.cl-podio span { max-width: 100%; margin-top: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 18px; color: #fff; }
.cl-podio small { font-size: 15px; color: #d8ccb0; }
.cl-podio b { width: 100%; margin-top: 5px; padding-top: 9px; font-family: var(--px); font-size: 15px; font-weight: normal; color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.6); box-shadow: 0 0 0 2px #000, inset 0 3px 0 rgba(255,255,255,.5); }
.cl-podio .p1 b { height: 66px; background: linear-gradient(#ffc830, #a06010); } .cl-podio .p2 b { height: 48px; background: linear-gradient(#b0c0d8, #54627c); } .cl-podio .p3 b { height: 36px; background: linear-gradient(#c87840, #6c3818); }
.cl-podio .me span { color: var(--gold); }
.cl-corpo .rank { margin: 3px 0; }

/* ----- duelo ----- */
.fight-box { background: linear-gradient(#4c4650, #2a262e 70px, #211d25); box-shadow: 0 0 0 4px #000, inset 0 0 0 3px #6e6674, 0 0 40px rgba(255,90,40,.35); }
.fight-box .frow { margin-top: 8px; } .fight-box #fightCanvas { margin-top: 8px; }
.d-cab h2 { color: #ffe060; text-shadow: 2px 2px 0 #802010; }
.d-bruma { padding: 2px 8px; line-height: 1; background: #402860; box-shadow: 0 0 0 2px #000, 0 0 10px #a070ff; }
.fside { min-width: 0; padding: 6px 8px 8px; background: linear-gradient(90deg, #1c4068, #1a1c28); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #4890d0; }
.fside.B { background: linear-gradient(270deg, #682420, #281a1e); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #d05848; }
.fside .bar { height: 20px; } .fside .bar span { font-size: 18px; }
.fside .bar.hp .fill { background: linear-gradient(#b0f890, #48b848 45%, #287828); } .fside .bar.hp.low .fill { background: linear-gradient(#ffb0a0, #e04838 45%, #982018); }
.fside.B .bar .fill { margin-left: auto; }
.fside .d-foco { gap: 9px; margin-top: 9px; } .fside .d-foco small { color: #a0e8ff; }
.fside .d-foco i { width: 11px; height: 11px; transform: rotate(45deg); }
.fside .d-foco i.on { background: linear-gradient(135deg, #f0ffff, #40c8ff 55%); box-shadow: 0 0 0 2px #000, 0 0 7px 2px rgba(80,210,255,.7); }
.fvs { font-size: 16px; color: #ffe060; text-shadow: 2px 2px 0 #a02010, 0 0 10px #ff6020; }
#fightCanvas { aspect-ratio: 176 / 102; box-shadow: 0 0 0 3px #000, 0 0 22px rgba(255,120,50,.4); }
.d-press { background: linear-gradient(90deg, #241638, #48286c 50%, #241638); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #9868e0, 0 0 12px rgba(150,100,230,.3); }
.d-press small { color: #c8b8e0; } .d-press b { font-weight: normal; color: #ffe890; } .d-press img { width: 24px; height: 24px; }
.d-acao { --c1: #ffe880; --c2: #b08818; --c3: #4c3808; text-shadow: 1px 1px 0 #000;
  box-shadow: 0 0 0 3px #000, inset 0 3px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.45), 0 0 10px color-mix(in srgb, var(--c2) 60%, transparent); }
.btn.d-acao { background: radial-gradient(circle at 50% 22%, var(--c1), var(--c2) 38%, var(--c3) 100%); }
.d-acao.explosao { --c1: #ffc860; --c2: #d84c18; --c3: #5c1408; } .d-acao.barreira { --c1: #a0dcff; --c2: #2c78d0; --c3: #10305c; }
.d-acao.espelho { --c1: #e8d0ff; --c2: #8850d0; --c3: #34185c; } .d-acao.concentrar { --c1: #b8ffa8; --c2: #30a048; --c3: #0e4420; }
.btn.d-acao:hover:not(:disabled) { transform: translateY(-2px); }
.d-acao img { width: 36px; height: 36px; filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 5px rgba(255,255,255,.5)); }
.d-acao b { font-family: var(--body); font-size: 20px; line-height: 1; }
.d-acao .d-custo { color: #a8f4ff; } .d-acao i { color: #fff; }
.d-log { min-height: 58px; background: linear-gradient(#17131a, #221c26); box-shadow: 0 0 0 2px #000, inset 0 2px 5px #000; }
.fres { margin: 12px 0 8px; padding: 12px 6px; font-size: 24px; }
.fres.win { color: #fff0a0; text-shadow: 3px 3px 0 #a04808, 0 0 14px #ffc030; background: linear-gradient(90deg, transparent, #a86818 30%, #d89028 50%, #a86818 70%, transparent); }
.fres.lose { text-shadow: 3px 3px 0 #400808; background: linear-gradient(90deg, transparent, #601c20 30%, #802828 50%, #601c20 70%, transparent); }
.cl-fim { display: flex; gap: 6px; margin: 8px 3px; }
.cl-fim > div { flex: 1; min-width: 0; padding: 8px 4px; text-align: center; line-height: 1; background: linear-gradient(#17131a, #221c26); box-shadow: 0 0 0 2px #000, inset 0 2px 5px #000; }
.cl-fim small { display: block; margin-bottom: 5px; font-size: 16px; color: #b8aab8; } .cl-fim b { font-size: 23px; font-weight: normal; color: #a0f088; white-space: nowrap; } .cl-fim .ruim b { color: #ffa898; }
.cl-fim img { width: 16px; height: 16px; }
@media (max-width: 560px) {
  .fside { padding: 5px 6px 7px; } .fside .d-foco { gap: 8px; } .fside .d-foco i { width: 9px; height: 9px; }
  .fvs { font-size: 12px; } .fres { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .btn.d-acao:hover:not(:disabled) { transform: none; } }

/* =====================================================================
   BATALHA DA BRUMA — PVP em tela cheia
   ===================================================================== */
.bt-btn.vivo { animation: btPulso 1s steps(2) infinite; }
.bt-btn.vivo small { color: #d8b0ff; }
@keyframes btPulso { 50% { box-shadow: 0 0 0 3px #000, 0 0 16px #b060ff; } }
.bt-aviso .wb-av-box, .bt-box { box-shadow: 0 0 0 4px #000, inset 0 0 0 3px #8a50d8, 0 0 40px rgba(150, 80, 255, .4), 8px 8px 0 4px rgba(0, 0, 0, .6); }
.bt-aviso h2, .bt-box h2 { color: #d8b0ff; }
.bt-aviso .wb-av-ico img { width: 84px; }
.bt-jcena { display: block; width: 100%; image-rendering: pixelated; box-shadow: 0 0 0 3px #000; }
.bt-box .wb-premio { justify-content: flex-start; margin: 8px 2px; }
.bt-box .wb-pend { background: #221638; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #7a50b8; }
.bt-box .wb-pend b { color: var(--gold); }

body.na-batalha { overflow: hidden; }
.bt { position: fixed; inset: 0; z-index: 56; overflow: hidden; background: #140c20; user-select: none; -webkit-user-select: none; touch-action: none; }
.bt-cena { position: absolute; left: 0; top: 0; image-rendering: pixelated; cursor: pointer; touch-action: none; }
.bt-txt, .bt-veu { position: absolute; inset: 0; pointer-events: none; }
.bt-veu { opacity: 0; transition: opacity .25s; }
.bt.perigo .bt-veu { opacity: 1; box-shadow: inset 0 0 110px 20px rgba(220, 20, 30, .6); }
.bt.na-bruma .bt-veu { opacity: 1; box-shadow: inset 0 0 150px 50px rgba(150, 60, 255, .75); animation: btVeu .8s steps(4) infinite alternate; }
@keyframes btVeu { to { opacity: .55; } }
.bt.sem-rede .bt-cena { filter: grayscale(.8) brightness(.6); }
.bt .bt-sair { position: absolute; left: calc(12px + var(--se, 0px)); top: 12px; z-index: 3; }
.bt-placa { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); min-width: 250px; padding: 8px 18px 6px; text-align: center; pointer-events: none;
  background: linear-gradient(#4a2c7c, #28144c); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #a070e8; }
.bt-placa b { display: block; font-family: var(--px); font-weight: normal; font-size: 12px; line-height: 16px; color: #ffe9a8; white-space: nowrap; }
.bt-placa span { display: block; min-height: 18px; font-size: 19px; line-height: 18px; color: #dcc8ff; white-space: nowrap; }
.bt-mini { position: absolute; right: calc(12px + var(--sd, 0px)); top: 12px; width: 150px; height: 150px; image-rendering: pixelated; pointer-events: none; opacity: .92; box-shadow: 0 0 0 3px #000, 0 0 0 5px #8a5cd0; }
.bt-log { position: absolute; left: calc(12px + var(--se, 0px)); top: 62px; width: 260px; pointer-events: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bt-log div { padding: 1px 8px 3px; font-size: 18px; line-height: 17px; color: #e0d4f0; background: rgba(16, 8, 30, .7); overflow-wrap: anywhere; }
.bt-log .ouro { color: #ffe070; } .bt-log .ruim { color: #ff8a80; }
.bt-alvo { position: absolute; left: 50%; top: 76px; transform: translateX(-50%); width: 230px; padding: 4px 8px 7px; text-align: center; pointer-events: none; background: rgba(40, 10, 16, .85); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #c04840; }
.bt-alvo b { display: block; font-weight: normal; font-size: 19px; line-height: 19px; color: #ffb0a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-alvo.longe { opacity: .75; }
.bt-barra { height: 8px; margin-top: 3px; background: #3a1414; box-shadow: 0 0 0 2px #000; }
.bt-barra i { display: block; height: 100%; transition: width .15s; }
.bt-faixa { position: absolute; left: 0; right: 0; top: 27%; padding: 0 12px; text-align: center; pointer-events: none; white-space: pre-line; font-family: var(--px); font-size: 20px; line-height: 1.7; color: #fff;
  text-shadow: 3px 3px 0 #000, -2px 0 0 #000, 0 -2px 0 #000, 2px 0 0 #000, 0 2px 0 #000; }
.bt-faixa.ouro { color: #ffe070; font-size: 26px; }
.bt-faixa.ruim { color: #ff7a70; }
.bt-faixa.roxo { color: #d8a8ff; font-size: 15px; }
.bt-faixa.mini { top: auto; bottom: 150px; font-size: 10px; color: #ffc0a0; }

.bt-ficha { position: absolute; right: calc(14px + var(--sd, 0px)); top: 50%; transform: translateY(-50%); width: 300px; padding: 12px 14px; background: rgba(30, 18, 52, .94); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #8860c8; }
.bt-ficha h3 { margin: 0 0 6px; font-size: 10px; color: #ffe9a8; }
.bt-ficha p { margin: 6px 0; font-size: 18px; line-height: 18px; color: #d8ccec; }
.bt-ficha p b { color: #ffe9a8; font-weight: normal; }
.bt-ats div { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 2px 0; border-bottom: 1px solid #46307a; font-size: 19px; line-height: 18px; }
.bt-ats b { font-weight: normal; color: #a8f0b0; }
.bt-ats small { grid-column: 1 / -1; font-size: 15px; line-height: 13px; color: #a08cc0; }

.bt-pe { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bt-vida { position: relative; width: 420px; max-width: 80vw; height: 24px; background: #3a1414; box-shadow: 0 0 0 3px #000, 0 0 0 5px #6a4a8a; }
.bt-vida i, .bt-vida u { position: absolute; left: 0; top: 0; bottom: 0; transition: width .15s; filter: brightness(.75); }
.bt-vida u { top: auto; height: 7px; background: #70c8ff; filter: none; }
.bt-vida span { position: relative; display: block; text-align: center; font-size: 20px; line-height: 23px; color: #fff; text-shadow: 1px 1px 0 #000, -1px 0 0 #000; }
.bt-sks { display: flex; gap: 9px; }
.bt-sk { position: relative; width: 56px; height: 56px; padding: 0; border: 0; cursor: pointer; display: grid; place-items: center; overflow: hidden; touch-action: none;
  background: linear-gradient(#3c2866, #24143e); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #6a4aa0; }
.bt-sk.pronta, .bt-mira { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #c898ff; }
.bt-sk:active { transform: translateY(2px); filter: brightness(1.3); }
.bt-sk img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; pointer-events: none; }
.bt-sk:not(.pronta):not(.bt-mira) img { filter: grayscale(.7) brightness(.7); }
.bt-sk i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(8, 4, 20, .62); pointer-events: none; }
.bt-sk em { position: absolute; inset: 0; display: grid; place-items: center; font: normal 26px var(--body); color: #fff; text-shadow: 2px 2px 0 #000, -1px 0 0 #000; pointer-events: none; }
.bt-sk b { position: absolute; left: 4px; top: 4px; font-family: var(--px); font-weight: normal; font-size: 8px; color: #ffe9a8; text-shadow: 1px 1px 0 #000, -1px 0 0 #000; pointer-events: none; }
.bt-sk:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bt-joy { position: absolute; left: calc(26px + var(--se, 0px)); bottom: calc(22px + var(--sb, 0px)); width: 144px; height: 144px; border-radius: 50%; touch-action: none; background: rgba(60, 36, 110, .5); box-shadow: 0 0 0 3px rgba(0, 0, 0, .7), inset 0 0 0 3px rgba(190, 150, 255, .6); }
.bt-joy i { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px; border-radius: 50%; pointer-events: none; background: #9a68e8; box-shadow: 0 0 0 3px #000, inset 0 4px 0 #cfa8ff; }
.bt-olho { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 9px 14px; background: rgba(30, 18, 52, .94); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #8860c8; }
.bt-olho b { font-weight: normal; font-size: 22px; line-height: 20px; color: #ffe9a8; }

.bt-fim { position: absolute; inset: 0; z-index: 4; display: flex; padding: 12px; overflow-y: auto; background: rgba(10, 4, 24, .6); }
.bt-fim-box { position: relative; width: min(440px, 94vw); margin: auto; padding: 16px 18px; text-align: center; background: #261a3c; box-shadow: 0 0 0 4px #000, inset 0 0 0 3px #8860c8, 0 0 50px rgba(150, 80, 255, .5); animation: wbEntra .25s steps(4); }
.bt-fim-box.ganhei { box-shadow: 0 0 0 4px #000, inset 0 0 0 3px #ffd050, 0 0 60px rgba(255, 200, 60, .55); }
.bt-fim-box h2 { margin: 0; font-size: 16px; color: #ffe070; }
.bt-fim-box canvas { width: 288px; max-width: 100%; height: auto; image-rendering: pixelated; margin: 8px 0 4px; }
.bt-campeao { font-size: 28px; line-height: 26px; color: #fff; overflow-wrap: anywhere; }
.bt-lugar { margin: 6px 0; font-size: 20px; }
.bt-lugar b { color: var(--gold); }
.bt-placar { margin: 10px 0; text-align: left; max-height: 180px; overflow-y: auto; }
.bt-placar div { display: grid; grid-template-columns: 42px 1fr 78px 78px; gap: 6px; padding: 2px 6px; font-size: 19px; line-height: 19px; border-bottom: 1px solid #46307a; }
.bt-placar div span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bt-placar div span:nth-child(n+3) { text-align: right; color: #c0b0dc; }
.bt-placar .bt-cab { font-family: var(--px); font-size: 7px; line-height: 12px; color: #a08cc0; }
.bt-placar .me { background: #4a3080; color: #ffe080; }
.bt-fim-box .end { justify-content: center; }
@media (pointer: coarse) { .bt-sk b { display: none; } .bt-sk { width: 60px; height: 60px; } }
@media (max-height: 620px) { .bt-mini { width: 120px; height: 120px; } .bt-faixa { font-size: 16px; top: 24%; } .bt-faixa.ouro { font-size: 20px; } .bt-faixa.mini { font-size: 10px; top: auto; } }
@media (max-width: 900px) {
  .bt-placa { top: 62px; min-width: 0; } .bt-alvo { top: 128px; width: 190px; } .bt-mini { width: 96px; height: 96px; } .bt-log { top: 132px; width: 45vw; }
  .bt-sks { display: grid; grid-template-columns: repeat(3, 56px); } .bt-sk { width: 56px; height: 56px; }
  .bt-pe { left: auto; right: 12px; transform: none; align-items: flex-end; } .bt-vida { width: 190px; } .bt-joy { left: 14px; width: 124px; height: 124px; }
  .bt-ficha { left: 12px; right: 12px; top: auto; bottom: 180px; transform: none; width: auto; } .bt-ats small { display: none; }
}

/* =====================================================================
   SANTUÁRIO — tela inteira, fora do mapa dos monstros
   ===================================================================== */
body.no-santuario { overflow: hidden; }
.st-portal { position: relative; width: 60px; margin-top: 14px; padding: 2px 0 4px; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.st-portal canvas { width: 58px; height: 73px; filter: drop-shadow(0 0 7px #a860ff); transition: transform .12s, filter .12s; }
.st-portal:hover canvas { transform: scale(1.1); filter: drop-shadow(0 0 13px #d8a0ff) brightness(1.15); }
.st-portal span { margin-top: -3px; padding: 4px 4px 3px; font-family: var(--px); font-size: 7px; color: #f4e4ff; background: linear-gradient(#7c44c8, #4a2490); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #c898ff; white-space: nowrap; }
.st-portal .badge { top: 0; right: -2px; }
.st-portal:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body.imersivo .st-portal { display: none; }
/* portal da Vila, embaixo do portal do Santuário */
.st-pvila { margin-top: 2px; }
.st-pvila canvas { height: 71px; filter: drop-shadow(0 0 7px #40b8ff); }
.st-pvila:hover canvas { filter: drop-shadow(0 0 13px #a0e0ff) brightness(1.12); }
.st-pvila span { padding: 4px 10px 3px; color: #fff; background: linear-gradient(#d8405c, #8c1c3c); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #ffc0c8; }
.st-pvila em { position: absolute; top: 2px; right: -4px; min-width: 18px; padding: 1px 4px; font: normal 17px/16px var(--body); text-align: center; color: #06280f; background: #70f090; box-shadow: 0 0 0 2px #000; }

.sant { position: fixed; inset: 0; z-index: 55; overflow: hidden; background: #1a1030; }
.st-cena { position: absolute; left: 0; top: 0; touch-action: none; cursor: pointer; }
.st-nomes { position: absolute; inset: 0; isolation: isolate; overflow: hidden; pointer-events: none; }
.st-nome { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; width: max-content; will-change: transform; }
.st-nome > span { font-size: 16px; line-height: 13px; padding: 0 4px 1px; background: rgba(16, 8, 30, .5); color: #f0e8ff; white-space: nowrap; }
.st-nome.eu > span { color: #ffe080; }
.st-baloes { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 7px; }
.st-baloes div { position: relative; max-width: 210px; padding: 5px 9px; background: #fffaf0; color: #2a1a38; font-size: 19px; line-height: 17px; text-align: center; overflow-wrap: anywhere; box-shadow: 0 0 0 2px #2a1a38, 0 3px 0 2px rgba(0, 0, 0, .35); animation: stPop .16s steps(3); transition: opacity .35s; }
.st-baloes div:last-child::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 8px; height: 8px; margin-left: -4px; background: #fffaf0; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.st-baloes div.sai { opacity: 0; }
@keyframes stPop { from { transform: scale(.4); opacity: 0; } }
.sant.viajando .st-nomes, .sant.viajando .st-topo, .sant.viajando .st-pe, .sant.viajando .st-log, .sant.viajando .st-painel, .sant.viajando .st-convite-tela { visibility: hidden; }

.st-topo { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; pointer-events: none; }
.st-topo > * { pointer-events: auto; }
.st-placa { position: absolute; left: 50%; top: 0; transform: translateX(-50%); max-width: calc(100% - 330px); padding: 8px 18px 6px; text-align: center; pointer-events: none;
  background: linear-gradient(#5a3a8c, #341c60); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #b088f0, 0 6px 18px rgba(0, 0, 0, .4); }
.st-placa b { display: block; font-size: 25px; line-height: 23px; font-weight: normal; color: #ffe9a8; overflow-wrap: anywhere; text-shadow: 2px 2px 0 #1c0c38; }
.st-placa span { font-size: 17px; line-height: 16px; color: #d8c8f4; }
.st-encanto { display: flex; align-items: center; gap: 7px; background: #7a3aa8; box-shadow: inset -3px -3px 0 #431c68, inset 3px 3px 0 #b878e0, 0 0 0 3px #000; }
.st-encanto img { width: 20px; }
.st-encanto.on { background: #b07a18; box-shadow: inset -3px -3px 0 #6a440a, inset 3px 3px 0 #f0c050, 0 0 0 3px #000; }

.st-log { position: absolute; left: 12px; bottom: 128px; width: 290px; max-height: 118px; overflow-y: auto; padding: 5px 8px; background: rgba(16, 8, 30, .55); font-size: 18px; line-height: 17px; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: #6c4ca8 transparent; }
.st-log b { color: #c8a8ff; font-weight: normal; }
.st-log .sys { color: #b4a4cc; }
.st-pe { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.st-pe > * { pointer-events: auto; }
.st-fala { display: flex; gap: 8px; width: min(520px, 100%); }
.st-fala input { flex: 1; min-width: 0; padding: 6px 10px; border: 0; font: 20px var(--body); color: var(--text); background: #1c1230; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #6c4ca8; outline: none; user-select: text; }
.st-fala input:focus { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #d0a8ff; }
.st-b { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border: 0; cursor: pointer; font-family: var(--px); font-size: 8px; color: #f0e4ff;
  background: linear-gradient(#6a44a8, #442478); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #a880e0, inset 0 -4px 0 rgba(0, 0, 0, .25); }
.st-b img { width: 26px; height: auto; }
.st-fala .st-b { padding: 4px 8px; }
.st-b:hover { filter: brightness(1.18); }
.st-b.on { background: linear-gradient(#f0b840, #b06c18); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #fff0a0; color: #fff; }
.st-b:focus-visible, .st-cel:focus-visible, .st-lugar:focus-visible, .st-opcao:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.st-nav { display: flex; gap: 12px; }
.st-gestos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 9px; background: #2a1a48; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #8860c8; }
.st-gestos button { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 4px; width: 70px; min-height: 58px; padding: 7px 2px 4px; border: 0; cursor: pointer; font: 17px var(--body); line-height: 15px; color: #f0e4ff; background: #40286c; box-shadow: 0 0 0 2px #000; }
.st-gestos button:hover { background: #5c3c94; }
.st-gestos img { width: 30px; height: auto; }

.st-painel { position: absolute; right: 12px; top: 76px; bottom: 12px; width: 360px; display: flex; flex-direction: column; background: #261a3c; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #7c58b8, 6px 6px 0 3px rgba(0, 0, 0, .4); animation: stLado .16s steps(4); z-index: 4; }
@keyframes stLado { from { transform: translateX(40px); opacity: 0; } }
.st-ph { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: linear-gradient(#5a3a8c, #3c2268); box-shadow: inset 0 0 0 2px #a880e0; }
.st-ph h2 { margin: 0; font-family: var(--px); font-size: 12px; font-weight: normal; color: #ffe9a8; text-shadow: 2px 2px 0 #1c0c38; }
.st-pb { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; scrollbar-width: thin; scrollbar-color: #7c58b8 #1c1230; }
.st-pb h3 { margin: 16px 0 8px; font-family: var(--px); font-size: 9px; font-weight: normal; color: #d0b0ff; }
.st-pb h3:first-child { margin-top: 2px; }
.st-carrega, .st-vazio { padding: 16px 8px; text-align: center; color: #b4a4cc; line-height: 19px; }
.st-dica { margin: 10px 0 0; font-size: 18px; line-height: 17px; color: #a898c4; }
.st-dica b { color: #ffe080; font-weight: normal; }
.st-abas, .st-grupos { display: flex; gap: 7px; margin: 3px 3px 12px; }
.st-abas button, .st-grupos button { flex: 1; padding: 9px 3px; border: 0; cursor: pointer; font-family: var(--px); font-size: 8px; color: #c8b8e4; background: #40286c; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #6c4ca8; }
.st-abas button.on, .st-grupos button.on { color: #fff; background: #7c4cc8; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #e0c0ff; }
.st-abas i { font-style: normal; padding: 1px 4px; background: var(--bad); color: #fff; }
.st-grupos { flex-wrap: wrap; margin: 14px 3px 10px; }
.st-grupos button { flex: 1 0 21%; padding: 7px 2px; font-size: 7px; }
.st-mago { display: flex; flex-direction: column; gap: 7px; margin: 0 2px 9px; padding: 8px 9px; background: #342350; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #5c4088; }
.st-mago.on { background: #343a5c; }
.st-mago.off .st-mi { opacity: .7; }
.st-mi { line-height: 18px; overflow-wrap: anywhere; }
.st-mi b { font-weight: normal; font-size: 21px; color: #f8ecff; margin-right: 6px; }
.st-mi i { display: inline-block; width: 9px; height: 9px; margin-right: 7px; background: #70688a; box-shadow: 0 0 0 2px #000; }
.st-mago.on .st-mi i { background: #60f080; }
.st-mi small { display: block; font-size: 17px; line-height: 16px; color: #b4a4cc; }
.st-mb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 2px 3px; }
.st-mb em, .st-cb em { font-style: normal; color: #90f0a8; font-size: 18px; }
.btn.st-leve { background: #3c2c54; box-shadow: inset -2px -2px 0 #281a3c, inset 2px 2px 0 #54406e, 0 0 0 2px #000; color: #c8b8dc; }
.st-busca { display: flex; gap: 9px; margin: 3px 3px 12px; }
.st-busca input { flex: 1; min-width: 0; padding: 7px 9px; border: 0; font: 20px var(--body); color: var(--text); background: #1c1230; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #8860c8; outline: none; user-select: text; }
.st-lugares { display: flex; flex-direction: column; gap: 10px; margin: 0 3px; }
.st-lugar { display: flex; gap: 10px; align-items: center; padding: 6px; border: 0; cursor: pointer; text-align: left; color: var(--text); font: 19px var(--body); line-height: 17px; background: #342350; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #7c58b8; }
.st-lugar:hover { background: #483070; }
.st-lugar > img { width: 96px; height: 60px; object-fit: cover; box-shadow: 0 0 0 2px #000; }
.st-lugar div { min-width: 0; overflow-wrap: anywhere; }
.st-lugar b { display: block; font-weight: normal; font-size: 20px; color: #ffe9a8; }
.st-lugar small { display: block; font-size: 17px; color: #b4a4cc; }
.st-lugar span { font-size: 17px; color: #d8b0ff; }
.st-lugar em { font-style: normal; color: #80f0a0; }
.st-opcao { display: block; width: calc(100% - 6px); margin: 0 3px 10px; padding: 9px 11px; border: 0; cursor: pointer; text-align: left; font: 19px var(--body); color: var(--text); background: #342350; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #5c4088; }
.st-opcao b { display: block; font-weight: normal; font-size: 21px; }
.st-opcao small { font-size: 17px; line-height: 16px; display: block; color: #b4a4cc; }
.st-opcao.on { background: #4c3284; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #ffd860; }
.st-opcao.on b { color: #ffe080; }

.st-vitrine { display: flex; gap: 12px; align-items: center; margin: 3px; }
.st-foto { flex: none; width: 128px; height: 128px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #a078e0, #4c2c88 62%, #2c1858); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #d0a8ff; }
.st-foto img { width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .35)); animation: bob 1.6s steps(2) infinite; }
.st-vitrine b { display: block; font-weight: normal; font-size: 25px; line-height: 23px; color: #ffe9a8; margin-bottom: 5px; }
.st-vitrine small { display: block; font-size: 17px; line-height: 16px; color: #c4b4dc; margin-bottom: 4px; }
.st-vitrine .btn { margin: 6px 3px 3px; }
.st-preco { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin: 12px 3px; }
.st-preco span { display: grid; grid-template-columns: 26px 1fr; column-gap: 7px; align-items: center; padding: 5px 6px; background: #1c1230; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #3c8c50; }
.st-preco span.no { box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #a03c4c; }
.st-preco img { grid-row: span 2; width: 24px; height: auto; max-height: 26px; object-fit: contain; }
.st-preco b { font-weight: normal; font-size: 18px; line-height: 15px; color: #90f0a8; }
.st-preco .no b { color: #ff9090; }
.st-preco small { font-size: 15px; line-height: 13px; color: #a898c4; }
.btn.st-cria { display: block; width: calc(100% - 6px); margin: 4px 3px 0; padding: 12px 6px; }
.st-feito { margin: 12px 3px; padding: 9px 11px; background: #4a3414; color: #ffe0a0; line-height: 18px; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #d0a040; }
.st-grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 3px; }
.st-grade.larga { grid-template-columns: repeat(2, 1fr); }
.st-cel { position: relative; height: 74px; display: grid; place-items: center; padding: 5px; border: 0; cursor: pointer; background: #40286c; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #7450b0; color: var(--text); }
.st-cel > img { width: 100%; height: 60px; object-fit: contain; }
.st-cel:hover { background: #583a90; }
.st-cel.falta { background: #2c2040; }
.st-cel.falta > img { opacity: .62; }
.st-cel.sel { background: #7c4cc8; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #fff; }
.st-cel.sel > img { opacity: 1; }
.st-cel i { position: absolute; right: 2px; top: 2px; padding: 0 5px; font-style: normal; font-size: 17px; line-height: 16px; background: #2a8a4a; box-shadow: 0 0 0 1px #000; }
.st-cel u { position: absolute; left: 3px; top: 3px; line-height: 0; }
.st-cel u img { width: 14px; }
.st-grade.larga .st-cel { height: auto; gap: 4px; font: 17px var(--body); line-height: 15px; align-content: space-between; }
.st-grade.larga .st-cel > img { height: 66px; }
.st-grade.larga .st-cel.uso { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #ffd860; }
.st-grade.larga .st-cel.uso small::after { content: ' (em uso)'; color: #ffd860; }
.st-grade.larga .st-cel small { font-size: 17px; }
.st-cel:disabled { opacity: .4; cursor: default; }
.st-obra { position: absolute; left: 12px; right: 384px; bottom: 16px; margin: 0 auto; width: max-content; max-width: calc(100% - 400px); padding: 10px 14px; text-align: center; background: #2a1a48; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #ffd860; z-index: 3; }
.st-obra b { display: block; font-weight: normal; font-size: 22px; line-height: 20px; color: #ffe9a8; }
.st-obra span { font-size: 17px; color: #c4b4dc; }
.st-obra div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

.st-cartao { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(290px, 90vw); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px; text-align: center; background: #2a1a48; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #b088f0, 6px 6px 0 3px rgba(0, 0, 0, .4); z-index: 5; }
.st-cartao canvas { width: 180px; height: 138px; background: radial-gradient(circle at 50% 45%, #7c54c0, #2c1858 75%); box-shadow: 0 0 0 2px #000; margin-bottom: 6px; }
.st-cartao > b { font-weight: normal; font-size: 24px; line-height: 22px; color: #ffe9a8; overflow-wrap: anywhere; }
.st-cartao small { font-size: 17px; color: #b4a4cc; }
.st-cartao p { margin: 6px 0; line-height: 18px; }
.st-cx { position: absolute; right: 8px; top: 8px; }
.st-cb { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 10px; }
.st-convite-tela { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: min(440px, 92vw); padding: 16px; text-align: center; background: #2a1a48; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #ffd860; }
.st-convite-tela b { font-family: var(--px); font-size: 12px; font-weight: normal; color: #ffe080; }
.st-convite-tela p { margin: 10px 0 14px; line-height: 20px; }
.st-convites { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 75; display: flex; flex-direction: column; gap: 10px; width: min(400px, 94vw); }
.st-conv { display: flex; gap: 12px; align-items: center; padding: 12px; line-height: 19px; overflow-wrap: anywhere; background: #3a2468; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #ffd860, 0 6px 20px rgba(0, 0, 0, .5); animation: stPop .2s steps(4); }
.st-conv > img { width: 44px; }
.st-conv b { font-weight: normal; color: #ffe080; }
.st-conv div div { display: flex; gap: 10px; margin-top: 9px; }
.st-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 9px; }
.btn.st-ir { background: #6a3cb0; box-shadow: inset -3px -3px 0 #3c1c70, inset 3px 3px 0 #a878e8, 0 0 0 3px #000; }

/* aumentar a ilha, artefatos e selos */
.st-b.st-ouro { color: #fff6c8; text-shadow: 1px 1px 0 #6a3000; background: linear-gradient(#ffdc60, #f09420 55%, #b04c10); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #fff0a0, inset 0 -4px 0 #8c3808; }
.st-b.st-ouro.on { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #fff, 0 0 12px 3px #ffb030; }
.st-nivel { display: flex; gap: 12px; align-items: center; margin: 3px; padding: 8px; background: #342350; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #7c58b8; }
.st-nivel > img { flex: none; width: 118px; height: 104px; object-fit: cover; box-shadow: 0 0 0 2px #000; }
.st-nivel div { min-width: 0; }
.st-nivel small { display: block; font-family: var(--px); font-size: 7px; color: #d0b0ff; margin-bottom: 5px; }
.st-nivel b { display: block; font-weight: normal; font-size: 24px; line-height: 22px; color: #ffe9a8; }
.st-nivel span { display: block; font-size: 18px; line-height: 17px; color: #d8c8f4; }
.st-nivel em { display: block; margin-top: 3px; font-style: normal; font-size: 17px; line-height: 16px; color: #90f0a8; }
.st-nivel .btn { margin: 8px 3px 2px; }
.st-nivel.prox { background: linear-gradient(#5c4014, #342350 70%); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #ffd860; }
.st-sementes { display: flex; gap: 12px; align-items: center; margin: 12px 3px; padding: 10px; background: #3c1c50; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #e060e8; }
.st-sementes > img { flex: none; width: 51px; filter: drop-shadow(0 0 8px #e070ff); animation: bob 1.6s steps(2) infinite; }
.st-sementes b { font-weight: normal; font-size: 22px; line-height: 20px; color: #ff9090; }
.st-sementes.ok b { color: #90f0a8; }
.st-sementes small { display: block; margin: 3px 0 8px; font-size: 16px; line-height: 15px; color: #d8c0e8; }
.st-sementes .btn { margin-left: 3px; }
.st-preco.muitos { grid-template-columns: repeat(3, 1fr); }
.st-preco.muitos button { display: grid; grid-template-columns: 20px 1fr; column-gap: 6px; align-items: center; padding: 4px 5px; border: 0; cursor: pointer; text-align: left; font-family: var(--body); background: #1c1230; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #3c8c50; }
.st-preco.muitos button.no { background: #341626; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #a03c4c; }
.st-preco.muitos img { width: 20px; }
.st-preco.muitos button:hover { filter: brightness(1.25); }
.st-evo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 3px; }
.st-evo div { padding: 4px; text-align: center; background: #2c2040; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #5c4088; }
.st-evo img { display: block; width: 100%; height: 66px; object-fit: cover; }
.st-evo b { display: block; margin-top: 4px; font-family: var(--px); font-size: 8px; font-weight: normal; color: #f0e4ff; }
.st-evo small { font-size: 15px; line-height: 13px; display: block; color: #b4a4cc; }
.st-evo .feito { background: #2c4438; }
.st-evo .atual { background: #6a4a14; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #ffd860; }
.st-evo .misterio img { filter: brightness(.38) saturate(.5); }
.st-selo { margin: 12px 3px; padding: 8px 10px; font-size: 17px; line-height: 16px; background: #2c2040; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #7c6ca0; color: #c8bcdc; }
.st-selo b { display: block; margin-bottom: 5px; font-family: var(--px); font-size: 8px; font-weight: normal; line-height: 12px; color: #a8c8f0; }
.st-selo.livre { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--rc); }
.st-selo.livre b { color: var(--rc); }
.st-cel.arte { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--rc); }
.st-cel.arte.sel { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #fff, 0 0 10px 2px var(--rc); }
.st-lugar small.st-nobre { color: #ffd860; }

/* ---------- Vila da Bruma ---------- */
.st-sovila { display: none !important; }
.na-vila .st-sovila { display: flex !important; }
.na-vila .st-placa { background: linear-gradient(#c43450, #7c1838); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #ffe0a0, 0 6px 18px rgba(0, 0, 0, .4); }
.na-vila .st-placa b { text-shadow: 2px 2px 0 #4c0c24; }
.na-vila .st-placa span { color: #ffe8ec; }
.st-b.st-gelo { color: #0c2c54; background: linear-gradient(#e8f8ff, #7cc0f0); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #fff, inset 0 -4px 0 rgba(20, 80, 150, .3); }
.st-b.st-gelo.on { color: #fff; background: linear-gradient(#f0b840, #b06c18); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #fff0a0; }
.mirando .st-cena { cursor: crosshair; }
.st-faixa { position: absolute; left: 50%; top: 24%; transform: translateX(-50%); z-index: 3; max-width: 90vw; text-align: center; pointer-events: none; opacity: 0; font-family: var(--px); font-size: 20px; line-height: 30px; color: #fff4b8; text-shadow: 3px 3px 0 #7c1838, -2px 0 0 #7c1838, 0 -2px 0 #7c1838; transition: opacity .4s; }
.st-faixa.num { font-size: 72px; line-height: 90px; }
.st-faixa.on { opacity: 1; animation: stPopFaixa .25s steps(5); }
@keyframes stPopFaixa { from { transform: translateX(-50%) scale(.4); } }
.st-lugar.st-cartaz > img { flex: none; width: 120px; height: 76px; image-rendering: pixelated; }
.st-vilaLink { margin: 0 3px 4px; }
.st-vilaLink .st-lugar { width: 100%; background: linear-gradient(90deg, #a82c4c, #482070); }
.st-vilaLink .st-lugar > img { width: 60px; height: 60px; padding: 4px; object-fit: contain; background: #1c2c60; }

/* tela baixa: o portal da Vila fica ao lado do portal do Santuário, para não cobrir a caixa do mago */
@media (min-width: 901px) and (max-height: 800px) { html:not(.deitado) .st-pvila { position: absolute; left: 66px; bottom: 0; } }
@media (min-width: 901px) { .com-painel .st-pe { right: 384px; } }
@media (max-width: 900px) {
  .st-portal { width: 46px; margin-top: 6px; }
  .st-portal canvas { width: 42px; height: 53px; }
  .st-portal span { font-size: 5px; padding: 3px 2px 2px; }
  .st-pvila { position: absolute; left: 50px; bottom: 0; }
  .st-pvila canvas { height: 51px; }
  .st-faixa { font-size: 14px; line-height: 22px; }
  .st-topo { left: 8px; right: 8px; top: 8px; gap: 8px; }
  .st-placa { position: static; transform: none; flex: 1; min-width: 0; max-width: none; padding: 5px 8px; }
  .st-placa b { font-size: 20px; line-height: 18px; }
  .st-placa span { font-size: 15px; line-height: 13px; display: block; }
  .st-encanto span { display: none; }
  .st-pe { left: 8px; right: 8px; bottom: 8px; gap: 8px; }
  .st-log { left: 8px; bottom: 122px; width: min(260px, calc(100vw - 16px)); max-height: 74px; font-size: 17px; line-height: 15px; }
  .st-nav { width: 100%; gap: 7px; }
  .st-nav .st-b { flex: 1; min-width: 0; flex-direction: column; gap: 4px; padding: 7px 2px 6px; font-size: 6px; }
  .st-nav .st-b img { width: 22px; }
  .st-gestos { gap: 6px; padding: 7px; }
  .st-gestos button { width: 31%; }
  .st-painel { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 50vh; height: 50dvh; animation: none; }
  .st-obra { right: 12px; bottom: calc(50vh + 12px); bottom: calc(50dvh + 12px); max-width: calc(100% - 24px); padding: 6px 10px; }
  .st-obra span { display: none; }
  .st-obra div { margin-top: 6px; }
  .st-foto { width: 100px; height: 100px; }
  .st-foto img { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) { .st-sementes > img, .st-foto img, .st-painel, .st-baloes div, .st-conv { animation: none; } }

/* =====================================================================
   CELULAR (tela.js)
   "cel"     = celular ou tablet
   "deitado" = mostra a tela do PC reduzida (uns 500 px de altura): aqui só
               se reorganiza o que não cabe nessa altura
   ===================================================================== */
.cel, .cel body { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
.cel #arena { touch-action: none; }
.cel .mz-tecla, .cel .sk .key, .cel .d-acao i { display: none; }
.cel .tab-body, .cel .modal-box, .cel .fight-box, .cel .mkt-body, .cel .chat-msgs, .cel .wb-box { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* toque não é mouse: nada fica aceso depois de soltar o dedo, e os atributos abrem tocando no mago */
.cel .left .hero:hover .stats { opacity: 0; transform: translateY(4px); }
.cel .left .hero.ver .stats { opacity: 1; transform: none; }

/* O mapa ocupa a tela toda, até atrás do entalhe. --se, --sd e --sb (tela.js) afastam os botões das bordas, e --alt é a
   altura visível (no iPhone, 100vh pode contar a barra do navegador). --m é a margem igual dos dois lados. */
.cel { --se: 0px; --sd: 0px; --sb: 0px; --alt: 100vh; --m: 12px; --abas: 133px; }

@media (min-width: 901px) {
  /* abas em duas colunas, com botões maiores para o dedo; o chat fechado fica embaixo, na mesma largura */
  .deitado .tabs { display: grid !important; grid-template-columns: 62px 62px; grid-auto-rows: 53px; gap: 9px !important; }
  .deitado .tabs button { justify-content: center; width: 62px; padding: 4px 2px; gap: 5px; }
  .deitado .tabs button img { width: 24px; height: 24px; }
  .deitado .tabs button:not(.tab-up) { font-size: 7px; }
  /* a gaveta para antes do meio da tela: o mago continua aparecendo */
  .deitado .drawer { right: 146px; width: clamp(350px, calc(50vw - 146px - var(--m) - var(--sd) - 22px), 420px); }
  @keyframes slideinCel { from { opacity: 0; right: 112px; } to { opacity: 1; right: 146px; } }
  .deitado .right.open .drawer { animation-name: slideinCel; }
  /* a gaveta usa toda a altura */
  .deitado .right { top: calc(var(--topH) + 10px); right: calc(var(--m) + var(--sd)); bottom: calc(10px + var(--sb)); }
  .deitado .right .drawer { padding: 8px; }

  /* modos de tela, Chefe Mundial e portal em duas colunas, acima do mago */
  .deitado .modos { left: calc(var(--m) + var(--se)); top: calc(var(--topH) + 10px); display: grid; grid-template-columns: 46px 46px; gap: 10px 12px; align-items: start; }
  .deitado .modo-btn { width: 46px; height: 46px; }
  .deitado .modos .wb-btn { margin-top: 0; }
  .deitado .modos .st-portal { margin: 0; justify-self: center; }
  .deitado.cheia .modo-cheia { display: none; }

  /* caixa do mago menor, para caber ao lado das skills */
  .deitado .left { left: calc(var(--m) + var(--se) - 3px); bottom: calc(7px + var(--sb)); gap: 6px; z-index: 4; pointer-events: none; }
  .deitado .left .hero { pointer-events: auto; }
  .deitado .left .hero-view { width: 144px; }
  .deitado .left .gear { grid-template-columns: repeat(3, 32px); grid-auto-rows: 32px; gap: 5px; }
  .deitado .gslot img { max-width: 24px; max-height: 26px; }
  .deitado .left .hero .stats { width: 330px; right: auto; }
  .deitado #lootLog li:nth-last-child(n+4) { display: none; }
  .deitado .hotbar { bottom: calc(10px + var(--sb)); }
  .deitado .sk .auto { font-size: 7px; padding: 5px 5px 4px; bottom: -10px; right: -8px; }

  /* chat fechado embaixo das abas; aberto, acima das skills */
  .deitado .chat { right: calc(var(--m) + var(--sd) + var(--abas) + 12px); bottom: calc(96px + var(--sb)); width: 310px; z-index: 3; }
  .deitado .chat.fechado { right: calc(var(--m) + var(--sd)); bottom: calc(10px + var(--sb)); width: var(--abas); }
  .deitado .chat-head { padding: 12px 10px; }
  .deitado .chat-msgs { height: 140px; }
  .deitado body:has(.right.open) .chat:not(.fechado) { display: none; }
}

@media (max-width: 900px) { .modo-cheia { display: none; } }

/* Batalha da Bruma no celular deitado: alavanca num polegar, skills no outro */
.deitado .bt-pe { left: 0; right: 0; bottom: calc(12px + var(--sb, 0px)); transform: none; align-items: center; pointer-events: none; }
.deitado .bt-vida { width: 340px; height: 22px; }
.deitado .bt-vida span { line-height: 21px; }
.deitado .bt-sks { position: absolute; right: calc(18px + var(--sd, 0px)); bottom: 0; display: grid; grid-template-columns: repeat(3, 66px); gap: 11px; pointer-events: auto; }
.deitado .bt-sk { width: 66px; height: 66px; }
.deitado .bt-sk img { width: 42px; height: 42px; }
.deitado .bt-joy { width: 164px; height: 164px; }
.deitado .bt-mini { width: 112px; height: 112px; }
.deitado .bt-faixa.mini { bottom: 60px; }
.deitado .bt-alvo { left: auto; right: calc(146px + var(--sd, 0px)); top: 12px; transform: none; width: 220px; }      /* ao lado da placa: não cobre quem está em cima */
.deitado .bt-fim-box { width: min(760px, 94vw); display: grid; grid-template-columns: 250px 1fr; column-gap: 18px; align-items: center; padding: 12px 16px; }
.deitado .bt-fim-box h2, .deitado .bt-fim-box .end { grid-column: 1 / -1; }
.deitado .bt-fim-box canvas { grid-row: span 3; width: 250px; }
.deitado .bt-fim-box .wb-premio { margin: 2px 0; }
.deitado .bt-placar { grid-column: 2; max-height: 170px; margin: 4px 0; }
.deitado .bt-ficha { width: 290px; padding: 8px 12px; }
.deitado .bt-ats small { display: none; }
.deitado .bt-box .bt-jcena { grid-column: 1; width: 100%; align-self: start; }
.deitado .bt-jui { grid-column: 2; grid-row: 2 / 5; min-height: 0; max-height: calc(var(--alt) - 74px); overflow-y: auto; padding: 0 6px 3px 3px; scrollbar-color: #7a50b8 #140c10; overscroll-behavior: contain; }

/* segurar o dedo: a explicação que no PC aparece com o mouse */
.dica-toque { position: fixed; z-index: 500; max-width: min(340px, 90vw); padding: 8px 12px; font-size: 20px; line-height: 19px; color: var(--text); background: #1e1418;
  box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold), 0 6px 16px rgba(0, 0, 0, .5); pointer-events: none; animation: tin .12s steps(3); }

/* aviso para virar o celular */
.vire { position: fixed; inset: 0; z-index: 450; display: flex; overflow-y: auto; padding: 20px 16px; text-align: center;
  background: radial-gradient(ellipse at 50% 110%, #5a2a1a 0%, #2a141a 35%, #120c12 75%); }
.vire-box { width: min(360px, 100%); margin: auto; }
.vire h2 { font-size: 17px; color: var(--gold); margin: 22px 0 10px; text-shadow: 3px 3px 0 #6a2a10; }
.vire p { margin: 8px 0; font-size: 23px; }
.vire .vire-ajuda { font-size: 18px; color: var(--muted); }
.vire .vire-ir { width: calc(100% - 6px); margin: 12px 3px 16px; padding: 18px 8px; font-size: 13px; }
.vire-pe { margin-top: 10px; padding: 10px; border: 0; background: none; color: var(--blue); font: 18px var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vire-cena { height: 150px; display: grid; place-items: center; }
.vire-fone { position: relative; width: 76px; height: 136px; background: #3a2a30; box-shadow: 0 0 0 4px #000, inset 0 0 0 3px var(--hi), 0 0 26px rgba(255, 138, 58, .45); animation: vira 3s ease-in-out infinite; }
.vire-fone::before { content: ''; position: absolute; inset: 14px 8px; background: #2f7a3a; box-shadow: 0 0 0 2px #000, inset 0 0 0 4px #24602e; }
.vire-fone::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 14px; height: 4px; margin-left: -7px; background: var(--hi); }
.vire-fone u { position: absolute; z-index: 1; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px; background: var(--gold); box-shadow: 0 0 0 3px #000, 0 0 12px var(--gold); }
@keyframes vira { 0%, 20% { transform: rotate(0); } 50%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .vire-fone { animation: none; transform: rotate(-90deg); } }

/* celular deitado: duelo com a luta à esquerda e as ações à direita (cabe tudo sem rolar) */
@media (min-width: 901px) {
  .deitado .fight-box { display: grid; grid-template-columns: minmax(0, 1fr) 500px; column-gap: 14px; align-content: start; width: min(1060px, calc(100vw - var(--se) - var(--sd) - 20px)); max-height: calc(var(--alt) - 14px); padding: 8px 14px; }
  .deitado #fightTop { grid-column: 1 / -1; }
  .deitado #fightCanvas { width: min(100%, calc((var(--alt) - 170px) * 104 / 60)); align-self: start; margin: 10px auto 0; }
  .deitado #fightUi { min-width: 0; }
  .deitado .d-acoes { grid-template-columns: repeat(6, 1fr); gap: 9px 10px; margin: 8px 3px 4px; }
  .deitado .d-acao { grid-column: span 2; padding: 5px 4px; gap: 3px; }
  .deitado .d-acao img { width: 22px; height: 22px; }
  .deitado .d-acao small { line-height: 13px; }
  .deitado .d-press { min-height: 44px; }
  .deitado .frow { margin-top: 6px; }
  .deitado .d-acao.raio, .deitado .d-acao.explosao { grid-column: span 3; }
  .deitado .d-log { min-height: 54px; font-size: 17px; line-height: 17px; }
}

/* celular deitado: Chefe Mundial com a luta à esquerda e o resto rolando à direita */
@media (min-width: 901px) {
  .deitado .wb-box { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto auto auto 1fr; column-gap: 16px; width: min(1060px, calc(100vw - var(--se) - var(--sd) - 20px)); max-height: calc(var(--alt) - 14px); padding: 9px 14px; overflow: hidden; }
  .deitado .wb-top, .deitado .wb-vida { grid-column: 1 / -1; }
  .deitado #wbCanvas { grid-column: 1; width: min(100%, calc((var(--alt) - 182px) * 200 / 120)); margin: 0 auto; align-self: start; }
  .deitado .wb-luta { grid-column: 1; }
  .deitado #wbUi { grid-column: 2; grid-row: 3 / 5; min-height: 0; max-height: calc(var(--alt) - 106px); overflow-y: auto; padding: 0 6px 3px 3px; scrollbar-color: var(--hi) #140c10; overscroll-behavior: contain; }
  .deitado #wbUi > :first-child { margin-top: 0; }
  .deitado .wb-cols { grid-template-columns: 1fr; }
}
/* botões pequenos: área maior para o dedo */
.cel .btn.xs { min-width: 34px; min-height: 32px; }
.cel .top .btn.xs { min-height: 34px; }
.cel #drawerClose, .cel .wb-top .btn.xs { min-width: 46px; min-height: 36px; margin: 0 3px; }

/* celular deitado: painéis do Santuário na altura toda */
@media (min-width: 901px) {
  .deitado .st-topo { left: calc(var(--m) + var(--se)); right: calc(var(--m) + var(--sd)); }
  .deitado .st-pe { left: calc(var(--m) + var(--se)); right: calc(var(--m) + var(--sd)); bottom: calc(10px + var(--sb)); }
  .deitado .st-log { left: calc(var(--m) + var(--se)); }
  .deitado .com-painel .st-topo, .deitado .com-painel .st-pe { right: calc(386px + var(--sd)); }
  .deitado .st-painel { top: 10px; right: calc(var(--m) + var(--sd)); bottom: calc(10px + var(--sb)); }
  .deitado .st-obra { left: calc(var(--m) + var(--se)); right: calc(386px + var(--sd)); }
  .deitado .st-b { min-height: 40px; }
  .deitado .st-log { max-height: 96px; }
}

/* celular deitado: a barra de cima cabe mesmo com números grandes e nome comprido */
@media (min-width: 901px) {
  .deitado .top { gap: 12px; padding: 0 calc(var(--m) + var(--sd)) 0 calc(var(--m) + var(--se)); }
  .deitado .res { min-width: 0; }
  /* as barras de vida e de abates ocupam o vão que sobrava no meio */
  .deitado .top .spacer { display: none; }
  .deitado .top .bars { flex: 1 1 96px; min-width: 96px; margin: 0 6px; }
  .deitado .conta-btn { display: block; max-width: 104px; min-width: 62px; flex: 0 1 auto; }
  .deitado .conta-btn .dot { display: inline-block; margin-right: 6px; }
  .deitado .settings-btn { flex: none; }
  .deitado .stagebox { flex: 0 1 auto; min-width: 0; }
  .deitado .stage-info { min-width: 100px; max-width: 150px; }
  .deitado .zone-name { overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 901px) {
  .deitado .top .goal { display: block; position: fixed; left: calc(var(--m) + var(--se) + 118px); top: calc(var(--topH) + 10px); max-width: 190px; overflow: hidden; text-overflow: ellipsis; }   /* o objetivo fica ao lado dos modos */
  .imersivo .goal { display: none; }
}

/* celular deitado: janelas cabem na altura visível e ficam longe do entalhe */
@media (min-width: 901px) {
  .deitado .modal { padding: 0 calc(6px + var(--sd)) 0 calc(6px + var(--se)); }
  .deitado .modal-box { max-height: calc(var(--alt) - 24px); }
  .deitado .mkt-box { max-height: calc(var(--alt) - 20px); }
  .deitado .auth { padding-left: calc(12px + var(--se)); padding-right: calc(12px + var(--sd)); }
}
/* iPhone: chama para ver como jogar em tela cheia */
.modo-cheia.chama { animation: cheiaChama 1.4s ease-in-out infinite; }
@keyframes cheiaChama { 50% { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #fff4c0, 0 0 14px 4px #ffd060; filter: brightness(1.25); } }
@media (prefers-reduced-motion: reduce) { .modo-cheia.chama { animation: none; } }

/* celular deitado: o cartão do evento fica acima do mago, e os talentos têm o céu à esquerda e as escolhas à direita */
@media (min-width: 901px) {
  .deitado .ev { top: calc(var(--topH) + 8px); padding: 5px 8px 10px; }
  .deitado .ev.escolha { width: 520px; }
  .deitado .ev-topo img { width: 34px; height: 34px; }
  .deitado .ev.escolha .ev-topo p { display: none; }
  .deitado .ev.escolha .ev-topo img { width: 26px; height: 26px; }
  .deitado .ev-ops { margin: 5px 2px 2px; }
  .deitado .ev-ops button { display: grid; grid-template-columns: 26px 1fr; gap: 1px 6px; align-content: start; align-items: center; padding: 6px; text-align: left; }
  .deitado .ev-ops small { grid-column: 1 / -1; }
  .deitado .ev-premio { margin-top: 3px; }
  .deitado .drawer:has(.tl-ceu) { width: min(660px, calc(100vw - 440px)); }
  .deitado .tab-body:has(.tl-ceu) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 6px; align-items: start; }
  .deitado .tl-modos.ceu { margin: 0 3px 6px; grid-row: 1; grid-column: 1; }
  .deitado .tl-modos.ceu .fj-modo { min-height: 32px; }
  .deitado .tl-ceu { grid-row: 2; grid-column: 1; }
  .deitado .tl-corpo { grid-row: 1 / 3; grid-column: 2; margin-top: 3px; }
  .deitado .tl-carta { min-height: 84px; }
  .deitado .tl-faz { margin-top: 10px; font-size: 18px; }
}
