/* The room fills only the game panel; the shared header and participant panel keep their owners. */
.theme-blacksmith .play-stage { isolation:isolate; background:#30241c; }
.theme-blacksmith .game-heading { position:relative; z-index:3; pointer-events:none; }
.theme-blacksmith .game-heading h1 { color:#fff0c9; text-shadow:0 2px 14px #160c06; }
.theme-blacksmith .game-heading>p { color:#dbb46c; }
.theme-blacksmith .result-banner { color:#e5d8bf; background:#20150db3; border-color:#d0ad6f44; }
.theme-blacksmith .primary-actions { position:relative; z-index:6; }
.theme-blacksmith .collection-countdown { z-index:7; top:135px; right:20px; }
.blacksmith-stage { position:absolute; z-index:0; inset:0; margin:0; }
.blacksmith-workshop,.blacksmith-scene { position:absolute; inset:0; overflow:hidden; }
.blacksmith-workshop::after { content:''; position:absolute; z-index:1; inset:0; pointer-events:none; background:linear-gradient(#160b0899,transparent 27%,transparent 70%,#160b08c9),linear-gradient(90deg,#160b0866,transparent 35%); }
.blacksmith-scene { background:#30241c; }
.blacksmith-blessing-words { display:none; position:absolute; z-index:0; inset:0; top:-250px; overflow:hidden; pointer-events:none; }
.blacksmith-workshop.is-blessing-scene .blacksmith-blessing-words { display:block; }
.blacksmith-blessing-words span { position:relative; display:block; left:-12%; width:124%; height:25px; white-space:pre; text-align:center; transform:rotate(-22deg); font:italic 900 clamp(15px,calc(1.25vw + 8px),24px)/25px Georgia,serif; letter-spacing:-.035em; color:transparent; background:linear-gradient(105deg,#8b5724 20%,#fffefa 48%,#a26426 72%); background-size:250% 100%; background-clip:text; opacity:0; animation:blacksmith-blessing-words ease-in-out infinite; }
@keyframes blacksmith-blessing-words { 0%,9%,25%,42%,64%,100% { opacity:.05; background-position:100% 50%; filter:drop-shadow(0 0 2px #ffe6a855); } 13%,19%,48%,54%,73%,79% { opacity:.42; background-position:5% 50%; filter:drop-shadow(0 0 12px #fff1c9); } }
@media(max-width:600px) { .blacksmith-blessing-words { top:-85px; } .blacksmith-blessing-words span { left:0; width:100%; height:18px; line-height:18px; font-size:14px; transform:rotate(-20deg); } }
.blacksmith-wall-label { position:absolute; width:30px; height:28px; padding:0; transform:translate(-50%,-50%); border:0; background:transparent; color:#fff1bf; font:700 18px 'Noto Sans KR',sans-serif; text-shadow:0 1px 3px #000; }
.blacksmith-hud { position:absolute; z-index:3; left:20px; bottom:16px; width:132px; padding:10px; border:1px solid #cfad6c44; border-radius:12px; background:#201710ce; color:#f4e6c8; box-shadow:0 6px 24px #0003; }
.blacksmith-left-rail { position:absolute; z-index:3; top:12px; bottom:16px; left:20px; width:154px; display:flex; flex-direction:column; gap:10px; pointer-events:none; }
.blacksmith-left-rail .blacksmith-hud { position:relative; left:auto; bottom:auto; flex:none; box-sizing:border-box; width:100%; margin-top:auto; }
.blacksmith-steps { display:grid; gap:8px; padding:0 0 10px; margin:0 0 8px; list-style:none; border-bottom:1px solid #c4a5692b; }
.blacksmith-steps li { display:flex; align-items:center; gap:8px; opacity:.4; font-size:11px; }
.blacksmith-step-number { display:grid; place-items:center; width:22px; height:22px; flex-shrink:0; border:1px solid #dfc49066; border-radius:50%; font-size:10px; }
.blacksmith-steps li.is-done { opacity:.65; }
.blacksmith-steps li.is-active { opacity:1; color:#ffdb83; }
.blacksmith-steps li.is-active .blacksmith-step-number { background:#b676292e; border-color:#f2cb71; box-shadow:0 0 14px #ffc95e24; }
.blacksmith-phase { margin:0; font-size:13px; line-height:1.4; }
.blacksmith-timer { display:block; margin-top:10px; color:#ffe3a2; font-size:22px; font-variant-numeric:tabular-nums; }
.blacksmith-instruction { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin:8px 0 0; color:#d1bea0; font-size:10px; line-height:1.7; }
.blacksmith-progress { margin:10px 0 0; color:#ffda8a; font-size:11px; line-height:1.5; font-variant-numeric:tabular-nums; }
.blacksmith-selection { position:absolute; z-index:3; top:150px; right:18px; width:256px; max-height:55%; overflow:auto; padding:12px; border:1px solid #cfad6c44; border-radius:12px; background:#201710c9; color:#f4e6c8; scrollbar-width:thin; scrollbar-color:#a58c6044 transparent; }
.blacksmith-selection-title { margin:0 0 10px; font-size:11px; color:#e9cc94; }
.blacksmith-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.blacksmith-card { min-width:0; padding:9px; border:1px solid #d2b47b33; border-radius:8px; background:#ffffff06; }
.blacksmith-card.is-failed { color:#97938c; background:#b0a79a08; }
.blacksmith-card.is-legendary { color:#ffe6a2; border-color:#f5d679; box-shadow:inset 0 0 16px #efd2731c; }
.blacksmith-card-title { display:flex; align-items:center; gap:7px; min-height:30px; }
.blacksmith-card-icon { display:none; }
.blacksmith-card-people { display:none; }
.blacksmith-card-title svg { width:24px; height:30px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; color:#ebca83; }
.blacksmith-card.is-failed svg { color:#9b9991; }
.blacksmith-card-title strong { display:block; font-size:11px; overflow-wrap:anywhere; }
.blacksmith-card-title small { display:block; margin-top:4px; font-size:10px; color:#c5bda9; }
.blacksmith-socket:is(button):hover,.blacksmith-socket:is(button):focus-visible { outline:2px solid #f5dc99; outline-offset:2px; background:#66512c; }
.blacksmith-sockets { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.blacksmith-socket { display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:36px; min-height:36px; padding:4px; border:1px solid #d8be77; border-radius:50%; background:#211b14; color:#fff1c6; }
button.blacksmith-socket { cursor:pointer; }
.blacksmith-socket strong { font-size:12px; }
.blacksmith-socket small { font-size:8px; color:#d4c5a4; }
.blacksmith-socket.is-failed { border-color:#827c6f; color:#a8a396; background:#7c756433; }
.blacksmith-socket.is-winning { border-color:#f9d66e; color:#fff2a7; box-shadow:0 0 16px #f8cf5544; }
.blacksmith-gear-state { color:#afa797; font-size:10px; }
.blacksmith-selected { margin:8px 0 0; font-size:10px; line-height:1.5; color:#eddaae; }
.blacksmith-impact-result { position:absolute; z-index:2; transform:translate(-50%,-100%); transform-origin:center bottom; color:#cec1ae; font:700 clamp(14px,2vw,24px) 'Noto Sans KR',sans-serif; text-shadow:0 2px 7px #000,0 0 12px #000; white-space:nowrap; pointer-events:none; }
.blacksmith-swing-arc { position:absolute; inset:0; z-index:2; width:100%; height:100%; pointer-events:none; mix-blend-mode:screen; }
.blacksmith-screen-flash { position:fixed; z-index:1000; inset:0; background:radial-gradient(circle at var(--blacksmith-impact-x,22%) var(--blacksmith-impact-y,61%),#fff 0%,var(--blacksmith-impact-color,#effaff) 24%,#fff9 65%,#fff6 100%); mix-blend-mode:screen; opacity:0; pointer-events:none; }
.blacksmith-screen-flash.is-explosion { background:radial-gradient(circle at var(--blacksmith-impact-x,22%) var(--blacksmith-impact-y,61%),#fff7c8 0%,#ffac5c 24%,#ff7a3333 65%,#ff632211 100%); }
.blacksmith-screen-flash.is-dark { background:radial-gradient(circle at var(--blacksmith-impact-x,22%) var(--blacksmith-impact-y,61%),#15161b 0%,#252730 24%,#25273099 65%,#25273044 100%); mix-blend-mode:multiply; }
.blacksmith-blessing-glow { position:absolute; z-index:4; inset:0; background:#f6d88499; opacity:0; pointer-events:none; transition:opacity .35s ease-out; }
.blacksmith-blessing-glow.is-active { opacity:1; }
.blacksmith-workshop.is-blessing-scene::after { display:none; }
.blacksmith-workshop.is-blessing-scene { background:#fff9e9; }
.blacksmith-workshop.is-blessing-scene.is-blessing-gold { background:#ffedac; }
.blacksmith-workshop.is-blessing-scene .blacksmith-scene { z-index:1; background:transparent; }
.blacksmith-workshop.is-blessing-scene .blacksmith-left-rail,
.blacksmith-workshop.is-blessing-scene .blacksmith-wall-label,
.blacksmith-workshop.is-blessing-scene .blacksmith-rack-hit,
.theme-blacksmith .play-stage:has(.blacksmith-workshop.is-blessing-scene) .game-heading { visibility:hidden; }
.blacksmith-workshop.is-blessing-scene .blacksmith-blessing-glow.is-active { opacity:.18; }
.blacksmith-item-reveal.is-blessing-level .blacksmith-item-slot { border-color:var(--blacksmith-level-color); box-shadow:inset 0 0 22px #0008,0 0 26px var(--blacksmith-level-color); transition:border-color .25s,box-shadow .25s; }
.blacksmith-impact-result.is-success { color:#fff0ab; text-shadow:0 2px 7px #5d290a,0 0 18px #ffa72caa; }
.blacksmith-result-layer>.game-modal-panel { width:min(740px,100%); max-height:calc(100svh - 40px); overflow:auto; padding:28px; border-color:#e7ca8566; background:linear-gradient(140deg,#3e3026,#201b17); color:#f8ebd2; }
.blacksmith-result-layer:is(.is-phase-one,.is-phase-two)>.game-modal-panel { width:min(1364px,calc(100% - 24px)); padding:14px; border:0; background:none; box-shadow:none; }
.blacksmith-result-layer:is(.is-phase-one,.is-phase-two)>.game-modal-panel>h2 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.blacksmith-result-layer.is-blessing>.game-modal-panel { width:min(360px,calc(100% - 24px)); padding:28px; text-align:center; border-color:#f0cd7c; background:linear-gradient(155deg,#433321,#1d1a17); }
.blacksmith-result-layer.blacksmith-blessing { position:absolute; z-index:10; box-sizing:border-box; }
.blacksmith-result-layer.is-blessing>.game-modal-panel { box-sizing:border-box; max-height:calc(100% - 32px); }
.blacksmith-result-layer.is-blessing h2 { margin:0; padding:0; font-size:22px; line-height:1.3; text-align:center; }
.blacksmith-blessing-message { margin:12px 0 0; color:#f5e4b8; font-size:14px; line-height:1.5; text-align:center; }
.blacksmith-result-layer h2 { padding-right:30px; color:#f7dfaa; }
.blacksmith-stop-layer { position:absolute; z-index:10; background:#120d09a6; }
.blacksmith-stop-layer>.game-modal-panel { box-sizing:border-box; width:min(300px,100%); padding:24px; border:1px solid #d8ba7a; border-radius:8px; background:#211c18; color:#f8ebd2; text-align:center; }
.blacksmith-stop-layer h2 { margin:0 0 20px; color:#f7dfaa; font-size:18px; }
.blacksmith-stop-actions { display:flex; gap:8px; }
.blacksmith-stop-actions .primary-button { flex:1; min-width:0; padding:10px 8px; font-size:13px; }
.blacksmith-result-summary { display:grid; gap:8px; margin:12px 0 20px; }
.blacksmith-result-summary>strong { color:#ffdb83; font-size:28px; }
.blacksmith-result-summary>span { color:#d7c6a8; font-size:12px; line-height:1.6; }
.blacksmith-result-body>.blacksmith-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
.blacksmith-result-layer .blacksmith-cards { display:flex; flex-wrap:nowrap; justify-content:safe center; gap:8px; overflow-x:auto; padding:4px 2px 10px; }
.blacksmith-result-layer .blacksmith-card { flex:0 0 210px; }
.blacksmith-result-layer .blacksmith-card.has-requesters { position:relative; display:flex; flex-direction:column; box-sizing:border-box; padding-bottom:39px; }
.blacksmith-result-layer .blacksmith-card-people { position:absolute; right:8px; bottom:7px; display:grid; place-items:center; width:29px; height:27px; padding:3px; border:1px solid #d8ba7a77; border-radius:5px; background:#31271d; color:#f7dfaa; cursor:pointer; }
.blacksmith-result-layer .blacksmith-card-people[aria-expanded="true"] { background:#76552b; border-color:#f1ce85; }
.blacksmith-result-layer .blacksmith-card-people:disabled { opacity:.4; cursor:default; }
.blacksmith-result-layer .blacksmith-card-people:focus-visible { outline:2px solid #ffe3a2; outline-offset:2px; }
.blacksmith-result-layer .blacksmith-card-people svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.blacksmith-result-layer .blacksmith-result-tags { display:flex; flex-wrap:wrap; align-content:flex-start; justify-content:center; gap:6px; width:100%; max-height:min(120px,20vh); margin:0 auto 10px; overflow-y:auto; }
.blacksmith-result-layer .blacksmith-result-tags[hidden] { display:none; }
.blacksmith-result-layer .blacksmith-result-tags span { max-width:100%; padding:5px 8px; border:1px solid #e7d0a57a; border-radius:4px; background:#392b20e8; box-shadow:0 2px 7px #0006; color:#f4e8cf; font-size:13px; line-height:1.25; overflow-wrap:anywhere; }
.blacksmith-result-layer .blacksmith-card-title { flex-direction:column; gap:7px; text-align:center; }
.blacksmith-result-layer .blacksmith-card-icon { margin-inline:auto; }
.blacksmith-result-layer div.blacksmith-card-icon { display:grid; }
.blacksmith-result-layer .blacksmith-card-title strong { line-height:1.35; }
.blacksmith-result-info { box-sizing:border-box; position:relative; width:min(720px,100%); margin:14px auto 0; padding:16px 56px 16px 16px; border:1px solid #d8ba7a; border-radius:7px; background:linear-gradient(155deg,#34332e,#171b1d 72%); color:#fff; box-shadow:0 0 0 3px #151515dd,0 15px 38px #000b,inset 0 0 0 2px #111719; }
.blacksmith-result-info>.pickpot-modal-close { top:12px; right:12px; }
.blacksmith-result-info>strong { color:#f1ce85; font-size:16px; }
.blacksmith-result-layer.is-phase-one .blacksmith-result-info { display:grid; grid-template-columns:max-content max-content minmax(0,1fr); align-items:center; column-gap:12px; }
.blacksmith-result-layer.is-phase-one .blacksmith-survivors { margin:0; }
.blacksmith-result-layer.is-phase-one .blacksmith-survivors>strong { width:auto; margin:0; white-space:nowrap; }
.blacksmith-result-layer .blacksmith-survivors { max-height:none; overflow:visible; margin:10px 0 0; padding:0; }
.blacksmith-result-layer .blacksmith-survivors>strong { margin-bottom:4px; font-size:15px; }
.blacksmith-result-controls { display:flex; align-items:center; justify-content:center; gap:8px; margin:10px -40px 0 0; }
.blacksmith-result-layer.is-phase-one .blacksmith-result-controls { grid-column:1/-1; }
.blacksmith-survivors { display:flex; align-items:center; flex-wrap:wrap; gap:6px; max-height:190px; overflow:auto; margin:20px 0; font-size:11px; }
.blacksmith-survivors>strong { width:100%; margin-bottom:5px; color:#f1ce85; }
.blacksmith-predictions { display:grid; gap:5px; max-height:210px; overflow:auto; margin:18px 0; padding:0; list-style:none; }
.blacksmith-predictions li { display:flex; align-items:center; gap:12px; padding:9px 10px; border-radius:6px; background:#ffffff06; font-size:12px; }
.blacksmith-predictions li span { flex:1; min-width:0; overflow-wrap:anywhere; }
.blacksmith-predictions li strong { color:#f4d38a; font-variant-numeric:tabular-nums; }
.blacksmith-predictions li small { font-size:10px; color:#c9bea9; }
.blacksmith-predictions li.is-winner { background:#c8a95722; outline:1px solid #e8cd76; }
.blacksmith-result-actions { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; margin:20px auto 0; }
.blacksmith-result-next { padding:11px 28px; }
.blacksmith-result-countdown { min-width:2ch; color:#ffe3a2; font-size:20px; font-variant-numeric:tabular-nums; text-align:center; }
.blacksmith-result-stop { box-sizing:border-box; height:38px; padding:0 14px; border:1px solid #d8ba7a88; border-radius:6px; background:#392a1d; color:#f8e3b8; font:inherit; cursor:pointer; }
.blacksmith-result-stop:disabled { opacity:.55; cursor:default; }
.blacksmith-result-stop:focus-visible { outline:2px solid #ffe3a2; outline-offset:2px; }
.blacksmith-pause { display:grid; place-items:center; flex:none; width:44px; height:44px; min-width:44px; padding:0; }
.blacksmith-pause svg { width:19px; height:19px; fill:currentColor; }
.blacksmith-scene-failure { position:absolute; top:40%; left:25%; width:50%; color:#fff0c9; text-align:center; font-size:13px; line-height:1.7; }
.blacksmith-scene-loading { z-index:2; }
.blacksmith-wall-hit { position:absolute; pointer-events:auto; padding:0; border:0; background:transparent; cursor:pointer; }
.blacksmith-wall-hit:focus-visible { outline:2px solid #ffe4a3; outline-offset:2px; border-radius:6px; }
.blacksmith-result-layer.blacksmith-rack-item-layer>.game-modal-panel { width:min(210px,calc(100% - 48px)); max-height:none; overflow:visible; padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
.blacksmith-rack-item-layer .game-modal-panel>h2 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.blacksmith-rack-item-layer .pickpot-modal-close { top:-12px; right:-45px; box-shadow:0 5px 16px #0009; }
.blacksmith-rack-item-layer .blacksmith-card { box-sizing:border-box; width:100%; }
.blacksmith-rack-item-layer .blacksmith-card-title strong { font-size:16px; }
.blacksmith-rack-item-layer .blacksmith-item-level { display:block; margin-top:8px; text-align:center; font-size:36px; line-height:1; text-shadow:0 0 15px currentColor; }
.blacksmith-workshop [hidden],.blacksmith-result-layer [hidden],.blacksmith-cancel[hidden],.blacksmith-pause[hidden],.blacksmith-advance[hidden] { display:none!important; }
.blacksmith-settings-form { margin-top:14px; }
.blacksmith-settings-section { margin:0 0 14px; padding:10px 12px; border:1px solid #739c9a66; border-radius:9px; }
.blacksmith-settings-section summary { cursor:pointer; font-size:13px; font-weight:700; }
.blacksmith-settings-section summary::marker { color:#527174; }
.blacksmith-settings-section h4 { margin:15px 0 5px; font-size:11px; }
.blacksmith-setting { display:grid!important; grid-template-columns:minmax(0,1fr) 66px 18px; align-items:center; gap:7px; margin:10px 0!important; }
.blacksmith-setting.is-slider { grid-template-columns:minmax(0,1fr) minmax(80px,130px) 30px; }
.blacksmith-setting.is-slider input[type=range] { width:100%; margin:0; padding:0; border:0; background:transparent; accent-color:#285959; }
.blacksmith-setting.is-slider output { text-align:right; font-size:11px; font-variant-numeric:tabular-nums; }
.blacksmith-setting.is-balance { display:block!important; margin-top:14px!important; }
.blacksmith-balance-labels { display:flex!important; justify-content:space-between; font-size:12px!important; font-weight:800; }
.blacksmith-setting.is-balance input[type=range] { display:block; width:100%; margin:11px 0 0; padding:0; border:0; background:transparent; accent-color:#285959; }
.blacksmith-setting span { font-size:11px; line-height:1.4; }
.blacksmith-setting input { width:100%; min-width:0; padding:7px 5px; border:1px solid #739c9a66; border-radius:7px; background:#ffffff88; color:#214c50; font-size:12px; }
.blacksmith-setting small { margin:0!important; font-size:10px; color:#527174; }
.blacksmith-settings-note,.blacksmith-settings-status { font-size:10px; line-height:1.6; }
.blacksmith-settings-note strong { font-weight:800; }
.blacksmith-settings-status { color:#9d3039; }
.blacksmith-settings-form .game-settings-actions { margin-top:10px; }
.blacksmith-settings-form>.game-settings-toggle:nth-of-type(2) { margin-bottom:16px; }

@media(max-width:1100px) { .blacksmith-hud { left:12px; width:144px; padding:12px; } .blacksmith-selection { width:220px; right:12px; } }
@media(max-width:900px) { .theme-blacksmith .play-stage { height:calc(100svh - 100px); min-height:760px; } }
@media(max-width:520px) {
 .blacksmith-hud { left:10px; width:101px; padding:11px 9px; }
 .blacksmith-steps { gap:11px; } .blacksmith-steps li { gap:6px; font-size:10px; } .blacksmith-step-number { width:20px; height:20px; font-size:9px; }
 .blacksmith-phase { font-size:11px; } .blacksmith-instruction { font-size:9px; } .blacksmith-progress { font-size:10px; }
 .blacksmith-hud .blacksmith-instruction { display:none; }
 .blacksmith-selection { top:auto; bottom:126px; right:10px; width:calc(100% - 131px); max-height:37%; padding:9px; }
 .blacksmith-selection-title { font-size:10px; } .blacksmith-card { padding:7px; } .blacksmith-card-title { gap:4px; } .blacksmith-card-title svg { width:20px; } .blacksmith-card-title strong { font-size:10px; }
 .blacksmith-result-layer>.game-modal-panel { padding:22px 18px; } .blacksmith-result-layer:is(.is-phase-one,.is-phase-two)>.game-modal-panel { padding:14px 8px; } .blacksmith-result-body>.blacksmith-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .blacksmith-result-summary>strong { font-size:24px; } .blacksmith-survivors { max-height:145px; }
 .blacksmith-result-layer.is-phase-one .blacksmith-result-info { column-gap:8px; }
 .blacksmith-result-layer.is-phase-one .blacksmith-result-info>strong { font-size:14px; }
 .blacksmith-result-layer.is-phase-one .blacksmith-survivors>strong { font-size:13px; }
}

.blacksmith-workshop.has-scene .blacksmith-selection { display:none; }
.blacksmith-stage-guide { position:absolute; z-index:4; top:145px; left:calc(50% + 55px); transform:translateX(-50%); width:min(540px,calc(100% - 210px)); padding:16px 20px; border-block:1px solid #e9c77a55; background:linear-gradient(90deg,#21150b00,#21150bc9 20%,#21150bc9 80%,#21150b00); color:#fff0ca; text-align:center; pointer-events:none; animation:blacksmith-guide-in .35s ease-out; }
.blacksmith-stage-guide.is-order-guide { top:55.8%; left:55.6%; }
.blacksmith-stage-guide h2 { margin:0; font-size:clamp(19px,2.3vw,27px); letter-spacing:.03em; word-break:keep-all; text-shadow:0 2px 10px #0009; }
.blacksmith-stage-guide p { margin:9px 0 0; color:#e6d3ae; font-size:12px; line-height:1.6; word-break:keep-all; }
.blacksmith-element-options { display:flex; justify-content:safe center; flex-wrap:nowrap; gap:6px; overflow-x:auto; overflow-y:hidden; pointer-events:auto; scrollbar-width:thin; scrollbar-color:#c8a36d transparent; }
.blacksmith-element-option { display:flex; flex:0 0 44px; flex-direction:column; align-items:center; gap:3px; color:#f3e1bc; font-size:11px; line-height:1.2; }
.blacksmith-element-icon { position:relative; display:block; width:42px; height:42px; flex:none; overflow:hidden; border-radius:3px; background:#211611; }
.blacksmith-element-icon::before,.blacksmith-element-icon::after { content:""; position:absolute; inset:0; background:url('../../assets/blacksmith-elements-plaque-v2.webp') no-repeat; pointer-events:none; }
.blacksmith-element-icon::before { background-size:129px 129px; background-position:var(--blacksmith-element-art-position); clip-path:inset(3px); }
.blacksmith-element-icon::after { padding:3px; background-size:129px 134px; background-position:-1px 0; mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); mask-composite:exclude; }
.blacksmith-element-name { font-weight:700; text-shadow:0 1px 5px #000; }
.blacksmith-item-reveal,.blacksmith-result-layer .blacksmith-item-window { box-sizing:border-box; width:210px; min-height:260px; display:grid; justify-items:center; gap:8px; padding:16px; border:1px solid var(--blacksmith-reveal-color,#d8ba7a); border-radius:7px; background:linear-gradient(155deg,#34332e,#171b1d 72%); color:#fff; text-align:center; box-shadow:0 0 0 3px #151515dd,0 15px 38px #000b,inset 0 0 0 2px #111719,inset 0 1px #fff3cf4d; }
.blacksmith-item-reveal { position:absolute; z-index:5; top:50%; left:50%; transform:translate(-50%,-50%); pointer-events:none; animation:blacksmith-guide-in .35s ease-out; }
.blacksmith-item-window { position:relative; }
.blacksmith-item-name-row { box-sizing:border-box; position:relative; display:flex; align-items:center; justify-content:center; width:176px; max-width:100%; min-height:34px; margin-inline:auto; padding-top:8px; border-top:1px solid #b99b6359; }
.blacksmith-item-name-row > strong { width:100%; overflow-wrap:anywhere; }
.blacksmith-item-slot > .blacksmith-item-element-icon { position:absolute; z-index:3; top:5px; right:5px; transform:scale(.7); transform-origin:top right; margin:0; border:1px solid #d8ba7a99; box-shadow:0 2px 8px #0009; }
.blacksmith-item-reveal .blacksmith-item-level { font-size:36px; line-height:1; }
.blacksmith-item-title { white-space:pre-line; }
.blacksmith-item-reveal.is-immortal .blacksmith-item-title,.blacksmith-item-reveal.is-immortal .blacksmith-item-level,.blacksmith-item-window.is-immortal .blacksmith-card-title strong,.blacksmith-item-window.is-immortal .blacksmith-card-title small,.blacksmith-leader-gear.is-immortal { background:linear-gradient(105deg,#38e8d7,#8f72ff,#f890db,#ffd06a,#38e8d7); background-size:300% 100%; background-clip:text; -webkit-text-fill-color:transparent; animation:blacksmith-prism-text 3s linear infinite; }
@keyframes blacksmith-prism-text { to { background-position:100% 0; } }
.blacksmith-item-reveal .blacksmith-item-element-icon[hidden],.blacksmith-item-reveal .blacksmith-item-level[hidden] { display:none; }
.blacksmith-item-reveal .blacksmith-item-slot,.blacksmith-result-layer .blacksmith-item-slot { box-sizing:border-box; position:relative; display:grid; place-items:center; width:176px; height:176px; margin:0; border:1px solid #9c896966; border-radius:4px; background:radial-gradient(circle at 50% 40%,#45443f,#11191c 78%); color:#e7cc91; font-size:64px; box-shadow:inset 0 0 0 2px #171d1e,inset 0 0 22px #0008,0 1px #eac98533; }
.blacksmith-item-reveal.is-winning .blacksmith-item-slot { position:relative; overflow:visible; }
.blacksmith-item-reveal .blacksmith-winner-rays { position:absolute; z-index:1; top:50%; left:50%; width:350px; height:350px; overflow:visible; opacity:.68; transform:translate(-50%,-50%); fill:#ffbf4a; filter:drop-shadow(0 0 9px #ff9b2a); pointer-events:none; animation:blacksmith-winner-rays .9s ease-out both,blacksmith-winner-rays-pulse 2.4s ease-in-out .9s infinite; }
.blacksmith-item-reveal.is-winning .blacksmith-item-slot > .blacksmith-item-image { position:relative; z-index:2; }
.blacksmith-item-reveal.is-winning .blacksmith-item-name-row,.blacksmith-item-reveal.is-winning > strong,.blacksmith-item-reveal.is-winning > span { position:relative; z-index:2; text-shadow:0 2px 6px #101418,0 0 12px #101418; }
.blacksmith-item-image { display:block; width:100%; height:100%; object-fit:contain; }
.blacksmith-item-reveal.is-failed { background:linear-gradient(145deg,#352829,#181b1d); }
.blacksmith-item-reveal.is-failed .blacksmith-item-slot { color:#c5847c; }
.blacksmith-item-reveal strong { display:block; font-size:18px; line-height:1.4; text-shadow:0 0 15px currentColor; }
.blacksmith-item-reveal span { display:block; margin-top:5px; color:#f0e7d3; font-size:12px; }
.blacksmith-leader { position:absolute; z-index:3; top:117px; right:18px; width:256px; max-height:calc(100% - 217px); overflow:auto; padding:12px; border:1px solid #c9b56a; border-radius:10px; background:#211b16e8; color:#fff0d6; font-size:12px; line-height:1.5; box-shadow:0 4px 18px #0007; scrollbar-width:thin; }
.blacksmith-leader-title { display:block; margin-bottom:7px; color:#ffe0a0; }
.blacksmith-leader-results { display:grid; gap:4px; margin:0; padding:0; list-style:none; }
.blacksmith-leader-results li { display:flex; align-items:center; gap:6px; min-width:0; padding:5px 7px; border-radius:5px; background:#ffffff0d; }
.blacksmith-leader-results li .blacksmith-leader-id { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.blacksmith-leader-results li .blacksmith-leader-gear { flex:none; max-width:65%; overflow:hidden; text-overflow:ellipsis; color:#ffdc8c; white-space:nowrap; }
.blacksmith-leader-results li.is-active { outline:1px solid #ffdc8c88; }
.blacksmith-leader-results li.is-contender { outline:1px solid #ffdc8c; background:#ffd66a24; box-shadow:0 0 12px #f7c45255; }
.blacksmith-leader-results li.is-contender.is-active { outline-width:2px; background:#ffd66a38; }
.blacksmith-leader-results li.is-inactive { opacity:.32; filter:grayscale(1); }
.blacksmith-leader-results li.is-failed .blacksmith-leader-gear { color:#df9c92; }
.blacksmith-leader-results li.is-pending strong { color:#aa9c84; }
.blacksmith-elimination-feed { flex:1; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
.blacksmith-elimination-feed[hidden] { display:none; }
.blacksmith-elimination-title { margin-bottom:6px; color:#ffe1b7; font-size:15px; text-shadow:0 2px 6px #000,0 0 9px #4a0a07; white-space:nowrap; }
.blacksmith-elimination-results { flex:1; min-height:0; align-content:start; grid-auto-rows:max-content; gap:1px; max-height:none; overflow:auto; scrollbar-width:none; overflow-anchor:none; }
.blacksmith-elimination-results li { display:block; max-height:32px; overflow:hidden; padding:1px 0; border-radius:0; background:none; color:#ffb5ae; font-size:13px; font-weight:700; line-height:1.2; text-align:left; text-shadow:0 2px 5px #000,0 0 9px #4a0a07; white-space:nowrap; text-overflow:ellipsis; animation:blacksmith-elimination-in .56s ease-out; transition:max-height .56s ease,opacity .56s ease,padding .56s ease; }
.blacksmith-elimination-results li.is-leaving { max-height:0; opacity:0; padding-block:0; }
@keyframes blacksmith-elimination-in { from { opacity:0; } to { opacity:1; } }
.blacksmith-wall-label { width:72px; height:44px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; }
.blacksmith-wall-name { line-height:1; white-space:nowrap; }
.blacksmith-wall-count { padding:2px 4px; border-radius:3px; color:#f5dfae; background:#20170bb3; font-size:11px; line-height:1.1; white-space:nowrap; }
.blacksmith-fallback-weapon { padding:12px 6px; border:1px solid #c5ab7666; border-radius:7px; background:#2a2119; color:#f4dfb5; cursor:pointer; }
.blacksmith-card.is-failed .blacksmith-socket:not(.is-winning) { color:#9d9e9a; border-color:#7d817e; background:#7c756422; }
@keyframes blacksmith-guide-in { from { opacity:0; margin-top:5px; } to { opacity:1; margin-top:0; } }
@keyframes blacksmith-winner-rays { from { opacity:0; transform:translate(-50%,-50%) scale(.7); } to { opacity:.68; transform:translate(-50%,-50%) scale(1); } }
@keyframes blacksmith-winner-rays-pulse { 0%,100% { opacity:.68; transform:translate(-50%,-50%) rotate(0deg) scale(1); } 25% { opacity:.42; transform:translate(-50%,-50%) rotate(12deg) scale(1.07); } 50% { opacity:.68; transform:translate(-50%,-50%) rotate(-10deg) scale(1.14); } 75% { opacity:.45; transform:translate(-50%,-50%) rotate(9deg) scale(1.04); } }
@media(max-width:900px) { .blacksmith-stage-guide.is-order-guide { top:72.5%; left:60.4%; } }
@media(max-width:520px) {
 .blacksmith-stage-guide { top:145px; left:calc(50% + 48px); width:calc(100% - 132px); padding:12px 9px; }
 .blacksmith-stage-guide.is-order-guide { left:63.3%; }
 .blacksmith-stage-guide h2 { font-size:17px; line-height:1.5; }
 .blacksmith-stage-guide p { font-size:10px; line-height:1.7; }
 .blacksmith-wall-label { width:54px; font-size:15px; }
 .blacksmith-wall-count { font-size:8px; padding:2px; }
 .blacksmith-leader { top:auto; bottom:100px; right:10px; width:calc(100% - 131px); max-height:218px; font-size:10px; }
}
