
:root {
  --primary: #6c5ce7;
  --primary-dark: #5145c7;
  --accent: #00b894;
  --bg: #f7f6ff;
  --text: #222;
  --muted: #666;
  --card: #fff;
  --danger: #d63031;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #efeaff 0%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
}
button, input, select { font: inherit; }
button { cursor: pointer; border: 0; }
.app-shell {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  padding: max(18px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
header h1 { margin: 4px 0 0; font-size: clamp(24px, 7vw, 34px); line-height: 1.05; }
.eyebrow, .label { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stars { background: #fff; padding: 10px 14px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.08); font-weight: 800; white-space: nowrap; }
.screen { display: none; }
.screen.active { display: block; }
.hero-card, .lesson-card, .parent-card {
  background: var(--card);
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 12px 35px rgba(61, 49, 130, .12);
}
.hero-card { text-align: center; }
.mascot { font-size: 76px; }
.hero-card h2 { margin: 4px 0; font-size: 28px; }
.hero-card p { color: var(--muted); font-size: 17px; line-height: 1.5; }
.primary, .secondary, .danger {
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 800;
}
.primary { background: var(--primary); color: #fff; }
.primary:active { background: var(--primary-dark); }
.secondary { background: #ece9ff; color: var(--primary-dark); }
.danger { background: #ffe5e5; color: var(--danger); }
.full { width: 100%; }
.small { padding: 9px 12px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.profile-card {
  background: #fff;
  border-radius: 20px;
  padding: 18px 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  color: var(--text);
}
.profile-card.selected { outline: 3px solid var(--primary); }
.profile-card span, .profile-card strong, .profile-card small { display: block; }
.avatar { font-size: 46px; margin-bottom: 5px; }
.profile-card small { color: var(--muted); margin-top: 4px; }
.top-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-bottom: 14px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.08); font-size: 22px; }
.lesson-card { text-align: center; }
.lesson-emoji { font-size: 86px; margin-bottom: 6px; }
.hindi-text { font-size: clamp(30px, 9vw, 46px); font-weight: 900; margin: 8px 0 12px; }
.listen-btn { background: #ecfff9; color: #007a62; padding: 10px 14px; border-radius: 12px; font-weight: 800; }
.divider { height: 1px; background: #eee; margin: 22px 0; }
.mic-btn {
  width: 98px; height: 98px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 46px;
  box-shadow: 0 12px 24px rgba(108,92,231,.35);
}
.mic-btn.listening { animation: pulse 1s infinite; background: #e84393; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.status { margin-top: 14px; color: var(--muted); font-weight: 700; }
.heard { min-height: 28px; margin-top: 8px; font-size: 18px; }
.answer-box { margin-top: 20px; background: #f7f6ff; padding: 18px; border-radius: 18px; }
.answer-box button { margin-top: 10px; width: 100%; }
.english-text { font-size: 31px; font-weight: 900; margin: 7px 0; }
.hidden { display: none; }
.progress-wrap { margin-top: 18px; }
.progress-label { display:flex; justify-content:space-between; font-size: 13px; font-weight: 700; color: var(--muted); }
.progress { height: 12px; background: #dedaf8; border-radius: 999px; overflow: hidden; margin-top: 7px; }
.progress > div { height: 100%; width: 10%; background: var(--accent); transition: width .3s; }
.parent-card { margin-bottom: 14px; }
.parent-card h3 { margin-top: 0; }
.parent-card label { display: block; margin: 12px 0 5px; font-weight: 800; }
.parent-card input, .parent-card select {
  width: 100%; padding: 13px; border-radius: 12px; border: 1px solid #ddd; background: #fff;
}
.parent-card .primary { margin-top: 15px; }
.parent-message { min-height: 24px; margin-top: 10px; color: #007a62; font-weight: 700; }
@media (max-width: 380px) {
  .profile-grid { grid-template-columns: 1fr; }
  .lesson-card { padding: 18px; }
}
