:root {
  --ink: #121826;
  --muted: #5f6b7a;
  --line: #e7ecf3;
  --soft: #f6f8fb;
  --brand: #0f6bff;
  --accent: #ffcf33;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--soft);
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(20px, 6vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.category-link.active,
.category-link:hover {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.login-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  font-size: 14px;
  font-weight: 950;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.login-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.category-link:active,
.login-link:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: inset 0 0 0 999px rgba(15, 107, 255, 0.08);
}

.page {
  padding: 56px clamp(20px, 6vw, 72px) 90px;
}

.page-hero {
  max-width: 1120px;
  margin: 0 auto 24px;
  border-radius: 8px;
  padding: clamp(30px, 6vw, 64px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 23, 57, 0.94), rgba(15, 107, 255, 0.74)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80")
      center / cover;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #101828;
  background: var(--accent);
  font-size: 14px;
  font-weight: 950;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 1;
}

.page-hero p:last-child {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 700;
}

.mission-grid {
  display: grid;
  max-width: 1120px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.mission-grid article {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.mission-grid b {
  color: var(--brand);
  font-size: 14px;
}

.mission-grid h2 {
  margin: 14px 0 10px;
  font-size: 24px;
}

.mission-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 650;
}

.typing-mission,
.writing-board {
  max-width: 1120px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 30px);
  background: #fff;
}

.mission-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.mission-status span,
.sentence-label,
.typing-field span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.mission-status strong {
  display: block;
  margin-top: 4px;
  color: var(--brand);
  font-size: 28px;
}

.reset-day-btn {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.sentence-box {
  border-radius: 8px;
  padding: clamp(20px, 4vw, 28px);
  background: #eef5ff;
}

.sentence-box h2 {
  margin: 8px 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
}

.sentence-ko {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.typing-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.typing-field input,
.writing-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  font: inherit;
  font-weight: 700;
  background: #fff;
}

.typing-field input {
  min-height: 54px;
}

.typing-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.mission-submit {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--brand);
  font: inherit;
  font-weight: 950;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.reset-day-btn:active,
.mission-submit:active:not(:disabled) {
  transform: translateY(2px) scale(0.98);
  filter: brightness(0.94);
}

.mission-submit:disabled {
  border-color: #c8d1de;
  background: #c8d1de;
}

.typing-actions p,
.writing-message {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.speaking-mission {
  border-color: rgba(15, 107, 255, 0.24);
}

.speech-controls {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.mission-audio-player {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 14px;
}

.chrome-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.chrome-open-link[hidden] {
  display: none;
}

.audio-btn {
  border-color: #101828;
  background: #101828;
}

.start-btn {
  min-width: 120px;
}

.speech-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  margin-top: 16px;
}

.speech-result > div {
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f6f8fb;
}

.speech-result span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.speech-result p {
  margin: 0;
  line-height: 1.5;
  font-weight: 800;
}

.speech-result strong {
  color: var(--brand);
  font-size: 30px;
}

.speech-message {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.5;
}

.mission-shortcuts {
  margin-top: 18px;
}

.mission-icon-card {
  min-height: 210px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 107, 255, 0.12);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.mission-icon-card:active {
  transform: translateY(3px) scale(0.985);
  border-color: #073b92;
  background: #eef5ff;
  box-shadow: 0 8px 18px rgba(15, 107, 255, 0.14);
}

.mission-icon-card b {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
}

.mission-icon-card h2 {
  margin: 14px 0 10px;
  font-size: 24px;
}

.mission-icon-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 650;
}

.writing-board {
  display: grid;
  gap: 16px;
}

.writing-row {
  display: grid;
  gap: 8px;
}

.writing-row label {
  font-weight: 900;
  line-height: 1.45;
}

.beginner-course-page,
.beginner-day-page {
  max-width: 1260px;
  margin: 0 auto;
}

.beginner-course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 38px;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(8, 29, 42, 0.94), rgba(0, 126, 121, 0.76)),
    url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1600&q=80")
      center / cover;
}

.beginner-course-hero > p {
  grid-column: 1;
}

.course-progress {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 30px;
}

.course-progress > div:first-child {
  display: grid;
  gap: 5px;
}

.course-progress span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.course-progress strong {
  color: #fff;
  font-size: 28px;
}

.course-progress > b {
  color: var(--accent);
  font-size: 18px;
}

.course-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.course-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 240ms ease;
}

