/* KreepCore drilling probe (pilot) - reuses the arcade console shell */
.kc-drill-hud { align-items: center; }

/* Yield readout pulse on every pickup: the scale + glow is the primary
   cue, the brief warm tint only seconds it */
.kc-drill-hud .kc-arcade-ore.pop {
  animation: kc-drill-yield-pop 0.4s ease-out;
}
@keyframes kc-drill-yield-pop {
  0% { transform: scale(1); }
  30% {
    transform: scale(1.32);
    color: #ffe6ae;
    filter: brightness(1.5) drop-shadow(0 0 7px rgba(255, 232, 180, 0.85));
  }
  70% { transform: scale(1.06); }
  100% { transform: scale(1); filter: none; }
}

.kc-drill-depth {
  position: absolute;
  top: 44px;
  right: 10px;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-secondary, #9ab);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.kc-drill-sum {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(280px, 84vw);
  font-size: 16px;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(160, 180, 200, 0.25);
}
.kc-drill-sum span { color: var(--text-secondary, #9ab); }
.kc-drill-sum--bad b { text-decoration: underline wavy; }

.kc-drill-mine {
  position: absolute;
  top: 66px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-secondary, #9ab);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(160, 180, 200, 0.35);
  border-radius: 4px;
  padding: 2px 6px;
  background: rgba(8, 12, 18, 0.55);
}
.kc-drill-mine svg { width: 15px; height: 15px; opacity: 0.85; }

/* Hull integrity: segmented armor readout, shape-coded (filled vs hollow
   segments), deliberately unlike the round yield pips and the level bar */
.kc-drill-integ {
  position: absolute;
  top: 44px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 19px;
  line-height: 1;
  letter-spacing: 3px;
  color: var(--text-primary, #dfe9f2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(190, 205, 225, 0.55);
  border-radius: 5px;
  padding: 5px 9px;
  background: rgba(6, 9, 14, 0.78);
}
.kc-drill-integ-seg { letter-spacing: 3px; }
.kc-drill-integ-n {
  font-size: 15px;
  letter-spacing: 0;
  padding: 0 5px;
  border-left: 1px solid rgba(190, 205, 225, 0.4);
  border-right: 1px solid rgba(190, 205, 225, 0.4);
}
.kc-drill-integ-state {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
/* State band. Hue is the LAST cue: the filled/hollow segment count, the
   numeric fraction and the state word already carry it, and each state also
   steps its own lightness and border weight. */
.kc-drill-integ[data-integ="ok"] {
  color: #d9ecff;
  border-color: rgba(150, 220, 255, 0.6);
}
.kc-drill-integ[data-integ="warn"] {
  color: #ffe6a8;
  border-color: rgba(255, 205, 110, 0.85);
  border-width: 3px;
}
.kc-drill-integ[data-integ="crit"] {
  color: #ffd0c0;
  border-color: rgba(255, 140, 110, 0.95);
  border-width: 3px;
  background: rgba(30, 8, 6, 0.85);
}
.kc-drill-integ[data-integ="wrecked"] {
  color: #fff4f0;
  border-color: #fff4f0;
  border-width: 3px;
  background: rgba(58, 10, 8, 0.92);
}
.kc-drill-integ.hit { animation: kc-drill-integ-hit 0.45s ease-out; }
@keyframes kc-drill-integ-hit {
  0% { transform: scale(1); }
  30% { transform: scale(1.18); filter: brightness(1.6); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .kc-drill-integ.hit { animation: none; }
}

.kc-drill-card[hidden] { display: none; }
/* Level card: notched hud panel (same frame language as the era2 chrome -
   luminous gradient border, corner cuts, layered dark fill, no flat box) */
.kc-drill-card {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  /* above the hold-pause glass: the card must stay readable while paused */
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(320px, 88vw);
  padding: 16px 16px 14px;
  border: none;
  text-align: center;
  pointer-events: none;
  font-family: var(--font-mono);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  background: linear-gradient(180deg, rgba(var(--accent-rgb, 0, 240, 255), 0.7), rgba(var(--accent-rgb, 0, 240, 255), 0.14) 45%, rgba(var(--accent-rgb, 0, 240, 255), 0.45));
  filter: drop-shadow(0 0 14px rgba(var(--accent-rgb, 0, 240, 255), 0.22));
}
.kc-drill-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  clip-path: polygon(13.2px 0, 100% 0, 100% calc(100% - 13.2px), calc(100% - 13.2px) 100%, 0 100%, 0 13.2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, rgba(13, 18, 32, 0.97), rgba(5, 8, 17, 0.97));
}
.kc-drill-card b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan, #7fd8ff);
  text-shadow: 0 0 9px rgba(var(--accent-rgb, 0, 240, 255), 0.4);
}
.kc-drill-card span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary, #9ab);
}
.kc-drill-card i {
  font-style: normal;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  padding: 6px 9px;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  background: rgba(var(--accent-rgb, 0, 240, 255), 0.09);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb, 0, 240, 255), 0.28);
}
.kc-drill-card em {
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.5;
  text-align: left;
  padding: 9px 11px;
  background: rgba(2, 4, 10, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 8px rgba(0, 0, 0, 0.45);
}
.kc-drill-card small {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary, #9ab);
  opacity: 0.85;
}

/* While the card is up the pause glass keeps its dim but drops its own
   copy: two competing texts in one viewport read as a collision */
.kc-drill--card .kc-arcade-hold b,
.kc-drill--card .kc-arcade-hold span,
.kc-drill--card .kc-arcade-hold-icon { display: none; }
.kc-arcade-hold b { display: block; max-width: 100%; }
.kc-drill-card.show { animation: kc-drill-card-in 0.35s ease-out; }
@keyframes kc-drill-card-in {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.kc-drill-logq {
  width: min(280px, 84vw);
  margin-top: 6px;
  font-style: italic;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary, #9ab);
}

@media (prefers-reduced-motion: reduce) {
  .kc-drill-hud .kc-arcade-ore.pop { animation: none; }
  .kc-drill-card.show { animation: none; }
}
