.bubbles-page .game-panel {
  display: grid;
  gap: 1rem;
}

.bubbles-ui {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1.15rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 118, 189, 0.22), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(87, 239, 255, 0.18), transparent 30%),
    linear-gradient(160deg, rgba(40, 18, 95, 0.94), rgba(27, 37, 89, 0.92));
}

.bubbles-topbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: center;
}

.bubbles-stat {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.09);
  padding: 0.55rem 0.7rem;
  display: grid;
  gap: 0.22rem;
}

.bubbles-stat span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e7f3ff;
}

.bubbles-stat strong {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.02rem;
}

.bubbles-hint {
  margin: 0.8rem 0 0;
  color: #d7edff;
  font-size: 0.9rem;
}

.bubbles-canvas-wrap {
  margin-top: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1rem;
  padding: 0.5rem;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    linear-gradient(150deg, rgba(68, 17, 111, 0.65), rgba(24, 42, 88, 0.72));
  overflow: hidden;
}

#bubblesCanvas {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 0.85rem;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

@media (max-width: 980px) {
  .bubbles-page .game-panel {
    padding: 0.8rem;
  }
}

@media (max-width: 720px) {
  .bubbles-topbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bubbles-hint {
    font-size: 0.84rem;
  }

  .bubbles-canvas-wrap {
    padding: 0.38rem;
  }
}
