.forge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  gap: 0;
}
.workshop {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 344px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #1d2325e5, #2b251cbd), url("assets/vanilla/block/cobblestone.png") repeat 0 0 / 48px 48px;
}
.workshop-floor {
  position: absolute;
  inset: 71% 0 0;
  border-top: 2px solid #161715;
  background: linear-gradient(#241b15a1, #1a1713de), url("assets/vanilla/block/oak_planks.png") 0 0 / 56px 56px;
}
.workshop-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 67% 39%, #e5a35849, transparent 62%); }
.workshop .torch { position: absolute; width: 44px; height: 44px; top: 21%; right: 11%; image-rendering: pixelated; filter: drop-shadow(0 0 12px #ffab4b); }
.workshop .smith {
  position: absolute;
  right: 23%;
  width: 32%;
  height: 66%;
  bottom: 14%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(5px 9px 7px #130e0b9e);
}
.anvil {
  position: absolute;
  width: clamp(126px, 44%, 202px);
  height: 92px;
  left: 43%;
  transform: translateX(-50%);
  bottom: 12%;
  filter: drop-shadow(5px 7px 2px #0a0d0fbb);
}
.anvil::before, .anvil::after { content: ""; display: block; position: absolute; inset: 0; image-rendering: pixelated; }
.anvil::before {
  background: linear-gradient(#a5c2ce26, #12191f26 40%, #12191f77), url("assets/vanilla/block/anvil.png") center / 34px 34px;
  clip-path: polygon(1% 16%, 100% 16%, 100% 32%, 83% 32%, 83% 42%, 69% 42%, 69% 69%, 80% 69%, 80% 79%, 89% 79%, 89% 96%, 12% 96%, 12% 79%, 24% 79%, 24% 69%, 34% 69%, 34% 42%, 19% 42%, 19% 32%, 1% 32%);
}
.anvil::after {
  height: 18%; background: linear-gradient(#b9cace32, #85939335), url("assets/vanilla/block/anvil_top.png") center / 40px 40px;
  clip-path: polygon(12% 0, 90% 0, 100% 100%, 1% 100%);
}
.forge-slot {
  position: absolute;
  left: 43%;
  bottom: calc(12% + 86px);
  transform: translateX(-50%);
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  padding: 5px;
  border: 1px dashed #dfaf71;
  background: #182222ed;
  box-shadow: inset 2px 2px #0e1516, inset -2px -2px #52625e, 0 4px 14px #0a0d0fe0;
  color: #edbd79;
  font-size: 24px;
  z-index: 1;
}
.forge-slot[data-filled="true"] { border-style: solid; }
.forge-slot[data-dragover="true"], .forge-slot:hover { border-color: #ffe0a5; background: #493921; }
.forge-slot img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.forge-details { padding: 17px; }
.forge-clear { padding: 4px 8px; color: var(--muted); font-size: 12px; }
.forge-item { display: grid; gap: 10px; }
.forge-item h3 { font-size: 20px; }
.forge-item p { font-size: 13px; color: var(--muted); }
.forge-values { margin: 1px 0; padding: 2px 9px; border: 1px solid var(--border); background: var(--inset); }
.forge-values > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 1px; font-size: 13px; }
.forge-values > div + div { border-top: 1px solid var(--border); }
.forge-values dt { color: var(--muted); }
.forge-values dd { margin: 0; }
.forge-values strong { color: var(--green); }
.forge-material { display: flex; align-items: center; gap: 8px; }
.forge-material img { width: 31px; height: 31px; padding: 3px; image-rendering: pixelated; background: var(--inset); border: 1px solid var(--border); }
.forge-material strong, .forge-material span { display: block; font-size: 13px; }
.forge-material span { color: var(--muted); font-size: 12px; }
.forge-material[data-enough="false"] strong { color: #ffb59d; }
.forge-item > button { min-height: 36px; }
.forge-details > .bag-guide { margin-top: 9px; }
.forge-bag { margin-top: 14px; }
@media (min-width: 900px) {
  .forge-bag .bag-grid { --bag-columns: 12; }
}
@media (max-width: 675px) {
  .forge-layout { grid-template-columns: minmax(0, 1fr); }
  .workshop { min-height: 247px; border-right: 0; border-bottom: 1px solid var(--border); }
  .forge-details { padding: 11px; }
  .workshop .smith { right: 24%; height: 73%; bottom: 11%; }
  .anvil { height: 73px; }
  .forge-slot { width: 57px; height: 57px; bottom: calc(12% + 68px); }
  .forge-bag { margin-top: 8px; }
}
