*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --text: #f0ede8;
  --muted: #8a8578;
  --panel-bg: rgba(10, 10, 15, 0.97);
}

/* Light mode
[data-theme="light"] {
  --bg: #f5f5f5;
  --text: #1a1a1a;
  --muted: #555555;
  --panel-bg: rgba(240, 255, 255, 0.95);
} */

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'HarmonyOS Sans', 'HarmonyOS Sans SC', sans-serif;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

#scene {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
}

#waveCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Burbujas ── */
.bubble-el {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari clip fix */
  mask-image: radial-gradient(white, black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.bubble-label {
  font-family: 'HarmonyOS Sans', 'HarmonyOS Sans SC', sans-serif;
  font-weight: 700;
  color: white;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.15;
}

.bubble-emoji {
  pointer-events: none;
  line-height: 1;
  margin-bottom: 4px;
}

/* ── Header ── */
#header-name {
  position: fixed;
  top: 32px; left: 40px;
  font-family: 'HarmonyOS Sans', 'HarmonyOS Sans SC', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.5px;
  z-index: 10;
  opacity: 0.9;
}

#header-sub {
  position: fixed;
  top: 58px; left: 40px;
  font-size: 13px;
  color: var(--muted);
  z-index: 10;
  letter-spacing: 0.5px;
}

#hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--muted);
  z-index: 10;
  letter-spacing: 0.3px;
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 600px) {
  #header-name { font-size: 18px; }
}

