/* 오늘의 학습 — 모바일 세로 우선, 큰 글씨·큰 터치 */

:root {
  --dl-bg: #eef7f3;
  --dl-card: #ffffff;
  --dl-ink: #102b27;
  --dl-muted: #4b6b64;
  --dl-accent: #0d9488;
  --dl-accent-deep: #0f766e;
  --dl-ok: #15803d;
  --dl-retry: #b45309;
  --dl-radius: 24px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--dl-bg);
  color: var(--dl-ink);
  font-family: "Noto Sans KR", Pretendard, sans-serif;
}

.dl-page {
  min-height: 100vh;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
}

.dl-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.dl-nav a {
  color: var(--dl-accent-deep);
  font-weight: 800;
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.dl-card {
  background: var(--dl-card);
  border-radius: var(--dl-radius);
  padding: 22px 18px 24px;
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.1);
}

.dl-kicker {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--dl-accent-deep);
  letter-spacing: 0.02em;
}

.dl-card h1 {
  font-family: "Jua", "Noto Sans KR", sans-serif;
  font-size: 1.7rem;
  line-height: 1.35;
  margin: 0 0 12px;
}

.dl-prompt {
  font-size: 1.5rem;
  line-height: 1.45;
  font-weight: 800;
  margin: 8px 0 16px;
}

.dl-muted {
  color: var(--dl-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.dl-visual {
  font-size: 2.2rem;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 12px;
  background: #f0fdfa;
  border-radius: 18px;
  margin-bottom: 14px;
  white-space: pre-wrap;
}

.dl-actions,
.dl-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.dl-btn,
.dl-choice,
.dl-speak,
.dl-band {
  min-height: 52px;
  border-radius: 16px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 12px 16px;
}

.dl-btn-primary {
  background: var(--dl-accent);
  color: #fff;
}
.dl-btn-primary:hover {
  background: var(--dl-accent-deep);
}
.dl-btn-ghost,
.dl-speak {
  background: #f0fdfa;
  color: var(--dl-accent-deep);
  border-color: #99f6e4;
}

.dl-choice {
  text-align: left;
  background: #f8fafc;
  border-color: #e2e8f0;
  font-size: 1.15rem;
}
.dl-choice-n {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e2e8f0;
  margin-right: 8px;
  font-size: 0.85rem;
}
.dl-choice.is-ok {
  border-color: var(--dl-ok);
  background: #dcfce7;
}
.dl-choice.is-retry {
  border-color: var(--dl-retry);
  background: #ffedd5;
}

.dl-feedback {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
}
.dl-feedback.is-ok {
  background: #dcfce7;
  color: #14532d;
}
.dl-feedback.is-retry {
  background: #ffedd5;
  color: #7c2d12;
}

.dl-bands {
  display: grid;
  gap: 10px;
}
.dl-band {
  background: #f8fafc;
  text-align: left;
  border-color: #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.dl-band strong {
  font-size: 1.15rem;
}
.dl-band span:last-child {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dl-muted);
}

.dl-number {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
}
.dl-number input {
  min-height: 52px;
  font-size: 1.4rem;
  border-radius: 14px;
  border: 2px solid #cbd5e1;
  padding: 8px 12px;
}

.dl-tts-bar {
  margin: 8px 0;
  font-size: 0.9rem;
}
.dl-tts-bar select {
  min-height: 44px;
  margin-left: 8px;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
}

.dl-parent {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--dl-muted);
}
.dl-parent summary {
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
}

.dl-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 800;
}
.dl-switch select {
  min-height: 44px;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  font: inherit;
}

.dl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 640px) {
  .dl-page {
    max-width: 520px;
    margin: 0 auto;
  }
  .dl-card h1 {
    font-size: 2rem;
  }
}
