/* Arsenal: catalogue on the left, the item and its crafting bench on the right (app.js renders the inside). */

.arsenal-page .page-head { margin-bottom: 28px; }
#snapshot:empty { display: none; }

.workspace { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 30px; align-items: start; }
.work-area { min-width: 0; }

/* ---------- catalogue ---------- */
.catalog { position: sticky; top: calc(var(--header-h) + 16px); min-width: 0; padding: 18px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.catalog-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.catalog-heading h2 { font-size: 24px; }
.catalog-heading > span { font: 500 12px var(--f-data); color: var(--ink-3); }
.search-label { display: block; margin-bottom: 12px; }
.search-label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.search-label input { display: block; width: 100%; }
.filters { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-bottom: 12px; }
.filters label, .family-filter { font: 500 11px/1.4 var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.filters select, .family-filter select { display: block; width: 100%; margin-top: 5px; padding: 7px 6px; font: 400 14px var(--f-body); letter-spacing: 0; text-transform: none; }
.family-filter { display: block; margin: 0 0 14px; }
.item-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: calc(100vh - 470px); min-height: 300px; overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.catalog-item { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: stretch; min-height: 172px; max-height: 188px; padding: 0; overflow: hidden; text-align: center; background: linear-gradient(150deg, var(--panel-2), var(--bg-deep)); border: 1px solid var(--line); border-radius: 4px; }
.catalog-item:hover:not(:disabled) { background: linear-gradient(150deg, #30291d, var(--bg-deep)); border-color: var(--gold-2); color: inherit; }
.catalog-item.active { border-color: var(--gold); background: radial-gradient(ellipse at 50% 30%, rgba(215, 180, 106, .2), var(--bg-deep) 78%); }
.catalog-item.active::after { content: ""; position: absolute; bottom: 0; left: calc(50% - 10px); width: 20px; height: 2px; background: var(--gold); }
.catalog-art { display: block; height: 108px; margin: 9px 14px 5px; filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .65)); }
.catalog-art:has(.memory-art) { margin: 4px 3px 5px; }
.catalog-art .item-image { width: 100%; height: 100%; padding: 3px; transform: rotate(var(--art-angle)); }
.catalog-art .memory-art { padding: 0; transform: none; }
.catalog-art img { height: 100%; max-width: 100%; object-fit: contain; }
.catalog-item-copy { display: block; padding: 0 7px 10px; }
.catalog-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--rarity); }
.catalog-item small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.rarity-mark { position: absolute; left: 8px; top: 8px; width: 4px; height: 4px; background: var(--rarity); transform: rotate(45deg); opacity: .85; }
.catalog-caption { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); }
.catalog > .wide { width: 100%; margin-top: 10px; }

