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

.bubbles-ui {
  border: 1px solid rgba(132, 173, 255, 0.42);
  border-radius: 1.15rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 14% 0%, rgba(37, 236, 255, 0.2), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(255, 79, 198, 0.2), transparent 30%),
    linear-gradient(160deg, rgba(30, 27, 97, 0.94), rgba(18, 36, 86, 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(126, 168, 245, 0.4);
  border-radius: 0.8rem;
  background: rgba(17, 30, 74, 0.52);
  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: #d7e6ff;
}

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

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

.bubbles-canvas-wrap {
  margin-top: 0.95rem;
  border: 1px solid rgba(132, 173, 255, 0.42);
  border-radius: 1rem;
  padding: 0.5rem;
  background:
    linear-gradient(150deg, rgba(210, 226, 255, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(150deg, rgba(53, 24, 110, 0.69), rgba(20, 44, 97, 0.76));
  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;
  }
}