.daily-allocation,
.course-map {
  max-width: 1120px;
  margin: 0 auto 26px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
}

.allocation-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.allocation-grid > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  border-right: 1px solid var(--line);
  padding: 18px 14px;
}

.allocation-grid > div:last-child {
  border-right: 0;
}

.allocation-grid b {
  color: #007e79;
  font-size: 20px;
}

.allocation-grid span {
  font-weight: 950;
}

.allocation-grid small {
  color: var(--muted);
  line-height: 1.35;
}

.course-phase {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.phase-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.phase-heading > div {
  min-width: 0;
}

.phase-heading span,
.phase-heading > b {
  color: #007e79;
  font-size: 13px;
  font-weight: 950;
}

.phase-heading h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.day-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.day-icon {
  display: grid;
  min-width: 0;
  min-height: 136px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px;
  background: #fff;
  transition:
    transform 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.day-icon:nth-child(5n) {
  border-right: 0;
}

.day-icon:nth-last-child(-n + 5) {
  border-bottom: 0;
}

.day-icon:hover {
  background: #f1fbfa;
  box-shadow: inset 0 0 0 2px rgba(0, 126, 121, 0.25);
}

.day-icon:active {
  transform: translateY(2px) scale(0.985);
}

.day-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #007e79;
  font-size: 15px;
  font-weight: 950;
}

.day-icon > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.day-icon b {
  color: var(--muted);
  font-size: 11px;
}

.day-icon strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.35;
}

.day-icon i {
  grid-column: 2;
  justify-self: start;
  color: #007e79;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.day-icon.is-complete {
  background: #effaf2;
}

.day-icon.is-complete .day-number {
  background: #1f8a4c;
}

.course-back-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-bottom: 14px;
  color: #007e79;
  font-weight: 900;
}

.day-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: clamp(26px, 5vw, 48px);
  color: #fff;
  background: #102f3b;
}

.day-hero .eyebrow {
  margin-bottom: 12px;
}

.day-hero h1 {
  max-width: 800px;
  margin-bottom: 12px;
  font-size: clamp(36px, 6vw, 62px);
}

