ore-mine-scene {
  display: block;
  width: 100%;
  isolation: isolate;
}
.ore-set {
  position: relative;
  padding: clamp(5px, 0.65vw, 8px);
  border: 1px solid #191822;
  border-radius: 6px;
  background: linear-gradient(
    176deg,
    #9594a4 0%,
    #626475 10%,
    #323642 39%,
    #272a35 68%,
    #464656 95%,
    #272733
  );
  box-shadow:
    0 1px 0 #a09bad6b inset,
    0 -2px 0 #15131c inset,
    0 3px 6px #05040a91;
}
.ore-set::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  --screw: radial-gradient(
    circle at center,
    #211e28 0 0.8px,
    #9999a1 1.1px,
    #545360 1.75px,
    #25232e 2.4px,
    transparent 2.9px
  );
  background:
    var(--screw) left 0 top 0/8px 8px no-repeat,
    var(--screw) right 0 top 0/8px 8px no-repeat,
    var(--screw) left 0 bottom 0/8px 8px no-repeat,
    var(--screw) right 0 bottom 0/8px 8px no-repeat;
}

.ore-view {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.73;
  overflow: hidden;
  background: #292332;
  box-shadow: 0 0 0 1px #161322;
  container-type: inline-size;
}
.ore-view canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ore-mural {
  position: absolute;
  inset: 0 -8%;
  pointer-events: none;
  background: var(--ore-photo) center 56% / cover no-repeat;
  transform: translateX(var(--ore-far-x, 0px));
}
.ore-view canvas {
  z-index: 1;
  display: block;
  pointer-events: none;
}
.ore-foreground {
  position: absolute;
  z-index: 2;
  inset: -1.5% -3.4%;
  pointer-events: none;
  background: url('/assets/mine-scene-foreground.webp') center / 100% 100% no-repeat;
  transform: translate3d(var(--ore-near-x, 0px), var(--ore-near-y, 0px), 0);
}
.ore-foreground::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 5% 44%, #ffaf5570 0%, #ee98492b 3%, transparent 9%);
  opacity: var(--ore-lamp-glow, 0.48);
  mix-blend-mode: screen;
}
.ore-view::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    inset 0 2px 6px #120d1e65,
    inset 0 -22px 25px -23px #09060e;
}
.ore-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.ore-hit {
  position: absolute;
  transform: translate(-50%, -100%);
  margin: 0;
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: none;
  border-radius: 45%;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
}
.ore-view button:focus-visible {
  outline: 2px solid #f7d897;
  outline-offset: -3px;
}
.ore-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  inset-inline-start: 8px;
  max-width: calc(100% - 16px);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 23px;
  padding: 3px 8px;
  color: #fff2da;
  background: rgba(21, 15, 26, 0.77);
  border: 1px solid #f0d5ac4d;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.25;
  box-shadow: 0 1px 3px #110c1666;
}
.ore-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #edc386;
}
.ore-tip-close {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  padding: 0;
  color: #fff0d5;
  border: 0;
  font: inherit;
}
.ore-tip {
  position: absolute;
  z-index: 4;
  top: 5px;
  left: 5px;
  right: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  max-width: 390px;
  min-height: 44px;
  border: 1px solid #c6add562;
  border-radius: 8px;
  background: #1e1729f0;
  color: #fff3d9;
  box-shadow: 0 3px 12px #110d1855;
}
.ore-tip-text {
  padding: 7px 0 7px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 9px;
  line-height: 1.35;
  font-size: 12px;
}
.ore-tip strong {
  flex-basis: 100%;
  font-size: 13px;
}
.ore-tip span {
  color: #e3dbe7;
}
.ore-tip-close {
  background: transparent;
}
ore-mine-scene [hidden] {
  display: none !important;
}
