/* The paper belongs to the plan itself, inside the existing inventory slot. */
.blueprint-sheet {
  position: relative;
  display: inline-block;
  flex: none;
  width: 48px;
  height: 48px;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px #0008);
}
.blueprint-paper {
  position: absolute;
  inset: 3% 14%;
  overflow: hidden;
  transform: rotate(-5deg);
  clip-path: polygon(1% 2%, 20% 0, 81% 1%, 98% 13%, 100% 76%, 97% 99%, 60% 98%, 2% 100%, 0 63%);
  background:
    linear-gradient(90deg, transparent 48%, #87663828 49%, #fff6d442 51%, transparent 53%),
    linear-gradient(0deg, transparent 47%, #88643124 49%, #fff9e23d 51%, transparent 53%),
    repeating-linear-gradient(0deg, #405d6710 0 1px, transparent 1px 12%),
    repeating-linear-gradient(90deg, #405d6710 0 1px, transparent 1px 15%),
    radial-gradient(ellipse at 35% 30%, #f4e6be, #ddc794 70%, #b79b66);
  box-shadow: inset 0 0 5px #805d3970;
}
.blueprint-paper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20%;
  height: 14%;
  background: linear-gradient(45deg, #8d794d, #f5e8c4 52%, #ae9869 54%);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.blueprint-sheet svg.blueprint-drafting {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #39545e;
  stroke-width: 1;
  opacity: .7;
}
:is(#character-modal, #storage-modal, #forge-modal, #combat-victory) .blueprint-sheet .blueprint-paper img.blueprint-drawing {
  position: absolute;
  inset: 25% 14% 25% 20%;
  width: 66%;
  height: 50%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  image-rendering: auto;
  /* Multiply sinks the pale highlights into the paper like blue-black ink. */
  filter: grayscale(1) sepia(1) hue-rotate(155deg) saturate(.6) brightness(.65) !important;
  mix-blend-mode: multiply;
}
.bag-slot > .blueprint-sheet { width: min(54px, 82%); height: min(54px, 72%); }
.pb-art > .blueprint-sheet,
.victory-find-icon > .blueprint-sheet { width: 100%; height: 100%; }
.bag-detail-icon > .blueprint-sheet { width: min(100%, 180px); height: 100%; }
.core-recipe-heading > .blueprint-sheet { width: 54px; height: 62px; }
