/* Quantum Breakout — canvas 1280×720 en el stage 1920×1080 */

.break-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 20px 40px 40px;
  height: calc(100% - var(--vu-hud-h, 100px));
  box-sizing: border-box;
}

.break-stage {
  position: relative;
  width: 1280px;
  height: 720px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 40px rgba(192, 132, 252, 0.18);
  background: #05060f;
}

#game {
  position: relative;
  z-index: 1;
  display: block;
  width: 1280px;
  height: 720px;
  touch-action: none;
  cursor: none;
}

.play-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  font-variant-numeric: tabular-nums;
  padding: 12px 20px 14px;
  pointer-events: none;
  font-size: var(--type-body);
  color: var(--text-muted);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  background: linear-gradient(180deg, rgba(5, 6, 15, 0.96), rgba(5, 6, 15, 0.78) 70%, rgba(5, 6, 15, 0));
}

.play-hud strong {
  font-family: var(--font-display);
  color: var(--cyan);
  font-size: var(--type-meta);
}

.play-hud > * {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-hud[hidden] {
  display: none;
}

.game-shell[data-layout="mobile"] .play-hud {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overlay-panel {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  place-content: center;
  text-align: center;
  padding: 48px;
  background: linear-gradient(180deg, rgba(5, 6, 15, 0.28), rgba(5, 6, 15, 0.84));
  pointer-events: none;
}

.overlay-panel.is-open {
  display: grid;
  pointer-events: auto;
  animation: panel-in 0.28s ease;
}

.overlay-panel h1,
.overlay-panel h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: var(--type-title);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(192, 132, 252, 0.55);
}

.overlay-panel p {
  margin: 0 auto 22px;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: var(--type-body);
}

.final-score strong {
  font-family: var(--font-display);
  color: var(--cyan);
  font-size: 48px;
}

.save-note {
  min-height: 1.4em;
  color: var(--cyan) !important;
}

.overlay-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

kbd {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(0, 240, 255, 0.08);
  color: var(--cyan);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.game-shell[data-layout="mobile"] .break-wrap {
  height: auto;
  padding: 12px;
}

.game-shell[data-layout="mobile"] .break-stage,
.game-shell[data-layout="mobile"] #game {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.overlay-panel.is-open ~ *,
.overlay-panel.is-open {
  cursor: pointer;
}
