/* Memory — Manu Arcade No. XI
   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 size selector mirrors the toggle look but reads as a segmented group. */
.sizes { display: inline-flex; gap: 6px; }
.size {
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .12em;
  font-size: 12px; color: var(--ink-light); background: transparent;
  border: 1px solid rgba(122,104,80,.35); padding: 6px 10px; cursor: pointer;
  border-radius: 6px;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.size:hover { color: var(--oxblood); border-color: rgba(90,26,31,.4); }
.size[aria-pressed="true"] {
  color: var(--parchment); background: var(--oxblood); border-color: var(--oxblood);
}

/* The framed board holds the card grid. */
.board-frame {
  width: min(560px, 94vw);
  display: flex;
  justify-content: center;
}
#board {
  display: block;
  touch-action: manipulation;
  cursor: pointer;
  border-radius: 6px;
  max-width: 100%;
  /* A faint candle-glow vignette behind the canvas pixels. */
  background:
    radial-gradient(120% 80% at 50% 16%, rgba(227,183,84,.10), rgba(227,183,84,0) 60%),
    linear-gradient(180deg, #1b1410 0%, #221a12 54%, #2a2015 100%);
}

/* Instruction caption floats over the board until the first flip. */
.hint-overlay {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 5%, 30px);
  transform: translateX(-50%);
  margin: 0;
  width: max-content;
  max-width: 86%;
  text-align: center;
  font-family: var(--hand);
  font-style: italic;
  font-size: clamp(14px, 3.6vw, 17px);
  color: var(--gold-bright);
  text-shadow: 0 1px 0 rgba(0,0,0,.55), 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);
}

/* Seal "won" flourish keeps a tiny tactile nod on deal/win. */
.seal-face { line-height: 1; transition: transform .3s var(--ease); }
.seal.won { background: radial-gradient(circle at 38% 32%, var(--gold-bright), var(--gold) 55%, var(--gold-deep) 100%); }
.seal:active .seal-face { transform: rotate(90deg); }

@media (max-width: 420px) {
  .hud { gap: 10px; }
  .sizes { gap: 4px; }
  .size { padding: 6px 8px; letter-spacing: .08em; }
}
