:root {
  --bg: #0b1530;
  --panel: rgba(12, 20, 42, .88);
  --panel-solid: #111c38;
  --line: rgba(255, 255, 255, .12);
  --text: #eef2fb;
  --muted: #9aa8c7;
  --accent: #ffcf3f;
  --accent-ink: #1a1405;
  --sky: #5ab8ff;
  --danger: #ff5b5b;
  --ok: #46d48a;
  --hp: #e94b4b;
  --mp: #3f8cff;
  --xp: #f2c230;
  --f-bolso: #17a34a;
  --f-bolso2: #ffd21f;
  --f-pt: #d81f2a;
  --f-isento: #b8c1d1;
  --radius: 14px;
  --font-display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  overflow: hidden;
}
button, input, select { font: inherit; color: inherit; }
.hidden { display: none !important; }

#backdrop { position: fixed; inset: 0; z-index: 0; }
#backdrop svg { width: 100%; height: 100%; display: block; }

.screen { position: fixed; inset: 0; z-index: 1; display: none; overflow: auto; }
.screen.active { display: flex; }

/* ---------- Cartões e formulários ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.auth { width: min(400px, calc(100vw - 32px)); margin: auto; }
.brand { text-align: center; margin-bottom: 20px; }
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: 1px;
  line-height: 1;
  color: #fff;
}
.logo span { color: var(--accent); margin-left: 6px; }
.logo.small { font-size: 24px; }
.tag { color: var(--muted); margin: 8px 0 0; font-size: 14px; }

label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
input, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .15s, background .15s;
}
input:focus, select:focus { border-color: var(--accent); background: rgba(255, 255, 255, .1); }
select option { background: var(--panel-solid); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s, background .15s, opacity .15s, border-color .15s;
  background: rgba(255, 255, 255, .08);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: #ffdc6a; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover:not(:disabled) { border-color: rgba(255, 255, 255, .35); background: rgba(255,255,255,.05); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.link { background: none; color: var(--muted); padding: 10px 0; width: 100%; }
.btn.link:hover { color: var(--text); }
.btn.big { width: 100%; padding: 13px 18px; font-size: 16px; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.tiny { padding: 5px 10px; font-size: 12px; border-radius: 8px; }

.msg { min-height: 20px; font-size: 13px; margin: 2px 0 10px; color: var(--danger); }
.msg.ok { color: var(--ok); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Barra superior ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.who { color: var(--muted); font-size: 14px; }

/* ---------- Lista de personagens ---------- */
.chars-wrap { width: min(1100px, calc(100vw - 32px)); margin: 0 auto; padding-bottom: 40px; }
.screen-title { font-family: var(--font-display); font-size: 30px; margin: 10px 0 18px; }
.screen-title small { font-family: var(--font); font-size: 15px; color: var(--muted); font-weight: 600; margin-left: 8px; }
.char-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; min-height: 260px; }
.char-card {
  position: relative;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, transform .15s;
}
.char-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .3); }
.char-card.selected { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 207, 63, .18); }
.char-card canvas, .char-card img { width: 140px; height: 160px; display: block; margin: 0 auto 6px; }
.char-card .cname { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.char-card .cmeta { font-size: 13px; color: var(--muted); }
.char-card .del {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(0,0,0,.25);
  color: var(--muted); cursor: pointer; font-size: 14px;
}
.char-card .del:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.empty-slot {
  border: 2px dashed var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  color: var(--muted); min-height: 240px; background: rgba(12, 20, 42, .45);
}
.empty-slot b { font-family: var(--font-display); font-size: 18px; color: var(--text); }
.empty-slot.locked { opacity: .45; }
.chars-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; max-width: 620px; margin-left: auto; margin-right: auto; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.badge.bolsonarista { background: var(--f-bolso); color: var(--f-bolso2); }
.badge.petista { background: var(--f-pt); color: #fff; }
.badge.isentao { background: var(--f-isento); color: #20283a; }

/* ---------- Criação ---------- */
.create-wrap { width: min(1100px, calc(100vw - 32px)); margin: 0 auto; padding-bottom: 30px; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; counter-reset: s; flex-wrap: wrap; justify-content: center; }
.steps li {
  counter-increment: s;
  padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.steps li::before {
  content: counter(s); display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%; margin-right: 6px;
  background: rgba(255, 255, 255, .1); font-size: 11px;
}
.steps li.done { color: var(--text); }
.steps li.done::before { background: var(--ok); color: #062; content: '✓'; }
.steps li.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.steps li.active::before { background: rgba(0, 0, 0, .15); }
.create-body { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.preview-col {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 10px;
  position: sticky; top: 10px; text-align: center;
}
#preview { width: 100%; max-width: 320px; aspect-ratio: 320 / 380; height: auto; display: block; margin: 0 auto; cursor: grab;
  background: radial-gradient(ellipse at 50% 85%, rgba(90, 184, 255, .22), transparent 60%); border-radius: 14px; }
.preview-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; min-height: 22px; margin: 4px 0 8px; }
.rotate { display: flex; gap: 8px; justify-content: center; }
.options-col { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.options-col h3 { font-family: var(--font-display); font-size: 26px; margin: 0 0 14px; }
.options-col h4 { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.step-pane { display: none; }
.step-pane.active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.choice-grid { display: grid; gap: 14px; }
.choice-grid.two { grid-template-columns: 1fr 1fr; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice {
  text-align: left; padding: 18px; border-radius: var(--radius); cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 2px solid var(--line);
  transition: border-color .15s, background .15s, transform .1s;
}
.choice:hover { border-color: rgba(255, 255, 255, .3); }
.choice.selected { border-color: var(--accent); background: rgba(255, 207, 63, .08); }
.choice b { display: block; font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.choice span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.choice p { margin: 0; font-size: 14px; color: #cfd8ec; line-height: 1.45; }
.choice.f-bolsonarista b { color: var(--f-bolso2); }
.choice.f-petista b { color: #ff6b73; }
.choice.f-isentao b { color: var(--f-isento); }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.thumb {
  border-radius: 12px; border: 2px solid var(--line); background: rgba(255, 255, 255, .04);
  cursor: pointer; padding: 6px 4px 4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted);
}
.thumb canvas { width: 80px; height: 80px; display: block; margin: 0 auto 2px; }
.thumb.selected { border-color: var(--accent); color: var(--text); background: rgba(255, 207, 63, .08); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; box-shadow: 0 0 0 1px var(--line) inset;
}
.swatch.selected { border-color: var(--accent); transform: scale(1.08); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; font-weight: 700; font-size: 14px; }
.pill.selected { border-color: var(--accent); background: rgba(255, 207, 63, .1); }
.step-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
#char-name { max-width: 360px; }

/* ---------- Jogo ---------- */
#screen-game { background: #000; overflow: hidden; }
#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
#hud { position: absolute; inset: 0; pointer-events: none; font-size: 13px; }
#hud > * { pointer-events: auto; }
.hud-player {
  position: absolute; top: 12px; left: 12px; display: flex; gap: 10px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px 8px 8px; width: 280px;
}
#hud-portrait { width: 64px; height: 64px; border-radius: 12px; background: rgba(255,255,255,.06); flex: none; }
.hud-info { flex: 1; min-width: 0; }
.hud-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.1; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-name small { color: var(--accent); font-size: 13px; }
.bar { position: relative; height: 14px; background: rgba(0,0,0,.45); border-radius: 7px; overflow: hidden; margin-bottom: 3px; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 7px; transition: width .2s; }
.bar span { position: relative; display: block; text-align: center; font-size: 10px; font-weight: 800; line-height: 14px; text-shadow: 0 1px 2px #000; }
.bar.hp i { background: linear-gradient(#ff7272, var(--hp)); }
.bar.mp i { background: linear-gradient(#77adff, var(--mp)); }
.bar.xp { height: 8px; }
.bar.xp i { background: linear-gradient(#ffe27a, var(--xp)); }
.bar.xp span { font-size: 0; }
.hud-target {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; width: 300px; text-align: center;
}
.hud-target .bar { height: 10px; }
.hud-target .hud-name { font-size: 15px; }
.hud-topright { position: absolute; top: 12px; right: 12px; text-align: right; }
#minimap { width: 220px; height: 138px; border-radius: 12px; border: 1px solid var(--line); background: #2c3a1d; display: block; }
.hud-meta { color: var(--muted); font-size: 12px; margin: 4px 2px; }
.hud-buttons { display: flex; gap: 6px; justify-content: flex-end; }
.hud-buttons .btn { background: var(--panel); }
.hud-chat { position: absolute; left: 12px; bottom: 12px; width: min(380px, calc(100vw - 24px)); }
#chat-log {
  max-height: 170px; overflow-y: auto; padding: 8px 10px; border-radius: 12px 12px 0 0;
  background: rgba(0, 0, 0, .35); font-size: 13px; line-height: 1.4; scrollbar-width: thin;
}
#chat-log div { word-wrap: break-word; }
#chat-log .sys { color: var(--accent); font-style: italic; }
#chat-log b.bolsonarista { color: #4fe07f; }
#chat-log b.petista { color: #ff6b73; }
#chat-log b.isentao { color: #cdd5e3; }
#chat-form input { margin: 0; border-radius: 0 0 12px 12px; padding: 9px 12px; background: rgba(0,0,0,.55); font-size: 13px; }
.hud-actions { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: flex-end; }
.hud-skills { display: flex; gap: 10px; }
.run-btn {
  width: 62px; height: 62px; border-radius: 50%; cursor: pointer; padding: 0;
  display: grid; place-items: center; align-content: center; gap: 0;
  background: var(--panel); border: 2px solid var(--line); color: var(--muted);
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.run-btn svg { width: 26px; height: 26px; fill: currentColor; }
.run-btn .run-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.run-btn:hover { border-color: rgba(255,255,255,.4); }
.run-btn.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,207,63,.2); }
.skill {
  position: relative; width: 62px; height: 62px; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: var(--panel); border: 2px solid var(--line); display: grid; place-items: center;
  font-size: 26px;
}
.skill:hover { border-color: rgba(255,255,255,.4); }
.skill .key { position: absolute; top: 2px; left: 6px; font-size: 11px; font-weight: 800; color: var(--accent); }
.skill .cost { position: absolute; bottom: 2px; right: 5px; font-size: 10px; font-weight: 800; color: #9cc3ff; }
.skill .cd { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.65); height: 0; }
.skill.nomana { filter: grayscale(.8); }
.skill-name { position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--panel-solid); padding: 3px 8px; border-radius: 6px; font-size: 12px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.skill:hover .skill-name { opacity: 1; }
.hud-location {
  position: absolute; top: 90px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 26px; font-weight: 800; text-shadow: 0 2px 8px #000;
  opacity: 0; transition: opacity .6s; pointer-events: none; white-space: nowrap;
}
.hud-location.show { opacity: 1; }
.death { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(60, 0, 0, .45); pointer-events: none; }
.death div { text-align: center; font-family: var(--font-display); display: grid; gap: 10px; justify-items: center; }
.death .btn { pointer-events: auto; min-width: 280px; font-size: 17px; }
.death .btn:disabled { opacity: .55; cursor: wait; }
.death-note { margin: 4px 0 2px; font: 600 15px var(--font); color: #ffe0e0; }
.death b { display: block; font-size: 40px; }
.death span { font-size: 18px; color: #ffd0d0; }
.help {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; width: min(460px, calc(100vw - 32px));
}
.help h3 { font-family: var(--font-display); margin: 0 0 8px; font-size: 24px; }
.help ul { padding-left: 18px; line-height: 1.7; margin: 0 0 14px; }
.loading { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: var(--bg); z-index: 5; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); margin: 0 auto 12px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0,0,0,.55); }
.modal .card { width: min(380px, calc(100vw - 32px)); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Admin ---------- */
.admin-body { overflow: auto; height: auto; min-height: 100%; background: linear-gradient(#0b1530, #14254a) fixed; }
.admin-wrap { width: min(980px, calc(100vw - 32px)); margin: 0 auto; padding: 24px 0 60px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-head h1, .admin-wrap > h1 { font-family: var(--font-display); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-top: 18px; }
.panel h2 { margin: 0 0 4px; font-family: var(--font-display); }
.muted { color: var(--muted); }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; margin: 0; padding: 8px 10px; }
.flash { background: rgba(70, 212, 138, .15); border: 1px solid rgba(70, 212, 138, .4); padding: 12px 14px; border-radius: 12px; margin-top: 14px; line-height: 1.6; }
.flash.error { background: rgba(255, 91, 91, .15); border-color: rgba(255, 91, 91, .4); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat b { display: block; font-size: 28px; font-family: var(--font-display); }
.stat span { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
code { background: rgba(255,255,255,.1); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 820px) {
  .create-body { grid-template-columns: 1fr; }
  .preview-col { position: static; }
  #preview { max-width: 220px; }
  .choice-grid.two, .choice-grid.three { grid-template-columns: 1fr; }
  .chars-actions { grid-template-columns: 1fr; }
  .hud-player { width: 220px; }
  #minimap { width: 150px; height: 94px; }
  .stats-row { grid-template-columns: 1fr; }
}

/* ---------- Rótulos 3D ---------- */
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#labels > div { position: absolute; left: 0; top: 0; will-change: transform; white-space: nowrap; }
.nlabel { text-align: center; }
.nlabel .nm { font: 800 12px var(--font); text-shadow: 0 1px 2px #000, 0 0 4px rgba(0,0,0,.8); }
.nlabel.me .nm { color: #fff; }
.nlabel.monster .nm { font-size: 11px; opacity: .95; -webkit-text-stroke: 0.6px #000; paint-order: stroke fill; text-shadow: 0 0 2px #000; }
.nlabel.monster.focus .nm { font-size: 13px; opacity: 1; }
.nlabel .hb { width: 52px; height: 6px; margin: 3px auto 0; background: rgba(0,0,0,.6); border-radius: 3px; overflow: hidden; }
.nlabel .hb i { display: block; height: 100%; width: 100%; background: linear-gradient(#ff7a7a, #d93838); }
.nlabel.me .hb i, .nlabel.player .hb i { background: linear-gradient(#7cf08f, #36b553); }
.nlabel .bubble {
  max-width: 220px; white-space: normal; margin: 0 auto 6px; padding: 6px 10px; border-radius: 10px;
  background: rgba(255,255,255,.95); color: #1a2135; font: 700 13px var(--font); position: relative; width: max-content;
}
.nlabel .bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: rgba(255,255,255,.95); border-bottom: 0; }
.blabel { font: 700 12px var(--font); color: #fff; background: rgba(10,18,40,.55); padding: 2px 8px; border-radius: 6px; }
.float { font: 800 16px var(--font-display); text-shadow: 0 2px 3px #000, 0 0 2px #000; }
.float.big { font-size: 20px; }
.float.huge { font-size: 28px; }
#hurt { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px rgba(255,0,0,0); transition: box-shadow .15s; }
#hurt.on { box-shadow: inset 0 0 140px rgba(255,30,30,.55); }
#game { cursor: default; touch-action: none; }
#minimap { height: 147px; }
@media (max-width: 820px) { #minimap { height: 100px; } }
@media (max-width: 1100px) {
  .hud-actions { left: auto; right: 12px; transform: none; }
}

/* ---------- Zonas e mapa-múndi ---------- */
.hud-location small { display: block; font-family: var(--font); font-size: 15px; font-weight: 800; color: #ffe066; text-align: center; margin-top: -2px; }
.hud-location.danger small { color: #ff6b6b; }
.hud-zone { font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px #000; margin: 5px 2px 0; }
.worldmap { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 8, 20, .6); z-index: 4; cursor: pointer; }
.worldmap-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; width: min(990px, calc(100vw - 24px)); }
.worldmap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.worldmap-head b { font-family: var(--font-display); font-size: 22px; }
.worldmap-head span { color: var(--muted); font-size: 13px; }
#worldmap-canvas { width: 100%; height: auto; max-height: calc(100vh - 250px); object-fit: contain; display: block; border-radius: 10px; }
.worldmap-box { cursor: default; position: relative; }
#worldmap-canvas { cursor: pointer; }
.tp-panel { margin-top: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.tp-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; margin-bottom: 8px; }
.tp-head small { font-weight: 800; margin-left: 6px; }
.tp-head span:last-child { color: var(--muted); font-size: 13px; }
.tp-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tp-opt { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,211,74,.12); color: inherit; cursor: pointer; font: 800 14px var(--font); }
.tp-opt:hover:not(:disabled) { background: rgba(255,211,74,.28); }
.tp-opt:disabled { opacity: .45; cursor: not-allowed; }
.tp-n { width: 22px; height: 22px; border-radius: 50%; background: #ffd34a; color: #000; display: grid; place-items: center; font-size: 12px; }
.tp-nm { flex: 1; text-align: left; }
.tp-pr { color: #ffe08a; }
@media (max-width: 560px) { .tp-list { grid-template-columns: 1fr; } }
.worldmap-box { max-height: calc(100vh - 24px); }
.worldmap-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.worldmap-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Poções rápidas ---------- */
.pot-btn {
  position: relative; width: 50px; height: 50px; border-radius: 12px; cursor: pointer; padding: 0;
  background: var(--panel); border: 2px solid var(--line); font-size: 22px; display: grid; place-items: center;
}
.pot-btn:hover { border-color: rgba(255,255,255,.4); }
.pot-btn .key { position: absolute; top: 1px; left: 5px; font-size: 10px; font-weight: 800; color: var(--accent); }
.pot-btn .cnt { position: absolute; bottom: 1px; right: 5px; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; }
.pot-btn.empty { filter: grayscale(1); opacity: .55; }

/* ---------- Itens no chão ---------- */
.nlabel.drop .nm { font-size: 11px; background: rgba(10,14,28,.55); padding: 1px 7px; border-radius: 6px; }
.nlabel.drop.locked .nm { opacity: .75; }
.nlabel.drop.focus .nm { font-size: 13px; outline: 1px solid rgba(255,255,255,.5); }

/* ---------- Inventário ---------- */
.inv {
  position: absolute; top: 70px; right: 250px; width: 600px; max-width: calc(100vw - 24px); z-index: 3;
  background: rgba(14, 20, 38, .96); border: 1px solid rgba(255,255,255,.18); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55); user-select: none;
}
.inv-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: move; }
.inv-head b { font-family: var(--font-display); font-size: 20px; }
.inv-head span { color: var(--muted); font-weight: 700; flex: 1; }
.inv-head button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; width: 28px; height: 28px; cursor: pointer; }
.inv-head button:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.inv-body { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 12px; }
.paperdoll { position: relative; height: 292px; background: radial-gradient(ellipse at 50% 70%, rgba(90,184,255,.18), transparent 65%), rgba(255,255,255,.03); border-radius: 12px; border: 1px solid var(--line); }
.paperdoll img { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); width: 150px; height: 178px; object-fit: contain; pointer-events: none; }
.eq-slot { position: absolute; width: 46px; height: 46px; }
.eq-slot[data-slot=helmet] { left: 6px; top: 8px; }
.eq-slot[data-slot=armor]  { left: 6px; top: 62px; }
.eq-slot[data-slot=gloves] { left: 6px; top: 116px; }
.eq-slot[data-slot=boots]  { left: 6px; top: 170px; }
.eq-slot[data-slot=weapon] { right: 6px; top: 8px; }
.eq-slot[data-slot=shield] { right: 6px; top: 62px; }
.eq-slot[data-slot=necklace] { right: 6px; top: 116px; }
.eq-slot.sm { width: 38px; height: 38px; top: 246px; }
.eq-slot.sm .inv-item, .eq-slot.sm .eq-empty { width: 38px; height: 38px; }
.eq-slot[data-slot=earring1] { left: 20px; } .eq-slot[data-slot=earring2] { left: 64px; }
.eq-slot[data-slot=ring1] { left: 112px; } .eq-slot[data-slot=ring2] { left: 156px; }
.eq-slot .inv-item { width: 46px; height: 46px; }
.eq-empty { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; border: 1px dashed rgba(255,255,255,.2); font-size: 7.5px; letter-spacing: -.2px; font-weight: 800; color: var(--muted); text-transform: uppercase; text-align: center; background: rgba(0,0,0,.25); }
.inv-stats { margin-top: 10px; font-size: 12px; }
.inv-stats div { display: flex; justify-content: space-between; padding: 3px 2px; border-bottom: 1px solid rgba(255,255,255,.06); }
.inv-stats span { color: var(--muted); }
.inv-stats small { color: var(--ok); }
.inv-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.inv-item {
  position: relative; aspect-ratio: 1; border-radius: 7px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center; cursor: pointer;
}
.inv-item.empty { cursor: default; background: rgba(0,0,0,.2); border-color: rgba(255,255,255,.05); }
.inv-item .ic { font-size: 22px; line-height: 1; }
.inv-item .qt { position: absolute; right: 3px; bottom: 1px; font-size: 10px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.inv-item:not(.empty):hover { background: rgba(255,255,255,.1); }
.inv-item.r-incomum { border-color: #5fe36a; box-shadow: inset 0 0 8px rgba(95,227,106,.35); }
.inv-item.r-raro { border-color: #4da3ff; box-shadow: inset 0 0 8px rgba(77,163,255,.4); }
.inv-item.r-lendario { border-color: #ffb13b; box-shadow: inset 0 0 12px rgba(255,177,59,.55); }
.inv-item.r-epico { border-color: #c77dff; box-shadow: inset 0 0 10px rgba(199,125,255,.45); }
.inv-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--muted); }
.inv-foot b { color: #fff; }
.inv-foot .money b { color: #ffd34a; }
.inv-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.inv-tip {
  position: absolute; z-index: 5; width: 230px; pointer-events: none; padding: 10px 12px; border-radius: 10px;
  background: rgba(6,10,22,.97); border: 1px solid rgba(255,255,255,.2); font-size: 12px; line-height: 1.5;
}
.tt-name { font-weight: 800; font-size: 14px; }
.tt-rar { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.tt-type { color: #cfd8ec; }
.tt-desc { color: var(--muted); margin-top: 4px; }
.tt-bad { color: #ff6b6b; }
.tt-ok { color: #9be39b; }
.tt-val { color: #ffd34a; margin-top: 4px; }
.tt-hint { color: var(--muted); font-size: 11px; margin-top: 4px; }
.inv-menu { position: absolute; z-index: 6; min-width: 170px; background: #0d1428; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 4px; }
.inv-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: #fff; padding: 7px 10px; border-radius: 7px; cursor: pointer; font-weight: 700; font-size: 13px; }
.inv-menu button:hover { background: rgba(255,255,255,.1); }
@media (max-width: 1100px) { .inv { right: 12px; } }
@media (max-width: 640px) { .inv-body { grid-template-columns: 1fr; } .inv-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Bênçãos ---------- */
.buffbar { position: absolute; top: 112px; left: 12px; display: flex; flex-wrap: wrap; gap: 4px; max-width: 290px; }
.buff {
  position: relative; width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; cursor: help;
  background: rgba(30, 24, 8, .8); border: 1px solid rgba(255, 214, 102, .6); font-size: 16px;
}
.buff small { position: absolute; right: 1px; bottom: -1px; font-size: 9px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; }
.buff.ending { animation: blink 1s steps(2) infinite; border-color: #ff9f43; }
@keyframes blink { 50% { opacity: .45; } }
.nlabel.npc .nm { color: #ffe08a; font-size: 13px; }
.nlabel.npc .nm small { display: block; font-size: 11px; color: #fff; opacity: .85; }
.nlabel.npc.focus .nm { font-size: 15px; }
.npc-dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4;
  width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 40px); display: flex; flex-direction: column;
  background: rgba(20, 16, 10, .97); border: 1px solid rgba(255, 214, 102, .45); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.npc-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(255,214,102,.2); }
.npc-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #2a2010; border: 1px solid rgba(255,214,102,.6); color: #ffe08a; }
.npc-head b { display: block; font-family: var(--font-display); font-size: 21px; color: #ffe08a; line-height: 1.1; }
.npc-head span { font-size: 13px; color: var(--muted); }
.npc-head button { margin-left: auto; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; }
.npc-say { margin: 10px 16px 6px; font-size: 14px; line-height: 1.5; color: #efe6d0; font-style: italic; }
.npc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 16px 10px; flex-wrap: wrap; }
.npc-bar span { color: var(--muted); font-size: 14px; }
.npc-bar b { color: #fff; }
.npc-bar b.full { color: #ff9f43; }
.npc-list { overflow-y: auto; padding: 0 12px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nb { display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.nb.cls { border-color: rgba(255,214,102,.35); background: rgba(255,214,102,.06); }
.nb.on { border-color: rgba(95,227,106,.5); background: rgba(95,227,106,.07); }
.nb-ic { font-size: 22px; text-align: center; }
.nb-tx b { font-size: 14px; }
.nb-tx em { margin-left: 6px; font-style: normal; font-size: 10px; font-weight: 800; color: #ffd34a; text-transform: uppercase; }
.nb-tx i { margin-left: 6px; font-style: normal; font-size: 10px; font-weight: 800; color: #9cc3ff; text-transform: uppercase; }
.nb-tx p { margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.35; }
.nb-act { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.nb-act span { font-size: 11px; color: #7cf08f; font-weight: 800; white-space: nowrap; }
@media (max-width: 700px) { .npc-list { grid-template-columns: 1fr; } }

/* ---------- Perigo do alvo ---------- */
.hud-target .bar { height: 14px; }
.hud-target .bar span { font-size: 10px; line-height: 14px; }
.target-danger { font-size: 11px; font-weight: 800; margin-top: 3px; letter-spacing: .2px; }
.hud-target[data-danger=bad], .hud-target[data-danger=deadly] { box-shadow: 0 0 0 1px currentColor, 0 0 18px rgba(255, 60, 40, .35); }
.hud-target[data-danger=deadly] .target-danger { animation: blink 0.8s steps(2) infinite; }

/* ---------- Avisos de reinício ---------- */
.announce {
  position: absolute; top: 150px; left: 50%; transform: translate(-50%, -10px); z-index: 6; pointer-events: none;
  padding: 12px 26px; border-radius: 14px; font-family: var(--font-display); font-weight: 800; font-size: 24px; text-align: center;
  background: rgba(40, 10, 10, .88); border: 2px solid #ff9f43; color: #ffe2c0; text-shadow: 0 2px 6px #000;
  opacity: 0; transition: opacity .3s, transform .3s; max-width: calc(100vw - 24px);
}
.announce.show { opacity: 1; transform: translate(-50%, 0); }
.announce.urgent { border-color: #ff4d4d; color: #ffd0d0; }
.announce.count { white-space: nowrap; font-size: 56px; padding: 6px 34px; border-color: #ff2a2a; color: #fff; background: rgba(90, 0, 0, .8); }
.announce.down { border-color: #ff2a2a; }
.announce.ok { border-color: #46d48a; color: #d6ffe6; background: rgba(10, 40, 24, .88); }
.restarting { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(5, 8, 18, .82); text-align: center; }
.restarting b { display: block; font-family: var(--font-display); font-size: 30px; margin-top: 6px; }
.restarting span { display: block; font-size: 16px; color: #ffe2c0; margin-top: 6px; }
.restarting small { display: block; color: var(--muted); margin-top: 10px; }

/* ---------- Aviso de NPC por perto ---------- */
.npc-hint {
  position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%); pointer-events: none;
  background: rgba(20, 16, 10, .9); border: 1px solid rgba(255, 214, 102, .6); color: #efe6d0;
  padding: 8px 14px; border-radius: 10px; font-size: 14px; white-space: nowrap;
}
.npc-hint b { color: #ffe08a; }
.npc-hint kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 5px; background: #ffe08a; color: #1a1405; font: 800 13px var(--font); text-align: center; }

.skill.auto { outline: 2px solid #ffd34a; outline-offset: 1px; animation: autoPulse 0.9s ease-in-out infinite; }
@keyframes autoPulse { 50% { box-shadow: 0 0 14px 2px rgba(255,211,74,.7); } }

.inv-stats em.dl, .inv-foot em.dl { font-style: normal; font-weight: 800; font-size: 12px; margin-left: 4px; }
.dl.neg { color: #ff7b7b; }
.dl.pos { color: #7ef0a0; }

.nlabel .ex { font: 900 11px var(--font); color: #ffd34a; letter-spacing: .04em; text-transform: uppercase; -webkit-text-stroke: 0.6px #000; paint-order: stroke fill; text-shadow: 0 0 6px rgba(255,211,74,.8); margin-bottom: 1px; }
.nlabel.extremist .hb i { background: linear-gradient(#ffe27a, #e0a400); }

.ext-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items: end; }
.ext-form label { margin: 0; display: grid; gap: 4px; }
.ext-form input[type=number] { width: 100px; }

.snd-panel{position:absolute;right:12px;top:250px;z-index:30;background:rgba(10,14,24,.92);border:1px solid #3a4a6a;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:8px;font-size:13px;color:#dfe8ff;pointer-events:auto}
.snd-panel.hidden{display:none}
.snd-panel label{display:flex;justify-content:space-between;align-items:center;gap:10px}
.snd-panel input[type=range]{width:110px}

#btn-autopick.active{background:#46c27a;border-color:#46c27a;color:#07210f;box-shadow:0 0 0 4px rgba(70,194,122,.25)}

/* ---- Loja do Mike da Swat ---- */
.lshop { width: min(760px, calc(100vw - 20px)); background: #15110d; border: 2px solid #6b5a3a; border-radius: 6px; box-shadow: 0 0 0 1px #000, 0 20px 60px rgba(0,0,0,.7); padding: 0; font-family: Tahoma, Verdana, sans-serif; color: #d8cfb8; }
.ls-title { display: flex; align-items: center; justify-content: space-between; padding: 5px 10px; background: linear-gradient(#2a3b5c, #16223a); border-bottom: 1px solid #000; font-weight: 700; font-size: 13px; color: #e8eefc; }
.ls-title button { background: #1b2740; border: 1px solid #5d6f94; color: #fff; width: 22px; height: 22px; cursor: pointer; border-radius: 3px; }
.ls-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 10px 0; }
.ls-tabs, .ls-lv { display: flex; gap: 4px; flex-wrap: wrap; }
.ls-tabs button, .ls-lv button { background: #2a2118; border: 1px solid #6b5a3a; color: #e8d9b0; font: 700 12px Tahoma, Verdana, sans-serif; padding: 4px 10px; cursor: pointer; border-radius: 3px; }
.ls-tabs button.on, .ls-lv button.on { background: #5a4630; border-color: #ffd87a; color: #fff; }
.ls-body { display: grid; grid-template-columns: 252px 1fr; gap: 10px; padding: 8px 10px; min-height: 360px; }
.ls-h { font-size: 12px; color: #cfc6ad; margin: 0 0 3px 2px; }
.ls-left { display: flex; flex-direction: column; }
.ls-grid { flex: 1; display: grid; grid-template-columns: repeat(6, 38px); grid-auto-rows: 38px; gap: 3px; padding: 4px; background: #0b0907; border: 1px solid #3a2f20; overflow-y: auto; max-height: 330px; align-content: start; }
.ls-cell { position: relative; width: 38px; height: 38px; background: radial-gradient(circle at 50% 40%, #6a4a3a, #1f120e); border: 1px solid #3b2a22; cursor: pointer; overflow: hidden; }
.ls-cell.empty { background: #100c0a; border-color: #231a14; cursor: default; }
.ls-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ls-cell i { position: absolute; right: 1px; bottom: 0; font: 700 10px Tahoma, sans-serif; color: #ffe08a; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.ls-cell:not(.empty):hover { border-color: #7ec8ff; }
.ls-cell.sel { border-color: #4de0ff; box-shadow: 0 0 0 1px #4de0ff inset; }
.ls-cell.lock { opacity: .45; }
.ls-cell.r-raro { border-color: #3d6fb0; } .ls-cell.r-epico { border-color: #8a4fc0; } .ls-cell.r-lendario { border-color: #c98a22; }
.ls-right { display: flex; flex-direction: column; min-width: 0; }
.ls-info { background: #0b0907; border: 1px solid #3a2f20; padding: 8px; height: 190px; overflow-y: auto; font-size: 12px; }
.ls-req { background: #0b0907; border: 1px solid #3a2f20; padding: 6px; flex: 1; min-height: 120px; max-height: 150px; overflow-y: auto; margin-top: 0; }
.ls-right .ls-h:nth-of-type(2) { margin-top: 6px; }
.ls-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.ls-head img { width: 44px; height: 44px; background: radial-gradient(circle at 50% 40%, #6a4a3a, #1f120e); border: 1px solid #5d4636; }
.ls-head b { display: block; font-size: 13px; } .ls-head small { display: block; color: #e2c36b; font-size: 11px; }
.ls-head.r-comum b { color: #e8e8e8; } .ls-head.r-incomum b { color: #5fe36a; } .ls-head.r-raro b { color: #4da3ff; } .ls-head.r-epico b { color: #c77dff; } .ls-head.r-lendario b { color: #ffb13b; }
.ls-stats > div { display: flex; justify-content: space-between; gap: 8px; padding: 1px 2px; }
.ls-stats span { color: #b9ae92; } .ls-stats b { color: #fff; } .ls-stats .up { color: #7cf08f; } .ls-stats .no { color: #ff8c8c; }
.ls-desc { margin: 6px 0 0; color: #cdbf9a; line-height: 1.4; font-size: 11.5px; }
.ls-r { display: flex; align-items: center; gap: 8px; padding: 3px 4px; border-bottom: 1px solid #1d1710; }
.ls-r .ic { width: 30px; height: 30px; display: grid; place-items: center; font-size: 20px; background: #1a0f0c; border: 1px solid #4a3a2c; flex: none; }
.ls-r b { display: block; font-size: 12px; color: #e8e0c8; } .ls-r small { color: #b9ae92; font-size: 11px; }
.ls-r.ok small { color: #7cf08f; } .ls-r.no small { color: #ff9a9a; }
.ls-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 8px 10px 10px; border-top: 1px solid #2c2318; font-size: 12px; }
.ls-foot .ls-money { margin-right: auto; } .ls-money b { color: #ffd34a; }
.ls-foot label { display: flex; align-items: center; gap: 6px; } .ls-foot input { width: 44px; background: #0b0907; border: 1px solid #3a2f20; color: #fff; padding: 3px; text-align: center; }
.ls-foot button { min-width: 86px; padding: 5px 12px; background: linear-gradient(#26365a, #141d33); border: 1px solid #6f82ad; color: #fff; font: 700 12px Tahoma, sans-serif; cursor: pointer; border-radius: 3px; }
.ls-foot button.dim { filter: grayscale(.7) brightness(.8); } .ls-foot button:disabled { opacity: .4; cursor: default; }
@media (max-width: 640px) { .ls-body { grid-template-columns: 1fr; } }

/* ---- Jogadores: menu, convites, duelo e troca ---- */
.pmenu { position: absolute; z-index: 5; width: 190px; padding: 10px; border-radius: 12px; background: rgba(14,20,38,.96); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 12px 34px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 6px; }
.pm-name { font: 800 15px var(--font); } .pm-sub { font-size: 12px; color: var(--muted); }
.invite-box { position: absolute; z-index: 6; left: 50%; top: 90px; transform: translateX(-50%); padding: 12px 16px; border-radius: 12px; background: rgba(20,16,10,.97); border: 1px solid rgba(255,214,102,.6); box-shadow: 0 12px 34px rgba(0,0,0,.5); text-align: center; font-weight: 700; }
.invite-btns { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.duel-banner { position: absolute; z-index: 4; left: 50%; top: 14px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(120,20,20,.9); border: 1px solid #ff8a8a; font-weight: 800; display: flex; gap: 12px; align-items: center; }
.trade-win { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 30px); overflow-y: auto; background: rgba(14,20,38,.97); border: 1px solid rgba(126,200,255,.45); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px; }
.trade-col { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 8px; }
.trade-col h4 { margin: 0 0 6px; font-size: 14px; color: #9bd4ff; }
.trade-offer { min-height: 96px; display: flex; flex-direction: column; gap: 4px; }
.to-item { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 6px; border-radius: 7px; background: rgba(0,0,0,.28); }
.to-item .ic { font-size: 18px; } .to-item b { flex: 1; font-weight: 700; }
.to-item input { width: 54px; } .to-item button { background: none; border: 1px solid var(--line); color: #ffb4b4; border-radius: 6px; cursor: pointer; }
.to-item button:disabled { opacity: .35; cursor: not-allowed; }
.tr-money { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); } .tr-money input { width: 110px; margin-left: 6px; } .tr-money b { color: #ffd34a; }
.tr-state { margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--muted); } .tr-state.ok { color: #7cf08f; }
.trade-bagh { padding: 0 14px; font-size: 12px; color: var(--muted); }
.trade-bag { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; padding: 6px 14px 8px; }
.trade-bag .inv-item { width: 100%; aspect-ratio: 1; cursor: pointer; }
.trade-msg { padding: 0 14px; min-height: 18px; font-size: 13px; color: #ffe08a; font-weight: 700; }
.trade-btns { display: flex; gap: 10px; justify-content: flex-end; padding: 8px 14px 14px; }
@media (max-width: 700px) { .trade-cols { grid-template-columns: 1fr; } .trade-bag { grid-template-columns: repeat(6, 1fr); } }

/* ---- Loja de armaduras (Zé Pilantra) ---- */
.ls-cell .em { display: grid; place-items: center; width: 100%; height: 100%; font-size: 22px; }
.ls-head .ic.big { width: 44px; height: 44px; display: grid; place-items: center; font-size: 28px; background: radial-gradient(circle at 50% 40%, #6a4a3a, #1f120e); border: 1px solid #5d4636; }
.ls-tabs button[data-z] { padding: 4px 8px; }
.ic img,.em img,.ls-cell .em img{width:100%;height:100%;object-fit:contain;display:block;image-rendering:auto}
.ls-cell .em{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.ls-head .ic.big img{width:56px;height:56px}
.ls-tabs button:disabled{opacity:.4;cursor:default}
.ls-head{min-height:64px;align-items:center}.ls-head .ic.big{flex:0 0 56px;width:56px;height:56px;margin-right:6px}

/* Minimapa redondo (canto superior direito) */
#minimap, #minimap { width: 200px; height: 200px !important; border-radius: 50%; border: 0; background: transparent; box-shadow: 0 4px 14px rgba(0,0,0,.55); margin-left: auto; }
.hud-zone { text-align: center; }
@media (max-width: 820px) { #minimap { width: 130px; height: 130px !important; } }

/* Barras de rolagem do jogo: finas, suaves, nas cores douradas */
* { scrollbar-width: thin; scrollbar-color: rgba(232,195,90,.38) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(232,195,90,.35); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(232,195,90,.65); }
*::-webkit-scrollbar-corner { background: transparent; }
/* Lojas: sem barra lateral/horizontal aparente; área ampliada */
.lshop { width: min(840px, calc(100vw - 20px)); }
.ls-body { grid-template-columns: 276px 1fr; }
.ls-grid { grid-template-columns: repeat(6, 38px); justify-content: center; overflow-x: hidden; max-height: 420px; gap: 4px; padding: 6px 4px; }
.ls-info { height: auto; min-height: 190px; max-height: none; overflow: visible; }
.ls-req { max-height: none; overflow: visible; min-height: 90px; }
.ls-grid::-webkit-scrollbar, .ls-info::-webkit-scrollbar, .ls-req::-webkit-scrollbar { width: 4px; }
.npc-list, .npc-dialog { overflow-x: hidden; }
.ls-grid { scrollbar-width: none; max-height: 440px; }
.ls-grid::-webkit-scrollbar { display: none; }
.skill .cost{white-space:nowrap;font-size:10px;letter-spacing:-.2px}

/* Venda em massa */
.sell-dialog { width: min(640px, calc(100vw - 20px)); }
.sell-list { margin: 8px 10px; background: #0b0907; border: 1px solid #3a2f20; height: 330px; overflow-y: auto; }
.sell-row { display: grid; grid-template-columns: 22px 34px 1fr 64px 70px; align-items: center; gap: 8px; padding: 3px 8px; border-bottom: 1px solid #1c150e; font-size: 12px; cursor: pointer; }
.sell-row:hover { background: #1a130c; } .sell-row.on { background: #2a2214; }
.sell-row .ic { width: 32px; height: 32px; display: grid; place-items: center; font-size: 20px; background: radial-gradient(circle at 50% 40%, #6a4a3a, #1f120e); border: 1px solid #3b2a22; overflow: hidden; }
.sell-row .nm b { display: block; color: #e8e8e8; font-weight: 700; } .sell-row .nm small { color: #b9ae92; }
.sell-row.r-incomum .nm b { color: #5fe36a; } .sell-row.r-raro .nm b { color: #4da3ff; } .sell-row.r-epico .nm b { color: #c77dff; } .sell-row.r-lendario .nm b { color: #ffb13b; }
.sell-row input[type=number] { width: 56px; background: #0b0907; border: 1px solid #3a2f20; color: #fff; padding: 2px; text-align: center; }
.sell-row .pr { text-align: right; color: #ffd34a; font-weight: 700; }
.sell-empty { padding: 30px; text-align: center; color: #b9ae92; }
.ls-lv button#sell-all, .ls-lv button#sell-none { background: #2a2118; }
#npc-sell { margin-left: 6px; }

.mast-h { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(232,195,90,.35); color: #e8c35a; font-weight: 800; }
.mast-n { font-size: 11px; color: var(--muted, #a9b4c8); margin-bottom: 3px; }
.mast { display: flex; justify-content: space-between; font-size: 12px; } .mast .up { color: #7cf08f; }


/* ---------- Grupo (Party) ---------- */
.party-win { position: absolute; top: 108px; left: 12px; width: 220px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); padding: 6px 8px 8px; z-index: 3; }
.pw-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 12px; margin-bottom: 4px; color: #ffe27a; }
.pw-head button { font-size: 10px; padding: 2px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); color: #fff; cursor: pointer; }
.pw-list { display: flex; flex-direction: column; gap: 5px; max-height: 330px; overflow-y: auto; scrollbar-width: none; }
.pw-list::-webkit-scrollbar { display: none; }
.pw-m { padding: 3px 5px 4px; border-radius: 8px; background: rgba(0,0,0,.28); }
.pw-m.off { opacity: .5; } .pw-m.dead { filter: grayscale(.8); }
.pw-n { display: flex; align-items: baseline; gap: 5px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pw-n span { flex: 1; overflow: hidden; text-overflow: ellipsis; } .pw-n small { opacity: .7; font-weight: 500; font-size: 10px; }
.pw-kick { border: 0; background: transparent; color: #ff9a9a; cursor: pointer; font-size: 11px; padding: 0 2px; }
.pw-b { height: 6px; border-radius: 4px; background: rgba(255,255,255,.12); margin-top: 2px; overflow: hidden; }
.pw-b i { display: block; height: 100%; } .pw-b.hp i { background: linear-gradient(#ff6b6b, #c42f2f); } .pw-b.mp i { background: linear-gradient(#5fa8ff, #2b62c4); }
.nlabel.boss-raid .nm { font-size: 14px !important; font-weight: 800; text-shadow: 0 0 8px #ff4a1a, 0 0 2px #000; }
.nlabel.boss-epic .nm { font-size: 16px !important; font-weight: 800; letter-spacing: .3px; text-shadow: 0 0 12px #ffb400, 0 0 3px #000; }
.nlabel.boss-guard .nm { font-size: 12px !important; font-weight: 700; }
.nlabel.boss-raid .hb, .nlabel.boss-epic .hb { width: 120px; height: 8px; }
.nlabel.boss-epic .hb i { background: linear-gradient(#ffe27a, #d98a00); }
.nlabel.boss-raid .hb i { background: linear-gradient(#ff8a5a, #c42f1a); }

/* relógio do dia/noite */
.hud-clock { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 20; padding: 3px 12px; border-radius: 12px; background: rgba(10,14,24,.55); color: #ffe9b0; font: 700 13px/1.3 system-ui, sans-serif; letter-spacing: .5px; pointer-events: none; text-shadow: 0 1px 2px #000; }
