:root {
  color-scheme: light;
  --canvas: #f4f6f8;
  --white: #fff;
  --ink: #16272c;
  --muted: #51646b;
  --quiet: #64747a;
  --line: #dce4e6;
  --green: #205c50;
  --green-deep: #16473e;
  --green-pale: #e6f2ed;
  --lime: #daf4aa;
  --shadow: 0 4px 15px #23394007;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font-synthesis: none;
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
h1, h2, h3, p, figure, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; flex-shrink: 0; }
:focus-visible { outline: 3px solid #377b9e; outline-offset: 3px; }
#main:focus { outline: none; }
.skip { position: fixed; z-index: 7; left: .7rem; top: .7rem; transform: translateY(-180%); background: var(--white); padding: .75rem; border-radius: .5rem; }
.skip:focus { transform: none; }

.sidebar {
  z-index: 3;
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: var(--white);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 1.65rem 1.05rem 1rem;
  overflow: auto;
}
.brand { display: flex; align-items: center; gap: .7rem; padding: 0 .35rem; margin-bottom: 2.35rem; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: .72rem; color: var(--lime); background: var(--green); }
.brand strong { display: block; font-size: 1.06rem; letter-spacing: -.065em; font-weight: 790; }
.brand small { display: block; font-size: .83rem; color: var(--quiet); }
#navigation { display: grid; gap: .32rem; }
#navigation a { display: flex; align-items: center; gap: .65rem; min-height: 46px; padding: .62rem .68rem; border-radius: .62rem; font-size: .91rem; font-weight: 660; color: #41565e; white-space: nowrap; }
#navigation a:hover, #navigation [aria-current] { color: var(--green-deep); background: var(--green-pale); }
#navigation [aria-current] { font-weight: 770; }
#navigation .nav-count { margin-inline-start: auto; border-radius: 1rem; background: #f6e9c5; color: #604815; min-width: 1.42rem; text-align: center; font-size: .76rem; }
.side-progress { margin-top: auto; padding: 1rem .5rem .6rem; color: var(--quiet); font-size: .83rem; }
.side-progress > div { display: flex; justify-content: space-between; margin-bottom: .5rem; }
.side-progress strong { color: var(--green); }
.side-progress strong span { color: var(--quiet); font-weight: 600; }
progress { display: block; appearance: none; -webkit-appearance: none; height: .45rem; width: 100%; border: 0; border-radius: 20px; background: #e6edee; overflow: hidden; }
progress::-webkit-progress-bar { background: #e6edee; }
progress::-webkit-progress-value { background: #4e9078; border-radius: 20px; }
progress::-moz-progress-bar { background: #4e9078; border-radius: 20px; }

.workspace { margin-left: 238px; }
.topbar { min-height: 72px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: .8rem clamp(1.4rem, 3vw, 3.25rem); background: #fff; gap: 1rem; }
.trail { font-size: .92rem; font-weight: 730; white-space: nowrap; }
.search { min-width: 0; display: flex; align-items: center; gap: .5rem; width: min(340px, 100%); padding: .58rem .7rem; background: var(--canvas); border: 1px solid var(--line); border-radius: .6rem; color: var(--muted); }
.search:focus-within { outline: 2px solid #4e8b7d; outline-offset: 1px; }
.search input { min-width: 0; width: 100%; padding: 0 .13rem; border: 0; background: transparent; outline: none; font-size: 1rem; }
.search input::placeholder { color: #596b72; font-size: .88rem; }
.search input:focus-visible { outline: none; }
.search kbd { border: 1px solid var(--line); border-radius: .27rem; padding: 0 .38rem; font-size: .77rem; background: #fff; }
#main { width: 100%; max-width: 1390px; margin-inline: auto; padding: 1.8rem clamp(1.4rem, 3vw, 3.25rem) 3.5rem; }
.page-intro { margin: 0 0 1.45rem; }
.page-intro h1 { font-size: clamp(1.95rem, 1.5rem + 1.25vw, 3.05rem); line-height: 1.24; letter-spacing: -.07em; font-weight: 820; overflow-wrap: anywhere; word-break: keep-all; }
.page-intro p { margin-top: .5rem; color: var(--muted); word-break: keep-all; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 3.5fr) minmax(185px, 1fr); gap: 1rem; }
.hero { position: relative; isolation: isolate; min-height: 252px; overflow: hidden; padding: 1.55rem clamp(1.2rem, 3vw, 2.15rem); border-radius: .92rem; background: linear-gradient(112deg,#154138 10%,#21574e 72%,#28675d 100%); color: #fff; display: flex; align-items: center; box-shadow: var(--shadow); }
.hero-copy { z-index: 1; position: relative; }
.hero-kicker { display: flex; align-items: center; gap: .35rem; color: var(--lime); font-weight: 750; font-size: .85rem; }
.hero h2 { font-size: clamp(1.7rem, 1.2rem + 1.45vw, 2.7rem); line-height: 1.15; margin-top: .49rem; letter-spacing: -.065em; word-break: keep-all; }
.hero p { color: #e1eee8; margin: .63rem 0 1.05rem; font-size: .94rem; word-break: keep-all; max-width: 24rem; }
.hero-figure { z-index: 0; width: clamp(250px, 51%, 450px); height: 100%; position: absolute; top: 0; right: 0; }
.hero-label { font-size: 12px; fill: #dbefe4; font-weight: 700; letter-spacing: .04em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .43rem; color: #fff; background: var(--green); border: 1px solid transparent; border-radius: .52rem; min-height: 43px; padding: .54rem .9rem; font-size: .92rem; font-weight: 740; text-align: center; }
.button:hover { background: var(--green-deep); }
.hero-button { color: #1d3930; background: var(--lime); }
.hero-button:hover { background: #e8f8c5; }
.secondary { background: #fff; border-color: var(--line); color: var(--green-deep); }
.secondary:hover { background: var(--green-pale); }
.snapshot { background: var(--white); border: 1px solid var(--line); border-radius: .92rem; padding: 1.2rem 1rem; box-shadow: var(--shadow); align-content: center; }
.snapshot h2 { font-size: 1.05rem; letter-spacing: -.04em; }
.snapshot-stat { color: var(--muted); margin: .68rem 0 .45rem; white-space: nowrap; }
.snapshot-stat strong { font-size: 2.4rem; line-height: 1.1; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.snapshot-stat span { font-size: .84rem; }
.snapshot-link { display: flex; gap: .45rem; align-items: center; min-height: 42px; margin-top: .85rem; padding: .4rem 0; color: var(--green-deep); font-size: .91rem; font-weight: 740; }
.snapshot-link:hover { text-decoration: underline; }

.featured, .catalog { margin-top: 1.9rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .76rem; }
.section-heading h2 { font-size: 1.25rem; letter-spacing: -.06em; }
.muted { font-size: .87rem; color: var(--muted); }
.feature-grid, .subject-grid, .lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.featured-card, .subject-card, .lesson-card { border: 1px solid var(--line); border-radius: .78rem; background: var(--white); box-shadow: var(--shadow); transition: border-color .16s ease, background .16s ease; }
.featured-card, .subject-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .68rem; align-items: center; min-height: 83px; padding: .83rem .77rem; }
.featured-card:hover, .subject-card:hover, .lesson-card:hover { border-color: #7eaa9a; background: #fbfefd; }
.feature-icon, .subject-icon { display: grid; place-items: center; border-radius: .63rem; width: 40px; height: 40px; color: var(--green); background: #e3f1e9; }
.feature-icon.lilac { color: #574b83; background: #eee9f8; }
.feature-icon.sand { color: #6c4c2e; background: #f7eddc; }
.subject-icon { width: 36px; height: 36px; background: #edf3f2; }
.card-chevron { color: #657d7a; }
.featured-card strong, .subject-card strong { display: block; font-size: 1rem; word-break: keep-all; line-height: 1.38; letter-spacing: -.04em; }
.featured-card small, .subject-card small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.43; margin-top: .23rem; word-break: keep-all; overflow-wrap: break-word; }
.section-tabs { display: flex; gap: .42rem; flex-wrap: wrap; margin: 0 0 .9rem; }
.section-tabs > * { display: inline-flex; gap: .32rem; align-items: center; min-height: 42px; border-radius: .52rem; padding: .45rem .72rem; color: var(--muted); font-size: .9rem; font-weight: 660; }
.section-tabs > :hover, .section-tabs [aria-current] { color: var(--green-deep); background: var(--green-pale); }
.section-tabs [aria-current] { font-weight: 760; }
.section-tabs small { font-size: .81rem; }

.crumbs { display: flex; align-items: center; gap: .36rem; margin-bottom: .72rem; color: var(--muted); font-size: .89rem; }
.crumbs a { color: var(--green-deep); font-weight: 720; }
.crumbs a:hover { text-decoration: underline; }
.lesson-card { display: flex; flex-direction: column; gap: .45rem; min-height: 132px; padding: .9rem; }
.card-eyebrow { color: var(--green); font-size: .84rem; font-weight: 730; }
.lesson-card > strong { font-size: 1.06rem; letter-spacing: -.05em; word-break: keep-all; overflow-wrap: anywhere; }
.lesson-card-foot { display: flex; justify-content: space-between; gap: .25rem; align-items: center; margin-top: auto; color: var(--muted); font-size: .86rem; }
.badge { display: inline-flex; gap: .28rem; align-items: center; flex-shrink: 0; padding: .2rem .52rem; border-radius: .37rem; font-size: .82rem; font-weight: 680; }
.badge.review { color: #75491d; background: #f7ebd8; }
.badge.started { color: #4c4273; background: #eeeafb; }
.badge.complete { color: #3e5b55; background: #e0e9e5; }
.all-complete { background: #ebefef; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 1.65rem 1.35rem; background: var(--white); border: 1px solid var(--line); border-radius: .8rem; }
.empty .button { margin-top: .8rem; }

.lesson-heading { display: flex; align-items: baseline; gap: .65rem; flex-wrap: wrap; }
.lesson-jump { display: flex; align-items: center; justify-content: space-between; gap: .55rem; font-size: .9rem; color: var(--muted); margin-top: .55rem; }
.lesson-columns { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(295px, .9fr); gap: 1.12rem; align-items: start; }
.lesson-explainer, .practice { background: var(--white); border-radius: .86rem; border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(.9rem, 1.9vw, 1.45rem); min-width: 0; }
.lesson-explainer > h2, .practice > h2 { margin-bottom: 1rem; font-size: 1.28rem; letter-spacing: -.05em; }
.practice { scroll-margin-top: 1rem; }
.simulation, .diagram { margin: 0; background: #f0f7f5; border: 1px solid #d8e8e3; border-radius: .67rem; padding: .87rem; }
.simulation figcaption, .diagram figcaption { line-height: 1.4; }
.simulation figcaption strong, .diagram figcaption strong { display: block; font-size: 1.04rem; letter-spacing: -.035em; }
.simulation figcaption span { display: block; color: var(--muted); font-size: .91rem; margin-top: .3rem; }
.segmented { display: flex; gap: .36rem; flex-wrap: wrap; margin-top: .8rem; }
.segmented button { border-radius: .43rem; border: 1px solid #b7d2c9; background: #fff; color: var(--green-deep); padding: .4rem .55rem; min-height: 42px; font-size: .88rem; font-weight: 680; }
.segmented button:hover { background: var(--green-pale); }
.segmented [aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.photon-art, .distance-art { width: 100%; max-width: 400px; height: auto; margin: .5rem auto 0; }
.photon-art text { fill: #25454b; font-size: 15px; font-weight: 690; }
.atom-orbit { fill: none; stroke: #76a49b; stroke-width: 1.3; }
.atom-core, .atom-dot { fill: #72a28a; }
.photon, .electron, .beam, .guide { fill: none; stroke: #277c74; stroke-width: 2.15; stroke-linejoin: round; stroke-linecap: round; }
.electron, .beam.active { stroke: #ae4a1c; }
.electron-dot { fill: #ae4a1c; }
.beam.quiet { stroke: #88aba5; stroke-width: 1.4; }
.guide { stroke: #98b6b0; stroke-width: 1; stroke-dasharray: 4 5; }
.sim-caption strong, .sim-caption span { display: block; }
.sim-caption strong { color: var(--green-deep); }
.sim-caption span { color: var(--muted); font-size: .91rem; }
.figure-note { display: block; color: var(--muted); font-size: .84rem; margin-top: .65rem; }
.extra-diagram { margin-top: .58rem; color: var(--green-deep); }
.extra-diagram .diagram { margin-top: .55rem; color: var(--ink); }
.matrix-state { display: flex; align-items: center; gap: .83rem; margin-top: .9rem; }
.matrix-state svg { width: min(42%, 136px); height: auto; }
.matrix-state span, .matrix-state strong, .matrix-state small { display: block; }
.matrix-state strong { color: var(--green-deep); font-size: 1.06rem; }
.matrix-state small { color: var(--muted); }
.swatches, .ultrasound-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .67rem; margin-top: .75rem; }
.swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.swatches div, .ultrasound-examples div { min-width: 0; }
.swatches span { display: block; height: 42px; background: var(--shade); border-radius: .32rem; border: 1px solid #879497; margin-bottom: .24rem; }
.swatches strong, .swatches small, .ultrasound-examples strong { font-size: .88rem; display: block; }
.ultrasound-examples svg { width: 100%; height: auto; border-radius: .33rem; margin-bottom: .33rem; }
.diagram-items { list-style: none; padding: 0; display: grid; gap: .45rem; margin-top: .69rem; }
.diagram-items.comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.diagram-items li { padding: .61rem; border-radius: .42rem; background: #fff; border: 1px solid #d0e3df; min-width: 0; }
.diagram-items.flow li + li { margin-top: .35rem; position: relative; }
.diagram-items.flow li + li::before { content: ''; display: block; position: absolute; left: 1.15rem; top: -.68rem; width: .33rem; height: .33rem; border-bottom: 2px solid var(--green); border-right: 2px solid var(--green); transform: rotate(45deg); }
.diagram-items li span:last-child { display: block; color: var(--muted); font-size: .91rem; overflow-wrap: anywhere; word-break: keep-all; }
.diagram-label { display: block; margin-bottom: .15rem; font-size: .96rem; font-weight: 780; color: var(--green-deep); overflow-wrap: anywhere; word-break: keep-all; }
.easy-text { display: grid; gap: .7rem; margin: .95rem 0; word-break: keep-all; overflow-wrap: anywhere; }
mark { color: inherit; background: #f5ebaf; border-radius: .16rem; }
.pitfall { display: flex; align-items: flex-start; gap: .56rem; border: 1px solid #efe0b7; background: #fff7df; color: #533e1b; padding: .72rem; border-radius: .58rem; }
.pitfall svg { margin-top: .19rem; }
.pitfall p { margin-top: .16rem; font-size: .92rem; }
summary { cursor: pointer; font-weight: 680; font-size: .91rem; padding: .42rem 0; }
.resource { border-top: 1px solid var(--line); margin-top: .66rem; padding-top: .33rem; }
.resource section { padding: .42rem 0; }
.resource h3 { font-size: 1rem; margin-bottom: .21rem; }
.resource li { margin: .26rem 0; overflow-wrap: anywhere; }
.resource a { color: var(--green-deep); text-decoration: underline; text-underline-offset: .16em; }
.resource ul { padding-inline-start: 1.4rem; margin: .46rem 0; }

.question { display: block; }
.question + .question { border-top: 1px solid var(--line); padding-top: 1.05rem; margin-top: 1.1rem; }
.question fieldset { margin: 0; border: 0; padding: 0; min-width: 0; }
.question legend { width: 100%; font-size: 1rem; padding: 0; font-weight: 740; word-break: keep-all; overflow-wrap: anywhere; }
.question legend > span { display: block; margin-bottom: .31rem; color: var(--green); font-size: .85rem; }
.options { display: grid; gap: .4rem; margin: .69rem 0; }
.option { display: flex; align-items: center; gap: .52rem; min-height: 44px; border: 1px solid var(--line); border-radius: .48rem; padding: .46rem .56rem; overflow-wrap: anywhere; font-size: .93rem; cursor: pointer; }
.option input { appearance: none; position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; }
.option:has(input:focus-visible) { outline: 3px solid #377b9e; outline-offset: 1px; }
.option:has(input:checked), .option:hover { background: #eef7f4; border-color: #81afa2; }
.option:has(input:disabled) { cursor: default; }
.option.correct { background: #e5f3e8; border-color: #7ea99a; }
.option.incorrect { background: #faece5; border-color: #d49479; }
.option-number { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; flex: 0 0 1.45rem; border-radius: .35rem; color: var(--green-deep); font-size: .82rem; font-weight: 750; background: #e4eee9; }
.option:has(input:checked) .option-number { color: #fff; background: var(--green); }
.answer-tag { margin-left: auto; flex-shrink: 0; font-weight: 740; font-size: .79rem; }
.feedback { border-radius: .56rem; padding: .72rem; margin-bottom: .66rem; font-size: .92rem; }
.feedback.right { background: #e5f3e8; color: #204d36; }
.feedback.wrong { background: #faece5; color: #6c321d; }
.feedback p { margin-top: .27rem; }
.lesson-footer { display: flex; justify-content: space-between; gap: .65rem; margin-top: 1.05rem; }

@media (max-width: 1200px) {
  .hero-figure { opacity: .7; }
}
@media (max-width: 1040px) {
  .sidebar { width: 201px; padding-inline: .76rem; }
  .workspace { margin-left: 201px; }
  .brand { gap: .5rem; }
  .brand strong { font-size: 1rem; }
  .hero-figure { right: -30px; }
  .feature-grid, .subject-grid, .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-columns { gap: .8rem; }
}
@media (max-width: 850px) {
  .sidebar { position: relative; width: 100%; padding: .62rem 1rem .45rem; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0 0 .5rem; width: fit-content; }
  .brand-icon { width: 37px; height: 37px; flex-basis: 37px; }
  #navigation { display: flex; flex-wrap: wrap; gap: .17rem .32rem; }
  #navigation a { min-height: 42px; padding: .45rem .5rem; font-size: .85rem; gap: .32rem; }
  #navigation a svg { height: 17px; width: 17px; }
  .side-progress { display: none; }
  .workspace { margin-left: 0; }
  .topbar { min-height: 61px; }
}
@media (max-width: 640px) {
  #main { padding: 1.23rem 1rem 2rem; }
  .topbar { padding: .62rem 1rem; }
  .search { width: 100%; }
  .search kbd, .trail { display: none; }
  .page-intro h1 { font-size: 1.85rem; }
  .hero-layout { grid-template-columns: 1fr; gap: .67rem; }
  .hero { min-height: 218px; padding: 1rem 1.08rem; }
  .hero-copy { width: min(100%, 24rem); }
  .hero h2 { font-size: clamp(1.55rem, 7.1vw, 2.2rem); }
  .hero p { max-width: 15rem; font-size: .89rem; }
  .hero-figure { opacity: .3; right: -49px; }
  .snapshot { padding: .7rem .8rem; display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: center; }
  .snapshot h2 { font-size: .98rem; }
  .snapshot-stat { margin: 0; text-align: end; }
  .snapshot-stat strong { font-size: 1.43rem; }
  .snapshot-link { margin: 0; min-height: 41px; justify-content: flex-end; font-size: .85rem; }
  .feature-grid, .lesson-columns { grid-template-columns: 1fr; }
  .featured-card { min-height: 66px; padding: .58rem .68rem; }
  .subject-card { min-height: 71px; gap: .38rem; padding: .5rem; grid-template-columns: auto minmax(0, 1fr); }
  .subject-card .card-chevron, .lesson-card-foot > svg { display: none; }
  .subject-icon { width: 29px; height: 29px; }
  .subject-icon svg { width: 17px; height: 17px; }
  .subject-card strong { font-size: .91rem; }
  .subject-card small { font-size: .82rem; }
  .lesson-grid, .subject-grid { gap: .6rem; }
  .lesson-card { padding: .65rem; }
  .lesson-card-foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* 탄성산란·광전효과 비교 애니메이션 */
.pc-figure { container-type: inline-size; }
.pc-both { margin-top: .75rem; min-height: 42px; display: inline-flex; align-items: center; gap: .35rem; }
.pc-grid { display: grid; grid-template-columns: 1fr; gap: .7rem; margin-top: .75rem; }
@container (min-width: 420px) {
  .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .pc-panel { padding: .5rem; }
  .pc-art text { font-size: 19px; }
  .pc-art .pc-small { font-size: 16px; }
  .pc-art .pc-e-sign { font-size: 10px; }
}
.pc-panel { min-width: 0; background: #fff; border: 1px solid #d0e3df; border-radius: .55rem; padding: .65rem; display: flex; flex-direction: column; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.pc-head h3 { font-size: 1rem; letter-spacing: -.03em; color: var(--green-deep); word-break: keep-all; }
.pc-head h3 small { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pc-play { display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; padding: .35rem .65rem; border-radius: .43rem; border: 1px solid #b7d2c9; background: var(--green-pale); color: var(--green-deep); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.pc-play:hover { background: #d6ebe3; }
.pc-play:focus-visible, .pc-both:focus-visible { outline: 3px solid #377b9e; outline-offset: 2px; }
.pc-art { width: 100%; height: auto; margin-top: .35rem; overflow: visible; }
.pc-art text { fill: #25454b; font-size: 14px; font-weight: 700; }
.pc-art .pc-small { font-size: 12px; font-weight: 650; fill: var(--muted); }
.pc-art .pc-e-label { fill: #ae4a1c; }
.pc-art .pc-e-sign { fill: #fff; font-size: 9px; font-weight: 800; }
.pc-wave { fill: none; stroke: #277c74; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pc-guide { opacity: .58; stroke-dasharray: 4 4; stroke-width: 1.8; }
.pc-e-path { fill: none; stroke: #ae4a1c; stroke-linecap: round; stroke-linejoin: round; }
.pc-mover, .pc-flash, .pc-hole { opacity: 0; }
.pc-hole { fill: #fff; stroke: #ae4a1c; stroke-width: 1.5; stroke-dasharray: 2.5 2.5; }
.pc-flash { fill: #f5d26b; transform-box: fill-box; transform-origin: center; }
.pc-caption { margin-top: .4rem; word-break: keep-all; overflow-wrap: anywhere; }
.pc-caption strong { display: block; color: var(--green-deep); font-size: .98rem; }
.pc-caption span { display: block; color: var(--muted); font-size: .87rem; margin-top: .15rem; }
.is-playing .pc-in { animation: pc-in 3.6s linear forwards; }
.is-playing .pc-in.pc-absorb { animation-name: pc-absorb; }
.is-playing .pc-out { animation: pc-out 3.6s ease-out forwards; }
.is-playing .pc-flash { animation: pc-flash 3.6s ease-out forwards; }
.is-playing .pc-bound { animation: pc-leave 3.6s linear forwards; }
.is-playing .pc-hole { animation: pc-hole 3.6s linear forwards; }
.is-playing .pc-guide { opacity: .22; }
@keyframes pc-in { 0% { opacity: 1; transform: translateX(0); } 42% { opacity: 1; transform: translateX(var(--d)); } 46%, 100% { opacity: 0; transform: translateX(var(--d)); } }
@keyframes pc-absorb { 0% { opacity: 1; transform: translateX(0) scale(1); } 42% { opacity: 1; transform: translateX(var(--d)) scale(1); } 50%, 100% { opacity: 0; transform: translateX(var(--d)) scale(.2); } }
@keyframes pc-out { 0%, 46% { opacity: 0; transform: translateX(var(--from)); } 50% { opacity: 1; transform: translateX(var(--from)); } 92%, 100% { opacity: 1; transform: translateX(var(--to)); } }
@keyframes pc-flash { 0%, 40% { opacity: 0; transform: scale(.3); } 46% { opacity: .85; transform: scale(1.25); } 58%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes pc-leave { 0%, 46% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes pc-hole { 0%, 48% { opacity: 0; } 54%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .is-playing .pc-in, .is-playing .pc-out, .is-playing .pc-flash, .is-playing .pc-bound, .is-playing .pc-hole { animation-duration: .01ms; }
}
/* 공통 비교 애니메이션 부품 */
.pm, .pa, .pf { opacity: 0; }
.pf { fill: #f5d26b; transform-box: fill-box; transform-origin: center; }
.hole { fill: #fff; stroke: #ae4a1c; stroke-width: 1.5; stroke-dasharray: 2.5 2.5; }
.is-playing .pm { animation: pm-move var(--dur) linear var(--delay) both; }
.is-playing .pm.slow { animation-timing-function: ease-out; }
.is-playing .pm.vanish { animation-name: pm-vanish; }
.is-playing .pa { animation: pa-in .25s linear var(--delay) both; }
.is-playing .pd { animation: pa-out .2s linear var(--delay) both; }
.is-playing .pf { animation: pf-flash .6s ease-out var(--delay) both; }
@keyframes pm-move { 0% { opacity: 0; transform: translate(var(--x0), var(--y0)); } 4% { opacity: 1; } 100% { opacity: 1; transform: translate(var(--x1), var(--y1)); } }
@keyframes pm-vanish { 0% { opacity: 0; transform: translate(var(--x0), var(--y0)) scale(1); } 4% { opacity: 1; } 88% { opacity: 1; transform: translate(var(--x1), var(--y1)) scale(1); } 100% { opacity: 0; transform: translate(var(--x1), var(--y1)) scale(.3); } }
@keyframes pa-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pa-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes pf-flash { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: .85; transform: scale(1.2); } 100% { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) {
  .is-playing .pm, .is-playing .pa, .is-playing .pd, .is-playing .pf { animation-duration: .01ms !important; animation-delay: 0s !important; }
}
.pos-dot { fill: #6b4fa0; }
.pos-path { fill: none; stroke: #6b4fa0; stroke-linecap: round; stroke-linejoin: round; }
.fall-path { fill: none; stroke: #ae4a1c; stroke-linecap: round; }
.alpha-path { fill: none; stroke: #b0563d; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nu-path { fill: none; stroke: #6b7d80; stroke-linecap: round; stroke-linejoin: round; }
.nu-dot { fill: none; stroke: #4d6266; stroke-width: 1.8; stroke-dasharray: 2 2; }
.nuc-p { fill: #c8735a; stroke: #fff; stroke-width: 1; }
.nuc-n { fill: #9aaeb1; stroke: #fff; stroke-width: 1; }
.nuc-ring { fill: none; stroke: #205c50; stroke-width: 1.6; stroke-dasharray: 3 2; }
.pc-art .pc-pos-label { fill: #6b4fa0; }
.pc-art .pc-alpha-label { fill: #b0563d; }
.pc-art .pc-plus { fill: #fff; font-size: 20px; font-weight: 800; }
.pc-art .pc-after { fill: #b0563d; }
.pc-figure + .pc-figure { margin-top: .75rem; }
.nowrap { white-space: nowrap; }

/* 생물학·핵의학·MRI·초음파 비교 애니메이션 */
.dna-strand { fill: none; stroke: #205c50; stroke-width: 2.4; }
.dna-strand.b { stroke: #6aa391; }
.dna-rung { stroke: #9fc2b8; stroke-width: 1.6; }
.dna-gap { fill: #fff; }
.dna-cut { fill: none; stroke: #b3402a; stroke-width: 2; stroke-linejoin: round; }
.water { fill: #dcecf7; stroke: #2f6fb0; stroke-width: 1.4; }
.pc-art .pc-water { fill: #2f6fb0; font-size: 13px; }
.oh-dot { fill: #2f6fb0; }
.oh-path { fill: none; stroke: #2f6fb0; stroke-linecap: round; stroke-linejoin: round; }
.pc-art .pc-oh-label { fill: #2f6fb0; }
.body { fill: #f3e7df; stroke: #c9ab98; stroke-width: 1.4; }
.crystal { fill: #9fc8e4; stroke: #4c7d9c; }
.collimator { fill: #6f7b80; }
.slat { stroke: #f0f7f5; stroke-width: 2.2; }
.tracer { fill: #b3402a; }
.ring { fill: none; stroke: #9fc8e4; stroke-width: 9; stroke-dasharray: 9 4; }
.lor { fill: none; stroke: #4c7d9c; stroke-width: 1.6; }
.lor-on { fill: none; stroke: #b3402a; stroke-width: 2; stroke-dasharray: 5 4; }
.axis { fill: none; stroke: #51646b; stroke-width: 1.4; }
.curve { fill: none; stroke: #277c74; stroke-width: 2.6; stroke-linecap: round; }
.curve.draw { stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.mark { stroke: #b0563d; stroke-width: 1.4; stroke-dasharray: 3 3; }
.pc-art .pc-mark { fill: #b0563d; font-size: 13px; }
.vec { fill: none; stroke: #b3402a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vec-guide { stroke: #b3402a; stroke-width: 2; stroke-dasharray: 4 4; opacity: .35; }
.spin-line { stroke: #d08a72; stroke-width: 1.6; stroke-linecap: round; }
.gy, .gx, .spin { opacity: 0; transform-box: fill-box; }
.gy { transform-origin: bottom center; }
.gx, .spin { transform-origin: left center; }
.is-playing .gy { animation: gy-grow var(--dur) ease-out var(--delay) both; }
.is-playing .gx { animation: gx-shrink var(--dur) ease-out var(--delay) both; }
.is-playing .spin { animation: spin-out var(--dur) ease-out var(--delay) both; }
.is-playing .curve.draw { animation: draw-line var(--dur) ease-out var(--delay) both; }
@keyframes gy-grow { 0% { opacity: 1; transform: scaleY(.03); } 100% { opacity: 1; transform: scaleY(1); } }
@keyframes gx-shrink { 0% { opacity: 1; transform: scaleX(1); } 100% { opacity: 1; transform: scaleX(.06); } }
@keyframes spin-out { 0% { opacity: .9; transform: rotate(0); } 100% { opacity: .9; transform: rotate(var(--rot)); } }
@keyframes draw-line { 0% { opacity: 1; stroke-dashoffset: 100; } 100% { opacity: 1; stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .is-playing .gy, .is-playing .gx, .is-playing .spin, .is-playing .curve.draw { animation-duration: .01ms !important; animation-delay: 0s !important; }
}
/* 1교시 추가 애니메이션 */
.pc-grid.one { grid-template-columns: 1fr !important; max-width: 560px; }
.pc-grid.one .pc-art text { font-size: 14px; }
.pc-grid.one .pc-art .pc-small, .pc-grid.one .pc-art .pc-small-dark { font-size: 12px; }
.pc-grid.one .pc-art .pc-e-sign { font-size: 9px; }
.pc-grid.one .pc-art .pc-plus { font-size: 20px; }
.pc-grid.one .pc-panel { padding: .65rem; }
.pm.keep { opacity: 1; transform: translate(var(--x0), var(--y0)); }
.is-playing .pm.keep { animation: pm-keep var(--dur) ease-in-out var(--delay) both; }
@keyframes pm-keep { from { transform: translate(var(--x0), var(--y0)); } to { transform: translate(var(--x1), var(--y1)); } }
.is-playing .pm.fast { animation-timing-function: ease-in; }
.shrink, .widen { transform-box: fill-box; transform-origin: center; }
.is-playing .shrink { animation: shrink var(--dur) ease-in-out var(--delay) both; }
.is-playing .widen { animation: widen var(--dur) ease-in-out var(--delay) both; }
@keyframes shrink { to { transform: scale(.62); } }
@keyframes widen { to { transform: scaleX(4); } }
.needle { transform-box: view-box; }
.is-playing .needle { animation: needle 3.6s ease-in-out both; }
@keyframes needle { 0%, 8% { transform: rotate(0); } 18%, 44% { transform: rotate(42deg); } 56%, 100% { transform: rotate(0); } }
.orbit { transform-box: view-box; }
.is-playing .orbit { animation: orbit 3.6s linear both; }
@keyframes orbit { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .is-playing .pm.keep, .is-playing .shrink, .is-playing .widen, .is-playing .needle, .is-playing .orbit { animation-duration: .01ms !important; animation-delay: 0s !important; }
}
.medium { fill: #c9d6d3; }
.ion-p { fill: #c8735a; }
.ion-n { fill: #3f7fb8; }
.alpha-dot { fill: #b0563d; }
.e-track { fill: none; stroke: #ae4a1c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.e-track.draw { stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.is-playing .e-track.draw { animation: draw-line var(--dur) linear var(--delay) both; }
.slab { fill: #8d9ca0; }
.plate { stroke: #25454b; stroke-width: 3; }
.wire { fill: none; stroke: #51646b; stroke-width: 1.6; stroke-linejoin: round; }
.pc-art .pc-plus-s { fill: #c8735a; font-size: 14px; font-weight: 800; }
.pc-art .pc-minus-s { fill: #3f7fb8; font-size: 16px; font-weight: 800; }
.coil { fill: none; stroke: #b0783d; stroke-width: 2.2; }
.meter { fill: #fff; stroke: #51646b; stroke-width: 1.5; }
.magnet-ghost { fill: none; stroke: #8d9ca0; stroke-dasharray: 4 3; }
.mag-n { fill: #c8453a; }
.mag-s { fill: #3f7fb8; }
.p-region { fill: #f6e3dc; }
.n-region { fill: #dfe9f5; }
.depl { fill: #ffffff; stroke: #8d9ca0; stroke-dasharray: 3 3; }
.hole-c { fill: #fff; stroke: #c8735a; stroke-width: 2; }
.e-c { fill: #3f7fb8; }
.pc-art .pc-big { font-size: 22px; font-weight: 800; }
.scint { fill: #e7f1d9; stroke: #9cbf7a; }
.sel { fill: #efe6f5; stroke: #a58bbf; }
.pixel { fill: #d8e3e6; stroke: #8d9ca0; }
.pixel-on { fill: #f5d26b; stroke: #c99a1a; }
.light { fill: #f5d26b; }
.field { fill: none; stroke: #a58bbf; stroke-width: 1.4; }
.gas { fill: #f2f7f6; stroke: #8d9ca0; }
.gas.wall { stroke-width: 3; }
.anode { fill: #25454b; }
.track { fill: none; stroke: #b0563d; stroke-width: 1.6; stroke-dasharray: 5 4; }
.glass { fill: #f5fafa; stroke: #a9c3c0; stroke-width: 1.5; }
.filament { fill: none; stroke: #b0783d; stroke-width: 2; }
.cup { fill: none; stroke: #51646b; stroke-width: 2; }
.target { fill: #6f7b80; }
.glow { fill: #f5b75b; opacity: 0; filter: blur(4px); }
.heat { fill: #f08a4b; filter: blur(5px); }
.strip { fill: #3c474b; }
.detector { fill: #9fc8e4; }
.scatter-path { fill: none; stroke: #277c74; stroke-width: 1.6; }
.phase { fill: none; stroke-width: 16; }
.phase.g1 { stroke: #e8c35a; }
.phase.s1 { stroke: #9cc9a1; }
.phase.s2 { stroke: #4f9a73; }
.phase.g2 { stroke: #e08a5a; }
.phase.m { stroke: #c8453a; }
.sw.m { fill: #c8453a; } .sw.s2 { fill: #4f9a73; } .sw.g1 { fill: #e8c35a; }
.cell-dot { fill: #fff; stroke: #25454b; stroke-width: 3; }
.cell { fill: #f6e3dc; stroke: #c8735a; stroke-width: 1.6; }
.nucleus { fill: #c99a8a; }
.dead { fill: #8d9ca0; opacity: .55; }
.paper { fill: #e9e2c9; }
.acryl { fill: #cfe7ee; stroke: #8dbccb; }
.lead { fill: #6f7b80; }
.faint { opacity: .4; }
.membrane { fill: #e8c35a; }
.channel { fill: #6b4fa0; }
.channel.k { fill: #2f8f6b; }
.na-dot { fill: #6b4fa0; }
.k-dot { fill: #2f8f6b; }
.na-path { fill: none; stroke: #6b4fa0; stroke-linecap: round; }
.k-path { fill: none; stroke: #2f8f6b; stroke-linecap: round; }
.pc-art .pc-ion-sign { fill: #fff; font-size: 7px; font-weight: 800; }
.pc-art .pc-ion-sign.s { font-size: 6px; }
.pc-art .pc-na-label { fill: #6b4fa0; font-size: 12px; }
.pc-art .pc-k-label { fill: #2f8f6b; font-size: 12px; }
.actin { stroke: #c8735a; stroke-width: 2; }
.myosin { stroke: #25454b; stroke-width: 7; stroke-linecap: round; }
.zline { stroke: #205c50; stroke-width: 4; }
.ca-dot { fill: #f5b75b; }
.bracket { fill: none; stroke: #51646b; stroke-width: 1.4; }
.chamber { fill: #f6e3dc; stroke: #c8735a; }
.excite { fill: #f5d26b; opacity: 0; }
.is-playing .excite.pa { animation-name: excite-in; }
@keyframes excite-in { from { opacity: 0; } to { opacity: .55; } }
.conduct { fill: none; stroke: #b0563d; stroke-width: 2.2; }
.node { fill: #b0563d; }
.spark { fill: #f5b75b; stroke: #b0563d; stroke-width: 1.5; }
.alv { fill: #e3f0f7; stroke: #6ea4c9; stroke-width: 2; }
.cap { fill: #f6dcd5; stroke: #c8735a; }
.rbc { fill: #c8453a; }
.o2 { fill: #c8453a; }
.co2 { fill: #3f7fb8; }
.o2-path { fill: none; stroke: #c8453a; }
.co2-path { fill: none; stroke: #3f7fb8; }
.pc-art .pc-o2-label { fill: #c8453a; font-size: 12px; }
.pc-art .pc-co2-label { fill: #3f7fb8; font-size: 12px; }
.glom { fill: #f6dcd5; stroke: #c8453a; stroke-width: 2; stroke-dasharray: 6 3; }
.capsule { fill: none; stroke: #51646b; stroke-width: 3; }
.tubule { fill: none; stroke: #e8c35a; stroke-width: 10; stroke-linejoin: round; opacity: .7; }
.peri { fill: none; stroke: #c8453a; stroke-width: 3; opacity: .6; }
.protein { fill: #6b4fa0; }
.water-dot { fill: #3f7fb8; }
.glucose { fill: #2f8f6b; }
.pc-art .pc-glucose-label { fill: #2f8f6b; font-size: 12px; }

/* 3교시 촬영법 도감 */
.atlas-banner { display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; padding: .85rem 1rem; border-radius: .7rem; background: var(--green); color: #fff; text-decoration: none; }
.atlas-banner span { flex: 1; }
.atlas-banner strong, .atlas-banner small { display: block; }
.atlas-banner small { opacity: .85; font-size: .86rem; margin-top: .15rem; }
.atlas-note { color: var(--muted); font-size: .85rem; margin: .7rem 0; }
.atlas-index { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 1rem; }
.atlas-index a { padding: .35rem .6rem; border-radius: 999px; background: var(--green-pale); color: var(--green-deep); font-size: .85rem; font-weight: 650; text-decoration: none; }
.atlas-list { display: grid; gap: 1rem; }
.atlas-card { background: var(--white); border: 1px solid var(--line); border-radius: .8rem; padding: 1rem; box-shadow: var(--shadow); scroll-margin-top: 1rem; }
.atlas-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.atlas-head h2 { font-size: 1.35rem; letter-spacing: -.03em; color: var(--green-deep); word-break: keep-all; }
.atlas-en { color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.atlas-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: .8rem; }
.atlas-fig { margin: 0; background: #f0f7f5; border: 1px solid #d8e8e3; border-radius: .6rem; padding: .5rem; min-width: 0; }
.atlas-fig.xr { background: #0b1113; border-color: #0b1113; }
.atlas-fig.solo { max-width: 420px; margin: .6rem auto; }
.atlas-fig figcaption { font-size: .82rem; color: var(--muted); margin-top: .35rem; display: flex; justify-content: space-between; gap: .4rem; flex-wrap: wrap; }
.atlas-fig.xr figcaption { color: #b8c6c8; }
.link-button { background: none; border: 0; padding: 0; color: #f5d26b; font-weight: 700; font-size: .82rem; text-decoration: underline; cursor: pointer; min-height: 32px; }
.ap-art, .xr-art { width: 100%; height: auto; display: block; }
.atlas-facts { display: grid; gap: .45rem; margin-top: .8rem; }
.atlas-facts div { display: grid; grid-template-columns: 4.2rem 1fr; gap: .5rem; }
.atlas-facts dt { font-weight: 750; color: var(--green); font-size: .9rem; }
.atlas-facts dd { margin: 0; font-size: .93rem; word-break: keep-all; overflow-wrap: anywhere; }
.atlas-eval { margin-top: .7rem; font-size: .92rem; }
.atlas-eval ul { padding-inline-start: 1.2rem; margin-top: .25rem; }
.atlas-eval li { margin: .15rem 0; word-break: keep-all; }
.atlas-point { display: flex; gap: .45rem; align-items: flex-start; margin-top: .7rem; background: #fff7df; border: 1px solid #efe0b7; color: #533e1b; border-radius: .55rem; padding: .6rem; font-size: .92rem; word-break: keep-all; }
.atlas-point svg { flex-shrink: 0; margin-top: .15rem; }
.atlas-quiz { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.atlas-quiz-q { font-weight: 750; }
.atlas-choices { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.atlas-choice { min-height: 42px; padding: .45rem .75rem; border-radius: .5rem; border: 1px solid var(--line); background: #fff; font-weight: 650; font-size: .92rem; cursor: pointer; }
.atlas-choice:hover:not(:disabled) { background: #eef7f4; border-color: #81afa2; }
.atlas-choice.correct { background: #e5f3e8; border-color: #7ea99a; color: #204d36; }
.atlas-choice.wrong { background: #faece5; border-color: #d49479; color: #6c321d; }
.atlas-feedback { margin-top: .55rem; border-radius: .5rem; padding: .6rem; font-size: .9rem; }
.atlas-feedback.right { background: #e5f3e8; color: #204d36; }
.atlas-feedback.wrong { background: #faece5; color: #6c321d; }
.atlas-next { display: flex; justify-content: space-between; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
@media (max-width: 640px) {
  .atlas-figs { grid-template-columns: 1fr; }
  .atlas-head h2 { font-size: 1.18rem; }
  .atlas-facts div { grid-template-columns: 1fr; gap: .1rem; }
}
/* 자세 모식도 */
.ap-ir { fill: #9fc8e4; stroke: #4c7d9c; }
.ap-part { fill: #f3e7df; stroke: #c9ab98; stroke-width: 1.6; }
.ap-ear { fill: #e3cfc2; stroke: #c9ab98; }
.ap-paddle { stroke: #4c7d9c; stroke-width: 4; }
.ap-base { stroke: #b0563d; stroke-width: 1.8; stroke-dasharray: 5 3; }
.ap-base-text { fill: #b0563d; font-size: 11px; font-weight: 750; }
.ap-tube { fill: #51646b; }
.ap-beam-guide { stroke: #f0a64b; stroke-width: 2; stroke-dasharray: 4 4; opacity: .7; }
.ap-beam { stroke: #f0a64b; stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.ap-hit { fill: #f5d26b; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ap-cr { fill: #25454b; font-size: 12px; font-weight: 750; }
.ap-small { fill: #51646b; font-size: 11px; font-weight: 650; }
.ap-tube-rot { transform-box: view-box; transform: rotate(var(--rot)); }
.atlas-card.is-playing .ap-tube-rot { animation: tube-swing 1.2s ease-in-out both; }
.atlas-card.is-playing .ap-beam { animation: draw-line .7s ease-out 1.2s both; }
.atlas-card.is-playing .ap-beam-guide { opacity: 0; }
.atlas-card.is-playing .ap-hit { animation: pf-flash .6s ease-out 1.85s both; }
@keyframes tube-swing { from { transform: rotate(0deg); } to { transform: rotate(var(--rot)); } }
@media (prefers-reduced-motion: reduce) { .atlas-card.is-playing .ap-tube-rot, .atlas-card.is-playing .ap-beam, .atlas-card.is-playing .ap-hit { animation-duration: .01ms !important; animation-delay: 0s !important; } }
/* X선 모식 영상 */
.xbg { fill: #0b1113; }
.xs { fill: #3a474d; }
.xm { fill: #7f8d91; }
.xb { fill: #a9b5b9; stroke: #eef4f5; stroke-width: 1.5; }
/* 자세히 그린 X선 그림용 */
.xbg2 { fill: #0b1113; }
.xsoft-fill { fill: url(#xr-soft-g); }
.xsoft-line { stroke: #4a585e; stroke-linecap: round; fill: none; }
.xbone { fill: #9aa7ab; stroke: #f1f6f7; stroke-width: 1.6; }
.xbone2 { fill: #dfe7e9; stroke: #f7fafa; stroke-width: 1; }
.xvault { fill: #a3afb3; stroke: #eef4f5; stroke-width: 3; }
.xbrain { fill: #45535a; }
.xsuture { stroke: #6f7d82; stroke-width: 1.2; stroke-dasharray: 3 2; fill: none; }
.xsinus { fill: #10181b; }
.xsinus-line { stroke: #10181b; stroke-width: 2; fill: none; }
.xorbit { fill: #26323a; stroke: #e6eef0; stroke-width: 3; }
.xline { stroke: #c3cdd0; stroke-width: 1.4; fill: none; opacity: .8; }
.xnasal { fill: #141c20; stroke: #b7c2c5; stroke-width: 1.2; }
.xcortex { stroke: #e6eef0; stroke-width: 2.4; fill: none; }
.xmandible { fill: none; stroke: #dfe7e9; stroke-width: 7; stroke-linecap: round; }
.xrib-ant { fill: none; stroke: #aab5b8; stroke-width: 2; opacity: .35; }
.xspine-faint { fill: #6c797e; opacity: .55; }
.xtrachea { fill: #141c20; opacity: .85; }
.xtrachea-line { stroke: #141c20; stroke-width: 5; stroke-linecap: round; }
.xclav { fill: none; stroke: #e9f0f1; stroke-width: 7; stroke-linecap: round; }
.xscap { fill: none; stroke: #b9c4c7; stroke-width: 2; opacity: .7; }
.xdome { fill: none; stroke: #dfe7e9; stroke-width: 3; }
.xgas { fill: #0b1113; }
.xnotch { fill: #1b252a; }
.xpatella { fill: #c8d2d5; opacity: .35; stroke: #eef4f5; stroke-width: 1; }
.xspike { fill: none; stroke: #f4f8f8; stroke-width: 2; }
.xbladder { fill: #66747a; opacity: .6; }
.xpedicle { fill: #6f7c81; stroke: #f4f8f8; stroke-width: 2.2; }
.xpsoas { stroke: #6f7d82; stroke-width: 2; fill: none; }
.xprevert { stroke: #66747a; stroke-width: 10; fill: none; opacity: .6; }
.xliver { fill: #66747a; opacity: .7; }
.xkidney { fill: #6c7a80; opacity: .75; stroke: #8f9ca0; stroke-width: 1; }
.xcolon { fill: none; stroke: #121a1e; stroke-width: 12; stroke-linecap: round; opacity: .75; stroke-dasharray: 14 3; }
.xgas2 { fill: #161e22; }
.xbreast { fill: #4b585e; }
.xpect { fill: #75838a; }
.xgland { fill: #8d9a9f; opacity: .55; }
.xstrand { fill: none; stroke: #a3afb3; stroke-width: 1.1; opacity: .45; }
.xvessel { fill: none; stroke: #b7c2c5; stroke-width: 1.4; opacity: .6; }
.xskin { fill: none; stroke: #8d9a9f; stroke-width: 2; }
.xroot { stroke: #dfe7e9; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.xcanal { fill: none; stroke: #10181b; stroke-width: 4; }
.xscap-body { fill: #7f8c91; stroke: #dfe7e9; stroke-width: 1.6; opacity: .85; }
.xb2 { fill: #f4f8f8; }
.xa { fill: #05080a; }
.xa2 { fill: #161e22; }
.xhi { fill: #ffffff; stroke: #f5d26b; stroke-width: 1.4; }
.xsoft { fill: #55636a; }
.xheart { fill: #8a989e; opacity: .75; }
.xsoft2 { fill: #8a989e; opacity: .7; }
.xridge { fill: none; stroke: #f4f8f8; stroke-width: 5; stroke-linecap: round; }
.xb-line { fill: none; stroke: #d9e2e4; stroke-width: 4; stroke-linecap: round; }
.xb-thick { fill: none; stroke: #e6eef0; stroke-width: 9; stroke-linecap: round; }
.xrib { fill: none; stroke: #c3cdd0; stroke-width: 2.2; opacity: .55; }
.xa-line { stroke: #05080a; stroke-width: 6; }
.xa-gap { stroke: #05080a; stroke-width: 4; fill: none; }
.xlevel { stroke: #f5d26b; stroke-width: 1.4; stroke-dasharray: 4 3; }
.xguide { stroke: #f5d26b; stroke-width: .8; stroke-dasharray: 3 3; opacity: .6; fill: none; }
.xr-cap { fill: #b8c6c8; font-size: 11px; font-weight: 700; }
.xr-lab { opacity: 0; transition: opacity .2s; }
.xr-lab path { stroke: #f5d26b; stroke-width: 1; fill: none; }
.xr-lab text { fill: #f5d26b; font-size: 11px; font-weight: 750; paint-order: stroke; stroke: #0b1113; stroke-width: 3px; }
.show-labels .xr-lab { opacity: 1; }

.us-tissue { fill: #527176; }
.probe { fill: #2b3d42; }
.cyst { fill: #182c31; }
.stone { fill: #edf8f8; }
.us-bright { fill: #a7c3c6; }
.us-dark { fill: #182c31; }
.pulse { fill: #f5d26b; }
.pulse.echo { fill: #ffffff; }
.us-arrow { fill: none; stroke: #f5d26b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-art .pc-on-dark { fill: #f4fbfa; }
.pc-art .pc-small-dark { font-size: 12px; font-weight: 650; }

.question.instant { margin-top: .8rem; background: #fff; border: 1px solid #d0e3df; border-radius: .58rem; padding: .75rem; }
.instant-hint { color: var(--muted); font-size: .85rem; }

.illustrated svg { width: 100%; max-width: 420px; height: auto; margin: .5rem auto 0; font-size: 16px; font-weight: 700; }

/* 문제 풀기 */
button.subject-card { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.subject-icon { color: var(--green); }
.practice-card .subject-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: .6rem; background: var(--green-pale); }
#navigation .nav-count.resume { min-width: auto; padding: 0 .45rem; background: var(--green-pale); color: var(--green-deep); }
.intro-actions { margin-top: .85rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.intro-actions .button small, .lesson-footer .button small { font-weight: 600; opacity: .85; }
.resume-button { margin-bottom: 1rem; }
.practice-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 0 0 1.1rem; max-width: 560px; }
.practice-summary > * { background: var(--white); border: 1px solid var(--line); border-radius: .78rem; padding: .75rem .9rem; box-shadow: var(--shadow); }
.practice-summary span { display: block; color: var(--muted); font-size: .84rem; }
.practice-summary strong { font-size: 1.6rem; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.practice-summary strong small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.practice-summary a small { display: block; color: var(--green); font-weight: 700; font-size: .84rem; }
.practice-summary a:hover { border-color: #7eaa9a; }
.wrong-grid { margin-top: 1rem; }
.exam-table { margin-top: 1.4rem; }
.exam-table table { border-collapse: collapse; width: 100%; max-width: 480px; margin: .4rem 0 1rem; font-size: .88rem; }
.exam-table th, .exam-table td { border-bottom: 1px solid var(--line); padding: .3rem .5rem; text-align: left; }
.exam-table h3 { font-size: .95rem; margin-top: .6rem; }
.practice-quiz { max-width: 760px; }
.pq-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; margin: .4rem 0 .7rem; }
.pq-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.pq-badges .badge { background: var(--green-pale); color: var(--green-deep); }
.pq-badges .badge.level-1 { background: #eef4e2; color: #3d5a1f; }
.pq-badges .badge.level-3 { background: #f7ebd8; color: #75491d; }
.pq-form { background: var(--white); border: 1px solid var(--line); border-radius: .85rem; padding: 1.05rem; box-shadow: var(--shadow); }
.pq-form legend { font-size: 1.08rem; margin-bottom: .7rem; }
.pq-form .options { display: grid; gap: .45rem; margin-top: .7rem; }
.pq-form .feedback { margin-top: .9rem; }
.pq-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
.pq-concept { border: 1px dashed #b7d2c9; border-radius: .7rem; padding: .75rem .85rem; margin-top: .3rem; }
.pq-concept strong { display: block; margin: .15rem 0 .3rem; }
.pq-concept p { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.pq-source { margin-top: .6rem; font-size: .8rem; }
.practice-stat { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.practice-stat strong { font-size: 1.8rem; }
.xr-q { margin: .6rem 0; background: #0b1113; border-radius: .6rem; padding: .4rem; max-width: 360px; }
.xr-q svg { width: 100%; height: auto; display: block; }
.xr-q figcaption { color: #b8c6c8; font-size: .8rem; margin-top: .3rem; }
@media (max-width: 700px) {
  .practice-summary { grid-template-columns: 1fr 1fr; }
  .pq-form { padding: .8rem; }
  .pq-actions .button { flex: 1 1 auto; }
  .lesson-footer { flex-wrap: wrap; }
}

/* 무료·이용권 */
.free-tag { color: #3d5a1f; font-weight: 760; }
.locked-card { background: #fafbfb; }
.locked-card strong { color: #51646b; }
.lock-badge { color: #604815; background: #f6e9c5; }
.pass-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .65rem; align-items: center; margin: 0 0 1rem; padding: .75rem .9rem; border: 1px solid #ecd9a6; border-radius: .78rem; background: #fdf8ea; color: #604815; max-width: 760px; }
.pass-banner strong { display: block; font-size: .95rem; }
.pass-banner small { display: block; font-size: .85rem; color: #7a6227; }
.pass-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: start; padding: 1rem 1.05rem; margin: .8rem 0 1.2rem; border: 1px solid #ecd9a6; border-radius: .85rem; background: #fdf8ea; color: #604815; max-width: 760px; }
.pass-box strong { display: block; font-size: 1.02rem; color: #4d3a10; }
.pass-box p { margin: .3rem 0 .75rem; font-size: .9rem; color: #6c5520; word-break: keep-all; }
.locked-outline { margin: 0 0 .5rem; padding-left: 1.2rem; color: var(--muted); }
.locked-outline li { margin: .2rem 0; }
.pass-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; max-width: 760px; margin-bottom: 1rem; }
.pass-compare section { background: var(--white); border: 1px solid var(--line); border-radius: .85rem; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.pass-compare h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.pass-compare ul { margin: 0 0 .8rem; padding-left: 1.1rem; }
.pass-compare li { margin: .3rem 0; }
.pass-paid { border-color: #7eaa9a !important; }
.pass-price { font-weight: 760; color: var(--green-deep); margin-bottom: .6rem; }
.button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 700px) { .pass-compare { grid-template-columns: 1fr; } }
.pass-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.pass-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; max-width: 760px; margin-bottom: 1rem; }
.pass-option { position: relative; display: grid; gap: .3rem; align-content: start; background: var(--white); border: 2px solid var(--line); border-radius: .9rem; padding: 1rem 1.05rem; cursor: pointer; box-shadow: var(--shadow); }
.pass-option.chosen { border-color: var(--green); background: #fbfefd; }
.pass-option input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.pass-option:focus-within { outline: 3px solid #377b9e; outline-offset: 2px; }
.pass-option strong { font-size: 1.1rem; }
.pass-option small { color: var(--muted); font-size: .86rem; word-break: keep-all; }
.pass-amount { font-size: 1.55rem; font-weight: 820; color: var(--green-deep); letter-spacing: -.03em; }
.pass-amount small { font-size: .9rem; font-weight: 650; }
.pass-tag { justify-self: start; font-size: .76rem; font-weight: 760; color: #3d5a1f; background: #eef4e2; border-radius: .35rem; padding: .1rem .45rem; }
.pass-option select { margin-top: .4rem; min-height: 42px; border: 1px solid var(--line); border-radius: .5rem; padding: .35rem .5rem; font: inherit; background: #fff; }
.pass-buy { max-width: 760px; background: var(--white); border: 1px solid var(--line); border-radius: .85rem; padding: 1rem 1.1rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.pass-owned { color: var(--green); font-size: .9rem; margin: -.3rem 0 .6rem; }
.pay-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; margin: .2rem 0 .7rem; }
.pay-total span { color: var(--muted); font-size: .9rem; }
.pay-total strong { font-size: 1.5rem; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.pay-total small, .pass-amount .vat { color: var(--muted); font-size: .85rem; font-weight: 650; }
.pay-button { width: 100%; margin-top: .6rem; }
.pass-free { max-width: 760px; margin-bottom: 1rem; }
.pass-free h2, .account-heading { font-size: 1.05rem; margin-bottom: .4rem; }
.pass-free ul { padding-left: 1.1rem; margin: 0; }
.pass-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; max-width: 560px; }
.pass-list li { display: flex; justify-content: space-between; gap: .8rem; background: var(--white); border: 1px solid var(--line); border-radius: .6rem; padding: .6rem .8rem; }
.pass-list span { color: var(--muted); }
@media (max-width: 700px) { .pass-options { grid-template-columns: 1fr; } }
.login-form { display: grid; gap: .7rem; max-width: 420px; background: var(--white); border: 1px solid var(--line); border-radius: .85rem; padding: 1rem; box-shadow: var(--shadow); }
.login-form label { display: grid; gap: .35rem; font-weight: 700; font-size: .92rem; }
.login-form input { min-height: 44px; border: 1px solid var(--line); border-radius: .5rem; padding: .5rem .7rem; font-size: 1rem; }
.login-error { color: #8a3b20; min-height: 1em; }
.account-note { margin-top: .9rem; }
#toss-methods, #toss-agreement { margin: .4rem 0; }
.terms-page section { margin: 0 0 1.1rem; }
.terms-page h2 { font-size: 1.1rem; margin-bottom: .35rem; }
.terms-page ul { padding-left: 1.2rem; }
.business-info { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .9rem; margin: 0; }
.business-info dt { color: var(--muted); }
.business-info dd { margin: 0; }
.site-footer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--quiet); font-size: .82rem; word-break: keep-all; }
.site-footer a { text-decoration: underline; }

/* 2·3교시 애니메이션 */
.draw { stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.is-playing .draw { animation: draw-line var(--dur) ease-out var(--delay) both; }
.is-playing .draw.lin, .is-playing .curve.draw.lin { animation-timing-function: linear; }
.is-playing .pm.keep[data-lin] { animation-timing-function: linear; }
.widen-x { opacity: 0; transform-box: fill-box; transform-origin: left center; }
.is-playing .widen-x { animation: widen-x var(--dur) linear var(--delay) both; }
@keyframes widen-x { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .is-playing .draw, .is-playing .widen-x { animation-duration: .01ms !important; animation-delay: 0s !important; }
}
.pc-art .pc-tick { font-size: 10px; font-weight: 650; fill: var(--muted); }
.pc-art .pc-blue-label { fill: #2f6fb0; }
.ct-table { fill: #8d9ca0; }
.gantry { fill: #dfe9ec; stroke: #51646b; stroke-width: 2; }
.scanring { fill: none; stroke: #b3402a; stroke-width: 2; }
.helix { fill: none; stroke: #b3402a; stroke-width: 2.2; stroke-linecap: round; }
.recon-area { fill: #1d2a30; }
.streak { fill: #e8eff4; fill-opacity: .3; }
.streak-guide { fill: none; stroke: #8d9ca0; stroke-dasharray: 3 4; opacity: .35; }
.neg { fill: #0b1113; opacity: .55; }
.ct-obj { fill: #f5d26b; }
.inset { fill: none; stroke: #8d9ca0; }
.phase-band { opacity: 0; }
.phase-band.art { fill: #f6d9cf; }
.phase-band.por { fill: #dbe9f5; }
.is-playing .phase-band.pa { animation-name: band-in; }
@keyframes band-in { from { opacity: 0; } to { opacity: .8; } }
.curve.liver { stroke: #2f6fb0; }
.cone { fill: none; stroke: #8d9ca0; stroke-width: 1.4; }
.vec-tip { fill: #b3402a; }
.proton-c { fill: #25454b; }
.rf-wave { fill: none; stroke: #b0783d; stroke-width: 2.2; stroke-linecap: round; }
.dial { fill: #f2f7f6; stroke: #a9c3c0; stroke-width: 1.4; }
.field-line { stroke: #51646b; stroke-width: 2; }
.grad-wedge { fill: #c9ddd8; stroke: #51646b; }
.spin-hand { stroke: #b3402a; stroke-width: 2.6; stroke-linecap: round; }
.spin-hand.h0, .spin-hand.h4 { stroke: #d08a72; }
.rf-bar { fill: #b0783d; }
.mr-slab { fill: #6f7b80; }
.mr-bright { fill: #e8eff4; }
.vessel { fill: #f4fbfa; stroke: #b3402a; stroke-width: 1.4; }
.fresh { fill: #fff; stroke: #b3402a; stroke-width: 1.6; }
.flow-arrow { fill: none; stroke: #b3402a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.boundary { stroke: #edf8f8; stroke-width: 3; }
.ruler { stroke: #51646b; stroke-width: 1.4; fill: none; }
.echo-dot { fill: #f5d26b; stroke: #8a6a12; }
.vessel-us { fill: #1d2a30; }
.dop-red { fill: #c8453a; }
.dop-blue { fill: #2f6fb0; }
.is-playing .dop-red.pa, .is-playing .dop-blue.pa { animation-name: band-in; }
.rbc { fill: #c8735a; stroke: #fff; stroke-width: 1; }
.us-return { fill: none; stroke: #b3402a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.us-fan { fill: #3f5a5f; }
.scanline { stroke: #f5d26b; stroke-width: 1.6; stroke-dasharray: 4 3; }
.wall { stroke: #c9d6d3; stroke-width: 4; }
.wall-trace { stroke: #9fb0b3; stroke-width: 3; }
.valve { stroke: #f4fbfa; stroke-width: 4; stroke-linecap: round; }
.pmt { fill: #dfe9ec; stroke: #51646b; }
.pmt-on { fill: #f5d26b; }
.lightguide { fill: #eef6f8; stroke: #a9c3c0; }
.nm-img { fill: #1d2a30; }
.nm-dot { fill: #f5d26b; }
.vial { fill: #eef6f8; stroke: #51646b; stroke-width: 1.4; }
.tube-line { fill: none; stroke: #8d9ca0; stroke-width: 3; }
.column { fill: #efe9dc; stroke: #8d7a5a; stroke-width: 1.6; }
.mo-dot { fill: #51646b; }
.tc-dot { fill: #b3402a; }
.water-dot { fill: #3f7fb8; }
.egun { fill: #51646b; }
.waveguide { fill: #e6eef0; stroke: #51646b; stroke-width: 1.4; }
.cavity { stroke: #51646b; stroke-width: 1.4; }
.bend-mag { fill: #dfe9f5; stroke: #3f7fb8; stroke-width: 1.6; }
.flatten { fill: #b0783d; }
.jaw { stroke: #25454b; stroke-width: 6; }
.beam-edge { fill: none; stroke: #277c74; stroke-width: 1.6; }
.field-open { fill: #fff5e6; }
.tumor { fill: #e9a08a; stroke: #b3402a; stroke-width: 1.6; }
.leaf { fill: #8d9ca0; stroke: #51646b; stroke-width: 1; }
.field-frame { fill: none; stroke: #25454b; stroke-width: 1.6; }
.buildup { fill: #f6e3dc; opacity: 0; }
.is-playing .buildup.pa { animation-name: band-in; }
.curve.single { stroke: #8d9ca0; stroke-dasharray: 5 4; }
.xr-bg { fill: #1d2a30; }
.sub-bg { fill: #cfd6d8; }
.xbone { fill: #c9d3d6; }
.xrib { fill: none; stroke: #9fadb1; stroke-width: 3; stroke-linecap: round; }
.xvessel { fill: none; stroke: #f4fbfa; stroke-width: 3; stroke-linecap: round; }
.sub-vessel { fill: none; stroke: #1d2a30; stroke-width: 3; stroke-linecap: round; }
.soft { fill: #f6e3dc; }
.skin { stroke: #c8735a; stroke-width: 3; }
.artery { fill: #e9a08a; stroke: #b3402a; stroke-width: 1.4; }
.needle-line { stroke: #51646b; stroke-width: 3.5; stroke-linecap: round; }
.needle-hub { stroke: #3f7fb8; stroke-width: 8; stroke-linecap: round; }
.gwire { fill: none; stroke: #25454b; stroke-width: 1.6; }
.cath { fill: none; stroke: #3f7fb8; stroke-width: 5; stroke-linecap: round; stroke-opacity: .75; }
.xon { fill: #f5b75b; }
.xon-guide { fill: none; stroke: #b0783d; stroke-dasharray: 3 3; opacity: .5; }
.dose-bar { fill: #c8453a; }
.eso { fill: none; stroke: #c8735a; stroke-width: 4; stroke-linecap: round; }
.stomach { fill: #f6e3dc; stroke: #c8735a; stroke-width: 2; }
.les { stroke: #b3402a; stroke-width: 6; stroke-linecap: round; }
.les-open { stroke: #f6e3dc; stroke-width: 6; }
.barium { fill: #6f7b80; stroke: #25454b; stroke-width: 1.4; }
.squeeze { fill: none; stroke: #b3402a; stroke-width: 3; stroke-linecap: round; }

/* =====================================================================
   쮸댕 테마 — 쮸댕 모의시험과 같은 색·모양 (파랑 하늘 · 크림 · 노랑 · 스티커)
   위쪽 원래 규칙을 덮어써요. 과학 그림(애니메이션) 색은 그대로 둬요.
   ===================================================================== */
:root {
  --sky: #3E82C0; --sky-deep: #2C6AA5; --sky-soft: #DCEBF8;
  --cream: #FBF1E0; --cream-2: #FFF8EC; --paper: #FFFDF7;
  --yellow: #F5C84B; --yellow-soft: #FFF1C2;
  --pink: #E98AA8; --pink-ink: #A8335F; --pink-soft: #FDE7EF;
  --leaf: #8CC66B; --leaf-ink: #3B7A25; --leaf-soft: #E8F5DD;
  --blue-line: #7BAAD8; --blue-ink: #2D5E8E;
  /* 원래 변수 이름을 쮸댕 색으로 바꿔요 */
  --canvas: var(--cream); --white: var(--paper); --ink: #2B3440; --muted: #6E6A62; --quiet: #7C7468; --line: #EADBC2;
  --green: var(--sky); --green-deep: var(--blue-ink); --green-pale: var(--sky-soft); --lime: var(--yellow);
  --shadow: 0 3px 0 rgba(44,106,165,.10), 0 8px 18px rgba(60,50,30,.07);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}
body { background: var(--cream); }

/* 사이드바 */
.sidebar { background: var(--cream-2); border-right: 2px dashed var(--line); }
.brand-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 50%; background: none; overflow: visible; }
.brand-icon img { width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 3px 5px rgba(0,0,0,.15)); animation: jj-bob 3s ease-in-out infinite; }
@keyframes jj-bob { 50% { transform: translateY(-4px) rotate(-3deg); } }
.brand strong { font-weight: 900; color: var(--sky-deep); }
#navigation a { border-radius: 14px; color: #4A5563; border: 2px solid transparent; }
#navigation a:hover { background: var(--paper); border-color: var(--line); }
#navigation [aria-current] { background: var(--sky); color: var(--cream); border-color: var(--sky-deep); box-shadow: 0 3px 0 var(--sky-deep); }
#navigation .nav-count { background: var(--yellow); color: #3A2E14; font-weight: 800; }
.side-progress strong { color: var(--sky-deep); }
progress, progress::-webkit-progress-bar { background: var(--sky-soft); }
progress::-webkit-progress-value { background: repeating-linear-gradient(45deg, var(--sky) 0 8px, #5B98CF 8px 16px); }
progress::-moz-progress-bar { background: var(--sky); }
.sister { display: flex; align-items: center; gap: .55rem; margin-top: 1rem; padding: .7rem .8rem; border-radius: 16px; border: 2.5px solid var(--pink); background: var(--pink-soft); color: var(--pink-ink); font-weight: 800; font-size: .9rem; box-shadow: var(--shadow); }
.sister small { display: block; font-weight: 600; color: var(--muted); font-size: .76rem; }
.sister:hover { filter: brightness(1.03); }

/* 위쪽 바: 파란 하늘 */
.topbar { background: var(--sky); border-bottom: 0; box-shadow: 0 3px 0 var(--sky-deep); color: var(--cream); position: sticky; top: 0; z-index: 2; }
.trail { color: var(--cream); }
.search { background: var(--paper); border: 2px solid var(--sky-deep); border-radius: 14px; }
.search:focus-within { outline: 3px solid var(--yellow); }
.search kbd { background: var(--cream); }

/* 제목 */
.page-intro h1 { font-weight: 900; letter-spacing: -.05em; color: var(--sky-deep); }
.section-heading h2 { font-weight: 900; }

/* 홈 히어로: 하늘 + 구름 + 물결 */
.hero { background: var(--sky); border-radius: 24px; box-shadow: 0 5px 0 var(--sky-deep), var(--shadow); padding-bottom: 2.2rem; }
.hero::before { content: ""; position: absolute; z-index: 0; right: 4%; top: 8%; width: 84px; height: 40px; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 56'%3E%3Cpath d='M18 52h86a16 16 0 0 0 0-32 24 24 0 0 0-44-8 18 18 0 0 0-30 12A14 14 0 0 0 18 52z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; z-index: 0;
  background: radial-gradient(circle at 16px 22px, var(--cream) 14px, transparent 15px) 0 0 / 32px 22px repeat-x; }
.hero h2 { font-weight: 900; color: var(--cream); text-shadow: 0 3px 0 var(--sky-deep); }
.hero p { color: #F1F6FB; }
.hero-kicker { color: var(--yellow); }
.hero-label { fill: var(--cream); }

/* 버튼: 눌리는 스티커 */
.button { background: var(--sky); border-radius: 14px; font-weight: 800; box-shadow: 0 4px 0 var(--sky-deep); }
.button:hover { background: #4A8CC8; }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sky-deep); }
.hero-button { background: var(--yellow); color: #3A2E14; box-shadow: 0 4px 0 #C99A20; }
.hero-button:hover { background: #F8D266; }
.secondary { background: var(--paper); color: var(--blue-ink); border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.secondary:hover { background: var(--cream-2); }

/* 카드: 크림 종이 + 두꺼운 테두리 */
.snapshot, .featured-card, .subject-card, .lesson-card, .lesson-explainer, .practice, .atlas-card, .empty { background: var(--paper); border: 2px solid var(--line); border-radius: 20px; }
.featured-card:hover, .subject-card:hover, .lesson-card:hover { border-color: var(--blue-line); background: #FFFFFF; transform: translateY(-2px); }
.featured-card, .subject-card, .lesson-card { transition: transform .15s ease, border-color .15s ease; }
.snapshot-stat strong { color: var(--sky-deep); font-weight: 900; }
.feature-icon, .subject-icon { background: var(--sky-soft); color: var(--sky-deep); border-radius: 50%; }
.feature-icon.lilac { background: var(--pink-soft); color: var(--pink-ink); }
.feature-icon.sand { background: var(--yellow-soft); color: #8A6410; }
.subject-grid > :nth-child(3n+1) .subject-icon { background: var(--pink-soft); color: var(--pink-ink); }
.subject-grid > :nth-child(3n+2) .subject-icon { background: var(--leaf-soft); color: var(--leaf-ink); }
.card-eyebrow { color: var(--sky-deep); font-weight: 800; }
.free-tag { color: var(--leaf-ink); background: var(--leaf-soft); padding: 0 .4rem; border-radius: 99px; }
.section-tabs > * { border-radius: 99px; border: 2px solid var(--line); background: var(--paper); }
.section-tabs [aria-current] { background: var(--sky); color: var(--cream); border-color: var(--sky-deep); }
.badge { border-radius: 99px; font-weight: 800; }
.badge.complete { background: var(--leaf-soft); color: var(--leaf-ink); }
.badge.review { background: var(--yellow-soft); color: #7A5A06; }
.badge.started { background: var(--pink-soft); color: var(--pink-ink); }

/* 설명 그림 상자 · 형광펜 · 주의 */
.simulation, .diagram, .atlas-fig:not(.xr) { background: var(--cream-2); border: 2px dashed var(--line); border-radius: 16px; }
.diagram-items li { border-radius: 12px; border-color: var(--line); }
mark { background: linear-gradient(transparent 40%, var(--yellow) 40%); }
.pitfall, .atlas-point { background: var(--yellow-soft); border: 2px solid var(--yellow); border-radius: 16px; }
.segmented button, .pc-play { border-radius: 99px; border: 2px solid var(--blue-line); background: var(--paper); color: var(--blue-ink); }
.segmented [aria-pressed="true"] { background: var(--sky); border-color: var(--sky-deep); color: var(--cream); }

/* 문제 풀기 */
.question legend > span { color: var(--sky-deep); font-weight: 800; }
.option { border: 2px solid var(--line); border-radius: 14px; background: var(--paper); }
.option:has(input:checked), .option:hover { background: var(--sky-soft); border-color: var(--blue-line); }
.option-number { background: var(--cream); color: var(--blue-ink); border-radius: 50%; }
.option:has(input:checked) .option-number { background: var(--sky); }
.option.correct { background: var(--leaf-soft); border-color: var(--leaf); }
.option.incorrect { background: var(--pink-soft); border-color: var(--pink); }
.feedback, .atlas-feedback { border-radius: 14px; }
.feedback.right, .atlas-feedback.right { background: var(--leaf-soft); color: #2C5A1C; }
.feedback.wrong, .atlas-feedback.wrong { background: var(--pink-soft); color: #7A2346; }
.atlas-banner { background: var(--sky); border-radius: 20px; box-shadow: 0 4px 0 var(--sky-deep); }
.atlas-index a { background: var(--paper); border: 2px solid var(--blue-line); color: var(--blue-ink); }
.atlas-choice { border-radius: 99px; border: 2px solid var(--line); background: var(--paper); }
.atlas-choice.correct { background: var(--leaf-soft); border-color: var(--leaf); }
.atlas-choice.wrong { background: var(--pink-soft); border-color: var(--pink); }
.atlas-head h2, .pc-head h3, .diagram-label, .sim-caption strong, .pc-caption strong { color: var(--sky-deep); }

/* 휴대폰 */
@media (max-width: 850px) {
  .sidebar { border-right: 0; border-bottom: 2px dashed var(--line); }
  .brand-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .sister { display: none; }
}
@media (prefers-reduced-motion: reduce) { .brand-icon img { animation: none; } }
