/* ═══════════════════════════ DESIGN TOKENS ═══════════════════════════ */

:root {
  /* === Brand Colors (Pink/Purple) === */
  --brand-pink: #ff6b9d;
  --brand-pink-light: #ffe4f0;
  --brand-purple: #a855f7;
  --brand-purple-light: #f3e8ff;
  --brand-gradient: linear-gradient(135deg, #ff6b9d, #a855f7);

  /* === Semantic Colors === */
  --bg-primary: #fdf8ff;
  --bg-card: #ffffff;
  --bg-subtle: #faf5ff;
  --text-primary: #1e2a4a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-disabled: #d1d5db;
  --border-default: #e5e7eb;
  --border-hover: var(--brand-purple);

  /* === Skin Type Theme (dynamic override via JS) === */
  --skin-primary: var(--brand-pink);
  --skin-secondary: var(--brand-purple);
  --skin-light: var(--brand-pink-light);
  --skin-gradient: var(--brand-gradient);
  --skin-text-on-gradient: #ffffff;

  /* === Layout === */
  --container-max: 680px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50px;

  /* === Typography Scale === */
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 2rem;
  --text-3xl: 2.25rem;

  /* === Shadow Scale (purple-tinted) === */
  --shadow-1: 0 1px 2px rgba(168,85,247,.06), 0 1px 3px rgba(168,85,247,.1);
  --shadow-2: 0 2px 12px rgba(168,85,247,.12);
  --shadow-3: 0 4px 20px rgba(168,85,247,.16);
  --shadow-4: 0 6px 28px rgba(168,85,247,.22);
  --shadow-5: 0 8px 32px rgba(168,85,247,.25);

  /* === Easing === */
  --ease-out-3: cubic-bezier(.25, .46, .45, .94);
  --ease-out-5: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out-2: cubic-bezier(.45, .05, .55, .95);
  --ease-spring-3: cubic-bezier(.5, 1.25, .75, 1.25);

  /* === Legacy Aliases === */
  --pink: var(--brand-pink);
  --pink-lt: var(--brand-pink-light);
  --purple: var(--brand-purple);
  --purple-lt: var(--brand-purple-light);
  --navy: var(--text-primary);
  --dark: var(--text-primary);
  --gray: var(--text-secondary);
  --bg: var(--bg-primary);
  --white: var(--bg-card);
  --radius: var(--radius-md);
  --shadow: var(--shadow-2);
}

/* ═══════════════════════════ RESET ═══════════════════════════ */

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

/* ═══════════════════════════ TYPOGRAPHY ═══════════════════════════ */

body {
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Quicksand', 'Be Vietnam Pro', sans-serif;
}

/* ═══════════════════════════ APP WRAPPER ═══════════════════════════ */

#app {
  width: 100%;
  max-width: var(--container-max);
  padding: 0 16px 60px;
  min-height: 100vh;
}

/* ═══════════════════════════ SCREEN SYSTEM ═══════════════════════════ */

.screen { display: none; animation: fadeUp .45s var(--ease-out-5) both; }
.screen.active { display: block; }

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

/* ═══════════════════════════ FOOTER ═══════════════════════════ */

footer {
  width: 100%;
  background: var(--bg-card);
  border-top: 1px solid #f1f5f9;
  padding: 20px 16px;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: auto;
}
footer a { color: var(--brand-purple); text-decoration: none; font-weight: 700; }

/* ═══════════════════════════ ACCESSIBILITY ═══════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