/* ---------- guide and session ---------- */
.quick-guide { margin-bottom: 14px; padding: 0 18px; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.quick-guide > summary { cursor: pointer; padding: 14px 0; font-size: 16px; color: var(--ink); }
.quick-guide > summary > span { float: right; font: 500 12px var(--f-data); color: var(--gold); }
.quick-guide ol { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 34px; padding: 6px 0 4px 22px; font-size: 15px; line-height: 1.6; }
.quick-guide li::marker { color: var(--gold); }
.quick-guide dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.quick-guide dt { font-size: 15px; color: var(--gold); }
.quick-guide dd { margin: 3px 0 0; font-size: 14px; color: var(--ink-2); }
.quick-guide > button { margin: 2px 0 18px; }
.session-bar { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; font: 400 12.5px var(--f-data); color: var(--ink-3); }

/* ---------- item panel ---------- */
.item-panel { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.item-panel-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 18px; font: 500 12px var(--f-data); letter-spacing: .12em; color: var(--ink-3); background: linear-gradient(90deg, var(--panel-2), var(--panel)); border-bottom: 1px solid var(--line); }
.item-panel-actions { display: flex; align-items: center; gap: 8px; }
.item-panel-bar .subtle { padding: 5px 10px; font: 500 12px var(--f-data); letter-spacing: .06em; }
.item-panel-bar .icon-link { padding: 5px 8px; }
.item-panel-bar .icon-link svg { display: block; width: 15px; height: 15px; }
#mode-badge { letter-spacing: .04em; color: var(--ink-3); }
.item-showcase { display: grid; grid-template-columns: 43% minmax(0, 1fr); min-height: 390px; }
.item-stage { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; min-height: 390px; overflow: hidden; background: radial-gradient(ellipse at 45% 42%, rgba(215, 180, 106, .14), transparent 62%), var(--bg-deep); border-right: 1px solid var(--line); }
.item-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .45; background: linear-gradient(rgba(13, 13, 10, .83), rgba(20, 19, 13, .85)), url("../assets/ui/relief.png") 35% 40% / auto 115%; }
.item-stage::after { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(215, 180, 106, .16); pointer-events: none; }
.stage-caption { position: absolute; left: 27px; top: 24px; font: 500 11px var(--f-data); letter-spacing: .14em; color: var(--ink-3); }
.inspect-art { width: 72%; height: 300px; margin: 34px 0 50px; padding: 2px; background: none; border: 0; cursor: zoom-in; filter: drop-shadow(10px 15px 10px rgba(0, 0, 0, .65)); }
.inspect-art:hover:not(:disabled) { background: none; filter: drop-shadow(10px 15px 10px rgba(0, 0, 0, .65)) brightness(1.08); }
.inspect-art .item-image { width: 100%; height: 100%; overflow: visible; transform: rotate(var(--art-angle)); }
.inspect-art img { width: 100%; height: 100%; object-fit: contain; }
.stage-bottom { position: absolute; left: 27px; right: 25px; bottom: 23px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.socket-row { display: flex; gap: 10px; }
.socket { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #090a08; box-shadow: inset 0 0 5px #000; }
.socket::after { content: ""; position: absolute; inset: -2px; background: url("../assets/ui/socket-rim.png") center / contain no-repeat; pointer-events: none; }
.socket img { width: 25px; height: 25px; object-fit: contain; filter: drop-shadow(0 0 4px rgba(173, 156, 101, .35)); }
.inspect-link { padding: 5px 0; font-size: 13px; color: var(--gold); background: none; border: 0; }
.item-information { min-width: 0; padding: 30px 32px 22px; }
.item-type { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--rarity); }
.rarity-diamond { width: 5px; height: 5px; background: var(--rarity); transform: rotate(45deg); }
.item-type-separator { margin: 0 2px; color: var(--ink-3); }
.item-title { margin: 10px 0 16px; font: 400 clamp(28px, 2.3vw, 40px)/1.15 var(--f-display); color: var(--ink); }
.title-ornament { display: flex; align-items: center; gap: 7px; margin-bottom: 20px; font-size: 6px; color: var(--gold-2); }
.title-ornament::before { content: ""; width: 68px; height: 1px; background: var(--gold-2); }
.title-ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.state-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 12px; }
.state-badges:empty { display: none; }
.state-badge { padding: 3px 9px; font: 500 11.5px var(--f-data); letter-spacing: .05em; color: var(--ink-2); background: var(--bg-deep); border: 1px solid var(--line-2); border-radius: 999px; }
.state-badge.corrupt { color: #c9a0f0; border-color: #5b3a7a; background: #21162c; }
.state-badge.lock { color: #e0a060; border-color: #6b4a26; }
.state-badge.grade { color: var(--gold); border-color: var(--gold-line); }
.state-badge.unique { color: #e08a2e; border-color: #6d4418; }
.state-badge.awake { color: #9cc4f0; border-color: #34507a; }
.vitals { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-bottom: 14px; }
.vitals > div { padding-right: 22px; border-right: 1px solid var(--line); }
.vitals > div:last-child { padding-right: 0; border: 0; }
.vitals span { display: block; margin-bottom: 3px; font: 500 11px var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.vitals strong { font: 500 24px var(--f-data); color: var(--ink); white-space: nowrap; }
.vitals em { margin: 0 5px; font: normal 13px var(--f-body); color: var(--ink-3); }
.vitals .damage-stat strong { font-size: 28px; }
.base-stats { font-size: 15px; line-height: 1.8; color: #a8bad0; }
.base-stats small { margin-left: 6px; font-size: 12px; color: var(--ink-3); }
.item-affixes { min-height: 48px; margin-top: 15px; padding-top: 13px; font-size: 15px; border-top: 1px solid var(--line); }
.item-affixes p { margin: 0 0 3px; font-family: var(--f-fell); font-style: italic; color: var(--ink-2); }
.item-affixes > small { font-size: 13px; color: var(--ink-3); }
.hero-affix { display: flex; align-items: center; gap: 9px; margin: 4px 0; color: #d6bd8f; }
.hero-affix.suffix { color: #a4b9d0; }
.hero-affix.locked { color: #e0a060; }
.hero-affix > span { padding-right: 8px; font: 500 11px var(--f-data); color: var(--ink-3); border-right: 1px solid var(--line-2); }
.lock-mark { margin-left: 4px; padding: 1px 6px; font: normal 500 10.5px var(--f-data); letter-spacing: .06em; text-transform: uppercase; color: #e0a060; border: 1px solid #6b4a26; border-radius: 999px; }
.identity { margin-top: 15px; font-size: 13px; color: var(--ink-3); }
.identity summary { cursor: pointer; font: 500 12px var(--f-data); color: var(--ink-3); }
.identity p { margin: 5px 0; }
.identity code { overflow-wrap: anywhere; color: var(--ink-2); }
.configuration { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; background: var(--panel-2); border-top: 1px solid var(--line); }
.configuration-title { min-width: 120px; margin-right: auto; font-size: 14px; color: var(--ink); }
.configuration-title small { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.configuration label { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-3); }
.configuration select, .configuration input { height: 36px; padding: 6px 8px; font-size: 14px; }
.configuration input { width: 66px; }
.rule-strip { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 9px 18px; font: 400 12px var(--f-data); color: var(--ink-3); background: var(--bg-deep); border-top: 1px solid var(--line); }
.rule-strip span:first-child { color: var(--gold); }
.rule-strip span:last-child { margin-left: auto; }
.inspect-only { padding: 17px 25px; font-size: 15px; line-height: 1.75; color: var(--ink-2); border-top: 1px solid var(--line); }
.inspect-only p { margin: 10px 0; }

/* ---------- bench: affixes, materials, project ---------- */
.craft-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; margin-top: 26px; }
.craft-main { min-width: 0; }
.work-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.work-tabs button { min-height: 34px; padding: 6px 14px; font: 500 12.5px/1 var(--f-data); letter-spacing: .04em; color: var(--ink-2); background: transparent; border-radius: 999px; }
.work-tabs button.active { background: var(--gold); border-color: var(--gold); color: #1a160d; }
.work-tabs button span { margin-left: 6px; opacity: .75; }
.mod-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.segmented { display: flex; gap: 6px; }
.segmented button { padding: 4px 12px; font: 500 12px var(--f-data); color: var(--ink-3); background: none; border-radius: 999px; }
.segmented button.active { color: var(--ink); border-color: var(--gold); }
.check { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }
.check input { width: 14px; height: 14px; }
.tier-explanation { margin: 0 0 13px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.tier-explanation strong { color: var(--gold); }
#mods-list { max-height: 660px; overflow: auto; scrollbar-width: thin; border: 1px solid var(--line); border-radius: 6px; }
#mods-list .mod-row, #mods-list .affix-table-head { min-width: 680px; }
#mods-list .tiers, #mods-list .affix-table-head > div { grid-template-columns: repeat(var(--tier-columns, 5), minmax(44px, 1fr)); }
.affix-table-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 170px 1fr; gap: 8px; padding: 10px; font: 500 11.5px var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--panel); border-bottom: 1px solid var(--line); }
.affix-table-head > div { display: grid; text-align: center; }
.mod-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px; align-items: center; padding: 11px 9px; background: var(--bg); border-bottom: 1px solid var(--line); }
.mod-row:nth-child(odd) { background: var(--bg-deep); }
.mod-row.target-row { background: #282117; box-shadow: inset 2px 0 var(--gold); }
.mod-title { min-width: 0; }
.side-tag { display: block; margin-bottom: 3px; font: 500 11px var(--f-data); letter-spacing: .1em; color: var(--gold-2); }
.side-tag.suffix { color: #8eacbe; }
.mod-title > strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.coin-link { display: flex; align-items: center; gap: 6px; margin-top: 5px; padding: 0; font-size: 12.5px; line-height: 1.25; text-align: left; color: var(--ink-3); background: none; border: 0; }
.coin-link:hover:not(:disabled) { background: none; color: var(--gold); }
.coin-link img { width: 20px; height: 20px; object-fit: contain; }
.no-currency { display: block; margin-top: 5px; font-size: 12.5px; color: var(--ink-3); }
.tiers { display: grid; gap: 3px; }
.tier { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 9px 2px 7px; background: none; border: 1px solid transparent; }
.tier b { display: none; }
.tier strong { font: 500 14px var(--f-data); white-space: nowrap; color: var(--ink); }
.tier small { margin-top: 6px; font: 400 11.5px var(--f-data); color: var(--ink-3); }
.tier.locked { opacity: .43; }
.tier.selected { background: rgba(215, 180, 106, .16); border-color: var(--gold); }
.tier.selected strong { color: var(--gold-hi); }
.tier.concealed { visibility: hidden; }

.odds-panel { position: sticky; top: calc(var(--header-h) + 16px); background: var(--panel); border: 1px solid var(--line-2); border-top-color: var(--gold-2); border-radius: 6px; }
.panel-heading { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.odds-panel .panel-heading { display: block; }
.odds-panel h2 { margin-top: 5px; font-size: 26px; color: var(--ink); }
.odds-content { padding: 18px; }
.odds-content p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.odds-title { margin: 0 0 16px; font: 400 19px var(--f-display); color: var(--ink); }
.roll-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.roll-fields label { font-size: 13px; color: var(--ink-3); }
.roll-fields select, .roll-fields input { display: block; width: 100%; margin-top: 5px; padding: 7px; font-size: 14px; }
.odds-content .range-hint { margin: 8px 0 14px; font-size: 13px; color: var(--ink-3); }
.odds-number { margin: 22px 0 2px; font: 500 44px/1.1 var(--f-data); letter-spacing: -.02em; color: var(--gold); }
.odds-sub { font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.odds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; padding: 13px 0; border-block: 1px solid var(--line); }
.odds-grid strong { display: block; font: 500 23px var(--f-data); color: var(--ink); }
.odds-grid small { font-size: 12.5px; color: var(--ink-3); }
.current-roll { padding: 10px 0; font-size: 14px; color: var(--ink-2); border-block: 1px solid var(--line); }
.current-roll strong { color: var(--ink); }
.current-roll small { display: block; margin-top: 6px; font-size: 13px; }
.blocked-help { margin: 14px 0; padding: 12px; font-size: 14px; color: #d8b685; background: rgba(53, 40, 25, .5); border-left: 2px solid var(--gold-2); }
.blocked-help p { margin: 6px 0 10px; }
.blocked-help button { width: 100%; padding: 9px 7px; font-size: 14px; }
.blocked-help small { display: block; margin-top: 8px; font-size: 13px; color: #c0a788; }
.actions-stack { display: grid; gap: 8px; margin-top: 17px; }
.actions-stack button { min-height: 42px; font-size: 14.5px; }
.actions-stack small { margin: -2px 0 10px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.odds-content details { margin-top: 17px; padding-top: 13px; font-size: 14px; line-height: 1.6; color: var(--ink-3); border-top: 1px solid var(--line); }
.odds-content summary { cursor: pointer; }
.budget-help label { display: block; margin: 14px 0 10px; color: var(--ink-2); }
.budget-help input { display: block; width: 100%; margin-top: 6px; }
.budget-help > strong, #budget-chance { font: 500 21px var(--f-data); color: var(--gold); }
.wide { display: block; width: 100%; margin-top: 12px; }

.section-label { padding: 12px 0; font: 500 12px var(--f-data); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.currency-grid, .rune-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 13px; }
.material-option { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.material-option .material { flex: 1; width: 100%; border: 0; }
.material-option .material:disabled { opacity: .65; }
.material { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 15px 10px; text-align: center; font-size: 14px; background: var(--panel-2); border-color: var(--line); }
.material img { width: 62px; height: 59px; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .5)); }
.material small { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.material small.material-odds { margin-top: 8px; color: var(--gold-2); }
.material b { display: block; margin-top: 10px; font-size: 12.5px; color: var(--gold); }
.material-reason { margin: 0; padding: 9px 10px; font-size: 13px; line-height: 1.55; color: #9eac93; border-top: 1px solid var(--line); }
.material-reason.blocked { color: #ccb38c; background: #2d2518; }
.material-note { margin: 10px 0 17px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.memory-material-art { display: block; flex: none; width: 68px; height: 68px; margin: 0 auto 10px; background: radial-gradient(ellipse at 50% 65%, rgba(48, 40, 30, .5), #0b0b0a); box-shadow: inset 0 0 0 1px var(--line); }
.memory-material-art .memory-art, .memory-guide-art .memory-art { display: block; width: 100%; height: 100%; }
.memory-guide-art { display: inline-block; width: 30px; height: 30px; margin-right: 6px; vertical-align: middle; }
.selected-material { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.selected-material > p { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.text-button { padding: 0; color: var(--gold); text-decoration: underline; background: none; border: 0; }

.result-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.plan-block { padding: 15px 18px; border-bottom: 1px solid var(--line); }
.plan-block > small, .plan-block .cost-line { font-size: 13.5px; }
.mini-label { display: block; margin-bottom: 9px; font: 500 11px var(--f-data); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.affix-line { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 15px; color: #d6bd8f; }
.affix-line.suffix { color: #9eb4c7; }
.affix-line .t { font: 500 12px var(--f-data); color: var(--gold-2); white-space: nowrap; }
.remove { margin-left: auto; padding: 0 4px; line-height: 1; color: var(--ink-3); background: none; border: 0; }
.empty-slot { padding: 8px 0; font: italic 15px var(--f-fell); color: var(--ink-3); border-bottom: 1px dashed var(--line); }
.total-line { display: flex; justify-content: space-between; gap: 15px; margin: 6px 0; font-size: 15px; color: var(--ink-2); }
.total-line strong { color: var(--ink); }
.cost-line { margin: 8px 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.cost-line img { width: 23px; height: 23px; margin-right: 3px; object-fit: contain; vertical-align: middle; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px; }
.result-panel > .wide { width: calc(100% - 36px); margin: 0 18px 17px; }
.history-panel { margin-top: 18px; font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--line); }
.history-panel > summary { cursor: pointer; padding: 14px 0; }
.history-entry { padding: 12px 0; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.history-entry small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.quiet-copy, .quiet:not(button) { padding: 15px 0; font-size: 14px; line-height: 1.75; color: var(--ink-3); }

/* ---------- Relicários & coleções, Regras do jogo ---------- */
.future-heading { margin: 10px 0 20px; text-align: center; }
.future-heading h2 { margin-top: 9px; font-size: 34px; }
.future-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 24px 0 40px; }
.future-card { padding: 24px 20px 18px; background: radial-gradient(ellipse at center 35%, rgba(63, 52, 41, .3), var(--panel) 75%); border: 1px solid var(--line); border-radius: 6px; }
.future-card img { width: 100%; height: 200px; object-fit: contain; }
.future-card small { display: block; margin: 18px 0 9px; font: 500 11.5px var(--f-data); letter-spacing: .1em; color: var(--gold-2); }
.future-card h3 { margin-bottom: 10px; font-size: 24px; color: var(--ink); }
.future-card p { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.guide-box { max-width: 1020px; margin: 0 auto; padding: 10px clamp(18px, 3vw, 36px) 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.guide-box h2 { margin: 28px 0 14px; font-size: 28px; color: var(--gold); }
.guide-box p, .guide-box li { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.guide-box code { overflow-wrap: anywhere; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 11px 14px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.data-table th { font: 500 12px var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--panel-2); }
.rarity-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; vertical-align: middle; background: var(--rarity); transform: rotate(45deg); }
.guide-icon { width: 24px; height: 24px; margin-right: 6px; object-fit: contain; vertical-align: middle; }

/* ---------- notice and dialogs ---------- */
.notice-visible { position: fixed; right: 25px; bottom: 22px; z-index: 20; display: flex; align-items: center; gap: 15px; max-width: min(440px, calc(100vw - 30px)); margin: 0; padding: 13px 16px; font-size: 14px; color: var(--ink); background: var(--panel-2); border: 1px solid var(--gold-line); border-left: 3px solid var(--gold); border-radius: 4px; box-shadow: 0 8px 30px rgba(0, 0, 0, .6); }
.notice-visible span { flex: 1; }
.notice-visible button { flex-shrink: 0; margin-left: auto; padding: 0 3px; font-size: 20px; color: var(--ink-2); background: none; border: 0; }
.notice-error { color: #f0c4b2; border-color: #a46950; border-left-color: var(--blood-edge); background: #30201b; }
.project-io { padding: 20px; }
.project-io p, .project-io label { font-size: 14px; color: var(--ink-2); }
.project-io textarea { display: block; width: 100%; height: 310px; margin-top: 8px; padding: 14px; resize: vertical; font: 13px/1.5 var(--f-data); }
.project-io .plan-actions { padding: 15px 0 0; }
.button-link { display: inline-flex; align-items: center; padding: 8px 15px; border-radius: var(--radius); }
#art-dialog { width: min(950px, calc(100vw - 36px)); max-height: 95vh; overflow: hidden; background: var(--bg-deep); }
.art-dialog-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.art-dialog-top h2 { margin: 4px 0 0; font-size: 28px; }
#art-inspection { height: 65vh; max-height: 650px; overflow: auto; background: radial-gradient(ellipse, rgba(80, 72, 51, .3), var(--bg-deep) 70%); scrollbar-width: thin; }
.inspection-art { display: grid; place-items: center; width: 100%; height: 100%; min-width: 100%; min-height: 100%; padding: 28px 35px; }
.inspection-art .item-image, .inspection-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(10px 12px 8px rgba(0, 0, 0, .5)); }
.art-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 26px; font: 400 13px var(--f-data); color: var(--ink-3); border-top: 1px solid var(--line); }
.art-controls label { display: flex; align-items: center; gap: 15px; }
.art-controls input { width: 150px; padding: 0; }
.art-controls output { min-width: 36px; font-variant-numeric: tabular-nums; }

/* ---------- narrower screens ---------- */
@media (min-width: 1650px) {
  .workspace { grid-template-columns: 310px minmax(0, 1fr); gap: 34px; }
  .craft-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .item-stage { min-height: 420px; }
  .inspect-art { height: 330px; }
}
@media (max-width: 1230px) {
  .workspace { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
  .catalog-art { height: 96px; margin-inline: 10px; }
  .catalog-item { min-height: 162px; }
  .item-information { padding: 26px 22px; }
  .craft-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
  .currency-grid, .rune-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .future-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .item-list { grid-template-columns: 1fr; }
  .catalog-item { display: grid; grid-template-columns: 74px 1fr; align-items: center; min-height: 96px; max-height: 112px; text-align: left; }
  .catalog-art { height: 74px; margin: 9px 12px; }
  .catalog-item-copy { padding: 8px; }
  .catalog-item strong { min-height: 0; }
  .filters { grid-template-columns: 1fr; }
  .item-showcase { grid-template-columns: 41% minmax(0, 1fr); }
  .item-stage { min-height: 360px; }
  .inspect-art { height: 265px; }
  .rule-strip span:last-child { display: none; }
  .craft-layout { grid-template-columns: 1fr; }
  .odds-panel { position: static; }
}
@media (max-width: 760px) {
  .workspace { display: flex; flex-direction: column; gap: 20px; }
  .catalog { position: static; width: 100%; }
  .item-list { display: flex; gap: 9px; min-height: 0; max-height: 200px; overflow-x: auto; padding-bottom: 5px; }
  .catalog-item { display: flex; flex: 0 0 116px; min-height: 160px; max-height: 176px; text-align: center; }
  .catalog-art { flex-shrink: 0; width: 84px; height: 96px; margin: 10px auto 4px; }
  .catalog-caption { display: none; }
  .work-area { width: 100%; }
  .item-showcase { grid-template-columns: 1fr; }
  .item-stage { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .inspect-art { width: 62%; height: 230px; margin: 30px 0 40px; }
  .quick-guide > summary > span { display: none; }
  .quick-guide ol, .quick-guide dl { grid-template-columns: 1fr; }
  .configuration-title { flex: 1 0 100%; }
  .configuration-title br { display: none; }
  .selected-material { grid-template-columns: 1fr; gap: 12px; }
  .future-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
}
@media (max-width: 480px) {
  .vitals { gap: 10px 18px; }
  .vitals > div { padding-right: 12px; }
  .currency-grid, .rune-grid { gap: 6px; }
  .future-grid { grid-template-columns: 1fr; }
  #art-inspection { height: 56vh; }
  .affix-table-head { display: block; }
  .affix-table-head > div { display: none; }
  #mods-list .mod-row, #mods-list .affix-table-head { min-width: 0; }
  .mod-row { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 13px 10px; }
  .mod-title { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 45%); gap: 2px 10px; }
  .mod-title > .side-tag, .mod-title > strong { grid-column: 1; }
  .coin-link, .no-currency { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; }
  .tier b { display: block; margin-bottom: 5px; font: 400 11.5px var(--f-data); color: var(--ink-3); }
  .tier { padding: 6px 0; }
  .tier.locked { opacity: .55; }
}

/* Lamentos no catálogo do Arsenal */
.catalog-item.lament-row.rare { background: radial-gradient(ellipse at 50% 30%, rgba(232, 208, 106, .16), var(--bg-deep) 78%); }
.lament-stage-art { width: min(220px, 72%); height: auto; max-height: 280px; object-fit: contain; filter: drop-shadow(10px 16px 10px rgba(0, 0, 0, .6)); }
.lament-showcase .item-title { color: var(--rarity); }
.lament-sheet { margin: 4px 0 0; }
.lament-sheet dt { margin-top: 12px; font: 500 11.5px/1.4 var(--f-data); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.lament-sheet dd { margin: 3px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.lament-sheet ol { margin: 4px 0 0; padding-left: 20px; }
.lament-sheet small, .lament-open code { color: var(--ink-3); }
.lament-open { margin: 16px 0 0; }
.lament-open a { color: var(--gold); }
.lament-open code { margin-left: 8px; }
