/* Vändbricka page – the game box itself is in css/game-stage.css, the look shared with the other robot games
   (names at the top, bubbles, menus, big text, back button) in css/holo-games.css. The board is drawn on the canvas. */

/* Black and white discs (owner, Oct 2026): black = a light white ring with nothing inside, white = a light white edge
   fading a little towards the middle. The names' dots, the bubbles and the menus' colour buttons look the same (the
   variables are explained at the top of css/holo-games.css). */
.holo-stage {
  --colour-a: #ffffff;
  --colour-a-dot: radial-gradient(circle, #030208 50%, #fff 58%);
  --colour-a-fill: #05040f;
  --colour-a-ink: #fff;
  --colour-b: #ffffff;
  --colour-b-dot: radial-gradient(circle, rgba(255, 255, 255, 0.55), #fff 72%);
  --colour-b-fill: #ffffff;
  --colour-b-ink: #0e0a24;
}

/* Phones held upright: a taller box, so the board can be bigger */
@media (max-aspect-ratio: 1/1) {
  .stage {
    --aspect: 4 / 5;
  }
}

/* How many discs each side has, in the name box (it pops a little when it changes) */
.vb-count {
  flex: none;
  min-width: 1.6em;
  margin-left: 0.15rem;
  padding: 0 0.3em;
  font-style: normal;
  font-weight: 900;
  text-align: center;
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(255, 233, 77, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.vb-count.pop {
  animation: vb-pop 0.25s ease-out;
}

@keyframes vb-pop {
  from { transform: scale(1.35); }
  to { transform: scale(1); }
}

/* A player who must pass: their name box shakes "no" and dims while "PASS!" shows (vandbricka.js afterMove) */
.holo-side.is-passed {
  opacity: 0.55;
  animation: vb-no 0.45s ease-in-out 2;
}

@keyframes vb-no {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
