/* ==========================================================================
   Mohur Stamp · DS-002 · TheLayoutLoft Parts Line
   Part styles only — all selectors prefixed .mh- . Drop-in safe.
   Skin: lathe-turned wooden mohur + brass neck + rubber base; inked mark
   with the classic double-ring rubber-stamp edge. Own palette/timings.
   ========================================================================== */

.mh-btn {
  position: relative; overflow: visible;
  cursor: pointer;
  font: 600 12.5px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .05em;
  color: #E8E6F0;
  background: linear-gradient(180deg, #33394B, #232837);
  border: 1px solid #475069;
  border-radius: 9px;
  padding: 12px 18px;
  transition: border-color .15s, transform .05s;
  -webkit-user-select: none; user-select: none;
}
.mh-btn:hover { border-color: #7B72E0; }
.mh-btn:focus-visible { outline: 2px solid #8B84EA; outline-offset: 2px; }
.mh-btn[aria-disabled="true"] { opacity: .75; cursor: default; }
.mh-btn.mh-retry { border-style: dashed; }
.mh-btn.mh-busy { cursor: wait; }

.mh-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- the stamp prop (drops onto the button face) --------------------------- */
.mh-stamp {
  position: absolute; left: 50%; bottom: 60%;
  width: 34px; height: 52px;
  transform: translate(-50%,-62%);
  pointer-events: none; z-index: 6;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.4));
}
.mh-grip {
  display: block; width: 18px; height: 20px; margin: 0 auto;
  border-radius: 9px 9px 5px 5px;
  background: radial-gradient(circle at 38% 30%, #C49A6C, #8A6238 72%);
  box-shadow: inset 0 -3px 4px rgba(0,0,0,.3);
}
.mh-neck {
  display: block; width: 8px; height: 8px; margin: -1px auto 0;
  background: linear-gradient(90deg, #8A6A2E, #C9A24B 50%, #8A6A2E);
}
.mh-base {
  display: block; width: 34px; height: 24px;
  border-radius: 4px 4px 6px 6px;
  background: linear-gradient(180deg, #6B4A26, #4A3018);
  position: relative;
}
.mh-plate {
  position: absolute; left: 3px; right: 3px; bottom: 2px; height: 7px;
  border-radius: 2px 2px 4px 4px;
  background: linear-gradient(180deg, #3E3A45, #26222E);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
}
.mh-down { /* pressed state marker — rock loop is driven from JS (WAAPI) */ }

/* --- the inked mark --------------------------------------------------------- */
.mh-mark {
  position: absolute; left: 50%; top: 50%; z-index: 7;
  transform: translate(-50%,-50%) rotate(-7deg);
  padding: 3px 9px;
  font: 800 11px/1.1 ui-monospace, monospace;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: var(--mh-ink, #5B4FC4);
  background: rgba(35,40,55,.9);
  border: 2px solid currentColor; border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px currentColor;   /* rubber double-ring */
  opacity: .94;
  pointer-events: none;
}
.mh-mark.mh-round {
  border-radius: 50%; padding: 8px 8px;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.mh-mark.mh-fail {
  left: auto; right: -4px; top: -10px;
  transform: rotate(11deg);
  font-size: 9px; padding: 2px 6px;
  border-width: 1.5px; box-shadow: inset 0 0 0 1px currentColor;
  background: rgba(11,14,20,.85);
}

/* --- reduced-motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .mh-waiting { animation: none; }
}

/* phone view: demo stage is designed ~900px wide — zoom the page down on small screens */
@media (max-width: 430px) { body { zoom: .40; } }
@media (min-width: 431px) and (max-width: 560px) { body { zoom: .52; } }
@media (min-width: 561px) and (max-width: 720px) { body { zoom: .65; } }
@media (min-width: 721px) and (max-width: 860px) { body { zoom: .78; } }
