/* base.css — GlowAI Reset + Typography + Animations
   Aloha from Pearl City! */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: var(--bg);
  font-family: var(--font-body);
  color: #fff;
  position: fixed; inset: 0;
}

/* ── Keyframe animations ── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 0.85; }
}

@keyframes rPulse {
  0%, 100% { transform: scale(1);    opacity: 0.55; }
  50%      { transform: scale(1.04); opacity: 1; }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

/* ── Ring light — studio photo border ── */

#ring-light {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  box-shadow:
    inset 0 0 38px 14px rgba(255,255,255,0.32),
    inset 0 0 80px 30px rgba(255,255,255,0.12),
    inset 0 0 160px 60px rgba(255,220,200,0.06);
  opacity: 0;
  transition: opacity 0.6s ease;
}
#ring-light.active {
  animation: ringPulse 4s ease-in-out infinite;
}

/* ── Screen system ── */

.screen {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center; flex-direction: column;
}
.screen.active { display: flex; }

/* ── Toast ── */

#toast {
  position: fixed; bottom: 88px; left: 50%;
  transform: translateX(-50%) translateY(18px);
  background: rgba(20,20,20,0.95); color: #fff;
  padding: 10px 22px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500;
  opacity: 0; transition: all 0.28s; z-index: 9999;
  white-space: nowrap; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Error banner ── */

.err-banner {
  background: rgba(255,50,50,0.1);
  border: 1px solid rgba(255,50,50,0.3);
  color: #c00;
  border-radius: 10px;
  padding: 10px var(--space-md);
  font-size: 13px; line-height: 1.5;
  margin-bottom: 12px;
}
.err-banner.hidden { display: none; }

/* ── Hidden utility ── */
.hidden { display: none !important; }
