:root {
  --bg: #0d0f17;
  --panel: #171a26;
  --panel-2: #1e2232;
  --line: #2c3147;
  --line-2: #3a4160;
  --text: #dfe3f0;
  --muted: #8a91aa;
  --gold: #e6b450;
  --gold-2: #b98a2e;
  --accent: #6b8cff;
  --hp: #d9443a;
  --mana: #3d6be0;
  --exp: #e0a030;
  --ok: #57c06a;
  --bad: #e2574c;
  --radius: 8px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input, select { font: inherit; color: inherit; }
#app { height: 100%; }

.btn {
  background: linear-gradient(#262b40, #1c2032);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: #5a6390; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: linear-gradient(#c79a3c, #9c7426); border-color: #e6b450; color: #1a1306; font-weight: 600; }
.btn.primary:hover { background: linear-gradient(#d8aa48, #a97e2b); }
.btn.danger { border-color: #8a3a34; color: #f1a59d; }
.btn.small { padding: 4px 9px; font-size: 12px; }
.btn.on { border-color: var(--gold); color: var(--gold); background: #2a2616; }

input[type=text], input[type=email], input[type=password], input[type=number], select {
  width: 100%;
  background: #10131d;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 8px 10px;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }
label { display: block; color: var(--muted); font-size: 12px; margin: 10px 0 4px; }

.center-screen {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(1200px 600px at 50% -10%, #1c2340 0%, var(--bg) 60%);
}
.card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 60px #0008;
}
.card.wide { max-width: 720px; }
.logo { font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 700; letter-spacing: .5px; color: var(--gold); text-align: center; text-shadow: 0 2px 0 #5a3c0c; margin: 0; }
.logo small { display: block; font-size: 12px; letter-spacing: 3px; color: var(--muted); text-shadow: none; font-family: system-ui, sans-serif; font-weight: 500; margin-top: 2px; }
.tabs { display: flex; gap: 6px; margin: 18px 0 6px; }
.tabs .btn { flex: 1; }
.error { color: var(--bad); min-height: 20px; font-size: 13px; margin-top: 10px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

.chars { display: grid; gap: 10px; margin: 16px 0; }
.char {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.char .avatar { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; color: #111; }
.char .name { font-weight: 600; font-size: 16px; }
.voc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.voc-grid .btn { padding: 10px 4px; }
details summary { cursor: pointer; color: var(--muted); }

/* ---------- jogo ---------- */
.game { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  background: #10131d; border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.topbar .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .who .avatar { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; font-weight: 600; color: #111; flex: none; }
.topbar .who b { display: block; }
.topbar .who span { font-size: 12px; color: var(--muted); }
.pill { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; white-space: nowrap; }
.pill.gold { color: var(--gold); }
.pill.bonus { color: #9ad08a; }
.online { color: var(--muted); font-size: 12px; white-space: nowrap; }
.online::before { content: "●"; color: var(--ok); margin-right: 5px; }

/* HUD menor, para o mapa ficar proporcional como no Tibia (janelas: ver HUD_SCALE em ui.ts) */
.topbar, .float-panel, .win-head, .win-body, .dock { zoom: .8; }
/* item dentro das janelas: zoom 1,25 desfaz o .8, então o item de 32 px fica com cada pixel inteiro (sem quebrar) */
.win-body i.item { zoom: 1.25; }
.win-body .slot, .win-body .cell { width: 42px; height: 42px; }
.win-body .equip { grid-template-columns: repeat(3, 42px); }
.win-body .bag { grid-template-columns: repeat(5, 42px); max-height: 186px; }

.stage { position: relative; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }

.float-panel {
  position: absolute; background: #121520e6; border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(4px); box-shadow: 0 8px 24px #0006;
}
.float-panel h4 { margin: 0; padding: 7px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #aab3d6; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.analyzer { left: 10px; top: 10px; width: 236px; font-size: 12px; }
.analyzer .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 8px 10px; }
.analyzer .grid div span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.analyzer .grid div b { font-size: 14px; }
.analyzer .kills { border-top: 1px solid var(--line); padding: 6px 10px 8px; max-height: 140px; overflow: auto; }
.analyzer .kills div { display: flex; justify-content: space-between; color: #c8cde0; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }

.chat { left: 10px; bottom: 10px; width: min(360px, calc(100% - 20px)); height: 190px; display: flex; flex-direction: column; }
.chat .log { flex: 1; overflow-y: auto; padding: 6px 10px; font-size: 12.5px; }
.chat .log .sys { color: #e6c870; }
.chat .log .from { color: #7fb3ff; }
.chat .log.server { font-family: var(--hud-font); font-size: 11.5px; }
.chat .log.server .loot { color: #00f000; }
.chat .log.server .advance { color: #ffffff; }
.chat .log.server .info { color: #f0f0f0; }
.chat .log.server .look { color: #3fdc3f; }
.chat h4.tabs { padding: 0; gap: 0; }
.chat .tab { background: none; border: 0; border-right: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 7px 12px; cursor: pointer; }
.chat .tab.on { color: #fff; background: #ffffff10; }
.chat .tab.new { color: #ff9c4a; }
.skills { right: 10px; top: 10px; width: 210px; font-size: 12px; }
.skills .sklist { padding: 6px 10px 8px; display: grid; gap: 5px; }
.skills .sk { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; }
.skills .sk span { color: #c8cde0; }
.skills .sk.eq b { font-size: 11px; color: var(--muted); font-weight: normal; text-align: right; }
.skills .skbar { grid-column: 1 / -1; height: 3px; background: #000; margin-top: 2px; }
.skills .skbar i { display: block; height: 100%; background: #c03030; }
.center-msg { position: absolute; left: 50%; top: 38%; transform: translateX(-50%); color: #fff; font: 600 13px var(--hud-font); text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; pointer-events: none; opacity: 0; text-align: center; white-space: nowrap; }
.center-msg.show { animation: centerMsg 3s ease forwards; }
@keyframes centerMsg { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.chat form { display: flex; gap: 6px; padding: 6px; border-top: 1px solid var(--line); }
.chat input { padding: 5px 8px; }

.hud {
  left: 50%; bottom: 10px; transform: translateX(-50%); width: min(520px, calc(100% - 20px));
  padding: 8px 10px; display: grid; gap: 6px;
}
.bar { position: relative; height: 16px; background: #0b0d14; border: 1px solid #2a2f44; border-radius: 4px; overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; display: block; transition: width .2s; }
.bar > em { position: absolute; inset: 0; font-style: normal; font-size: 11px; display: grid; place-items: center; text-shadow: 0 1px 1px #000; }
.bar.hp > i { background: linear-gradient(#e85a4f, #a8291f); }
.bar.mana > i { background: linear-gradient(#5b86f0, #2846a8); }
.bar.exp { height: 6px; }
.bar.exp > i { background: linear-gradient(#f0c050, #b87a1a); }
.hud .row select { width: auto; padding: 4px 8px; font-size: 12px; }

.city { position: absolute; inset: 0; pointer-events: none; }
.city > * { pointer-events: auto; }
.city .place {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); text-align: center;
  background: #0d0f17cc; border: 1px solid var(--line); border-radius: 10px; padding: 6px 18px;
}
.city .place b { display: block; font-family: Georgia, serif; color: var(--gold); font-size: 20px; letter-spacing: 1px; }
.city .place small { color: var(--muted); font-size: 11px; }
.city .services {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; gap: 8px; background: #0d0f17d9; border: 1px solid var(--line); border-radius: 12px; padding: 8px;
}
.svc {
  position: relative; display: grid; justify-items: center; gap: 3px; min-width: 76px; padding: 8px 6px;
  background: linear-gradient(#20253a, #171b2b); border: 1px solid #2f3652; border-radius: 9px; color: var(--text); cursor: pointer;
}
.svc:hover { border-color: var(--gold); }
.svc .ic { font-size: 22px; line-height: 1; }
.svc small { font-size: 11px; color: #c8cde0; white-space: nowrap; }
.svc em { position: absolute; top: -6px; right: -6px; background: var(--gold); color: #1a1306; font-style: normal; font-size: 10px; font-weight: 600; border-radius: 999px; padding: 1px 6px; }

/* barra superior estilo Huntera */
.topbar .who { cursor: pointer; }
.topbar .stat { display: grid; line-height: 1.1; padding: 3px 10px; border-left: 1px solid var(--line); }
.topbar .stat small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.topbar .stat b { font-size: 14px; }
.topbar .stat b.bonus { color: #9ad08a; }
.topbar .stat b.gold { color: var(--gold); }
.navbar { display: flex; gap: 2px; }
.nav {
  display: grid; justify-items: center; gap: 2px; background: none; border: 1px solid transparent; border-radius: 8px;
  color: var(--text); padding: 4px 8px; cursor: pointer; min-width: 58px;
}
.nav:hover { background: #ffffff0d; border-color: var(--line); }
.nav.primary { border-color: #e6b45066; background: #2a2616; }
.nav .ic { font-size: 18px; line-height: 1; }
.nav small { font-size: 10px; color: #c8cde0; }
.charwin { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-width: min(640px, 80vw); }
.charwin h5 { margin: 12px 0 6px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }
.charwin .kv { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 3px 0; border-bottom: 1px solid #ffffff08; font-size: 13px; }
.charwin .kv span { color: var(--muted); }
.charwin .skbar { grid-column: 1 / -1; height: 3px; background: #000; margin-top: 3px; }
.charwin .skbar i { display: block; height: 100%; background: #c03030; }
@media (max-width: 980px) {
  .nav small { display: none; }
  .nav { min-width: 0; padding: 4px 6px; }
  .city .services { flex-wrap: wrap; justify-content: center; width: calc(100% - 24px); bottom: 140px; }
  .svc { min-width: 64px; }
  .charwin { grid-template-columns: 1fr; }
}

/* ---------- janelas ---------- */
.modal-back { position: fixed; inset: 0; background: #0009; display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal {
  width: min(900px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 30px 80px #000a;
}
.modal header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.modal header h3 { margin: 0; font-size: 16px; }
.modal .body { padding: 14px 16px; overflow: auto; }
.modal footer { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.x { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; margin-left: auto; }

.hunt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.hunt {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 6px; min-height: 130px;
}
.hunt:hover { border-color: #56608c; }
.hunt.locked { opacity: .55; }
.hunt .num { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); }
.hunt .title { font-weight: 600; font-size: 15px; }
.hunt .mobs { font-size: 12px; color: #aeb5cf; }
.hunt .rec { margin-top: auto; font-size: 12px; color: var(--muted); display: flex; gap: 10px; }
.hunt .rec b { color: var(--text); font-weight: 600; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.mob-chip { display: inline-flex; align-items: center; gap: 5px; background: #12151f; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px 2px 3px; font-size: 12px; }
.mob-chip i { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 600; color: #111; }

.prep { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prep h5 { margin: 0 0 8px; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.pulls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pulls .btn { padding: 10px 4px; }
.pulls small { display: block; color: var(--muted); font-size: 11px; }
table.stats { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.stats th, table.stats td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); }
table.stats th { color: var(--muted); font-weight: 500; font-size: 11px; text-transform: uppercase; }
table.stats td.r, table.stats th.r { text-align: right; }

.progress { height: 6px; background: #0b0d14; border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #6b8cff, #9ab0ff); }
.progress.done i { background: linear-gradient(90deg, #4fa85d, #7ed08a); }

.summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.summary div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.summary span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.summary b { font-size: 18px; }

.toast { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); background: #3a1f1f; border: 1px solid #8a3a34; color: #ffd0cb; padding: 8px 14px; border-radius: 8px; z-index: 60; }

@media (max-width: 760px) {
  .analyzer { width: 190px; }
  .analyzer .kills { display: none; }
  .chat { height: 120px; bottom: 150px; }
  .skills { display: none; }
  .prep { grid-template-columns: 1fr; }
  .voc-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar .hide-sm { display: none; }
}

/* ================= interface estilo Huntera (janelas, barra de ações, inventário) ================= */
.win {
  position: absolute; z-index: 5; background: linear-gradient(#161a28f2, #11141ff2);
  border: 1px solid #3a3424; border-radius: 4px; box-shadow: 0 6px 18px #000a, inset 0 0 0 1px #00000080;
  font-size: 12px; user-select: none;
}
.win.off { display: none !important; }
.win-head {
  display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 9px; cursor: move;
  background: linear-gradient(#2a2619, #1c1a13); border-bottom: 1px solid #3a3424; border-radius: 4px 4px 0 0;
  color: #d9c08a; font-size: 11px; font-weight: 600; letter-spacing: .3px;
}
.win-btn { background: none; border: 1px solid #4a4230; color: #d9c08a; width: 18px; height: 18px; line-height: 14px; border-radius: 3px; cursor: pointer; padding: 0; font-size: 12px; }
.win-btn:hover { background: #3a3424; }
.win.min .win-body { display: none; }
.win-body { padding: 8px; }
.win .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.win .grid div span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.win .grid div b { font-size: 14px; }
.win .kills { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 6px; max-height: 140px; overflow: auto; }
.win .kills div { display: flex; justify-content: space-between; color: #c8cde0; }
.win .empty { margin: 4px 0 8px; font-style: italic; text-align: center; }
.win .sklist { display: grid; gap: 5px; }
.win .sk { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; }
.win .sk span { color: #c8cde0; }
.win .skbar { grid-column: 1 / -1; height: 3px; background: #000; margin-top: 2px; }
.win .skbar i { display: block; height: 100%; background: #c03030; }

/* item do Tibia */
.item { display: inline-block; position: relative; background-repeat: no-repeat; image-rendering: pixelated; flex: none; }
.item b { position: absolute; right: 0; bottom: -2px; font: 600 10px var(--hud-font); color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }

/* inventário */
.equip { display: grid; grid-template-columns: repeat(3, 38px); gap: 4px; justify-content: center; margin-bottom: 8px; }
.slot, .cell {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: radial-gradient(#1d2131, #0d0f17); border: 1px solid #2c3248; border-radius: 3px; box-shadow: inset 0 0 6px #000;
}
.slot small { font-size: 8px; color: #4b536f; text-align: center; line-height: 1; }
.slot { position: relative; }
.guide-ring { position: fixed; z-index: 99990; border: 3px solid #ffd34d; border-radius: 8px; box-shadow: 0 0 0 9999px #000a; pointer-events: none; animation: guide-blink .8s ease-in-out infinite; }
.guide-ring.dark { inset: 0; border: 0; border-radius: 0; background: #000a; box-shadow: none; animation: none; }
.guide-tip { position: fixed; z-index: 99991; max-width: 320px; padding: 10px 14px; background: #ffd34d; color: #1a1306; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1.3; pointer-events: none; }
@keyframes guide-blink { 50% { border-color: #fff; box-shadow: 0 0 0 9999px #000a, 0 0 18px 6px #ffd34d; } }
.tutorial { position: fixed; left: 12px; top: 64px; z-index: 40; width: 260px; display: flex; flex-direction: column; gap: 6px; padding: 12px; background: #11141ee6; border: 1px solid var(--gold); border-radius: 8px; font-size: 13px; }
.tutorial ol { margin: 0; padding-left: 18px; color: #8a91a8; }
.tutorial li.ok { color: var(--ok); text-decoration: line-through; }
.tutorial li.now { color: #fff; font-weight: 600; }
.tutorial p { margin: 0; }
.market { display: flex; gap: 12px; min-height: 420px; }
.market-side { width: 240px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.market-list { flex: 1; overflow: auto; max-height: 460px; display: flex; flex-direction: column; gap: 2px; }
.market-pick { display: flex; align-items: center; gap: 6px; padding: 3px 6px; background: none; border: 1px solid transparent; border-radius: 6px; color: inherit; text-align: left; cursor: pointer; }
.market-pick.on, .market-pick:hover { border-color: var(--gold); }
.market-pick span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.market-main h4 { margin: 8px 0 0; }
.market-head, .market-form, .market-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.market-form input { width: 110px; }
.market-form label { display: flex; flex-direction: column; font-size: 12px; }
.market-row { padding: 5px 8px; border: 1px solid #39405a; border-radius: 6px; }
.market-row span { flex: 1; min-width: 80px; }
.win-party .win-body { display: flex; flex-direction: column; gap: 8px; }
.win-party p { margin: 0; font-size: 12px; }
.pt-member { display: flex; flex-direction: column; gap: 3px; }
.pt-top { display: flex; align-items: center; gap: 6px; }
.pt-bar { height: 6px; background: #1a1d29; border-radius: 3px; overflow: hidden; flex: none; }
.pt-stamina .pt-bar { flex: 1; }
.pt-bar i { display: block; height: 100%; }
.pt-bar.hp i { background: #d9534f; }
.pt-bar.mana i { background: #4a7bd9; }
.pt-bar.stamina i { background: #3f9d7a; }
.pt-stamina { display: flex; align-items: center; gap: 6px; }
.pt-invite { display: flex; gap: 6px; }
.pt-invite input { flex: 1; min-width: 0; }
.pt-dps { color: #e8a33d; }
.pt-hps { color: #7fd17f; }
.pt-share { font-size: 12px; color: #e0a050; margin: 4px 0; }
.pt-share.on { color: #7fd17f; }
.pt-row { display: flex; gap: 6px; }
.pt-row .btn { flex: 1; }
.dock-pair { display: inline-flex; gap: 2px; }
.dock-more { min-width: 26px; padding: 0 6px; }
.dock-menu { position: fixed; z-index: 60; min-width: 240px; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: #161a28; border: 1px solid #39405a; border-radius: 8px; box-shadow: 0 6px 20px #0008; }
.dock-menu b { color: #8fa8ff; padding-bottom: 6px; border-bottom: 1px solid #2a3046; }
.dock-menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dock-menu-row:hover { color: #fff; }
.dock-menu small { font-style: italic; }
.bless { display: flex; flex-direction: column; gap: 10px; width: min(580px, 86vw); }
.bless p { margin: 0; }
.bless-intro { color: #c9cfe0; font-size: 13px; line-height: 1.45; }
.bless-now { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: #141a28; border: 1px solid #39405a; border-radius: 6px; }
.bless-now b { font-size: 14px; }
.bless-now small { color: #9aa3ba; }
.bless-loss { color: #7fa8ff; font-size: 13px; }
.bless-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.bless-card { display: flex; align-items: flex-start; gap: 10px; padding: 8px; background: #1a2030; border: 1px solid #39405a; border-radius: 6px; }
.bless-card.on { border-color: #3e5a46; }
.bless-card > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bless-card b { font-size: 13px; color: #e6e9f2; }
.bless-card small { color: #8e97ae; font-size: 12px; line-height: 1.3; }
.bless-card .btn { align-self: flex-start; margin-top: 4px; }
.bless-ico { flex: none; width: 64px; height: 64px; background: #0e121c url(/assets/tibia/ui/images/blessings/blessings-icons.png) no-repeat; border: 1px solid #39405a; border-radius: 4px; }
.bless-card:not(.on) .bless-ico { filter: grayscale(.85) brightness(.75); }
.bless-ok { margin-top: 4px; color: #7bd88f; font-weight: 600; font-size: 12px; letter-spacing: .5px; }
.bless-foot { display: flex; justify-content: flex-end; }
.wear-left { position: absolute; right: 1px; bottom: 0; font-size: 9px; color: #fff; text-shadow: 0 0 2px #000, 0 1px 1px #000; pointer-events: none; }
.slot.ghost { visibility: hidden; }
.bag { display: grid; grid-template-columns: repeat(5, 38px); gap: 3px; justify-content: center; max-height: 170px; overflow-y: auto; }
.invinfo { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 2px 0; color: var(--muted); }
.invinfo b { color: var(--text); }
.invinfo.gold { justify-content: flex-end; }
.invinfo.gold b { color: var(--gold); }
.win h6 { margin: 8px 0 5px; font-size: 10px; color: #d9c08a; text-transform: uppercase; letter-spacing: 1px; }
.win h6 small { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: normal; }

/* barra de baixo */
.dock { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 6; display: grid; justify-items: center; gap: 4px; max-width: calc(100% - 16px); }
.dock-tabs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.dock-tabs button {
  font: 600 11px Georgia, serif; letter-spacing: 1px; text-transform: uppercase; color: #d9c08a; cursor: pointer;
  background: linear-gradient(#2a2619, #18160f); border: 1px solid #4a4230; border-radius: 3px; padding: 5px 12px;
}
.dock-tabs button:hover { border-color: #b8954c; color: #f3dca6; }
.dock-tabs button.danger { color: #f1a59d; border-color: #6e3a34; }
.dock-tabs button.gold { color: #1a1306; background: linear-gradient(#d8aa48, #a97e2b); border-color: #e6b450; }
.actionbar {
  display: flex; gap: 8px; align-items: stretch; padding: 6px; border-radius: 4px;
  background: linear-gradient(#161a28f2, #0f121bf2); border: 1px solid #3a3424; box-shadow: 0 6px 18px #000a;
}
.vitals { display: grid; gap: 4px; align-content: center; width: 130px; }
.vitals .bar { height: 15px; }
.actslots { display: grid; grid-template-columns: repeat(10, 36px); gap: 3px; }
.act {
  position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 3px;
  background: radial-gradient(#1d2131, #0b0d14); border: 1px solid #2c3248; box-shadow: inset 0 0 6px #000;
}
.act.empty::after { content: '+'; color: #2f3650; font-size: 16px; }
.act.locked { opacity: .35; filter: grayscale(1); }
.act em { position: absolute; left: 1px; right: 1px; bottom: 1px; font: 600 7px var(--hud-font); color: #9ad08a; text-align: center; font-style: normal; text-shadow: 1px 1px 0 #000; }
.spell { font: 600 8px var(--hud-font); color: #fff; text-align: center; line-height: 1; padding: 2px; word-break: break-word; margin-bottom: 6px; }
.spell.heal { color: #8fe08a; }
.spell.area { color: #ffb36b; }
.spell.single { color: #ff9a8f; }
.controls { display: grid; gap: 4px; align-content: center; min-width: 190px; }
.ctl { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 6px; }
.ctl small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.ctl select { padding: 2px 6px; font-size: 11px; }
.ctl.row { display: flex; gap: 3px; }
.stance { background: #1a1e2c; border: 1px solid #2c3248; color: var(--text); border-radius: 3px; height: 24px; min-width: 26px; cursor: pointer; font-size: 13px; }
.stance.wide { font-size: 10px; padding: 0 6px; }
.stance.on { border-color: #e6b450; background: #2a2616; }
.dist { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.dist button { background: #1a1e2c; border: 1px solid #2c3248; color: var(--text); width: 20px; height: 24px; border-radius: 3px; cursor: pointer; }
.dist b { min-width: 14px; text-align: center; }
.chat .log.combat .hurt { color: #ff6b5b; }
.chat .log.combat .hit { color: #e6e6e6; }
.chat { z-index: 4; }
@media (max-width: 1180px) {
  .actslots { grid-template-columns: repeat(10, 30px); }
  .act { width: 30px; height: 30px; }
  .vitals { width: 100px; }
}
@media (max-width: 980px) {
  .controls, .vitals { display: none; }
  .win { transform: scale(.9); transform-origin: top left; }
}
.chat { width: 280px; height: 200px; }
.dock { left: 298px; right: 8px; transform: none; }
@media (max-width: 980px) { .dock { left: 8px; bottom: 140px; } .chat { width: calc(100% - 20px); } }
.bag { max-height: 124px; }
/* conversa com NPC (estilo Tibia) */
.npc-talk { max-height: 220px; overflow-y: auto; font: 12px var(--hud-font); line-height: 1.5; margin-bottom: 6px; }
.npc-talk p { margin: 0 0 6px; }
.npc-talk p.npc { color: #5fd8f0; }
.npc-talk p.me { color: #f0f000; }
.npc-talk p b { color: inherit; }
.npc-talk .kw { color: #8fb3ff; text-decoration: underline; cursor: pointer; }
.npc-talk p.npc .kw { color: #a0c4ff; font-weight: 600; }
.city .place .next { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 5px; font-size: 12px; color: #d9c08a; }

/* ===================== Cyclopedia e Despachar loot ===================== */
.creature { display: inline-grid; place-items: center; background-repeat: no-repeat; image-rendering: pixelated; flex: none; }
.creature.none { background: #262b40; border-radius: 6px; color: var(--muted); font-weight: 600; }
.item-link { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.item-link:hover { color: var(--gold); }
.cyclo-back { position: fixed; inset: 0; background: #05060bcc; display: grid; place-items: center; padding: 16px; z-index: 60; animation: cy-fade .12s ease-out; }
@keyframes cy-fade { from { opacity: 0; } to { opacity: 1; } }
.cyclo {
  width: min(980px, 100%); height: min(680px, 100%); display: flex; flex-direction: column;
  background: linear-gradient(#1a1e2d, #141724); border: 1px solid #3b4262; border-radius: 10px;
  box-shadow: 0 0 0 1px #0008, 0 24px 60px #000c, inset 0 1px 0 #ffffff10; overflow: hidden;
}
.cy-head { display: flex; align-items: center; padding: 8px 12px; background: linear-gradient(#22283b, #1a1f2e); border-bottom: 1px solid #343b58; }
.cy-title b { color: #a8b8ff; letter-spacing: 1.5px; font-size: 13px; }
.cy-title small { color: var(--muted); margin-left: 10px; font-size: 11px; }
.cy-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 12px; border-bottom: 1px solid #2a3047; }
.cy-tab {
  padding: 10px; border-radius: 6px; cursor: pointer; letter-spacing: 1px; font-weight: 600; font-size: 13px;
  background: linear-gradient(#232840, #1b1f30); border: 1px solid #353c5a; color: #b9c0da; text-transform: uppercase;
}
.cy-tab:hover { border-color: #5865a0; color: #fff; }
.cy-tab.on { border-color: #6b8cff; color: #fff; box-shadow: inset 0 0 0 1px #6b8cff55, 0 0 12px #6b8cff33; background: linear-gradient(#2b3460, #20264a); }
.cy-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cy-loading, .cy-empty { color: var(--muted); text-align: center; padding: 40px 0; margin: 0; }
.cy-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 230px 1fr; }
.cy-side { border-right: 1px solid #2a3047; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 0; background: #12151f; }
.cy-input { width: 100%; padding: 7px 10px; border-radius: 6px; border: 1px solid #353c5a; background: #0e111a; outline: none; }
.cy-input:focus { border-color: #6b8cff; }
.cy-cats { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 2px; }
.cy-cat { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; border: 1px solid transparent; background: none; cursor: pointer; text-align: left; color: #c9cfe4; }
.cy-cat span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cy-cat small { color: var(--muted); font-variant-numeric: tabular-nums; }
.cy-cat:hover { background: #1c2133; }
.cy-cat.on { background: #2a2616; border-color: var(--gold-2); color: #fff; }
.cy-all { width: 24px; height: 24px; display: grid; place-items: center; color: var(--gold); font-style: normal; }
.cy-total { text-align: center; }
.cy-main { min-height: 0; display: flex; flex-direction: column; padding: 10px 12px; gap: 8px; }
.cy-toolbar { display: flex; align-items: center; gap: 8px; }
.cy-toolbar label { white-space: nowrap; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.cy-toolbar .cy-input { width: 220px; }
.cy-select { padding: 6px 8px; border-radius: 6px; border: 1px solid #353c5a; background: #0e111a; }
.cy-select.small { padding: 3px 6px; font-size: 12px; width: 100%; }
.cy-view { width: 32px; height: 30px; border-radius: 6px; border: 1px solid #353c5a; background: #1b1f30; cursor: pointer; color: #b9c0da; }
.cy-view.on { border-color: #6b8cff; color: #fff; }
.cy-list { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.cy-list.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); align-content: start; }
.cy-card {
  display: grid; grid-template-columns: 56px 1fr 190px; gap: 12px; align-items: center; padding: 8px 10px;
  border: 1px solid #2c3249; border-radius: 8px; background: linear-gradient(#1b2030, #171b29); transition: border-color .15s, transform .15s;
}
.cy-card:hover { border-color: #46507a; }
.cy-icon, .cy-bigicon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 8px; background: radial-gradient(#2a3150, #151927); border: 1px solid #353c5a; cursor: pointer; padding: 0; }
.cy-icon:hover { border-color: var(--gold-2); }
.cy-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cy-name { background: none; border: 0; padding: 0; text-align: left; font-weight: 600; color: #f1f3fb; cursor: pointer; font-size: 14px; }
.cy-name:hover { color: var(--gold); }
.cy-cat-label { color: #8fa6ff; font-size: 12px; }
.cy-desc { color: #9aa0b4; font-size: 12px; line-height: 1.35; margin: 2px 0 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.chip { padding: 2px 7px; border-radius: 4px; background: #0f121c; border: 1px solid #30364f; font-size: 12px; color: #aab2cc; white-space: nowrap; }
.chip b { color: #fff; }
.cy-drop { margin-top: 3px; }
.cy-drop small { font-size: 10px; letter-spacing: .5px; }
.cy-drop .row { flex-wrap: wrap; gap: 5px; }
.mob { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 2px; border-radius: 12px; background: #11141f; border: 1px solid #30364f; color: #d5daea; font-size: 12px; cursor: pointer; }
.mob:hover { border-color: #6b8cff; }
.cy-right { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.cy-loot { display: flex; flex-direction: column; gap: 3px; }
.cy-check { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; }
.cy-check input { accent-color: var(--gold); }
.cy-meta { display: flex; justify-content: space-between; gap: 8px; color: #aab2cc; font-size: 12px; }
.cy-meta.big { justify-content: flex-start; gap: 18px; font-size: 13px; margin-top: 8px; }
.cy-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 8px; border: 1px solid #2c3249; background: #171b29; cursor: pointer; color: #c9cfe4; }
.cy-tile:hover { border-color: var(--gold-2); }
.cy-tile span { font-size: 11px; text-align: center; line-height: 1.2; max-height: 2.4em; overflow: hidden; }
.cy-foot { display: flex; align-items: center; gap: 10px; border-top: 1px solid #2a3047; padding-top: 8px; }
.cy-foot .cy-input { width: 180px; margin-left: auto; }
.cy-pager { display: flex; gap: 3px; align-items: center; }
.pg { min-width: 26px; height: 26px; border-radius: 4px; border: 1px solid #353c5a; background: #1b1f30; cursor: pointer; font-size: 12px; }
.pg.on { border-color: #6b8cff; background: #2b3460; color: #fff; }
.pg:disabled:not(.on) { opacity: .35; cursor: default; }
/* detalhe */
.cy-detail { flex: 1; min-height: 0; overflow: auto; padding: 12px 16px; }
.cy-back { margin-bottom: 10px; }
.cy-hero { display: grid; grid-template-columns: auto 1fr 200px; gap: 16px; align-items: start; padding: 14px; border-radius: 10px; border: 1px solid #2c3249; background: linear-gradient(135deg, #1e2438, #161a28); }
.cy-hero h2 { margin: 0 0 2px; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.cy-hero p { margin: 8px 0 0; }
.cy-bigicon { width: 88px; height: 88px; cursor: default; }
.cy-bigicon.mon { width: 112px; height: 112px; }
.cy-detail h4 { margin: 16px 0 8px; color: #a8b8ff; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.cy-droplist, .cy-loottable { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.cy-droprow, .cy-lootrow { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; border: 1px solid #2c3249; background: #171b29; color: #dfe3f0; cursor: pointer; text-align: left; }
.cy-droprow span, .cy-lootrow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cy-droprow:hover, .cy-lootrow:hover { border-color: #6b8cff; }
.r-common { color: #c9cfe4; } .r-uncommon { color: #7ed08a; } .r-semi { color: #6fb6ff; } .r-rare { color: #c07aff; } .r-vrare { color: #ffb347; }
/* bestiary */
.cy-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; border-radius: 8px; background: #1a1e2d; border: 1px solid #2c3249; }
.cy-summary div { display: flex; flex-direction: column; }
.cy-summary b { font-size: 15px; }
.cy-hint { margin: 0; font-size: 12px; }
.cy-mgrid { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; align-content: start; padding-right: 4px; }
.cy-mcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 8px; border-radius: 10px; border: 1px solid #2c3249; background: linear-gradient(#1d2234, #161a28); cursor: pointer; color: #e6e9f5; transition: border-color .15s, transform .15s; }
.cy-mcard:hover { border-color: #6b8cff; transform: translateY(-1px); }
.cy-mcard.done { border-color: #3c6b45; background: linear-gradient(#1b2a22, #151d1a); }
.cy-mcard b { font-size: 13px; text-align: center; }
.cy-mcard .cy-reached { color: #7ed08a; font-weight: 600; }
.cy-mcard .progress { width: 100%; }
.cy-stars { position: absolute; top: 6px; left: 8px; color: var(--gold); font-size: 10px; letter-spacing: -1px; }
.cy-done { position: absolute; top: 5px; right: 8px; color: #7ed08a; font-weight: 800; }
.cy-done.inline { position: static; font-size: 16px; }
.cy-phases { display: flex; gap: 4px; }
.cy-phases i { width: 18px; height: 4px; border-radius: 2px; background: #2c3249; }
.cy-phases i.on { background: #7ed08a; }
.cy-phaselist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.cy-phase { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 8px; border: 1px solid #2c3249; background: #12151f; font-size: 12px; }
.cy-phase.on { border-color: #3c6b45; }
.cy-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; }
.cy-attrs, .cy-resgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 14px; }
.cy-resgrid { grid-template-columns: repeat(4, 1fr); }
.cy-attrs div, .cy-res { display: flex; justify-content: space-between; padding: 4px 8px; border-radius: 5px; background: #12151f; font-size: 12px; }
.cy-attrs span, .cy-res span { color: var(--muted); }
.cy-where { display: flex; flex-wrap: wrap; gap: 6px; }
.cy-soon { flex: 1; display: grid; place-content: center; text-align: center; padding: 40px; }
.cy-soon-ico { font-size: 44px; opacity: .6; }
/* despachar loot */
.cyclo.dispatch { width: min(640px, 100%); height: min(600px, 100%); }
.dp-help { margin: 10px 14px 6px; font-size: 12px; }
.dp-rows { flex: 1; min-height: 0; overflow: auto; padding: 4px 14px; display: flex; flex-direction: column; gap: 5px; }
.dp-row { display: grid; grid-template-columns: 36px 1fr 80px 140px; gap: 10px; align-items: center; padding: 5px 8px; border-radius: 6px; border: 1px solid #2c3249; background: #171b29; }
.dp-row.sell { border-color: #6a5a2a; }
.dp-name { display: flex; flex-direction: column; min-width: 0; }
.dp-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-val { text-align: right; color: var(--gold); font-variant-numeric: tabular-nums; }
.dp-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid #2a3047; }
@media (max-width: 720px) {
  .cy-split { grid-template-columns: 1fr; }
  .cy-side { display: none; }
  .cy-card { grid-template-columns: 48px 1fr; }
  .cy-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .cy-hero { grid-template-columns: auto 1fr; }
  .cy-cols { grid-template-columns: 1fr; }
}
.creature canvas { display: block; image-rendering: pixelated; }

/* ===================== Aventuras (catálogo de caçadas) ===================== */
.modal.adv-modal { width: min(980px, 100%); height: min(720px, calc(100vh - 32px)); max-height: min(720px, calc(100vh - 32px)); }
.adv-modal .body { padding: 0; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.adv { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.adv-tabs { display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.adv-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 14px; color: #b9c0da; cursor: pointer; font-weight: 600; }
.adv-tab:hover { color: #fff; }
.adv-tab.on { color: #8fa6ff; border-bottom-color: #6b8cff; }
.adv-host { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.adv-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.adv-subs { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #262b40; }
.adv-sub { background: none; border: 1px solid transparent; border-radius: 6px; padding: 6px 12px; color: #b9c0da; cursor: pointer; font-size: 13px; }
.adv-sub.on { background: #262c44; border-color: #3a4266; color: #fff; }
.adv-sub.soon { opacity: .6; }
.adv-bar { display: flex; align-items: center; gap: 14px; padding: 14px; }
.adv-search { flex: 1; padding: 9px 12px; border-radius: 6px; border: 1px solid #353c5a; background: #0e111a; outline: none; }
.adv-search:focus { border-color: #6b8cff; }
.adv-grid { flex: 1 1 0; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-auto-rows: max-content; gap: 12px; padding: 0 14px 14px; align-content: start; }
/* o cartão, a busca e as abas nunca encolhem (às vezes o cartão ficava só com a linha de baixo) */
.adv-card > *, .adv-subs, .adv-bar { flex-shrink: 0; }
.adv-card { position: relative; display: flex; flex-direction: column; border: 1px solid #2f3550; border-radius: 8px; background: linear-gradient(#1c2030, #181b29); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.adv-card:hover { border-color: #5865a0; transform: translateY(-2px); box-shadow: 0 8px 18px #0006; }
.adv-top { display: flex; gap: 12px; align-items: center; padding: 18px 14px 14px; min-height: 120px; }
.adv-mon { width: 96px; height: 96px; display: grid; place-items: center; flex: none; }
.adv-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adv-info small { color: var(--muted); letter-spacing: 1px; font-size: 11px; }
.adv-info b { font-size: 15px; color: #f1f3fb; }
.adv-info span { color: #aab2cc; font-size: 12px; }
.adv-tags { display: flex; gap: 5px; margin-top: 6px; }
.adv-tags i { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 10px; background: #12151f; border: 1px solid #30364f; color: #aab2cc; }
.adv-tags i.bad { border-color: #8a3a34; color: #f1a59d; }
.adv-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid #2a3047; font-size: 13px; }
.adv-foot .gold { color: var(--gold); }
.adv-star { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: #8a91aa; font-size: 18px; cursor: pointer; z-index: 1; }
.adv-star:hover, .adv-star.on { color: var(--gold); }
.mob-chip.img { display: inline-flex; align-items: center; gap: 6px; }
.adv-modal.prep-mode .body { padding: 14px 16px; }

/* ===== Detalhes do personagem (Personagem / Outfit / Deaths) ===== */
.cyclo.charwin2 { width: min(1020px, 100%); height: min(720px, 100%); }
.cy-tabs.five { grid-template-columns: repeat(5, 1fr); }
.cy-tab.soon { opacity: .45; cursor: not-allowed; }
.topbar .who .avatar.look-av { background: #0e111a; border: 1px solid var(--line-2); overflow: hidden; }
canvas.look { image-rendering: pixelated; display: block; }
.cw-char { display: grid; grid-template-columns: 260px 1fr; gap: 16px; padding: 16px; overflow: auto; flex: 1; min-height: 0; }
.cw-left { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px; }
.cw-portrait { background: radial-gradient(circle at 50% 60%, #2a3150, #12151f 70%); border-radius: 10px; padding: 6px; border: 1px solid var(--line-2); }
.cw-big { font-size: 18px; }
.cw-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; margin-top: 10px; }
.cw-stat { background: #12151f; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; display: flex; flex-direction: column; }
.cw-stat small { color: var(--muted); font-size: 11px; }
.cw-stat.hp b { color: #ff7a70; } .cw-stat.mana b { color: #7ea0ff; }
.cw-right h4 { margin: 4px 0 8px; font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: .04em; }
.cw-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-bottom: 14px; }
.cw-skill { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
.cw-skill .cw-bar { grid-column: 1; } .cw-skill small { color: var(--muted); font-size: 11px; }
.cw-bar { height: 6px; background: #0b0d14; border-radius: 3px; overflow: hidden; border: 1px solid var(--line); }
.cw-bar i { display: block; height: 100%; background: var(--ok); }
.cw-bar.exp i { background: var(--exp); }
.cw-equip { margin: 0 0 14px; color: var(--muted); }
.cw-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cw-prog { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; display: grid; gap: 6px; margin-bottom: 8px; }
.cw-line { display: flex; justify-content: space-between; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.cw-line.total { border-bottom: 0; font-weight: 600; }
.ow { display: grid; grid-template-columns: 340px 1fr; gap: 14px; padding: 14px; flex: 1; min-height: 0; }
.ow-left { display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.ow-preview { position: relative; display: grid; place-items: center; height: 220px; border-radius: 10px; border: 1px solid var(--line-2); background: radial-gradient(circle at 50% 65%, #2b3253, #10131c 70%); }
.ow-rotate { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: #1b2033; font-size: 16px; cursor: pointer; }
.ow-rotate:hover { border-color: var(--accent); }
.ow-name { color: var(--gold); }
.ow-addons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ow-addon { display: flex; justify-content: space-between; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.ow-addon span { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.ow-parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ow-part { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 12px; }
.ow-part.on { border-color: var(--accent); box-shadow: 0 0 10px #6b8cff44; color: #fff; }
.ow-swatch { width: 22px; height: 14px; border-radius: 3px; border: 1px solid #0008; }
.ow-palette { display: grid; grid-template-columns: repeat(19, 1fr); gap: 2px; background: #0b0d14; padding: 6px; border-radius: 6px; border: 1px solid var(--line); }
.ow-color { aspect-ratio: 1; border: 1px solid #0006; border-radius: 2px; padding: 0; cursor: pointer; }
.ow-color:hover { outline: 1px solid #fff8; }
.ow-color.on { outline: 2px solid #fff; z-index: 1; }
.ow-right { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.ow-bar { display: flex; gap: 8px; align-items: center; }
.ow-bar .cy-input { flex: 1; }
.ow-gender { padding: 7px 12px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; }
.ow-gender.on { border-color: var(--accent); color: #fff; background: #26305a; }
.ow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; overflow: auto; padding-right: 4px; align-content: start; flex: 1; min-height: 0; }
.ow-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 12px; }
.ow-card:hover { border-color: #5865a0; }
.ow-card.on { border-color: var(--gold); box-shadow: 0 0 12px #e6b45044; }
.cw-deaths { padding: 14px; overflow: auto; flex: 1; }
.cw-dhead, .cw-drow { display: grid; grid-template-columns: 170px 1fr 200px; gap: 10px; padding: 8px 10px; }
.cw-dhead { color: var(--muted); font-size: 12px; text-transform: uppercase; border-bottom: 1px solid var(--line-2); }
.cw-drow { border-bottom: 1px solid var(--line); }
.cw-drow:nth-child(odd) { background: #ffffff05; }
@media (max-width: 760px) {
  .cw-char, .ow { grid-template-columns: 1fr; }
  .cy-tabs.five { grid-template-columns: repeat(3, 1fr); }
  .cw-dhead, .cw-drow { grid-template-columns: 1fr; }
}
/* ===== Roda do Destino (aba da janela do personagem, imagens do cliente do Tibia) ===== */
.wh { display: grid; grid-template-columns: minmax(280px, 560px) minmax(260px, 1fr); gap: 14px; padding: 14px; overflow: auto; flex: 1; min-height: 0; align-items: start; }
.whw { position: relative; width: 100%; max-width: 560px; background: #0b0d12; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.whw-in { position: absolute; left: 0; top: 0; width: 522px; height: 522px; transform-origin: 0 0; }
.whw-l { position: absolute; inset: 0; width: 522px; height: 522px; }
.whw-ico { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; pointer-events: none; }
.whw-ico > .spico, .whw-ico > .whw-mi { display: block; border-radius: 50%; }
.whw-ico.full > .spico, .whw-ico.full > .whw-mi { filter: none; box-shadow: 0 0 0 1px #e6b450; }
.whw-ico.off { opacity: .8; }
.whw-mi, .whw-si, .whw-big i { display: block; background-repeat: no-repeat; }
.whw-si { position: absolute; left: -6px; bottom: -6px; }
.whw-si.solo { left: 7px; bottom: 7px; }
.whw-corner { position: absolute; width: 178px; height: 178px; pointer-events: none; }
.whw-corner img { display: block; }
.whw-corner.TL { left: 0; top: 0; } .whw-corner.TR { right: 0; top: 0; } .whw-corner.BL { left: 0; bottom: 0; } .whw-corner.BR { right: 0; bottom: 0; }
.whw-big { position: absolute; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; }
.whw-hit path { fill: transparent; cursor: pointer; outline: none; }
.whw-hit path:hover { fill: #ffffff14; }
.whw-hit path.sel { fill: #ffffff1f; stroke: #f5d36b; stroke-width: 2; }
.whw-hit path:focus-visible { stroke: #fff; stroke-width: 2; }
.wh-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.wh-head h3 { margin: 0; color: var(--gold); }
.wh-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.wh-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.wh-box h5 { margin: 0 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--gold); }
.wh-sel { border-left: 4px solid; }
.wh-t { color: var(--gold); font-size: 13px; margin-top: 4px; }
.wh-v { font-weight: 600; font-size: 13px; }
.wh-on { color: #7ddc8a; }
.wh-warn { color: #e0a24a; }
.wh-steps { display: flex; gap: 6px; }
.wh-bar { position: relative; height: 18px; background: #3a2f22; border: 1px solid #00000080; border-radius: 3px; overflow: hidden; }
.wh-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#e6b450, #a8781f); }
.wh-bar span { position: relative; display: block; text-align: center; font: 600 11px/18px monospace; color: #fff; text-shadow: 0 1px 1px #000; }
.wh-line { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.wh-rev { border-left: 3px solid; padding-left: 8px; display: flex; flex-direction: column; gap: 2px; opacity: .65; }
.wh-rev.on { opacity: 1; }
@media (max-width: 760px) { .wh { grid-template-columns: 1fr; } }
.charwin2 .cy-title { display: flex; flex-direction: column; gap: 2px; }

/* ===== Barra de ações (hotkeys igual ao Huntera) ===== */
button.act { padding: 0; cursor: pointer; color: inherit; font: inherit; overflow: hidden; }
button.act:hover { border-color: #6b8cff; }
button.act.empty::after { content: '+'; color: #3a4260; font-size: 16px; }
.act .cost { position: absolute; left: 2px; top: 1px; font: 600 8px var(--hud-font); color: #e8c86a; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; z-index: 2; }
.act .cd { position: absolute; inset: 0; display: grid; place-items: center; background: #000a; font: 600 10px var(--hud-font); color: #fff; font-style: normal; text-shadow: 1px 1px 0 #000; z-index: 3; }
.act.rule-off::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top right, transparent 46%, #d9443acc 47%, #d9443acc 53%, transparent 54%); z-index: 4; pointer-events: none; }
.act.rule-off > :first-child { opacity: .55; }
.act.off { opacity: .35; }
.act.off::after { content: 'OFF'; position: absolute; bottom: 1px; left: 0; right: 0; text-align: center; font: 600 7px var(--hud-font); color: #ff7a70; }
.spico { display: grid; place-items: center; border-radius: 3px; text-align: center; font: 600 8px/1 var(--hud-font); color: #fff; padding: 2px; word-break: break-word;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--el, #888) 75%, #fff 25%), color-mix(in srgb, var(--el, #888) 55%, #000 45%)); text-shadow: 1px 1px 0 #000; box-shadow: inset 0 0 0 1px #0008; }
.spico.healing { border-radius: 50%; }
.spico.support { border-radius: 8px 2px; }

.cyclo.acwin { width: min(860px, 100%); height: min(720px, 100%); }
.ac-main { display: grid; grid-template-columns: 300px 1fr; gap: 12px; padding: 12px 14px; flex: 1; min-height: 0; }
.ac-list { overflow: auto; display: grid; gap: 4px; align-content: start; padding-right: 4px; }
.ac-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; text-align: left; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; color: inherit; font: inherit; }
.ac-item:hover { border-color: #5865a0; }
.ac-item.on { border-color: var(--accent); background: #26305a; }
.ac-item.locked { opacity: .45; }
.ac-item small { color: var(--muted); font-size: 11px; }
.ac-detail { overflow: auto; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.ac-detail p { margin: 6px 0; }
.ac-dhead { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.ac-dhead b { font-size: 16px; display: block; }
.ac-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.ac-panes .btn.on { border-color: var(--accent); background: #26305a; color: #fff; }
.ac-condwrap { border-top: 1px solid #2a3047; padding: 10px 14px; }
.ac-condwrap h4 { margin: 0; }
.ac-conds { display: grid; gap: 6px; margin-top: 8px; max-height: 150px; overflow: auto; }
.ac-cond { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ac-cond select { padding: 5px 6px; }
.ac-val { width: 64px; text-align: center; padding: 5px; }
.ac-pct { display: flex; gap: 3px; align-items: center; }
.ac-on { display: flex; gap: 6px; align-items: center; margin-right: 8px; }
.ac-preview { display: grid; gap: 8px; justify-items: center; padding: 8px; }
.ac-grid { display: grid; gap: 2px; }
.ac-grid i { width: 14px; height: 14px; background: #12151f; border: 1px solid #222838; border-radius: 2px; }
.ac-grid i.hit { background: #d9743a; border-color: #ffb070; }
.ac-grid i.me { background: #6b8cff; border-color: #a9bcff; }
.ac-grid i.tgt { outline: 2px solid #ff4040; }
@media (max-width: 760px) { .ac-main { grid-template-columns: 1fr; } .ac-list { max-height: 200px; } }
.acwin .cy-title { display: flex; flex-direction: column; gap: 2px; }
.ac-cond select { width: auto; flex: 0 0 auto; min-width: 110px; }
.ac-cond .btn.small { padding: 4px 9px; }
.ac-cond input.ac-val { width: 70px !important; flex: 0 0 70px; }
.ac-cond { flex-wrap: nowrap; }
.spico.img { background-repeat: no-repeat; image-rendering: auto; padding: 0; box-shadow: inset 0 0 0 1px #0008; border-radius: 3px; }
.spico.img.healing, .spico.img.support { border-radius: 3px; }

/* ===== Menu do item (igual ao Huntera) ===== */
.item-menu { position: fixed; z-index: 90; min-width: 210px; background: #161a27; border: 1px solid #3a4160; border-radius: 8px; box-shadow: 0 10px 30px #000a; padding: 6px 0; font-size: 13px; }
.im-head { padding: 6px 14px 8px; font-weight: 600; color: #8fb0ff; border-bottom: 1px solid #262c42; margin-bottom: 4px; text-transform: lowercase; }
.im-head small { color: var(--muted); font-weight: 400; }
.im-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 7px 14px; background: none; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.im-row:hover:not(:disabled) { background: #232a42; }
.im-row:disabled { opacity: .45; cursor: not-allowed; }
.im-row small { color: var(--muted); font-size: 11px; }
.im-row i { font-style: normal; color: var(--muted); }
.im-row.on i { color: var(--ok); }
.im-row.danger span { color: #ff8a80; }
.im-row input { width: 16px; height: 16px; accent-color: #6b8cff; }
.im-sub { display: none; position: absolute; left: 100%; top: -6px; min-width: 190px; background: #161a27; border: 1px solid #3a4160; border-radius: 8px; box-shadow: 0 10px 30px #000a; padding: 6px 0; }
.has-sub:hover > .im-sub { display: block; }
.cell.item { cursor: pointer; position: relative; }
.cell.item:hover { outline: 1px solid #6b8cff; }
.bag.drop-on, .dp-grid.drop-on, .dp-bag.drop-on { outline: 2px dashed #e6b450; outline-offset: 2px; }
.cell.locked-sale::after { content: '🔒'; position: absolute; right: 1px; top: 0; font-size: 9px; }
.slot.own { box-shadow: inset 0 0 0 1px #e6b450; }
.slot { cursor: default; }
.item-menu.flip .im-sub { left: auto; right: 100%; }
.item-menu.up .im-sub { top: auto; bottom: -6px; }

/* ===== Painel Admin ===== */
.cyclo.adminwin { width: min(1100px, 100%); height: min(760px, 100%); }
.cy-tabs.four { grid-template-columns: repeat(4, 1fr); }
.ad-main { display: grid; grid-template-columns: 250px 1fr; gap: 12px; padding: 12px 14px; flex: 1; min-height: 0; }
.ad-list { overflow: auto; display: grid; gap: 4px; align-content: start; }
.ad-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 6px; align-items: center; text-align: left; padding: 7px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: inherit; font: inherit; cursor: pointer; }
.ad-item.on { border-color: var(--accent); background: #26305a; }
.ad-item.off { opacity: .5; }
.ad-item small, .ad-item i { color: var(--muted); font-size: 11px; font-style: normal; }
.ad-form { overflow: auto; display: grid; gap: 8px; align-content: start; }
.ad-form h3 { margin: 0 0 4px; }
.ad-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.ad-row.col { flex-direction: column; align-items: stretch; }
.ad-inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ad-num { width: 90px !important; text-align: center; padding: 5px; }
.ad-num.wide { width: 130px !important; }
.ad-name { width: 170px !important; padding: 5px 8px; }
.ad-mapwrap { overflow: auto; max-height: 62vh; max-width: 100%; border: 1px solid var(--line-2); border-radius: 4px; align-self: stretch; background: #05060a; }
.ad-map { display: block; image-rendering: pixelated; cursor: crosshair; margin: 0 auto; }
.ad-pad { padding: 14px; overflow: auto; flex: 1; }
.ad-chars { display: grid; gap: 4px; }
.ad-chead, .ad-crow { display: grid; grid-template-columns: 1.4fr 1.4fr 100px 140px 80px 230px; gap: 10px; align-items: center; padding: 6px 8px; }
.ad-chead { color: var(--muted); font-size: 12px; text-transform: uppercase; border-bottom: 1px solid var(--line-2); }
.ad-crow { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; }
.ad-crow > div { display: grid; gap: 2px; }
.ad-text { width: 100%; padding: 8px; font: inherit; background: #0e111a; color: var(--text); border: 1px solid #353c5a; border-radius: 6px; }
@media (max-width: 760px) { .ad-main { grid-template-columns: 1fr; } .ad-chead { display: none; } .ad-crow { grid-template-columns: 1fr 1fr; } }
.adminwin .cy-title { display: flex; flex-direction: column; gap: 2px; }
.ad-name { background: #0e111a; color: var(--text); border: 1px solid #353c5a; border-radius: 6px; font: inherit; }

/* ===== Barra igual ao Huntera: custos, recarga e condição ===== */
button.act.assigned { border-color: #8a6d2c; box-shadow: inset 0 0 6px #000, 0 0 0 1px #00000080; }
.act .gold-cost { position: absolute; left: 2px; top: 1px; font: 600 8px var(--hud-font); color: #f0a64a; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; z-index: 2; }
.act .mana-cost { position: absolute; right: 2px; bottom: 1px; font: 600 8px var(--hud-font); color: #7fb2ff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; z-index: 2; }
.act .cd { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; font: 600 12px var(--hud-font); color: #fff; font-style: normal; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 4px #000; z-index: 3; }
.act.cooling > :first-child { filter: grayscale(1) brightness(.55); }
.act.rule-off::before { background: linear-gradient(to top right, transparent 48.5%, #c9ccd6cc 49%, #c9ccd6cc 51%, transparent 51.5%); }
.act.rule-off > :first-child { opacity: 1; filter: grayscale(.85) brightness(.6); }
.act.cooling.rule-off > :first-child { filter: grayscale(1) brightness(.5); }
.ad-form [hidden] { display: none !important; }

/* ---------- descrição do item (igual ao Huntera) ---------- */
.item-tip { position: fixed; z-index: 3000; pointer-events: none; min-width: 210px; max-width: 300px; padding: 10px 12px 8px;
  background: #11131c; border: 1px solid #3a3f52; border-radius: 8px; box-shadow: 0 8px 28px #000a; font: 12px/1.45 'Courier New', ui-monospace, monospace; color: #e6e8ee; }
.item-tip .it-head { font: 600 14px/1.3 system-ui, sans-serif; color: #f0c860; margin-bottom: 6px; }
.item-tip .it-head small { color: #aab; font-weight: 400; }
.item-tip .it-line span { color: #e6e8ee; }
.item-tip .it-line b { color: #fff; font-weight: 600; }
.item-tip .it-cls span, .item-tip .it-cls b { color: #f0a64a; }
.item-tip .it-plain { color: #e6e8ee; }
.item-tip .it-good { color: #7bd88f; }
.item-tip .it-bad { color: #e07a6a; }
.item-tip .it-slot { color: #8b93a8; font-style: italic; }
.item-tip .it-desc { color: #9aa0b4; font-style: italic; margin-top: 4px; font-family: system-ui, sans-serif; }
.item-tip .it-bullets { margin: 6px 0 0; padding-left: 16px; color: #e6e8ee; }
.item-tip .it-bullets li::marker { color: #f0a64a; }
.item-tip .it-weight { text-align: right; color: #aab; margin-top: 4px; }
.dp-auto { display: flex; gap: 8px; align-items: center; margin: 0 16px 8px; font-size: 13px; color: #d8dae3; cursor: pointer; }
.depot-grid { max-height: 52vh; overflow: auto; }
.modal.depot-modal { width: min(760px, 100%); }
.depot { display: flex; gap: 14px; min-height: 0; }
.dp-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.dp-right { width: 230px; flex: none; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); padding-left: 12px; }
.dp-right h6 { margin: 0; }
.dp-tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--line); }
.dp-tabs button { background: none; border: 0; padding: 6px 2px; color: var(--muted); font: inherit; cursor: pointer; }
.dp-tabs button.on { color: #fff; border-bottom: 2px solid #8fa8ff; }
.dp-tabs button:disabled { cursor: default; opacity: .6; }
.dp-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.dp-filter { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; background: #1a1e2c; border: 1px solid #39405a; border-radius: 4px; color: inherit; font-size: 11px; cursor: pointer; }
.dp-filter:first-child { width: auto; padding: 0 8px; }
.dp-filter.on { border-color: #8fa8ff; background: #232a40; }
.dp-grid { display: grid; grid-template-columns: repeat(auto-fill, 40px); gap: 4px; align-content: start; max-height: 46vh; overflow-y: auto; padding: 4px; border-top: 1px solid var(--line); }
.dp-bag { display: grid; grid-template-columns: repeat(5, 40px); gap: 4px; }
.dp-grid .cell, .dp-bag .cell { width: 40px; height: 40px; }
@media (max-width: 640px) { .depot { flex-direction: column; } .dp-right { width: auto; border-left: 0; padding-left: 0; } }

/* ---------- barra de ações nível Huntera ---------- */
.vitals { width: 176px; gap: 3px; }
.vitals .bar { height: 15px; border-radius: 3px; }
.vitals .bar > em { font: 600 10.5px/1 system-ui, sans-serif; letter-spacing: .2px; }
.bar.hp > i { background: linear-gradient(#ff6a5c, #b42a1f 60%, #8e1d15); }
.bar.mana > i { background: linear-gradient(#6c9bff, #2e55c9 60%, #233f9a); }
/* escudo de mana ligado: mana listrada (igual ao Huntera) */
.bar.xp { height: 12px; }
.bar.xp > i { background: linear-gradient(#8fd06a, #3f8a2a); }
.bar.xp > em { font-size: 9.5px !important; }
.vit-info { display: flex; gap: 6px; align-items: center; min-height: 18px; font: 600 10.5px system-ui, sans-serif; color: #cfd3e0; flex-wrap: wrap; }
.vit-info .buff { display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px 1px 1px; border: 1px solid #3c4a7a; border-radius: 4px; background: #182040; color: #bcd0ff; }
.vit-info .buff .spico, .vit-info .buff .item { border-radius: 3px; }
.actslots { grid-template-columns: repeat(10, 40px); gap: 3px; }
button.act { width: 40px; height: 40px; position: relative; border-radius: 5px; background: #0d0f17; border: 1px solid #262b3d; display: grid; place-items: center; }
button.act.assigned { border-color: #a8843a; background: radial-gradient(#1b1f2c, #0b0d14); box-shadow: inset 0 0 5px #000, 0 0 0 1px #00000090; }
button.act.assigned:hover { border-color: #f0c860; box-shadow: 0 0 8px #f0c86066, inset 0 0 5px #000; }
button.act > .spico, button.act > .item { transition: filter .15s; }
/* recarga: a parte que falta escurece em círculo (igual ao Tibia) e o número fica no meio */
.act .sweep { position: absolute; inset: 0; border-radius: 4px; pointer-events: none; z-index: 2; opacity: 0; background: conic-gradient(#000000b8 var(--p, 0deg), transparent 0); }
.act.cooling .sweep { opacity: 1; }
.act.cooling > :first-child { filter: grayscale(.7) brightness(.75); }
.act .cd { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; font: 800 13px/1 var(--hud-font); color: #fff; font-style: normal; z-index: 4;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 5px #000; pointer-events: none; }
/* sem mana (ou gold) para usar: ícone escuro azulado e a mana em vermelho */
.act.no-mana > :first-child { filter: grayscale(.6) brightness(.45) sepia(.3) hue-rotate(180deg); }
.act.no-mana .mana-cost { color: #ff6b6b; }
/* condição não bate: risco fino na diagonal */
.act.rule-off::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(to top right, transparent 48.5%, #c9ccd6d9 49%, #c9ccd6d9 51%, transparent 51.5%); }
.act.rule-off:not(.cooling) > :first-child { filter: grayscale(.8) brightness(.6); }
.act .gold-cost, .act .mana-cost { z-index: 5; font: 600 9px var(--hud-font); }
.act .gold-cost { left: 2px; top: 1px; }
.act .mana-cost { right: 2px; bottom: 1px; }
/* usou agora: brilho dourado e um pulinho (animação na hora do uso) */
.act .flash { position: absolute; inset: -1px; border-radius: 5px; pointer-events: none; z-index: 6; opacity: 0; }
.act.fired .flash { animation: act-fire .45s ease-out; }
.act.fired > :first-child { animation: act-pop .3s ease-out; }
@keyframes act-fire {
  0% { opacity: 1; box-shadow: 0 0 0 2px #ffe08a, 0 0 14px 4px #ffcf4ab0, inset 0 0 12px #fff6; background: #ffffff30; }
  100% { opacity: 0; box-shadow: 0 0 0 6px #ffe08a00, 0 0 22px 10px #ffcf4a00, inset 0 0 0 #fff0; background: transparent; }
}
@keyframes act-pop { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }
.slot-tip { max-width: 320px; }
.item-tip .it-sep { height: 1px; background: #2c3144; margin: 6px 0; }
.item-tip .it-cond { color: #c8ccd8; padding-left: 4px; }
.item-tip .it-warn { color: #ff8a7a; }
@media (max-width: 1200px) { .actslots { grid-template-columns: repeat(10, 34px); } button.act { width: 34px; height: 34px; } .vitals { width: 140px; } }

/* Igual ao Tibia global: ícone sempre colorido, sem risco e sem apagar quando a condição não bate;
   só a recarga (círculo escuro + número) e a falta de mana escurecem. */
.act.rule-off::before { display: none !important; }
.act.rule-off > :first-child, .act.cooling > :first-child, .act.cooling.rule-off > :first-child { filter: none !important; opacity: 1 !important; }
.act.no-mana > :first-child { filter: grayscale(.6) brightness(.45) !important; }
.equip .slot.openable { cursor: pointer; } .equip .slot.openable:hover { border-color: #f0c860; }
.act .gold-cost.free { color: #7be07b; font-size: 8px; }
/* regeneração por minuto ao lado da vida e da mana */
.bar > u.regen { position: absolute; right: 4px; top: 0; bottom: 0; display: grid; place-items: center; text-decoration: none; font: 600 9px var(--hud-font); color: #b9f5b0; text-shadow: 1px 1px 0 #000; pointer-events: auto; }
.bar.mana > u.regen { color: #bcd6ff; }
.vit-stamina { color: #9fd18b; font-size: 10px; margin-left: 6px; }
.vit-stamina.low { color: #f0a64a; }
.vit-stamina.out { color: #ff6b5e; }

/* =====================================================================
   HUD v2 — cara de Tibia (janelas de metal escuro, Verdana, bordas
   chanfradas) com a organização do Huntera. Vem por último: manda em tudo.
   ===================================================================== */
:root {
  --hud-top: #2a2b31;
  --hud-bot: #1a1b1f;
  --hud-edge: #060607;
  --hud-hi: #ffffff17;
  --hud-ring: #3c3d45;
  --hud-title: #e3cf98;
  --hud-text: #d6d8de;
  --hud-dim: #8d909b;
  --hud-slot: #101114;
  --hud-gold: #f0c860;
  --hud-font: Inter, "Segoe UI", system-ui, sans-serif;
}

/* ---------- janelas ---------- */
.win {
  background: linear-gradient(var(--hud-top), var(--hud-bot)) !important;
  border: 1px solid var(--hud-edge) !important; border-radius: 3px !important;
  box-shadow: inset 0 1px 0 var(--hud-hi), inset 0 0 0 1px var(--hud-ring), 0 10px 24px #000c !important;
  color: var(--hud-text); font: 11px/1.4 var(--hud-font);
}
.win-head {
  background: linear-gradient(#3a3b42, #28292e) !important; border-bottom: 1px solid var(--hud-edge) !important;
  box-shadow: inset 0 1px 0 #ffffff1f; border-radius: 2px 2px 0 0 !important;
  color: var(--hud-title) !important; font: 600 11px var(--hud-font) !important; letter-spacing: .2px !important;
  text-shadow: 1px 1px 0 #000; padding: 4px 5px 4px 9px !important;
}
.win-btn {
  width: 16px !important; height: 16px !important; line-height: 13px !important; border-radius: 2px !important; font-size: 11px !important;
  background: linear-gradient(#4a4b53, #2c2d33) !important; border: 1px solid var(--hud-edge) !important; color: #e8e8ea !important;
  box-shadow: inset 0 1px 0 #ffffff26;
}
.win-btn:hover { background: linear-gradient(#5d5e68, #383940) !important; }
.win-body { padding: 7px 8px 8px !important; }
.win h6 { color: var(--hud-title) !important; font: 600 10px var(--hud-font) !important; letter-spacing: .4px !important; }

/* slots e células (equipamento, mochila, loot): quadradinho fundo do Tibia */
.slot, .cell {
  background: var(--hud-slot) !important; border: 1px solid #000 !important; border-radius: 1px !important;
  box-shadow: inset 1px 1px 0 #00000080, 1px 1px 0 #ffffff12 !important;
}
.slot small { color: #3d3f48 !important; font: 7px var(--hud-font) !important; }
.cell.item:hover { outline: 1px solid var(--hud-gold) !important; outline-offset: -1px; }

/* ---------- analisador ---------- */
.ana-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 1px 6px; border-bottom: 1px solid #00000080; box-shadow: 0 1px 0 #ffffff0d; }
.ana-head b { color: #fff; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ana-head span { color: var(--hud-dim); white-space: nowrap; }
.ana-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 7px; }
.ana-stat { background: #00000038; border: 1px solid #0000004d; border-radius: 2px; padding: 3px 6px; display: grid; }
.ana-stat span { color: var(--hud-dim); font-size: 9px; text-transform: uppercase; letter-spacing: .4px; }
.ana-stat b { font-size: 13px; color: #fff; }
.ana-stat.xp b { color: #f4f4f4; }
.ana-stat.gold b { color: var(--hud-gold); }
.ana-stat.cost b { color: #ff8f84; }
.ana-stat.pos b { color: #7be07b; }
.ana-stat.neg b { color: #ff6b5e; }
.ana-next { margin-top: 7px; }
.ana-next-top { display: flex; justify-content: space-between; color: var(--hud-dim); font-size: 10px; margin-bottom: 3px; }
.ana-next-top b { color: #fff; }
.ana-next-bar { position: relative; height: 12px; background: #000; border: 1px solid #000; box-shadow: 0 0 0 1px #ffffff12; }
.ana-next-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#e8c25a, #a77a1f); }
.ana-next-bar em { position: absolute; inset: 0; display: grid; place-items: center; font: 600 8.5px var(--hud-font); font-style: normal; color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; }
.ana-kills { margin-top: 8px; border-top: 1px solid #00000080; box-shadow: inset 0 1px 0 #ffffff0d; padding-top: 5px; max-height: 150px; overflow-y: auto; }
.ana-kills-head { display: flex; justify-content: space-between; color: var(--hud-dim); font-size: 9px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.ana-kills-head b { color: var(--hud-text); }
.ana-kill { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 6px; padding: 1px 0; }
.ana-kill .creature { display: block; }
.ana-kill .creature.none { display: grid; place-items: center; color: #555; }
.ana-kill span { color: #cfd2da; }
.ana-kill b { color: #fff; }

/* ---------- skills (igual à janela do Tibia) ---------- */
.win .sklist { gap: 2px !important; }
.win .sk { padding: 1px 0; }
.win .sk span { color: #cfd2da !important; }
.win .sk b { color: #fff; }
.win .sk-plain span { color: var(--hud-dim) !important; }
.win .sk-plain b { font-weight: normal; color: #e4e6ea; }
/* janela Bestiary: criaturas acompanhadas */
.bt-empty { text-align: center; margin: 10px 4px; }
.bt-row { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid #ffffff10; }
.bt-ico { flex: none; width: 36px; height: 36px; padding: 1px; background: #00000059; border: 1px solid #000; border-radius: 3px; cursor: pointer; }
.bt-info { flex: 1; min-width: 0; }
.bt-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.bt-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-bar { height: 5px; background: #000; border: 1px solid #000; margin: 3px 0 2px; }
.bt-bar i { display: block; height: 100%; background: linear-gradient(#ffcf5a, #b37a12); }
.bt-done { color: #44d36b; font-weight: 600; font-size: 12px; margin-top: 2px; }
.bt-row.done .bt-ico { border-color: #44d36b; box-shadow: 0 0 0 1px #44d36b66; }
.bt-add { width: 100%; margin-top: 6px; }
.cy-track { margin: 4px 0 8px; }
.win .sk-head { color: var(--hud-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; margin: 2px 0; }
.win .sk b.sk-up { color: #44d36b; }
.win .sk b.sk-down { color: #ff5a4a; }
.win .sk-sep { height: 1px; background: #00000080; box-shadow: 0 1px 0 #ffffff0d; margin: 4px 0; }
.win .skbar { height: 4px !important; background: #000 !important; border: 1px solid #000; margin: 1px 0 3px !important; }
.win .skbar i { background: linear-gradient(#ff4a3a, #b0170c) !important; }
.win .sk-level .skbar i { background: linear-gradient(#e8c25a, #a77a1f) !important; }
.win .sk-magic .skbar i { background: linear-gradient(#7aa8ff, #2c56c9) !important; }

/* ---------- barra de baixo ---------- */
.actionbar {
  background: linear-gradient(var(--hud-top), var(--hud-bot)) !important; border: 1px solid var(--hud-edge) !important; border-radius: 3px !important;
  box-shadow: inset 0 1px 0 var(--hud-hi), inset 0 0 0 1px var(--hud-ring), 0 10px 24px #000c !important;
}
.vitals .bar, .bar {
  background: #000 !important; border: 1px solid #000 !important; border-radius: 1px !important;
  box-shadow: 0 0 0 1px #ffffff14 !important;
}
.vitals .bar > em, .bar > em { font: 600 10px/1 var(--hud-font) !important; color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000 !important; }
.bar.hp > i { background: linear-gradient(#ff5545, #c4251a 55%, #8d150d) !important; }
.bar.mana > i { background: linear-gradient(#5d8dff, #2850d0 55%, #1b3698) !important; }
.bar.xp > i { background: linear-gradient(#e8c25a, #a77a1f) !important; }
.bar > u.regen { font-family: var(--hud-font) !important; }
.vit-info { font: 10px var(--hud-font) !important; color: var(--hud-text) !important; }
button.act { background: var(--hud-slot) !important; border: 1px solid #000 !important; border-radius: 2px !important; box-shadow: inset 1px 1px 0 #00000090, 1px 1px 0 #ffffff12 !important; }
button.act.assigned { border-color: #5a4b2a !important; box-shadow: inset 0 0 0 1px #00000090, 0 0 0 1px #00000080 !important; }
button.act.assigned:hover { border-color: var(--hud-gold) !important; box-shadow: 0 0 8px #f0c86055 !important; }
button.act.empty::after { color: #34363e !important; }
.controls .ctl small { color: var(--hud-dim) !important; font: 9px var(--hud-font) !important; letter-spacing: .5px; text-transform: uppercase; }
.controls select {
  background: linear-gradient(#34353b, #222327) !important; border: 1px solid #000 !important; border-radius: 2px !important;
  box-shadow: inset 0 1px 0 #ffffff17; color: #e8e8ea !important; font: 11px var(--hud-font) !important;
}
.stance, .dist button { background: linear-gradient(#3a3b42, #26272c) !important; border: 1px solid #000 !important; border-radius: 2px !important; box-shadow: inset 0 1px 0 #ffffff1f; }
.stance.on { background: linear-gradient(#6b5622, #3d3012) !important; border-color: var(--hud-gold) !important; }
.dock-tabs button {
  background: linear-gradient(#3a3b42, #24252a) !important; border: 1px solid #000 !important; border-radius: 2px !important;
  box-shadow: inset 0 1px 0 #ffffff1f, 0 3px 10px #0009; color: var(--hud-title) !important; font: 600 10px var(--hud-font) !important; letter-spacing: .6px !important;
  text-shadow: 1px 1px 0 #000;
}
.dock-tabs button:hover { background: linear-gradient(#4a4b54, #2e2f35) !important; color: #fff3cf !important; }
.dock-tabs button.danger { color: #ff9c90 !important; }
.dock-tabs button.gold { background: linear-gradient(#e2b54e, #9d7322) !important; color: #1b1406 !important; text-shadow: none; border-color: #000 !important; }

/* ---------- chat ---------- */
.chat {
  background: linear-gradient(var(--hud-top), var(--hud-bot)) !important; border: 1px solid var(--hud-edge) !important; border-radius: 3px !important;
  box-shadow: inset 0 1px 0 var(--hud-hi), inset 0 0 0 1px var(--hud-ring), 0 10px 24px #000c !important; backdrop-filter: none !important;
}
.chat h4.tabs { background: #0000004d; border-bottom: 1px solid #000 !important; gap: 2px !important; padding: 3px 3px 0 !important; }
.chat .tab {
  font: 600 10px var(--hud-font) !important; letter-spacing: .3px !important; text-transform: none !important; color: #9ea1ab !important;
  background: linear-gradient(#2e2f35, #222327) !important; border: 1px solid #000 !important; border-bottom: 0 !important; border-radius: 2px 2px 0 0;
  padding: 4px 10px !important;
}
.chat .tab.on { color: #fff !important; background: linear-gradient(#45464e, #33343a) !important; box-shadow: inset 0 2px 0 var(--hud-gold); }
.chat .tab.new { color: #ff9c4a !important; }
.chat .log { font: 11px/1.45 var(--hud-font) !important; background: #00000040; }
.chat .log .from { color: #f0f000 !important; }
.chat form { border-top: 1px solid #000 !important; background: #00000033; }
.chat input, .chat form .btn { background: #0d0e10 !important; border: 1px solid #000 !important; border-radius: 2px !important; box-shadow: inset 1px 1px 0 #00000090, 0 0 0 1px #ffffff10; font: 11px var(--hud-font) !important; }
.chat form .btn { background: linear-gradient(#3a3b42, #26272c) !important; color: var(--hud-title) !important; }

/* ---------- barra do topo ---------- */
.topbar {
  background: linear-gradient(#26272c, #17181b) !important; border-bottom: 1px solid #000 !important;
  box-shadow: inset 0 -1px 0 #ffffff0d, 0 2px 10px #0008; font-family: var(--hud-font);
}
.topbar .stat { border-left: 1px solid #000 !important; box-shadow: inset 1px 0 0 #ffffff0d; }
.topbar .stat small { font: 9px var(--hud-font) !important; color: var(--hud-dim) !important; }
.topbar .stat b { font: 600 13px var(--hud-font) !important; }
.nav { border-radius: 2px !important; }
.nav:hover { background: linear-gradient(#3a3b42, #26272c) !important; border-color: #000 !important; box-shadow: inset 0 1px 0 #ffffff1f; }
.nav.primary { background: linear-gradient(#4a3c1a, #2c230d) !important; border-color: #000 !important; box-shadow: inset 0 1px 0 #ffffff1f, inset 0 0 0 1px #f0c86055; }
.nav small { font: 9px var(--hud-font) !important; color: #c9ccd4 !important; }

/* ---------- descrições (itens e magias) ---------- */
.item-tip {
  background: linear-gradient(#26272c, #18191c) !important; border: 1px solid #000 !important; border-radius: 3px !important;
  box-shadow: inset 0 0 0 1px var(--hud-ring), 0 10px 28px #000c !important; font: 11px/1.45 var(--hud-font) !important;
}
.item-tip .it-head { font: 600 12px var(--hud-font) !important; }
.item-tip .it-desc { font-family: var(--hud-font) !important; }

/* menus do item */
.item-menu { background: linear-gradient(#2a2b31, #1a1b1f) !important; border: 1px solid #000 !important; border-radius: 3px !important; box-shadow: inset 0 0 0 1px var(--hud-ring), 0 10px 28px #000c !important; font: 11px var(--hud-font) !important; }
.stage .win canvas, .stage .creature canvas { position: static !important; width: auto !important; height: auto !important; inset: auto !important; }
/* barra de baixo entre o chat e a coluna da direita (não fica embaixo das janelas) */
@media (min-width: 981px) {
  .dock { right: 266px !important; }
  .vitals { width: 160px !important; }
  .actslots { grid-template-columns: repeat(10, 36px) !important; }
  button.act { width: 36px !important; height: 36px !important; }
  .controls { min-width: 168px !important; }
}
/* analisador compacto: a coluna da esquerda cabe acima do chat */
.ana-kills { max-height: 92px !important; }
.ana-kill { gap: 5px; padding: 0; }
.ana-stat { padding: 2px 6px !important; }
.ana-stat b { font-size: 12px !important; }
.ana-grid { margin-top: 5px !important; }
.win-loot .bag { max-height: 84px !important; }

/* ---------- botões das janelas (topo) ---------- */
.wintools { display: flex; gap: 2px; padding: 2px; margin-right: 6px; background: #00000040; border: 1px solid #000; border-radius: 3px; box-shadow: inset 0 1px 0 #ffffff0d; }
.wtool { display: grid; justify-items: center; align-content: center; gap: 1px; width: 52px; height: 42px; padding: 2px 0 1px; cursor: pointer;
  background: linear-gradient(#2e2f35, #1f2024); border: 1px solid #000; border-radius: 2px; color: #9ea1ab; box-shadow: inset 0 1px 0 #ffffff17; }
.wtool span { font-size: 16px; line-height: 22px; height: 22px; }
.wtool small { font: 8.5px var(--hud-font); white-space: nowrap; }
.wtool:hover { background: linear-gradient(#3e3f47, #2a2b30); color: #fff; }
.wtool.on { background: linear-gradient(#4a3c1a, #2c230d); color: var(--hud-title); box-shadow: inset 0 1px 0 #ffffff1f, inset 0 0 0 1px #f0c86066; }
@media (max-width: 1300px) { .wtool small { display: none; } .wtool { width: 34px; height: 34px; } }

/* ---------- preparar caçada / detalhes da caçada (igual ao Huntera) ---------- */
.prep-mode .body { padding-top: 6px; }
.pv-back { background: none; border: 0; color: #9ab0ff; cursor: pointer; padding: 4px 0 10px; font: 12px var(--hud-font); }
.pv-head { display: grid; grid-template-columns: 80px 1fr 260px; gap: 14px; align-items: center; padding: 10px 0 14px; border-bottom: 1px solid #000; box-shadow: 0 1px 0 #ffffff0d; }
.pv-mon { width: 72px; height: 72px; display: grid; place-items: center; }
.pv-title h2 { margin: 0 0 4px; font: 600 22px var(--hud-font); color: #fff; display: flex; align-items: center; gap: 10px; }
.pv-star { font-size: 18px; color: #8d909b; }
.pv-star.on { color: var(--hud-gold); }
.pv-title p { margin: 0 0 6px; color: #b9bcc6; font-size: 12px; }
.pv-warn { color: #ff8a7a !important; }
.pv-rec { border-left: 1px solid #000; box-shadow: -1px 0 0 #ffffff0d; padding: 4px 0 4px 14px; font-size: 11px; }
.pv-rec > b { display: block; color: #fff; font-size: 12px; margin-bottom: 6px; }
.pv-rec p { margin: 0; color: var(--hud-dim); font-style: italic; }
.pv-rec-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; color: var(--hud-dim); }
.pv-rec-row b { color: #fff; }
.pv-rec-row b.gold { color: var(--hud-gold); }
.pv-rec-row b.neg { color: #ff6b5e; }
.pv-cols { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.15fr); gap: 0; }
.pv-left { padding: 14px 16px 10px 0; border-right: 1px solid #000; box-shadow: 1px 0 0 #ffffff0d; }
.pv-right { padding: 14px 0 10px 16px; min-width: 0; }
.pv-left h5 { margin: 0 0 8px; font: 600 12px var(--hud-font); color: #e8e8ea; }
.pv-left h5 + * { margin-bottom: 16px; }
.pv-pulls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pv-pull { height: 52px; cursor: pointer; font: 600 13px var(--hud-font); color: #d6d8de; background: linear-gradient(#24262d, #1b1c21); border: 1px solid #000; border-radius: 3px; box-shadow: inset 0 0 0 1px #3c3d45; }
.pv-pull:hover { box-shadow: inset 0 0 0 1px #6b6d78; }
.pv-pull.on { color: #9ab8ff; background: linear-gradient(#2d3448, #20263a); box-shadow: inset 0 0 0 1px #7d9cff, 0 0 10px #6b8cff40; }
.pv-mobs { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-mob { display: grid; justify-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; color: #c9ccd4; font: 10px var(--hud-font); width: 80px; }
.pv-mob-ico { position: relative; width: 72px; height: 62px; display: grid; place-items: center; background: #101114; border: 1px solid #000; border-radius: 3px; box-shadow: inset 0 0 0 1px #3c3d45; overflow: hidden; }
.pv-mob-ico small { position: absolute; left: 0; right: 0; bottom: 0; font: 7px var(--hud-font); letter-spacing: .5px; color: #8d909b; background: #000a; text-align: center; padding: 1px 0; opacity: 0; transition: opacity .15s; }
.pv-mob:hover .pv-mob-ico { box-shadow: inset 0 0 0 1px var(--hud-gold); }
.pv-mob:hover .pv-mob-ico small { opacity: 1; }
.pv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-opts label { display: grid; gap: 3px; font: 10px var(--hud-font); color: var(--hud-dim); }
.pv-opts select, .pv-opts input { width: 100%; }
.pv-foot { display: flex; align-items: center; gap: 10px; }
.pv-sum { margin-right: auto; color: #9ab0ff; font: 11px var(--hud-font); }
.pv-modal { width: min(920px, 96vw) !important; }
.pv-dname { margin: 0 0 10px; font: 600 18px var(--hud-font); color: #9ab8ff; }
.details .pv-mobs { margin: 10px 0; }

.lc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.lc-head b { font: 600 12px var(--hud-font); color: #e8e8ea; }
.lc-modes { display: flex; gap: 2px; background: #00000050; border-radius: 999px; padding: 2px; }
.lc-mode { background: none; border: 0; color: #9ea1ab; font: 10px var(--hud-font); padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.lc-mode.on { background: #2d3448; color: #cfdaff; }
.lc-cols { display: grid; grid-template-columns: 1fr 50px 110px; text-align: center; font: 8.5px var(--hud-font); color: #8d909b; letter-spacing: .6px; padding: 0 8px 4px; }
.lc-cols span:first-child { grid-column: 2; }
.lc-list { display: grid; gap: 4px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.lc-row { display: grid; grid-template-columns: 34px 1fr 62px 50px 110px; align-items: center; gap: 6px; padding: 6px 8px; min-height: 54px;
  background: linear-gradient(#22242b, #1b1c21); border: 1px solid #000; border-radius: 3px; box-shadow: inset 0 0 0 1px #33353d; }
.lc-row.off > .item, .lc-row.off .lc-name { opacity: .45; }
.lc-name { min-width: 0; display: grid; }
.lc-name b { font: 12px var(--hud-font); color: #e8e8ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-name small { font: 9.5px var(--hud-font); color: #8d909b; }
.lc-name small.lc-imb { color: #e8a65a; }
.lc-rar { font: 9px var(--hud-font); text-align: center; color: #8d909b; }
.lc-rar.r-common { color: #a8abb4; }
.lc-rar.r-uncommon { color: #8fc6ff; }
.lc-rar.r-semi { color: #c7a2ff; }
.lc-rar.r-rare { color: #ffb45e; }
.lc-pick { justify-self: center; width: 18px; height: 18px; accent-color: #7d9cff; cursor: pointer; }
.lc-dest { width: 100%; font: 11px var(--hud-font); background: #0d0e10; color: #e8e8ea; border: 1px solid #000; border-radius: 2px; padding: 3px; }
.lc-fixed { justify-self: center; color: var(--hud-gold); font-size: 14px; }
.lc-dash { text-align: center; color: #555; }
.lc-empty { text-align: center; }
@media (max-width: 760px) { .pv-cols, .pv-head { grid-template-columns: 1fr; } .pv-left { border-right: 0; box-shadow: none; padding-right: 0; } .pv-right { padding-left: 0; } }
.vit-floor { color: #cfdaff; font-size: 10px; margin-left: 4px; }

/* ---------- editor de rota com andares (Painel Admin) ---------- */
.ad-floors { display: flex; gap: 4px; flex-wrap: wrap; }
.ad-floor { display: grid; text-align: left; padding: 5px 10px; cursor: pointer; background: linear-gradient(#2e2f35, #1f2024); border: 1px solid #000; border-radius: 3px; color: #c9ccd4; box-shadow: inset 0 1px 0 #ffffff17; }
.ad-floor b { font: 600 11px var(--hud-font); }
.ad-floor small { font: 9px var(--hud-font); color: #8d909b; }
.ad-floor.on { background: linear-gradient(#2d3448, #20263a); color: #cfdaff; box-shadow: inset 0 0 0 1px #7d9cff; }
.ad-editor { display: grid; grid-template-columns: 1fr 230px; gap: 8px; align-items: start; }
.ad-wpside { background: #0d0e10; border: 1px solid #000; border-radius: 3px; padding: 6px; max-height: 62vh; overflow-y: auto; }
.ad-wpside > b { display: block; font: 600 11px var(--hud-font); margin-bottom: 4px; color: #e3cf98; }
.ad-wplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ad-wp { display: grid; grid-template-columns: 1fr auto auto auto; gap: 2px; align-items: center; }
.ad-wp.here .ad-wp-go { background: #1a2236; }
.ad-wp-go { display: grid; grid-template-columns: 14px 1fr; column-gap: 4px; text-align: left; background: none; border: 0; color: #e4e6ea; font: 11px var(--hud-font); padding: 3px 4px; border-radius: 2px; cursor: pointer; }
.ad-wp-go i { font-style: normal; grid-row: span 2; align-self: center; }
.ad-wp-go small { grid-column: 2; color: #8d909b; font-size: 9px; }
.ad-wp-btn { width: 20px; height: 20px; padding: 0; background: #22242b; border: 1px solid #000; color: #c9ccd4; border-radius: 2px; cursor: pointer; font-size: 11px; }
.ad-wp-btn.del { color: #ff8a7a; }
.ad-wp-empty { padding: 6px; font-size: 11px; }
.ad-hint { font: 11px var(--hud-font); min-height: 16px; }
@media (max-width: 900px) { .ad-editor { grid-template-columns: 1fr; } }

/* treino */
.train-bar { position: fixed; top: 52px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 12px; padding: 6px 12px; background: #1c1a14ee; border: 1px solid var(--gold-2); border-radius: 6px; color: var(--gold); font-size: 13px; white-space: nowrap; }
.train-pane { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.train-pane p { margin: 4px 0 8px; }
.train-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.train-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.train-method { padding: 10px; border: 1px solid #3a3a3a; border-radius: 6px; }
.train-now { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--gold-2); border-radius: 6px; }
.train-auto { display: block; font-size: 12px; }


/* ----- visual black moderno (escolhido pelo dono): por cima de tudo acima ----- */
:root{--bg:#000;--panel:#0b0b0d;--panel-2:#141417;--line:#1f1f24;--line-2:#2c2c33;--text:#f2f2f5;--muted:#7d7d88;--gold:#f5c542;--gold-2:#c79a2a;--accent:#fff;--radius:12px}
html,body,button,input,select{font-family:Inter,"Segoe UI",system-ui,sans-serif!important}
.topbar{background:#000d!important;backdrop-filter:blur(14px);border-bottom:1px solid #1f1f24!important}
.win,.float-panel{background:#0b0b0dd9!important;backdrop-filter:blur(14px);border:1px solid #232328!important;border-radius:14px!important;box-shadow:0 12px 40px #000c!important;overflow:hidden}
.modal{background:#0b0b0d!important;border:1px solid #232328!important;border-radius:18px!important;box-shadow:0 30px 90px #000!important}
.win-head,.float-panel h4,.modal header,.modal footer{background:transparent!important;border-color:#1b1b20!important;color:#a8a8b3!important;font-weight:500;letter-spacing:.3px}
.win-body,.modal .body{background:transparent!important}
.btn,.dock-tabs button,.adv-tab,.adv-sub,.stance,.win-btn{background:#151518!important;border:1px solid #26262c!important;border-radius:10px!important;color:#e8e8ec!important;box-shadow:none!important}
.btn:hover,.dock-tabs button:hover{background:#1f1f24!important;border-color:#3a3a42!important}
.btn.primary,.dock-tabs button.gold{background:#fff!important;color:#000!important;border-color:#fff!important;font-weight:600}
.nav,.wtool{background:transparent!important;border:1px solid transparent!important;border-radius:10px!important}
.nav:hover,.wtool:hover{background:#17171a!important}
.nav.primary{background:#fff!important}
.nav small{color:#8e8e99!important;font-weight:500}
.nav .ic{filter:grayscale(1) brightness(1.3)}
.slot,.cell,.act,button.act{background:#101013!important;border:1px solid #222227!important;border-radius:9px!important;box-shadow:none!important}
button.act.assigned{border-color:#3a3a42!important}
button.act:hover,.cell.item:hover{border-color:#fff!important;outline:none!important}
.bar{border:none!important;border-radius:99px!important;background:#1a1a1e!important}
.bar.hp>i{background:#ff4d5e!important}.bar.mana>i{background:#4d8dff!important}.bar.xp>i,.bar.exp>i{background:#f5c542!important}
.actionbar{background:#0b0b0de6!important;backdrop-filter:blur(14px);border:1px solid #232328!important;border-radius:16px!important}
.dock-tabs{background:transparent!important;border:none!important}
.log{background:transparent!important}
.adv-card{background:#101013!important;border:1px solid #222227!important;border-radius:14px!important}
.adv-search,input[type=text],input[type=number],select{background:#101013!important;border:1px solid #26262c!important;border-radius:10px!important;color:#f2f2f5!important}
.card,.cyclo,.item-menu,.im-sub,.item-tip{background:#0b0b0d!important;border-color:#232328!important;box-shadow:0 20px 60px #000!important}
.cyclo{border-radius:18px!important}
.cyclo-back{background:#000c!important}
.cy-head,.cy-tabs{background:transparent!important;border-color:#1b1b20!important}
.cy-side,.cy-foot{border-color:#1b1b20!important}
.cy-head *{color:#a8a8b3!important}
.cy-tab,.cy-view,.cy-card,.cy-mcard,.cy-tile,.cy-hero,.cy-phase,.cy-summary,.cy-droprow,.cy-lootrow,.cy-attrs div,.cy-res,.cy-icon,.cy-bigicon,.cy-pager button,.cw-stat,.pv-pull,.pv-mob-ico,.ac-item,.ac-detail,.ad-item,.ad-row{background:#101013!important;border-color:#222227!important;box-shadow:none!important}
.cy-tab.on,.cy-view.on,.pv-pull.on{background:#fff!important;border-color:#fff!important;color:#000!important}
.cy-tab:hover,.cy-mcard:hover,.cy-droprow:hover,.cy-lootrow:hover,.cy-card:hover,.cy-input:focus{border-color:#3a3a42!important}
.cy-cat:hover,.im-row:hover:not(:disabled){background:#17171a!important}
.cy-cat.on{background:#1c1c20!important;border-color:#3a3a42!important}
.cy-mcard.done{background:#101013!important;border-color:#2f7a45!important}
.cy-input,.cy-select{background:#101013!important;border-color:#26262c!important}
.im-head{color:#a8a8b3!important;border-color:#1b1b20!important}
.cw-portrait{background:radial-gradient(circle at 50% 60%,#232328,#0b0b0d 70%)!important}
.cy-side{background:transparent!important}
.dname-star{position:static!important;display:inline-block;margin-left:10px;font-size:16px;vertical-align:middle}
.mob-tip{position:fixed;z-index:95;width:256px;padding:10px 12px;display:grid;gap:4px;border:1px solid #2c2c33;border-radius:10px;font-size:11px;pointer-events:none}
.mob-tip>b{font-size:13px;color:#fff}
.mob-tip small{font-size:9.5px;letter-spacing:.8px;color:#7d7d88}
.mob-tip p{margin:4px 0 0;padding-top:6px;border-top:1px solid #232328;color:#a8a8b3}
.mt-row{display:grid;grid-template-columns:18px 70px 1fr 38px;align-items:center;gap:4px;color:#c8c8d0}
.mt-row>b{text-align:right;color:#fff;font-weight:500}
.mt-bar{height:7px;border-radius:99px;background:#1a1a1e;overflow:hidden}
.mt-bar i{display:block;height:100%;background:#4d8dff}
.mt-bar i.weak{background:#ff4d5e}
.mt-bar i.strong{background:#4caf50}
.mt-best{display:grid;gap:4px}
.mt-best:not(:empty){margin-top:4px;padding-top:6px;border-top:1px solid #232328}
.mt-best-top{display:flex;justify-content:space-between;align-items:center}
/* barra de cima limpa */
.topbar{position:relative;z-index:40}
.navbar{gap:5px}
.wintools{display:flex;gap:5px;padding:0;margin-right:10px;padding-right:10px;background:transparent!important;border:0!important;border-right:1px solid #232328!important;box-shadow:none!important;border-radius:0}
.nav,.wtool{display:grid!important;place-items:center;min-width:0!important;width:40px;height:40px;padding:0!important;background:linear-gradient(#1c1c20,#101013)!important;border:1px solid #2c2c33!important;border-radius:10px!important;box-shadow:inset 0 1px 0 #ffffff12,0 2px 6px #0008!important;transition:border-color .12s,transform .12s,background .12s}
.nav:hover,.wtool:hover{background:linear-gradient(#26262b,#17171a)!important;border-color:#8e8e99!important;transform:translateY(-1px)}
.nav .ic{filter:none!important;line-height:0;font-size:0}
.nav.primary{background:linear-gradient(#3a2f12,#1f1908)!important;border-color:#f5c542!important}
.nav.primary:hover{background:linear-gradient(#4a3c17,#2a220c)!important;border-color:#ffe08a!important}
.wtool.on{border-color:#f2f2f5!important}
.wtool:not(.on)>*{opacity:.4}
.wtool span{height:auto;line-height:1}
/* chat pequeno no canto esquerdo, barra de ações ao lado (a janela tem zoom .8) */
@media (min-width:821px){
.chat{left:10px!important;right:auto!important;bottom:8px!important;width:360px!important;height:190px!important}
.dock{left:306px!important;bottom:8px!important;transform:none!important;max-width:none!important}
}
@media (min-width:821px) and (max-width:1100px){
.chat{width:280px!important;height:170px!important}
.dock{left:242px!important;right:8px!important}
.controls{display:grid!important;min-width:140px!important}
.vitals{display:grid!important;width:100px!important}
.nav,.wtool{width:32px;height:32px}
}
/* janela estreita: a barra ocupa a largura toda e o chat pequeno fica à esquerda, logo acima dela */
@media (max-width:820px){
.dock{left:8px!important;right:8px!important;bottom:8px!important;transform:none!important;max-width:none!important}
.chat{left:10px!important;right:auto!important;width:240px!important;height:120px!important;bottom:165px!important}
/* Alvo, Conjunto e Pull também no celular (o tutorial pede para mexer no Alvo) */
.controls{display:grid!important;min-width:0!important}
.actionbar{flex-wrap:wrap;justify-content:center}
/* a barra do alto quebra em linhas: numa linha só ela deixava a tela mais larga que o celular (e o botão do tutorial ficava fora) */
.topbar,.navbar{flex-wrap:wrap}
}
.pv-rec-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pv-rec-top b { color: #fff; font-size: 12px; }
/* Highscores (molde do Huntera): categorias à esquerda, vocação em cima, tabela com páginas */
.modal.hsx-modal { width: min(880px, 96vw); }
.hsx { display: grid; grid-template-columns: 190px 1fr; gap: 12px; min-height: 470px; }
.hsx-side { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid #22222a; border-radius: 10px; background: #0f0f12; }
.hsx-cat { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: none; color: #b8b8c2; font: 500 13px system-ui, sans-serif; text-align: left; cursor: pointer; }
.hsx-cat i { width: 18px; font-style: normal; text-align: center; }
.hsx-cat:hover { background: #17171c; color: #fff; }
.hsx-cat.on { background: #1a1a22; border-color: #c9a43c88; color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.hsx-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hsx-vocs { display: flex; flex-wrap: wrap; gap: 6px; }
.hsx-voc { padding: 6px 14px; border: 1px solid #2a2a31; border-radius: 999px; background: #121216; color: #b8b8c2; font: 500 12.5px system-ui, sans-serif; cursor: pointer; }
.hsx-voc:hover { color: #fff; border-color: #3a3a42; }
.hsx-voc.on { color: #1a1206; background: linear-gradient(#f0c45a, #c99a36); border-color: #c99a36; font-weight: 700; }
.hsx-table { display: flex; flex-direction: column; border: 1px solid #22222a; border-radius: 10px; overflow: hidden; background: #0f0f12; }
.hsx-tr { display: grid; grid-template-columns: 64px 1fr 150px 70px; align-items: center; gap: 8px; padding: 7px 14px; border-bottom: 1px solid #1a1a20; font-size: 13px; }
.hsx-th { background: #15151a; color: #8e8e99; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.hsx-th span:last-child, .hsx-val { text-align: right; }
.hsx-body { max-height: 430px; overflow: auto; }
.hsx-body .hsx-tr:nth-child(even) { background: #121216; }
.hsx-body .hsx-tr:hover { background: #18181e; }
.hsx-pos { color: #8e8e99; font-weight: 700; }
.hsx-tr.top1 .hsx-pos { color: #f0c45a; }
.hsx-tr.top2 .hsx-pos { color: #c6cdd8; }
.hsx-tr.top3 .hsx-pos { color: #d08a52; }
.hsx-name { display: flex; flex-direction: column; min-width: 0; }
.hsx-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ececf1; font-weight: 600; }
.hsx-name small { color: #8e8e99; font-size: 11px; }
.hsx-vocn { color: #9a9aa6; font-size: 12.5px; }
.hsx-val { color: #ececf1; font-weight: 600; font-variant-numeric: tabular-nums; }
.hsx-tr.me { box-shadow: inset 3px 0 0 #5cc27e; background: #13201a !important; }
.hsx-empty { padding: 24px; text-align: center; }
.hsx-foot { color: #8e8e99; font-size: 12px; }
.hsx-pager { display: flex; align-items: center; gap: 6px; color: #b8b8c2; font-size: 12px; }
.hsx-pg { width: 26px; height: 26px; border: 1px solid #2a2a31; border-radius: 6px; background: #121216; color: #e8e8ec; cursor: pointer; }
.hsx-pg:disabled { opacity: .35; cursor: default; }
@media (max-width: 680px) { .hsx { grid-template-columns: 1fr; } .hsx-side { flex-direction: row; overflow-x: auto; } .hsx-cat { white-space: nowrap; } .hsx-tr { grid-template-columns: 44px 1fr 60px; } .hsx-vocn { display: none; } }
.cy-tabs.five { grid-template-columns: repeat(5, 1fr); }
.ad-addrow { display: flex; gap: 6px; }
.ad-addrow input { flex: 1; min-width: 0; }
.ad-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ad-newrow { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 10px; align-items: center; padding: 6px 0; border-top: 1px solid #ffffff14; }
.ad-newrow small { grid-column: 1; grid-row: 2; color: var(--hud-dim); }
.ad-newrow i { grid-column: 2; grid-row: 1 / 3; color: var(--hud-dim); }
.ad-newrow button { grid-column: 3; grid-row: 1 / 3; }
select option { background: #101114; color: #eceef2; }
select option:checked { background: #2a2c33; color: #fff; }
.hud-ico { display: block; }
img[src^="/assets/hud/"][src$=".png"] { image-rendering: pixelated; } /* desenhos do dono em pixel art: sem borrar */
/* Barras de vida e mana: moldura de aço escuro e brilho de vidro */
.vitals { gap: 4px; }
.vitals .bar.hp, .vitals .bar.mana {
  height: 19px; background: linear-gradient(#050608, #14161b) !important; border: 1px solid #000 !important; border-radius: 3px !important;
  box-shadow: 0 0 0 1px #4d535d, 0 0 0 2px #000, inset 0 2px 4px #000 !important;
}
.vitals .bar.hp > i, .vitals .bar.mana > i { transition: width .25s ease-out; box-shadow: inset 0 -3px 5px #0007, 1px 0 0 #fff5; }
.vitals .bar.hp > i { background: linear-gradient(#ff7a68 0, #d9301f 22%, #a81b11 58%, #5e0b06 100%) !important; }
.vitals .bar.mana > i { background: linear-gradient(#83aaff 0, #3564e0 22%, #2143ad 58%, #0e2163 100%) !important; }
.vitals .bar.hp::after, .vitals .bar.mana::after { content: ''; position: absolute; inset: 1px 1px 55% 1px; border-radius: 2px 2px 0 0; background: linear-gradient(#ffffff38, #ffffff08); pointer-events: none; }
.bar > b.barrier {
  position: absolute; inset: 0 auto 0 0; width: 0; transition: width .25s ease-out;
  background: linear-gradient(#e6f8ff99, #8fdcff55 45%, #49b6f04d);
  box-shadow: inset 0 0 0 1px #d8f6ffcc, inset 0 0 7px #a8e8ff, 0 0 6px #7fd8ff;
}
/* botões do topo: quadrados com moldura de metal, só o ícone; o nome aparece ao passar o mouse (title) */
.topbar .nav,.topbar .wtool{width:42px!important;height:42px!important;min-width:0!important;padding:0!important;display:grid!important;place-items:center;border-radius:3px!important;border:1px solid #000!important;background:radial-gradient(circle at 50% 35%,#2a3550,#111724 75%)!important;box-shadow:inset 0 0 0 1px #66718a,inset 0 0 0 2px #0a0d14,inset 0 3px 8px #000a,0 1px 3px #000a!important;transform:none!important;transition:box-shadow .12s,filter .12s}
.topbar .nav:hover,.topbar .wtool:hover{filter:brightness(1.2);background:radial-gradient(circle at 50% 35%,#2a3550,#111724 75%)!important;box-shadow:inset 0 0 0 1px #c9d3ea,inset 0 0 0 2px #0a0d14,inset 0 3px 8px #000a,0 0 7px #8fb0ff66!important}
.topbar .nav:active,.topbar .wtool:active{filter:brightness(.88)}
.topbar .nav.primary,.topbar .wtool.on{box-shadow:inset 0 0 0 1px #e6b450,inset 0 0 0 2px #0a0d14,inset 0 3px 8px #000a,0 0 7px #e6b45055!important}
.topbar .nav .ic,.topbar .wtool span{display:grid;place-items:center;line-height:0}
.topbar .nav .hud-ico,.topbar .wtool .hud-ico{width:32px!important;height:32px!important}
.topbar .nav small,.topbar .wtool small{display:none!important}
/* loja do NPC */
.shop{width:min(760px,84vw)}
.shop-head{display:flex;align-items:center;gap:6px;margin-bottom:10px}
.shop-note{margin:0 0 10px;padding:6px 10px;background:#3a2f1266;border:1px solid #6e5a22;border-radius:4px;color:#e8d7a0;font-size:13px}
.shop-note[hidden],.shop-filters[hidden]{display:none}
.shop-main{display:grid;grid-template-columns:1fr 230px;gap:14px;min-height:380px}
.shop-left{display:flex;flex-direction:column;gap:8px;min-width:0}
.shop-filters{display:flex;flex-wrap:wrap;gap:4px}
.shop-filters .btn.on{border-color:#f5c542;color:#ffe08a}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(42px,1fr));gap:4px;align-content:start;max-height:380px;overflow:auto;padding:2px}
.shop-cell{width:auto;aspect-ratio:1;padding:0;display:grid;place-items:center;cursor:pointer}
.shop-cell.on{outline:2px solid #f5c542;outline-offset:-1px}
.shop-detail{display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center;padding:12px;background:#ffffff08;border:1px solid var(--line);border-radius:6px}
.shop-pic{display:grid;place-items:center;width:84px;height:84px;background:#0006;border-radius:6px}
.shop-name{font-size:15px}
.shop-qty{display:flex;flex-direction:column;gap:4px;width:100%;font-size:12px}
.shop-qty .ad-inline{justify-content:center;gap:4px}
.shop-qty input{width:64px;text-align:center}
.shop-total{display:flex;justify-content:space-between;width:100%;padding:6px 8px;background:#0005;border-radius:4px;font-size:13px}
.shop-grid>p{grid-column:1/-1;margin:8px 0}
.shop-bad{color:#ff8a7a}
.shop-detail .btn.primary{width:100%;margin-top:auto}
@media (max-width:700px){.shop-main{grid-template-columns:1fr}}
/* tier da forja: a faixa de números do Tibia (9×8 por tier) */
.item .tier-badge { position: absolute; left: 1px; top: 1px; width: 9px; height: 8px; background: url(/assets/tibia/ui/images/tiers-strip.png) no-repeat; image-rendering: pixelated; }


/* ===== Imbuing, Forja e Prey: layout e ícones do Tibia (tools/ui-images.ts), visual preto moderno ===== */
.modal.tw {
  --k-bg: #0b0c0f; --k-panel: #121418; --k-panel-2: #171a1f; --k-line: #24272e; --k-line-2: #30343d; --k-text: #e6e8ee; --k-dim: #8b909c; --k-gold: #e8b64c; --k-ok: #4fcf6f; --k-bad: #f0645a;
  width: min(840px, 100%); background: var(--k-bg); border: 1px solid var(--k-line-2); border-radius: 14px; box-shadow: 0 30px 90px #000e, 0 0 0 1px #000;
  color: var(--k-text); font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.modal.tw header { padding: 12px 16px; border-bottom: 1px solid var(--k-line); }
.modal.tw header h3 { font-size: 15px; font-weight: 600; letter-spacing: .2px; }
.modal.tw .body { padding: 12px; }
.tw-box { background: var(--k-panel); border: 1px solid var(--k-line); border-radius: 10px; padding: 10px; }
.tw-raised { background: var(--k-panel-2); border: 1px solid var(--k-line-2); border-radius: 10px; padding: 8px; }
.tw-h, .tw-box > h5, .tw-raised > h5 { margin: 0 0 8px; font-size: 11px; font-weight: 600; color: var(--k-dim); text-transform: uppercase; letter-spacing: .8px; }
.tw-dim { color: var(--k-dim); }
.tw-ok { color: var(--k-ok); }
.tw-bad { color: var(--k-bad); }
.tw-gold { color: var(--k-gold); font-weight: 600; }
.tw-white { color: #fff; font-weight: 600; }
.tw-slot { width: 38px; height: 38px; flex: none; display: grid; place-items: center; position: relative; padding: 0; background: #07080a; border: 1px solid var(--k-line); border-radius: 6px; color: inherit; transition: border-color .12s, box-shadow .12s; }
.tw-slot.big { width: 70px; height: 70px; border-radius: 10px; }
button.tw-slot { cursor: pointer; }
button.tw-slot:hover { border-color: #4a4f5c; }
.tw-slot.on { border-color: var(--k-gold); box-shadow: 0 0 0 1px var(--k-gold), 0 0 14px #e8b64c33; }
.tw-slot .tw-cnt { position: absolute; right: 2px; bottom: 0; font: 600 10px var(--hud-font); text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.tw-btn { min-height: 32px; padding: 0 14px; background: #1b1e24; border: 1px solid var(--k-line-2); border-radius: 8px; color: var(--k-text); font: 600 13px system-ui, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .12s, border-color .12s; }
.tw-btn:hover:not(:disabled) { background: #23272f; border-color: #474c58; }
.tw-btn.go { background: linear-gradient(#e8b64c, #c48f2a); border-color: #f0c766; color: #1a1306; }
.tw-btn.go:hover:not(:disabled) { background: linear-gradient(#f2c25a, #cf9a33); }
.tw-btn.on { background: #26221a; border-color: var(--k-gold); color: var(--k-gold); }
.tw-btn:disabled { opacity: .4; cursor: default; }
.tw-img { display: inline-block; flex: none; background-repeat: no-repeat; }
.tw-imgbtn { padding: 6px; border: 1px solid var(--k-line-2); border-radius: 10px; background: #15171c; cursor: pointer; display: grid; place-items: center; transition: background .12s, border-color .12s; }
.tw-imgbtn:hover:not(:disabled) { background: #1d2027; border-color: var(--k-gold); }
.tw-imgbtn:disabled { cursor: default; opacity: .45; }
.tw-tabs { display: flex; gap: 6px; margin-bottom: 10px; padding: 4px; background: var(--k-panel); border: 1px solid var(--k-line); border-radius: 10px; width: fit-content; }
.tw-tabs .tw-btn { border-color: transparent; background: none; min-height: 30px; }
.tw-tabs .tw-btn.on { background: #1f2229; border-color: var(--k-line-2); color: #fff; }
.tw-row { display: flex; gap: 8px; align-items: center; }
.tw-wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.tw-col { display: flex; flex-direction: column; gap: 8px; }
.tw-center { align-items: center; text-align: center; }
.tw-res { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tw-res > span, .tw-cost { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #fff; }
.tw-res > span { padding: 6px 12px; background: var(--k-panel); border: 1px solid var(--k-line); border-radius: 999px; }
.tw-cost .item, .tw-res .item { width: 18px !important; height: 18px !important; }
.tw-bar { width: 100%; height: 16px; position: relative; background: #07080a; border: 1px solid var(--k-line); border-radius: 999px; overflow: hidden; }
.tw-bar > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #2e9c4a, #4fcf6f); border-radius: 999px; }
.tw-bar > span { position: absolute; inset: 0; font: 600 10px/14px system-ui, sans-serif; text-align: center; color: #fff; text-shadow: 0 1px 2px #000; }
.tw-stars { color: var(--k-gold); letter-spacing: 1px; font-size: 13px; }
.tw-stars .off { color: #2d3038; }
.tw-msg { margin-top: 10px; padding: 8px 12px; color: var(--k-gold); background: #1c1912; border: 1px solid #3d3420; border-radius: 8px; }
.tw-big { font-size: 26px; font-weight: 600; color: #fff; }
.tw-check { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.tw-arrow { font-size: 20px; color: var(--k-dim); }
/* Imbuing */
.imb-layout { display: grid; grid-template-columns: 220px 1fr; gap: 10px; }
.imb-icon { width: 64px; height: 64px; background: url(/assets/tibia/ui/images/imbuing/imbuement-icons.png) no-repeat; background-size: 5248px 64px; border-radius: 8px; }
.imb-types { display: grid; grid-template-columns: repeat(auto-fill, 70px); gap: 6px; max-height: 232px; overflow-y: auto; }
.imb-mats { display: flex; gap: 6px; }
/* Forja */
.fg-layout { display: grid; grid-template-columns: 230px 1fr; gap: 10px; min-height: 300px; }
.fg-list { display: grid; grid-template-columns: repeat(auto-fill, 38px); gap: 4px; align-content: start; max-height: 300px; overflow: auto; }
.fg-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.fg-conv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fg-conv > div { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.fg-conv p { margin: 0; color: var(--k-dim); font-size: 12px; min-height: 34px; }
.fg-trade { display: flex; align-items: center; gap: 10px; }
/* Prey */
.prey-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.prey-col { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; min-height: 380px; }
.prey-creature { width: 100%; height: 100px; display: flex; align-items: center; justify-content: center; gap: 8px; background: radial-gradient(circle, #1b1e25, #08090b) !important; }
.prey-list { width: 100%; display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow-y: auto; padding: 4px !important; }
.prey-pick { display: flex; align-items: center; gap: 8px; padding: 3px 8px; background: none; border: 1px solid transparent; border-radius: 6px; color: var(--k-text); font: 13px system-ui, sans-serif; cursor: pointer; text-align: left; }
.prey-pick:hover { background: #1b1e24; }
.prey-pick.on { background: #26221a; border-color: var(--k-gold); color: #fff; }
.prey-pick .creature { flex: none; }
.prey-name { font-weight: 600; font-size: 14px; color: #fff; }
@media (max-width: 700px) {
  .imb-layout, .fg-layout, .prey-cols, .fg-conv { grid-template-columns: 1fr; }
  .prey-col { min-height: 0; }
}
/* lista de amigos (VIP do Tibia) */
.friends-add { display: flex; gap: 4px; margin-bottom: 6px; }
.friends-add input { background: #0d0f17; border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 6px; font-size: 12px; }
.friends-list { display: flex; flex-direction: column; gap: 1px; margin-bottom: 6px; max-height: 260px; overflow-y: auto; }
.friend { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 3px; cursor: pointer; font-size: 12px; }
.friend:hover { background: #ffffff0d; }
.friend .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.friend.on { color: #5fdc5f; }
.friend.on .dot { background: #3fbf3f; box-shadow: 0 0 6px #3fbf3f; }
.friend.off { color: #e05a5a; }
.friend.off .dot { background: #a33; }
.friend .fname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend small { color: var(--muted); }
/* Prey: as 9 criaturas em quadrados */
.prey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
.prey-sq { aspect-ratio: 1; display: grid; place-items: center; padding: 0; background: radial-gradient(circle, #1b1e25, #08090b); border: 1px solid #24272e; border-radius: 8px; cursor: pointer; overflow: hidden; transition: border-color .12s, box-shadow .12s; }
.prey-sq:hover { border-color: #4a4f5c; }
.prey-sq.on { border-color: #e8b64c; box-shadow: 0 0 0 1px #e8b64c, 0 0 14px #e8b64c33; }
.chat .tabs { overflow-x: auto; scrollbar-width: none; }
.chat .tab { white-space: nowrap; }
.chat .tab .tab-x { margin-left: 6px; opacity: .6; }
.chat .tab .tab-x:hover { opacity: 1; color: #ff6b6b; }
.fg-auto { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); cursor: pointer; }
.fg-auto input { accent-color: #c9a24a; }
.btn.rookie-weapon { display: inline-flex; align-items: center; gap: 6px; }
.btn.rookie-weapon.on { border-color: var(--gold) !important; color: var(--gold) !important; background: #2a2616 !important; box-shadow: 0 0 0 1px var(--gold) !important; }

/* anúncio de drop raro de boss */
.world-drop { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: rgba(20, 12, 0, .9); border: 1px solid #c9a227; color: #f5d76e; font-weight: 600; pointer-events: none; box-shadow: 0 0 12px rgba(201, 162, 39, .6); }
.world-drop b { color: #ff9f1a; }
.ad-crow > .ad-prem { display: flex; gap: 6px; align-items: center; }
/* Loja: tempo de premium */
.prem-modal { width: min(820px, calc(100vw - 32px)); }
.prem { display: grid; gap: 10px; text-align: center; }
.prem-kicker { letter-spacing: 0.14em; color: var(--muted); font-size: 11px; }
.prem h2 { margin: 0; font-size: 26px; }
.prem p { margin: 0; text-align: left; }
.prem-show { position: relative; display: grid; place-items: center; height: 260px; border: 1px solid var(--line); border-radius: 8px; background: radial-gradient(circle at 50% 50%, #1d2232, #11141d 70%); }
.prem-ring { width: 220px; height: 220px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.prem-ring img { width: 128px; height: 128px; filter: drop-shadow(0 4px 12px #0008); }
.prem-show code { position: absolute; right: 8px; bottom: 6px; font-size: 12px; }
.prem-price { display: grid; justify-items: center; margin-right: auto; margin-left: auto; }
.prem-price b { display: flex; gap: 4px; align-items: center; font-size: 20px; color: #9c8a5a; }
.prem-modal footer .btn.prem-coins { background: linear-gradient(#e6b65a, #b9862c) !important; color: #1b1203 !important; border-color: #6b4a12 !important; font-weight: 600; }
.prem-btn { display: flex; align-items: center; gap: 8px; margin: 0 8px; padding: 4px 12px 4px 8px; cursor: pointer; color: var(--text);
  background: linear-gradient(#4a3c1a, #2c230d); border: 1px solid #000; border-radius: 4px; box-shadow: inset 0 1px 0 #ffffff1f, inset 0 0 0 1px #f0c86077; }
.prem-btn:hover { box-shadow: inset 0 1px 0 #ffffff1f, inset 0 0 0 1px #ffe08a; }
.prem-btn span { display: grid; line-height: 1.15; text-align: left; }
.prem-btn small { font-size: 10px; }
.prey-locked { justify-content: center; gap: 10px; text-align: center; }
.ad-prem .btn, .ad-prem small { white-space: nowrap; }

/* Janela "Liberar addon" */
.aw-back { z-index: 70; }
.aw { width: min(740px, 100%); max-height: 100%; overflow: auto; background: #121624; border: 1px solid #2c3550; border-radius: 6px; box-shadow: 0 30px 90px #000; color: #d8deec; display: flex; flex-direction: column; }
.aw-top { padding: 10px 18px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #8fb0ff; background: #182038; border-bottom: 1px solid #2c3550; }
.aw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 10px; }
.aw-head small { text-transform: uppercase; letter-spacing: 1px; color: #8c94ad; font-size: 11px; }
.aw-head h2 { margin: 4px 0 0; color: var(--gold); font-size: 22px; }
.aw-seal { border: 1px solid #6b5326; color: #e8c98a; background: #1e1a14; border-radius: 4px; padding: 5px 10px; font-size: 12px; white-space: nowrap; }
.aw-main { display: grid; grid-template-columns: 1fr 1fr; margin: 0 18px; border: 1px solid #2c3550; border-radius: 4px; }
.aw-left { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; border-right: 1px solid #2c3550; text-align: center; }
.aw-looks { display: flex; align-items: center; gap: 16px; }
.aw-looks > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.aw-looks small { color: #8fb0ff; }
.aw-looks small.gold { color: var(--gold); }
.aw-look { background: radial-gradient(ellipse 45% 12% at 50% 88%, #2a3048 90%, transparent 100%); }
.aw-arrow { color: #8c94ad; font-size: 20px; }
.aw-right { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.aw-cols { display: flex; justify-content: space-between; align-items: baseline; }
.aw-cols b { text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.aw-cols small { color: #8c94ad; }
.aw-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1px solid #2c3550; border-radius: 4px; background: #161b2c; }
.aw-item.lack { border-color: #5a2a3a; }
.aw-ico { width: 36px; height: 36px; display: grid; place-items: center; background: #0d111c; border: 1px solid #2c3550; border-radius: 3px; }
.aw-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.aw-name small { color: #6fcf7a; font-size: 11px; }
.aw-item.lack .aw-name small, .aw-item.lack .aw-count b { color: #ff6b7a; }
.aw-count { font-family: monospace; color: #c9cfdd; white-space: nowrap; }
.aw-count b { color: #6fcf7a; }
.aw-coin { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe08a, #c08a1e); }
.aw-right hr { width: 100%; border: 0; border-top: 1px solid #2c3550; margin: 4px 0; }
.aw-warn { display: flex; gap: 12px; align-items: center; margin: 14px 18px 0; padding: 12px 14px; border: 1px solid #2c3550; border-radius: 4px; background: #161b2c; }
.aw-warn i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-style: normal; font-weight: 600; flex: none; }
.aw-warn div { display: flex; flex-direction: column; }
.aw-warn small { color: #8c94ad; }
.aw-note { text-align: center; margin: 12px 0; }
.aw-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px; border-top: 1px solid #2c3550; }
.ow-addon.locked { color: var(--muted); cursor: pointer; }
.ow-addon.locked:disabled, .ow-card.locked { opacity: .5; cursor: not-allowed; }
@media (max-width: 640px) { .aw-main { grid-template-columns: 1fr; } .aw-left { border-right: 0; border-bottom: 1px solid #2c3550; } }

.ow-owned { display: flex; gap: 8px; align-items: center; margin: 8px 0; color: var(--muted); font-size: 13px; cursor: pointer; }
.ow-prem { color: var(--gold); font-size: 11px; margin-top: -2px; }
.ow-card.locked:disabled { opacity: .45; }
.ow-addon { flex-direction: column; justify-content: center; gap: 4px; }
.ow-addon.locked .ow-lock { color: var(--gold); display: flex; align-items: center; gap: 6px; font-size: 12px; }
/* cadeado desenhado: arco + corpo */
.ow-padlock { position: relative; width: 10px; height: 8px; margin-top: 5px; background: var(--gold); border-radius: 2px; }
.ow-padlock::before { content: ''; position: absolute; left: 2px; top: -6px; width: 6px; height: 7px; border: 2px solid var(--gold); border-bottom: 0; border-radius: 4px 4px 0 0; box-sizing: border-box; }
.ana-head .ana-reset { padding: 1px 6px; font-size: 10px; flex: none; }
.prey-reroll-btn { margin: 4px 0 2px; }
/* trade entre jogadores */
.trade-modal { width: min(620px, 94vw); }
.trade { display: flex; flex-direction: column; gap: 8px; }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trade-side { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.trade-side h5, .trade-bag h5 { margin: 0; }
.trade-grid { display: grid; grid-template-columns: repeat(4, auto); gap: 4px; justify-content: center; }
.trade-goldrow { display: flex; align-items: center; gap: 6px; }
.trade-gold { width: 110px; text-align: center; }
.trade-ready { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.trade-status { margin: 0; }
.trade-bag { display: flex; flex-direction: column; gap: 6px; }
.trade-bag-grid { display: flex; flex-wrap: wrap; gap: 4px; max-height: 170px; overflow: auto; }
.trade-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trade-foot small { flex: 1; min-width: 160px; }
@media (max-width: 560px) { .trade-cols { grid-template-columns: 1fr; } }
/* casa de leilões (igual ao leilão do Huntera) */
.auction-modal { width: min(1100px, 96vw); }
.auction { gap: 12px; height: min(620px, 78vh); min-height: 0; }
.au-side { width: 260px; flex: none; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.au-search { width: 100%; }
.au-catwrap { position: relative; }
.au-catbtn { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #151a26; border: 1px solid #39405a; border-radius: 4px; color: #e6e9f2; cursor: pointer; }
.au-catbtn span { flex: 1; text-align: left; }
.au-caret { font-style: normal; color: #8e97ae; }
.au-catlist { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 2px); max-height: 300px; overflow: auto; background: #121726; border: 1px solid #39405a; border-radius: 4px; box-shadow: 0 8px 24px #000a; }
.au-catlist[hidden] { display: none; }
.au-catopt { width: 100%; display: flex; align-items: center; gap: 8px; padding: 5px 10px; background: none; border: 0; color: #d6dae6; cursor: pointer; text-align: left; }
.au-catopt span { flex: 1; }
.au-catopt small { color: #8e97ae; }
.au-catopt:hover, .au-catopt.on { background: #1f2638; }
.au-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #39405a; border-radius: 4px; overflow: hidden; }
.au-segbtn { padding: 6px 4px; background: #151a26; border: 0; border-right: 1px solid #39405a; border-bottom: 1px solid #39405a; color: #b7bdcf; font-size: 12px; cursor: pointer; }
.au-segbtn.on { background: #1f2a44; color: #8fb0ff; }
.au-list { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.au-item { display: flex; align-items: center; gap: 8px; padding: 5px 6px; background: none; border: 1px solid transparent; border-bottom-color: #ffffff0d; color: #e6e9f2; text-align: left; cursor: pointer; }
.au-item:hover { background: #ffffff08; }
.au-item.on { border-color: #6f8fd8; background: #1a2134; }
.au-item.dim { opacity: .55; }
.au-name { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.au-lvl { color: #6f8fd8; }
.au-tier { display: inline-block; padding: 0 5px; border: 1px solid #8a6a2a; border-radius: 3px; color: #e6b450; font-size: 10px; font-weight: 600; }
.au-empty { padding: 8px; }
.au-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; }
.au-head { display: flex; align-items: center; gap: 10px; }
.au-head b { font-size: 16px; }
.au-count { padding: 2px 10px; border: 1px solid #39405a; border-radius: 12px; color: #8e97ae; font-size: 12px; }
.au-tabs { display: flex; gap: 4px; border-bottom: 1px solid #39405a; }
.au-tab { padding: 6px 14px; background: none; border: 0; border-bottom: 2px solid transparent; color: #8e97ae; font-weight: 600; text-transform: uppercase; font-size: 12px; cursor: pointer; }
.au-tab.on { color: #8fb0ff; border-bottom-color: #8fb0ff; }
.au-note { margin: 0; padding: 6px 10px; background: #3a2f1255; border: 1px solid #6e5a2255; color: #e6c46a; font-size: 12px; }
.au-form { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; padding: 8px; background: #141a28; border: 1px solid #39405a; border-radius: 4px; }
.au-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #8e97ae; }
.au-form input { width: 120px; }
.au-books { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 0; }
.au-book { display: flex; flex-direction: column; border: 1px solid #39405a; border-radius: 4px; background: #121726; min-height: 260px; }
.au-book h5 { margin: 0; padding: 6px 10px; border-bottom: 1px solid #39405a; text-transform: uppercase; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.au-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.au-dot.buy { background: #7bd88f; }
.au-dot.sell { background: #e07a8a; }
.au-table { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.au-tr { display: grid; grid-template-columns: 1.4fr .6fr 1fr 1.1fr auto; gap: 6px; align-items: center; padding: 5px 10px; border-bottom: 1px solid #ffffff0a; font-size: 13px; }
.au-main > .au-table .au-tr { grid-template-columns: 1fr 2fr .8fr 1.1fr 1.2fr auto; }
.au-th { color: #8e97ae; font-size: 11px; text-transform: uppercase; }
.au-tbody { overflow: auto; }
.au-none { margin: auto; padding: 20px; color: #8e97ae; text-align: center; }
.au-sell { color: #e07a8a; font-weight: 600; }
.au-buy { color: #7bd88f; font-weight: 600; }
@media (max-width: 760px) { .auction { flex-direction: column; height: auto; } .au-side { width: auto; max-height: 50vh; } .au-books { grid-template-columns: 1fr; } }

/* ---------- aba Arena (Aventuras) ---------- */
.ar-tag { font: 600 10px var(--hud-font); color: #9fd49a; border: 1px solid #4f7a4b; border-radius: 3px; padding: 2px 6px; }
.adv-pane h5 { margin: 12px 0 8px; font: 600 12px var(--hud-font); color: #e8e8ea; }
.ar-items { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-item { display: grid; justify-items: center; gap: 4px; width: 80px; padding: 8px 4px; background: #101114; border: 1px solid #000; border-radius: 3px; box-shadow: inset 0 0 0 1px #3c3d45; color: #c9ccd4; font: 10px var(--hud-font); text-align: center; }
.ar-item.pick { cursor: pointer; }
.ar-item.pick:hover { box-shadow: inset 0 0 0 1px var(--hud-gold); }

/* aba Quests (cartões iguais ao Huntera) */
.qs-card .adv-info { gap: 3px; }
.qs-card .qs-name { color: #8fb4ff; }
.qs-card.done { border-color: #3f6b47 !important; background: #18221c !important; }
.qs-bar { height: 3px; margin-top: 4px; background: #3a3d48; border-radius: 2px; overflow: hidden; }
.qs-bar i { display: block; height: 100%; background: #c9d6c9; }
.qs-ok { color: #9fd49a; font-weight: 600; }
/* quantidade no próprio menu (sem janela do navegador) */
.item-menu .im-count { width: 90px; height: 24px; padding: 0 6px; background: #0f1220; color: var(--text); border: 1px solid #3a4260; border-radius: 3px; }

/* tela de entrada e de personagens: a logo grande no fundo escuro com o brilho da logo (roxo e azul) */
.auth-screen { gap: 14px; align-content: center;
  background: radial-gradient(900px 520px at 50% 18%, #3b1f6e55 0%, transparent 60%), radial-gradient(700px 420px at 50% 30%, #1e8fb033 0%, transparent 65%), radial-gradient(1200px 700px at 50% 120%, #0b0d18 0%, #07080d 70%); }
.auth-wrap { width: 100%; max-width: 440px; display: grid; justify-items: center; gap: 6px; }
.auth-logo { width: min(440px, 92vw); height: auto; filter: drop-shadow(0 12px 30px #6b4cff40) drop-shadow(0 2px 2px #000); user-select: none; -webkit-user-drag: none; }
.auth-logo.small { width: min(300px, 70vw); }
.auth-tag { margin: -6px 0 6px; text-align: center; color: #b8bfd8; font-size: 13px; }
.auth-card { width: 100%; background: linear-gradient(#161a2bdd, #10131fe6); border: 1px solid #2c3354; box-shadow: 0 24px 70px #000a, inset 0 1px 0 #ffffff0d; backdrop-filter: blur(4px); }
.auth-card label { display: block; margin: 12px 0 6px; color: #aab2cf; font-size: 12px; letter-spacing: .3px; }
.auth-card input { width: 100%; height: 40px; padding: 0 12px; background: #0b0e19; color: #e9ecf8; border: 1px solid #2f3757; border-radius: 8px; outline: none; transition: border-color .15s, box-shadow .15s; }
.auth-card input:focus { border-color: #8b6cff; box-shadow: 0 0 0 3px #8b6cff33; }
.auth-tabs { margin-top: 0; }
.auth-tabs .btn { height: 38px; border-radius: 8px; }
.auth-tabs .btn.on { background: linear-gradient(#3a2a72, #2a1f55); border-color: #8b6cff; color: #fff; }
.auth-card .btn.primary { height: 42px; font-weight: 600; letter-spacing: .3px; background: linear-gradient(#f2c14e, #c98a1b); color: #1b1203; border: 1px solid #ffd77a; box-shadow: 0 6px 18px #c98a1b40; }
.auth-card .btn.primary:hover:not(:disabled) { filter: brightness(1.08); }

/* aba Treino: três cartões (arma de exercício, online e offline) */
.train-method { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: linear-gradient(#1c2030, #181b29); border: 1px solid #2f3550; border-radius: 8px; }
.train-method b { font-size: 15px; color: #f1f3fb; }
.train-method p { flex: 1; margin: 0; line-height: 1.45; }
.train-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.train-ok { color: #9fd49a; font-weight: 600; padding: 8px 0; }
.gold-btn { color: #f2c14e !important; border-color: #c98a1b !important; background: #1d1810 !important; font-weight: 600; }

/* aba Quests: cartões em lista, detalhe com Missões e Recompensas, tela da missão com as salas */
.qs-grid { grid-template-columns: 1fr !important; }
.qs-card { flex-direction: row !important; align-items: center; }
.qs-card .adv-top { flex: 1; }
.qs-count { padding: 0 18px; white-space: nowrap; }
.qs-crumb { display: flex; align-items: center; gap: 10px; padding: 12px 16px 0; }
.qs-head { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #2a2f45; }
.qs-head h2 { margin: 0 0 4px; }
.qs-head p { margin: 0 0 4px; color: #c7cbe0; }
.qs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 14px 16px; }
.qs-cols > div + div { border-left: 1px solid #2a2f45; padding-left: 20px; }
.qs-cols h4 { margin: 0 0 10px; }
.qs-cols h6 { margin: 12px 0 8px; color: #7d86a8; letter-spacing: 1px; font-size: 11px; }
.qs-mission { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 14px; background: #1b1f30; border: 1px solid #2f3550; border-radius: 8px; color: inherit; cursor: pointer; }
.qs-mission:hover { border-color: #5865a0; }
.qs-mission.done { border-color: #3f6b47; }
.qs-mission > div { flex: 1; display: grid; gap: 4px; }
.qs-mission b { color: #8fb4ff; }
.qs-reward { display: grid; justify-items: center; gap: 4px; width: 90px; padding: 6px; background: #101114; border: 1px solid #000; border-radius: 3px; box-shadow: inset 0 0 0 1px #3c3d45; font-size: 11px; color: #c9ccd4; }
.qs-before { display: grid; gap: 0; align-content: start; }
.qs-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #23283b; }
.qs-row small { color: var(--muted); font-weight: 400; }
.qs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.qs-priv { margin-right: auto; display: flex; gap: 6px; align-items: center; color: #b9c0da; }
.qs-rooms { display: grid; gap: 6px; }
.qs-room { display: flex; align-items: center; gap: 10px; padding: 10px; background: #1b1f30; border: 1px solid #2f3550; border-radius: 6px; }
.qs-room > div { flex: 1; }
@media (max-width: 700px) { .qs-cols { grid-template-columns: 1fr; } .qs-cols > div + div { border-left: 0; padding-left: 0; } }

/* aba Bosses */
.bs-title { margin: 14px 16px 6px; }
.bs-kicker { letter-spacing: 1.5px; font-size: 11px; }
.bs-locked { color: #e8b04a; font-weight: 600; white-space: nowrap; }
.qs-row.col { flex-direction: column; gap: 8px; }
.bs-kills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bs-kill { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid #3a4060; border-radius: 999px; font-size: 12px; }
.bs-kill span { flex: 1; }
.bs-kill.ok { border-color: #3f6b47; color: #9fd49a; }
.bs-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid #2a2f45; position: sticky; bottom: 0; background: #12141f; }
.bs-why { color: #e8b04a; }

/* sala de quest/boss (layout do Huntera, cores do tema preto): detalhes à esquerda, sala à direita */
.rs-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 14px 16px; padding: 16px 18px; background: #101013; border: 1px solid #222227; border-radius: 14px; }
.rs-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rs-left .qs-crumb { padding: 0; }
.rs-left h6 { margin: 10px 0 4px; color: #7a7a85; letter-spacing: 1px; font-size: 11px; }
.rs-left p { margin: 0; color: #f2f2f5; line-height: 1.45; }
.rs-head { display: flex; gap: 14px; align-items: center; }
.rs-head h2 { margin: 0 0 4px; color: #ffffff; }
.rs-chest { color: #f5c542 !important; }
.ar-item.got { border-color: #f5c542; box-shadow: inset 0 0 0 1px #f5c542; }
.rs { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rs h4 { margin: 0; color: #f2f2f5; }
.rs > p { margin: 0; }
.rs-tags { display: flex; align-items: center; gap: 10px; }
.rs-ready { padding: 3px 10px; border: 1px solid #f5c542; border-radius: 999px; color: #f5c542; font-size: 13px; }
.rs-ready.ok { border-color: #9fd49a; color: #9fd49a; }
.rs-why { color: #f5c542; }
.rs-bar { display: flex; gap: 6px; }
.rs-input { flex: 1; min-width: 0; padding: 7px 9px; background: #0b0b0d; color: #f2f2f5; border: 1px solid #222227; border-radius: 10px; }
.rs-input:focus { outline: none; border-color: #ffffff; }
.rs-seats { display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.rs-seat { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #222227; border-radius: 10px; background: #0b0b0d; }
.rs-seat.ok { border-color: #3d6b4f; background: #0f1712; }
.rs-seat b { color: #ffffff; }
.rs-check { color: #9fd49a; width: 14px; }
.rs-crown { color: #ffffff; }
.rs-voc { margin-left: auto; color: #a8a8b3; }
.rs-seat small { color: #7a7a85; }
.rs-seat.empty { border-style: dashed; color: #4a4a52; font-style: italic; background: transparent; }
.rs-kick { background: none; border: 0; color: #7a7a85; cursor: pointer; font-size: 15px; }
.rs-kick:hover { color: #ff4d5e; }
.rs-log { height: 64px; overflow-y: auto; padding: 6px 9px; background: #0b0b0d; border: 1px solid #222227; border-radius: 10px; color: #a8a8b3; font-style: italic; font-size: 13px; }
.rs-mission { display: grid; gap: 3px; padding: 12px; background: #101013; border: 1px solid #222227; border-radius: 10px; }
.rs-mission b { color: #ffffff; }
.rs-open { display: flex; align-items: center; gap: 8px; }
.rs-close { align-self: flex-start; }
@media (max-width: 760px) { .rs-split { grid-template-columns: 1fr; } }
.rs-names { font-size: 12px; margin-top: 2px; }

/* janela Guild (tema preto) */
.gd { display: flex; flex-direction: column; gap: 8px; min-width: min(560px, 90vw); }
.gd h4 { margin: 8px 0 2px; }
.gd-head h3 { margin: 0 0 2px; }
.gd-list { display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.gd-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #222227; border-radius: 10px; background: #101013; }
.gd-row b { color: #fff; }
.gd-row b.pos { color: var(--ok); }
.gd-row b.neg { color: var(--bad); }
/* war: o inimigo marcado pelo líder */
.gd-row.gd-mark { border-color: #c33; background: #1d0f10; }
.gd-rank { margin-left: auto; color: #a8a8b3; }
.gd-sel { max-width: 140px; }
.gd-dot { width: 8px; height: 8px; border-radius: 50%; background: #4a4a52; flex: none; }
.gd-dot.on { background: #9fd49a; }
.gd-inv { display: inline-flex; align-items: center; gap: 2px; margin-right: 8px; color: #f2f2f5; }
.gd-log { height: auto; max-height: 90px; font-style: normal; }
.gd-foot { display: flex; justify-content: flex-end; margin-top: 6px; }

/* comprar coins */
.coin-packs { display: flex; flex-direction: column; gap: 10px; min-width: min(860px, 92vw); }
.coin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .coin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* cartão do pacote de coins: monte de moedas com brilho, quantidade em dourado (letra do logo) e o preço numa faixa dourada */
.coin-bal { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1px solid #6b5524; border-radius: 999px; background: #1b1710; color: var(--muted); font-size: 13px; }
.coin-bal img { image-rendering: pixelated; }
.coin-bal b { color: var(--gold); font-size: 15px; }
.coin-pack { display: flex; flex-direction: column; padding: 0; overflow: hidden; cursor: pointer; color: var(--text); font: inherit; text-align: center;
  background: linear-gradient(180deg, #1f1a12 0%, #141218 62%); border: 1px solid #5a4620; border-radius: 10px; box-shadow: inset 0 1px 0 #ffd77a1a, 0 6px 18px #0006; transition: border-color .15s, transform .15s, box-shadow .15s; }
.coin-pack:hover:not(:disabled) { border-color: #f0c860; transform: translateY(-3px); box-shadow: inset 0 1px 0 #ffd77a33, 0 10px 26px #000a, 0 0 0 1px #f0c86055; }
.coin-pack:disabled { cursor: default; }
.coin-pile { position: relative; height: 150px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 22px;
  background: radial-gradient(ellipse 60% 55% at 50% 62%, #f0b8403a, transparent 70%); }
.coin-pile::after { content: ''; position: absolute; bottom: 14px; left: 50%; width: 62%; height: 14px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(#000a, transparent 70%); z-index: 0; }
.coin-pile div { display: flex; margin-top: -30px; position: relative; z-index: 1; }
.coin-pile div:first-child { margin-top: 0; }
.coin-pile img { margin: 0 -10px; image-rendering: pixelated; filter: drop-shadow(0 2px 1px #000c); }
.cp-amount { display: flex; flex-direction: column; align-items: center; padding: 2px 8px 10px; }
.cp-amount b { font-family: Georgia, "Times New Roman", serif; font-size: 26px; line-height: 1.1; color: var(--gold); text-shadow: 0 2px 0 #4a3008; letter-spacing: .5px; }
.cp-amount small { color: var(--muted); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.cp-price { margin: 0 12px 12px; padding: 8px; border-radius: 6px; background: linear-gradient(#e8b84e, #b98a2e); color: #2a1a04; font-weight: 800; font-size: 15px; box-shadow: inset 0 1px 0 #fff6, 0 2px 0 #5a3c0c; }
.coin-pack:disabled .cp-price { filter: saturate(.75) brightness(.9); }

/* ----- pop-ups do jogo (client/ask.ts): perguntas, convites, destruir item ----- */
.ask-back { z-index: 80; background: #000b; backdrop-filter: blur(3px); animation: ask-fade .12s ease-out; }
.ask {
  width: min(400px, 100%); background: #0e0e11; border: 1px solid #2a2a31; border-radius: 16px;
  box-shadow: 0 24px 70px #000, inset 0 1px 0 #ffffff0d; padding: 18px; display: flex; flex-direction: column; gap: 14px;
  animation: ask-pop .14s ease-out;
}
.ask.danger { border-color: #4a2125; box-shadow: 0 24px 70px #000, 0 0 0 1px #e2574c1f, inset 0 1px 0 #ffffff0d; }
.ask-top { display: flex; gap: 14px; align-items: flex-start; }
.ask-icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; background: #151519; border: 1px solid #26262c; border-radius: 12px; }
.ask.danger .ask-icon { background: #1d1012; border-color: #4a2125; }
.ask-txt { min-width: 0; }
.ask-txt h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: #f2f2f5; }
.ask-txt p { margin: 0; color: #c9c9d1; line-height: 1.45; white-space: pre-line; }
.ask-txt small { display: block; margin-top: 6px; color: #8e8e99; }
.ask.danger .ask-txt small { color: #f1a59d; }
.ask-input { width: 100%; }
.ask-code { min-height: 90px; resize: vertical; font: 12px/1.4 ui-monospace, Consolas, monospace !important; word-break: break-all; }
.ask-btns { display: flex; gap: 8px; justify-content: flex-end; }
.ask-btns .btn { min-width: 96px; }
.btn.ask-danger { background: #b8352c !important; border-color: #e2574c !important; color: #fff !important; font-weight: 600; }
.btn.ask-danger:hover { background: #cf3f35 !important; }
@keyframes ask-fade { from { opacity: 0; } }
@keyframes ask-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .ask-back, .ask { animation: none; } }

/* ----- detalhe da arena no mesmo molde da quest (cartão em duas colunas) ----- */
.ar-side { border-left: 1px solid #222227; padding-left: 24px; }
.ar-side .qs-row { border-bottom-color: #1b1b20; }
.ar-side .qs-row b.gold { color: var(--gold); }
.ar-pits { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px 6px; justify-items: center; }
.rs-head .ar-tag { display: inline-block; }
.ar-go { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: auto; padding-top: 14px; }
.ar-go .btn { padding: 10px 14px; font-size: 14px; }
@media (max-width: 700px) { .rs-split { grid-template-columns: 1fr; } .ar-side { border-left: 0; padding-left: 0; } }

/* ----- janela Skills: letra menor e mais limpa (pedido do dono) ----- */
.win .sklist { gap: 1px !important; }
.win .sk span { font-size: 11px; font-weight: 500; letter-spacing: .2px; color: #c4c7d0 !important; }
.win .sk b { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.win .sk-plain span, .win .sk-plain b { font-size: 10.5px; }
.win .sk-level span, .win .sk-level b { font-size: 12px; color: #fff !important; }
.win .sk-head { font-size: 9.5px; letter-spacing: 1px; color: #7d7d88 !important; }
.win .skbar { height: 3px !important; border: 0 !important; border-radius: 2px; background: #ffffff12 !important; overflow: hidden; margin: 2px 0 4px !important; }
.win .skbar i { border-radius: 2px; }

/* ----- tipografia suave (pedido do dono): uma família só, pesos leves, números alinhados ----- */
html, body { font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
b, strong, th { font-weight: 600; }
.win-head, .float-panel h4, .modal header { font-weight: 500 !important; letter-spacing: .3px !important; text-shadow: none !important; }
.win h6, .modal h6, .adv-pane h5, .pv-left h5 { font-weight: 600 !important; letter-spacing: .6px !important; color: #9a9ba6 !important; }
.pv-title h2, .pv-dname { font-weight: 600; letter-spacing: -.2px; }

/* Opções (igual ao Huntera: abas no topo, uma linha por opção) */
.opt-win { width: min(500px, 88vw); display: flex; flex-direction: column; gap: 12px; }
.opt-tabs { display: flex; border-bottom: 1px solid #23232a; }
.opt-tabs .tab { flex: 1; padding: 11px 0; background: none; border: 0; border-bottom: 2px solid transparent; color: #a9abb8; font: 500 13px system-ui, sans-serif; cursor: pointer; }
.opt-tabs .tab:hover { color: #fff; }
.opt-tabs .tab.on { color: var(--gold); border-bottom-color: var(--gold); background: linear-gradient(#ffffff00, #e6b45012); }
.opt-head h4 { margin: 2px 0 2px; color: #fff; font-size: 15px; }
.opt-head p { margin: 0; font-size: 12.5px; }
.opt-pane { display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid #23232a; border-radius: 10px; background: #121216; }
.opt-row b { color: #ececf1; font-size: 13.5px; }
.opt-row p { margin: 3px 0 0; font-size: 12px; line-height: 1.35; }
.opt-toggle { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; }
.opt-toggle small { font-size: 10.5px; color: #8e8e99; }
.opt-switch { position: relative; width: 42px; height: 24px; border: 0; border-radius: 999px; background: #33333b; cursor: pointer; transition: background .15s; }
.opt-switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #d8d8de; transition: left .15s; }
.opt-switch.on { background: linear-gradient(#f0c45a, #c99a36); }
.opt-switch.on i { left: 21px; background: #fff; }
.opt-switch:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt-slider { display: flex; align-items: center; gap: 8px; flex: none; }
.opt-slider input { width: 140px; accent-color: var(--gold); }
.opt-val { width: 38px; text-align: right; font-size: 12px; }
.opt-foot { font-size: 11px; margin: 0; padding-top: 10px; border-top: 1px solid #23232a; }
.opt-leave { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 14px; border: 1px solid #2a2a31; border-radius: 10px; background: #15151a; color: #ececf1; text-align: left; cursor: pointer; }
.opt-leave:hover:not(:disabled) { border-color: #c9a43c88; }
.opt-leave:disabled { opacity: .55; cursor: default; }
.opt-leave small { color: #8e8e99; font-size: 12px; }
/* abas da loja (Premium, Comprar coins, NPC, Mercado) no topo de cada janela */
.store-tabs { grid-template-columns: repeat(4, 1fr); padding: 0 0 10px; margin-bottom: 10px; }
/* dragão do logo nos medalhões da Roda do Destino: recorte da cabeça e do corpo, em relevo dourado */
.whw-drag { position: absolute; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; pointer-events: none;
  background: url(/assets/logo-outworld.png) no-repeat -40px -2px / 180px auto, radial-gradient(#5a4614, #241b06 70%);
  box-shadow: inset 0 0 0 2px #c9a43c, inset 0 0 10px #000, 0 0 0 1px #000; filter: sepia(1) saturate(1.8) brightness(1.05) contrast(1.15); }
/* ícones das fatias como no cliente: redondos com anel dourado fino; o selo pequeno da dedicação também */
.whw-ico > .spico, .whw-ico > .whw-mi { box-shadow: 0 0 0 1px #c9a43c, 0 0 0 2px #000, 0 1px 3px 2px #000a; }
.whw-ico.full > .spico, .whw-ico.full > .whw-mi { box-shadow: 0 0 0 1px #ffe08a, 0 0 0 2px #000, 0 0 6px 2px #f0c86088; }
.whw-si { border-radius: 50%; box-shadow: 0 0 0 1px #c9a43c, 0 0 0 2px #000; }
.whw-ico > .spico.img, .whw-ico > .item, .whw-ico > .whw-mi, .whw-si { border-radius: 50% !important; }
.whw-ico > .item { box-shadow: 0 0 0 1px #c9a43c, 0 0 0 2px #000, 0 1px 3px 2px #000a; }

/* Tela de morte (molde do Huntera, cara do Outworld: serifa dourada do logo, vermelho de sangue) */
.modal.dth-box { width: min(440px, 100%); position: relative; overflow: visible; border-color: #6b2a2a; background: linear-gradient(180deg, #231419 0%, var(--panel) 38%); box-shadow: 0 0 0 1px #000, 0 30px 80px #000c, inset 0 1px 0 #ffffff10; }
.modal.dth-box > header { display: none; }
.dth { text-align: center; padding-top: 8px; }
.dth-ribbon { position: absolute; top: -1px; left: 18px; width: 34px; height: 44px; display: grid; place-items: start center; padding-top: 6px; box-sizing: border-box;
  background: linear-gradient(#8e2a2f, #5e1a1f); color: #ff9aa4; font-size: 16px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); box-shadow: inset 0 -2px 0 #0004; }
.dth h2 { margin: 4px 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; letter-spacing: 2px; color: #ff6b6b; text-shadow: 0 2px 0 #3a0c0c, 0 0 18px #ff3b3b33; }
.dth h2 small { font-size: 12px; color: #c0444a; margin: 0 10px; vertical-align: middle; }
.dth-by { margin: 0 0 4px; font-weight: 700; color: var(--text); }
.dth-loss { border-top: 1px solid #3a2228; border-bottom: 1px solid #3a2228; padding: 10px 4px; margin: 10px 0; }
.dth-prot { display: flex; gap: 12px; align-items: center; text-align: left; border: 1px solid #6b2a2a; background: #2a1418; border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.dth-prot.ok { border-color: #6b4a1c; background: #2a1e12; }
.dth-prot span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; color: #e87a7a; font-size: 13px; }
.dth-prot.ok span { color: var(--gold); }
.dth-prot p { margin: 0; color: #f0b27a; font-size: 13px; }
.dth-link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 12.5px; margin: 4px 0 8px; }
.dth-link:hover { color: var(--text); }
.dth-more { text-align: left; border: 1px solid #3a2228; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: #1a1219; max-height: 42vh; overflow: auto; }
.dth-more h5 { margin: 8px 0 6px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.dth-more h5:first-child { margin-top: 0; }
.dth-more .summary { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dth-more .summary div { padding: 6px 8px; }
.dth-more .summary b { font-size: 14px; }
.dth-log { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.dth-log li { padding: 2px 0; }
.dth-log i { display: inline-block; width: 52px; text-align: right; margin-right: 8px; color: var(--muted); font-style: normal; }
.dth-more p { margin: 6px 0; font-size: 12.5px; }
.dth .btn:not(.dth-revive) { margin-bottom: 8px; }
.dth-revive { width: 100%; padding: 10px; font-size: 15px; font-weight: 700; }

/* Tela de carregamento do mapa: logo do Outworld e a barra dourada enchendo */
.map-loading { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(ellipse at 50% 42%, #1d1a33 0%, #0b0c14 60%, #05060a 100%); transition: opacity .35s; pointer-events: none; }
.map-loading.done { opacity: 0; }
.map-loading img { width: min(420px, 70%); height: auto; filter: drop-shadow(0 0 24px #6a4cff44) drop-shadow(0 8px 18px #000c); animation: ml-glow 2.4s ease-in-out infinite; }
.ml-bar { width: min(360px, 64%); height: 12px; padding: 2px; border: 1px solid #6b5524; border-radius: 999px; background: #120f0a; box-shadow: inset 0 1px 3px #000c, 0 0 0 1px #000; }
.ml-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #b98a2e, #f2cf6a, #b98a2e); background-size: 200% 100%;
  box-shadow: 0 0 10px #f0c86088; transition: width .2s ease-out; animation: ml-shine 1.4s linear infinite; }
.map-loading small { color: #a9a08a; font-size: 13px; letter-spacing: 1px; }
@keyframes ml-glow { 50% { filter: drop-shadow(0 0 34px #6a4cff77) drop-shadow(0 8px 18px #000c); transform: translateY(-2px); } }
@keyframes ml-shine { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .map-loading img, .ml-bar i { animation: none; } }

/* Janela de vitória (quest e arena): par dourado da tela de morte */
.modal.vic-box { width: min(480px, 100%); position: relative; overflow: visible; border-color: #7a5a1c;
  background: linear-gradient(180deg, #2a2110 0%, var(--panel) 42%); box-shadow: 0 0 0 1px #000, 0 30px 80px #000c, 0 0 60px #e6b4501a, inset 0 1px 0 #ffffff12; }
.modal.vic-box > header { display: none; }
.vic { text-align: center; padding-top: 10px; }
.vic-ribbon { position: absolute; top: -1px; left: 18px; width: 34px; height: 44px; display: grid; place-items: start center; padding-top: 6px; box-sizing: border-box;
  background: linear-gradient(#d9a640, #8a6418); font-size: 16px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); box-shadow: inset 0 -2px 0 #0004; }
.vic h2 { margin: 4px 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; letter-spacing: 3px; color: var(--gold); text-shadow: 0 2px 0 #4a3008, 0 0 22px #f0c86055; }
.vic.lost h2 { color: #c9ccd4; text-shadow: 0 2px 0 #000; }
.vic-name { margin: 0 0 10px; font-weight: 700; color: var(--text); letter-spacing: .5px; }
.vic-text { margin: 0 0 14px; padding: 10px 4px; border-top: 1px solid #3a3020; border-bottom: 1px solid #3a3020; color: #e8d9b0; }
.vic .ar-items { justify-content: center; gap: 12px; margin-bottom: 16px; }
.vic .ar-item { width: 112px; padding: 10px 6px 8px; gap: 6px; background: linear-gradient(#1f1a10, #13110c); border: 1px solid #6b5524; border-radius: 8px;
  box-shadow: inset 0 1px 0 #ffd77a1a, 0 4px 12px #0008; color: #e8d9b0; font: 600 12px/1.2 system-ui, sans-serif; text-transform: capitalize; }
.vic .ar-item.pick { transition: transform .15s, border-color .15s, box-shadow .15s; }
.vic .ar-item.pick:hover { transform: translateY(-3px); border-color: #f0c860; box-shadow: inset 0 1px 0 #ffd77a33, 0 8px 18px #000a, 0 0 0 1px #f0c86066; }
.vic-slot { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle, #f0b8402e 0%, #0000 68%); }
.vic-slot img, .vic-slot i.item { image-rendering: pixelated; }
.vic .vic-btn { width: 100%; padding: 11px; font-size: 15px; font-weight: 800; color: #2a1a04; border: 1px solid #5a3c0c; border-radius: 8px;
  background: linear-gradient(#f0c45a, #b98a2e); box-shadow: inset 0 1px 0 #fff7, 0 2px 0 #5a3c0c, 0 0 18px #f0c86033; cursor: pointer; }
.vic .vic-btn:hover { filter: brightness(1.08); }
/* a camada de tema (.modal e .btn com !important) apagava as cores destas janelas */
.modal.vic-box { background: linear-gradient(180deg, #2a2110 0%, #0b0b0d 46%) !important; border-color: #7a5a1c !important; box-shadow: 0 0 0 1px #000, 0 30px 80px #000c, 0 0 60px #e6b4501a !important; }
.modal.dth-box { background: linear-gradient(180deg, #231419 0%, #0b0b0d 42%) !important; border-color: #6b2a2a !important; }
.dth .dth-revive { background: linear-gradient(#a8323a, #6e1d24) !important; color: #ffe9e9 !important; border: 1px solid #c0444a !important; box-shadow: inset 0 1px 0 #ffffff30, 0 2px 0 #3a0c0c !important; }
.vic-note { margin: 10px 0 0; color: #9a917a; font-size: 12px; }

/* Segurança da conta (trocar senha e verificação em duas etapas) */
.sec { display: flex; flex-direction: column; gap: 14px; width: min(460px, 86vw); }
.sec-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid #26262c; border-radius: 12px; background: #111114; }
.sec-card h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; color: #fff; }
.sec-card p { margin: 0; font-size: 12.5px; }
.sec-field { display: flex; flex-direction: column; gap: 4px; }
.sec-field label { font-size: 12px; color: #a8a8b3; }
.sec-on, .sec-off { font-size: 10px; letter-spacing: 1px; padding: 2px 8px; border-radius: 999px; }
.sec-on { background: #1f3a24; color: #7fe08f; }
.sec-off { background: #2a2a31; color: #a8a8b3; }
.sec-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.sec-key { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; }
.sec-key code { flex: 1; padding: 8px 10px; border-radius: 8px; background: #0b0b0d; border: 1px solid #2a2a31; color: var(--gold); font: 600 14px ui-monospace, Consolas, monospace; letter-spacing: 1px; word-break: break-all; }
.sec-warn { color: #e0b46a !important; }
.mfa-code { font: 600 20px ui-monospace, Consolas, monospace; letter-spacing: 6px; text-align: center; }
