/* Echo — Manu Arcade No. XXIII
   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 sconce-count selector reads as a segmented group, like Memory's sizes. */
.modes { display: inline-flex; gap: 6px; }
.mode {
  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);
}
.mode:hover { color: var(--oxblood); border-color: rgba(90,26,31,.4); }
.mode[aria-pressed="true"] {
  color: var(--parchment); background: var(--oxblood); border-color: var(--oxblood);
}

/* The framed board holds the ring of sconces. */
.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(110% 90% at 50% 50%, rgba(231,200,120,.10), rgba(231,200,120,0) 60%),
    radial-gradient(120% 120% at 50% 50%, #221a12 0%, #1b1410 70%, #15100a 100%);
}

/* Status caption floats over the bottom of the ring (Watch / Your turn). */
.status-overlay {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 4%, 28px);
  transform: translateX(-50%);
  margin: 0;
  width: max-content;
  max-width: 88%;
  text-align: center;
  font-family: var(--hand);
  font-style: italic;
  font-size: clamp(14px, 3.6vw, 18px);
  color: var(--gold-bright);
  text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 0 14px rgba(231,200,120,.35);
  pointer-events: none;
  transition: opacity .4s var(--ease);
}

/* Seal flips to a darkened state on a lost run; the spin nod stays. */
.seal-face { line-height: 1; transition: transform .3s var(--ease); }
.seal.lost { background: radial-gradient(circle at 38% 32%, #4a2226, #3d0f12 55%, #2a0a0c 100%); }
.seal:active .seal-face { transform: rotate(90deg); }

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