/* Educational presentation layer. Never applies to the research workflow. */
.learning-ui { display: none; }
.mvp-example .learning-ui { display: block; }
.atlas-sprite { display: inline-block; width: 52px; height: 58px; flex-shrink: 0; }
.atlas-sprite > svg { display: block; width: 100%; height: 100%; padding: 3px; box-sizing: border-box; }
.mvp-example { --ink: #142137; --accent: #008b91; }
.mvp-example #map canvas { filter: saturate(1.12) brightness(1.02); }
.mvp-example .panel { top: 12px; left: 14px; width: 458px; min-height: 94px; padding: 15px 18px; border: 1px solid #d6e7e5; background: #fffffff5; border-radius: 17px; box-shadow: 0 8px 30px #1a687318; overflow: hidden; }
.mvp-example .panel h1 { font-size: 21px; letter-spacing: -.7px; }
.mvp-example .panel .eyebrow { font-weight: 800; letter-spacing: .8px; }
.mvp-example .mvp-caption { font-size: 11px; max-width: 290px; }
.atlas-brand-art { position: absolute; right: 6px; bottom: 0; width: 140px; height: 87px; pointer-events: none; }
.atlas-brand-art .atlas-sprite { position: absolute; right: 0; bottom: 0; width: 81px; height: 87px; }
.atlas-brand-art em { display: block; position: absolute; right: 67px; top: 19px; transform: rotate(-11deg); color: #278993; font-size: 12px; line-height: 1.8; font-style: normal; font-weight: 700; white-space: nowrap; }
.learning-panel { position: fixed; top: 16px; right: 58px; width: min(518px, 31vw); padding: 18px 22px 19px; border: 1px solid #d6e7e5; background: #fffffff5; border-radius: 20px; box-shadow: 0 12px 38px #27627319; z-index: 5; }
.learning-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.learning-heading h2 { margin: 0; font-size: 19px; font-weight: 850; letter-spacing: -.5px; }
.learning-heading p { margin: 0 0 0 auto; font-size: 12px; color: #407c89; }
.learning-profile { display: flex; align-items: center; gap: 12px; }
.learning-avatar { width: 80px; height: 88px; border-radius: 50%; background-color: #fff2d6; }
.learning-xp { flex: 1; min-width: 0; }
.learning-xp h3 { margin: 0 0 10px; font-size: 23px; letter-spacing: -.6px; }
.learning-xp small { display: block; margin-top: 5px; text-align: right; font-size: 12px; color: #3c7786; font-variant-numeric: tabular-nums; }
.learning-track { height: 12px; background: #e8eff0; border-radius: 20px; overflow: hidden; }
.learning-track > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #12a4b0, #2aa2a8); transition: width .35s; }
.learning-quiz-launch { width: 156px; height: 64px; border: none; border-radius: 13px; color: white; background: linear-gradient(125deg, #008797, #13a3a5); box-shadow: 0 5px 12px #007a9020; display: flex; align-items: center; justify-content: center; gap: 9px; font: inherit; font-weight: 800; cursor: pointer; }
.learning-quiz-launch b { font-size: 26px; } .learning-quiz-launch span { font-size: 14px; line-height: 1.5; }
.learning-ranks { position: relative; display: flex; justify-content: space-between; margin: 14px 0 21px; padding: 0; list-style: none; }
.learning-ranks::before { content: ''; height: 3px; background: #c9e3e0; position: absolute; left: 25px; right: 25px; top: 29px; }
.learning-ranks li { position: relative; text-align: center; min-width: 40px; font-size: 12px; font-weight: 800; }
.learning-ranks .atlas-sprite { display: block; width: 44px; height: 52px; margin: 0 auto 4px; position: relative; }
.learning-ranks .current .atlas-sprite { border-radius: 50%; background-color: #bfede8; outline: 3px solid #53c4c3; box-shadow: 0 2px 15px #2faab73d; transform: scale(1.12); }
.learning-ranks .current::after { content: '현재 레벨'; position: absolute; top: 75px; left: 50%; transform: translateX(-50%); padding: 4px 7px; background: #006f72; color: white; font-size: 10px; border-radius: 7px; white-space: nowrap; }
.learning-ranks .current { color: #007579; }
.learning-scores { padding-top: 15px; display: grid; gap: 13px; }
.learning-score { display: grid; grid-template-columns: 100px 1fr 69px 34px; gap: 10px; align-items: center; font-size: 13px; }
.learning-score strong { font-size: 14px; } .learning-score small { color: #487686; text-align: right; font-size: 12px; }
.learning-score b { color: #00898c; text-align: right; font-size: 13px; }
.learning-score .learning-track { height: 13px; }
.learning-score.explore i { background: #46b5a5; }
.learning-score.quiz i { background: #668fdb; } .learning-score.quiz b { color: #4b7acf; }
.learning-toc { position: fixed; z-index: 5; right: 22px; top: 358px; width: 244px; padding: 17px 15px; background: #fffffff5; border: 1px solid #d7e8e7; border-radius: 18px; box-shadow: 0 12px 35px #2b69751a; }
.learning-toc-header { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.learning-toc h2 { font-size: 19px; margin: 0; letter-spacing: -.4px; }
.learning-close { width: 26px; height: 26px; border: 1px solid #dce9ea; border-radius: 9px; background: white; color: #3a5a6d; font-size: 19px; cursor: pointer; }
.learning-toc > p { margin: 7px 0 15px; text-align: right; color: #507989; font-size: 12px; }
.learning-era-list { display: grid; gap: 5px; }
.learning-era { height: 39px; width: 100%; display: flex; align-items: center; gap: 12px; border: 1px solid #e0e9e8; background: #fff; padding: 5px 10px; border-radius: 11px; text-align: left; font: inherit; font-size: 14px; color: #18273c; cursor: pointer; transition: background .15s, transform .15s; }
.learning-era:hover { background: #edf9f6; transform: translateX(-3px); border-color: #83c7c3; }
.learning-era[aria-current='true'] { background: #ecf8f4; border-color: #9dcfc5; }
.learning-era .era-icon { font-size: 23px; width: 31px; text-align: center; }
.learning-era b { flex: 1; } .learning-era .chevron { color: #527c89; font-size: 21px; }
.learning-toc-toggle { position: fixed; right: 22px; bottom: 100px; z-index: 5; border: 1px solid #a8d9d3; background: white; color: #006c75; border-radius: 13px; padding: 12px 17px; font: inherit; cursor: pointer; }
.atlas-decoration { position: fixed; z-index: 1; pointer-events: none; opacity: .7; }
.atlas-decoration .atlas-sprite { width: 100%; height: 100%; }
.atlas-guide { position: fixed; bottom: 24px; right: 282px; z-index: 4; display: flex; align-items: flex-end; pointer-events: none; }
.atlas-guide .atlas-sprite { width: 88px; height: 100px; }
.atlas-guide p { margin: 0 0 52px 0; background: #fffef2; color: #284458; font-size: 12px; line-height: 1.6; font-weight: 750; padding: 13px 19px; border-radius: 50% 50% 50% 5px; box-shadow: 0 5px 16px #267d8312; }
.mvp-example .atlas-guide { display: flex; }
.mvp-example .research-settings-wrap { top: 7px; right: 10px; }
.mvp-example #research-settings-button { width: 32px; height: 32px; border-radius: 8px; }
.mvp-example .maplibregl-ctrl-top-right { top: 41px; right: 0; }
.mvp-example .research-settings { position: fixed; top: 50px; right: 58px; z-index: 8; box-shadow: 0 16px 55px #15364935; }
.mvp-example .time-panel { width: 322px; bottom: 10px; left: 14px; padding: 14px; border-radius: 11px; background: #ffffffee; border-color: #c9e2df; }
.mvp-example .prompt-composer { width: min(615px, calc(100vw - 720px)); min-height: 55px; bottom: 17px; padding-left: 45px; background: #fffffff5; border: 1px solid #d4e8e2; border-radius: 32px; box-shadow: 0 5px 20px #2479861a; }
.mvp-example .prompt-composer::before { content: '💡'; position: absolute; left: 16px; top: 14px; font-size: 23px; }
.mvp-example #research-prompt { font-size: 13px; }
.mvp-example #mvp-story-nav { bottom: 78px; padding: 5px; gap: 5px; border-radius: 12px; background: #fbffffed; }
.mvp-example #mvp-story-nav button { height: 32px; border-radius: 8px; font-size: 12px; }
.mvp-example #mvp-story-position { font-size: 13px; min-width: 72px; }
.mvp-example #mvp-photo { display: none; }
.mvp-example #learning-scene-quiz { display: inline-flex; align-items: center; gap: 5px; background: #fff2cc; color: #075a61; border: 1px solid #c8a552; font-weight: 800; padding: 0 13px; }
.mvp-example .mvp-bubble { background: #fffffff8; box-shadow: 0 12px 28px #20545c20; border: 1px solid #cfe2dd; }
.mvp-example .mvp-tail { fill: #fff; stroke: #cfe2dd; }
.mvp-example .mvp-bubble-image img { height: 110px; }
.learning-dialog { width: min(460px, calc(100vw - 32px)); padding: 28px; border: 1px solid #b7d9d4; border-radius: 22px; background: #fcfffd; color: #192e40; box-shadow: 0 25px 100px #003c4840; }
.learning-dialog::backdrop { background: #0c384c55; backdrop-filter: blur(5px); }
.learning-dialog .learning-close { float: right; }
.learning-dialog h2 { font-size: 23px; margin: 14px 0; }
.learning-dialog p { font-size: 15px; line-height: 1.8; }
.learning-dialog .dialog-kicker { color: #17868a; font-size: 12px; letter-spacing: 1px; font-weight: 800; }
.learning-answers { display: grid; gap: 9px; margin: 20px 0; }
.learning-answers button { height: auto; display: block; line-height: 1.5; text-align: left; border: 1px solid #d5e4e1; background: white; color: #233748; padding: 13px 15px; border-radius: 11px; font: inherit; cursor: pointer; }
.learning-answers button:hover { background: #edf9f5; }
.learning-answers button.correct { background: #dff5e9; border-color: #36a581; }
.learning-answers button.incorrect { background: #fff1e9; border-color: #c87850; }
.learning-feedback { color: #15584e; white-space: pre-line; }
.learning-feedback:not(:empty) { background: #eff7f3; padding: 10px 14px; border-radius: 10px; }
.learning-feedback:empty, .learning-answers:empty { display: none; }
.learning-dialog { max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; word-break: keep-all; overflow-wrap: anywhere; }
.learning-dialog .learning-close { min-height: 32px; min-width: 32px; }
.learning-quiz-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.learning-quiz-actions button, .education-read-step { border-radius: 9px; padding: 9px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.learning-quiz-actions button { border: 1px solid #17685e; background: #17685e; color: white; }
.learning-quiz-actions .secondary, .education-read-step { background: #eff8f3; border: 1px solid #b9dacf; color: #165d4e; }
.education-read-step { display: block; margin-top: 12px; font-size: 12px; }
.education-read-step:disabled { cursor: default; background: transparent; color: #4e665e; border-color: #d4dfda; }
.education-read-step:focus-visible { outline: 3px solid #cf982e; outline-offset: 2px; }
#learning-game-status { margin: 9px 0 0; padding-top: 7px; border-top: 1px solid #d9e6df; font-size: 12px; color: #15584e; }
.curriculum-scenes button[data-achievement]::after { content: attr(data-achievement); display: inline-block; margin-inline-start: 6px; padding: 0 5px; border-radius: 5px; background: #e6f4ec; color: #176050; font-size: 10px; font-weight: 600; }
.learning-toc-toggle { width: max-content; max-width: calc(100vw - 44px); height: auto; }
.learning-dialog button:focus-visible, .learning-ui button:focus-visible, #learning-scene-quiz:focus-visible { outline: 3px solid #e3ae3d; outline-offset: 3px; }
@media (max-width: 1450px) {
  .learning-panel { width: 370px; padding: 14px 17px; }
  .learning-heading p { display: none; }
  .learning-avatar { width: 60px; height: 68px; }
  .learning-xp h3 { font-size: 20px; }
  .learning-quiz-launch { width: 110px; height: 57px; }
  .learning-quiz-launch span { font-size: 12px; }
  .learning-score { grid-template-columns: 84px 1fr 57px 31px; gap: 7px; }
  .learning-score strong { font-size: 12px; }
  .learning-ranks .atlas-sprite { width: 36px; height: 43px; }
  .learning-ranks .current::after { top: 66px; }
  .learning-toc { top: 325px; width: 208px; padding: 13px; }
  .learning-era { height: 34px; font-size: 13px; }
  .learning-toc h2 { font-size: 17px; }
  .atlas-guide { display: none !important; }
  .mvp-example .prompt-composer { width: min(600px, calc(100vw - 550px)); }
}
@media (max-height: 790px) and (min-width: 1000px) {
  .learning-toc { top: 315px; bottom: 24px; overflow-y: auto; }
  .learning-era { height: 31px; }
  .learning-toc > p { margin-bottom: 9px; }
}
@media (max-width: 999px) {
  .mvp-example .panel { width: 370px; }
  .atlas-brand-art { opacity: .55; right: 4px; }
  .atlas-brand-art em { display: none; }
  .learning-panel { top: 117px; right: 14px; width: 232px; padding: 13px; }
  .learning-heading h2 { font-size: 16px; }
  .learning-avatar { width: 48px; height: 58px; }
  .learning-profile { flex-wrap: wrap; }
  .learning-quiz-launch { display: flex; flex: 1 0 100%; height: 32px; gap: 5px; }
  .learning-quiz-launch b { font-size: 16px; }
  .learning-quiz-launch span { font-size: 12px; }
  .learning-quiz-launch br { display: none; }
  .learning-ranks { margin-bottom: 8px; }
  .learning-ranks li { min-width: 24px; font-size: 10px; }
  .learning-ranks .atlas-sprite { width: 27px; height: 32px; }
  .learning-ranks .current::after { display: none; }
  .learning-scores { display: none; }
  .learning-toc { top: auto; bottom: 95px; width: 210px; max-height: 40vh; overflow: auto; }
  .mvp-example .prompt-composer { width: calc(100vw - 30px); bottom: 14px; }
  .mvp-example .time-panel { display: none; }
  .atlas-decoration { opacity: .35; }
}
@media (max-width: 699px) {
  .mvp-example .panel { width: calc(100vw - 62px); min-height: 88px; padding: 13px; }
  .mvp-example .panel h1 { font-size: 18px; }
  .atlas-brand-art { display: none; }
  .learning-panel { top: 109px; right: 12px; width: 184px; padding: 9px 12px; }
  .learning-heading { margin-bottom: 4px; } .learning-heading h2 { font-size: 14px; }
  .learning-profile { gap: 6px; } .learning-avatar { width: 38px; height: 44px; }
  .learning-xp h3 { font-size: 16px; margin-bottom: 5px; }
  .learning-ranks { display: none; }
  .learning-xp small { font-size: 10px; }
  .learning-toc { bottom: 132px; right: 12px; max-height: 58vh; }
  .learning-toc-toggle { bottom: 127px; right: 12px; font-size: 12px; padding: 8px 12px; }
  .mvp-example #mvp-story-nav { bottom: 76px; gap: 3px; }
  .mvp-example #mvp-story-nav button { padding: 0 7px; }
  .mvp-example #mvp-story-position { min-width: 60px; }
  .atlas-decoration { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .learning-track > i, .learning-era { transition: none; } }
