.mine-stage {
  overflow: hidden;
  border: 1px solid #ebe1ba;
  border-radius: 26px;
  color: #fff7e2;
  background: #143e49;
  box-shadow: 0 18px 42px #123d542d;
}
.mine-order, .mine-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
}
.mine-order {
  background: linear-gradient(115deg, #144a54, #123c4c 65%, #235157);
  border-bottom: 2px solid #e2bb74;
}
.mine-order-label, .mine-total > span {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #e9ce91;
}
.mine-order h1 {
  margin: 2px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
  color: #fff8e5;
}
.mine-total { margin-left: auto; text-align: right; }
.mine-total strong { font-size: 26px; color: #ffe19a; font-variant-numeric: tabular-nums; }
.mine-listen {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 14px;
  color: #fff5d8;
  background: #ffffff12;
  border: 1px solid #f2e2b361;
  border-radius: 16px;
}
.mine-pit {
  container-type: inline-size;
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2.20;
  min-height: 290px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #075563 url(assets/mineral-cavern.webp) center top / 100% 100% no-repeat;
  cursor: crosshair;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mine-pit:focus-visible { outline: 3px solid #fff5a5; outline-offset: -5px; }
.mine-rig { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mine-operator {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 50%;
  width: clamp(46px, 7cqw, 76px);
  height: 20%;
  pointer-events: none;
}
.mine-operator img { width: 100%; height: 100%; object-fit: contain; object-position: top; filter: drop-shadow(0 4px 2px #19202585); }
.mine-object {
  display: block;
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 6px 4px #10243177);
}
.mine-object[hidden] { display: none; }
.mine-object.on-hook { z-index: 3; }
.ore-face, .mine-card-nugget {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(57px, 9.5cqw, 96px);
  aspect-ratio: 1.08;
  clip-path: polygon(16% 9%, 50% 0, 80% 7%, 99% 43%, 90% 74%, 63% 99%, 28% 93%, 3% 69%, 0 38%);
  background:
    linear-gradient(57deg, #b8812b 0 13%, transparent 13% 87%, #fff5b7 87%),
    linear-gradient(142deg, #fff5bc 0 23%, transparent 23% 74%, #bd722f 74%),
    linear-gradient(118deg, #eeb75b, #fff1a8 47%, #f3b04a);
}
.ore-face::before {
  content: '';
  position: absolute;
  inset: 7%;
  clip-path: polygon(12% 9%, 62% 0, 91% 18%, 100% 58%, 80% 88%, 35% 100%, 0 68%, 0 29%);
  background: linear-gradient(145deg, #fff5bd, #ffe6a4 48%, #cba66b);
}
.ore-face .mine-glyph { position: relative; width: 81%; height: 86%; }
.ore-name {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -4%);
  padding: 3px 7px;
  width: max-content;
  max-width: max(60px, 16cqw);
  border-radius: 8px;
  border: 1px solid #dae5cf5c;
  background: #0a303ddc;
  color: #fff7df;
  font-size: clamp(12px, 1.55cqw, 16px);
  line-height: 1.35;
  font-weight: 700;
}
.ore-gold .ore-face, .mine-card-nugget {
  width: clamp(39px, 5.9cqw, 65px);
  transform: rotate(11deg);
  aspect-ratio: 1.3;
  background:
    conic-gradient(from 20deg at 65% 53%, #ffe08b 0 60deg, #f3ae37 61deg 120deg, #ad6926 121deg 190deg, #ffd262 191deg 258deg, #fff1a5 259deg 310deg, #fad578 311deg);
}
.ore-gold .ore-face::before, .ore-rock .ore-face::before { display: none; }
.mine-glint, .mine-card-nugget { color: #fffbea; font-size: 25px; text-shadow: 0 0 7px #ffee95; }
.ore-rock .ore-face {
  width: clamp(47px, 7cqw, 78px);
  aspect-ratio: 1.25;
  background: conic-gradient(from 50deg at 45% 53%, #6f8797 0 62deg, #425c6c 63deg 137deg, #607a87 138deg 215deg, #a7b9c1 216deg 270deg, #8499a2 271deg);
}
.mine-grain { width: 32%; height: 10%; border-radius: 100%; background: #dbe5e282; transform: translate(-40%, -130%) rotate(-25deg); }
.mine-controls { min-height: 70px; background: #123c48; border-top: 1px solid #73a7a37d; }
.mine-steer { display: flex; gap: 6px; }
.mine-steer button {
  width: 44px;
  height: 44px;
  border: 1px solid #b0d4cf73;
  border-radius: 13px;
  background: #ffffff12;
  color: #f7f8e7;
  font: 32px/1 system-ui;
}
.mine-launch {
  min-width: 138px;
  min-height: 48px;
  padding: 10px 19px;
  border: 1px solid #ffebaa;
  border-radius: 15px;
  background: linear-gradient(#ffeab0, #efbd68);
  color: #4d392b;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 3px 0 #946c3c;
}
.mine-launch:disabled { opacity: .70; }
.mine-notice { color: #e6f2e8; font-size: 15px; line-height: 1.5; }
.arcade-miner .arcade-card-scene { background-position: center; }
.arcade-miner .arcade-card-scene::after { background: linear-gradient(transparent 75%, #123b4a4d); }
.mine-card-nugget { width: 88px; font-size: 34px; }
@media (max-width: 650px) {
  .mine-stage { border-radius: 19px; }
  .mine-pit { aspect-ratio: 1.13; min-height: 280px; background-size: cover; }
  .mine-order, .mine-controls { padding: 12px 14px; gap: 10px; }
  .mine-order h1 { font-size: 25px; }
  .mine-listen { font-size: 13px; padding: 7px 10px; }
  .mine-total strong { font-size: 23px; }
  .mine-controls { flex-wrap: wrap; }
  .mine-launch { flex: 1; min-width: 90px; }
  .mine-notice { width: 100%; min-height: 20px; font-size: 13px; }
  .ore-name { max-width: max(53px, 18cqw); }
}
