/* ==============================================================
   打砖块 · 游戏专属样式
   选择器统一以 .g-breakout 前缀限定
   ============================================================== */

.g-breakout {
  gap: 10px;
}

/* ------------------------------ 顶部数据 ------------------------------ */

.g-breakout .bo-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: none;
}
.g-breakout .bo-hud-i {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.g-breakout .bo-k { font-size: 10px; color: var(--faint); letter-spacing: 0.04em; }
.g-breakout .bo-v {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* ------------------------------ 画布 ------------------------------ */

.g-breakout .bo-board {
  position: relative;
  width: min(100%, 480px);
  width: min(100%, 480px, calc((100dvh - 240px) * 0.75));
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080d13;
  box-shadow: 0 24px 54px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.g-breakout .bo-canvas-host {
  position: absolute;
  inset: 0;
}
.g-breakout .bo-canvas-host canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* 暂停遮罩 */
.g-breakout .bo-mask {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(6, 10, 16, 0.76);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  text-align: center;
  animation: boFade 0.18s ease both;
}
.g-breakout .bo-mask-t { font-size: 16px; font-weight: 700; letter-spacing: 0.06em; }

/* 底部提示 */
.g-breakout .bo-hint {
  flex: none;
  text-align: center;
  font-size: 11px;
  padding-top: 2px;
}

/* 头部按钮热区 */
.g-breakout .btn.sm { min-height: 40px; }

@keyframes boFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ------------------------------ 适配 ------------------------------ */

@media (max-height: 710px) {
  .g-breakout { gap: 8px; }
  .g-breakout .bo-hud-i { min-height: 28px; }
  .g-breakout .bo-hint { display: none; }
}

@media (max-width: 365px) {
  .g-breakout .bo-v { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .g-breakout .bo-mask { animation: none; }
}
