/* Hanoi: Manu Arcade No. XXIX
   Game-specific styling only. The shell (masthead, hud, seal, toggles,
   board-frame, overlay, colophon) comes from ../_shared/palette.css.
   No em dashes in any on-screen copy by house style. */

/* A second gold gauge glyph for the optimal/best markers. */
.gauge-glyph.gold { color: var(--gold-deep); }

/* Ring-count stepper, styled to sit beside the gauges in the HUD. */
.ring-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  border: 1px solid rgba(122, 104, 80, .35);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}
.step-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(122, 104, 80, .4);
  background: transparent;
  color: var(--oxblood);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .1s var(--ease);
}
.step-btn:hover { background: rgba(90, 26, 31, .1); border-color: rgba(90, 26, 31, .45); }
.step-btn:active { transform: scale(.92); }
.step-btn:disabled { opacity: .35; cursor: default; transform: none; background: transparent; }
.ring-count {
  min-width: 1.4ch;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 3.4vw, 26px);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* The framed playfield is a wide landscape pane for three pegs. */
.board-frame {
  width: min(640px, 94vw);
  display: flex;
  justify-content: center;
}
#board {
  display: block;
  touch-action: none;       /* we own all pointer gestures on the pegs */
  cursor: pointer;
  border-radius: 6px;
  max-width: 100%;
  /* A dark carved ground so the gold-rimmed rings stay legible. */
  background:
    radial-gradient(120% 80% at 50% 20%, rgba(217, 148, 65, .10), rgba(217, 148, 65, 0) 60%),
    linear-gradient(180deg, #241a12 0%, #1b130d 55%, #140e09 100%);
}

/* Instruction caption floats over the lower third until the first lift. */
.hint-overlay {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 7%, 44px);
  transform: translateX(-50%);
  margin: 0;
  width: max-content;
  max-width: 88%;
  text-align: center;
  font-family: var(--hand);
  font-style: italic;
  font-size: clamp(13px, 3.4vw, 16px);
  color: var(--gold-bright);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6), 0 0 14px rgba(227, 183, 84, .35);
  pointer-events: none;
  opacity: 1;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.hint-overlay.gone {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

/* The seal reset treatment, mirroring the other arcade games. */
.seal-face { line-height: 1; transition: transform .3s var(--ease); }
.seal:active .seal-face { transform: rotate(-90deg); }

@media (max-width: 420px) {
  .hud { gap: 10px; }
  .ring-select { gap: 6px; padding: 2px 5px; }
  .step-btn { width: 26px; height: 26px; }
}
