/* Bubbels (the bubble shooter): level select, HUD and board. Shared look lives in css/style.css. */

/* ---------- HUD ---------- */
.hud-mid { flex: 1; min-width: 0; text-align: center; line-height: 1.1; }
.hud-level { font-size: 1.05rem; font-weight: var(--bz-weight-head); color: var(--bz-ink-soft); }

#btn-mute .ico-off { display: none; }
#btn-mute[aria-pressed="true"] .ico-on { display: none; }
#btn-mute[aria-pressed="true"] .ico-off { display: block; }

/* ---------- levels ---------- */
.play-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 4px 0 22px; }
.random-jump { min-height: 48px; padding: 0 20px; } /* a finger-sized pill (it was 24 px tall) */
.random-jump svg { width: 22px; height: 22px; fill: currentColor; }
.random-head { scroll-margin-top: 12px; }
/* the level cells, the random cards and the scroll area are the shell's (css/style.css) */
/* Bubbels' random section, under the fixed levels */
.random-head { max-width: 560px; margin: 28px auto 14px; font-size: var(--bz-text-l); font-weight: var(--bz-weight-brand); color: var(--bz-ink-soft); }

/* ---------- game ---------- */
/* keep pause and mute next to the board instead of in the far corners of a wide screen */
.hud { width: min(100%, calc(var(--board-w, 100vw) + 32px)); margin: 0 auto; }

#stage {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 6px;
}
#game {
  display: block;
  touch-action: none;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(59, 47, 168, 0.18);
  cursor: crosshair;
}

/* phone held sideways (browser only; the installed app is portrait): HUD becomes a side column
   so the board gets the full height */
@media (orientation: landscape) and (max-height: 520px) {
  #screen-game { flex-direction: row; }
  .hud {
    width: auto;
    margin: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 6px 10px 12px;
  }
  .hud-mid { flex: 0; }
  #stage { padding: 6px 0; }
}
