:root {
  color-scheme: light;
  --paper: #f7f8f4;
  --ink: #172d28;
  --muted: #4d625a;
  --line: #dce4da;
  --green: #174b3d;
  --mint: #deefe5;
  --lime: #d9f28e;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; word-break: keep-all; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid #456ee2; outline-offset: 3px; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.04em; }
.shell { width: min(100% - 40px, 920px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; font-size: 1.2rem; font-weight: 850; letter-spacing: -.06em; }
.brand-sub { color: var(--muted); font-size: .88rem; font-weight: 600; margin-left: .45rem; }
.brand-mark { display: flex; align-items: end; gap: 3px; padding: 9px; height: 35px; width: 35px; border-radius: 10px; background: var(--green); }
.brand-mark i { width: 4px; background: var(--lime); border-radius: 1px; height: 6px; }
.brand-mark i:nth-child(2) { height: 11px; }
.brand-mark i:nth-child(3) { height: 16px; }
.primary, .outline, .plain, .icon-button { min-height: 44px; border-radius: 12px; padding: 9px 15px; font-weight: 700; }
.primary { border: 1px solid var(--green); background: var(--green); color: white; }
.primary:hover { background: #22624f; }
.outline { border: 1px solid #ccd9cd; background: white; }
.outline:hover, .plain:hover { background: var(--mint); }
.plain, .icon-button { border: 0; background: transparent; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(120deg,#133e34,#245747); border-radius: 28px; margin-top: 24px; padding: clamp(25px,6vw,52px); color: white; min-height: 250px; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 1; }
.eyebrow { display: block; color: var(--lime); font-size: .88rem; font-weight: 750; letter-spacing: .01em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem,5vw,3.25rem); font-weight: 850; }
.hero p { color: #e1eee8; margin-top: 12px; max-width: 300px; }
.hero-art { position: absolute; inset: 0 0 0 55%; overflow: hidden; pointer-events: none; }
.orbit { position: absolute; width: 285px; aspect-ratio: 1; border-radius: 50%; border: 1px solid #a9dbc34d; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.orbit::after { content: ""; position: absolute; inset: 24px; border: inherit; border-radius: inherit; }
.book { width: 120px; height: 148px; position: absolute; top: 50%; left: 50%; border-radius: 6px 13px 13px 6px; border-left: 9px solid #152f2b38; box-shadow: 3px 8px 0 #102f2b85; }
.book-back { transform: translate(-30%,-53%) rotate(18deg); background: #87b9aa; }
.book-front { transform: translate(-72%,-45%) rotate(-13deg); background: var(--lime); }
.book-front::before { content: ""; position: absolute; inset: 30px 16px auto; height: 38px; background: repeating-linear-gradient(to bottom,#214f3b80 0 2px,transparent 2px 12px); }
.book-front::after { content: ""; position: absolute; width: 17px; height: 29px; right: 14px; top: -2px; background: #2c604e; clip-path: polygon(0 0,100% 0,100% 100%,50% 75%,0 100%); }
.spark { position: absolute; color: var(--lime); font-size: 1.7rem; top: 16%; left: 23%; }
.spark + .spark { top: 74%; left: 75%; font-size: 1.15rem; }
.subjects { padding-block: 28px 16px; }
.section-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; margin-bottom: 14px; }
.section-title h2 { font-size: 1.35rem; }
.section-title p, .fine, .muted { color: var(--muted); }
.subject-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.subject { display: flex; flex-direction: column; align-items: start; gap: 13px; min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: left; transition: border-color .15s, background .15s; }
.subject:hover { background: #f3f9f2; border-color: #9ab6a1; }
.subject-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: #e3f1ea; color: #255743; font-size: 1.05rem; font-weight: 800; flex: none; }
.subject[data-subject="국어"] .subject-icon { background: #f8eddd; color: #79491e; }
.subject[data-subject="수학"] .subject-icon { background: #e8ebfa; color: #3e4f83; }
.subject strong { display: block; font-size: 1.15rem; }
.subject-desc { color: var(--muted); font-size: .94rem; display: block; }
.fine { font-size: .875rem; margin: 0 0 36px; }
.lesson { max-width: 660px; margin: 25px auto 40px; }
.lesson-top, .actions, .dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lesson-top { margin-bottom: 12px; font-weight: 750; }
.lesson progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 10px; background: var(--line); appearance: none; margin-bottom: 18px; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 10px; }
progress::-webkit-progress-value { background: #408566; border-radius: 10px; }
progress::-moz-progress-bar { background: #408566; border-radius: 10px; }
.lesson-card { padding: clamp(17px,5vw,32px); border: 1px solid var(--line); border-radius: 20px; background: white; }
.topic { color: #38624e; font-size: .88rem; font-weight: 750; margin-bottom: 8px; }
.lesson-card h1 { margin-bottom: 18px; font-size: clamp(1.35rem,4vw,1.9rem); }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; min-height: 52px; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.option:hover:not(:disabled) { border-color: #408566; background: #f5faf6; }
.option.is-correct { border-color: #75a88d; background: #e9f5ec; }
.option.is-missed { border-color: #bb885c; background: #fff4e6; }
.choice-label { display: grid; place-items: center; width: 29px; height: 29px; flex: none; border-radius: 8px; background: #eef2ed; font-weight: 750; }
.feedback { margin-top: 16px; border-radius: 12px; background: var(--paper); padding: 14px; }
.feedback p { margin: 5px 0 12px; }
.review-list { margin: 10px 0 16px; padding-left: 20px; }
.actions { justify-content: start; margin-top: 16px; }
.save-status { color: var(--muted); margin-top: 12px; }
dialog { width: min(100% - 30px, 480px); max-height: calc(100% - 36px); border: 1px solid var(--line); border-radius: 20px; padding: 20px; color: var(--ink); }
dialog::backdrop { background: #112c27a0; }
.dialog-header { margin-bottom: 8px; }
.dialog-header h2 { font-size: 1.35rem; }
.icon-button { font-size: 1.4rem; line-height: 1; padding-inline: 13px; }
.account-form { display: grid; gap: 10px; margin-top: 12px; }
.account-form label { display: grid; gap: 4px; font-weight: 650; }
.account-form input { width: 100%; min-height: 46px; border-radius: 10px; padding: 8px 10px; border: 1px solid #aabeb1; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-status { color: #814222; }
.account-status:empty { display: none; }
.history { list-style: none; padding: 0; margin: 14px 0; }
.history li { border-block-start: 1px solid var(--line); padding: 10px 0; }
.history span { display: block; color: var(--muted); overflow-wrap: anywhere; }
.account-email { overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .header-inner { min-height: 63px; }
  .hero { min-height: 225px; }
  .hero-art { inset-inline-start: 62%; }
  .hero p { max-width: 235px; }
  .orbit { width: 185px; }
  .book { width: 78px; height: 100px; }
  .book-front::before { inset: 26px 12px auto; height: 26px; }
  .book-front::after { width: 12px; height: 21px; right: 8px; }
  .subject-grid { grid-template-columns: 1fr; }
  .subject { flex-direction: row; align-items: center; padding: 13px; }
}
@media (max-width: 370px) {
  .shell { width: calc(100% - 28px); }
  .hero { padding: 20px; }
  .hero p { max-width: 195px; }
  .hero-art { inset-inline-start: 68%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
