/* Destruitor Idle — Santuario de Imbuements e Forja (forja.js), no formato das janelas do Huntera.
   Usa as cores do app.css (--gold, --line, --dim...) e a moldura de ouro .gp-ic do loja.css. */

/* ---- botoes da barra de baixo ---- */
.g .cb.fj-cb { display: inline-flex; align-items: center; gap: 5px; }
.fj-cb-ic { width: 15px; height: 15px; flex: none; color: #e0af68; }

/* ---- janela (as duas) ---- */
.fj-win {
  position: fixed; z-index: 22; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(880px, calc(100vw - 16px)); max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px);
  display: flex; flex-direction: column; background: #10131d; border: 1px solid #3a4258; border-radius: 8px; box-shadow: 0 20px 60px #000c;
  color: var(--txt); font-size: 13.5px;
}
.fj-win.fj { width: min(820px, calc(100vw - 16px)); }
.fj-win.arrastando { opacity: .92; user-select: none; }
.fj-h { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #2c3346; background: #151a29; border-radius: 8px 8px 0 0; cursor: grab; touch-action: none; }
.fj-h > b { color: var(--gold-2); text-transform: uppercase; letter-spacing: .06em; font-size: 13.5px; white-space: nowrap; }
.fj-sub { color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fj-h .grow { flex: 1; }
.g .fj-h button { width: 28px; height: 28px; flex: none; border-radius: 5px; color: var(--dim); background: transparent; border: 0; }
.g .fj-h button:hover { background: #262b3c; color: var(--txt); }
.g .fj-h .fj-help { border: 1px solid #3a4258; font-weight: 800; color: #e0af68; }
.fj-gold { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 3px 7px; border-radius: 6px; background: #121624; border: 1px solid #2a3044; font-weight: 700; font-variant-numeric: tabular-nums; }
.fj-gold .gp-ic { width: 18px; height: 18px; }
.fj-note { margin: 10px 4px; color: var(--dim); font-size: 13px; }
.fj-note.small { margin: 2px 0 8px; font-size: 12px; }
.fj-hint { color: var(--dim); font-size: 12px; }
.fj-svg { width: 16px; height: 16px; flex: none; }
.fj-miss { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #c0392b; color: #fff; font: 900 10px/1 system-ui, sans-serif; margin-right: 4px; flex: none; }
.g .fj-win .btn { border: 1px solid var(--line); background: var(--panel-2); }
.g .fj-win .btn.primary, .g .fj-confirm .btn.primary { background: var(--gold); border-color: var(--gold); color: #1d1606; }
.g .fj-win .btn:disabled { opacity: .45; cursor: default; }
.g .fj-confirm .btn.danger { background: #5a1f1c; border-color: #8a3a33; color: #ffd6cf; }

/* recursos (gold, dust, sliver, core) */
.fj-res { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; position: relative; }
.fj-res img { width: 26px; height: 26px; image-rendering: pixelated; }
.fj-res .gp-ic { width: 22px; height: 22px; }
.fj-res-sliver { background: radial-gradient(circle, #7ad3ff55 0 35%, transparent 60%); border-radius: 50%; }
.fj-res-core { background: radial-gradient(circle, #ffb34766 0 35%, transparent 62%); border-radius: 50%; }
.fj-res-dust { border-radius: 50%; background: radial-gradient(circle at 50% 55%, #c9a7ff55 0 38%, transparent 65%); }
.fj-res-dust i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #e4d2ff; box-shadow: 0 0 6px #b48cff; }
.fj-res-dust i:nth-child(1) { left: 6px; top: 13px; }
.fj-res-dust i:nth-child(2) { left: 12px; top: 6px; width: 6px; height: 6px; }
.fj-res-dust i:nth-child(3) { left: 16px; top: 15px; width: 4px; height: 4px; }

/* icone de um imbuement: a cor da linha e o tier */
.imb-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 6px; background: radial-gradient(circle at 35% 30%, #ffffff33, transparent 55%), var(--c); box-shadow: inset 0 0 0 1px #0008, 0 0 8px color-mix(in srgb, var(--c) 45%, transparent); }
.imb-ic b { font: 800 9.5px/1 system-ui, sans-serif; color: #10131d; letter-spacing: -.02em; }

/* confirmacao */
.fj-cbg { position: fixed; inset: 0; z-index: 30; background: #0008; }
.fj-confirm { position: fixed; z-index: 31; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 24px)); padding: 16px;
  background: #141826; border: 1px solid #3a4258; border-radius: 8px; box-shadow: 0 16px 40px #000c; display: flex; flex-direction: column; gap: 8px; }
.fj-confirm b { color: var(--gold-2); font-size: 15px; }
.fj-confirm p { margin: 0; color: #d6d9e2; font-size: 13px; line-height: 1.45; }
.fj-cbtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ================= santuario ================= */
.imb-cols { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); min-height: 0; flex: 1; }
.imb-gear { overflow-y: auto; padding: 8px; border-right: 1px solid #222838; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.imb-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 8px; padding: 7px; border-radius: 7px; background: #121624; border: 1px solid #262c3e; }
.imb-item-icon { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; background: #0b0e16; border: 1px solid #2c3346; grid-row: span 2; }
.imb-it-ic { width: 34px; height: 34px; image-rendering: pixelated; }
.imb-item-icon em { position: absolute; right: 2px; bottom: 0; font: 700 10px/1 system-ui; color: #fff; text-shadow: 0 1px 2px #000; font-style: normal; }
.imb-item-info { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.imb-item-info strong { font-size: 13px; color: #f3ead2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imb-where { flex: none; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8fb0ff; }
.imb-item-slots { display: flex; flex-wrap: wrap; gap: 4px; }
.g .imb-slot { position: relative; display: inline-flex; align-items: center; gap: 5px; min-width: 0; flex: 1 1 74px; max-width: 100%; padding: 4px 6px 7px; border-radius: 5px;
  background: #0d1019; border: 1px dashed #3a4258; color: var(--dim); font-size: 11.5px; text-align: left; overflow: hidden; }
.g .imb-slot:hover { border-color: var(--gold); }
.g .imb-slot.selected { border-style: solid; border-color: var(--gold-2); background: #1d1a12; color: #f3ead2; }
.g .imb-slot.filled { border-style: solid; border-color: #3a4258; color: #e8e6df; }
.imb-slot .imb-ic { width: 20px; height: 20px; border-radius: 5px; }
.imb-slot .imb-ic b { font-size: 8px; }
.imb-slot-mark { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; border: 1px dashed #4a5470; font-weight: 800; }
.imb-slot-cap { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.imb-slot-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imb-slot-time { font-size: 10px; color: var(--dim); font-variant-numeric: tabular-nums; }
.imb-slot-bar { position: absolute; left: 4px; right: 4px; bottom: 2px; height: 3px; border-radius: 2px; background: #1c2130; overflow: hidden; }
.imb-slot-bar span { display: block; height: 100%; background: #5fbf6b; }
.imb-slot.low .imb-slot-bar span { background: #d9534f; }
.imb-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.imb-detail { flex: 1 1 auto; overflow-y: auto; padding: 10px 12px; min-height: 120px; }
.imb-pane-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.imb-pane-head strong { text-transform: uppercase; letter-spacing: .08em; color: var(--gold-2); font-size: 12.5px; }
.imb-pane-head span { color: #f3ead2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imb-pane-slot { margin-left: auto; flex: none; color: var(--dim) !important; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.imb-offers { display: flex; flex-direction: column; gap: 4px; }
.g .imb-line { display: grid; grid-template-columns: 26px 110px minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; text-align: left;
  background: #121624; border: 1px solid #262c3e; color: var(--txt); }
.g .imb-line:hover:not(:disabled) { border-color: var(--gold); }
.g .imb-line.selected { border-color: var(--gold-2); background: #1d1a12; }
.g .imb-line:disabled { opacity: .5; cursor: default; }
.imb-offer-name { font-weight: 700; color: #f3ead2; }
.imb-offer-desc { color: #c9cfdc; font-size: 12px; }
.imb-active { padding: 10px; border-radius: 7px; background: #121624; border: 1px solid #2c3346; }
.imb-active-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.imb-active-head strong { color: #f3ead2; }
.imb-active p { margin: 0; color: #c9cfdc; font-size: 12.5px; }
.imb-dock { border-top: 1px solid #222838; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; background: #0e111a; border-radius: 0 0 8px 0; }
.imb-dock-head { display: flex; align-items: center; gap: 8px; min-height: 26px; }
.imb-dock-head strong { color: #f3ead2; font-size: 14px; }
.imb-chance { margin-left: auto; color: var(--dim); font-size: 12px; }
.imb-ph { color: var(--dim); font-size: 13px; }
.imb-ph.boxed { display: block; width: 100%; padding: 12px; text-align: center; border: 1px dashed #2c3346; border-radius: 6px; }
.imb-tier-tabs, .imb-pay-tabs { display: flex; border: 1px solid #2c3346; border-radius: 6px; overflow: hidden; }
.imb-tier-tabs { width: 100%; }
.g .imb-tier-tab, .g .imb-pay-tab { flex: 1; padding: 6px 10px; background: #121624; color: var(--dim); border: 0; font-weight: 700; font-size: 12.5px; }
.g .imb-tier-tab + .imb-tier-tab, .g .imb-pay-tab + .imb-pay-tab { border-left: 1px solid #2c3346; }
.g .imb-tier-tab.selected, .g .imb-pay-tab.selected { background: var(--gold); color: #1d1606; }
.imb-pay { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.imb-risk { display: inline-flex; align-items: center; color: #ffcf8a; font-weight: 700; font-size: 12.5px; }
.imb-risk.sure { color: #9be3a6; }
.imb-mats { display: flex; flex-wrap: wrap; gap: 6px; }
.imb-mat { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 3px; border-radius: 6px; background: #121624; border: 1px solid #2c3346; }
.imb-mat-ic { width: 30px; height: 30px; image-rendering: pixelated; }
.imb-mat-n { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.imb-mat.missing { border-color: #6a2e2a; }
.imb-mat.missing .imb-mat-n { color: #ff8a7a; }
.imb-protect { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; background: #121624; border: 1px solid #2c3346; cursor: pointer; font-size: 12.5px; width: fit-content; }
.imb-protect.on { border-color: #3c7a46; background: #13241a; color: #9be3a6; }
.imb-protect input { accent-color: #6fc07a; width: 15px; height: 15px; margin: 0; }
.imb-dock-note { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.imb-hint { color: var(--dim); }
.fj-status.ok, .fj-status-line .ok { color: #9be3a6; }
.fj-status.failed, .fj-status-line .failed { color: #ff9a8a; }
.imb-confirm { display: flex; justify-content: flex-end; }
.imb-confirm .btn { min-width: 170px; }
.g .imb-remove { background: transparent !important; border-color: #6a2e2a !important; color: #ffb4aa; }
.imb-gauge { height: 6px; border-radius: 3px; background: #1c2130; overflow: hidden; }
.imb-gauge span { display: block; height: 100%; background: #5fbf6b; }
.imb-gauge.low span { background: #d9534f; }

/* ================= forja ================= */
.fj-tabs { display: flex; gap: 4px; padding: 8px 10px 0; border-bottom: 1px solid #222838; overflow-x: auto; scrollbar-width: none; }
.fj-tabs::-webkit-scrollbar { display: none; }
.g .fj-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0;
  background: transparent; color: var(--dim); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.g .fj-tab:hover:not(:disabled) { color: var(--txt); }
.g .fj-tab.selected { color: var(--gold-2); background: #151a29; border-color: #2c3346; box-shadow: inset 0 -2px var(--gold); }
.g .fj-tab:disabled { opacity: .45; cursor: default; }
.fj-cols { display: grid; grid-template-columns: minmax(230px, 270px) minmax(0, 1fr); min-height: 0; flex: 1; overflow: hidden; }
.fj-cols:has(> .fj-convs), .fj-cols:has(> .fj-hist) { grid-template-columns: minmax(0, 1fr); }
.fj-inv { display: flex; flex-direction: column; min-height: 0; padding: 8px; border-right: 1px solid #222838; }
.fj-inv-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 6px; }
.fj-inv-h strong { font-size: 12.5px; color: #f3ead2; }
.fj-inv-h span { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.fj-gear { overflow-y: auto; display: flex; flex-direction: column; gap: 5px; min-height: 0; flex: 1; }
.fj-inv-note { margin: 6px 2px 0; color: var(--dim); font-size: 11.5px; }
.g .fj-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 8px; align-items: center; padding: 6px; border-radius: 7px; text-align: left;
  background: #121624; border: 1px solid #262c3e; color: var(--txt); }
.g .fj-item:hover { border-color: var(--gold); }
.g .fj-item.selected { border-color: var(--gold-2); background: #1d1a12; }
.fj-item-icon { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; background: #0b0e16; border: 1px solid #2c3346; grid-row: span 2; }
.fj-item-icon img { width: 34px; height: 34px; image-rendering: pixelated; }
.fj-item-info { display: flex; flex-direction: column; min-width: 0; }
.fj-item-info strong { font-size: 13px; color: #f3ead2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fj-item-meta { font-size: 11px; color: var(--dim); }
.fj-item-role { font-size: 11px; color: #9be3a6; }
.fj-tier-badge { position: absolute; right: -4px; top: -4px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(#f0c46a, #c8902e); color: #1d1606; font: 800 10px/1 system-ui, sans-serif; box-shadow: 0 0 0 2px #10131d; }
.fj-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.fj-dock { flex: 1 1 auto; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.fj-dock-head { display: flex; flex-direction: column; gap: 2px; }
.fj-dock-head strong { color: #f3ead2; font-size: 14px; }
.fj-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 10px; text-align: center; color: var(--dim); }
.fj-empty strong { color: #f3ead2; }
.fj-empty-ic { width: 44px; height: 44px; color: #4a5470; }
.fj-bench h3, .fj-req h3 { margin: 0 0 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.fj-recipe { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px; border-radius: 8px; background: #0d1019; border: 1px solid #222838; }
.fj-stage { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; max-width: 130px; }
.fj-slot-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.fj-slot { position: relative; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 8px; background: radial-gradient(circle at 50% 40%, #2c3452 0%, #161b2c 62%, #0d1019 100%); border: 1px solid #7a6230; color: #4a5470; }
.fj-slot.empty { border-style: dashed; border-color: #3a4258; }
.fj-slot.preview { border-color: #b48cff; box-shadow: 0 0 14px #b48cff44; }
.fj-slot img { width: 52px; height: 52px; image-rendering: pixelated; }
.fj-slot .fj-svg { width: 30px; height: 30px; }
.fj-qtd { position: absolute; left: 3px; bottom: 1px; font: 700 10px/1 system-ui; color: #fff; text-shadow: 0 1px 2px #000; }
.fj-slot-name { font-size: 11.5px; color: #c9cfdc; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.fj-arrow { color: var(--gold-2); font-size: 22px; letter-spacing: -.1em; }
.fj-perk { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; font-size: 12px; color: #e0af68; }
.fj-perk.muted { color: var(--dim); }
.fj-req-h { display: flex; justify-content: space-between; align-items: baseline; }
.fj-req-h span { font-size: 11px; color: var(--dim); }
.fj-costs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fj-cost { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 7px; background: #121624; border: 1px solid #262c3e; min-width: 0; }
.fj-cost > div { display: flex; flex-direction: column; min-width: 0; }
.fj-cost > div > span { font-size: 11px; color: var(--dim); }
.fj-cost-n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fj-cost-n strong { color: #f3ead2; }
.fj-cost-n span { color: var(--dim); font-size: 11.5px; }
.fj-cost.short { border-color: #6a2e2a; }
.fj-cost.short .fj-cost-n strong { color: #ff8a7a; }
.fj-cost .fj-miss { position: absolute; right: 4px; top: 4px; }
.fj-odds { padding: 8px 10px; border-radius: 8px; background: #121624; border: 1px solid #262c3e; display: flex; flex-direction: column; gap: 6px; }
.fj-odds.boosted { border-color: #6b5626; }
.fj-odds-h { display: flex; justify-content: space-between; align-items: baseline; }
.fj-odds-h strong { font-size: 18px; color: var(--gold-2); }
.fj-meter { height: 6px; border-radius: 3px; background: #1c2130; overflow: hidden; }
.fj-meter span { display: block; height: 100%; background: linear-gradient(90deg, #c8902e, #f0c46a); }
.fj-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; }
.fj-toggle input { accent-color: #d8a64a; width: 15px; height: 15px; margin: 0; }
.fj-tcost { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.fj-tcost .fj-res { width: 20px; height: 20px; }
.fj-tcost .fj-res img { width: 20px; height: 20px; }
.fj-expl { margin: 0; font-size: 12px; color: var(--dim); }
.fj-submit { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid #222838; background: #0e111a; }
.fj-submit span { color: var(--dim); font-size: 12.5px; }
.fj-submit .btn { min-width: 130px; }
.fj-status-line { margin: 0; padding: 0 12px; min-height: 0; font-size: 12.5px; }
.fj-status-line:not(:empty) { padding: 6px 12px; border-top: 1px solid #222838; }
.fj-bal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px 10px; border-top: 1px solid #2c3346; background: #0c0f17; border-radius: 0 0 8px 8px; }
.fj-b { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 6px; border-radius: 6px; background: #121624; border: 1px solid #222838; }
.fj-b > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.fj-b small { color: var(--dim); font-size: 10.5px; }
.fj-b strong { font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* conversao */
.fj-convs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; overflow-y: auto; align-content: start; }
.fj-away { grid-column: 1 / -1; margin: 0; padding: 8px 10px; border-radius: 6px; background: #1d1a12; border: 1px solid #6b5626; color: #f0c46a; font-size: 12.5px; }
.fj-conv { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 8px; background: #121624; border: 1px solid #262c3e; }
.fj-conv-t { color: #f3ead2; font-size: 13.5px; }
.fj-conv-flow { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px; border-radius: 8px; background: #0d1019; border: 1px solid #222838; }
.fj-rslot { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: radial-gradient(circle at 50% 40%, #2c3452 0%, #161b2c 62%, #0d1019 100%); border: 1px solid #3a4258; }
.fj-rslot.out { border-color: #b48cff; }
.fj-rslot .fj-res { width: 34px; height: 34px; }
.fj-rslot .fj-res img { width: 34px; height: 34px; }
.fj-conv-n { font-variant-numeric: tabular-nums; }
.fj-conv-n.short { color: #ff8a7a; }
.fj-conv-arrow { color: var(--gold-2); }
.fj-conv-out { color: #c9a7ff; font-size: 12.5px; text-align: center; }
.fj-auto { display: flex; align-items: center; gap: 6px; padding-top: 6px; border-top: 1px solid #222838; font-size: 12px; }
.fj-auto-ic { width: 14px; height: 14px; color: var(--dim); }
.fj-auto-name { color: #c9cfdc; }
.fj-auto-info { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid #4a5470; color: var(--dim); font: 700 10px/1 Georgia, serif; cursor: help; }
.g .fj-switch { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px; border: 1px solid #3a4258; background: #0d1019; color: var(--dim); font: 800 10.5px/1 system-ui, sans-serif; }
.fj-lamp { width: 8px; height: 8px; border-radius: 50%; background: #4a5470; }
.g .fj-switch.on { border-color: #3c7a46; background: #13241a; color: #9be3a6; }
.fj-switch.on .fj-lamp { background: #3ccf6a; box-shadow: 0 0 6px #3ccf6a; }

/* historico */
.fj-hist { padding: 10px 12px; overflow-y: auto; }
.fj-hist-empty { color: var(--dim); text-align: center; padding: 30px 10px; }
.fj-hist-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fj-hist-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; background: #121624; border-left: 3px solid #4a5470; }
.fj-hist-row.won { border-left-color: #3ccf6a; }
.fj-hist-row.lost { border-left-color: #d9534f; }
.fj-hist-row.convert { border-left-color: #b48cff; }
.fj-hist-when { font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.fj-hist-what { display: flex; flex-direction: column; min-width: 0; }
.fj-hist-what strong { font-size: 12.5px; color: #f3ead2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fj-hist-what small { font-size: 11px; color: var(--dim); }
.fj-hist-cost { font-size: 11.5px; color: #e0af68; white-space: nowrap; }

/* resultado da fusao */
.fj-fusion { position: fixed; z-index: 32; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center;
  background: radial-gradient(circle at 50% 45%, #2a1f4acc 0%, #0b0d14f2 60%); }
.fj-fusion-h { display: flex; flex-direction: column; gap: 2px; }
.fj-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #b48cff; }
.fj-fusion h2 { margin: 0; color: #f3ead2; font-size: 22px; }
.fj-fusion p { margin: 0; color: #d6d9e2; max-width: 420px; }
.fj-rune { display: flex; gap: 40px; }
.fj-rune img { width: 64px; height: 64px; image-rendering: pixelated; animation: fjPulso 1.1s ease-in-out infinite alternate; }
.fj-rune img + img { animation-delay: .55s; }
@keyframes fjPulso { from { transform: translateY(0) scale(1); filter: brightness(1); } to { transform: translateY(-8px) scale(1.08); filter: brightness(1.7) drop-shadow(0 0 10px #b48cff); } }
.fj-out { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fj-out img { width: 80px; height: 80px; image-rendering: pixelated; filter: drop-shadow(0 0 14px #b48cff); }
.fj-fusion[data-outcome="failure"] .fj-out img { filter: grayscale(.6) brightness(.8); }
.fj-out strong { color: var(--gold-2); }
.fj-fusion-bonus { color: #9be3a6 !important; font-weight: 700; }
.fj-fusion-note { color: var(--dim) !important; font-size: 12.5px; }
.fj-fusion .btn { min-width: 140px; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .fj-rune img { animation: none; } }

/* guia */
.fj-guide { position: fixed; z-index: 31; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 16px)); max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column; background: #141826; border: 1px solid #3a4258; border-radius: 8px; box-shadow: 0 16px 40px #000c; }
.fj-guide > header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #2c3346; }
.fj-guide > header strong { color: var(--gold-2); }
.fj-guide > header span { color: var(--dim); font-size: 12px; margin-left: auto; }
.g .fj-guide > header button { width: 28px; height: 28px; border-radius: 5px; background: transparent; border: 0; color: var(--dim); }
.fj-guide-topics { display: flex; gap: 4px; padding: 8px 10px; overflow-x: auto; border-bottom: 1px solid #222838; }
.g .fj-guide-topics button { flex: none; padding: 5px 9px; border-radius: 99px; border: 1px solid #2c3346; background: #121624; color: var(--dim); font-size: 12px; }
.g .fj-guide-topics button.selected { border-color: var(--gold); color: var(--gold-2); }
.fj-guide-body { padding: 12px 14px; overflow-y: auto; }
.fj-guide-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #b48cff; }
.fj-guide-body h2 { margin: 2px 0 8px; font-size: 18px; color: #f3ead2; }
.fj-guide-body p { margin: 0 0 8px; color: #d6d9e2; }
.fj-guide-body ul { margin: 0; padding-left: 18px; color: #c9cfdc; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.fj-guide-ex { margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: #0d1019; border: 1px solid #222838; }
.fj-guide-ex strong { font-size: 12px; color: var(--gold-2); }
.fj-guide-ex p { margin: 4px 0 0; color: #e0af68; font-size: 12.5px; }
.fj-guide > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid #2c3346; }
.fj-guide > footer p { margin: 0; color: var(--dim); font-size: 11.5px; }
.fj-guide > footer div { display: flex; gap: 6px; flex: none; }

/* ficha do item (cartaoItem) */
.fj-cl { color: #c9cfdc; }
.fj-tier { color: #e0af68; }
.fj-tier.fj-t0 { font-weight: 700; }
.fj-imb { display: flex; align-items: center; gap: 6px; }
.fj-imb.vazio { color: var(--dim); }
.fj-pip { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; border: 1px solid #4a5470; background: transparent; }
.fj-imb:not(.vazio) .fj-pip { border-color: #0008; }
.fj-mat { color: #b48cff; }

/* loja: quantos gold tokens (Valiosos) */
.lj-qtd { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; }
.lj-qtd b { min-width: 34px; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }

/* ---- celular: as janelas ficam embaixo da barra de cima, na largura da tela, e arrastam para cima e para baixo ---- */
@media (max-width: 759px) {
  .fj-win, .fj-win.fj { left: 4px !important; right: 4px; width: auto; transform: none !important; top: var(--fjy, 50px);
    max-height: calc(100vh - var(--fjy, 50px) - 6px); max-height: calc(100dvh - var(--fjy, 50px) - 6px); }
  .fj-h { position: relative; padding: 11px 6px 7px 10px; }
  .fj-h::before { content: ''; position: absolute; left: 50%; top: 3px; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: #4a5470; }
  .fj-sub { display: none; }
  .imb-cols, .fj-cols { display: block; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .imb-gear { border-right: 0; border-bottom: 1px solid #222838; max-height: none; overflow: visible; }
  .imb-detail, .fj-dock, .fj-gear { overflow: visible; }
  .fj-inv { border-right: 0; border-bottom: 1px solid #222838; }
  .fj-gear { max-height: 190px; overflow-y: auto; }
  .fj-convs { grid-template-columns: minmax(0, 1fr); }
  .fj-costs { grid-template-columns: minmax(0, 1fr); }
  .fj-bal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g .imb-line { grid-template-columns: 26px minmax(0, 1fr); }
  .imb-offer-desc { grid-column: 2; }
  .imb-confirm .btn, .fj-submit .btn { min-width: 0; flex: 1; }
  .fj-hist-row { grid-template-columns: minmax(0, 1fr) auto; }
  .fj-hist-when { grid-column: 1 / -1; }
}
/* barra de baixo nas telas estreitas (375 px): Imbuements, Forja e Blessings so com o icone, botoes mais justos, e os 8
   cabem numa linha sem rolar */
@media (max-width: 420px) {
  .g .g-ctx { gap: 2px; padding: 0 2px; }
  .g .g-ctx .cb { padding: 0 4px; }
  .g .cb.fj-cb { padding: 0 6px; gap: 0; }
  .g .cb.fj-cb .cb-l, .g .cb.fj-cb .cb-s, .g .g-ctx .cb.bl .cb-s, .g .g-ctx .cb.gold .ti-xs { display: none; }
  .fj-cb-ic { width: 14px; height: 14px; }
}

/* ficha: bonus de skill (equipamento e imbuement), como o <em>+N</em> do Huntera */
.skills em.skb { color: #6fd56f; font-style: normal; font-weight: 700; margin-left: 2px; }
