.smithing-stage{
  position:relative;isolation:isolate;display:grid;place-items:center;
  min-height:280px;overflow:hidden;margin:0 0 12px;
  border:1px solid #75674e;border-radius:12px;
  background:radial-gradient(ellipse at 50% 44%,color-mix(in srgb,var(--smith-glow) 19%,transparent),transparent 58%),
    linear-gradient(155deg,#252721,#151817 72%);
  box-shadow:inset 0 0 0 1px #302d24,inset 0 -35px 65px #0d100e,0 10px 28px #0005;
}
.smithing-stage::before{
  content:"";position:absolute;inset:12px;border:1px solid #a18a5844;border-radius:9px;pointer-events:none;
}
.smithing-stage::after{
  content:"";position:absolute;left:10%;right:10%;bottom:48px;height:1px;
  background:linear-gradient(90deg,transparent,#c29a5d88,transparent);
}
.smithing-halo{
  position:absolute;width:210px;height:210px;border:1px solid #b28f5740;border-radius:50%;
  box-shadow:0 0 0 20px #b28f5709,0 0 0 42px #b28f5705,inset 0 0 36px #d7b06812;
  top:20px;
}
.smithing-anvil{
  position:absolute;bottom:52px;width:130px;height:17px;border-radius:50%;
  background:#060706aa;filter:blur(8px);
}
.smithing-art{
  position:relative;z-index:1;height:210px;display:grid;place-items:center;
  filter:drop-shadow(0 5px 2px #050605) drop-shadow(0 13px 14px #0009);
}
.smithing-weapon-svg{display:block;width:192px;height:192px;max-width:100%;overflow:visible}
.smithing-plaque{
  position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;
  width:calc(100% - 36px);padding:6px 10px 14px;text-align:center;
}
.smithing-plaque strong{font:700 clamp(19px,2vw,24px) Georgia,serif;color:#f1d9a5;line-height:1.2}
.smithing-plaque span{margin-top:4px;color:#c7bba5;font-size:12px;font-style:italic;overflow-wrap:anywhere}
.smithing-features{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 15px}
.smithing-features span{border:1px solid #67583b;border-radius:999px;background:#29261d;color:#ddc9a2;padding:3px 8px;font-size:11px;line-height:1.25}
.smithing-flare{position:absolute;z-index:4;inset:0;pointer-events:none}
.smithing-ray{
  position:absolute;left:50%;top:41%;width:4px;height:190px;transform-origin:50% 0;
  transform:rotate(var(--angle)) scaleY(0);opacity:0;
  background:linear-gradient(to bottom,#fff4caee,#ffd88970,transparent 80%);
  filter:blur(1px);animation:smith-ray .95s ease-out both;
}
.smithing-spark{
  position:absolute;left:50%;top:41%;width:5px;height:5px;border-radius:50%;opacity:0;
  background:#ffe3a1;box-shadow:0 0 10px 3px #e9a746;
  animation:smith-spark 1s cubic-bezier(.18,.55,.25,1) var(--delay) both;
}
@keyframes smith-ray{15%{opacity:.8;transform:rotate(var(--angle)) scaleY(1)}100%{opacity:0;transform:rotate(var(--angle)) scaleY(1.12)}}
@keyframes smith-spark{8%{opacity:1;transform:translate(0,0) scale(1)}72%{opacity:.8}100%{opacity:0;transform:translate(var(--sx),var(--sy)) scale(.2)}}
@media(max-width:600px){.smithing-stage{min-height:260px}.smithing-art{height:190px}.smithing-weapon-svg{width:172px;height:172px}.smithing-halo{width:184px;height:184px}}
@media(prefers-reduced-motion:reduce){.smithing-flare{display:none!important}}
body.no-game-motion .smithing-flare{display:none!important}


/* The workshop uses the game's existing furnace and anvil/hammer illustrations. */
.smithing-furnace,.smithing-anvil{position:absolute;z-index:0;bottom:48px;display:grid;place-items:center;filter:drop-shadow(0 3px 5px #0008)}
.smithing-furnace{left:23px;opacity:.47}
.smithing-anvil{right:21px;width:52px;height:52px;border:0;border-radius:0;background:none;filter:drop-shadow(0 3px 5px #0008);opacity:.52}
.smithing-furnace svg,.smithing-anvil svg{display:block}
.smithing-strike{position:absolute;left:calc(50% - 53px);top:calc(41% - 40px);width:105px;height:105px;opacity:0;transform-origin:48% 70%;animation:smith-strike .68s cubic-bezier(.32,.08,.4,1) var(--fx-delay) both}
.smithing-strike svg{width:105px;height:105px;filter:drop-shadow(0 3px 3px #0009)}
.smithing-heat{position:absolute;left:calc(50% - 20px);top:calc(41% - 20px);width:40px;height:40px;border-radius:50%;background:#fff1ba;box-shadow:0 0 24px 11px #f39435;opacity:0;animation:smith-heat .72s ease-out calc(var(--fx-delay) + 240ms) both}
.smithing-ray{animation-delay:calc(var(--fx-delay) + 250ms)}
.smithing-spark{animation-delay:calc(var(--fx-delay) + var(--delay) + 250ms)}
@keyframes smith-strike{0%{opacity:0;transform:translate(-25px,-34px) rotate(-32deg) scale(.72)}18%{opacity:1}43%{opacity:1;transform:translate(0,0) rotate(0) scale(1)}74%{opacity:.7;transform:translate(10px,8px) rotate(13deg) scale(1)}100%{opacity:0;transform:translate(17px,14px) rotate(25deg) scale(.95)}}
@keyframes smith-heat{0%{opacity:0;transform:scale(.3)}20%{opacity:.85;transform:scale(1)}100%{opacity:0;transform:scale(2.8)}}

.smithing-furnace,.smithing-anvil{top:23px;bottom:auto;opacity:.3}
.smithing-furnace{left:18px}
.smithing-anvil{right:17px;opacity:.33}

