/* Quatrain — Manu Arcade No. XVII
   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. */

/* The gold "wins" star gauge glyph. */
.gauge-glyph.gold { color: var(--gold-deep); }

/* The board is a landscape pane sized by the renderer from the frame width. */
.board-frame {
  width: min(560px, 94vw);
  display: flex;
  justify-content: center;
}
#board {
  display: block;
  touch-action: none;        /* we own column taps; stop the page scrolling */
  cursor: pointer;
  border-radius: 8px;
  max-width: 100%;
}

/* Difficulty pills sit together as a single segmented group. */
.pills {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(122, 104, 80, .12);
}
.pills .toggle {
  border-color: transparent;
  background: transparent;
}
.pills .toggle:hover { border-color: rgba(90, 26, 31, .3); }
.pills .toggle[aria-pressed="true"] {
  color: var(--parchment);
  background: var(--oxblood);
  border-color: var(--oxblood);
}

/* The whose-turn line below the board. */
.turn-status {
  margin: 2px 0 0;
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--ink-light);
  min-height: 1.2em;
}

/* Instruction caption floats over the lower portion of the pane until first drop. */
.hint-overlay {
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 4%, 24px);
  transform: translateX(-50%);
  margin: 0;
  width: max-content;
  max-width: 92%;
  text-align: center;
  font-family: var(--hand);
  font-style: italic;
  font-size: clamp(13px, 3.2vw, 16px);
  color: var(--gold-bright);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .55), 0 0 12px rgba(227, 183, 84, .3);
  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 "lose" treatment, mirroring the sibling games. */
.seal-face { line-height: 1; transition: transform .3s var(--ease); }
.seal.lose { background: radial-gradient(circle at 38% 32%, #6b5a48, #3a2e22 60%, #1a1410 100%); }
.seal:active .seal-face { transform: rotate(-90deg); }

@media (max-width: 460px) {
  .hud { gap: 9px; }
  .pills .toggle { padding: 6px 8px; letter-spacing: .08em; }
}
