.screen-backroom { padding: 0; overflow: hidden; }
.backroom .wallbg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 45% at 50% 55%, rgba(255,190,110,.10), transparent 70%); pointer-events: none; z-index: 1; }
.br-st > div:not(.tag) { position: absolute; }
.br-notag > .br-tag { display: none; }
.br-st:hover > div:not(.tag) canvas, .br-st:hover > div:not(.tag) > .fb {
  filter: drop-shadow(var(--S, 3px) 0 0 var(--accent)) drop-shadow(calc(var(--S, 3px) * -1) 0 0 var(--accent)) drop-shadow(0 var(--S, 3px) 0 var(--accent)) drop-shadow(0 calc(var(--S, 3px) * -1) 0 var(--accent));
}
.br-st:hover .br-disc { filter: drop-shadow(var(--S, 3px) 0 0 var(--accent)) drop-shadow(calc(var(--S, 3px) * -1) 0 0 var(--accent)) drop-shadow(0 var(--S, 3px) 0 var(--accent)) drop-shadow(0 calc(var(--S, 3px) * -1) 0 var(--accent)); }
.br-tag { white-space: nowrap; }
.br-npc { z-index: 0; }
.br-desk-art { z-index: 1; }
.br-auctioneer { z-index: 0; }
.br-podium { z-index: 1; }
.br-merchant { z-index: 1; animation: brlurk 3.2s infinite steps(1); }
@keyframes brlurk { 0%, 100% { translate: 0 0; } 50% { translate: 0 var(--S); } }
.br-lantern { z-index: 2; }
.br-lantern-glow { position: absolute; left: 50%; top: 60%; width: calc(var(--S) * 44); height: calc(var(--S) * 44); translate: -50% -50%; background: radial-gradient(closest-side, rgba(109,255,154,.35), transparent); opacity: 0; transition: opacity .6s; pointer-events: none; }
.br-market.open .br-lantern-glow { opacity: 1; animation: throb 1.8s infinite; }
.br-disc-wrap { z-index: 1; }
.br-disc { display: block; }
.br-wheel.ready .br-disc { animation: brspin 9s linear infinite; }
@keyframes brspin { to { rotate: 1turn; } }
.br-stand { z-index: 0; }
.br-pointer { z-index: 2; }
.br-desk.busy .br-desk-art::after { content: ''; position: absolute; right: calc(var(--S) * 8); top: calc(var(--S) * -4); width: calc(var(--S) * 3); height: calc(var(--S) * 3); background: #f2c23a; box-shadow: 0 0 0 var(--S) var(--ink); animation: throb 1s infinite; }
.br-lamp { position: absolute; }
.br-bal { position: absolute; left: 18px; top: 16px; display: flex; align-items: center; gap: 8px; padding: 8px 14px 10px; z-index: 4; }
.br-bal .num { margin-right: 8px; }
.fb-econ-forge, .fb-econ-desk, .fb-econ-podium, .fb-econ-auction_board, .fb-econ-wheel_stand, .fb-econ-curtain, .fb-econ-strongbox { background: linear-gradient(#5a3a1e, #3a2412); }
.fb-econ-curtain { background: linear-gradient(90deg, #5a1414, #8a2020 50%, #5a1414); }
.fb-econ-trader_a, .fb-econ-trader_b, .fb-econ-trader_c, .fb-econ-trader_d, .fb-econ-trader_e, .fb-econ-merchant, .fb-econ-auctioneer, .fb-econ-lantern, .fb-econ-wheel_pointer { opacity: 0; }

.dust, .forge-keys { display: inline-flex; align-items: center; gap: 5px; }
.dust-pip, .key-pip { display: inline-block; width: 12px; height: 12px; background: #8fe3ff; box-shadow: 0 0 0 2px var(--ink); }
.key-pip { background: #f2c23a; }
.forge { display: flex; flex-direction: column; gap: 16px; }
.forge-head { display: flex; align-items: center; gap: 16px; }
.forge-titles { display: flex; flex-direction: column; gap: 8px; }
.forge-bal { display: flex; align-items: center; gap: 8px; padding: 8px 14px 10px; font-size: 18px; }
.forge-bal .forge-keys { margin-left: 12px; }
.forge-tabs { display: flex; gap: 8px; }
.forge-body { display: flex; flex-direction: column; gap: 14px; min-height: 320px; }
.forge-note { margin: 0; }
.forge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; max-height: 46vh; overflow-y: auto; padding: 6px; }
.forge-grid .card { cursor: pointer; }
.forge-dust { display: flex; justify-content: flex-end; padding: 0 8px 6px; font-size: 13px; color: #8fe3ff; }
.forge-bar { display: flex; align-items: center; gap: 10px; }
.forge-sel { display: flex; align-items: center; gap: 6px; }
.forge-filters { display: flex; flex-direction: column; gap: 8px; }
.forge-filters .chips { flex-wrap: wrap; }
.forge-recipes, .forge-stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; max-height: 50vh; overflow-y: auto; padding: 6px; }
.forge-stickers { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.forge-h { margin: 6px 0 0; }
.recipe { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; box-shadow: inset 4px 0 0 0 var(--rc); }
.recipe.sticker { grid-template-columns: 60px 1fr auto; }
.recipe-art { display: flex; align-items: center; justify-content: center; min-height: 44px; }
.recipe-name { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; min-width: 0; }
.recipe-base { font-size: 12px; }
.recipe-name > div { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recipe.poor .recipe-art, .recipe.poor .recipe-name { opacity: .55; }
.forge-made { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.keys-row { display: flex; gap: 26px; align-items: center; }
.keys-art { flex: none; }
.keys-text { display: flex; flex-direction: column; gap: 12px; }
.keys-text h3, .keys-text p { margin: 0; }
.keys-odds { display: flex; flex-wrap: wrap; gap: 10px; }
.keys-odd { display: inline-flex; align-items: center; gap: 6px; }
.keys-worth { display: flex; align-items: center; gap: 6px; }
.keys-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.keys-grand { margin-top: 22px; padding-top: 22px; border-top: 2px dashed var(--line); }
.keys-grand.locked .keys-art { filter: grayscale(1) brightness(.6); }
.strongbox-fb, .forge-fb { width: 96px; height: 78px; background: linear-gradient(#5a3a1e, #3a2412); }
.polish { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.polish-grid { max-height: 52vh; grid-template-columns: repeat(auto-fill, 150px); justify-content: center; }
.polish-bench { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.polish-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; font-size: 14px; }
.polish-what { display: flex; flex-direction: column; gap: 4px; }
.polish-change { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.polish-delta { display: flex; align-items: center; gap: 6px; min-height: 24px; font-size: 18px; }
.polish-delta.up { color: #6dff9a; }
.polish-delta.down { color: #ff7a6a; }
