/* Layout: colunas laterais (0 a 2 de cada lado) + tela do jogo no centro + chat embaixo.
   Visual de painel de pedra escura com detalhes dourados, no espírito dos clientes clássicos. */
:root {
  --bg: #1b1916;
  --panel: #2a2723;
  --panel-2: #33302a;
  --slot: #1e1c19;
  --edge: #4b4539;
  --edge-dark: #12100e;
  --text: #e6dec9;
  --muted: #9a917c;
  --gold: #e9c25e;
  --red: #c8423a;
  --green: #4fae4a;
  --blue: #5a8ad0;
  --poison: #7fb33a;
  --font: Verdana, Tahoma, "DejaVu Sans", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 12px/1.4 var(--font); overflow: hidden; }
[hidden] { display: none !important; }
button { font: inherit; color: var(--text); background: linear-gradient(#3e3a33, #2c2924); border: 1px solid var(--edge); border-bottom-color: var(--edge-dark); border-radius: 3px; padding: 4px 10px; cursor: pointer; }
button:hover:not(:disabled) { background: linear-gradient(#4a453c, #34302a); }
button:disabled { opacity: 0.45; cursor: default; }
button.primary { background: linear-gradient(#8a6a2a, #6a4f1c); border-color: #a8843a; color: #fff6dc; font-weight: bold; }
button.primary:hover:not(:disabled) { background: linear-gradient(#9a7a34, #785a22); }
button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
input, select { font: inherit; color: var(--text); background: var(--slot); border: 1px solid var(--edge); border-radius: 3px; padding: 4px 6px; }
input[type=number] { width: 70px; }

#app { position: fixed; inset: 0; display: flex; }
#app.pre-login .col, #app.pre-login .ingame { display: none !important; }
.col { width: 236px; flex: 0 0 236px; background: #24211d; border-left: 1px solid var(--edge-dark); border-right: 1px solid var(--edge-dark); overflow-y: auto; overflow-x: hidden; padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.col.off { display: none; }
.col.drop-target { background: #2c2a22; outline: 2px dashed #6a5a30; outline-offset: -4px; }
#center { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#game-view { position: relative; flex: 1; min-height: 200px; overflow: hidden; background: #000; }
#game-view canvas:first-child { display: block; }
#chat-resizer { height: 6px; cursor: ns-resize; background: #2a2723; border-top: 1px solid var(--edge-dark); border-bottom: 1px solid var(--edge); }
#chat { height: 170px; display: flex; flex-direction: column; background: #1a1815; }
#chat-tabs { display: flex; gap: 2px; padding: 2px 4px 0; background: #24211d; }
#chat-tabs button { border-radius: 3px 3px 0 0; padding: 2px 10px; font-size: 11px; color: var(--muted); background: #2a2723; }
#chat-tabs button.on { color: var(--text); background: #3a362f; }
#chat-tabs button.unread { color: var(--gold); }
#chat-log { flex: 1; overflow-y: auto; padding: 3px 8px; font-size: 11.5px; }
#chat-log div { white-space: pre-wrap; word-break: break-word; }
#chat-log .t { color: #6f6858; }
#chat-log .local { color: #f0e2a0; }
#chat-log .world { color: #9ec8ff; }
#chat-log .trade { color: #f0b070; }
#chat-log .pm { color: #8fd0ff; }
#chat-log .npc { color: #7fd8ff; }
#chat-log .system { color: #ffffff; }
#chat-log .loot { color: #c9c0aa; }
#chat-line { padding: 3px 4px; border-top: 1px solid var(--edge-dark); }
#chat-input { width: 100%; }

/* ---------- painéis ---------- */
.panel { background: var(--panel); border: 1px solid var(--edge); border-bottom-color: var(--edge-dark); border-radius: 3px; flex: 0 0 auto; }
.panel > header { display: flex; align-items: center; gap: 6px; padding: 3px 6px; background: linear-gradient(#3a362f, #2e2b26); border-bottom: 1px solid var(--edge-dark); cursor: grab; user-select: none; font-size: 11px; font-weight: bold; letter-spacing: 0.04em; text-transform: uppercase; color: #d8cfb8; }
.panel > header img { width: 14px; height: 14px; image-rendering: pixelated; }
.panel > header .sp { flex: 1; }
.panel > header button { padding: 0 5px; line-height: 14px; font-size: 11px; }
.panel.min > .body { display: none; }
.panel > .body { padding: 6px; overflow: auto; resize: vertical; min-height: 30px; }
.panel.dragging { opacity: 0.4; }
.drop-marker { height: 4px; background: var(--gold); border-radius: 2px; flex: 0 0 auto; }

.slots { display: grid; grid-template-columns: repeat(4, 48px); gap: 4px; justify-content: center; }
.slot { position: relative; width: 48px; height: 48px; background: var(--slot); border: 1px solid #0e0d0b; box-shadow: inset 0 0 0 1px #3a362f; border-radius: 2px; display: grid; place-items: center; cursor: pointer; }
.slot img { width: 42px; height: 42px; pointer-events: none; } /* V4: ícones 64x64 */
.slot .cnt { position: absolute; right: 3px; bottom: 1px; font-size: 10px; font-weight: bold; color: #fff; text-shadow: 1px 1px 0 #000; }
.slot .req { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; text-align: center; color: #f08a80; background: rgba(0,0,0,0.6); }
.slot .req.ok { color: #9ad07a; }
.slot.label::after { content: attr(data-label); position: absolute; inset: auto 0 2px; text-align: center; font-size: 9px; color: #5a5446; pointer-events: none; }
.slot.has.label::after { display: none; }
.slot:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.slot.sel { box-shadow: inset 0 0 0 2px var(--gold); }
.slot.dropover { box-shadow: inset 0 0 0 2px var(--green); }
/* raridade V3: Rare azul, Legendary dourado */
.slot.rar-rare { box-shadow: inset 0 0 0 1px #4a8cff, inset 0 0 8px rgba(74,140,255,.35); }
.slot.rar-legendary { box-shadow: inset 0 0 0 1px #f2b43a, inset 0 0 10px rgba(242,180,58,.45); }
.nm.rar-rare { color: #7fb0ff; } .nm.rar-legendary { color: #f2c35a; }
.equip { display: grid; grid-template-columns: repeat(3, 48px); gap: 4px; justify-content: center; }
.equip .gap { width: 48px; height: 48px; }
.money { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; padding: 4px 6px; background: var(--slot); border: 1px solid #0e0d0b; border-radius: 2px; font-size: 11px; }
.money b { color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.stat { background: var(--slot); border: 1px solid #0e0d0b; border-radius: 2px; padding: 3px 4px; text-align: center; }
.stat span { display: block; font-size: 9px; color: var(--muted); text-transform: uppercase; }
.stat b { font-size: 13px; }

.skill { margin-bottom: 6px; }
.skill .row { display: flex; justify-content: space-between; }
.skill .row b { color: #fff; }
.skill .mini { height: 4px; background: #111; border-radius: 2px; margin-top: 2px; overflow: hidden; }
.skill .mini div { height: 100%; background: #c8a040; }
.skill small { color: var(--muted); font-size: 9.5px; }

.battle-row { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; }
.battle-row:hover { background: #34302a; }
.battle-row.target { border-color: var(--red); background: #3a2622; }
.battle-row .nm { flex: 1; min-width: 0; }
.battle-row .hb { height: 4px; background: #111; margin-top: 2px; }
.battle-row .hb div { height: 100%; }
.battle-row .dist { color: var(--muted); font-size: 10px; }
.empty { color: var(--muted); font-style: italic; padding: 4px; }
.row-btns { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.row-btns button.on { border-color: var(--gold); color: var(--gold); }

.kv { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px solid #24211d; }
.kv span { color: var(--muted); }
.bar-s { height: 6px; background: #111; border-radius: 3px; overflow: hidden; margin: 3px 0 6px; }
.bar-s div { height: 100%; background: linear-gradient(#8a7ae0, #5a4ab0); }

/* ---------- HUD sobre o jogo ---------- */
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lbl { position: absolute; transform: translate(-50%, -100%); text-align: center; white-space: nowrap; font: bold 11px var(--font); text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; }
.lbl .hb { width: 30px; height: 4px; margin: 1px auto 0; background: #000; border: 1px solid #000; }
.lbl .hb div { height: 100%; }
.lbl.target .nm { outline: 1px solid var(--red); }
.bubble { position: absolute; transform: translate(-50%, -100%); max-width: 260px; white-space: pre-line; text-align: center; font: bold 12px var(--font); color: #f8f800; margin-bottom: 2px; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; }
.fxn { position: absolute; transform: translate(-50%, -50%); font: bold 15px var(--font); text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; animation: rise 1s ease-out forwards; }
.fxn.small { font-size: 11px; }
@keyframes rise { from { opacity: 1; margin-top: 0; } to { opacity: 0; margin-top: -36px; } }
@media (prefers-reduced-motion: reduce) { .fxn { animation-duration: 0.01s; } }
.stall-lbl { position: absolute; transform: translate(-50%, -100%); font: bold 10px var(--font); color: #fff; background: rgba(20, 16, 10, 0.75); border: 1px solid #6a5a30; padding: 1px 5px; border-radius: 2px; white-space: nowrap; }
.stall-lbl.free { color: var(--muted); border-color: #3a362f; }
.target-ring { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 22px; border: 2px solid var(--red); border-radius: 50%; }

#hud-top { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: min(440px, 60%); background: rgba(30, 27, 23, 0.92); border: 1px solid var(--edge); border-radius: 3px; padding: 4px 6px; display: flex; flex-direction: column; gap: 3px; }
.hpbar { display: flex; align-items: center; gap: 6px; }
.heart { width: 18px; height: 16px; background: var(--red); clip-path: polygon(50% 100%, 0 40%, 0 15%, 20% 0, 50% 20%, 80% 0, 100% 15%, 100% 40%); }
.bar { position: relative; flex: 1; height: 18px; background: #0f0d0b; border: 1px solid #000; border-radius: 2px; overflow: hidden; }
.bar .fill { height: 100%; transition: width 0.2s; }
#hp-fill { background: linear-gradient(#5ccf4c, #2f8a2a); }
#hp-fill.mid { background: linear-gradient(#d8c040, #a08a20); }
#hp-fill.low { background: linear-gradient(#e0554a, #a02a22); }
#hp-fill.poison { background: linear-gradient(#a8d050, #6a9a20); }
.bar span { position: absolute; inset: 0; display: grid; place-items: center; font: bold 12px var(--font); text-shadow: 1px 1px 0 #000; }
.xpbar { display: flex; align-items: center; gap: 6px; }
.xpbar .bar { height: 11px; }
.xpbar .bar span { font-size: 9px; }
#xp-fill { background: linear-gradient(#8a7ae0, #5a4ab0); }
#lvl-text { color: #b8a8ff; font-weight: bold; font-size: 11px; min-width: 42px; }
.xpinfo { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }

#minimap-wrap { position: absolute; top: 8px; right: 10px; width: 170px; height: 170px; }
#minimap { width: 170px; height: 170px; border-radius: 50%; border: 4px solid #5a6a8a; box-shadow: 0 0 0 2px #1a1a1a, 0 4px 14px rgba(0,0,0,0.5); cursor: crosshair; image-rendering: pixelated; }
.mm-btn { position: absolute; width: 22px; height: 22px; padding: 0; border-radius: 50%; font-weight: bold; }
.mm-btn[data-mm=out] { left: 6px; bottom: 6px; }
.mm-btn[data-mm=in] { right: 6px; bottom: 6px; }
.mm-btn[data-mm=full] { left: 6px; top: 6px; }
#online-btn { position: absolute; right: 0; top: 0; padding: 1px 6px; font-size: 10px; color: #9ad07a; }
#online-btn::before { content: '● '; }
#perf { position: absolute; right: 4px; top: 176px; display: flex; gap: 6px; font-size: 10px; background: rgba(0,0,0,0.6); padding: 2px 6px; border-radius: 8px; }
#ping { color: #7ad07a; }

#toolbar { position: absolute; top: 8px; left: 8px; display: grid; grid-template-columns: repeat(2, 30px); gap: 3px; }
#toolbar button { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; }
#toolbar button img { width: 20px; height: 20px; image-rendering: pixelated; }
#toolbar button.on { border-color: var(--gold); }

#conditions { position: absolute; left: 8px; bottom: 60px; display: flex; gap: 4px; }
.cond { display: flex; align-items: center; gap: 4px; padding: 2px 6px; background: rgba(20, 18, 15, 0.85); border: 1px solid var(--edge); border-radius: 3px; font-size: 10.5px; }
.cond img { width: 16px; height: 16px; image-rendering: pixelated; }
.cond.poison { border-color: var(--poison); color: #c8f080; }
#prompts { position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.prompt { pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 5px 12px; background: rgba(30, 27, 23, 0.92); border: 1px solid var(--edge); border-radius: 3px; font-weight: bold; }
.prompt kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; background: #e6dec9; color: #1a1815; border-radius: 3px; font: bold 11px var(--font); }
#screen-msg { position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%); text-align: center; font: bold 13px var(--font); color: #fff; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; pointer-events: none; max-width: 80%; }
#screen-msg div { animation: fadeout 4s forwards; }
@keyframes fadeout { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
#hotbar { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 3px; padding: 3px; background: rgba(30, 27, 23, 0.9); border: 1px solid var(--edge); border-radius: 3px; }
#hotbar .slot { width: 42px; height: 42px; }
#hotbar .slot img { width: 36px; height: 36px; }
#hotbar .key { position: absolute; left: 3px; top: 1px; font-size: 10px; color: var(--muted); }

#fullmap { position: absolute; inset: 0; background: #2a2118; z-index: 5; }
#fullmap canvas { position: absolute; inset: 36px 52px 12px 12px; width: calc(100% - 64px); height: calc(100% - 48px); border: 4px solid #6a5232; border-radius: 4px; cursor: grab; image-rendering: pixelated; }
.fm-side { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; }
.fm-side button { width: 32px; height: 32px; padding: 0; }
.fm-top { position: absolute; top: 6px; left: 12px; right: 10px; display: flex; align-items: center; gap: 12px; }
.fm-top .floor-name { font-weight: bold; color: var(--gold); }
.fm-top .fm-hint { flex: 1; color: var(--muted); font-size: 11px; }

/* ---------- janelas flutuantes ---------- */
.win { position: fixed; z-index: 20; min-width: 260px; max-width: min(560px, calc(100vw - 20px)); max-height: calc(100vh - 20px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--edge); border-bottom-color: var(--edge-dark); border-radius: 3px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.win > header { display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: linear-gradient(#3a362f, #2e2b26); border-bottom: 1px solid var(--edge-dark); cursor: move; user-select: none; font-weight: bold; }
.win > header .sub { color: var(--gold); font-weight: normal; }
.win > header .sp { flex: 1; }
.win > header button { padding: 0 6px; }
.win > .body { padding: 8px; overflow: auto; }
.win .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); }
.win .foot b { color: var(--gold); }
.tabs { display: flex; gap: 3px; margin-bottom: 8px; flex-wrap: wrap; }
.tabs button.on { border-color: var(--gold); color: var(--gold); }

.npc-head { display: flex; gap: 10px; align-items: flex-start; }
.portrait { width: 52px; height: 52px; flex: 0 0 52px; image-rendering: pixelated; border: 1px solid #0e0d0b; background: #1e1c19; border-radius: 2px; }
.npc-log { flex: 1; min-height: 70px; max-height: 220px; overflow-y: auto; background: var(--slot); border: 1px solid #0e0d0b; padding: 6px 8px; border-radius: 2px; }
.npc-log p { margin: 0 0 6px; }
.npc-log .you { color: var(--muted); text-align: right; }
.kw { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.kw button { color: #7fd8ff; }
.npc-input { display: flex; gap: 4px; margin-top: 6px; }
.npc-input input { flex: 1; }

.list-row { display: flex; align-items: center; gap: 8px; padding: 4px; border-bottom: 1px solid #24211d; }
.list-row img { width: 38px; height: 38px; background: var(--slot); border: 1px solid #0e0d0b; }
.list-row .nm { flex: 1; min-width: 0; }
.list-row .nm small { display: block; color: var(--muted); font-size: 10px; }
.list-row .price { color: var(--gold); font-weight: bold; white-space: nowrap; }
.qty { display: flex; align-items: center; gap: 2px; }
.qty button { padding: 1px 6px; }
.qty input { width: 46px; text-align: center; padding: 2px; }

.offer { border: 1px solid var(--edge); border-left: 3px solid #4a9a8a; border-radius: 2px; margin-bottom: 8px; background: #26231f; }
.offer h4 { margin: 0; padding: 4px 8px; display: flex; justify-content: space-between; font-size: 12px; }
.offer h4 small { color: var(--muted); font-weight: normal; }
.offer .xchg { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 6px 8px; background: #1e1c19; margin: 0 6px; border: 1px solid #0e0d0b; }
.offer .xchg span.lbl2 { display: block; font-size: 9px; color: var(--blue); text-transform: uppercase; font-weight: bold; }
.offer .xchg span.lbl3 { display: block; font-size: 9px; color: #e0a040; text-transform: uppercase; font-weight: bold; }
.offer .cost { color: #f08a7a; font-weight: bold; }
.offer .act { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; }
.stall-owner { display: flex; gap: 10px; align-items: center; padding: 6px; background: #1e1c19; border: 1px solid #0e0d0b; margin-bottom: 8px; }
.stall-owner small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.stall-owner b { font-size: 14px; }
.token-note { font-size: 10.5px; color: var(--muted); border: 1px dashed var(--edge); padding: 6px; border-radius: 2px; margin-top: 6px; }

.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trade-cols h4 { margin: 0 0 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.trade-cols .ok { color: var(--green); font-weight: bold; }
.mini-slots { display: grid; grid-template-columns: repeat(5, 36px); gap: 3px; }
.mini-slots .slot { width: 36px; height: 36px; }
.mini-slots .slot img { width: 31px; height: 31px; }

.help-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.help-grid kbd { justify-self: start; align-self: start; display: inline-block; min-width: 22px; text-align: center; padding: 1px 5px; background: #e6dec9; color: #1a1815; border-radius: 3px; font: bold 11px var(--font); }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid #24211d; }
.seg { display: flex; gap: 2px; }
.seg button.on { border-color: var(--gold); color: var(--gold); }

#ctxmenu { position: fixed; z-index: 40; min-width: 150px; background: var(--panel); border: 1px solid var(--edge); border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,0.6); padding: 3px; }
#ctxmenu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 4px 10px; }
#ctxmenu button:hover { background: #3a362f; }
#ctxmenu .ttl { padding: 3px 10px; color: var(--muted); font-size: 10px; border-bottom: 1px solid var(--edge-dark); }
#tooltip { position: fixed; z-index: 50; pointer-events: none; max-width: 260px; background: #12100e; border: 1px solid var(--edge); padding: 4px 8px; border-radius: 3px; font-size: 11px; }

/* ---------- tela de login ---------- */
#login { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; padding: 16px; background: linear-gradient(90deg, rgba(10, 8, 6, 0.85) 0%, rgba(10, 8, 6, 0.4) 45%, rgba(10, 8, 6, 0) 70%); }
.login-menu { width: min(360px, 100%); margin-left: clamp(0px, 6vw, 90px); }
.login-menu h1 { margin: 0; font: bold 34px/1.1 Georgia, "Times New Roman", serif; color: var(--gold); text-shadow: 2px 2px 0 #000; letter-spacing: 0.02em; }
.login-menu .tag { margin: 4px 0 16px; color: #cfc5ad; text-shadow: 1px 1px 0 #000; }
.login-card { background: rgba(36, 33, 29, 0.95); border: 1px solid var(--edge); border-radius: 4px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.login-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.login-tabs button { flex: 1; }
.login-tabs button.on { border-color: var(--gold); color: var(--gold); }
.login-card form { display: flex; flex-direction: column; gap: 8px; }
.login-card label { display: flex; flex-direction: column; gap: 3px; color: #cfc5ad; }
.login-card label small { color: var(--muted); }
.login-card label.check { flex-direction: row; align-items: center; gap: 6px; }
.login-card input:not([type=checkbox]) { padding: 7px 8px; font-size: 13px; }
.login-card .primary { padding: 8px; font-size: 13px; }
.login-alt { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--edge-dark); }
#login-status { min-height: 18px; margin: 8px 0 0; color: #f0a070; }

#overlay-msg { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0,0,0,0.6); }
#overlay-msg .win { position: static; }

@media (max-width: 760px) {
  .col { width: 200px; flex-basis: 200px; }
  #hud-top { width: 70%; }
  #minimap-wrap { transform: scale(0.75); transform-origin: top right; }
}

/* V5 */
.seg { display: inline-flex; border: 1px solid #3a362f; border-radius: 3px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; margin: 0; }
.seg button.on { background: var(--gold); color: #1a140c; }
#gather-bar { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); width: 220px; background: rgba(10,8,6,.85); border: 1px solid #5a4a30; border-radius: 4px; padding: 6px 8px; z-index: 50; font-size: 12px; color: #e8dcb0; text-align: center; pointer-events: none; }
#gather-bar .gfill { height: 6px; margin-top: 4px; background: #c8a040; width: 0; border-radius: 2px; }
.welcome p { line-height: 1.5; margin: 0 0 10px; }
.wdots { display: flex; gap: 6px; justify-content: center; margin: 6px 0 10px; }
.wdots span { width: 8px; height: 8px; border-radius: 50%; background: #4a443a; }
.wdots span.on { background: var(--gold); }
b.warn { color: #f08a80; }

/* Outfit */
.outfit { display: flex; gap: 12px; }
.outfit-prev { width: 150px; height: 200px; flex: none; background: radial-gradient(circle at 50% 60%, #4a4236, #221e1a); border: 1px solid #5a4e3c; border-radius: 6px; }
.outfit-ctl { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.outfit-ctl .seg button { font-size: 11px; padding: 3px 6px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.swatches .sw { height: 26px; border: 2px solid #1a1612; border-radius: 4px; cursor: pointer; padding: 0; }
.swatches .sw.on { border-color: #f2c94c; box-shadow: 0 0 0 1px #f2c94c; }
.hs-lab { flex: 1; text-align: center; font-size: 12px; align-self: center; }
.outfit-ctl .hint { font-size: 11px; opacity: 0.7; margin: 0; }

/* Cosméticos */
.win .tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.win .tabs button { flex: 1; padding: 4px; font-size: 12px; }
.win .tabs button.on { background: #6a5430; color: #fff; border-color: #f2c94c; }
.cosm-slot { border-bottom: 1px solid #3a3228; padding: 4px 0 6px; }
.cosm-slot-t { font-size: 11px; text-transform: uppercase; opacity: .7; margin-bottom: 3px; }
.cosm-pick { display: flex; flex-wrap: wrap; gap: 4px; }
.cosm-pick button { font-size: 11px; padding: 2px 6px; }
.cosm-pick button.on { border-color: #f2c94c; color: #f2c94c; }
.cosm-vars { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cosm-vars .sw { width: 24px; height: 20px; border: 2px solid #1a1612; border-radius: 4px; padding: 0; cursor: pointer; }
.cosm-vars .sw.on { border-color: #f2c94c; box-shadow: 0 0 0 1px #f2c94c; }
.cshop { display: flex; gap: 10px; }
.cshop-list { width: 190px; flex: none; max-height: 330px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.cshop-cat { font-size: 11px; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.cshop-it { display: flex; align-items: center; gap: 6px; text-align: left; font-size: 12px; padding: 4px 6px; }
.cshop-it.on { border-color: #f2c94c; background: #3a3022; }
.cshop-it .dot { width: 10px; height: 10px; border-radius: 2px; flex: none; border: 1px solid #000; }
.cshop-it .nm { flex: 1; }
.badge { font-size: 9px; padding: 1px 4px; border-radius: 3px; white-space: nowrap; }
.badge.soon { background: #4a3a1a; color: #f2c94c; }
.badge.av { background: #1e4a2a; color: #8ae09a; }
.badge.own { background: #1e3a5a; color: #8ac8ff; }
.cshop-det { flex: 1; display: flex; gap: 10px; }
.cshop-det .outfit-prev { width: 170px; height: 210px; }
.cshop-info { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.cshop-info h3 { margin: 0; font-size: 15px; color: #f2c94c; }
.cshop-slot { font-size: 11px; opacity: .7; }
.cshop-info p { margin: 0; }
.cshop-bonus { color: #8ae09a; }
.cshop-vn { font-size: 11px; opacity: .8; margin-top: 4px; }
.cshop-price { font-size: 12px; margin-top: 6px; }
.cshop-price b { color: #f2c94c; }
.prompt:hover { border-color: var(--gold); }

/* V4 */
.list-row.dim { opacity: .55; }
.ttl-s { color: var(--gold); font-weight: bold; margin: 8px 0 4px; }
.task-row { padding: 4px 0 6px; border-bottom: 1px solid #3a3228; }
.task-row .row { display: flex; justify-content: space-between; }
.task-row .ok { color: var(--green); font-style: normal; }
.task-row small { color: var(--muted); }
.up-wrap { display: flex; gap: 10px; }
.up-list { width: 170px; flex: none; display: flex; flex-direction: column; gap: 3px; max-height: 320px; overflow-y: auto; }
.up-it { display: flex; align-items: center; gap: 6px; text-align: left; font-size: 11px; padding: 3px 5px; }
.up-it img { width: 28px; height: 28px; }
.up-it span { flex: 1; } .up-it small { color: var(--muted); font-size: 9px; }
.up-it.on { border-color: var(--gold); background: #3a3022; }
.up-det { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.up-det h3 { margin: 0; font-size: 13px; color: var(--gold); }
.up-det p { margin: 0; } .up-det .ok { color: var(--green); } .up-det .bad { color: var(--red); }
.equip .slot.label[data-label="Backpack"], .equip .slot.label[data-label="Amulet"], .equip .slot.label[data-label="Ring"] { }
#art-progress { min-height: 16px; margin: 4px 0 0; color: #b8a888; font-size: 12px; }
.login-note { margin: 2px 0 8px; color: #c8b070; font-size: 11.5px; }
#btn-guest small { opacity: .7; }
.login-menu h1.logo { margin: 0 0 4px; line-height: 0; }
.login-menu h1.logo img { width: 340px; max-width: 100%; image-rendering: pixelated; }
.login-links { margin: 6px 0 0; font-size: 12px; color: #b8a888; }
.login-links a { color: #f0c860; }
