@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Nunito+Sans:wght@400;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg-deep: #1B1030;
  --surface: #271A45;
  --surface-border: #3A2A5C;
  --chip: #3A2A5C;
  --chip-border: #4A3B6B;
  --text: #F7F3ED;
  --muted: #C9BEE0;
  --faint: #8B7FA8;
  --gold: #FFC145;
  --pink: #FF6B6B;
  --teal: #4ECDC4;
  --purple: #B98CE0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(ellipse at top, var(--surface) 0%, var(--bg-deep) 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.font-display { font-family: 'Baloo 2', system-ui, sans-serif; }
.font-mono { font-family: 'IBM Plex Mono', monospace; }

.wrap {
  width: 100%;
  max-width: 440px;
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
}

.header { padding-bottom: 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 24px;
}

.btn-primary {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  border: none;
  border-radius: 16px;
  padding: 14px 24px;
  width: 100%;
  background: linear-gradient(135deg, var(--pink) 0%, var(--gold) 100%);
  color: var(--bg-deep);
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(255,107,107,0.5);
  transition: transform 0.15s ease;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  background: #4A3B6B;
  color: #8B7FA8;
  box-shadow: none;
  cursor: not-allowed;
}

.chip {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 13.5px;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--chip);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.chip:active { transform: scale(0.95); }
.chip.selected { background: var(--gold); color: var(--bg-deep); font-weight: 700; }

.text-input {
  width: 100%;
  border-radius: 16px;
  padding: 12px 16px;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 15px;
  background: var(--chip);
  border: 1px solid var(--chip-border);
  color: var(--text);
  outline: none;
}
.text-input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

.spacer { flex: 1; }

.footnote {
  font-size: 10.5px;
  color: #5E5178;
  text-align: center;
  line-height: 1.5;
  margin-top: 8px;
}

.progress-row { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; }
.progress-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

@keyframes floatY { 0%,100% { transform: translateY(0px);} 50% { transform: translateY(-8px);} }
@keyframes popIn { 0% { transform: scale(0.7); opacity:0;} 100% { transform: scale(1); opacity:1;} }
@keyframes fallDown { 0% { transform: translateY(-20px); } 100% { transform: translateY(340px); } }
@keyframes glowPulse { 0%,100% { box-shadow: 0 0 0px rgba(255,193,69,0.0);} 50% { box-shadow: 0 0 24px rgba(255,193,69,0.55);} }

.page-anim { animation: popIn 0.35s ease; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

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