/* Forge Strike HUD + canvas — shared by index + play (warm charcoal tokens) */
.panel {
  background: var(--card, #16121a);
  border: 2px solid rgba(224, 180, 90, 0.4);
  border-radius: 0;
  padding: 1.25rem;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}
.sub { color: var(--muted, #a39b92); margin: 0 0 1rem }
.sub strong { color: var(--gold, #e0b45a); font-weight: 600 }

.hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.hud div {
  background: #0c0a0f;
  border: 2px solid rgba(224, 180, 90, 0.35);
  border-radius: 0;
  padding: 0.7rem;
  box-shadow: inset 2px 2px 0 #000;
}
.hud label {
  display: block;
  color: var(--muted, #a39b92);
  font-size: 0.55rem;
  font-family: var(--display, monospace);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hud strong {
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--gold-hot, #f0c97a);
  font-family: var(--display, monospace);
}
/* Mobile-safe game frame: never use canvas intrinsic 520px height */
.forge-panel .canvas-frame,
.canvas-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  /* height set by JS (layoutGameFrame) — aspect-ratio as fallback */
  aspect-ratio: 900 / 520;
  height: auto;
  max-height: 62vw; /* hard cap on narrow phones before JS runs */
}
#game {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  aspect-ratio: unset !important;
  background: #0b0a0d;
  touch-action: none;
  -ms-touch-action: none;
  image-rendering: pixelated;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: top;
}
.how-to-below {
  margin: 0.45rem 0 0;
  color: var(--muted, #a39b92);
  font-size: 0.88rem;
  line-height: 1.35;
}
.how-to-below strong {
  color: var(--gold, #e0b45a);
  font-weight: 600;
}
.controls-top {
  margin: 0 0 0.35rem !important;
}

.hint { color: var(--muted, #a39b92); font-size: 0.9rem; margin: 0.75rem 0 0 }
.controls {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}
.controls-top {
  margin: 0 0 0.4rem;
  align-items: center;
}
.controls-top .how-to {
  flex: 1 1 220px;
  margin: 0;
  color: var(--muted, #a39b92);
  font-size: 0.9rem;
  line-height: 1.35;
  min-width: 0;
}
.controls-top .how-to strong {
  color: var(--gold, #e0b45a);
  font-weight: 600;
}
@media (max-width: 640px) {
  .controls-top { flex-direction: column; align-items: stretch; }
  .controls-top .btn { width: 100%; }
  .how-to-below { font-size: 0.78rem; margin-top: 0.35rem; }
  .canvas-frame { max-height: 56vw; }
}

.controls .btn,
.controls a.btn {
  touch-action: manipulation;
}

#muteBtn.is-muted,
#soundBtn.is-muted {
  border-color: rgba(255, 106, 61, 0.55);
  color: var(--ember, #ff6a3d);
  box-shadow: 0 0 0 1px rgba(255, 106, 61, 0.2);
}
#muteBtn.is-sound-on,
#soundBtn.is-sound-on {
  border-color: rgba(45, 255, 154, 0.45);
  color: var(--green, #2dff9a);
}

.unlock {
  margin-top: 1.1rem;
  border: 1px solid rgba(224, 180, 90, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 106, 61, 0.18),
    0 0 36px rgba(224, 180, 90, 0.28),
    0 18px 50px rgba(0, 0, 0, 0.35);
  background:
    radial-gradient(520px 160px at 20% 0%, rgba(224, 180, 90, 0.26), transparent 60%),
    radial-gradient(420px 140px at 90% 100%, rgba(255, 106, 61, 0.1), transparent 55%),
    var(--card, #16121a);
  border-radius: 4px;
  padding: 1.25rem 1.3rem;
}
.unlock h2 {
  font-family: var(--display, "Syne", system-ui, sans-serif);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0.2rem 0 0.35rem;
  color: var(--gold-hot, #f0c978);
  letter-spacing: 0.02em;
}
.unlock > p { color: var(--muted, #a39b92); margin: 0 }
.unlock > p strong { color: var(--gold, #e0b45a); font-weight: 600 }

#walletForm { display: grid; gap: 0.6rem; margin-top: 0.8rem }
#walletForm input {
  border: 1px solid var(--line, rgba(255, 200, 120, 0.1));
  background: #0c0a08;
  color: var(--text, #f6f3ee);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
}
#walletForm input:focus {
  outline: none;
  border-color: rgba(224, 180, 90, 0.55);
  box-shadow: 0 0 0 3px rgba(224, 180, 90, 0.12);
}
.note { color: var(--green, #2dff9a); margin: 0.75rem 0 0 }
.note.error { color: #ff6b6b }

/* Standalone play.html shell */
body.play-page {
  margin: 0;
  font-family: var(--font, "Space Grotesk", system-ui, sans-serif);
  color: var(--text, #f6f3ee);
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(224, 180, 90, 0.12), transparent 55%),
    radial-gradient(600px 360px at 10% 90%, rgba(255, 106, 61, 0.08), transparent 50%),
    #08070a;
  min-height: 100vh;
}
body.play-page .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 200, 120, 0.1);
  backdrop-filter: blur(14px);
  background: rgba(8, 7, 10, 0.75);
  position: sticky;
  top: 0;
  z-index: 20;
}
body.play-page .logo { font-weight: 700; letter-spacing: 0.06em; text-decoration: none; color: inherit }
body.play-page .logo span { color: var(--gold, #e0b45a) }
body.play-page .meta {
  display: flex;
  gap: 1rem;
  color: var(--muted, #a39b92);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}
body.play-page main {
  width: min(1100px, calc(100% - 1.5rem));
  margin: 1.25rem auto 2rem;
}
body.play-page h1 {
  font-family: var(--display, "Syne", system-ui, sans-serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
body.play-page .canvas-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(224, 180, 90, 0.3);
}

@media (max-width: 640px) {
  .hud { grid-template-columns: repeat(2, 1fr); gap: 0.45rem }
  .hud div { padding: 0.55rem 0.6rem }
  .hud strong { font-size: 1.1rem }
  .panel { padding: 1rem; overflow-x: hidden; max-width: 100% }
  .controls {
    flex-direction: column;
  }
  .controls .btn,
  .controls a.btn {
    width: 100%;
  }
  #walletForm input { font-size: 16px }
  body.play-page .meta span:first-child { display: none }
  body.play-page main {
    width: min(1100px, calc(100% - 1rem));
    margin: 0.85rem auto 1.5rem;
  }
}

@media (max-width: 900px) {
  .forge-panel,
  .panel.forge-panel {
    overflow: visible;
    max-width: 100%;
  }
}

/* —— Wallet / share / WL submit panel —— */
.smith-eligible {
  color: var(--muted, #a39b92);
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
}
.smith-eligible strong { color: var(--gold, #e0b45a); font-weight: 600 }

.smith-check { margin-top: 1rem }
.smith-label {
  display: block;
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #a39b92);
  margin-bottom: 0.35rem;
}
.smith-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
}
.smith-row input {
  border: 1px solid var(--line, rgba(255, 200, 120, 0.1));
  background: #0c0a08;
  color: var(--text, #f6f3ee);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  min-width: 0;
}
.smith-row input:focus {
  outline: none;
  border-color: rgba(224, 180, 90, 0.55);
  box-shadow: 0 0 0 3px rgba(224, 180, 90, 0.12);
}

.allocation-card {
  margin-top: 1rem;
  padding: 1.05rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(224, 180, 90, 0.32);
  background:
    radial-gradient(400px 120px at 10% 0%, rgba(224, 180, 90, 0.14), transparent 60%),
    linear-gradient(180deg, #12100c, #0c0a08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.check-success-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.check-success-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: #1a1200;
  background: linear-gradient(135deg, #f0d78c, #e8b84a 45%, #c9962e);
  border: 1px solid rgba(255, 230, 150, 0.65);
  box-shadow: 0 0 18px rgba(224, 180, 90, 0.35);
}
.check-success-title {
  display: block;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text, #f6f3ee);
}
.check-success-copy {
  margin: 0.35rem 0 0;
  color: var(--muted, #a39b92);
  line-height: 1.45;
  font-size: 0.92rem;
}

.allocation-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-bottom: 0.75rem;
}
.allocation-amounts {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.allocation-amounts label {
  display: block;
  font-family: var(--mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted, #a39b92);
}
.allocation-amounts strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text, #f6f3ee);
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.tier-badge.tier-1 {
  color: #1a1200;
  background: linear-gradient(135deg, #f0d78c, #e8b84a 45%, #c9962e);
  border-color: rgba(255, 230, 150, 0.65);
  box-shadow: 0 0 22px rgba(224, 180, 90, 0.45);
}
.tier-badge.tier-2 {
  color: #f7f0e6;
  background: linear-gradient(135deg, #8a949e, #c9d0d8 50%, #6e7884);
  border-color: rgba(201, 208, 216, 0.55);
  box-shadow: 0 0 18px rgba(180, 190, 200, 0.28);
}
.tier-badge.tier-3 {
  color: #1a1008;
  background: linear-gradient(135deg, #d4956a, #c47a4a 50%, #a35a30);
  border-color: rgba(212, 149, 106, 0.55);
}
.tier-badge.tier-4 {
  color: var(--muted, #a39b92);
  background: #1a1614;
  border-color: rgba(168, 152, 136, 0.35);
}
.tier-badge.tier-0 {
  color: #ff8a8a;
  background: rgba(255, 80, 80, 0.08);
  border-color: rgba(255, 107, 107, 0.35);
}

.chain-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.chain-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono, monospace);
  font-size: 0.82rem;
}
.chain-breakdown .chain-name { color: var(--muted, #a39b92) }
.chain-breakdown .chain-txs { color: var(--text, #f6f3ee); font-weight: 500 }
.alloc-note { margin: 0.75rem 0 0; color: var(--muted, #a39b92) }

.smith-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
#smithShareBtn {
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
#smithNote.note { margin-top: 0.75rem }

@media (max-width: 640px) {
  .smith-row { grid-template-columns: 1fr }
  .smith-row .btn { width: 100% }
  .smith-row input { font-size: 16px }
  .smith-actions .btn { width: 100% }
}

.activity-line {
  margin: 0.35rem 0 0.5rem;
  color: var(--gold, #e0b45a);
  font-weight: 600;
  font-size: 0.95rem;
}
.smith-submit {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 200, 120, 0.12);
}
.smith-submit-row { margin-top: 0 }
.submit-hint {
  margin: 0.55rem 0 0;
  color: var(--muted, #a39b92);
}
.submit-hint strong { color: var(--gold, #e0b45a); font-weight: 600 }
.alloc-note strong { color: var(--gold, #e0b45a) }

/* —— Progress strip (Play → Check → Share → Submit) —— */
.progress-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  position: relative;
  margin: 0.1rem 0 1rem;
  padding: 0.35rem 0 0.15rem;
}
.progress-strip::before {
  content: "";
  position: absolute;
  /* Align to centers of step 1 and step 4 dots (4 equal columns) */
  left: 12.5%;
  right: 12.5%;
  top: 18px;
  height: 2px;
  background: rgba(224, 180, 90, 0.28);
  z-index: 0;
  pointer-events: none;
}
.progress-strip .step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0.35rem 0.25rem 0;
}
.progress-strip .dot {
  width: 28px;
  height: 28px;
  margin: 0 auto 0.45rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid rgba(224, 180, 90, 0.35);
  background: #0c0a0f;
  color: var(--muted, #a39b92);
  position: relative;
  z-index: 1;
}
.progress-strip .step.done .dot {
  background: var(--gold, #e0b45a);
  color: #1a1208;
  border-color: var(--gold, #e0b45a);
}
.progress-strip .step.active .dot {
  border-color: var(--gold-hot, #f0c97a);
  color: var(--gold-hot, #f0c97a);
  box-shadow: 0 0 0 4px rgba(224, 180, 90, 0.18);
}
.progress-strip .step span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted, #a39b92);
}
.progress-strip .step.done span,
.progress-strip .step.active span {
  color: var(--text, #f6f3ee);
}

/* —— Post-submit receipt —— */
.receipt-card {
  margin-top: 1.1rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 4px;
  border: 1px solid rgba(224, 180, 90, 0.28);
  background:
    linear-gradient(180deg, rgba(224, 180, 90, 0.07), transparent 40%),
    #0c0a0f;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.receipt-card[hidden] { display: none !important }
.unlock .receipt-card h2 {
  font-family: var(--display, "Syne", system-ui, sans-serif);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
  color: var(--text, #f6f3ee);
  text-transform: none;
  letter-spacing: -0.02em;
}
.receipt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(45, 255, 154, 0.12);
  color: #2dff9a;
  border: 1px solid rgba(45, 255, 154, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.receipt-pill {
  background: #0c0a0f;
  border: 1px solid rgba(224, 180, 90, 0.22);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}
.receipt-pill label {
  display: block;
  font-family: var(--mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #a39b92);
  margin-bottom: 0.25rem;
}
.receipt-pill strong {
  font-size: 1.05rem;
  color: var(--text, #f6f3ee);
}
.receipt-wallet {
  font-size: 0.95rem !important;
  font-family: var(--mono, monospace);
  letter-spacing: -0.02em;
  word-break: break-all;
}

@media (max-width: 640px) {
  /* 4-step rail + line only (no chevron arrows) */
  .progress-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.15rem;
    margin: 0.05rem 0 0.65rem;
    padding: 0.15rem 0 0.05rem;
  }
  .progress-strip::before {
    display: block;
    left: 12.5%;
    right: 12.5%;
    top: 14px;
    height: 2px;
    background: rgba(224, 180, 90, 0.28);
  }
  .progress-strip .step {
    padding: 0.15rem 0.05rem 0;
  }
  .progress-strip .step:not(:last-child)::after {
    content: none !important;
    display: none !important;
  }
  .progress-strip .dot {
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
    margin: 0 auto 0.28rem;
  }
  .progress-strip .step span {
    font-size: 0.62rem;
    line-height: 1.15;
  }
  .controls-top {
    margin: 0 0 0.2rem !important;
    gap: 0.25rem;
  }
  .controls-top .how-to {
    font-size: 0.76rem;
    line-height: 1.25;
    margin: 0;
  }
  .hud { margin-bottom: 0.4rem !important; }
  .canvas-frame {
    margin: 0 !important;
  }
  #game {
    margin: 0 !important;
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
  }
  .run-card-actions:empty,
  .run-card-actions:not(:has(:not([hidden]))) {
    display: none;
  }
  .run-card-head .tiny { display: none; }
  .unlock { margin-top: 0.75rem; padding: 1rem 0.95rem; }
  .allocation-card { margin-top: 0.75rem; }
  .run-card-panel { margin-top: 0.75rem; padding: 0.75rem 0.8rem; }
  .referral-panel { margin-top: 0.75rem; }
  .smith-submit { margin-top: 0.75rem; }

  .hud { margin-bottom: 0.45rem; }
  .receipt-grid { grid-template-columns: 1fr }
}


/* —— Run card —— */
.run-card-panel {
  margin-top: 1.1rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(224, 180, 90, 0.35);
  background:
    radial-gradient(420px 120px at 15% 0%, rgba(224, 180, 90, 0.12), transparent 60%),
    linear-gradient(180deg, #14110d, #0c0a08);
}
.run-card-panel[hidden] { display: none !important }
.run-card-head h3 {
  margin: 0;
  font-family: var(--display, "Syne", system-ui, sans-serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-hot, #f0c978);
}
.run-card-head .tiny { margin: 0.35rem 0 0.75rem }
.run-card-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(224, 180, 90, 0.28);
  background: #0c0a08;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.run-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

/* —— Referral —— */
.referral-panel {
  margin-top: 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(224, 180, 90, 0.28);
  background: rgba(255, 255, 255, 0.02);
}
.referral-panel[hidden] { display: none !important }
.referral-row { margin-top: 0.35rem }
.referral-hint { margin: 0.55rem 0 0 }
.referral-hint strong { color: var(--gold, #e0b45a) }

.referral-section { padding-top: 2.5rem; padding-bottom: 1.5rem }
.referral-leaderboard {
  margin-top: 0.5rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(224, 180, 90, 0.22);
  background: rgba(12, 10, 8, 0.65);
}
.ref-lb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.ref-lb-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono, monospace);
  font-size: 0.88rem;
}
.ref-rank { color: var(--gold, #e0b45a); font-weight: 600 }
.ref-wallet { color: var(--text, #f6f3ee) }
.ref-count { color: var(--muted, #a39b92); white-space: nowrap }
.ref-lb-empty {
  display: block !important;
  color: var(--muted, #a39b92);
  background: transparent !important;
  padding: 0.35rem 0 !important;
  font-family: inherit !important;
}

@media (max-width: 640px) {
  .referral-row { grid-template-columns: 1fr }
  .referral-row .btn { width: 100% }
  .ref-lb-list li { grid-template-columns: 2rem 1fr; grid-template-rows: auto auto }
  .ref-count { grid-column: 2 }
}


/* play pixel polish 20260920b */
.unlock h2 {
  font-family: var(--display, monospace);
  font-size: 0.95rem;
  text-shadow: 2px 2px 0 #000;
}
.smith-label {
  font-family: var(--display, monospace);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold, #e0b45a);
}
.smith-row input,
.smith-submit-row input,
.referral-row input {
  border-radius: 0 !important;
  min-height: 44px;
}
.progress-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
}
.progress-strip .step {
  flex: 1 1 4.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  color: var(--muted, #a39b92);
}
.progress-strip .step.active,
.progress-strip .step.done {
  color: var(--gold-hot, #f0c97a);
}
.progress-strip .dot {
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border: 2px solid rgba(224, 180, 90, 0.5);
  background: #0c0a0f;
  border-radius: 0;
  font-family: var(--display, monospace);
  font-size: 0.45rem;
  color: var(--gold);
}
.progress-strip .step.active .dot,
.progress-strip .step.done .dot {
  background: var(--gold);
  color: #1a1208;
  box-shadow: 2px 2px 0 #000;
}
.receipt-card {
  border-radius: 0 !important;
  border: 2px solid rgba(45, 255, 154, 0.45);
  box-shadow: 4px 4px 0 #000;
  margin-top: 1rem;
  padding: 1rem;
  background: #0e1612;
}
.receipt-badge {
  display: inline-block;
  font-family: var(--display, monospace);
  font-size: 0.5rem;
  padding: 0.45rem 0.65rem;
  border: 2px solid var(--green, #2dff9a);
  color: var(--green, #2dff9a);
  border-radius: 0;
  margin: 0.5rem 0 0.85rem;
}
.run-card-canvas {
  image-rendering: pixelated;
  width: 100%;
  height: auto;
  border: 2px solid rgba(224, 180, 90, 0.4);
  box-shadow: 3px 3px 0 #000;
}
@media (max-width: 720px) {
  .panel { padding: 1rem; }
  .hud { grid-template-columns: repeat(2, 1fr); }
  .controls-top { margin-bottom: 0.75rem; }
  .unlock { margin-top: 1rem; }
  .smith-actions { display: flex; flex-direction: column; gap: 0.55rem; }
  .smith-actions .btn { width: 100%; }
}
