/* Breakout — archetype arcade (design/Jeu - Casse-briques). The play area sits on
   the shared "arcade surface": a warm deep-ink band, the same in light and dark,
   so every arcade game reads as one console. Stats live in the page header (the
   game takes over .lz-stats); the touch controls and the keyboard hint sit below
   the band on the normal page ground. Scoped under .bk-root. */

.bk-root {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  inline-size: 100%; color: var(--color-text);
  user-select: none; -webkit-user-select: none;
}

/* The arcade surface: a full-width warm-ink band. Same in both themes. */
.bk-stage {
  inline-size: 100%; box-sizing: border-box;
  background: #211d19; border-block: 1px solid #12100d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: var(--space-4) 0;
  display: flex; justify-content: center;
}
.bk-play { position: relative; inline-size: 100%; max-inline-size: 460px; padding-inline: var(--space-4); box-sizing: border-box; }
.bk-canvas { display: block; inline-size: 100%; touch-action: none; }

.bk-overlay {
  position: absolute; inset: 0 var(--space-4); display: grid; place-items: center;
  text-align: center; padding: 0 8%;
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.1rem, 4.5vw, 1.6rem);
  color: #f2efe6; background: rgba(18, 16, 13, 0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.18s ease;
}
.bk-overlay.show { opacity: 1; }

/* Controls + hint sit BELOW the band, on the page ground (theme-following). */
.bk-controls { display: flex; gap: var(--space-2); align-items: stretch; inline-size: 100%; max-inline-size: 460px; justify-content: center; }
.bk-btn {
  appearance: none; flex: none; inline-size: 64px; min-block-size: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-neutral-400); border-radius: var(--radius-md);
  background: transparent; color: var(--color-neutral-800);
  font-size: 1.05rem; cursor: pointer; touch-action: manipulation; box-sizing: border-box;
}
.bk-btn:hover { background: color-mix(in srgb, var(--color-text) 5%, transparent); }
.bk-btn:active { transform: translateY(1px); }
.bk-btn.bk-start { flex: 1; min-inline-size: 0; border-color: var(--color-accent); color: var(--color-accent-700); font-family: var(--font-heading); font-weight: 600; font-size: 1rem; }
:root[data-theme="dark"] .bk-btn { color: #d7d3d3; border-color: #56514b; }
:root[data-theme="dark"] .bk-btn.bk-start { color: var(--color-accent-400); border-color: var(--color-accent-400); }

.bk-hint { text-align: center; font-size: 12px; color: var(--color-neutral-600); max-inline-size: 460px; }

/* The difficulty chips are pulled up next to the title (see _takeOverHeader). */
.lz-variants.bk-inline { margin: 0; }

@media (prefers-reduced-motion: reduce) { .bk-overlay { transition: none; } .bk-btn:active { transform: none; } }
