/* ═══════════════════════════════════════════
   ZONA GEMELOS 🎭 — Global (variables, reset, layout, fondo)
   ═══════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #08080f;
  --surface: rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.08);
  --accent: #8a5eff;
  --accent-light: #a78bff;
  --text: #ffffff;
  --text2: rgba(255,255,255,0.65);
  --text3: rgba(255,255,255,0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --font: -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ─── FONDO LILA CRYSTAL (AnimatedBg) ─── */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  will-change: transform;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  border: 0.5px solid rgba(180,130,255,0.1);
  will-change: transform, opacity;
}
#bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(180,130,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(100,50,200,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(138,94,255,0.05) 0%, transparent 70%);
  animation: glowPulse 8s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  0% { opacity: 0.4; }
  100% { opacity: 0.8; }
}

/* ─── LAYOUT PRINCIPAL ─── */
#app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* ─── PANTALLAS ─── */
#screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.screen-page {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.screen-page.active {
  display: flex;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(138,94,255,0.2); border-radius: 3px; }

@media (max-width: 400px) {
  .top-icon { width: 32px; height: 32px; font-size: 14px; }
  .msg { font-size: 11px; padding: 3px 7px; }
}
