/* Cube Invasion -- the few things that are this game's own.

   Bars, readout, stage, dialogs and the screens are css/games/arcade.css,
   screens.css, settings.css and handheld.css, as in every arcade game. The
   table itself is drawn on the canvas. */

/* The table is tall and narrow (600 by 1120), so it is a column in the middle
   of the window rather than something to stretch. */
.ci-main {
  align-self: center;
  flex: 1 1 auto;
  width: min(100%, 31rem);
}

.ci-stage { flex: 1; min-width: 0; }

/* `hidden` loses to .hh-dock button's display:flex, so say it again. */
.hh-dock button[hidden] { display: none; }

/* A phone: coins are news on the first screen and the tally, not in play. */
@media (pointer: coarse) and (max-width: 720px) {
  .hh-app .ci-coins { display: none; }
}

/* ---------------------------------------------------- the settings pickers

   A row of swatches rather than a <select>: a cube look is something to SEE.
   Each swatch is a canvas the script paints with the real painter. */
.ar-setting--stack { display: grid; }

.ci-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ci-pick {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 4.6rem;
  padding: 8px 8px 6px;
  border: 2px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.ci-pick canvas {
  display: block;
  width: 56px;
  height: 56px;
}

.ci-pick[aria-checked="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.ci-pick:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
