/* Concordance — Manu Arcade
   Chrome (masthead, hud, seal, overlay, colophon) comes from ../_shared/palette.css.
   Only game-specific surfaces live here: the control row (Shuffle / Deselect /
   Submit), the mistakes pips, and the hint copy. No em dashes in on-screen text. */

#board {
  display: block;
  touch-action: manipulation;
  border-radius: 6px;
  max-width: 100%;
}

/* Mistakes pips render as a tight run of filled / hollow dots in oxblood. */
.mistakes {
  font-family: var(--display);
  letter-spacing: .08em;
  color: var(--oxblood);
  font-size: .82em;
}

/* ---- Control row -------------------------------------------------------- */
.controls {
  width: 100%;
  max-width: 460px;
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 14px);
  margin-top: 2px;
  flex-wrap: wrap;
}
.ctl {
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: clamp(12px, 2.6vw, 14px);
  padding: 11px clamp(14px, 3.4vw, 22px);
  border-radius: 999px;
  border: 1px solid var(--ink-rule);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .03)),
    var(--parchment-warm);
  color: var(--ink-soft);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 4px rgba(58, 46, 34, .18);
  transition: transform .1s var(--ease), filter .15s var(--ease),
    background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
.ctl:hover:not(:disabled) { filter: brightness(1.05); }
.ctl:active:not(:disabled) { transform: translateY(2px) scale(.98); }

/* The primary action fills oxblood once a full group of four is staged. */
.ctl-primary {
  border-color: var(--oxblood);
  background: var(--oxblood);
  color: var(--parchment);
  box-shadow: inset 0 1px 0 rgba(227, 183, 84, .25), 0 3px 8px rgba(61, 15, 18, .3);
}
.ctl-primary:hover:not(:disabled) { background: var(--oxblood-deep); filter: none; }

.ctl:disabled {
  opacity: .45;
  cursor: default;
  box-shadow: inset 0 1px 2px rgba(58, 46, 34, .14);
}

/* ---- Hint copy ---------------------------------------------------------- */
.hint {
  text-align: center;
  color: var(--ink-light);
  font-size: 14px;
  padding: 2px 6px 0;
  line-height: 1.5;
  max-width: 520px;
  margin: 2px auto 0;
  min-height: 1.4em;
  transition: opacity .4s var(--ease), color .3s var(--ease);
}
.hint strong { color: var(--oxblood); font-weight: 600; }
.hint.toast {
  color: var(--oxblood);
  font-style: italic;
  font-family: var(--hand);
  font-size: 16px;
}

@media (max-width: 460px) {
  .ctl { padding: 10px 16px; }
}