.day-hero > div > p:last-child {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.day-status-ring {
  --progress: 0deg;
  position: relative;
  display: grid;
  flex: 0 0 118px;
  width: 118px;
  height: 118px;
  place-content: center;
  border-radius: 50%;
  text-align: center;
  background:
    radial-gradient(circle at center, #102f3b 59%, transparent 61%),
    conic-gradient(var(--accent) var(--progress), rgba(255, 255, 255, 0.18) 0);
}

.day-status-ring strong {
  font-size: 25px;
}

.day-status-ring span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.exam-focus-band {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 6px 18px;
  margin-bottom: 14px;
  border-left: 5px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  background: #fff;
}

.exam-focus-band span {
  grid-row: 1 / span 2;
  color: #007e79;
  font-size: 13px;
  font-weight: 950;
}

.exam-focus-band strong {
  font-size: 18px;
}

.exam-focus-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.day-time-plan {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.day-time-plan span {
  display: grid;
  gap: 3px;
  border-right: 1px solid var(--line);
  padding: 13px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.day-time-plan span:last-child {
  border-right: 0;
}

.day-time-plan b {
  color: #007e79;
  font-size: 16px;
}

.lesson-block {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 30px);
  background: #fff;
}

.lesson-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}

.lesson-heading > div > span {
  color: #007e79;
  font-size: 12px;
  font-weight: 950;
}

.lesson-heading h2 {
  margin: 4px 0 0;
  font-size: 26px;
}

.task-check {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 900;
}

.task-check input {
  width: 22px;
  height: 22px;
  accent-color: #007e79;
}

.vocabulary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.vocabulary-grid > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.beginner1-allocation,
.beginner1-time-plan {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.vocabulary-grid > div > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.vocabulary-grid strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.vocabulary-grid span {
  color: var(--muted);
  font-weight: 750;
}

.lesson-rule {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

.practice-sentence {
  display: flex;
  align-items: center;
  gap: 18px;
  border-left: 5px solid #007e79;
  border-radius: 0 8px 8px 0;
  padding: 22px;
  background: #f1fbfa;
}

.listen-icon-btn {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #007e79;
  cursor: pointer;
  font-size: 17px;
  transition: transform 140ms ease;
}

.listen-icon-btn:active {
  transform: scale(0.92);
}

.practice-sentence strong {
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.4;
}

.practice-sentence p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.phonics-rule {
  margin: 0 0 16px;
  border-left: 4px solid #45c9e8;
  padding: 13px 15px;
  color: var(--ink);
  background: #edfafd;
  font-weight: 800;
  line-height: 1.65;
}

.phonics-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.phonics-example-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #ffffff;
}

.phonics-example-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: #101828;
  font-size: 19px;
}

.phonics-example-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.phonics-example-grid .korean-pronunciation {
  color: #d75537;
  font-weight: 850;
}

.beginner-space-theme .phonics-rule {
  color: #d9f7ff;
  background: #101b25;
}

.beginner-space-theme .phonics-example-grid article {
  border-color: rgba(173, 196, 255, 0.22);
  background: #090b12;
}

.beginner-space-theme .phonics-example-grid strong {
  color: #ffffff;
}

html[data-theme="light"] .beginner-space-theme .phonics-rule {
  color: #15202b;
  background: #edfafd;
}

html[data-theme="light"] .beginner-space-theme .phonics-example-grid article {
  border-color: #dce3ef;
  background: #ffffff;
}

html[data-theme="light"] .beginner-space-theme .phonics-example-grid strong {
  color: #101828;
}

.korean-pronunciation {
  display: block;
  margin: 6px 0 0;
  color: #a33b00 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere;
}

.vocabulary-grid .korean-pronunciation {
  margin: 0;
  font-size: 13px !important;
}

.lesson-audio-player {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 12px;
}

.lesson-feedback {
  min-height: 22px;
  margin: 12px 0 0;
  color: #007e79;
  font-size: 14px;
  font-weight: 850;
}

.reading-passage,
.sentence-pattern,
.sample-answer {
  border-radius: 8px;
  padding: 20px;
  background: #f7f9fc;
}

.reading-passage span,
.sentence-pattern span,
.sample-answer span {
  color: #007e79;
  font-size: 12px;
  font-weight: 950;
}

.reading-passage p,
.sample-answer p {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.65;
}

.answer-details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.answer-details summary {
  cursor: pointer;
  color: #007e79;
  font-weight: 900;
}

.answer-details p {
  color: var(--muted);
  line-height: 1.6;
}

.sentence-pattern {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.sentence-pattern strong {
  font-size: 21px;
  line-height: 1.4;
}

.course-writing-field {
  display: grid;
  gap: 9px;
  font-weight: 850;
}

.course-writing-field textarea {
  width: 100%;
  resize: vertical;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.6;
}

.course-writing-field textarea:focus {
  border-color: #007e79;
  outline: 0;
}

.lesson-action-btn,
.day-completion button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: #007e79;
  cursor: pointer;
  font-weight: 950;
  transition:
    transform 140ms ease,
    opacity 140ms ease;
}

.lesson-action-btn {
  margin-top: 12px;
}

.lesson-action-btn.secondary {
  border: 1px solid #007e79;
  color: #007e79;
  background: #fff;
}

.lesson-action-btn:active,
.day-completion button:active {
  transform: translateY(2px) scale(0.98);
}

.practice-question {
  margin: 0 0 14px;
  font-size: clamp(23px, 4vw, 32px);
  font-weight: 950;
  line-height: 1.35;
}

.question-with-pronunciation {
  margin-bottom: 16px;
}

.question-with-pronunciation .practice-question {
  margin-bottom: 0;
}

.sample-answer .korean-pronunciation,
.reading-passage .korean-pronunciation {
  margin-top: 7px;
  font-size: 14px !important;
}

.interview-answer {
  margin-top: 12px;
  background: #fff8dc;
}

.interview-answer[hidden] {
  display: none;
}

.day-completion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  border: 2px solid #102f3b;
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.day-completion > div {
  display: grid;
  gap: 4px;
}

.day-completion span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.day-completion strong {
  font-size: 19px;
}

.day-completion button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.day-completion button.is-complete {
  background: #1f8a4c;
}

.day-pagination {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.day-pagination a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  font-weight: 900;
  text-align: center;
}

.day-pagination a:active {
  transform: translateY(2px);
}

.beginner-space-theme {
  --ink: #f5f7ff;
  --muted: #b8c0d4;
  --line: rgba(173, 196, 255, 0.18);
  --soft: #080910;
  --brand: #45c9e8;
  --accent: #ff8a66;
  color: var(--ink);
  background: #080910;
}

.beginner-space-theme .nav {
  border-color: rgba(173, 196, 255, 0.16);
  color: #f8f9ff;
  background: rgba(8, 9, 16, 0.9);
}

.beginner-space-theme .brand-mark {
  color: #071018;
  background: #45c9e8;
}

.beginner-space-theme .category-link,
.beginner-space-theme .login-link {
  border-color: rgba(173, 196, 255, 0.22);
  color: #eef2ff;
  background: rgba(22, 26, 41, 0.9);
}

.beginner-space-theme .category-link.active,
.beginner-space-theme .category-link:hover {
  border-color: #45c9e8;
  color: #071018;
  background: #45c9e8;
}

.beginner-space-theme .beginner-course-hero {
  min-height: min(640px, 72vh);
  align-content: end;
  border: 1px solid rgba(179, 198, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(4, 7, 16, 0.08) 10%, rgba(5, 8, 18, 0.92) 88%),
    url("assets/beginner-galaxy.png") center / cover no-repeat;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.beginner-space-theme .beginner-course-hero .eyebrow,
.beginner-space-theme .galaxy-day-hero .eyebrow {
  color: #22100b;
  background: #ff9c79;
}

.beginner-space-theme .course-progress {
  border-color: rgba(255, 255, 255, 0.28);
}

.beginner-space-theme .course-progress > b,
.beginner-space-theme .section-heading .eyebrow {
  color: #071018;
}

.beginner-space-theme .daily-allocation,
.beginner-space-theme .course-map {
  border-color: rgba(173, 196, 255, 0.18);
}

.beginner-space-theme .allocation-grid,
.beginner-space-theme .course-phase,
.beginner-space-theme .day-time-plan,
.beginner-space-theme .lesson-block,
.beginner-space-theme .exam-focus-band,
.beginner-space-theme .day-pagination a {
  border-color: rgba(173, 196, 255, 0.18);
  background: #121521;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.beginner-space-theme .allocation-grid > div,
.beginner-space-theme .phase-heading,
.beginner-space-theme .day-icon,
.beginner-space-theme .day-time-plan span,
.beginner-space-theme .lesson-heading {
  border-color: rgba(173, 196, 255, 0.16);
}

.beginner-space-theme .allocation-grid b,
.beginner-space-theme .phase-heading span,
.beginner-space-theme .phase-heading > b,
.beginner-space-theme .day-icon i,
.beginner-space-theme .course-back-link,
.beginner-space-theme .exam-focus-band span,
.beginner-space-theme .day-time-plan b,
.beginner-space-theme .lesson-heading > div > span,
.beginner-space-theme .lesson-feedback,
.beginner-space-theme .reading-passage span,
.beginner-space-theme .sample-answer span,
.beginner-space-theme .answer-details summary {
  color: #58d7ef;
}

.beginner-space-theme .day-icon {
  color: #f5f7ff;
  background: #151925;
}

.beginner-space-theme .day-icon:hover {
  background: #1c2232;
  box-shadow: inset 0 0 0 2px rgba(69, 201, 232, 0.46);
}

.beginner-space-theme .day-icon.is-complete {
  background: #172821;
}

.beginner-space-theme .day-number {
  color: #071018;
  background: #45c9e8;
}

.beginner-space-theme .day-icon.is-complete .day-number {
  color: #071018;
  background: #78dd9b;
}

.beginner-space-theme .galaxy-day-hero {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(179, 198, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(5, 8, 18, 0.92), rgba(5, 8, 18, 0.25)),
    url("assets/beginner-galaxy.png") center / cover no-repeat;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.beginner-space-theme .day-status-ring {
  background:
    radial-gradient(circle at center, #111521 59%, transparent 61%),
    conic-gradient(#ff9c79 var(--progress), rgba(255, 255, 255, 0.18) 0);
}

.beginner-space-theme .exam-focus-band {
  border-left-color: #ff9c79;
}

.beginner-space-theme .task-check input {
  accent-color: #45c9e8;
}

.beginner-space-theme .vocabulary-grid > div {
  border-color: rgba(173, 196, 255, 0.18);
  background: #0d1019;
}

.beginner-space-theme .korean-pronunciation {
  color: #ffad8f !important;
}

.complete-translation {
  color: #cbd4e8 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.65 !important;
}

.sentence-study-list {
  display: grid;
  margin-top: 12px;
}

.sentence-study-list article {
  min-width: 0;
  border-bottom: 1px solid rgba(173, 196, 255, 0.16);
  padding: 18px 0;
}

.sentence-study-list article:first-child {
  padding-top: 8px;
}

.sentence-study-list article:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.sentence-study-list strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(19px, 2.5vw, 24px);
  line-height: 1.5;
}

.sentence-study-list p {
  margin: 7px 0 0;
}

.sentence-study-list p b,
.listening-line-list p b {
  color: #58d7ef;
  font-size: 13px;
}

.sentence-study-list.question-list {
  margin-top: 0;
  border-left: 4px solid #45c9e8;
  padding-left: 18px;
}

.sentence-study-list.question-list strong {
  font-size: clamp(22px, 3.5vw, 30px);
}

.listening-line-list {
  display: grid;
  gap: 10px;
}

.listening-line-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 5px 14px;
  border-left: 4px solid #45c9e8;
  padding: 18px 20px;
  background: #0d1019;
}

.listening-line-list article > span {
  grid-row: 1 / span 3;
  color: #58d7ef;
  font-size: 13px;
  font-weight: 950;
}

.listening-line-list strong {
  font-size: clamp(19px, 3vw, 25px);
  line-height: 1.45;
}

.listening-line-list p {
  margin: 0;
}

.beginner-space-theme .reading-passage,
.beginner-space-theme .sample-answer,
.beginner-space-theme .sentence-pattern {
  background: #0d1019;
}

.writing-prompt {
  margin: 0 0 14px;
  border-left: 4px solid #ff9c79;
  padding: 14px 16px;
  color: #f7d4c8;
  background: #21151a;
  font-weight: 800;
  line-height: 1.6;
}

.writing-model {
  margin-bottom: 16px;
}

.beginner-space-theme .course-writing-field textarea {
  border-color: rgba(173, 196, 255, 0.26);
  color: #f5f7ff;
  background: #090b12;
}

.beginner-space-theme .course-writing-field textarea:focus {
  border-color: #45c9e8;
}

.beginner-space-theme .lesson-action-btn,
.beginner-space-theme .day-completion button {
  color: #071018;
  background: #45c9e8;
}

.beginner-space-theme .lesson-action-btn.secondary {
  border-color: #45c9e8;
  color: #65dff5;
  background: transparent;
}

.beginner-space-theme .interview-answer {
  background: #181322;
}

.beginner-space-theme .lesson-audio-player {
  color-scheme: dark;
}

.webtoon-slot {
  margin: 18px 0 24px;
  overflow: hidden;
  border: 1px solid rgba(122, 155, 222, 0.34);
  border-radius: 8px;
  background: #0c101b;
}

.webtoon-slot-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(122, 155, 222, 0.25);
}

.webtoon-slot-heading span {
  color: #65dff5;
  font-size: 13px;
  font-weight: 900;
}

.webtoon-slot-heading strong {
  color: #f5f7ff;
  font-size: 17px;
}

.webtoon-image-link {
  display: block;
  width: 100%;
  background: #ffffff;
  cursor: zoom-in;
}

.webtoon-image-link[hidden] {
  display: none;
}

.webtoon-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.webtoon-placeholder {
  display: grid;
  min-height: 360px;
  place-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(6, 10, 20, 0.5), rgba(6, 10, 20, 0.76)),
    url("assets/beginner-galaxy.png") center / cover;
}

.webtoon-placeholder[hidden] {
  display: none;
}

.webtoon-placeholder span {
  color: #65dff5;
  font-size: 13px;
  font-weight: 900;
}

.webtoon-placeholder b {
  margin-top: 8px;
  color: #ffffff;
  font-size: 30px;
}

html[data-theme="light"] .webtoon-slot {
  border-color: #ccd6e8;
  background: #ffffff;
}

html[data-theme="light"] .webtoon-slot-heading {
  border-color: #dce3ef;
}

html[data-theme="light"] .webtoon-slot-heading strong {
  color: #151b27;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-actions::-webkit-scrollbar {
    display: none;
  }

  .category-link,
  .login-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .mission-status,
  .typing-actions,
  .speech-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .speech-result {
    grid-template-columns: 1fr;
  }

  .beginner-course-hero {
    grid-template-columns: 1fr;
  }

  .beginner-space-theme .beginner-course-hero {
    min-height: 560px;
    background-position: 58% center;
  }

  .beginner-course-hero > p,
  .course-progress {
    grid-column: 1;
  }

  .course-progress {
    grid-row: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 0;
    padding-top: 20px;
    padding-left: 0;
  }

  .allocation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .allocation-grid > div,
  .allocation-grid > div:last-child {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .allocation-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .allocation-grid > div:last-child {
    border-bottom: 0;
  }

  .day-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-icon,
  .day-icon:nth-child(5n),
  .day-icon:nth-last-child(-n + 5) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .day-icon:nth-child(2n) {
    border-right: 0;
  }

  .day-icon:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .day-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .beginner-space-theme .galaxy-day-hero {
    min-height: 430px;
    background-position: 58% center;
  }

  .exam-focus-band {
    grid-template-columns: 1fr;
  }

  .exam-focus-band span {
    grid-row: auto;
  }

  .day-time-plan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-time-plan span,
  .day-time-plan span:last-child {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .day-time-plan span:nth-child(2n) {
    border-right: 0;
  }

  .day-time-plan span:last-child {
    border-bottom: 0;
  }

  .vocabulary-grid {
    grid-template-columns: 1fr;
  }

  .phonics-example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-sentence,
  .day-completion {
    align-items: stretch;
    flex-direction: column;
  }

  .listening-line-list article {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 16px;
  }

  .day-completion button {
    width: 100%;
  }

  .webtoon-placeholder {
    min-height: 260px;
  }
}

@media (max-width: 480px) {
  .phonics-example-grid {
    grid-template-columns: 1fr;
  }

  .day-icon {
    min-height: 154px;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 13px;
  }

  .day-number {
    width: 34px;
    height: 34px;
  }

  .day-pagination {
    grid-template-columns: 1fr;
  }

  .lesson-heading {
    align-items: flex-start;
  }
}
