:root {
  --bg: #2b2540;
  --bg2: #3a3356;
  --panel: #fbf3e4;
  --panel2: #f1e4cc;
  --panel-border: #b89a72;
  --ink: #3a2e2a;
  --muted: #8a7a6a;
  --accent: #ff8fb8;
  --accent2: #7bc8ff;
  --good: #58b368;
  --bad: #e05a5a;
  --gold: #e8b23a;
  --hp: #ff6b8a;
  --sp: #5aa0ff;
  --bexp: #ffd23a;
  --jexp: #9ad25a;
  --epic: #d67aff;
  --rare: #6aa8ff;
  --uncommon: #7be07b;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 10%, #4a3f6e 0%, var(--bg) 60%);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--bad); min-height: 1.2em; font-size: 13px; margin-top: 6px; }
.screen { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 16px; }

/* ---------- panels ---------- */
.panel {
  background: var(--panel);
  border: 2px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: 0 4px 0 #8a6f4e, 0 10px 24px rgba(0,0,0,.35);
  padding: 10px;
}
.btn {
  background: linear-gradient(#fff9ee, #efe1c6);
  border: 2px solid var(--panel-border);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 2px 0 #8a6f4e;
  font-weight: 700;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #8a6f4e; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(#ffb6d1, var(--accent)); border-color: #c8608a; color: #4a1a30; box-shadow: 0 2px 0 #a8406a; }
.btn.blue { background: linear-gradient(#b8e2ff, var(--accent2)); border-color: #4a8ad0; color: #103050; box-shadow: 0 2px 0 #3a6aa8; }
.btn.small { padding: 3px 8px; font-size: 12px; }
.btn.tiny { padding: 1px 6px; font-size: 11px; }
input[type=text], input:not([type]), input[type=password], input[type=number], select {
  border: 2px solid var(--panel-border); border-radius: 8px; padding: 6px 8px; background: #fff; width: 100%;
}
label { display: block; margin: 8px 0; font-weight: 700; }
label input, label select { margin-top: 4px; font-weight: 400; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- auth ---------- */
.auth-card, .chars-card { background: var(--panel); border: 2px solid var(--panel-border); border-radius: 16px; padding: 24px; width: min(420px, 100%); margin-top: 8vh; box-shadow: 0 6px 0 #8a6f4e, 0 20px 40px rgba(0,0,0,.4); }
.chars-card { width: min(720px, 100%); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 48px; height: 48px; image-rendering: pixelated; object-fit: none; object-position: 0 0; }
.logo h1 { margin: 0; font-size: 28px; color: #6a3a5a; }
.tagline { color: var(--muted); margin-top: 4px; }

/* ---------- char select ---------- */
.chars-card header { display: flex; justify-content: space-between; align-items: center; }
.char-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 12px 0; }
.char-card { background: var(--panel2); border: 2px solid var(--panel-border); border-radius: 12px; padding: 10px; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.char-card:hover { background: #fff6e2; }
.char-card canvas { image-rendering: pixelated; width: 72px; height: 84px; }
.char-card .info b { display: block; font-size: 16px; }
/* U34: conta suspensa: o aviso em cima da lista e os heróis sem clique */
.chars-suspended { background: #4a1414; border: 2px solid #c03030; color: #ffe0e0; border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.chars-suspended a { color: #ffd27a; display: inline-block; margin-top: 4px; }
.char-card.off { cursor: default; opacity: .6; }
.char-card .del { margin-left: auto; align-self: flex-start; }
.char-create { border-top: 2px dashed var(--panel-border); padding-top: 12px; }
/* conta sem herói: a criação é a tela inteira (sem lista vazia, herói maior, botão grande) */
.chars-sub { display: none; margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.chars-card.loading #char-create { display: none; }
.chars-card.first { width: min(560px, 100%); }
.chars-card.first .chars-sub { display: block; }
.chars-card.first #char-list, .chars-card.first #create-title { display: none; }
.chars-card.first .char-create { border-top: 0; padding-top: 8px; }
.chars-card.first .create-row { align-items: center; }
.btn.big { font-size: 16px; padding: 10px 20px; border-radius: 12px; }
#btn-create { width: 100%; margin-top: 4px; }
#create-error:empty { display: none; }
.create-row { display: flex; gap: 16px; }
#create-preview { image-rendering: pixelated; width: 144px; height: 168px; background: #b8e6b0; border-radius: 12px; border: 2px solid var(--panel-border); }
.create-fields { flex: 1; }
.picker { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.picker button { width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--panel-border); cursor: pointer; background: #fff; font-weight: 700; }
.picker button.sel { outline: 3px solid var(--accent); }
.picker button.hair { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; background: linear-gradient(#1c2633, #0a1018); }
.picker button.hair canvas { width: 36px; height: 36px; image-rendering: pixelated; }

/* ---------- game screen (full-screen world + floating windows) ---------- */
#screen-game { padding: 0; display: block; position: fixed; inset: 0; overflow: hidden; background: #0e0b16; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; display: block; cursor: crosshair; }

/* RO-style window chrome */
.win { position: absolute; background: var(--panel); border: 2px solid var(--panel-border); border-radius: 8px; box-shadow: 0 3px 0 #8a6f4e, 0 10px 24px rgba(0,0,0,.45); font-size: 13px; }
.win-title { background: linear-gradient(#8a6f9e, #5a4a7a); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 5px 5px 0 0; letter-spacing: .3px; display: flex; align-items: center; user-select: none; }
.win-title .close { margin-left: auto; cursor: pointer; background: none; border: none; color: #fff; font-weight: 800; font-size: 13px; line-height: 1; padding: 0 2px; }
.win-title .close:hover { color: #ffb6d1; }
.win.drag .win-title { cursor: move; }
.win-body { padding: 8px; overflow: auto; max-height: calc(100vh - 300px); }
.win.focus { box-shadow: 0 3px 0 #8a6f4e, 0 12px 30px rgba(0,0,0,.6); }

#basic-info { left: 12px; top: 12px; width: 280px; z-index: 5; }
.bi-body { padding: 6px 8px; }
.bi-body .who { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 13px; }
.bi-body .who b { font-size: 15px; }
.bi-body .bars { display: grid; gap: 3px; margin: 4px 0; }
.bi-foot { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: #8a6210; }
.bar { position: relative; height: 13px; background: #d8ccb4; border-radius: 6px; overflow: hidden; border: 1px solid #a89070; }
.bar .fill { height: 100%; width: 0; transition: width .3s; }
.bar span { position: absolute; inset: 0; font-size: 10px; line-height: 11px; text-align: center; font-weight: 800; color: #2a2020; text-shadow: 0 0 2px #fff; }
.bar.hp .fill { background: var(--hp); } .bar.sp .fill { background: var(--sp); }
.bar.exp .fill { background: var(--bexp); } .bar.jexp .fill { background: var(--jexp); }
/* aviso de "faltam X níveis para a próxima classe", logo abaixo da barra de classe */
#hud-nextjob { margin: 2px 0 3px; padding: 2px 7px; border-radius: 6px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 800; color: #4a3208; background: linear-gradient(#fff2c4, #f6d78a); border: 1px solid #d9b45c; text-align: center; }
#hud-nextjob.ready { cursor: pointer; color: #2a1a4a; background: linear-gradient(#e8d6ff, #c9a6ff); border-color: #a77de0; animation: nextjob-pulse 1.4s ease-in-out infinite; }
#hud-nextjob.ready:hover { filter: brightness(1.06); }
@keyframes nextjob-pulse { 0%, 100% { box-shadow: 0 0 0 rgba(170,120,255,0); } 50% { box-shadow: 0 0 10px rgba(170,120,255,.75); } }

#minimap-box { right: 12px; top: 12px; z-index: 5; }
#minimap { display: block; image-rendering: pixelated; border-radius: 0 0 6px 6px; background: #1a1424; }

#windows .win { z-index: 10; min-width: 280px; }

#chatbox { left: 12px; bottom: calc(var(--bbh, 62px) - 6px); width: 440px; z-index: 6; }
#chatbox .tabs { margin: 0; padding: 4px 6px 0; gap: 3px; }
#chatbox .tabs button { background: #d8ccb4; border-color: #a89070; padding: 1px 8px; font-size: 11px; }
#chatbox .tabs button.active { background: #fff; }
#chatbox .collapse { margin-left: auto; border-radius: 6px; }
#chatbox.collapsed .log, #chatbox.collapsed .chat-form { display: none; }
.log { overflow-y: auto; font-size: 12px; background: #fff8ea; border-top: 1px solid #d8c8a8; padding: 4px 6px; height: 140px; }
.log div { padding: 1px 0; overflow-wrap: anywhere; }   /* T36: palavra longa sem espaço quebra a linha, em vez de rolar o chat para o lado */
.log .good { color: var(--good); } .log .bad { color: var(--bad); } .log .epic { color: #a040d0; font-weight: 700; } .log .sys { color: var(--muted); } .log .drop { color: #8a6210; }
.log .chat b { color: #3a6aa8; } .log .chat .time { color: var(--muted); font-size: 10px; margin-right: 4px; } .log .chat.system { color: var(--muted); font-style: italic; }
.chat-form { display: flex; gap: 4px; padding: 4px; }
.chat-form input { padding: 3px 6px; font-size: 12px; }
#chat-chan { padding: 2px 6px; min-width: 30px; }
/* administrador no chat: nome vermelho, etiqueta ADM e linha destacada */
.log .chat b.admname, .admname { color: #ff3b3b !important; text-shadow: 0 0 6px rgba(255,60,60,.55); letter-spacing: .2px; }
.admtag { display: inline-block; background: linear-gradient(#ff5a5a, #c01818); color: #fff; font-size: 9px; font-weight: 900; padding: 0 5px; border-radius: 4px; border: 1px solid #ff9a9a; vertical-align: middle; box-shadow: 0 0 6px rgba(255,60,60,.6); }
.log .chat.adm { background: rgba(255,60,60,.10); border-left: 2px solid #ff3b3b; padding-left: 4px; }
/* troféu do top 3 do ranking ao lado do nome no chat */
.toptag { display: inline-block; font-size: 9px; font-weight: 900; padding: 0 5px; border-radius: 4px; vertical-align: middle; border: 1px solid transparent; letter-spacing: .2px; }
.toptag.top1 { background: linear-gradient(#fff0a0, #ffc83a); color: #4a3000; border-color: #ffe08a; box-shadow: 0 0 6px rgba(255,200,58,.7); }
.toptag.top2 { background: linear-gradient(#f4f4f4, #c0c6d0); color: #2a2f3a; border-color: #e8ecf2; }
.toptag.top3 { background: linear-gradient(#f0c8a0, #c07a3a); color: #3a1e08; border-color: #e8b088; }
/* ficha pública (olhar equipamentos) */
table.rank .pname { cursor: pointer; } table.rank .pname:hover { text-decoration: underline; color: var(--accent); }
.insp-row { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.insp-row:hover { background: rgba(255,255,255,.08); } .insp-row small { margin-left: auto; text-align: right; font-size: 10px; }
.insp-stats div span { color: var(--muted); font-size: 12px; } .insp-stats div b { font-size: 12px; }
#chat-chan.chan-clan { background: linear-gradient(#d8f0c8, #a8d890); border-color: #6aa050; }
.log .chat.clan { background: rgba(120,200,90,.10); border-left: 2px solid #7bd06a; padding-left: 4px; } .log .chat.clan .chan { color: #4a9a3a; font-weight: 800; margin-right: 3px; }
.log .chat.pm { background: rgba(180,120,255,.12); border-left: 2px solid #b48aff; padding-left: 4px; } .log .chat.pm .chan { color: #8a5ad0; font-weight: 800; margin-right: 3px; }
.log .chat b.pmable { cursor: pointer; } .log .chat b.pmable:hover { text-decoration: underline; }

#bottombar { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100vw - 16px); gap: 4px; background: var(--panel); border: 2px solid var(--panel-border); border-radius: 12px; padding: 4px; z-index: 7; box-shadow: 0 3px 0 #8a6f4e, 0 8px 20px rgba(0,0,0,.4); }
#bottombar button { display: flex; flex-direction: column; align-items: center; gap: 1px; background: #fff8ea; border: 1px solid #d8c8a8; border-radius: 8px; padding: 3px 8px; cursor: pointer; font-size: 10px; font-weight: 700; color: var(--muted); min-width: 54px; }
#bottombar button span { font-size: 16px; }
#bottombar button:hover, #bottombar button.on { background: #fff; color: var(--ink); border-color: var(--accent); }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.tabs button { background: var(--panel2); border: 2px solid var(--panel-border); border-bottom: none; border-radius: 8px 8px 0 0; padding: 5px 10px; cursor: pointer; font-weight: 700; color: var(--muted); }
.tabs button.active { background: #fff; color: var(--ink); }
.small-tabs button { padding: 2px 8px; font-size: 12px; }

h3 { margin: 6px 0; font-size: 14px; color: #6a3a5a; border-bottom: 2px solid var(--panel2); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 10px; }
.stat-row { display: flex; align-items: center; gap: 5px; background: #fff8ea; border-radius: 8px; padding: 3px 6px; }
.stat-row b { width: 32px; }
.stat-row .val { width: 54px; }
.stat-row .val small { color: var(--good); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; font-size: 12px; }
.kv div { display: flex; justify-content: space-between; background: #fff8ea; padding: 2px 6px; border-radius: 6px; }
.kv div span:last-child { font-weight: 700; }

.skill { display: flex; gap: 8px; align-items: center; background: #fff8ea; border-radius: 8px; padding: 6px; margin: 4px 0; }
.skill .icon, .item .icon, .icon { width: 24px; height: 24px; image-rendering: pixelated; background-image: var(--sheet-icons, url(/sprites/icons.png));   /* 30/10: url com ?v= do manifesto, definida em assets.ts (loadManifest); a sem versão é só a reserva, antes do manifesto ou se o JS falhar (nota da Agulha) */ background-repeat: no-repeat; flex: none; display: inline-block; border-radius: 4px; }
.skill .icon { width: 48px; height: 48px; }
.skill .body { flex: 1; }
.skill .body b { display: block; }
.skill .body small { color: var(--muted); }
.skill.locked { opacity: .55; }
.skill .lvl { font-weight: 800; color: #6a3a5a; }

.items-grid { display: grid; grid-template-columns: repeat(auto-fill, 44px); gap: 4px; }
.slot { width: 44px; height: 44px; background: #fff8ea; border: 2px solid #d8c8a8; border-radius: 8px; display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; }
.slot:hover { border-color: var(--accent); }
.slot .qty { position: absolute; right: 2px; bottom: 0; font-size: 10px; font-weight: 800; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.slot .ref { position: absolute; left: 2px; top: 0; font-size: 10px; font-weight: 800; color: #c8402a; text-shadow: 0 0 2px #fff; }
.slot.uncommon { border-color: var(--uncommon); } .slot.rare { border-color: var(--rare); } .slot.epic { border-color: var(--epic); box-shadow: 0 0 6px var(--epic); } .slot.legendary { border-color: #ffb63a; box-shadow: 0 0 8px #ffb63a; }
.slot .gems { position: absolute; left: 2px; bottom: 2px; display: flex; gap: 1px; } .slot .gems i { width: 5px; height: 5px; border-radius: 50%; background: #c9a6ff; border: 1px solid #5a3a8a; display: block; }
.slot.equipped { background: #e8f4ff; }
.slot.card-sock::after { content: "◆"; position: absolute; left: 2px; bottom: 0; font-size: 9px; color: #a040d0; }
.equip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.equip-grid .slot { width: auto; height: 56px; flex-direction: column; font-size: 10px; color: var(--muted); }

#tooltip { position: fixed; z-index: 5000; background: #fffdf5; border: 2px solid var(--panel-border); border-radius: 10px; padding: 8px 10px; font-size: 12px; max-width: 260px; box-shadow: 0 6px 20px rgba(0,0,0,.3); pointer-events: none; }
#tooltip b { display: block; font-size: 13px; }
#tooltip .rar-uncommon { color: #3a9a3a; } #tooltip .rar-rare { color: #2a6ad0; } #tooltip .rar-epic { color: #a040d0; } #tooltip .rar-legendary, .rar-legendary { color: #d08a1a; } .rar-uncommon { color: #3a9a3a; } .rar-rare { color: #2a6ad0; } .rar-epic { color: #a040d0; }
.gem-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px dashed #e0d2b8; } .gem-row .icon { flex: none; } .gem-row span { flex: 1; font-size: 12px; }
.refine-card { border: 2px solid #d8b56a; background: #fff8e8; border-radius: 8px; padding: 8px; margin: 6px 0; } .refine-card .big { font-size: 18px; font-weight: 800; } .refine-list { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; } .refine-list .slot { width: 44px; height: 44px; }
#tooltip .mods { color: #2a6a3a; } #tooltip .req { color: var(--bad); } #tooltip .desc { color: var(--muted); font-style: italic; }
/* tooltip de equipamento no estilo de ficha: blocos com linha tracejada, condição em branco, efeito em azul, apagado quando não ativo */
#tooltip { max-width: 300px; }
#tooltip .tt-head { display: flex; gap: 8px; align-items: center; } #tooltip .tt-head .icon { flex: none; } #tooltip .tt-head small { display: block; font-size: 10px; }
#tooltip .tt-sep { border-top: 1px dashed rgba(120,100,70,.55); margin: 5px 0; }
#tooltip .tt-k { color: #5a4a3a; font-size: 11px; } #tooltip .tt-stat { font-weight: 700; }
#tooltip .tt-cond { color: #2a2018; font-size: 11px; margin-top: 2px; } #tooltip .tt-v { color: #2a6ad0; font-size: 11px; padding-left: 8px; } #tooltip .tt-v small { color: #7a6a5a; }
#tooltip .tt-v.tt-off { color: #9a9088; } #tooltip .tt-gem { display: inline; font-size: 11px; color: #a040d0; } #tooltip .tt-set { margin-bottom: 2px; }

.map-card { display: flex; gap: 10px; align-items: center; background: #fff8ea; border-radius: 10px; padding: 6px; margin: 6px 0; border: 2px solid transparent; cursor: pointer; }
.map-card:hover { border-color: var(--accent2); }
.map-card.current { border-color: var(--accent); background: #fff0f6; }
.map-card.locked { opacity: .5; cursor: not-allowed; }
.map-card img { width: 120px; height: 50px; image-rendering: pixelated; border-radius: 6px; object-fit: cover; }
.map-card .body { flex: 1; }
.map-card .body b { display: block; }
.map-card .body small { color: var(--muted); display: block; }
.map-card .mons { display: flex; gap: 2px; margin-top: 2px; }
.map-card .mons img { width: 28px; height: 28px; object-fit: none; object-position: 0 0; image-rendering: pixelated; border-radius: 0; }

.shop-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.shop-item { display: flex; gap: 6px; align-items: center; background: #fff8ea; border-radius: 8px; padding: 4px; font-size: 12px; }
.shop-item .n { flex: 1; }
.shop-item .p { color: #8a6210; font-weight: 700; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.card-entry { display: flex; gap: 6px; align-items: center; background: #fff8ea; border-radius: 8px; padding: 4px; font-size: 11px; }
.card-entry.unknown { opacity: .4; filter: grayscale(1); }
.card-entry img { width: 32px; height: 32px; object-fit: none; object-position: 0 0; image-rendering: pixelated; }

table.rank { width: 100%; border-collapse: collapse; font-size: 13px; }
table.rank th, table.rank td { padding: 4px 6px; text-align: left; border-bottom: 1px solid #e8d8b8; }
table.rank tr:nth-child(1) td { color: #b8860b; font-weight: 800; }
/* U13 (23/10): bloco Dano por tipo de golpe da janela Status */
table.dmg-lines { width: 100%; border-collapse: collapse; font-size: 12px; }
table.dmg-lines th, table.dmg-lines td { padding: 3px 4px; text-align: right; border-bottom: 1px solid rgba(140,140,140,.25); white-space: nowrap; vertical-align: top; }
table.dmg-lines th:first-child, table.dmg-lines td:first-child { text-align: left; white-space: normal; }
table.dmg-lines th { color: var(--muted); font-weight: 600; font-size: 11px; }
table.dmg-lines td:last-child { font-weight: 700; }
table.dmg-lines td small { display: block; color: var(--muted); font-size: 10px; line-height: 1.2; }
table.dmg-lines tr[title] { cursor: help; }
table.dmg-lines tr.off td { opacity: .5; }
table.dmg-lines tr:has(+ tr.sub) td { border-bottom: 0; } table.dmg-lines tr.sub td { padding-top: 0; }

.setting { display: flex; align-items: center; gap: 8px; margin: 6px 0; background: #fff8ea; padding: 6px; border-radius: 8px; }
.setting label { margin: 0; flex: 1; }
.setting input[type=number] { width: 70px; }
.setting select { width: 150px; }
.prio { display: flex; gap: 4px; align-items: center; background: #fff8ea; padding: 4px; margin: 2px 0; border-radius: 6px; }
.prio span { flex: 1; }

#toast { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 6000; display: flex; flex-direction: column; gap: 6px; pointer-events: none; width: max-content; max-width: min(560px, calc(100vw - 24px)); }
.toast { background: #3a2e2a; color: #fff; padding: 8px 14px; border-radius: 10px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.4); animation: toast 3s forwards; overflow-wrap: anywhere; }   /* Agulha no #127: o aviso da mensagem privada com palavra longa saía pelos lados da tela */
.toast.bad { background: var(--bad); } .toast.good { background: var(--good); } .toast.epic { background: #a040d0; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-10px); } 10% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }

#modal { position: fixed; inset: 0; background: rgba(20,10,30,.6); z-index: 7000; display: flex; align-items: center; justify-content: center; }
.modal-card { background: var(--panel); border: 2px solid var(--panel-border); border-radius: 14px; padding: 18px; width: min(520px, 92vw); max-height: 85vh; overflow: auto; box-shadow: 0 8px 0 #8a6f4e, 0 20px 40px rgba(0,0,0,.5); }
.modal-card h2 { margin: 0 0 8px; color: #6a3a5a; }
/* T50: a janela do jogo no lugar das caixas do navegador (client/src/ask.ts), por cima do #modal */
.ask { position: fixed; inset: 0; background: rgba(20,10,30,.6); z-index: 7500; display: flex; align-items: center; justify-content: center; }
.ask-card { width: min(420px, 92vw); zoom: var(--ui-zoom); }
.ask-text { white-space: pre-line; overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; margin-bottom: 12px; }
.ask-input { width: 100%; margin-bottom: 12px; }
.ask-row { justify-content: flex-end; gap: 6px; }
.btn.danger { background: #c02020; color: #fff; border-color: #801010; }
.offline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 8px 0; }
.offline-grid div { background: #fff8ea; border-radius: 6px; padding: 4px 8px; display: flex; justify-content: space-between; }
.job-choice { display: flex; gap: 10px; align-items: center; background: #fff8ea; border-radius: 10px; padding: 8px; margin: 6px 0; cursor: pointer; border: 2px solid transparent; }
.job-choice:hover { border-color: var(--accent); }
.job-choice canvas { image-rendering: pixelated; width: 72px; height: 84px; }
.job-choice b { display: block; font-size: 15px; }
.buffs { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.pill { display: inline-block; background: #e8f4ff; border-radius: 12px; padding: 1px 8px; font-size: 11px; font-weight: 700; color: #2a5a8a; margin: 1px; }
@media (max-width: 900px) { #chatbox { width: calc(100vw - 24px); } #minimap-box { display: none; } }

/* ---- hotbar, banners, market ---- */
#hotbar { position: fixed; left: 50%; bottom: calc(var(--bbh, 62px) + 12px); transform: translateX(-50%); margin-left: 0; display: flex; gap: 4px; z-index: 6; }
#hotbar:empty { display: none; }
/* autovenda rápida: pílula acima da barra de poderes, com painel que abre para cima */
#sacrifice-bar { position: fixed; left: 50%; top: 52px; transform: translateX(-50%); z-index: 5; }
#sacrifice-bar:empty { display: none; }
.sac-head { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 6px; border-radius: 999px; border: 2px solid #6a3a5a; background: #2a1a2e; box-shadow: 0 2px 0 #4a2a4a; font-size: 11px; font-weight: 700; color: #f0d8f8; cursor: default; white-space: nowrap; }
.sac-head .sw { position: relative; width: 30px; height: 16px; border-radius: 999px; background: #5a4a5a; cursor: pointer; transition: background .15s; flex: none; }
.sac-head .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; }
.sac-head .sw.on { background: #c040a0; } .sac-head .sw.on::after { left: 16px; }
.sac-head .prog { position: relative; width: 120px; height: 10px; border-radius: 999px; background: #4a2a4a; overflow: hidden; }
.sac-head .prog i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #a040d0, #ff70c0); transition: width .3s; }
.sac-head .st { color: #d0b0d8; font-weight: 600; } .sac-head .st b { color: #fff; }
.sac-head.done { border-color: #ffb63a; box-shadow: 0 0 12px #ffb63a88; }
@media (max-width: 760px) { #sacrifice-bar { top: 44px; } .sac-head .prog { width: 70px; } .sac-head .lbl { display: none; } }
/* ---- dungeon em grupo: pílula no topo (abaixo do sacrifício, que não aparece lá) + painel do grupo ---- */
#dungeon-bar { position: fixed; left: 50%; top: 52px; transform: translateX(-50%); z-index: 5; }
#dungeon-bar:empty { display: none; }
.dg-head { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 10px; border-radius: 999px; border: 2px solid #8a4a2a; background: #2a1a12; box-shadow: 0 2px 0 #4a2a1a; font-size: 11px; font-weight: 700; color: #ffe8c8; white-space: nowrap; cursor: pointer; }
.dg-head .t { color: #ffb63a; font-size: 13px; font-variant-numeric: tabular-nums; }
.dg-head .t.low { color: #ff6a6a; animation: dg-blink 1s steps(2) infinite; }
@keyframes dg-blink { 50% { opacity: .55; } }
.dg-head .st { color: #d8b8a0; font-weight: 600; } .dg-head .st b { color: #fff; }
.dg-head .mem { display: flex; gap: 4px; }
.dg-head .mem i { display: block; width: 34px; height: 8px; border-radius: 4px; background: #4a2a1a; overflow: hidden; position: relative; }
.dg-head .mem i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--hp, 100%); background: var(--c, #58b368); }
.dg-head .mem i.dead { background: #6a1a1a; } .dg-head .mem i.off { opacity: .35; }
.dg-head .boss { color: #ffd23a; }
@media (max-width: 760px) { #dungeon-bar { top: 44px; } .dg-head { gap: 6px; padding: 3px 8px; } .dg-head .lbl { display: none; } .dg-head .mem i { width: 22px; } }
.dg-card { border: 2px solid #8a4a2a; border-radius: 10px; padding: 8px 10px; margin: 6px 0; background: linear-gradient(#2a1a12, #1a0e0a); color: #ffe8c8; }
.dg-card h3 { margin: 0 0 4px; color: #ffb63a; }
.dg-card small, .dg-card .muted { color: #d8b8a0; }
.dg-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 4px; margin: 6px 0; }
.dg-rules div { background: rgba(255,255,255,.06); border-radius: 6px; padding: 4px 6px; font-size: 11px; } .dg-rules b { display: block; font-size: 13px; color: #fff; }
.dg-members { display: grid; gap: 4px; margin: 6px 0; }
.dg-member { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 6px; align-items: center; background: var(--card); border-radius: 8px; padding: 4px 8px; font-size: 12px; }
.dg-member.me { outline: 2px solid var(--accent); }
.dg-member.off { opacity: .55; }
.dg-member .ic { font-size: 18px; text-align: center; }
.dg-member .n b { display: block; } .dg-member .n small { color: var(--muted); }
.dg-member select { font-size: 11px; padding: 1px 4px; }
.dg-member .bar { width: 120px; }
.dg-member.dead .n b { color: #c02020; text-decoration: line-through; }
.dg-open { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 8px; padding: 4px 8px; margin: 3px 0; font-size: 12px; }
.dg-open .roles { letter-spacing: 2px; }
.dg-loot { display: grid; gap: 2px; font-size: 12px; max-height: 160px; overflow: auto; }
.dg-loot div { display: flex; align-items: center; gap: 6px; background: var(--card); border-radius: 6px; padding: 2px 6px; }
.dg-focus { font-size: 12px; margin: 4px 0; padding: 4px 8px; border-radius: 8px; background: var(--card); border: 1px solid var(--accent); }
.dg-why { font-size: 12px; color: #c08020; margin: 4px 0; }
.dg-timer { font-size: 22px; font-weight: 900; color: #ffb63a; font-variant-numeric: tabular-nums; }
.dg-wave { display: inline-block; background: #4a2a1a; color: #ffe8c8; border-radius: 6px; padding: 1px 8px; font-size: 12px; margin-left: 6px; }
.dg-prog { position: relative; height: 10px; border-radius: 999px; background: #4a2a1a; overflow: hidden; margin: 4px 0; }
.dg-prog i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ff9a3a, #ffd23a); }
#bottombar button#btn-party.in-dg { background: linear-gradient(#ffd0a0, #ff9a3a); border-color: #c06020; color: #3a1a08; }
.map-card.dungeon { border-color: #8a4a2a; background: linear-gradient(90deg, #2a1a12, #3a2218); color: #ffe8c8; }
.map-card.dungeon .body b { color: #ffb63a; } .map-card.dungeon .body small { color: #d8b8a0; }
/* ---- tamanho da interface (Opções): zoom só nos painéis, o mapa continua no tamanho da tela ---- */
:root { --ui-zoom: 1; }
#windows, #basic-info, #minimap-box, #chatbox, #bottombar, #hotbar, #autosell-bar, #sacrifice-bar, #dungeon-bar, #toast, #modal-card, #tooltip, #world-banner, #spec-banner { zoom: var(--ui-zoom); }
/* ---- cadeado de item ---- */
.slot .lock { position: absolute; left: 1px; top: 1px; font-size: 10px; line-height: 1; filter: drop-shadow(0 0 2px #000); }
.slot.locked { outline: 2px solid #ffb63a; outline-offset: -2px; }
/* ---- barras minimizáveis ---- */
.mini-btn { cursor: pointer; opacity: .7; padding: 0 4px; font-weight: 900; font-size: 13px; line-height: 1; margin-left: 2px; }
.mini-btn:hover { opacity: 1; }
.sac-head.mini, .dg-head.mini { padding: 2px 8px; gap: 6px; }
#world-banner { padding-right: 28px; }
#world-banner .close { position: absolute; right: 4px; top: 2px; background: none; border: none; color: inherit; font-weight: 900; cursor: pointer; opacity: .7; font-size: 13px; }
#world-banner .close:hover { opacity: 1; }
/* ---- missões diárias ---- */
.dq { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; background: var(--card); border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.dq.done { outline: 2px solid var(--good); } .dq.claimed { opacity: .55; }
.dq b { display: block; } .dq small { color: var(--muted); }
.dq .bar { grid-column: 1 / -1; height: 11px; }
.dq .bar .fill { background: linear-gradient(90deg, #ffb63a, #ffd23a); }
.dq-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-top: 6px; flex-wrap: wrap; gap: 6px; }
.dq-chest { background: linear-gradient(#2a1a12, #1a0e0a); color: #ffe8c8; border: 2px solid #8a4a2a; border-radius: 10px; padding: 8px 10px; margin: 6px 0; font-size: 12px; }
.dq-chest b { color: #ffb63a; }
/* ---- armazém ---- */
.stor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.stor h4 span:last-child { white-space: nowrap; }
@media (max-width: 760px) { .stor { grid-template-columns: 1fr; } }
.stor h4 { margin: 0 0 4px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
#chat-collapse .unread[hidden] { display: none; }
#chat-collapse .unread { display: inline-block; min-width: 16px; margin-left: 4px; padding: 0 4px; border-radius: 8px; background: #d33; color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.stor-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; max-height: 50vh; overflow: auto; scrollbar-gutter: stable; }
.stor-row { display: flex; align-items: center; gap: 6px; background: var(--card); border-radius: 8px; padding: 3px 6px; font-size: 12px; }
.stor-row .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stor-row .btn { flex: none; }
.stor-row .n small { color: var(--muted); }
.stor-row .btn.tiny { padding: 1px 6px; }
/* ---- itens Primordiais (Fenda): brilho pulsante na bolsa, no equipamento, na janela da Fenda e no loot do grupo ---- */
.refine-info { font-size: 12px; background: rgba(255,182,58,.10); border: 1px solid rgba(255,182,58,.5); border-radius: 8px; padding: 6px 8px; margin: 8px 0; display: grid; gap: 2px; } .refine-info a { color: #d08a1a; }
.group-roles { font-size: 12px; background: rgba(123,208,106,.08); border: 1px solid rgba(123,208,106,.45); border-radius: 8px; padding: 6px 8px; margin: 6px 0 4px; } .group-roles select { font-size: 11px; }
/* Encantadora: máquina de sorte */
.ench-hero { display: flex; gap: 10px; align-items: center; font-size: 12px; background: linear-gradient(135deg, rgba(160,120,255,.22), rgba(255,210,58,.10)); border: 1px solid rgba(160,120,255,.7); border-radius: 12px; padding: 8px 10px; margin: 6px 0 8px; }
.ench-hero .ench-npc { font-size: 26px; filter: drop-shadow(0 0 6px rgba(200,160,255,.9)); } .ench-hero > div:nth-child(2) { flex: 1; min-width: 0; } .ench-gold { white-space: nowrap; font-size: 13px; }
.ench-card { border: 1px solid rgba(160,120,255,.5); border-radius: 12px; padding: 10px; margin-top: 6px; font-size: 12px; background: rgba(160,120,255,.06); transition: box-shadow .3s; }
.ench-card.flash-good { box-shadow: 0 0 0 2px #7bd06a, 0 0 22px rgba(123,208,106,.6); animation: ench-shake .45s; } .ench-card.flash-bad { box-shadow: 0 0 0 2px #e05a5a, 0 0 18px rgba(224,90,90,.5); animation: ench-shake .45s; }
@keyframes ench-shake { 0% { transform: translateX(0); } 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } 100% { transform: translateX(0); } }
.ench-title { margin-bottom: 6px; } .ench-sec { padding: 8px 0; border-top: 1px dashed rgba(160,120,255,.4); display: grid; gap: 5px; } .ench-lbl { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: #8a6ad0; font-weight: 800; }
.ench-value { font-size: 16px; font-weight: 800; } .ench-value small { font-size: 11px; font-weight: 600; margin-left: 4px; }
.ench-value.pop { animation: ench-pop .6s cubic-bezier(.2,1.4,.4,1); } @keyframes ench-pop { 0% { transform: scale(.6); opacity: 0; filter: blur(3px); } 60% { transform: scale(1.18); opacity: 1; filter: blur(0); } 100% { transform: scale(1); } }
.g-low { color: #c05050; } .g-mid { color: #c89a3a; } .g-good { color: #58b368; } .g-great { color: #2a8ad0; } .g-perfect { color: #d08a1a; text-shadow: 0 0 8px rgba(255,210,58,.8); }
.ench-meter { position: relative; height: 16px; display: flex; border-radius: 6px; overflow: hidden; border: 1px solid rgba(0,0,0,.35); }
.ench-meter .seg { display: block; height: 100%; border-right: 2px solid rgba(255,255,255,.85); } .ench-meter .seg:last-child { border-right: 0; }
.ench-meter .s1 { background: #c0443f; } .ench-meter .s2 { background: #d8922a; } .ench-meter .s3 { background: #4caf50; } .ench-meter .s4 { background: #2f7fd6; } .ench-meter .s5 { background: linear-gradient(90deg, #ffd23a, #fff4a0); }
.ench-meter .fill { position: absolute; left: 0; top: -2px; bottom: -2px; width: 0; border-right: 4px solid #fff; box-shadow: 0 0 0 1px #000, 2px 0 8px rgba(0,0,0,.6); transition: width .5s cubic-bezier(.2,1.2,.4,1); pointer-events: none; }
.ench-scale { display: flex; font-size: 10px; font-weight: 800; text-align: center; margin-top: 2px; } .ench-scale span { display: block; overflow: hidden; white-space: nowrap; }
.ench-minmax { display: flex; justify-content: space-between; font-size: 10px; color: #7a6a5a; }
.ench-btn { width: 100%; font-size: 14px; padding: 8px 10px; display: flex; justify-content: center; gap: 8px; align-items: baseline; } .ench-btn small { font-size: 11px; opacity: .85; }
.ench-chips { display: flex; gap: 4px; flex-wrap: wrap; } .ench-chips .chip { font-size: 11px; padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(160,120,255,.5); opacity: .6; } .ench-chips .chip.on { opacity: 1; background: rgba(160,120,255,.25); font-weight: 800; }
.ench-value.spinning { color: #b090ff; letter-spacing: .5px; text-shadow: 0 0 8px rgba(160,120,255,.8); animation: ench-blur .11s linear infinite alternate; } .ench-value.spin-hi { color: #ffd23a; text-shadow: 0 0 10px rgba(255,210,58,.9); }
@keyframes ench-blur { from { filter: blur(0); transform: translateY(-1px); } to { filter: blur(.6px); transform: translateY(1px); } }
.ench-sec { position: relative; } .ench-sparks { position: absolute; left: 50%; top: 38px; width: 0; height: 0; pointer-events: none; }
.ench-sparks i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #ffd23a; box-shadow: 0 0 8px #ffd23a; animation: ench-spark var(--t) ease-out forwards; transform: rotate(var(--a)) translateX(0); }
.ench-sparks.bad i { background: #e05a5a; box-shadow: 0 0 6px #e05a5a; } .ench-sparks.perfect i { width: 8px; height: 8px; background: #fff4a0; box-shadow: 0 0 14px #ffd23a; }
@keyframes ench-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1.4); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(.2); } }
.ench-odds { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 10.5px; font-weight: 700; }
.ench-card.flash-good .ench-value.pop.g-perfect { animation: ench-pop .6s cubic-bezier(.2,1.4,.4,1), ench-gold 1.2s ease-in-out 2; } @keyframes ench-gold { 0%, 100% { text-shadow: 0 0 8px rgba(255,210,58,.8); } 50% { text-shadow: 0 0 22px #ffd23a, 0 0 40px rgba(255,210,58,.7); } }
.ench-hist { padding-top: 8px; border-top: 1px dashed rgba(160,120,255,.4); display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; } .ench-hist .ench-lbl { width: 100%; } .ench-hist .up::before { } .ench-hist .down { opacity: .75; }

.prestige-hero { font-size: 12px; background: linear-gradient(135deg, rgba(255,210,58,.14), rgba(255,154,58,.06)); border: 1px solid #ffd23a; border-radius: 10px; padding: 8px 10px; margin: 6px 0 8px; }
.prestige-row { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px dashed rgba(200,170,110,.4); } .prestige-row .body { flex: 1; min-width: 0; } .prestige-row .arrow { color: #d08a1a; }
.prestige-table td, .prestige-table th { font-size: 11px; } .prestige-table tr.on-row td { background: rgba(123,208,106,.12); }
/* Primordial de PRESTÍGIO: dourado mais forte que o Primordial comum */
.prestige-text { color: #ffd23a; text-shadow: 0 0 6px rgba(255,210,58,.6); font-weight: 800; }
@keyframes prestige-glow { 0%, 100% { box-shadow: 0 0 8px #ffd23a, 0 0 18px rgba(255,210,58,.55); } 50% { box-shadow: 0 0 14px #fff4a0, 0 0 34px rgba(255,220,90,.8); } }
.slot.prestige { border-color: #ffe06a !important; background: radial-gradient(circle at 50% 35%, #6a4a10 0%, #2a1a06 75%) !important; animation: prestige-glow 1.4s ease-in-out infinite; }
.slot.prestige .icon { filter: drop-shadow(0 0 3px #ffd23a) saturate(1.3) brightness(1.1); }
@keyframes prim-glow { 0%, 100% { box-shadow: 0 0 6px #ff9a3a, 0 0 14px rgba(255,154,58,.35); } 50% { box-shadow: 0 0 12px #ffd23a, 0 0 28px rgba(255,120,200,.6); } }
@keyframes prim-sheen { 0%, 100% { filter: drop-shadow(0 0 2px #ffd23a) brightness(1); } 50% { filter: drop-shadow(0 0 6px #fff0a0) brightness(1.18); } }
.slot.primordial { border-color: #ffb63a !important; background: radial-gradient(circle at 50% 35%, #4a2a18 0%, #1a0e0a 75%) !important; animation: prim-glow 1.8s ease-in-out infinite; }
.slot.primordial .icon { animation: prim-sheen 1.8s ease-in-out infinite; }
.slot.primordial.dim { opacity: .45; animation: none; }
.prim-text { color: #ffb63a; text-shadow: 0 0 6px rgba(255,154,58,.8), 0 0 12px rgba(255,120,200,.4); }
.dg-loot .prim { border: 1px solid #ffb63a; animation: prim-glow 1.8s ease-in-out infinite; }
.dg-drops td.prim { color: #ffb63a; text-shadow: 0 0 6px rgba(255,154,58,.7); }
.prim-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 6px 0; }
.prim-grid .slot { width: auto; height: 60px; flex-direction: column; font-size: 10px; color: #ffe8c8; gap: 2px; }
.dg-drops td, .dg-drops th { font-size: 12px; padding: 3px 6px; } .dg-drops td:nth-child(n+2), .dg-drops th:nth-child(n+2) { text-align: right; white-space: nowrap; }
#autosell-bar { position: fixed; left: 50%; bottom: calc(var(--bbh, 62px) + 64px); transform: translateX(-50%); margin-left: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 4px; }
#autosell-bar:empty { display: none; }
.asb-head { display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 6px; border-radius: 999px; border: 2px solid #8a6a5a; background: #fff8ea; box-shadow: 0 2px 0 #b89a72; font-size: 11px; font-weight: 700; color: #5a4636; cursor: default; white-space: nowrap; }
.asb-head .sw { position: relative; width: 30px; height: 16px; border-radius: 999px; background: #c9b08a; cursor: pointer; transition: background .15s; flex: none; }
.asb-head .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; }
.asb-head .sw.on { background: #3aa060; } .asb-head .sw.on::after { left: 16px; }
.asb-head .st { color: #7a6a5a; font-weight: 600; }
.asb-head .st b { color: #3a2a1c; }
.asb-head .btn.tiny { padding: 1px 7px; }
.asb-head .gear { cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
.asb-panel { width: 400px; max-width: calc(100vw - 32px); background: var(--panel); border: 2px solid var(--panel-border); border-radius: 12px; padding: 8px 10px; box-shadow: 0 8px 20px rgba(0,0,0,.4); max-height: 60vh; overflow: auto; }
.asb-panel h3 { margin: 0 0 4px; font-size: 13px; }
.asb-panel .setting { margin: 4px 0; padding: 4px 6px; font-size: 12px; }
.asb-panel .setting small { font-size: 10px; }
#hotbar .hk { position: relative; width: 44px; height: 44px; border: 2px solid #8a6a5a; border-radius: 8px; background: #fff8ea; cursor: pointer; padding: 0; display: grid; place-items: center; box-shadow: 0 2px 0 #b89a72; }
#hotbar .hk .icon { pointer-events: none; }
#hotbar .hk .cd { position: absolute; inset: 0; background: rgba(40,20,60,.55); border-radius: 6px; color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
#hotbar .hk .key { position: absolute; left: 2px; top: 0; font-size: 9px; color: #6a5a4a; font-weight: 700; }
#hotbar .hk .sp { position: absolute; right: 2px; bottom: 0; font-size: 9px; color: #3a6ad0; font-weight: 700; }
#hotbar .hk:disabled { opacity: .5; cursor: default; }
#world-banner { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); background: #3a2a5e; color: #ffe08a; border: 2px solid #ffd700; border-radius: 10px; padding: 6px 30px 6px 14px; font-weight: 700; z-index: 30; max-width: 70vw; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
#hud-badges .badge { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: 10px; font-weight: 800; color: #3a2a10; background: #ffd700; }
#hud-badges .badge.event { background: #c9a6ff; color: #2a1a4a; }
#hud-badges .badge.rest { background: #8ad0ff; color: #103050; }
#hud-badges .badge.xp { background: linear-gradient(#ff8a6a, #e03a2a); color: #fff; }
.dm-card.boost .dm-icon { color: #ff4a3a; text-shadow: 0 0 10px rgba(255,80,60,.6); }
#bottombar button.sit-on { background: #ffe8a8; }
#bottombar #btn-more { display: none; }
#fs-fab { display: none; }
#bottombar button#btn-town { background: linear-gradient(#ffe9a8, #f2c86a); border-color: #c99a3a; color: #4a3210; }
#bottombar button#btn-town:hover { filter: brightness(1.05); }
#bottombar button#btn-town.on { background: linear-gradient(#d8f0c0, #a8d888); border-color: #5a9a3a; color: #1f4a10; }
body.fullscreen #bottombar button#btn-full { background: #ffe8a8; }
.market-row { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 6px; align-items: center; padding: 4px 0; border-bottom: 1px dashed #e0d2b8; }
.market-row .n { font-size: 12px; } .market-row .n small { display: block; color: var(--muted); font-size: 10px; }
.market-row .p { font-weight: 800; color: #b07a1a; font-size: 12px; white-space: nowrap; }
.market-tabs { display: flex; gap: 4px; margin: 4px 0 8px; } .market-tabs button.on { background: #dfe9ff; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .stat-tiles div { background: #fff8ea; border-radius: 8px; padding: 6px; text-align: center; } .stat-tiles b { display: block; font-size: 16px; } .stat-tiles span { font-size: 10px; color: var(--muted); }
.tut-page { min-height: 140px; } .tut-page h2 { margin-top: 0; }
.tut-dots i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d8ccb4; margin-right: 3px; }
.tut-dots i.done { background: #b8a888; } .tut-dots i.on { background: var(--accent); width: 9px; height: 9px; }
/* destaque do tutorial: buraco claro em volta do elemento, resto escurecido, borda pulsando */
#tut-spot { position: fixed; z-index: 6999; border-radius: 10px; pointer-events: none; display: none; box-shadow: 0 0 0 9999px rgba(2,6,12,.62), 0 0 0 2px #ffe08a, 0 0 18px 6px rgba(255,224,138,.5); animation: tut-pulse 1.2s ease-in-out infinite; }
#tut-spot.on { display: block; }
@keyframes tut-pulse { 0%, 100% { box-shadow: 0 0 0 9999px rgba(2,6,12,.62), 0 0 0 2px #ffe08a, 0 0 18px 6px rgba(255,224,138,.5); } 50% { box-shadow: 0 0 0 9999px rgba(2,6,12,.62), 0 0 0 4px #fff3c4, 0 0 26px 10px rgba(255,224,138,.75); } }
#modal.tut { background: transparent; }            /* o escuro vem do buraco do #tut-spot */
#modal.tut-bottom { align-items: flex-end; padding-bottom: calc(var(--bbh, 62px) + 16px); }
#modal.tut-top { align-items: flex-start; padding-top: 16px; }
#modal.tut .modal-card { box-shadow: 0 8px 0 #8a6f4e, 0 20px 40px rgba(0,0,0,.7); }
.adm-tiles { grid-template-columns: repeat(3, 1fr); margin-bottom: 6px; } .adm-tiles div small { display: block; font-size: 10px; color: var(--muted); } .adm-tiles div b { font-size: 15px; }
.adm-chart { display: flex; align-items: flex-end; gap: 2px; height: 70px; padding: 4px 4px 0; background: var(--card); border: 1px solid var(--raised); }
.adm-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.adm-col .adm-bar { width: 100%; background: linear-gradient(180deg, var(--gold-hi, #ffd23a), var(--gold, #c8aa6e)); min-height: 1px; }
.adm-col small { font-size: 8px; color: var(--muted); height: 10px; line-height: 10px; }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .adm-two h4, .admin-form h4 { margin: 6px 0 4px; font-size: 12px; }
.adm-list { max-height: 180px; overflow: auto; } .adm-list table { font-size: 11px; }
@media (max-width: 700px) { .adm-two { grid-template-columns: 1fr; } .adm-tiles { grid-template-columns: repeat(2, 1fr); } }
.admin-form { display: grid; gap: 6px; margin-bottom: 8px; } .admin-form input { padding: 4px 6px; border: 1px solid #c8b090; border-radius: 6px; }
.name-vip { color: #d08a1a; }

/* ---- combo bar ---- */
#hotbar .hk.empty { background: rgba(255,248,234,.55); border-style: dashed; }
#hotbar .hk .plus { color: #b89a72; font-size: 18px; font-weight: 800; }
#hotbar .hk.manual { border-color: #3a6ad0; }
#hotbar .hk .man { position: absolute; right: 2px; top: 0; font-size: 9px; color: #3a6ad0; font-weight: 800; }
/* elemento do poder (selo) e leitura contra o alvo: verde = fraqueza, laranja = resiste, vermelho = imune */
#hotbar .hk .el { position: absolute; left: 1px; bottom: 1px; font-size: 9px; line-height: 12px; padding: 0 2px; border-radius: 4px; color: #fff; font-weight: 800; text-shadow: 0 0 2px #000; display: flex; gap: 1px; align-items: center; pointer-events: none; }
#hotbar .hk .el i { font-style: normal; font-size: 8px; }
#hotbar .hk.el-strong { border-color: #4ec85a; box-shadow: 0 0 0 1px #4ec85a, 0 0 8px rgba(78,200,90,.8); }
#hotbar .hk.el-weak { border-color: #e0903a; box-shadow: 0 0 0 1px #e0903a; }
#hotbar .hk.el-immune { border-color: #d04040; box-shadow: 0 0 0 1px #d04040; } #hotbar .hk.el-immune .icon { filter: grayscale(1) opacity(.55); }
.el-legend { font-size: 11px; margin: 4px 0 8px; } .el-legend summary { cursor: pointer; color: #6a5a4a; } .el-legend span { display: block; padding: 1px 0 1px 8px; }
.el-line { font-size: 11px; margin: 2px 0 4px; }
#hotbar .hk.over { outline: 3px solid var(--accent); }
.skill[draggable="true"] { cursor: grab; }
.combo .prio.empty { opacity: .7; }
.combo .prio .key { flex: 0 0 18px; font-weight: 800; color: #8a6a5a; text-align: center; }
.combo .prio label { flex: 0 0 auto; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.pick { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff8ea; border: 2px solid transparent; border-radius: 8px; padding: 6px; cursor: pointer; font-size: 11px; text-align: center; }
.pick:hover, .pick.on { border-color: var(--accent); }

/* ---- inventory filters (rarity + class rows) ---- */
.filter-row { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 4px; }
.fbtn { font: inherit; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; padding: 4px 8px; border-radius: 6px; border: 2px solid #c9b08a; background: #fff8ea; color: #5a4636; cursor: pointer; }
.fbtn.on { background: #ffe9b0; border-color: #b8842a; }
.fbtn.rar-uncommon { color: #3a9a3a; } .fbtn.rar-rare { color: #2a6ad0; } .fbtn.rar-epic { color: #a040d0; } .fbtn.rar-legendary { color: #d08a1a; }

/* ---- monster drops on the map window ---- */
.map-card .mons img { cursor: pointer; border-radius: 4px; }
.map-card .mons img.on, .map-card .mons img:hover { background: rgba(255,200,80,.35); outline: 2px solid var(--accent); }
.drops-panel { background: #fff8ea; border: 2px solid #c9b08a; border-radius: 8px; padding: 6px 8px; margin: -4px 0 8px; }
.drops-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 3px 8px; margin-top: 4px; }
.drops-list .drop { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.drops-list .drop span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drops-list .drop b { color: #8a6a5a; }
.map-card .mons .mob-ico { background-repeat: no-repeat; image-rendering: pixelated; cursor: pointer; border-radius: 4px; }
.map-card .mons .mob-ico.on, .map-card .mons .mob-ico:hover { background-color: rgba(255,200,80,.35); outline: 2px solid var(--accent); }

/* ---- conjuntos por mapa ---- */
.set-panel { background: #fff8ea; border: 2px solid #c9b08a; border-radius: 8px; padding: 6px 8px; margin: -4px 0 8px; }
.set-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 6px 0; }
.set-grid .slot { width: auto; height: auto; flex-direction: column; font-size: 9px; padding: 3px; gap: 2px; }
.set-grid .slot.dim { opacity: .45; }
.on-bonus { color: #3a9a3a; font-weight: 700; }
#tooltip .setline { font-size: 10px; margin-top: 3px; } #tooltip .setline .on { color: #3a9a3a; font-weight: 700; }

/* ---- fórmulas das skills ---- */
.skill .formula { font-size: 11px; color: #5a4a8a; background: rgba(120,100,200,.08); border-radius: 6px; padding: 3px 6px; margin-top: 4px; cursor: pointer; }
.skill .formula:hover { background: rgba(120,100,200,.16); }
.skill .now { color: #3a7a3a; font-weight: 700; }
.lvltable { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: 4px; }
.lvltable th { text-align: left; font-weight: 700; color: #8a7a6a; padding: 2px 4px; border-bottom: 1px solid #d8c8a8; }
.lvltable td { padding: 2px 4px; border-bottom: 1px dashed #e8dcc4; }
.lvltable tr.cur td { background: rgba(255,210,58,.25); font-weight: 700; }

/* ---- forja (refino) ---- */
.forge { border: 2px solid #c9b08a; border-radius: 12px; padding: 10px; background: linear-gradient(#fff9ee, #f4e6cc); margin-top: 8px; position: relative; overflow: hidden; }
.forge.rare { border-color: var(--rare); } .forge.epic { border-color: var(--epic); box-shadow: 0 0 12px rgba(214,122,255,.35); } .forge.legendary { border-color: #ffb63a; box-shadow: 0 0 14px rgba(255,182,58,.45); }
.forge-head { display: flex; gap: 10px; align-items: center; }
.forge-icon { width: 64px; height: 64px; border-radius: 12px; background: radial-gradient(circle, #fff 0%, #efe1c6 70%); border: 2px solid #d8c8a8; display: grid; place-items: center; position: relative; box-shadow: inset 0 0 12px rgba(0,0,0,.08); }
.forge-icon.uncommon { border-color: var(--uncommon); } .forge-icon.rare { border-color: var(--rare); box-shadow: 0 0 10px rgba(106,168,255,.5); } .forge-icon.epic { border-color: var(--epic); box-shadow: 0 0 14px rgba(214,122,255,.6); } .forge-icon.legendary { border-color: #ffb63a; box-shadow: 0 0 16px rgba(255,182,58,.7); animation: forge-glow 2s ease-in-out infinite; }
@keyframes forge-glow { 0%, 100% { box-shadow: 0 0 10px rgba(255,182,58,.5); } 50% { box-shadow: 0 0 22px rgba(255,182,58,.9); } }
.forge-icon .plus { position: absolute; right: -6px; top: -8px; background: #c8402a; color: #fff; font-size: 11px; font-weight: 900; padding: 1px 6px; border-radius: 10px; border: 2px solid #fff; }
.forge-name b { font-size: 16px; display: block; } .forge-name small { color: var(--muted); }
.pips { display: flex; align-items: center; gap: 4px; margin: 10px 0 6px; }
.pips i { width: 22px; height: 10px; border-radius: 4px; background: #e8dcc4; border: 1px solid #c9b08a; display: block; }
.pips i.on { background: linear-gradient(#ffe08a, #e8b23a); border-color: #b8842a; } .pips i.on.hot { background: linear-gradient(#ffb0a0, #e05a5a); border-color: #a83a2a; }
.pips i.next { animation: pip-blink 1s ease-in-out infinite; border-color: var(--accent); }
@keyframes pip-blink { 0%, 100% { background: #fff; } 50% { background: #ffd0e0; } }
.pips span { margin-left: 6px; font-weight: 900; font-size: 15px; }
.forge-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; font-size: 13px; }
.forge-stats .k { color: var(--muted); margin-right: 6px; } .forge-stats .v { font-weight: 800; } .forge-stats .arrow { margin: 0 6px; color: var(--muted); } .forge-stats .nv { font-weight: 800; color: #3a9a3a; }
.chance { position: relative; height: 18px; border-radius: 9px; background: #e8dcc4; margin-top: 10px; overflow: hidden; border: 1px solid #c9b08a; }
.chance .fill { height: 100%; border-radius: 9px; transition: width .3s; }
.chance span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #3a2e2a; text-shadow: 0 0 3px #fff; }
.forge-max { font-weight: 900; color: #b8842a; font-size: 15px; margin-top: 8px; }
.forge-btn { font-size: 14px; }
.forge.flash-good { animation: flash-good .9s ease-out; } .forge.flash-bad { animation: flash-bad .7s ease-out; }
@keyframes flash-good { 0% { box-shadow: 0 0 0 rgba(88,179,104,0); background: #dfffe0; } 30% { box-shadow: 0 0 30px rgba(88,179,104,.9); } 100% { box-shadow: 0 0 0 rgba(88,179,104,0); } }
@keyframes flash-bad { 0% { transform: translateX(0); background: #ffd8d8; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } 100% { transform: translateX(0); } }
.sockets { display: flex; gap: 6px; margin: 4px 0 6px; }
.sock { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed #b89a72; background: #f4e6cc; display: grid; place-items: center; }
.sock.on { border-style: solid; border-color: #8a5aff; background: radial-gradient(circle, #fff, #e8d8ff); box-shadow: 0 0 8px rgba(138,90,255,.5); }

/* =====================================================================
   Tema escuro estilo Cute Idle Land (madeira escura + bronze + dourado)
   ===================================================================== */
:root {
  --panel: #1c1410; --panel2: #2a1f16; --panel-border: #7a5a34; --ink: #f2e8d5; --muted: #b3a087;
  --accent: #e8b23a; --accent2: #6ec0ff; --gold: #f0c050;
  --card: #2a1f16; --card2: #33261b; --line: #4a3626; --title: #f0c050;
}
body { background: #120c08; color: var(--ink); }
.panel, .win, .auth-card, .chars-card, .modal-card { background: var(--panel); border-color: var(--panel-border); box-shadow: 0 3px 0 #0a0604, 0 10px 24px rgba(0,0,0,.6); color: var(--ink); }
.win-title { background: linear-gradient(#3a2a1c, #241a12); color: var(--title); border-bottom: 1px solid var(--panel-border); letter-spacing: .3px; text-transform: uppercase; font-size: 11px; }
.win-title .close { color: #d8c8a8; } .win-title .close:hover { color: var(--gold); }
.win.focus { box-shadow: 0 3px 0 #0a0604, 0 12px 30px rgba(0,0,0,.8); border-color: #a07a44; }
h3, .modal-card h2 { color: var(--title); border-bottom-color: var(--line); }
.win-body { scrollbar-color: #5a4430 #1c1410; }
.btn { background: linear-gradient(#3d2d1e, #2a1f16); border-color: #8a6a3a; color: var(--ink); box-shadow: 0 2px 0 #0a0604; }
.btn:hover { filter: brightness(1.15); }
.btn.primary { background: linear-gradient(#ffd66a, #d89a2a); border-color: #a86a12; color: #2a1a06; box-shadow: 0 2px 0 #6a4408; }
.btn.blue { background: linear-gradient(#7ad0ff, #3a8ad0); border-color: #2a5a90; color: #06203a; box-shadow: 0 2px 0 #1a3a60; }
.btn:disabled { opacity: .4; }
input[type=text], input:not([type]), input[type=password], input[type=number], select, textarea { background: #120c08; color: var(--ink); border: 2px solid #5a4430; border-radius: 6px; padding: 4px 8px; }
input:focus, select:focus { outline: none; border-color: var(--gold); }
.char-card { background: var(--card); } .char-card:hover { background: var(--card2); }
/* HUD */
.bi-body .who b { color: var(--gold); }
.bar { background: #0f0a07; border-color: #4a3626; } .bar span { color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.bar.exp .fill { background: linear-gradient(#ffe38a, #e8b23a); } .bar.jexp .fill { background: linear-gradient(#b8e87a, #7ab84a); }
.bar.hp .fill { background: linear-gradient(#ff8aa0, #d04060); } .bar.sp .fill { background: linear-gradient(#8ac0ff, #3a70d0); }
#hud-gold { color: var(--gold); font-weight: 900; }
.badge { background: #3a2a1c; color: #ffe08a; border: 1px solid #8a6a3a; } .badge.event { background: #3a1a4a; color: #e8c0ff; border-color: #a060d0; } .badge.rest { background: #1a2a3a; color: #a0d0ff; border-color: #3a6a90; }
#chatbox .tabs button { background: #2a1f16; border-color: #5a4430; color: var(--muted); } #chatbox .tabs button.active { background: #3d2d1e; color: var(--gold); }
.log { background: #120c08; border-top-color: #3a2a1c; color: #e0d2b8; } .log .sys { color: #9a8a70; } .log .chat b { color: #8ac0ff; }
#bottombar { background: linear-gradient(#2a1f16, #1c1410); border-color: var(--panel-border); }
#bottombar button { background: #2a1f16; border-color: #4a3626; color: #d8c8a8; }
#bottombar button:hover, #bottombar button.on { background: #3d2d1e; color: var(--gold); border-color: var(--gold); }
#bottombar button.sit-on { background: #4a3a10; color: #ffe08a; }
#hotbar .hk { background: #2a1f16; border-color: #8a6a3a; box-shadow: 0 2px 0 #0a0604; } #hotbar .hk .key { color: #d8c8a8; } #hotbar .hk .sp { color: #8ac0ff; }
#hotbar .hk.empty { background: rgba(42,31,22,.7); } #hotbar .hk .plus { color: #6a5a4a; } #hotbar .hk.manual { border-color: #6ec0ff; }
.tabs button { background: #2a1f16; border-color: var(--panel-border); color: var(--muted); } .tabs button.active { background: #3d2d1e; color: var(--gold); }
/* cartões internos */
.kv div, .skill, .prio, .shop-item, .setting, .map-card, .job-choice, .market-row, .stat-tiles div, .gem-row, .drops-panel, .set-panel, .refine-card, .pick, .town-list div { background: var(--card); color: var(--ink); }
.map-card { border-color: #4a3626; } .map-card.current { background: #3a2a1c; border-color: var(--gold); } .map-card.locked { opacity: .45; }
.job-choice { border-color: #4a3626; } .job-choice:hover { border-color: var(--gold); } .pick { border-color: #4a3626; } .pick:hover, .pick.on { border-color: var(--gold); }
.skill .lvl { color: var(--gold); } .skill .body small { color: var(--muted); } .skill .formula { color: #c8b8ff; background: rgba(140,120,220,.12); } .skill .now { color: #8ae08a; }
.lvltable th { color: var(--muted); border-bottom-color: #4a3626; } .lvltable td { border-bottom-color: #3a2a1c; } .lvltable tr.cur td { background: rgba(240,192,80,.18); }
.slot { background: #241a12; border-color: #5a4430; } .slot:hover { border-color: var(--gold); } .slot.equipped { background: #1e2a38; }
.equip-grid .slot { color: var(--muted); }
.slot .qty, .slot .ref { text-shadow: 0 0 2px #000, 0 0 2px #000; } .slot .qty { color: #fff; }
.fbtn { background: #2a1f16; border-color: #6a4a2a; color: #e8d8b8; } .fbtn.on { background: #e8b23a; border-color: #ffd66a; color: #2a1a06; }
.fbtn.rar-uncommon.on, .fbtn.rar-rare.on, .fbtn.rar-epic.on, .fbtn.rar-legendary.on { color: #2a1a06; }
.market-row { border-bottom-color: #3a2a1c; } .market-row .p { color: var(--gold); } .shop-item .p { color: var(--gold); }
.gem-row { border-bottom-color: #3a2a1c; }
.stat-tiles div b { color: var(--gold); }
.setting { border: 1px solid #3a2a1c; }
.pill { background: #1e2a38; color: #a0d0ff; }
.drops-list .drop b { color: var(--gold); } .drops-panel, .set-panel { border-color: #5a4430; }
.on-bonus { color: #8ae08a; }
.req { color: #ff8a8a; }
#tooltip { background: #1c1410; border-color: #8a6a3a; color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.7); }
#tooltip .mods { color: #8ae08a; } #tooltip .desc { color: var(--muted); } #tooltip .tt-k { color: #b8a890; } #tooltip .tt-cond { color: #f0e8d8; } #tooltip .tt-v { color: #8ad0ff; } #tooltip .tt-v small { color: #a09080; } #tooltip .tt-v.tt-off { color: #6a6058; } #tooltip .tt-sep { border-top-color: rgba(200,170,110,.45); } #tooltip .tt-gem { color: #d67aff; } #tooltip .rar-rare { color: #6aa8ff; } #tooltip .rar-uncommon { color: #7be07b; } #tooltip .rar-epic { color: #d67aff; }
.rar-uncommon { color: #7be07b; } .rar-rare { color: #6aa8ff; } .rar-epic { color: #d67aff; } .rar-legendary { color: #ffb63a; }
#world-banner { background: #2a1f16; border-color: var(--gold); color: #ffe08a; }
.toast { background: #2a1f16; border: 1px solid #8a6a3a; }
.modal-card { border-radius: 12px; }
.tut-page h2 { color: var(--gold); }
.rank th { color: var(--muted); border-bottom: 1px solid #4a3626; } .rank td { border-bottom: 1px solid #2a1f16; }
.combo .prio .key { color: var(--gold); }
.forge { background: linear-gradient(#2a1f16, #1c1410); border-color: #8a6a3a; }
.forge-icon { background: radial-gradient(circle, #3d2d1e 0%, #241a12 70%); border-color: #5a4430; }
.pips i { background: #120c08; border-color: #4a3626; } @keyframes pip-blink { 0%, 100% { background: #2a1f16; } 50% { background: #5a4430; } }
.chance { background: #120c08; border-color: #4a3626; } .chance span { color: #fff; text-shadow: 0 0 3px #000; }
.forge-stats .k { color: var(--muted); } .forge-stats .nv { color: #8ae08a; }
.sock { background: #120c08; border-color: #6a4a2a; }
.forge.flash-good { animation: flash-good-d .9s ease-out; } .forge.flash-bad { animation: flash-bad .7s ease-out; }
@keyframes flash-good-d { 0% { box-shadow: 0 0 0 rgba(88,179,104,0); background: #1e3a24; } 30% { box-shadow: 0 0 30px rgba(88,179,104,.9); } 100% { box-shadow: 0 0 0 rgba(88,179,104,0); } }
.minimap-box, #minimap-box { background: var(--panel); }
.offline-grid div { background: var(--card); } .offline-grid b { color: var(--gold); }
.muted { color: var(--muted); }
.tut-page { color: var(--ink); }
.town-list div { padding: 2px 6px; border-radius: 6px; margin: 2px 0; }
.asb-head { background: #2a1f16; border-color: #8a6a3a; box-shadow: 0 2px 0 #0a0604; color: #e8d8b8; } .asb-head .st { color: #b8a888; } .asb-head .st b { color: #ffd66a; } .asb-head .sw { background: #5a4a3a; }

/* ==========================================================================
   Tema "Hextech" — as cores da interface do Poke Idle World, valor por valor:
   janelas com preenchimento turquesa→ouro sobre azul-noite e brilho nos cantos;
   cabeçalho em "poço" escuro com trilhos dourados e gemas turquesa; painéis do HUD
   com moldura dourada em bisel; botões 3D (ouro = principal, azul = compra);
   cartões em relevo com borda de 4 tons; campos em poço com foco turquesa;
   vida verde (laranja/vermelha quando cai), EXP amarela, chat em amarelo.
   ========================================================================== */
:root {
  --bg: #05080d; --bg2: #0a1018;
  --panel: rgb(10,20,28); --panel2: rgb(6,12,20); --panel-border: #2a3442; --ink: #e9e2d0; --muted: #8a93a0;
  --accent: #c8aa6e; --accent2: #427efa; --gold: #c8aa6e; --gold-bright: #e8cd8d; --gold-hi: #f0e6d2; --teal: #0ac8b9; --teal-hi: #7fe6dd;
  --title: #e8cd8d; --line: rgba(153,117,48,.28);
  /* relevo (cartão/aba/botão comum) e aceso (selecionado): fundo + borda em 4 tons (cima, lados, baixo) */
  --card: linear-gradient(180deg, rgba(30,40,53,.5), rgba(11,17,26,.6)); --card2: linear-gradient(180deg, rgba(120,92,38,.3), rgba(66,50,22,.34));
  --raised: #3a4658 #2a3442 #171e28 #2a3442; --raised-hi: #4a5a70 #33455a #1f2c3c #33455a; --raised-gold: #8a713e #5c4a20 #3d3115 #5c4a20;
  --well: #171e28 #2a3442 #3a4658 #2a3442; --lit: #f0d896 #c8a24e #8a662c #c8a24e;
  --frame: #9c7a34; --frame-img: linear-gradient(#c4a566, #997530, #87704c);
  --hx-fill: radial-gradient(130% 80% at 90% 4%, rgba(10,200,185,.12), transparent 55%), radial-gradient(130% 80% at 8% 98%, rgba(232,205,141,.09), transparent 55%), linear-gradient(125deg, rgb(16,26,38) 0%, rgb(18,40,40) 55%, rgb(44,36,14) 100%);
  --hx-pit: radial-gradient(120% 220% at 12% 130%, rgba(10,200,185,.10), transparent 55%), radial-gradient(120% 220% at 88% -70%, rgba(10,200,185,.08), transparent 55%), linear-gradient(180deg, rgb(10,20,28), rgb(6,12,20));
  --hud: linear-gradient(180deg, rgba(10,16,24,.9), rgba(6,11,18,.93));
  --field: linear-gradient(180deg, rgba(6,12,18,.7), rgba(10,18,26,.5));
  --btn3d: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -3px 5px rgba(0,0,0,.3), 0 3px 0 rgba(0,0,0,.32), 0 5px 8px rgba(0,0,0,.45);
  --blue-deep: #05080d; --blue: rgb(10,20,28); --blue-mid: #2a3442; --blue-hi: #3a4658; --blue-glow: #9fd0ff;
}
*:not(.landing):not(.landing *) { border-radius: 0 !important; }   /* a landing page (tela de login) mantém cantos redondos */
body { background: radial-gradient(120% 100% at 50% 0%, #16243a 0%, #0a1018 55%, #05080d 100%); color: var(--ink); font-family: var(--font-body); }
/* Cinzel (só maiúsculas/versaletes) nos títulos, abas, nome do herói e botões de destaque; o resto é Barlow */
.win-title, h2, h3, .tabs button, .bi-body .who b, .btn.primary, .dm-nav button, .dm-banner span, .dm-promo b, .char-card .info b { font-family: var(--font-display); letter-spacing: .04em; }
.win-title { font-weight: 800; }

/* ---- janelas, pop-ups e telas de conta: preenchimento hextech + moldura dourada ---- */
.panel, .win, .auth-card, .chars-card, .modal-card { background: var(--hx-fill); border: 2px solid var(--frame); box-shadow: 0 12px 40px rgba(0,0,0,.7); color: var(--ink); }
.win.focus { border-color: #c8a24e; box-shadow: 0 0 18px rgba(232,205,141,.2), 0 14px 40px rgba(0,0,0,.8); }
/* cabeçalho = poço escuro com trilho dourado duplo em cima (claro) e embaixo (escuro) */
.win-title { position: relative; color: var(--title); border-bottom: 0; letter-spacing: .5px; text-transform: uppercase; font-size: 11px; text-shadow: 0 1px 1px rgba(0,0,0,.55); padding: 9px 12px 8px 16px;
  background:
    linear-gradient(180deg, #f4e2a8 0, #f4e2a8 2px, transparent 2px, transparent 3.5px, #d8b871 3.5px, #d8b871 4.5px, transparent 4.5px) top / 100% 6px no-repeat,
    linear-gradient(0deg, #7e5f28 0, #7e5f28 2px, transparent 2px, transparent 3.5px, #6a5223 3.5px, #6a5223 4.5px, transparent 4.5px) bottom / 100% 6px no-repeat,
    var(--hx-pit); }
/* gemas turquesa nas duas pontas do cabeçalho das janelas arrastáveis */
.win.drag .win-title::before, .win.drag .win-title::after { content: ''; position: absolute; top: 50%; width: 11px; height: 11px; transform: translateY(-50%) rotate(45deg); border: 1px solid #7fe6dd; background: radial-gradient(circle at 40% 35%, #d6fbf6, #0ac8b9 55%, #0a7d78); box-shadow: 0 0 8px rgba(10,200,185,.7); pointer-events: none; }
.win.drag .win-title::before { left: -7px; } .win.drag .win-title::after { right: -7px; }
.win-title .close { color: #9aa6b3; } .win-title .close:hover { color: #e2756b; }
/* painéis fixos do HUD (informações, mapa, chat): fundo quase preto, moldura dourada em bisel, cabeçalho com régua de ouro */
.win.static { background: var(--hud); border: 2px solid transparent; border-image: var(--frame-img) 1; box-shadow: 0 8px 26px rgba(0,0,0,.5); }
.win.static .win-title { padding: 4px 8px 6px; background: linear-gradient(90deg, transparent, #6a5223 12%, #e8cd8d 50%, #6a5223 88%, transparent) bottom / 100% 2px no-repeat, linear-gradient(180deg, rgba(44,36,14,.35), rgba(16,26,38,.12)); }
h3, .modal-card h2 { color: var(--title); border-bottom-color: var(--line); }
.win-body, .modal-card, .log { scrollbar-color: rgba(200,170,110,.45) transparent; }

/* ---- botões: comum em relevo; principal em ouro; ação/compra em azul — os dois últimos "afundam" ao clicar ---- */
.btn { background: var(--card); border: 1px solid; border-color: var(--raised); color: #cfd8e2; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -1px 2px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.3); }
.btn:hover { filter: brightness(1.08); border-color: var(--raised-hi); }
.btn:active { box-shadow: inset 0 2px 4px rgba(0,0,0,.5); }
.btn.primary { background: linear-gradient(180deg, #e6cd8e, #c8a24e); border-color: #6a5223; color: #1a1206; box-shadow: var(--btn3d); }
.btn.primary:hover { filter: brightness(1.1); border-color: #6a5223; }
.btn.blue { background: linear-gradient(180deg, #427efa, #2a5bc0); border-color: #6a5223; color: #f0f6ff; box-shadow: var(--btn3d); }
.btn.blue:hover { filter: brightness(1.12); border-color: #c8aa6e; }
.btn.primary:active, .btn.blue:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 3px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.45); }
.btn:disabled { opacity: .5; filter: none; }
.btn.primary:disabled, .btn.blue:disabled { background: linear-gradient(180deg, #3a4756, #2a333f); color: #b9c3cf; border-color: #2a3442; box-shadow: none; transform: none; }

/* ---- campos: poço escuro com fio dourado; foco em turquesa ---- */
input[type=text], input:not([type]), input[type=password], input[type=number], select, textarea { background: var(--field); color: var(--ink); border: 1px solid rgba(200,170,110,.3); box-shadow: inset 0 2px 5px rgba(0,0,0,.5); padding: 5px 8px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: inset 0 2px 5px rgba(0,0,0,.5), 0 0 10px rgba(10,200,185,.3); }
select option { background-color: rgb(10,20,28); color: #eaf0f6; }
input::placeholder { color: #7c8794; }
.char-card { background: var(--card); border: 1px solid; border-color: var(--raised); } .char-card:hover { background: var(--card); border-color: var(--raised-gold); filter: brightness(1.1); }

/* ---- HUD ---- */
.bi-body .who b { background: linear-gradient(180deg, #f6e8c4, #ddc082 40%, #c8aa6e 60%, #a98741 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold-bright); }
#hud-job { color: var(--teal-hi); }
/* barras em tubo: fundo rebaixado, brilho por cima; vida verde → laranja (≤50%) → vermelha (≤20%) */
.bar { background: linear-gradient(180deg, #0a0f16, #131c26); border: 1px solid rgba(0,0,0,.65); box-shadow: inset 0 1px 2px rgba(0,0,0,.75); }
.bar .fill { position: relative; transition: width .45s cubic-bezier(.4, 0, .2, 1); }
.bar .fill::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,.06) 45%, rgba(0,0,0,.18)); }
.bar span { color: #fff; text-shadow: 1px 0 0 rgba(0,0,0,.95), -1px 0 0 rgba(0,0,0,.95), 0 1px 0 rgba(0,0,0,.95), 0 -1px 0 rgba(0,0,0,.95), 0 1px 3px rgba(0,0,0,.8); }
.bar.hp .fill { background: linear-gradient(180deg, #8bf07a 0%, #4ec24a 45%, #319a34 55%, #217a26 100%); }
.bar.hp.low .fill { background: linear-gradient(180deg, #ffcf7a 0%, #f0a53a 48%, #c87e1e 100%); }
.bar.hp.crit .fill { background: linear-gradient(180deg, #ff9a8a 0%, #e5533a 48%, #a82a1e 100%); }
.bar.sp .fill { background: linear-gradient(180deg, #9fd0ff 0%, #427efa 45%, #2a5bc0 55%, #1e448f 100%); }
.bar.exp .fill { background: linear-gradient(180deg, #ffe680 0%, #ffcf3a 45%, #f0b71e 55%, #c8901a 100%); }
.bar.jexp .fill { background: linear-gradient(180deg, #a8f5ec 0%, #0ac8b9 45%, #0a9d92 55%, #0a7d78 100%); }
#hud-gold { color: var(--gold-bright); font-weight: 900; }
.badge { background: rgba(8,15,22,.6); color: #f0d99a; border: 1px solid rgba(153,117,48,.45); }
.badge.event { background: rgba(8,15,22,.7); color: #ffdf6b; border-color: #ffdf6b; box-shadow: 0 0 8px rgba(255,223,107,.35); }
#hud-badges .badge.rest, .badge.rest { background: rgba(10,200,185,.12); color: var(--teal-hi); border-color: rgba(10,200,185,.6); }

/* ---- chat: fundo com brilho turquesa/ouro, moldura dourada, abas hextech, mensagens em amarelo ---- */
#chatbox { background: radial-gradient(120% 160% at 88% -30%, rgba(10,200,185,.08), transparent 55%), radial-gradient(120% 160% at 8% 130%, rgba(232,205,141,.07), transparent 58%), linear-gradient(180deg, rgb(10,20,28), rgb(6,12,20)); border-image: linear-gradient(#e8cd8d, #c8a24e 40%, #9c7a34 70%, #6a5223) 1; box-shadow: 0 8px 26px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06); }
#chatbox .tabs { background: linear-gradient(90deg, transparent, #6a5223 12%, #e8cd8d 50%, #6a5223 88%, transparent) bottom / 100% 2px no-repeat, linear-gradient(180deg, rgba(44,36,14,.35), rgba(16,26,38,.12)); padding-bottom: 5px; }
.tabs button, #chatbox .tabs button { background: var(--card); border: 1px solid; border-color: var(--raised); color: #9aa6b3; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -1px 2px rgba(0,0,0,.3); }
.tabs button:hover, #chatbox .tabs button:hover { color: #cfd8e2; filter: brightness(1.08); }
.tabs button.active, #chatbox .tabs button.active { border-color: var(--lit); color: var(--gold-hi); background: var(--card2); box-shadow: inset 0 -3px 0 #e8cd8d, inset 0 1px 0 rgba(255,255,255,.12), 0 0 8px rgba(232,205,141,.3); }
.log { background: transparent; border-top-color: transparent; color: #d6dbe2; } .log .sys { color: #8a93a0; } .log .drop { color: var(--gold-bright); } .log .epic { color: #d67aff; }
.log .chat { color: #ffff00; font-weight: 700; } .log .chat b { color: #ffff00; } .log .chat .time { color: rgba(255,236,120,.55); font-weight: 600; } .log .chat .muted { color: rgba(255,236,120,.6); } .log .chat.system { color: #8a93a0; font-weight: 400; }

/* ---- barra inferior = o "dock": moldura dourada com fio interno; botões apagados que acendem em dourado ---- */
#bottombar { background: linear-gradient(180deg, rgba(10,16,24,.9), rgba(6,11,18,.94)); border: 2px solid transparent; border-image: var(--frame-img) 1; box-shadow: 0 8px 26px rgba(0,0,0,.55); }
#bottombar::before { content: ''; position: absolute; inset: 3px; border: 1px solid rgba(153,117,48,.28); pointer-events: none; }
#bottombar button, #bottombar button#btn-town { background: none; border: 1px solid transparent; color: #c3cdd8; text-shadow: none; filter: brightness(.8) saturate(.9); transition: filter .12s ease, background .12s ease, border-color .12s ease; }
#bottombar button:hover, #bottombar button.on, #bottombar button.sit-on, #bottombar button#btn-town:hover, #bottombar button#btn-town.on { filter: brightness(1.22) saturate(1.15); background: rgba(200,170,110,.12); border-color: rgba(200,170,110,.4); color: var(--gold-hi); }
#hotbar .hk { background: var(--hx-pit); border: 1px solid; border-color: var(--raised); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -11px 18px rgba(0,0,0,.42), 0 2px 4px rgba(0,0,0,.35); } #hotbar .hk .key { color: var(--gold); } #hotbar .hk .sp { color: #9fd0ff; }
#hotbar .hk.empty { background: rgba(6,12,20,.6); } #hotbar .hk .plus { color: #4a5566; } #hotbar .hk.manual { border-color: var(--lit); }

/* ---- cartões internos: relevo neutro; passar o mouse = bisel dourado; selecionado = aceso ---- */
.kv div, .skill, .prio, .shop-item, .setting, .map-card, .job-choice, .market-row, .stat-tiles div, .gem-row, .drops-panel, .set-panel, .refine-card, .pick, .town-list div { background: var(--card); color: var(--ink); }
.map-card { border-color: var(--raised); } .map-card:hover { border-color: var(--raised-gold); } .map-card.current { background: var(--card2); border-color: var(--lit); } .map-card.locked { opacity: .45; }
.job-choice { border-color: var(--raised); } .job-choice:hover { border-color: var(--raised-gold); } .pick { border-color: var(--raised); } .pick:hover { border-color: var(--raised-gold); } .pick.on { border-color: var(--lit); background: var(--card2); }
.skill .lvl { color: var(--gold-bright); } .skill .body small { color: var(--muted); } .skill .formula { color: #cfd8e2; background: rgba(10,200,185,.1); } .skill .now { color: #6ee7a8; }
.lvltable th { color: var(--gold); border-bottom-color: rgba(153,117,48,.28); } .lvltable td { border-bottom-color: rgba(140,165,190,.1); } .lvltable tr.cur td { background: rgba(200,170,110,.14); }
/* espaços de item = poço rebaixado (bisel invertido) */
.slot { background: radial-gradient(circle at 50% 0%, rgba(66,126,250,.08), rgba(0,0,0,.3)); border: 1px solid; border-color: var(--well); box-shadow: inset 0 2px 6px rgba(0,0,0,.6); } .slot:hover { border-color: rgba(232,205,141,.6); } .slot.equipped { background: var(--card2); border-color: var(--lit); }
.equip-grid .slot { color: var(--muted); }
.fbtn { background: var(--card); border-color: var(--raised); color: #cfd8e2; } .fbtn.on { background: linear-gradient(180deg, #e6cd8e, #c8a24e); border-color: #6a5223; color: #1a1206; }
.market-row { border-bottom-color: rgba(140,165,190,.1); } .market-row .p { color: #6ef08a; } .shop-item .p { color: #6ef08a; }
.gem-row { border-bottom-color: rgba(140,165,190,.1); }
.stat-tiles div b { color: var(--gold-bright); }
.setting { border: 1px solid; border-color: var(--raised); }
.pill { background: rgba(8,15,22,.6); color: var(--teal-hi); }
.drops-list .drop b { color: var(--gold-bright); } .drops-panel, .set-panel { border-color: var(--raised); }
#tooltip { background: rgba(10,16,24,.96); border: 1px solid #c8aa6e; color: var(--gold-hi); box-shadow: 0 4px 16px rgba(0,0,0,.5); }
#world-banner { background: rgba(10,16,24,.95); border-color: rgba(200,170,110,.5); color: var(--gold-hi); }
/* avisos = cartão escuro com borda colorida por tipo (azul info, verde bom, vermelho ruim, amarelo raro) */
.toast { background: #161b26; color: #fff; border: 1px solid #427efa; border-left-width: 4px; box-shadow: 0 8px 30px rgba(0,0,0,.6); }
.toast.good { background: #161b26; border-color: #2ee6a6; } .toast.bad { background: #161b26; border-color: #ff6b6b; } .toast.epic { background: #161b26; border-color: #ffd25e; }
#modal { background: rgba(0,0,0,.6); }
.tut-page h2 { color: var(--title); }
.rank th { color: var(--gold); border-bottom: 1px solid rgba(153,117,48,.28); } .rank td { border-bottom: 1px solid rgba(140,165,190,.1); }
.combo .prio .key { color: var(--gold); }
.forge { background: var(--hx-pit); border-color: rgba(200,170,110,.28); }
.forge-icon { background: radial-gradient(circle at 50% 32%, rgba(30,44,60,.9), rgba(8,14,22,.95)); border-color: rgba(200,170,110,.28); }
.pips i { background: #0a0f16; border-color: #2a3442; } @keyframes pip-blink { 0%, 100% { background: #141c27; } 50% { background: #3a4658; } }
.chance { background: #0a0f16; border-color: #2a3442; }
.sock { background: rgba(0,0,0,.3); border-color: var(--well); }
.offline-grid div { background: var(--card); } .offline-grid b { color: var(--gold-bright); }
/* pílulas de autovenda e sacrifício: mesmo painel escuro do HUD, interruptor turquesa, progresso em ouro */
.asb-head, .sac-head { background: var(--hud); border: 1px solid rgba(153,117,48,.45); box-shadow: 0 4px 14px rgba(0,0,0,.45); color: #cdd6e0; }
.asb-head .st, .sac-head .st { color: #8a93a0; } .asb-head .st b, .sac-head .st b { color: var(--gold-hi); }
.asb-head .sw, .sac-head .sw { background: #2a3442; } .asb-head .sw.on, .sac-head .sw.on { background: var(--teal); }
.sac-head .prog { background: #0a0f16; } .sac-head .prog i { background: linear-gradient(180deg, #ffe680 0%, #ffcf3a 45%, #f0b71e 55%, #c8901a 100%); }
.sac-head.done { border-color: #ffdf5e; box-shadow: 0 0 12px rgba(255,223,94,.5); }
.logo h1 { color: var(--gold-bright); text-shadow: 0 2px 0 #05080d; }
#create-preview { background: var(--hx-pit); border-color: rgba(200,170,110,.28); }
.picker button { border-color: #2a3442; } .picker button.hair { background: var(--hx-pit); }

/* ==========================================================================
   Celular / toque (≤ 760 px, ou toque até 1024 px). Tudo ancorado embaixo, em pilha:
   barra inferior → barra de poderes → (chat 💬 à esquerda | autovenda à direita). HUD e minimapa em cima.
   ========================================================================== */
html, body { touch-action: manipulation; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
@media (max-width: 760px), (pointer: coarse) and (max-width: 1024px) {
  :root { --sab: 0px; --sat: 0px; }
  @supports (padding: env(safe-area-inset-bottom)) { :root { --sab: env(safe-area-inset-bottom, 0px); --sat: env(safe-area-inset-top, 0px); } }
  body { font-size: 15px; }
  #screen-game { height: 100vh; height: 100dvh; }
  input[type=text], input:not([type]), input[type=password], input[type=number], select, textarea { font-size: 16px; }   /* evita o zoom automático do iOS */
  .btn, #bottombar button, .tabs button, .fbtn { min-height: 40px; }
  .screen { padding: 10px; }
  .auth-card, .chars-card { padding: 16px; margin-top: 3vh; width: 100%; }
  .chars-card header { flex-wrap: wrap; gap: 6px; }
  /* ---- topo: HUD compacto à esquerda, minimapa pequeno à direita ---- */
  #basic-info { left: 6px; top: calc(6px + var(--sat)); width: min(60vw, 236px); font-size: 11px; }
  #basic-info .win-title { font-size: 10px; padding: 2px 8px; }
  .bi-body { padding: 4px 6px; }
  .bi-body .who { font-size: 11px; } .bi-body .who b { font-size: 13px; }
  .bi-body .bars { gap: 2px; margin: 3px 0; }
  .bar { height: 11px; } .bar span { font-size: 9px; line-height: 10px; }
  .bi-foot { font-size: 10px; flex-wrap: wrap; gap: 2px 6px; }
  #hud-badges .badge { font-size: 9px; padding: 0 4px; margin-left: 3px; }
  #minimap-box { display: block !important; right: 6px; top: calc(6px + var(--sat)); transform: scale(.5); transform-origin: top right; opacity: .9; }
  #world-banner { left: 8px; right: 8px; top: calc(128px + var(--sat)); transform: none; width: auto; max-width: none; font-size: 12px; padding: 4px 30px 4px 8px; z-index: 9; }
  /* ---- base: barra inferior fixa, largura total, rola para o lado ---- */
  #bottombar { position: fixed; left: 0; right: 0; bottom: 0; transform: none; width: 100vw; max-width: none; flex-wrap: nowrap; overflow: hidden; padding: 4px 4px calc(4px + var(--sab)); gap: 3px; border-left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 12px 0 0; z-index: 8; }
  #bottombar button { flex: 1 1 0; min-width: 0; max-width: 120px; min-height: 44px; padding: 3px 2px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #bottombar button span { font-size: 18px; }
  #bottombar button[data-sec] { display: none; }               /* secundários ficam no menu "Mais" */
  #bottombar button#btn-diamond { font-size: 9px; letter-spacing: -.2px; }
  #bottombar #btn-more { display: flex; }
  #bottombar { justify-content: center; }
  /* menu "Mais" aberto: a barra vira uma grade com todos os botões */
  #bottombar.more { flex-wrap: wrap; gap: 4px; padding: 6px 6px calc(6px + var(--sab)); z-index: 12; box-shadow: 0 -10px 30px rgba(0,0,0,.5); }
  #bottombar.more button { flex: 0 0 calc(25% - 3px); max-width: none; min-height: 52px; font-size: 11px; }
  #bottombar.more button[data-sec] { display: flex; }
  #bottombar.more button.hidden { display: none; }
  #bottombar.more #btn-more { flex: 1 1 100%; min-height: 40px; flex-direction: row; gap: 6px; }
  #bottombar.more #btn-more span { font-size: 14px; }
  /* botão flutuante de tela cheia (embaixo do minimapa) */
  #fs-fab { display: grid; place-items: center; position: fixed; right: 6px; top: calc(98px + var(--sat)); width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--panel-border); background: var(--panel); color: var(--ink); font-size: 16px; z-index: 7; opacity: .9; padding: 0; }
  body.fullscreen #fs-fab { opacity: .6; }
  /* ---- poderes logo acima da barra ---- */
  #hotbar { position: fixed; left: 50%; transform: translateX(-50%); margin-left: 0; bottom: calc(62px + var(--sab)); gap: 2px; flex-wrap: nowrap; justify-content: center; z-index: 7; }
  #hotbar .hk { width: 36px; height: 36px; border-width: 1px; } #hotbar .hk .key, #hotbar .hk .sp { font-size: 8px; }
  /* ---- linha de utilidades: chat (esq.) e autovenda (dir.) ---- */
  #chatbox { position: fixed; left: 6px; right: 6px; width: auto; bottom: calc(106px + var(--sab)); font-size: 13px; z-index: 7; }
  #chatbox .log { height: 34vh; height: 34dvh; max-height: 260px; }
  #chatbox .tabs { padding: 4px 6px; gap: 4px; }
  #chatbox .tabs button { min-height: 30px; padding: 2px 10px; font-size: 12px; }
  #chatbox.collapsed { right: auto; width: auto; }
  #chatbox.collapsed .tabs button:not(.active):not(.collapse) { display: none; }   /* recolhido: só a aba ativa + botão */
  #chatbox.collapsed .collapse { margin-left: 2px; }
  #chatbox:not(.collapsed) { z-index: 10; }             /* chat aberto fica por cima do aviso do mundo */
  #chatbox .chat-form input { min-height: 36px; }
  #autosell-bar { position: fixed; left: auto; right: 6px; bottom: calc(106px + var(--sab)); transform: none; margin: 0; max-width: calc(100vw - 160px); align-items: flex-end; z-index: 6; }
  .asb-head { font-size: 11px; gap: 5px; padding: 3px 6px; }
  .asb-head .st, .asb-head .lbl { display: none; }      /* só o interruptor, a moeda, "Vender" e a engrenagem */
  .asb-head .btn.tiny { min-height: 30px; padding: 2px 8px; font-size: 11px; }
  .asb-panel { max-width: calc(100vw - 12px); max-height: 50vh; max-height: 50dvh; overflow-y: auto; }
  /* ---- janelas em tela cheia (uma por vez) ---- */
  #windows .win { position: fixed !important; left: 0 !important; top: 0 !important; width: 100vw !important; min-width: 0 !important; height: calc(100vh - 58px - var(--sab)); height: calc(100dvh - 58px - var(--sab)); border-left: 0; border-right: 0; display: flex; flex-direction: column; }
  #windows .win .win-title { font-size: 13px; padding: 8px 10px; padding-top: calc(8px + var(--sat)); }
  #windows .win .win-title .close { font-size: 20px; padding: 0 8px; }
  #windows .win .win-body { flex: 1; max-height: none; padding: 8px; -webkit-overflow-scrolling: touch; }
  .win.drag .win-title { cursor: default; }
  /* ---- modal, dica, conteúdos ---- */
  .modal-card { width: calc(100vw - 16px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 14px; }
  #tooltip { left: 8px !important; right: 8px; top: auto !important; bottom: calc(150px + var(--sab)); max-width: none; font-size: 13px; }
  .equip-grid, .stat-tiles, .offline-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .shop-list, .kv { grid-template-columns: 1fr; }
  .market-tabs { flex-wrap: wrap; }
  .market-tabs .btn, .row .btn.tiny { font-size: 11px; padding: 6px 8px; }
  .lvltable { font-size: 11px; } .rank { font-size: 12px; }
  .win-body h3 { font-size: 14px; } .win-body .row { gap: 6px; }
  .slot, .refine-list .slot { width: 40px; height: 40px; }
  .map-card, .shop-item, .market-row, .skill { font-size: 13px; }
  .job-choice canvas { width: 56px; height: 66px; }
  .toast { max-width: calc(100vw - 16px); }
}
/* ---- celular deitado (pouca altura): HUD ainda menor, sem minimapa, pilha mais baixa ---- */
@media (pointer: coarse) and (max-height: 500px) {
  #basic-info { width: 200px; font-size: 10px; }
  #basic-info .win-title { display: none; }
  .bi-body .who b { font-size: 12px; } .bar { height: 9px; } .bar span { font-size: 8px; line-height: 9px; }
  .bi-body .bars { gap: 1px; margin: 2px 0; }
  #minimap-box { display: none !important; }
  #world-banner { top: auto; bottom: calc(150px + var(--sab)); left: auto; right: 6px; width: auto; max-width: 50vw; }
  #bottombar button { min-height: 40px; padding: 2px 4px; } #bottombar button span { font-size: 16px; }
  #bottombar.more button { flex-basis: calc(16.66% - 4px); min-height: 44px; }
  #fs-fab { top: calc(6px + var(--sat)); }
  #hotbar { bottom: calc(56px + var(--sab)); } #hotbar .hk { width: 32px; height: 32px; }
  #chatbox, #autosell-bar { bottom: calc(94px + var(--sab)); }
  #chatbox .log { height: 40vh; height: 40dvh; }
  #windows .win { height: calc(100vh - 52px - var(--sab)); height: calc(100dvh - 52px - var(--sab)); }
  #windows .win .win-title { padding: 5px 10px; }
  .equip-grid, .stat-tiles, .offline-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .equip-grid .slot { height: 48px; }
  .shop-list, .kv { grid-template-columns: 1fr 1fr; }
}
.market-tabs button.on, .market-tabs .btn.on { background: linear-gradient(#e6cd8e, #c8a24e); border-color: #6a5223; color: #1a1206; }

/* ---- Discord ---- */
.discord-cta { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 10px; background: linear-gradient(#6d78f5, #4752c4); border: 2px solid #8a93ff; color: #fff; text-decoration: none; font-size: 13px; box-shadow: 0 2px 0 #2c3488; }
.discord-cta:hover { filter: brightness(1.08); }
.discord-cta .ico { font-size: 22px; }
.discord-cta small { display: block; font-size: 11px; opacity: .9; font-weight: 400; }
.btn.discord-btn { background: linear-gradient(#6d78f5, #4752c4); border-color: #8a93ff; color: #fff; text-decoration: none; display: inline-block; }

/* ---- aviso de item lendário (todo o servidor) ---- */
.toast.legendary { background: linear-gradient(#e6cd8e, #c8a24e); border: 2px solid #fff0b0; color: #1a1206; font-size: 15px; padding: 10px 18px; box-shadow: 0 0 18px rgba(255,214,106,.75), 0 6px 20px rgba(0,0,0,.4); animation: toast 6s forwards, legendary-pulse 1s infinite alternate; }
@keyframes legendary-pulse { from { box-shadow: 0 0 10px rgba(255,214,106,.5), 0 6px 20px rgba(0,0,0,.4); } to { box-shadow: 0 0 26px rgba(255,214,106,1), 0 6px 20px rgba(0,0,0,.4); } }

/* ---- Novidades (patch notes) ---- */
.news-entry { border: 1px solid var(--panel-border); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; background: var(--card); }
.news-entry.latest { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(255,214,106,.35) inset; }
.news-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.news-head .muted { font-size: 11px; }
.news-entry ul { margin: 6px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.45; }
.news-entry li { margin: 2px 0; }
#bottombar button { position: relative; }
#bottombar button.badge-new::after { content: ''; position: absolute; top: 3px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: #e0475b; border: 1px solid #23131a; box-shadow: 0 0 6px rgba(224,71,91,.8); animation: news-pulse 1.2s infinite alternate; }
@keyframes news-pulse { from { transform: scale(1); } to { transform: scale(1.35); } }

/* ===== Loja de Diamantes (cash shop) ===== */
#hud-diamonds { color: #9fd0ff; font-weight: 900; cursor: pointer; margin-left: 6px; white-space: nowrap; text-shadow: 0 0 6px rgba(159,208,255,.35); }
#hud-diamonds:hover { color: #cfe6ff; }
#hud-badges .badge.vip { background: linear-gradient(#f4e2a8, #c8a24e); color: #1a1206; border-color: #f4e2a8; box-shadow: 0 0 8px rgba(200,170,110,.45); }
/* o único botão do dock com destaque: aceso (sem o apagado dos outros) e com fio dourado em volta; com VIP ativo, fundo dourado discreto */
#bottombar button#btn-diamond { filter: none; border-color: rgba(200,170,110,.75); color: #9fd0ff; box-shadow: 0 0 8px rgba(200,170,110,.25); }
#bottombar button#btn-diamond:hover, #bottombar button#btn-diamond.on { filter: brightness(1.15); background: rgba(200,170,110,.12); border-color: #f4e2a8; color: #cfe6ff; }
#bottombar button#btn-diamond.vip-on { background: var(--card2); border-color: #c8a24e; color: #f0d99a; }
/* janela: título dourado, corpo em duas colunas */
.win[data-win="diamond"] .win-title { font-size: 14px; letter-spacing: .6px; text-transform: uppercase; padding: 12px 10px 11px; justify-content: center; }
.win[data-win="diamond"] .win-title .close { position: absolute; right: 12px; }
.win[data-win="diamond"] .win-body { padding: 0; background: transparent; }
.dm { display: grid; grid-template-columns: 172px 1fr; min-height: 380px; }
.dm-side { padding: 10px; background: rgba(0,0,0,.2); border-right: 1px solid rgba(153,117,48,.28); display: flex; flex-direction: column; gap: 8px; }
/* saldo = poço rebaixado com um brilho azul no topo */
.dm-wallet { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px 10px; background: radial-gradient(circle at 50% 0%, rgba(66,126,250,.14), rgba(0,0,0,.3)); border: 1px solid; border-color: var(--well); box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.dm-gem-big { font-size: 40px; line-height: 1; filter: drop-shadow(0 0 8px rgba(159,208,255,.55)); }
.dm-wallet b { font-size: 22px; color: #9fd0ff; text-shadow: 0 0 10px rgba(159,208,255,.35); margin-top: 4px; }
.dm-wallet small { color: var(--muted); font-size: 11px; }
.dm-vipchip { margin-top: 6px; font-size: 10px; font-weight: 900; color: #1a1206; background: linear-gradient(#f4e2a8, #c8a24e); padding: 1px 8px; }
.dm-paybtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dm-donate { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.35; margin: 8px 0; padding: 8px 10px; border: 1px solid rgba(200,170,110,.45); border-radius: 8px; background: rgba(200,170,110,.08); cursor: pointer; }
.dm-donate input { margin: 2px 0 0; flex: none; width: 16px; height: 16px; accent-color: #0fa38a; }
.dm-pay { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 6px; font-weight: 900; font-size: 12px; color: #fff; border: 1px solid #6a5223; box-shadow: var(--btn3d); cursor: pointer; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.dm-pay span { font-size: 11px; opacity: .9; }
.dm-pay.pix { background: linear-gradient(180deg, #0fa38a, #0a7562); color: #eafff8; }
.dm-pay.card { background: linear-gradient(180deg, #3a5db5, #294289); color: #eaf1ff; }
.dm-pay:hover, .dm-transfer:hover { border-color: #c8aa6e; }
.dm-pay:active, .dm-transfer:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 3px rgba(0,0,0,.45); }
.dm-pay:hover, .dm-pay.on { filter: brightness(1.15); box-shadow: 0 0 10px rgba(255,255,255,.2); }
.dm-transfer { padding: 9px 8px; font-weight: 900; font-size: 12px; color: #fff; background: linear-gradient(180deg, #427efa, #3464c8); border: 1px solid #c8aa6e; box-shadow: var(--btn3d); cursor: pointer; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.dm-transfer:hover { filter: brightness(1.15); }
.dm-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.dm-nav button { text-align: left; padding: 8px 10px; font-weight: 800; font-size: 13px; background: var(--card); color: #cfd8e2; border: 1px solid; border-color: var(--raised); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -1px 2px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.3); cursor: pointer; }
.dm-nav button:hover { border-color: var(--raised-hi); filter: brightness(1.08); }
.dm-nav button.on { background: var(--card2); color: var(--gold-hi); border-color: var(--lit); box-shadow: inset 3px 0 0 #e8cd8d, inset 0 1px 0 rgba(255,255,255,.15), inset 0 -2px 5px rgba(0,0,0,.3), 0 0 9px rgba(232,205,141,.32); }
/* "Pacotes de diamantes" = placa de ouro escuro com moldura dourada em bisel e brilho por fora */
.dm-promo { margin-top: auto; padding: 10px; background: linear-gradient(180deg, #3a2e0a, #241a05); border: 2px solid #c8a24e; border-image: linear-gradient(#fce7a2, #c8a24e, #6f5220) 1; box-shadow: 0 0 10px rgba(255,210,94,.22); display: flex; flex-direction: column; gap: 4px; }
.dm-promo b { color: var(--gold); font-size: 11px; letter-spacing: .5px; }
.dm-promo small { color: #cfe0d4; font-size: 11px; line-height: 1.35; }
.dm-promo .btn { margin-top: 4px; }
.dm-main { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dm-search { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--field); border: 1px solid rgba(200,170,110,.3); box-shadow: inset 0 2px 5px rgba(0,0,0,.5); color: var(--muted); }
.dm-search:focus-within, .inv-search:focus-within { border-color: var(--teal); box-shadow: inset 0 2px 5px rgba(0,0,0,.5), 0 0 10px rgba(10,200,185,.3); }
.dm-search input, .inv-search input { box-shadow: none !important; }
.dm-search input { flex: 1; background: transparent; border: 0; color: var(--ink); font-size: 13px; min-width: 0; }
.dm-search input:focus { outline: none; }
.dm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dm-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px 10px; background: var(--card); border: 1px solid; border-color: var(--raised); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -2px 4px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.5); text-align: center; overflow: hidden; min-height: 210px; }
.dm-card:hover { border-color: var(--raised-gold); filter: brightness(1.1); }
.dm-card.active { border-color: #ffd25e; box-shadow: 0 0 14px rgba(255,210,94,.35), inset 0 0 18px rgba(255,210,94,.08); }
.dm-card.soon { opacity: .55; border-style: dashed; }
.dm-ribbon { position: absolute; top: 12px; right: -26px; transform: rotate(45deg); background: linear-gradient(180deg, #66e08a, #37b45f); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: 1px; padding: 2px 30px; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.dm-ribbon.ok { background: var(--gold); color: #1a1206; text-shadow: none; }
.dm-icon { font-size: 40px; line-height: 1; filter: drop-shadow(0 0 8px rgba(200,170,110,.35)); }
.dm-name { font-size: 13px; color: var(--ink); }
.dm-info { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #2a3442; color: #fff; font-size: 9px; font-weight: 900; cursor: help; vertical-align: 1px; }
.dm-desc { font-size: 11px; color: var(--muted); line-height: 1.4; flex: 1; }
.dm-foot { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 6px; margin-top: 4px; }
.dm-price { font-size: 13px; font-weight: 900; color: #9fd0ff; white-space: nowrap; }
.dm-banner { position: relative; height: 128px; background-size: cover; background-position: center 35%; border: 1px solid #2a3442; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; image-rendering: pixelated; }
.dm-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(5,8,13,.25), rgba(5,8,13,.7)); }
.dm-banner span { position: relative; font-size: 18px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 0 #1a1206, 0 0 14px rgba(0,0,0,.9), 0 0 4px #000; text-align: center; padding: 0 10px; }
.dm-banner small { position: relative; font-size: 11px; color: #fff; text-shadow: 0 1px 2px #000; }
.dm-note { font-size: 11px; }
/* modais (pacotes / pagamento) */
.dm-methods { display: flex; gap: 6px; margin: 6px 0; }
.dm-methods .dm-pay { flex: 1; opacity: .75; } .dm-methods .dm-pay.on { opacity: 1; }
.dm-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-top: 10px; }
.dm-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px 8px; background: var(--card); border: 1px solid var(--panel-border); text-align: center; font-size: 12px; }
.dm-pack.tagged { border-color: var(--gold); }
.dm-pack.hot { background: linear-gradient(180deg, rgba(200,170,110,.12), transparent 60%), var(--card); box-shadow: 0 0 10px rgba(200,170,110,.25); }
.dm-pack .dm-gem { font-size: 28px; }
.dm-pack b { font-size: 12px; }
.dm-pack small { font-size: 10px; color: var(--muted); }
.dm-bonus { color: #a8e890 !important; font-weight: 700; }
.dm-tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1a1206; font-size: 9px; font-weight: 900; padding: 1px 6px; white-space: nowrap; }
.dm-lock { padding: 6px 8px; margin-bottom: 6px; background: var(--card); border: 1px dashed var(--gold); font-size: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.setting.locked { opacity: .55; }
.dm-checkout { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--card); border: 1px solid var(--panel-border); margin: 6px 0; }
.dm-checkout .dm-price { margin-left: auto; }
.dm-checkout .dm-gem { font-size: 36px; }
.dm-pay-box { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--card); border: 1px solid var(--panel-border); }
.dm-qr { width: 72px; height: 72px; flex: 0 0 72px; display: grid; place-items: center; font-weight: 900; color: #8a93a0; background: repeating-linear-gradient(45deg, #1a222e 0 6px, #0a1018 6px 12px); border: 2px dashed #2a3442; }
.dm-card-form { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dm-card-form input { width: 100%; }
@media (max-width: 760px) {
  .dm { grid-template-columns: 1fr; min-height: 0; }
  .dm-side { border-right: 0; border-bottom: 1px solid #2a3442; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .dm-wallet { grid-row: span 3; }
  .dm-nav { display: none; }
  .dm-promo { grid-column: 1 / -1; margin-top: 0; }
  .dm-grid { grid-template-columns: repeat(2, 1fr); }
  .dm-banner { height: 110px; } .dm-banner span { font-size: 14px; }
}

/* ===== Auto-poção ===== */
.ap-master { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; background: var(--card); border: 1px solid var(--panel-border); margin-bottom: 8px; font-size: 12px; }
.ap-master.on { border-color: #7ec86a; }
.ap-switch { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.ap-switch input { width: 18px; height: 18px; }
.ap-card { padding: 8px 10px; background: var(--card); border: 1px solid var(--panel-border); margin-bottom: 8px; opacity: .7; }
.ap-card.on { opacity: 1; }
.ap-card.hp.on { border-color: #4ec24a; } .ap-card.sp.on { border-color: #427efa; }
.ap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.ap-bar { position: relative; height: 10px; background: rgba(0,0,0,.34); border: 1px solid rgba(140,165,190,.14); margin: 6px 0; }
.ap-card.hp .ap-fill { background: linear-gradient(180deg, #8bf07a 0%, #4ec24a 45%, #319a34 55%, #217a26 100%); } .ap-card.sp .ap-fill { background: linear-gradient(180deg, #9fd0ff 0%, #427efa 45%, #2a5bc0 55%, #1e448f 100%); }
.ap-fill { height: 100%; }
.ap-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--gold); box-shadow: 0 0 4px var(--gold); }
.ap-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 12px; }
.ap-row label { flex: 0 0 110px; color: var(--muted); }
.ap-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--gold); }
.ap-row select { flex: 1; min-width: 0; }
.ap-row b { width: 36px; text-align: right; }
.ap-presets { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12px; }

/* ===== Bolsa: busca, filtros em select, comparação ao equipar ===== */
.inv-tools { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.inv-search { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: var(--field); border: 1px solid rgba(200,170,110,.3); box-shadow: inset 0 2px 5px rgba(0,0,0,.5); color: var(--muted); }
.inv-search input { flex: 1; background: transparent; border: 0; color: var(--ink); font-size: 13px; min-width: 0; }
.inv-search input:focus { outline: none; }
.inv-selects { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.inv-selects select { font-size: 11px; padding: 3px 4px; max-width: 150px; }
.slot.empty { opacity: .55; border-style: dashed; }
.cmp { margin-top: 10px; padding: 8px; background: var(--card); border: 1px solid var(--panel-border); font-size: 12px; }
.cmp-head { font-size: 11px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .4px; }
.cmp-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.cmp-row small { display: block; color: var(--muted); font-size: 11px; }
.cmp-arrow { font-size: 10px; color: var(--gold); padding-left: 8px; }
.cmp-deltas { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-weight: 800; font-size: 12px; }
.cmp-deltas .up { color: #7ec86a; } .cmp-deltas .down { color: #ff8a8a; }

/* ===== Clã ===== */
.clantag { color: #9fd0ff; font-weight: 900; }
.clan-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: linear-gradient(180deg, rgba(30,40,53,.5), rgba(11,17,26,.6)); border: 1px solid var(--gold); margin-bottom: 8px; }
.clan-crest { font-size: 32px; filter: drop-shadow(0 0 6px rgba(200,170,110,.5)); }
.clan-name { font-size: 15px; display: block; }
.clan-head small { color: var(--muted); font-size: 11px; line-height: 1.3; display: block; }
.clan-desc { padding: 6px 8px; background: var(--card); border-left: 3px solid var(--gold); font-size: 12px; font-style: italic; margin-bottom: 6px; }
.clan-invite { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; background: var(--card); border: 1px solid #2a3442; margin-bottom: 4px; font-size: 12px; flex-wrap: wrap; }
.on-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7ec86a; box-shadow: 0 0 5px #7ec86a; vertical-align: middle; }
table.rank tr.cur td { background: rgba(201,168,106,.12); }

/* ===== banner de aviso ao entrar ===== */
.banner-modal { text-align: center; }
.banner-modal img { display: block; max-width: min(92vw, 420px); max-height: 72vh; width: auto; height: auto; margin: 0 auto; border: 2px solid var(--gold); image-rendering: auto; }
.banner-modal .btn { text-decoration: none; }

/* "E" de equipado */
.slot .eq { position: absolute; right: 2px; top: 0; font-size: 10px; font-weight: 900; color: #fff; background: #2fbf6a; border-radius: 3px; padding: 0 3px; line-height: 13px; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
#tooltip .cmp { margin-top: 6px; padding: 6px; font-size: 11px; }
#tooltip .cmp-deltas { font-size: 11px; }

/* ===== Pix (Efí) ===== */
.dm-paybtns.one { grid-template-columns: 1fr; }
.dm-pix { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: start; }
.dm-qr-big { background: #fff; padding: 6px; border: 2px solid var(--gold); display: grid; place-items: center; }
.dm-qr-big img { width: 188px; height: 188px; image-rendering: pixelated; display: block; }
.dm-pix-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dm-pix-side textarea { width: 100%; font-size: 10px; font-family: monospace; word-break: break-all; resize: none; background: #05080d; color: #d6dbe2; border: 1px solid #2a3442; padding: 4px; }
.dm-wait { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 4px; }
.dm-spin { width: 12px; height: 12px; border: 2px solid #2a3442; border-top-color: var(--gold); border-radius: 50%; animation: dm-spin 1s linear infinite; }
@keyframes dm-spin { to { transform: rotate(360deg); } }
.dm-paid { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px; background: var(--card); border: 1px solid #7ec86a; }
.dm-paid b { font-size: 18px; color: #a8e890; }
.dm-orders { display: flex; flex-direction: column; gap: 3px; }
.dm-order { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; font-size: 11px; padding: 3px 6px; background: var(--card); }
.dm-order .up { color: #7ec86a; font-weight: 800; }
@media (max-width: 760px) { .dm-pix { grid-template-columns: 1fr; } .dm-qr-big { justify-self: center; } }
.log .ptitle { color: #e0c084; font-size: 11px; font-weight: 700; }

/* fundição de gemas */
.fuse-stats { display: flex; gap: 14px; font-size: 12px; padding: 6px 8px; border-radius: 8px; background: var(--card); margin-bottom: 6px; }
.fuse-card { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; padding: 8px; margin: 6px 0; border-radius: 10px; background: var(--card); border: 1px solid var(--line, rgba(140,165,190,.14)); }
.fuse-from, .fuse-to { display: flex; gap: 8px; align-items: center; min-width: 0; }
.fuse-from small, .fuse-to small { display: block; font-size: 10px; color: var(--muted); line-height: 1.3; }
.fuse-from b, .fuse-to b { font-size: 12px; }
.fuse-arrow { font-size: 12px; color: var(--muted); white-space: nowrap; text-align: center; }
.fuse-arrow b { color: var(--gold); font-size: 14px; display: block; }
@media (max-width: 760px) { .fuse-card { grid-template-columns: 1fr 1fr; } .fuse-arrow { grid-column: 1 / -1; } .fuse-card .btn { grid-column: 1 / -1; } }

/* ---- Indique um amigo (Loja de Diamantes) ---- */
.dm-earn { font-size: 10px; color: var(--gold); margin-left: 4px; }
.dm-ref { display: flex; flex-direction: column; gap: 10px; }
.dm-ref-hero { display: flex; gap: 12px; align-items: center; padding: 12px; background: linear-gradient(180deg, rgba(30,40,53,.5), rgba(11,17,26,.6)); border: 1px solid #2a3442; }
.dm-ref-ico { font-size: 40px; line-height: 1; filter: drop-shadow(0 0 8px rgba(159,208,255,.35)); }
.dm-ref-hero b { display: block; color: #f0e6d2; font-size: 15px; }
.dm-ref-hero small { display: block; color: #c3cdd8; font-size: 12px; line-height: 1.4; margin-top: 2px; }
.dm-ref-box { display: flex; flex-direction: column; gap: 4px; padding: 10px; background: rgba(0,0,0,.3); border: 1px solid #2a3442; }
.dm-ref-box label { font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.dm-ref-row { display: flex; gap: 6px; align-items: center; }
.dm-ref-row input { flex: 1; min-width: 0; padding: 6px 8px; background: rgba(0,0,0,.34); color: #d6dbe2; border: 1px solid #2a3442; font-size: 12px; }
.dm-ref-code { flex: 1; font-size: 22px; letter-spacing: 4px; color: var(--gold); text-shadow: 0 0 8px rgba(200,170,110,.3); }
.dm-ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dm-ref-stats > div { display: flex; flex-direction: column; align-items: center; padding: 8px; background: rgba(8,15,22,.6); border: 1px solid #2a3442; }
.dm-ref-stats b { font-size: 18px; color: #f0e6d2; }
.dm-ref-stats small { font-size: 10px; color: var(--muted); text-align: center; }
.auth-ref small { font-weight: 400; opacity: .75; font-size: 11px; }

/* ---- Comércio: diamantes ---- */
.market-row .p.pdm { color: #9fd0ff; text-shadow: 0 0 6px rgba(159,208,255,.35); }
.market-row .dmtext { color: #9fd0ff; }
.market-row.offer { background: linear-gradient(90deg, rgba(159,208,255,.08), transparent); }
.mk-dm-head { padding: 8px 10px; margin-bottom: 6px; background: linear-gradient(180deg, rgba(30,40,53,.5), rgba(11,17,26,.6)); border: 1px solid #2a3442; color: #f0e6d2; }
.mk-dm-head b { display: block; font-size: 13px; } .mk-dm-head small { display: block; font-size: 11px; color: #c3cdd8; line-height: 1.35; }
.mk-dm-sell { padding: 8px 10px; margin-bottom: 8px; background: var(--card); border: 1px solid #2a3442; font-size: 12px; }
.mk-dm-sell b { display: block; margin-bottom: 4px; } .mk-dm-sell input { padding: 2px 4px; } .mk-dm-sell small { display: block; margin-top: 4px; font-size: 10px; }
.row .btn.tiny.on { background: #c8aa6e; color: #1a1206; border-color: #e6cd8e; }

/* ---- buffs ativos no HUD (contagem regressiva) ---- */
#hud-buffs { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
#hud-buffs:empty { display: none; }
.hb { position: relative; height: 18px; border-radius: 4px; overflow: hidden; background: rgba(0,0,0,.3); border: 1px solid #2a3442; font-size: 11px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.hb-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #2a5bc0, #9fd0ff); opacity: .45; transition: width .25s linear; }
.hb.item .hb-fill { background: linear-gradient(90deg, #ff8a2a, #ffd23a); }
.hb.ending .hb-fill { opacity: .8; animation: hb-blink .5s steps(2) infinite; }
@keyframes hb-blink { 50% { opacity: .3; } }
.hb-n, .hb-t { position: relative; z-index: 1; color: #f0e6d2; text-shadow: 0 1px 0 rgba(0,0,0,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-t { font-variant-numeric: tabular-nums; margin-left: 6px; color: #fff; }
.ab-list { display: flex; flex-direction: column; gap: 3px; }
.ab-row { display: grid; grid-template-columns: 18px 28px 1fr; gap: 6px; align-items: center; padding: 4px 8px; background: var(--card); border: 1px solid var(--panel-border); font-size: 12px; cursor: pointer; }
.ab-row.on { border-color: #e0a030; } .ab-row.none { opacity: .7; }
.ab-row .n b { display: block; } .ab-row .n small { display: block; color: var(--muted); font-size: 10px; }
/* consumível na barra de poderes */
#hotbar .hk.item { border-color: #c0782a; }
#hotbar .hk .qty { position: absolute; right: 2px; bottom: 0; font-size: 9px; color: #7a4a10; font-weight: 800; background: rgba(255,248,234,.85); border-radius: 4px; padding: 0 2px; }
#hotbar .hk.item.none .qty { color: #c02020; }

/* ---- Convidar amigos (modal) ---- */
.inv-hero { display: flex; gap: 12px; align-items: center; padding: 10px 12px; margin: 6px 0 10px; background: linear-gradient(180deg, rgba(30,40,53,.5), rgba(11,17,26,.6)); border: 1px solid #2a3442; color: #f0e6d2; }
.inv-ico { font-size: 34px; line-height: 1; }
.inv-hero b { display: block; font-size: 14px; } .inv-hero small { display: block; font-size: 12px; color: #c3cdd8; line-height: 1.35; }
.inv-label { display: block; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.inv-row { display: flex; gap: 6px; align-items: stretch; }
.inv-row input { flex: 1; min-width: 0; padding: 8px 10px; font-size: 13px; font-weight: 700; border: 2px solid #2a3442; background: rgba(0,0,0,.34); color: #d6dbe2; }
.inv-share { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.inv-share .btn { text-decoration: none; }
.inv-wa { background: linear-gradient(#5fd66a, #25a244) !important; color: #fff !important; border-color: #8fe68f !important; }
.inv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.inv-stats > div { display: flex; flex-direction: column; align-items: center; padding: 6px; background: var(--card); border: 1px solid #2a3442; }
.inv-stats b { font-size: 16px; } .inv-stats small { font-size: 10px; color: var(--muted); }

/* ---- espiar (admin) ---- */
.spec-head { padding: 6px 8px; background: var(--card); border: 1px solid var(--panel-border); margin-bottom: 6px; font-size: 13px; }
.spec-eqs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.spec-eq { display: grid; grid-template-columns: 24px 1fr; gap: 6px; align-items: center; font-size: 12px; padding: 3px 6px; background: var(--card); border: 1px solid var(--panel-border); }
.spec-eq small { display: block; font-size: 10px; }
.spec-log { max-height: 220px; overflow: auto; font-size: 11px; background: var(--card); border: 1px solid var(--panel-border); padding: 4px 8px; line-height: 1.4; }
.spec-log .bad { color: #ff7a7a; } .spec-log .up { color: #8fd65f; }
#spec-banner { position: fixed; top: 8px; right: 12px; background: #5a1a3a; color: #ffd0e4; border: 2px solid #ff8fb8; border-radius: 10px; padding: 6px 14px; font-weight: 800; z-index: 30; box-shadow: 0 4px 12px rgba(0,0,0,.4); animation: hb-blink 1.2s steps(2) infinite; }

/* ---- Códex ---- */
.codex-sum { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 8px; }
/* Forja do Códex (entregas) */
.forge-list { display: flex; flex-direction: column; gap: 6px; }
.forge-row { padding: 6px 8px; background: var(--card); border: 1px solid var(--panel-border); border-left: 4px solid #999; font-size: 12px; }
.forge-row.common { border-left-color: #d8d8d8; } .forge-row.uncommon { border-left-color: #7be07b; } .forge-row.rare { border-left-color: #6aa8ff; } .forge-row.epic { border-left-color: #d67aff; } .forge-row.legendary { border-left-color: #e0c084; }
.forge-row .t { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .forge-row .t b { font-size: 13px; } .forge-row .stars { margin-left: auto; letter-spacing: 1px; color: #666; } .forge-row .stars .on { color: #e0c084; }
.forge-row .bar { margin: 4px 0; height: 12px; } .forge-row .bar .fill { background: linear-gradient(90deg, #ff9a3a, #ff5a3a); }
.forge-pick { max-height: 46vh; overflow: auto; display: flex; flex-direction: column; gap: 3px; }
.forge-item { display: flex; align-items: center; gap: 6px; padding: 3px 6px; background: var(--card); border: 1px solid var(--panel-border); border-radius: 6px; cursor: pointer; font-size: 12px; } .forge-item small { margin-left: auto; font-size: 10px; text-align: right; }
.codex-list { display: flex; flex-direction: column; gap: 4px; }
.codex-row { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: center; padding: 5px 8px; background: var(--card); border: 1px solid var(--panel-border); font-size: 12px; }
.codex-row .pic { width: 52px; height: 52px; display: grid; place-items: center; background: radial-gradient(circle at 50% 85%, rgba(140,220,120,.35), rgba(0,0,0,0) 70%); border-radius: 8px; overflow: hidden; }
.codex-row .pic .mob-ico, .codex-row .pic img { background-repeat: no-repeat; image-rendering: pixelated; transform-origin: center; }
.codex-row .body { min-width: 0; }
.codex-row.on { border-color: #e0a030; }
.codex-row .n { display: flex; align-items: center; gap: 8px; }
.codex-row .stars span { color: #4a4a5a; font-size: 13px; } .codex-row .stars span.on { color: var(--gold); text-shadow: 0 0 6px rgba(255,215,0,.5); }
.codex-row .cyc { font-size: 10px; color: #ff8fb8; font-weight: 800; margin-left: auto; }
.codex-row .bar { position: relative; height: 6px; background: rgba(0,0,0,.3); border: 1px solid #2a3442; margin: 4px 0 2px; }
.codex-row .bar .fill { height: 100%; background: linear-gradient(90deg, #ff8a2a, #ffd23a); }
.codex-row small { font-size: 10px; }

/* ---- Tutorial "faça de verdade": o destaque deixa o clique passar e o jogo continua jogável ---- */
#modal.tut-free { pointer-events: none; }
#modal.tut-free .modal-card { pointer-events: auto; width: min(420px, 92vw); }
.map-card.locked { cursor: help; }                       /* trancado responde ao clique dizendo o que falta */
.tut-page { min-height: 0; }
.tut-count { font-size: 11px; font-weight: 800; letter-spacing: .8px; color: var(--muted); margin-bottom: 2px; }
.tut-goal { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(200,170,110,.12); border: 1px solid rgba(200,170,110,.55); font-size: 13px; color: #f0e6d2; }
.tut-goal i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ffe08a; box-shadow: 0 0 8px rgba(255,224,138,.8); animation: tut-goal 1.1s ease-in-out infinite; }
@keyframes tut-goal { 0%, 100% { opacity: .45; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.tut-nav { margin-top: 12px; justify-content: space-between; align-items: center; }
.tut-links { display: flex; gap: 4px 14px; flex-wrap: wrap; justify-content: flex-end; }
.tut-link { border: 0; background: none; padding: 4px 2px; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.tut-link:hover { color: var(--ink); }
.tut-skip { text-align: right; margin-top: 4px; }

/* ---- Loja: quanto falta para o VIP + o pacote que cobre ---- */
.dm-need { margin: 6px 0; padding: 7px 10px; background: rgba(200,170,110,.12); border: 1px solid var(--gold); font-size: 12.5px; }
.dm-pack.cover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 14px rgba(200,170,110,.45); }
.dm-pack.cover .btn { animation: cta-breathe 1.8s ease-in-out infinite; }
@keyframes cta-breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.22); } }

/* ---- Janelas e pop-ups entram com um pulinho (uma animação só para todas) ---- */
#windows .win { animation: win-in .22s cubic-bezier(.22, 1, .36, 1); }
#modal:not(.hidden) .modal-card { animation: modal-in .24s cubic-bezier(.2, .9, .3, 1.2); }
#modal.tut .modal-card { animation: none; }               /* no tutorial o cartão troca de passo sem pular */
@keyframes win-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes modal-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #windows .win, #modal .modal-card, .tut-goal i, .dm-pack.cover .btn { animation: none !important; } }
@media (max-width: 760px), (pointer: coarse) and (max-width: 1024px) { .tut-link { padding: 8px 4px; font-size: 13px; } #windows .win .win-title::before, #windows .win .win-title::after { display: none; } }   /* janela em tela cheia: as gemas ficariam cortadas na borda */

/* ---- painéis de 03/10 (dungeon, missões, armazém) no tema atual: mesmas cartas, bordas e cores do resto da interface ---- */
.dg-member, .dg-open, .dg-loot div, .dq, .stor-row, .dg-focus { background: var(--card); color: var(--ink); border: 1px solid var(--raised); outline: none; }
.dg-member.me { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(255,214,106,.3) inset; }
.dg-member.off { opacity: .55; } .dg-member.dead .n b { color: #ff8a8a; }
.dg-member .n small, .dg-open .muted, .dq small, .stor-row .n small, .stor h4, .dg-card small, .dg-card .muted, .dq-chest small { color: var(--muted); }
.dg-member select, .stor-row .btn.tiny { font-size: 11px; }
.dg-focus { border-color: var(--gold); }
.dq.done { border-color: var(--teal); box-shadow: 0 0 0 1px rgba(10,200,185,.25) inset; } .dq.claimed { opacity: .5; }
.dq .bar .fill { background: linear-gradient(180deg, #ffe680 0%, #ffcf3a 45%, #f0b71e 55%, #c8901a 100%); }
.dg-card, .dq-chest { background: var(--card); color: var(--ink); border: 1px solid rgba(153,117,48,.45); }
.dg-card h3 { color: var(--gold-bright); border-bottom: 1px solid var(--raised); padding-bottom: 3px; }
.dg-rules div { background: var(--card2); border: 1px solid var(--raised); } .dg-rules b { color: var(--ink); }
.dq-chest b, .dg-timer { color: var(--gold-bright); }
.dg-wave { background: var(--card2); color: var(--ink); border: 1px solid var(--raised); }
.dg-prog { background: #0a0f16; border: 1px solid rgba(0,0,0,.65); } .dg-prog i { background: linear-gradient(180deg, #ffe680 0%, #ffcf3a 45%, #f0b71e 55%, #c8901a 100%); }
.dg-why { color: var(--gold); }
.map-card.dungeon { background: var(--card); color: var(--ink); border-color: rgba(153,117,48,.6); }
.map-card.dungeon .body b { color: var(--gold-bright); } .map-card.dungeon .body small { color: var(--muted); }
.dg-head { background: var(--hud); border: 1px solid rgba(153,117,48,.45); box-shadow: 0 4px 14px rgba(0,0,0,.45); color: #cdd6e0; }
.dg-head .t { color: var(--gold-hi); } .dg-head .t.low { color: #ff8a8a; }
.dg-head .st { color: #8a93a0; } .dg-head .st b { color: var(--gold-hi); }
.dg-head .mem i { background: #0a0f16; } .dg-head .boss { color: var(--gold-bright); }
#bottombar button#btn-party.in-dg { background: var(--card2); border-color: var(--gold); color: var(--gold-bright); }
.sac-head.mini, .dg-head.mini { padding: 2px 8px; }
.prim-grid .slot { background: var(--card); border-color: var(--raised); color: var(--ink); }
.stor-list, .dg-loot { scrollbar-width: thin; }

/* ---- amigos ---- */
.fr-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; margin-bottom: 4px; background: var(--card); color: var(--ink); border: 1px solid var(--raised); font-size: 12px; }
.fr-row.off { opacity: .62; } .fr-row.on { border-color: rgba(126,200,106,.35); }
.fr-row .fr-ava { width: 18px; text-align: center; flex: none; }
.fr-row .n { flex: 1; min-width: 0; } .fr-row .n b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fr-row .n small { color: var(--muted); display: block; }
.fr-row .acts { display: flex; gap: 4px; flex: none; }
.fr-row .pname { cursor: pointer; } .fr-row .pname:hover { text-decoration: underline; color: var(--gold-bright); }
.off-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5a6472; vertical-align: middle; }

/* ---- comércio: anúncio com preço em ouro E em diamantes ---- */
.market-row .p.mk-prices { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.market-row .p.mk-prices small { font-size: 9px; font-weight: 400; color: var(--muted); }
.market-row .p .pdm, .market-row .p.mk-prices .pdm { color: #9fd0ff; text-shadow: 0 0 6px rgba(159,208,255,.35); }
.mk-buy2 { display: flex; flex-direction: column; gap: 2px; }
.mk-buy2 .btn.tiny { padding: 1px 6px; font-size: 10px; white-space: nowrap; }
.market-row .p.mk-two { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; } .market-row .p.mk-two small { font-size: 10px; font-weight: 400; }
.market-row.mk-sell .n { display: flex; flex-direction: column; gap: 2px; }
.market-row .mk-qty { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }
.market-row .mk-total { color: var(--muted); font-size: 11px; } .market-row .mk-total b { color: var(--gold-bright); }

/* ---- arena 1x1 ---- */
.ar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; margin: 6px 0; background: var(--card); border: 1px solid var(--gold); }
.lg-card { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lg-big { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--lg) 35%, #0a141c), #0a141c 75%); border: 2px solid var(--lg); box-shadow: 0 0 10px color-mix(in srgb, var(--lg) 55%, transparent); flex: none; }
.lg-info { min-width: 0; } .lg-info b { font-size: 15px; display: block; } .lg-info small { display: block; color: var(--muted); font-size: 11px; }
.lg-bar { height: 6px; background: #1b2834; border: 1px solid rgba(0,0,0,.6); margin: 3px 0; width: 160px; max-width: 100%; } .lg-bar .fill { height: 100%; }
.lg-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 10px; border: 1px solid var(--lg); color: var(--lg); font-size: 10px; font-weight: 800; background: color-mix(in srgb, var(--lg) 12%, transparent); white-space: nowrap; }
.lg-badge.big { font-size: 12px; padding: 3px 9px; }
.lg-ladder { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.lg-hours { font-size: 12px; padding: 6px 8px; margin: 4px 0; border: 1px solid var(--raised); background: var(--card); } .lg-hours small { display: block; color: var(--muted); font-size: 10px; } .lg-hours.on { border-color: rgba(126,200,106,.6); } .lg-hours.off { border-color: rgba(224,71,91,.6); }
.lg-prize { font-size: 11px; padding: 6px 8px; margin: 4px 0 6px; background: color-mix(in srgb, var(--gold) 12%, var(--card)); border: 1px solid var(--gold); line-height: 1.4; }
/* ---- 💠 Relíquia: aprimoramento ---- */
.rl-empty { text-align: center; padding: 18px 10px; } .rl-empty .rl-big-ico { margin: 0 auto 8px; font-size: 30px; }
.rl-pick { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.rl-chip { display: inline-flex; align-items: center; gap: 4px; font: 700 11px var(--font-ui, inherit); color: var(--ink); background: var(--card); border: 1px solid var(--raised); border-radius: 999px; padding: 3px 9px 3px 5px; cursor: pointer; }
.rl-chip.on { border-color: var(--lg); box-shadow: 0 0 8px color-mix(in srgb, var(--lg) 60%, transparent); color: var(--lg); } .rl-chip small { opacity: .7; }
.rl-hero { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--lg); background: radial-gradient(circle at 18% 50%, color-mix(in srgb, var(--lg) 22%, transparent), transparent 55%), var(--card); box-shadow: inset 0 0 30px color-mix(in srgb, var(--lg) 12%, transparent); }
.rl-big-ico { width: 84px; height: 84px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--lg); background: radial-gradient(circle, color-mix(in srgb, var(--lg) 40%, #0a141c), #0a141c 72%); box-shadow: 0 0 18px color-mix(in srgb, var(--lg) 70%, transparent), 0 0 40px color-mix(in srgb, var(--lg) 30%, transparent); animation: rl-pulse 2.4s ease-in-out infinite; }
@keyframes rl-pulse { 0%, 100% { box-shadow: 0 0 14px color-mix(in srgb, var(--lg) 60%, transparent); } 50% { box-shadow: 0 0 26px color-mix(in srgb, var(--lg) 90%, transparent), 0 0 48px color-mix(in srgb, var(--lg) 35%, transparent); } }
.rl-info { flex: 1; min-width: 0; } .rl-info > b { font-size: 16px; display: block; } .rl-info > small { color: var(--muted); display: block; font-size: 11px; }
.rl-level { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 4px; } .rl-level .n { font-size: 13px; } .rl-level .n b { font-size: 24px; color: var(--lg); } .rl-level .n small { color: var(--muted); }
.rl-max { font-size: 11px; font-weight: 900; color: var(--gold-hi); letter-spacing: 1px; }
.rl-segs { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.rl-seg { position: relative; height: 16px; background: #1b2834; border: 1px solid rgba(0,0,0,.6); overflow: hidden; } .rl-seg i { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--lg) 80%, #fff), var(--lg)); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.rl-seg.on i { transform: scaleX(1); } .rl-seg.cur i { box-shadow: 0 0 10px var(--lg); animation: rl-shine 1.6s ease-in-out infinite; } .rl-seg span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: rgba(255,255,255,.75); }
@keyframes rl-shine { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.45); } }
.rl-xp { position: relative; height: 18px; margin: 6px 0 4px; background: #101a26; border: 1px solid rgba(0,0,0,.7); border-radius: 999px; overflow: hidden; }
.rl-xp i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--lg) 55%, #fff), var(--lg)); box-shadow: 0 0 12px var(--lg); transition: width .6s ease; }
.rl-xp i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); background-size: 200% 100%; animation: rl-sweep 2.2s linear infinite; }
@keyframes rl-sweep { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.rl-xp span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; }
.rl-feed { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 8px 0; background: var(--card); border: 1px solid var(--raised); } .rl-feed .n { flex: 1; min-width: 0; } .rl-feed .n b { display: block; } .rl-feed .n small { color: var(--muted); font-size: 11px; } .rl-feed .acts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.rl-trail { display: grid; grid-template-columns: 1fr; gap: 4px; }   /* 12/10: uma coluna (as 10 etapas de 30 em 30 não cabiam em duas) */
.rl-step { display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: var(--card); border: 1px solid var(--raised); opacity: .55; } .rl-step.done { opacity: 1; border-color: color-mix(in srgb, var(--gold) 50%, transparent); } .rl-step.cur { opacity: 1; border-color: var(--gold-hi); box-shadow: 0 0 8px color-mix(in srgb, var(--gold-hi) 45%, transparent); }
.rl-step .dot { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; background: #1b2834; border: 1px solid var(--raised); flex: none; } .rl-step.done .dot { background: var(--gold); color: #1a1208; border-color: var(--gold); }
.rl-step .t { min-width: 0; } .rl-step .t b { font-size: 12px; display: block; } .rl-step .t small { color: var(--muted); font-size: 10px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .rl-trail { grid-template-columns: 1fr; } .rl-hero { flex-direction: column; text-align: center; } .rl-level { justify-content: center; gap: 10px; } }
.lg-queue { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; margin: 6px 0; background: var(--card); border: 1px dashed var(--gold); }
.lg-queue .btn { font-size: 14px; padding: 8px 18px; }
.ar-head small { display: block; color: var(--muted); font-size: 11px; }
.ar-fights { text-align: center; line-height: 1; } .ar-fights b { font-size: 22px; color: var(--gold-bright); display: block; } .ar-fights small { font-size: 10px; color: var(--muted); }
.ar-bars { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 6px 0; }
.ar-side b { display: block; } .ar-side small { color: var(--muted); font-size: 11px; }
.ar-vs { font: 800 14px/1 var(--mono, monospace); color: var(--gold-bright); min-width: 40px; text-align: center; }
.ar-log { max-height: 220px; overflow: auto; background: var(--card); border: 1px solid var(--raised); padding: 6px 8px; font-size: 11px; line-height: 1.5; }
.ar-log .ar-l { white-space: pre-wrap; } .ar-log .ar-l.a { color: #8fd0ff; } .ar-log .ar-l.b { color: #ffb0a0; } .ar-log .ar-l.s { color: var(--gold-bright); font-weight: 700; }
.ar-end { margin-top: 6px; padding: 6px 8px; background: var(--card2); border: 1px solid var(--gold); text-align: center; }

/* Troca P2P (janela 💱): duas colunas de oferta, estado travado/confirmado e a bolsa embaixo */
.trade-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.trade-status { font-size: 12px; padding: 6px 8px; border-radius: 8px; background: var(--card); border: 1px dashed rgba(200,170,110,.5); margin-bottom: 8px; }
.trade-status.ready { border-style: solid; border-color: #7bd06a; background: rgba(123,208,106,.12); }
.trade-cols .trade-side { border: 1px solid rgba(200,170,110,.35); border-radius: 10px; padding: 6px; background: rgba(0,0,0,.04); }
.trade-cols .trade-side.locked { border-color: #c8a24e; background: rgba(200,162,78,.10); }
.trade-cols .trade-side.confirmed { border-color: #7bd06a; background: rgba(123,208,106,.12); }
.trade-cols .trade-side h4 { margin: 0 0 4px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.trade-list { max-height: 28vh; }
.trade-gold { margin-top: 6px; font-size: 13px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
/* vidas da Orbe na barra da Boss Arena */
#dungeon-bar .dg-head .lives { font-weight: 800; color: #ff7a8a; margin-left: 4px; } #dungeon-bar .dg-head .lives.low { color: #ff3a3a; animation: prim-glow 1s ease-in-out infinite; }
/* U31 (25/10): Boss Arena com até 30 chefes. O relógio e as vidas ficam fixos à esquerda, os chefes vão em resumo e a vida de cada um
   abre ao toque, numa lista que quebra linha (e rola) dentro da faixa. No celular a faixa desce para baixo do painel com a barra de
   Vida (--ba-top, medido pelo dungeonBar); no PC fica no meio, sem passar das laterais. A lista se chama .ba-chefes: .ba-list já é a
   lista de drops do Mapa (em coluna, mais abaixo), e o nome repetido escondia chefes no celular (revisão da Agulha no #134). */
#dungeon-bar.ba { top: var(--ba-top-pc, 52px); max-width: min(720px, var(--ba-maxw, max(260px, calc(100vw - 620px)))); }   /* abaixo do aviso do servidor aberto */
#dungeon-bar.ba .dg-head { white-space: normal; flex-wrap: wrap; row-gap: 2px; border-radius: 14px; }
#dungeon-bar.ba .ba-fix { display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; }
#dungeon-bar.ba .st, #dungeon-bar.ba .ba-sum { white-space: nowrap; }
#dungeon-bar.ba .ba-sum { color: var(--gold-bright, #ffd23a); cursor: pointer; } #dungeon-bar.ba .ba-sum.none { cursor: inherit; } #dungeon-bar.ba .ba-sum i { font-style: normal; opacity: .8; }
#dungeon-bar.ba .ba-chefes { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; padding: 4px 10px; max-height: 96px; overflow-y: auto; border-radius: 10px; background: var(--hud, #2a1a12); border: 1px solid rgba(153,117,48,.45); font-size: 11px; font-weight: 700; }
#dungeon-bar.ba .ba-chefes .boss { color: var(--gold-bright, #ffd23a); white-space: nowrap; }
@media (max-width: 760px) { #dungeon-bar.ba { top: var(--ba-top, 44px); left: 6px; right: 6px; transform: none; max-width: none; } }
.trade-acts { display: flex; gap: 6px; justify-content: center; margin: 10px 0; }
.trade-bag { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 0 4px; font-size: 12px; color: var(--muted); }
.trade-bag input { padding: 3px 6px; border: 1px solid #c8b090; border-radius: 6px; width: 160px; font-size: 12px; }
@media (max-width: 700px) { .trade-cols { grid-template-columns: 1fr; } }
/* Relíquia: 50 níveis — segmentos finos, marcos destacados, resumo da trilha */
.rl-segs .rl-seg.ms i { box-shadow: 0 0 0 1px var(--gold-hi) inset; }
.rl-gained { font-size: 12px; margin: 8px 0 4px; padding: 6px 8px; border-radius: 8px; background: rgba(154,216,255,.12); border: 1px solid rgba(154,216,255,.35); }
/* Boss Arena: lista do que cai, com chance (recolhível, uma coluna, com rolagem; nunca alarga o card) */
.map-card.dungeon .body { min-width: 0; overflow: hidden; }
.ba-list { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow: auto; margin-top: 4px; padding-right: 4px; scrollbar-width: thin; }
.ba-drop { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 6px; background: rgba(0,0,0,.05); min-width: 0; }
.ba-drop span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ba-drop b { color: var(--gold-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* negritos dentro do texto dos cards não quebram linha */
.map-card .body small b { display: inline; }
/* selo de Essência de Relíquia nos cards do Mapa */
.map-card .body small.ess-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 1px 6px; border-radius: 6px; background: rgba(154,216,255,.14); border: 1px solid rgba(154,216,255,.4); color: #9ad8ff; font-size: 11px; }
.map-card .body small.ess-tag .icon { width: 14px; height: 14px; flex: none; }

.stor-row.sel { outline: 1px solid var(--accent, #7fb3ff); }
.stor-row input[type=checkbox] { margin: 0 2px 0 0; flex: none; }

/* ---------- Árvore de Talentos (20/10) ---------- */
.tal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.tal-pts { font-size: 14px; } .tal-pts b { font-size: 18px; color: var(--gold, #a07a2a); }
.tal-empty { text-align: center; padding: 18px 10px; }
.tal-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 4px 0 6px; }
.tal-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; border-radius: 10px; border: 2px solid var(--raised, #d8c8a8); background: var(--card); color: var(--ink); cursor: pointer; font: inherit; overflow: hidden; }
.tal-tab b { font-size: 13px; line-height: 1.1; } .tal-tab small { font-size: 11px; color: var(--muted); } .tal-tab .tal-bicon { font-size: 22px; line-height: 1; }
.tal-tab i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--gold, #c8a24e); }
.tal-tab:hover { border-color: var(--accent, #6a8ad8); } .tal-tab.on { border-color: var(--gold, #c8a24e); box-shadow: 0 0 0 2px rgba(200,162,78,.25) inset; }
.tal-bdesc { font-size: 12px; margin: 2px 0 8px; line-height: 1.35; }
.tal-list { display: flex; flex-direction: column; }
.tal-node { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; border: 2px solid transparent; background: var(--card); }
.tal-node .tal-lvl { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; background: rgba(0,0,0,.12); color: var(--ink); } .tal-node .tal-lvl small { font-weight: 600; font-size: 10px; opacity: .75; }
.tal-node .tal-body { flex: 1; min-width: 0; } .tal-node .tal-body b { display: block; font-size: 14px; line-height: 1.2; } .tal-node .tal-body small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.tal-node .tal-tag { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 1px 0 2px; } .tal-node .tal-tag.key { color: var(--gold, #a07a2a); }
.tal-node .tal-why { color: #b05a3a; margin-top: 3px; font-weight: 600; } .tal-node .tal-ok { color: #3a7a3a; margin-top: 3px; font-weight: 600; }
.tal-node .btn { flex: none; min-width: 58px; }
.tal-node.locked { opacity: .6; }
.tal-node.open { border-color: var(--accent, #6a8ad8); }
.tal-node.on { border-color: var(--gold, #c8a24e); } .tal-node.on .tal-lvl { background: var(--gold, #c8a24e); color: #1a1206; }
.tal-node.max .tal-lvl { background: var(--gold, #c8a24e); color: #1a1206; box-shadow: 0 0 10px var(--gold, #c8a24e); }
.tal-node.key { background: linear-gradient(135deg, rgba(200,162,78,.22), rgba(120,100,200,.14)); } .tal-node.key .tal-lvl { border: 2px solid var(--gold, #c8a24e); }
.tal-link { width: 3px; height: 10px; margin: 0 0 0 27px; background: rgba(0,0,0,.2); } .tal-link.on { background: var(--gold, #c8a24e); }
.skill .tal-mark { font-size: 11px; font-weight: 700; color: #3a7a3a; } .skill .tal-on { color: #3a7a3a; }

/* ---- aba Dungeons (27/10), estilo Throne and Liberty: lista à esquerda, a dungeon escolhida à direita com as dificuldades em abas ---- */
.tl-dg { display: grid; grid-template-columns: 180px 1fr; gap: 10px; align-items: start; }
.tl-list { display: grid; gap: 8px; }
.tl-item { position: relative; height: 76px; border-radius: 10px; overflow: hidden; border: 2px solid #4a3a30; cursor: pointer; background: #1a0e0a; }
.tl-item .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; filter: saturate(1.1); image-rendering: pixelated; }
.tl-item .t { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #ffe8c8; }
.tl-item .t b { display: block; font-size: 13px; } .tl-item .t small { font-size: 10px; color: #d8b8a0; }
.tl-item.sel { border-color: #ffb63a; box-shadow: 0 0 0 1px #ffb63a inset, 0 0 12px rgba(255,182,58,.35); } .tl-item.sel .bg { opacity: .85; }
.tl-detail { min-width: 0; }
.tl-banner { position: relative; height: 96px; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; image-rendering: pixelated; border: 2px solid #8a4a2a; }
.tl-banner .sh { position: absolute; inset: 0; padding: 8px 12px; background: linear-gradient(90deg, rgba(0,0,0,.8), rgba(0,0,0,.25)); color: #ffe8c8; display: flex; flex-direction: column; justify-content: flex-end; }
.tl-banner h3 { margin: 0; color: #ffb63a; font-size: 18px; text-shadow: 0 1px 2px #000; } .tl-banner small { font-size: 11px; color: #e8d0b8; }
.tl-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0; }
.tl-tier { border: 2px solid #4a3a30; border-radius: 8px; padding: 5px 4px; background: #1e1410; color: #d8b8a0; font-weight: 700; font-size: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tl-tier small { font-weight: 400; font-size: 10px; } .tl-tier.locked { opacity: .6; }
.tl-tier.on { color: #fff; border-color: #ffb63a; background: #3a2414; box-shadow: 0 0 10px rgba(255,182,58,.3); }
.tl-tier.dificil.on { border-color: #ff8a3a; } .tl-tier.abissal.on { border-color: #9a6aff; background: #1e1430; } .tl-tier.pesadelo.on { border-color: #ff4a4a; background: #2e1010; }
.tl-req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 6px 0; }
.tl-req div { background: rgba(255,255,255,.06); border-radius: 6px; padding: 4px 6px; font-size: 11px; color: #e8d0b8; } .tl-req b { display: block; font-size: 10px; color: #ffb63a; text-transform: uppercase; letter-spacing: .03em; }
.tl-gear { font-size: 11px; color: #ffd8a0; background: rgba(255,182,58,.08); border-left: 3px solid #ffb63a; border-radius: 4px; padding: 4px 8px; margin: 4px 0; }
.tl-h { font-weight: 700; color: #ffb63a; margin: 6px 0 4px; font-size: 13px; } .tl-h .muted { font-weight: 400; font-size: 11px; }
.tl-mons .pill { font-size: 11px; }
.tl-set .slot.other { opacity: .45; }
.tl-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px solid #4a3a30; }
@media (max-width: 700px) { .tl-dg { grid-template-columns: 1fr; } .tl-list { grid-template-columns: 1fr 1fr; } .tl-tiers { grid-template-columns: repeat(2, 1fr); } .tl-req { grid-template-columns: 1fr; } }

/* 27/10: aba Dungeons, Boss Arena — a lista das gemas do sorteio com o efeito de cada uma */
.tl-gems { margin: 4px 0; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; background: rgba(0,0,0,.18); font-size: 12px; }
.tl-gems summary { cursor: pointer; padding: 4px 8px; color: #cfd6ff; }
.tl-gems summary b { color: #ffb63a; }
.tl-gem { display: flex; align-items: center; gap: 6px; padding: 2px 8px 2px 14px; cursor: pointer; line-height: 1.3; }
.tl-gem:hover { background: rgba(255,255,255,.05); }
.tl-gem .icon { flex: none; }
.tl-gem .novo { color: #7cff9a; font-style: normal; font-size: 10px; border: 1px solid #7cff9a; border-radius: 4px; padding: 0 4px; margin-left: 4px; }
/* U33 (d): o aviso de reconexão (main.ts, reconnectPill): pequeno, no meio, logo acima da barra de baixo (o bottom vem do main.ts); não pega toque */
#net-pill { position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 8px; z-index: 6001; pointer-events: none;
  background: rgba(10,16,24,.92); color: #ffe8c8; border: 1px solid rgba(200,170,110,.6); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
/* ---- abas do chat (27/10): Geral, Clã e Privado ---- */
/* 29/10 (Samuel): as subabas seguem o padrão das abas da janela (#chatbox .tabs button: Batalha, Chat, Anúncios), menores por serem de segundo
   nível. A cor do canal fica só no ponto antes do nome (a mesma da linha da mensagem: verde no Clã, lilás no Privado); nada de fundo pastel. */
.chat-subtabs { display: flex; gap: 3px; padding: 4px 6px 2px; }
.chat-subtabs button { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; line-height: 1.2; padding: 2px 8px; border: 1px solid; border-color: var(--raised); border-radius: 4px; background: var(--card); color: #9aa6b3; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -1px 2px rgba(0,0,0,.3); }
.chat-subtabs button:hover { color: #cfd8e2; filter: brightness(1.08); }
.chat-subtabs button.on { border-color: var(--lit); color: var(--gold-hi); background: var(--card2); box-shadow: inset 0 -2px 0 #e8cd8d, inset 0 1px 0 rgba(255,255,255,.12), 0 0 6px rgba(232,205,141,.22); }
.chat-subtabs button::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #9aa6b3; }
.chat-subtabs button[data-chan="clan"]::before { background: #7bd06a; } .chat-subtabs button[data-chan="pm"]::before { background: #b48aff; }
.chat-subtabs .unread[hidden] { display: none; }   /* Vitrine no #123 (29/10): o inline-block passava por cima do hidden e o "0" ficava visível; o 💬 já tinha a regra */
.chat-subtabs .unread { display: inline-block; min-width: 14px; margin-left: 4px; padding: 0 4px; border-radius: 8px; background: #e04a4a; color: #fff; font-size: 9px; font-weight: 700; }
.log.view-clan .chat:not(.clan):not(.system) { display: none; } .log.view-pm .chat:not(.pm):not(.system) { display: none; }
#chat-chan { display: none; }
/* 29/10 (Samuel): na aba Privado, "Para:" com rótulo; o nome longo termina em … (inteiro no title) e a mensagem fica com o resto da linha */
.chat-form #chat-input { flex: 1 1 0; min-width: 0; }   /* base 0: a mensagem fica só com o que sobra depois do Para: */
.chat-form .chat-to { display: flex; align-items: center; gap: 2px; flex: 0 1 170px; min-width: 120px; margin: 0; padding: 0 0 0 7px; font-weight: 400; background: var(--field); border: 1px solid rgba(200,170,110,.3); border-radius: 4px; box-shadow: inset 0 2px 5px rgba(0,0,0,.5); }
.chat-form .chat-to > span { flex: none; color: var(--gold-hi); font-size: 11px; font-weight: 700; }
.chat-form .chat-to #chat-to { flex: 1 1 auto; min-width: 0; width: 100%; margin: 0; padding: 3px 6px 3px 3px; border: none; background: transparent; box-shadow: none; text-overflow: ellipsis; }
.chat-form .chat-to:focus-within { border-color: var(--teal); box-shadow: inset 0 2px 5px rgba(0,0,0,.5), 0 0 10px rgba(10,200,185,.3); }
/* celular: depois das regras de cima, para vencer pela ordem */
@media (max-width: 760px), (pointer: coarse) and (max-width: 1024px) {
  .chat-subtabs button { min-height: 26px; padding: 2px 9px; font-size: 11px; }   /* menores que as abas da janela (30 px) */
  .chat-form .chat-to { flex-basis: 136px; min-width: 108px; }
  .chat-form .chat-to #chat-to { min-height: 34px; }
}
/* 28/10: janela do mapa — peça do conjunto da sua classe na lista de drops */
.drops-list .drop.mine { background: rgba(255, 214, 90, .08); border-radius: 4px; }
.drops-list .drop.mine span { color: #ffe6a0; }

/* ---- dica do item: a peça em cada raridade (27/10) ---- */
.tt-rar { border-collapse: collapse; font-size: 10px; margin: 2px 0; width: 100%; }
.tt-rar th { font-weight: 600; color: #9aa4b8; text-align: right; padding: 0 4px; } .tt-rar th:first-child { text-align: left; }
.tt-rar td { text-align: right; padding: 1px 4px; color: #d8d8e0; white-space: nowrap; } .tt-rar td:first-child { text-align: left; font-weight: 700; }
.tt-rar td:last-child { white-space: normal; max-width: 160px; font-size: 9px; color: #b8c0d0; }
.tt-rar tr.cur td { background: rgba(255,255,255,.08); border-radius: 4px; }
/* 1/11 (Miguel): roleta do baú das Brechas, no estilo de abrir caixa do CS:GO */
.roul-view { position: relative; overflow: hidden; width: 100%; height: 132px; border: 2px solid var(--panel-border); border-radius: 10px; background: rgba(0,0,0,.18); margin: 6px 0; }
.roul-strip { position: absolute; left: 0; top: 8px; display: flex; gap: 6px; will-change: transform; }
.roul-card { flex: 0 0 96px; width: 96px; height: 112px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 4px 4px 0; border: 1px solid var(--panel-border); border-radius: 8px; background: var(--card); color: var(--ink); }
.roul-card .roul-job { font-size: 10px; font-weight: 700; line-height: 1.1; text-align: center; }
.roul-card .roul-name { font-size: 10px; line-height: 1.1; text-align: center; max-height: 22px; overflow: hidden; }
.roul-card .roul-bar { width: 100%; height: 5px; border-radius: 0 0 6px 6px; background: #ffd23a; }
.roul-card.final { border-color: #ffd23a; box-shadow: 0 0 14px #ffd23a99; }
.roul-mark { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: #ffd23a; z-index: 2; box-shadow: 0 0 8px #ffd23a; }
.roul-mark::before, .roul-mark::after { content: ''; position: absolute; left: -5px; border-left: 6px solid transparent; border-right: 6px solid transparent; }
.roul-mark::before { top: 0; border-top: 8px solid #ffd23a; } .roul-mark::after { bottom: 0; border-bottom: 8px solid #ffd23a; }
.roul-tag { font-size: 12px; text-align: center; min-height: 16px; }
/* 1/11 (Miguel): na dica do baú, as peças que podem sair, por classe */
.chest-list { display: grid; grid-template-columns: 1fr; gap: 1px 0; margin-top: 2px; }
.chest-row { display: flex; align-items: center; gap: 3px; font-size: 11px; white-space: nowrap; line-height: 20px; }
#tooltip .chest-row b, .chest-row b { display: inline-block; width: 70px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }   /* o #tooltip b é block por padrão */
.chest-row .icon { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; }
/* 2/11 (Miguel): abertura mais viciante — tique visual, flash, LENDÁRIO!, confete, carta pulsando */
.roul-card.pass { transform: translateY(-3px); border-color: #ffd23a; }
.roul-card.final { animation: roul-pulse .9s ease-in-out infinite alternate; }
@keyframes roul-pulse { from { transform: scale(1.04); box-shadow: 0 0 10px #ffd23a88; } to { transform: scale(1.12); box-shadow: 0 0 26px #ffd23a; } }
.roul-flash { position: absolute; inset: 0; background: radial-gradient(circle, #ffd23acc 0%, #ffd23a00 70%); opacity: 0; pointer-events: none; z-index: 3; }
.roul-flash.on { animation: roul-flash .9s ease-out forwards; }
@keyframes roul-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.roul-burst { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.2); font-weight: 900; font-size: 30px; color: #ffd23a; text-shadow: 0 0 6px #000, 0 0 18px #ffd23a; opacity: 0; pointer-events: none; z-index: 4; letter-spacing: 2px; }
.roul-burst.on { animation: roul-burst 1.6s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes roul-burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } 60% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }
.roul-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.roul-confetti i { position: absolute; top: 40%; width: 7px; height: 11px; border-radius: 2px; opacity: 0; animation: roul-confetti 1.9s ease-out forwards; }
@keyframes roul-confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), 120px) rotate(var(--rot)); } }
