/* The pointer shares the coordinate system of the cabinet and its physical controls. */
.machine .hatch-anchor {
  position: absolute;
  left: 2.02%;
  top: 95.16%;
  width: 30.4%;
  height: 4.32%;
  pointer-events: none;
}
.machine[data-guide-step] :is(#start-overlay, #win-toast) { visibility: hidden; }
.machine[data-guide-step="move"] [data-guide-light="stick"],
.machine[data-guide-step="rotate"] [data-guide-light^="turn-"],
.machine:is([data-guide-step="grab"], [data-guide-step="deliver"]) [data-guide-light="action"] { opacity: 1; }
.guide-card {
  --edge: rgb(249 248 255 / .78);
  --glass: linear-gradient(125deg, #403346f2, #32283fee);
  position: absolute;
  z-index: 12;
  width: min(65%, 252px);
  color: white;
  direction: rtl;
  text-align: start;
  scroll-margin: 12px;
}
.guide-card[hidden], .guide-navigation [hidden] { display: none; }
.guide-body {
  position: relative;
  padding: 8px 12px 9px;
  border: 1px solid var(--edge);
  border-radius: 15px;
  background: var(--glass);
  box-shadow: inset 0 1px 0 #ffffff27, 0 3px 10px #25112a38;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .guide-body {
    background: linear-gradient(120deg, rgb(75 61 85 / .81), rgb(42 30 55 / .78));
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
  }
}
.guide-pointer {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #46394f;
  border: solid var(--edge);
  transform: rotate(45deg);
}
.guide-card[data-place="above"] .guide-pointer { left: calc(var(--tip) - 6px); bottom: -5px; border-width: 0 1px 1px 0; }
.guide-card[data-place="below"] .guide-pointer { left: calc(var(--tip) - 6px); top: -5px; border-width: 1px 0 0 1px; }
.guide-card[data-place="right"] .guide-pointer { top: calc(var(--tip) - 6px); left: -5px; border-width: 0 0 1px 1px; }
.guide-heading, .guide-navigation { display: flex; align-items: center; gap: 4px; }
.guide-heading { justify-content: space-between; }
.guide-heading h2 { margin: 0; font-size: clamp(16px, 4cqw, 20px); line-height: 1.55; font-weight: 760; }
.guide-card p { margin: 2px 0 8px; color: #fffaff; font-size: clamp(14px, 3.55cqw, 16px); line-height: 1.55; }
.guide-navigation { border-top: 1px solid #fff3; padding-top: 6px; }
.guide-navigation button, #guide-skip {
  background: transparent;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: 650 14px/1.45 Estedad, Vazirmatn, sans-serif;
  min-height: 32px;
  padding: 4px 9px;
}
#guide-count { margin-inline-end: auto; color: #e8deec; white-space: nowrap; font-size: 13px; }
#guide-next { color: #3a2543; background: #f6edf8; }
#guide-skip { min-width: 30px; min-height: 30px; display: grid; place-items: center; padding: 4px; margin-inline-end: -5px; }
#guide-skip svg { width: 16px; height: 16px; stroke-width: 1.8; }
#guide-skip:hover, #guide-prev:hover { background: #ffffff20; }
#guide-next:hover { background: white; }
.guide-card button:focus-visible { outline: 2px solid #b7fff6; outline-offset: 1px; }
@media (max-width: 760px) {
  .machine { width: clamp(min(100%, 296px), calc((100svh - 64px) * .575676), 100%); }
  .guide-body { padding-inline: 9px; }
}
@media (forced-colors: active) {
  .guide-body, .guide-pointer { border-color: CanvasText; background: Canvas; }
  .guide-card *, .guide-card button { color: CanvasText; }
}
#time-modal { max-width: min(395px, calc(100% - 28px)); }
#time-modal h2 { margin-top: 0; }
#time-modal p { margin: 4px 0 16px; font-size: 16px; line-height: 1.8; }
#time-continue { min-height: 42px; font-size: 15px; padding: 6px 17px; margin: 0; }
