/* bash.css - Bash: a classic paddle-and-ball brick-breaker.
   Reuses tokens from styles.css and game-shell.css's shell/bar/pause
   chrome, same as every other game. The whole interaction is dragging
   the paddle directly on the board (touch, mouse, or arrow keys) -- no
   joystick. The start overlay is lightened (.55) so the attract-mode
   demo behind it shows through, same posture as Slither/Spiders/
   Cubes/Vines; the game-over overlay keeps the darker .72. */

.bash-stage {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  gap: 8px;
}

.bash-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .bash-stats {
    padding: 0 var(--gs-bar-right-clear) 0 var(--gs-bar-left-clear);
    gap: 10px;
  }
  /* Same real-bug precedent as Numbers'/Slither's/Rodents'/Stacks' own
     mobile stat-row fix -- Coins is the least essential stat mid-play,
     so it's the one dropped when the shell's own button clearance
     squeezes this row. Best joins it here: with four visible stats
     (Score/Level/Balls/Coins) the row wraps at phone width, and Best
     is already shown on the game-over card, so it's the next-least
     essential mid-play. */
  .bash-stats .bash-stat-compact-hide {
    display: none;
  }
}

.bash-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  min-width: 56px;
}

.bash-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--muted);
}

.bash-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.bash-board-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.bash-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0b1226 0%, #131f3a 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  touch-action: none;
}

/* White flash on a level clear -- brief, driven from bash.js. */
.bash-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  border-radius: var(--radius);
}

/* -- Overlays (start/game-over) -- same pattern as every other game. */

.bash-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 13, 16, .72);
  border-radius: var(--radius);
}

.bash-overlay--start {
  background: rgba(10, 13, 16, .55);
}

.bash-overlay[hidden] { display: none; }

.bash-overlay-card {
  text-align: center;
  padding: 24px;
  max-width: 340px;
}

.bash-overlay-title {
  font-family: Georgia, serif;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 8px;
}

.bash-overlay-text {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}
