.scroll-craft {
  margin: 8px 0 10px;
  color: #443e30;
  font-family: var(--hand);
}
.craft-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 720 / 384;
  isolation: isolate;
  border: 1px solid #847a5c;
  background: #b8ab86;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.craft-rope .craft-stage { aspect-ratio: 840 / 438; }
.craft-stage > img, .craft-stage > canvas {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.craft-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 2px #e4d6b055, inset 0 -6px 18px #302b192b;
  z-index: 1;
}
.craft-tag {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px 3px;
  border: 1px solid #c6b78a;
  border-radius: 2px;
  background: #283a2cea;
  color: #f4e8c8;
  text-shadow: 0 1px 2px #18261e;
  font-size: clamp(12px, 3.3vw, 14px);
  line-height: 1.2;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 1px 3px #20190755;
}
.craft-tag::after {
  content: ""; position: absolute; height: 10px; width: 1px;
  background: #ebd6a3; left: 50%; top: 100%;
  box-shadow: 1px 0 1px #2c291e90;
}
.craft-tag[data-unavailable] { background: #4f5744d9; }
.craft-tag[data-active] { color: #fff1c5; background: #8b422d; }
.craft-tag[data-grip="field"] { left: 38.5%; top: 58%; }
.craft-tag[data-grip="mill"] { left: 69%; top: 41%; }
.craft-tag[data-grip="post"] { left: 32.5%; top: 22%; }
.craft-tag[data-grip="length"] { left: 55%; top: 43%; }
.craft-stage[data-cursor="grab"] { cursor: grab; }
.craft-stage[data-cursor="grabbing"] { cursor: grabbing; }
.craft-stage[data-cursor="tie"] { cursor: pointer; }
.craft-caption {
  display: flex; align-items: center; min-height: 26px;
  padding: 3px 6px 2px 8px; border-bottom: 1px solid #a597723b;
  background: #d2c49f29; color: #424a3a;
  font-size: clamp(12px,3.3vw,14px); line-height: 1.45;
}
.craft-caption::before {
  content: ""; display: block; width: 4px; height: 4px;
  flex: 0 0 4px; margin: 0 8px 0 1px; transform: rotate(45deg);
  background: #a34f35;
}
@media (max-height: 560px) and (orientation: landscape) {
  .craft-stage { max-height: 116px; width: auto; margin-inline: auto; }
  .scroll-craft { margin-block: 3px 6px; }
}
@media (max-height: 490px) and (min-width: 470px) and (orientation: landscape) {
  #talk[data-mode="craft"] { width: min(610px,calc(100% - 26px)); max-height: calc(100% - 65px); }
  #talk[data-mode="craft"] .talk-reading {
    display: grid; grid-template-columns: minmax(0,1.24fr) minmax(0,1fr);
    grid-template-rows: auto 1fr; column-gap: 13px; padding: 7px 12px 4px;
  }
  #talk[data-mode="craft"] .scroll-craft { grid-column: 1; grid-row: 1 / 3; margin: 0; }
  #talk[data-mode="craft"] .craft-stage { max-height: min(29dvh,112px); }
  #talk[data-mode="craft"] .craft-caption { min-height: 19px; padding: 2px 3px; font-size: 12px; }
  #talk[data-mode="craft"] .work-heading { grid-column: 2; grid-row: 1; padding-right: 26px; }
  #talk[data-mode="craft"] .talk-text { grid-column: 2; grid-row: 2; margin-top: 3px; font-size: 13px; line-height: 1.52; }
  #talk[data-mode="craft"] .talk-choices { padding: 4px 10px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-craft *, .scroll-craft *::before, .scroll-craft *::after {
    animation: none !important; transition: none !important;
  }
}
