.bubble-page .mini-main { width: min(100%, 860px); }
.bubble-panel { background: radial-gradient(circle at 50% 0, #512093 0, #1a0b45 48%, #0b0627 100%); }
.bubble-intro-art { position: relative; width: 178px; height: 100px; margin: 0 auto 14px; }
.bubble-intro-art i { position: absolute; width: 52px; height: 52px; border: 2px solid #fff8; border-radius: 50%; box-shadow: inset -9px -11px 12px #0004, 0 0 18px currentColor; }
.bubble-intro-art i::before { content: ''; position: absolute; width: 16px; height: 8px; left: 10px; top: 8px; border-radius: 50%; transform: rotate(-35deg); background: #fff9; }
.bubble-intro-art i:nth-child(1) { left: 21px; top: 6px; color: #ff45bc; background: #ff45bc; }
.bubble-intro-art i:nth-child(2) { left: 77px; top: 6px; color: #34dfff; background: #34dfff; }
.bubble-intro-art i:nth-child(3) { left: 49px; top: 49px; color: #ffbf39; background: #ffbf39; }
.bubble-intro-art i:nth-child(4) { left: 105px; top: 49px; color: #ab6aff; background: #ab6aff; }
.bubble-intro-art i:nth-child(5) { left: 133px; top: 6px; color: #88e65f; background: #88e65f; }
.bubble-choose-title { margin: 22px 0 10px; font-size: 16px; }
.bubble-hero-choices { display: flex; justify-content: center; gap: 12px; margin-bottom: 17px; }
.bubble-hero-choice { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 132px; padding: 7px 7px 10px; border: 2px solid #725aa0; border-radius: 14px; background: #190c3c; color: #fff; font: inherit; font-weight: 800; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.bubble-hero-choice canvas { display: block; width: 112px; height: 104px; }
.bubble-hero-choice:hover { transform: translateY(-2px); border-color: #36e9ff; }
.bubble-hero-choice:focus-visible { outline: 3px solid #36e9ff; outline-offset: 3px; }
.bubble-hero-choice[aria-pressed="true"] { border-color: #36e9ff; box-shadow: 0 0 0 2px #36e9ff44, 0 0 22px #36e9ff55; }
.bubble-intro #bubbleStart:disabled { opacity: .5; cursor: not-allowed; }
.bubble-play { display: flex; flex-direction: column; height: 100%; max-width: 570px; margin: auto; }
.bubble-hud { flex: 0 0 auto; }
.bubble-stage { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-height: 0; }
.bubble-stage canvas { display: block; width: auto; max-width: 100%; height: auto; max-height: min(72svh, 650px); aspect-ratio: 390 / 650; border: 2px solid var(--arcade-cyan); border-radius: 15px; box-shadow: 0 0 25px #36e9ff55; background: #10062e; touch-action: none; cursor: crosshair; }
.bubble-panel.is-active .bubble-stage canvas { height: 100%; max-height: 100%; }
.bubble-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 10px; }
.bubble-controls span { color: var(--muted); font-size: 11px; text-align: center; }
.bubble-controls .btn { min-height: 44px; }
.bubble-page .mini-feedback { min-height: 22px; margin: 8px 0 0; }
@media (max-width: 540px) {
  .bubble-panel { padding: 15px; }
  .bubble-panel.is-active { padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); }
  .bubble-panel .mini-hud > span { min-width: 72px; padding: 5px; }
  .bubble-panel .mini-hud strong { font-size: 14px; }
  .bubble-controls span { display: none; }
}
@media (max-height: 650px) {
  .bubble-panel .mini-toolbar { margin-bottom: 2px; }
  .bubble-panel .mini-hud { margin-bottom: 4px; }
  .bubble-controls { margin-top: 3px; }
  .bubble-page .mini-feedback { margin-top: 3px; font-size: 11px; }
}
