:root {
  --bg: #fef9ef;
  --card-bg: #ffffff;
  --text: #2b2d42;
  --accent: #ff6b6b;
  --success: #06d6a0;
  --warn: #ffd166;
  --shadow: 0 6px 0 rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #fff6e5 0%, #fef9ef 40%);
  color: var(--text);
  min-height: 100vh;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin: 6px 0 14px;
  color: var(--accent);
}

.practice-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 28px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  width: 100%;
}

.phrase-emoji { font-size: 56px; margin-bottom: 6px; }
.phrase-emoji.celebrate { animation: pop 0.4s ease; }
@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.hebrew-word {
  font-size: 44px;
  font-weight: 800;
  direction: rtl;
  margin: 6px 0;
}

.translit { font-size: 18px; color: #888; margin-bottom: 4px; }
.english { font-size: 20px; font-weight: 600; margin-bottom: 20px; }

.round-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: none;
  font-size: 34px;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.round-btn.mic { background: var(--accent); }
.round-btn.mic.recording { animation: pulse 1s infinite; background: #d7263d; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(215,38,61,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(215,38,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(215,38,61,0); }
}

.feedback {
  min-height: 50px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 16px;
  padding: 14px;
  margin-top: 6px;
}

.feedback.correct { background: #e6fff6; color: #06a579; }
.feedback.retry { background: #fff0f0; color: #d7263d; }
.feedback.idle { background: #f4f4f8; color: #999; }

.pill-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  background: #eee;
  color: var(--text);
}

.pill-btn.primary {
  background: var(--success);
  color: white;
}

.hint {
  font-size: 13px;
  color: #aaa;
  margin-top: 8px;
}

.score-bar {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 15px;
  color: #aaa;
}

/* ---- Consent screen ---- */
.consent-text {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
  text-align: left;
  margin: 14px 0;
}

.consent-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
  cursor: pointer;
}
.consent-check-row input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }

.consent-input {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #eee;
  margin-bottom: 12px;
  font-family: inherit;
  color: var(--text);
}
.consent-input:focus { outline: none; border-color: var(--accent); }
