/* =============================================================
   GAME: Pinball
   ============================================================= */
.board-pinball { display: flex; flex-direction: column; align-items: center; gap: 10px; outline: none; }
.pb-stage { position: relative; touch-action: none; -webkit-user-select: none; user-select: none; }
.pb-canvas {
  display: block; border-radius: 18px; background: #07020f;
  box-shadow: 0 0 0 2px #ff3df5, 0 0 30px rgba(255, 61, 245, .35);
}
.board-pinball:focus-visible .pb-canvas { box-shadow: 0 0 0 3px #fff, 0 0 30px rgba(255, 61, 245, .55); }
.pb-msg {
  position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); width: max-content; max-width: 80%;
  padding: 10px 16px; border-radius: 12px; background: rgba(16, 4, 26, .86); color: #ffe0fd; font-weight: 700; font-size: .92rem; text-align: center;
  box-shadow: 0 0 0 1px rgba(255, 61, 245, .55); pointer-events: none;
}
.pb-msg[hidden] { display: none; }
.pb-num { color: #ff9cf6; font-variant-numeric: tabular-nums; }
.pb-mult { box-shadow: 0 0 0 1px #4dc3ff, 0 0 12px rgba(77, 195, 255, .35); }
.pb-mult .pb-num { color: #8fdcff; }
.pb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }

/* on-screen buttons: phones and tablets only */
.pb-pad { display: none; grid-template-columns: 1fr 1fr 1fr; gap: 8px; width: min(100%, 380px); touch-action: none; }
.pb-key {
  display: grid; place-items: center; height: 58px; border: 0; border-radius: 16px; cursor: pointer; color: #ff9cf6;
  font: 800 .9rem var(--font-head, system-ui); text-transform: uppercase; letter-spacing: .04em;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255, 61, 245, .45), 0 4px 0 rgba(0, 0, 0, .35);
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.pb-key svg { width: 34px; height: 34px; fill: currentColor; }
.pb-key-launch { color: #ffd23f; box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .5), 0 4px 0 rgba(0, 0, 0, .35); }
.pb-key.down { transform: translateY(2px); filter: brightness(1.35); }
@media (pointer: coarse) { .pb-pad { display: grid; } }
