:root {
  --ink: #2F2B3D;
  --ink-2: #5B5670;
  --ink-3: #7A7590;
  --bg: #EAF6FB;
  --card: #FFFFFF;
  --lip: #DCD3C1;
  --line: #ECE6DA;
  --sea: #3FA9D6;
  --sea-d: #2C86B5;
  --teal: #13897A;
  --teal-d: #0D6B5F;
  --gold: #F2C230;
  --gold-d: #CFA21C;
  --red: #C6362B;
  --red-bg: #FFE3DE;
  --green-bg: #DDF5C8;
  --green: #2F7F35;
  --radius: 20px;
  --shadow: 0 10px 24px rgba(60, 50, 90, 0.12);
  --display: 'Jua', 'IBM Plex Sans KR', system-ui, sans-serif;
  --body: 'IBM Plex Sans KR', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: #FFFFFF;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
#app { max-width: 1240px; margin: 0 auto; min-height: 100vh; padding: 0 20px calc(170px + env(safe-area-inset-bottom)); }
.narrow { max-width: 560px; margin: 0 auto; }
.narrow.wide-ok { max-width: 820px; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--teal-d); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 3D building blocks ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--lip), var(--shadow), inset 0 1px 0 rgba(255,255,255,.7);
  padding: 18px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border: none; border-radius: 18px; cursor: pointer;
  font-family: var(--display); font-size: 19px; letter-spacing: .01em;
  background: linear-gradient(180deg, #FFFFFF, #F7F3EA); color: var(--ink);
  box-shadow: 0 5px 0 var(--lip), 0 10px 20px rgba(60,50,90,.12), inset 0 2px 0 rgba(255,255,255,.7);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
  text-decoration: none;
}
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--lip), 0 4px 10px rgba(60,50,90,.12), inset 0 2px 0 rgba(255,255,255,.7); }
.btn:disabled { cursor: default; background: #E6E1D6; color: #8A8578; box-shadow: inset 0 2px 4px rgba(60,50,90,.12); }
.btn.block { width: 100%; }
.btn.primary { background: linear-gradient(180deg, #1FA593, var(--teal)); color: #fff; box-shadow: 0 5px 0 var(--teal-d), 0 10px 20px rgba(13,107,95,.25), inset 0 2px 0 rgba(255,255,255,.3); }
.btn.primary:active:not(:disabled) { box-shadow: 0 1px 0 var(--teal-d), 0 4px 10px rgba(13,107,95,.2), inset 0 2px 0 rgba(255,255,255,.3); }
.btn.gold { background: linear-gradient(180deg, #F7D35E, var(--gold)); color: #3B3020; box-shadow: 0 5px 0 var(--gold-d), 0 10px 20px rgba(160,120,10,.22), inset 0 2px 0 rgba(255,255,255,.5); }
.btn.gold:active:not(:disabled) { box-shadow: 0 1px 0 var(--gold-d), 0 4px 10px rgba(160,120,10,.2), inset 0 2px 0 rgba(255,255,255,.5); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--teal-d); min-height: 44px; }
.btn.small { min-height: 40px; font-size: 16px; padding: 0 14px; border-radius: 14px; }
.btn:focus-visible, .choice:focus-visible, .chip:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #F7A541; outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: .01em; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 19px; }
.muted { color: var(--ink-2); }
.small-text { font-size: 13px; color: var(--ink-3); }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.spacer { flex: 1; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 10; margin: 0 -16px 14px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; display: flex; align-items: center; gap: 10px; background: rgba(207,239,250,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topbar .title { font-family: var(--display); font-size: 20px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: none; display: inline-flex; align-items: center; justify-content: center; background: #fff; cursor: pointer; box-shadow: 0 3px 0 var(--lip), 0 6px 14px rgba(60,50,90,.10); flex-shrink: 0; }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lip); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 18px; background: #fff; font-family: var(--display); font-size: 16px; box-shadow: 0 3px 0 var(--lip), 0 6px 12px rgba(60,50,90,.08); white-space: nowrap; }
.pill.fire { color: #A94E14; }
.pill.xp { color: #7A5A00; }

/* ---------- auth / onboarding ---------- */
.hero { text-align: center; padding: 48px 0 18px; }
.hero .logo { width: 96px; height: 96px; margin: 0 auto 14px; filter: drop-shadow(0 8px 14px rgba(30,90,130,.25)); }
.hero p { margin: 8px 0 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #F1ECE2; border-radius: 16px; padding: 4px; box-shadow: inset 0 2px 4px rgba(60,50,90,.10); }
.tabs button { border: none; background: transparent; min-height: 44px; border-radius: 12px; font-family: var(--display); font-size: 17px; color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--lip), 0 4px 10px rgba(60,50,90,.10); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
input[type=email], input[type=password], input[type=text], input[type=search] {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 2px solid transparent; background: #F7F4EE;
  box-shadow: inset 0 2px 4px rgba(60,50,90,.10); font-size: 16px;
}
input:focus { background: #fff; border-color: #9ED6EC; outline: none; }
.form-msg { font-size: 14px; padding: 10px 12px; border-radius: 12px; }
.form-msg.err { background: var(--red-bg); color: #8A1A12; }
.form-msg.ok { background: var(--green-bg); color: #1F5A24; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #DCD6CA; }

.school-list { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; padding: 4px 2px 8px; }
.chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 0 14px; border-radius: 16px; border: 2px solid transparent; background: #fff; cursor: pointer; text-align: left; box-shadow: 0 3px 0 var(--lip), 0 6px 12px rgba(60,50,90,.07); }
.chip[aria-pressed="true"] { border-color: var(--teal); background: #E7F7F3; }
.chip .name { font-weight: 600; }
.mini-bars { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.mini-bars span { width: 7px; border-radius: 3px; background: #E4DED2; }

/* ---------- home ---------- */
.hello { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar { width: 56px; height: 56px; flex-shrink: 0; border-radius: 18px; background: linear-gradient(180deg, #FFFFFF, #EAF6FB); box-shadow: 0 3px 0 var(--lip), 0 6px 14px rgba(60,50,90,.1); display: flex; align-items: center; justify-content: center; }
.school-card .bars { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }
.bar-track { height: 12px; border-radius: 6px; background: #F1ECE2; box-shadow: inset 0 2px 3px rgba(60,50,90,.12); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), inset 0 2px 0 rgba(255,255,255,.45); }
.reco { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #FFF6D6, #FFFFFF 60%); }
.reco .badge { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12), inset 0 2px 0 rgba(255,255,255,.5); color: #fff; font-family: var(--display); font-size: 22px; }

.world { position: relative; overflow: hidden; padding: 0; }
.world-head { position: relative; padding: 16px 18px 14px; color: #fff; }
.world-head .scene { position: absolute; inset: 0; z-index: 0; }
.world-head > *:not(.scene) { position: relative; z-index: 1; }
.world-head .kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; opacity: .95; }
.world-head h3 { font-size: 22px; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.weight-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 12px; font-weight: 700; }
.world.dim { opacity: .62; }
.units { padding: 6px 14px 16px; display: flex; flex-direction: column; gap: 0; }
.unit { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 10px 0; }
.unit + .unit { border-top: 1px dashed var(--line); }
.node {
  width: 56px; height: 52px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 20px; color: #fff;
  background: radial-gradient(circle at 50% 30%, #FFE27A 0%, #F2C230 70%);
  box-shadow: 0 5px 0 #C99A16, 0 8px 14px rgba(160,120,10,.25), inset 0 2px 0 rgba(255,255,255,.6);
}
.node.todo { background: radial-gradient(circle at 50% 30%, #6C6884, #48445C); box-shadow: 0 5px 0 #34314A, 0 8px 14px rgba(30,30,60,.25), inset 0 2px 0 rgba(255,255,255,.25); }
.node.next { background: radial-gradient(circle at 50% 30%, #4A4562, #2E2A40); box-shadow: 0 0 0 4px #F7CE45, 0 5px 0 #C99A16, 0 0 18px rgba(247,206,69,.8); animation: glow 1.6s ease-in-out infinite; }
.node.locked { background: #DCD6CA; box-shadow: inset 0 3px 5px rgba(60,50,90,.18); cursor: default; color: #8A8578; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px #F7CE45, 0 5px 0 #C99A16, 0 0 28px rgba(247,206,69,1); } }
.unit-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.unit-info .t { font-weight: 700; font-size: 16px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; }
.unit-actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }

/* ---------- concept ---------- */
.concept-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px dashed var(--line); line-height: 1.7; }
.concept-item:first-child { border-top: none; padding-top: 0; }
.concept-item .num { width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }

/* ---------- play ---------- */
.progress-blocks { flex: 1; display: grid; gap: 4px; }
.progress-blocks span { height: 12px; border-radius: 6px; background: #E4DED2; box-shadow: inset 0 2px 3px rgba(60,50,90,.14); }
.progress-blocks span.done { background: var(--gold); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), inset 0 2px 0 rgba(255,255,255,.5); }
.progress-blocks span.cur { background: #8ED64A; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), inset 0 2px 0 rgba(255,255,255,.5); }
.q-card { padding: 22px 18px; line-height: 1.8; font-size: 17px; }
.q-card .kicker { font-size: 12px; font-weight: 700; color: #A94E14; letter-spacing: .04em; margin-bottom: 8px; }
.q-card .katex-display { margin: .4em 0; }
.choices { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
.choice {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border-radius: 18px; border: 2px solid transparent; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, #FFFFFF, #FBF8F1); font-size: 17px;
  box-shadow: 0 5px 0 var(--lip), 0 10px 18px rgba(60,50,90,.10), inset 0 2px 0 rgba(255,255,255,.7);
  transition: transform .08s, box-shadow .08s;
}
.choice .key { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 16px; background: #EFEAE0; color: var(--ink-2); box-shadow: inset 0 -2px 0 rgba(60,50,90,.12); }
.choice[aria-pressed="true"] { transform: translateY(3px); border-color: #E8B93A; background: #FFF6D2; box-shadow: 0 2px 0 #E2C35A, 0 4px 10px rgba(60,50,90,.10); }
.choice[aria-pressed="true"] .key { background: var(--gold); color: #3B3020; }
.choice.correct { border-color: #6DBB3F; background: var(--green-bg); box-shadow: 0 4px 0 #86C24F; }
.choice.correct .key { background: #6DBB3F; color: #fff; }
.choice.wrong { border-color: #E07A6C; background: var(--red-bg); box-shadow: 0 4px 0 #E39A8E; }
.choice.wrong .key { background: #E07A6C; color: #fff; }
.choice:disabled { cursor: default; }
.feedback { border-radius: 20px; padding: 16px; line-height: 1.75; margin-top: 16px; }
.feedback.ok { background: var(--green-bg); box-shadow: 0 4px 0 #A9DA82; }
.feedback.no { background: var(--red-bg); box-shadow: 0 4px 0 #EDB2A8; }
.feedback .head { font-family: var(--display); font-size: 22px; margin-bottom: 4px; }
.feedback.ok .head { color: var(--green); }
.feedback.no .head { color: #8A1A12; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(245,241,232,0), rgba(245,241,232,.95) 30%); z-index: 20; }
.sticky-cta > div { max-width: 820px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.cta-info { flex: 1; font-family: var(--display); font-size: 17px; display: flex; align-items: center; gap: 6px; }

/* ---------- result ---------- */
.result-hero { text-align: center; padding: 30px 0 10px; }
.result-hero .big { font-family: var(--display); font-size: 30px; color: #fff; text-shadow: 0 4px 0 var(--sea-d), 0 8px 18px rgba(30,60,110,.3); }
.result-stars { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: 16px 0; }
.result-stars svg { filter: drop-shadow(0 4px 0 rgba(180,130,10,.35)); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { text-align: center; padding: 12px 6px; }
.stat .v { font-family: var(--display); font-size: 24px; }
.stat .l { font-size: 12px; color: var(--ink-3); }

/* ---------- exam ---------- */
.timer { font-family: var(--display); font-size: 18px; color: var(--sea-d); }
.timer.warn { color: var(--red); }
.omr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.omr button { min-height: 44px; border-radius: 12px; border: none; background: #fff; cursor: pointer; font-family: var(--display); font-size: 16px; box-shadow: 0 3px 0 var(--lip); }
.omr button.answered { background: #FFF1B8; box-shadow: 0 3px 0 #E2C35A; }
.omr button.current { outline: 3px solid var(--sea); outline-offset: 1px; }
.omr button.ok { background: var(--green-bg); box-shadow: 0 3px 0 #A9DA82; }
.omr button.no { background: var(--red-bg); box-shadow: 0 3px 0 #EDB2A8; }

/* ---------- list rows ---------- */
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); }
.list-row:first-child { border-top: none; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.empty { text-align: center; padding: 30px 10px; color: var(--ink-2); }

/* ---------- bottom nav ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -8px 24px rgba(60,50,90,.10); padding-bottom: env(safe-area-inset-bottom); }
.nav > div { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; text-decoration: none; color: var(--ink-3); font-family: var(--display); font-size: 13px; }
.nav a[aria-current="page"] { color: var(--teal-d); }
.nav a svg { width: 24px; height: 24px; }

#toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: .25s; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; z-index: 50; pointer-events: none; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.loading { display: flex; align-items: center; justify-content: center; min-height: 60vh; font-family: var(--display); color: var(--ink-2); font-size: 18px; }
.mascot-bob { animation: bob 1.3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===================== v2 ===================== */
.topbar { margin: 0 -20px 14px; padding-left: 20px; padding-right: 20px; }
.type-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 9px; color: #fff; font-family: var(--display); font-size: 16px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15), inset 0 2px 0 rgba(255,255,255,.35); }

/* onboarding */
.school-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.chip .chip-check { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: #F1ECE2; box-shadow: inset 0 2px 3px rgba(60,50,90,.15); display: flex; align-items: center; justify-content: center; color: #fff; }
.chip[aria-pressed="true"] .chip-check { background: var(--teal); box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.chip .name { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.chip .note { font-size: 11px; font-weight: 500; color: #A94E14; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.type-card { text-align: left; border: 3px solid transparent; border-radius: 22px; padding: 16px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 4px 0 var(--lip), 0 10px 22px rgba(60,50,90,.10), inset 0 1px 0 rgba(255,255,255,.7); }
.type-card[aria-pressed="true"] { border-color: var(--teal); background: #F0FAF7; }
.subjects { display: flex; flex-wrap: wrap; gap: 6px; }
.subj { color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 9px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }

/* home */
.home { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.world-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.wtab { display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 0 16px; border: none; border-radius: 16px; background: #fff; cursor: pointer; white-space: nowrap; font-family: var(--display); font-size: 16px; color: var(--ink-2);
  box-shadow: 0 3px 0 var(--lip), 0 6px 14px rgba(60,50,90,.08); }
.wtab .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.wtab[aria-selected="true"] { background: var(--c); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.18), 0 8px 18px rgba(60,50,90,.15); }
.wtab[aria-selected="true"] .dot { background: #fff; }
.wtab.out { opacity: .7; }
.out-tag { font-family: var(--body); font-size: 11px; font-weight: 700; background: rgba(0,0,0,.08); padding: 2px 6px; border-radius: 6px; }
.world-card { padding: 0; overflow: hidden; }
.world-head { position: relative; padding: 18px 20px 16px; color: #fff; overflow: hidden; }
.world-head .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-head > *:not(.scene) { position: relative; }
.world-head h2 { font-size: 26px; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.world-bar { margin-top: 12px; height: 12px; border-radius: 6px; background: rgba(255,255,255,.35); box-shadow: inset 0 2px 3px rgba(0,0,0,.12); overflow: hidden; }
.world-bar span { display: block; height: 100%; border-radius: 6px; background: #fff; }
.prereq { margin: 14px 18px 0; padding: 10px 14px; border-radius: 14px; background: #FFF6D6; font-size: 14px; line-height: 1.5; box-shadow: inset 0 -2px 0 rgba(200,160,40,.2); }
.continue { margin: 14px 18px 0; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; text-decoration: none; color: inherit; background: linear-gradient(135deg, #FFF6D6, #FFFFFF 70%); box-shadow: 0 4px 0 var(--lip), 0 8px 18px rgba(60,50,90,.10); }
.cont-ic { width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--c); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15), inset 0 2px 0 rgba(255,255,255,.4); }
.sections { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.section { border-radius: 20px; background: #FBF9F4; box-shadow: inset 0 0 0 1px #EFE9DD; overflow: hidden; }
.section.locked { opacity: .78; }
.sec-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border: none; background: transparent; cursor: pointer; text-align: left; }
.sec-num { width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 18px; background: #fff; color: var(--ink-2); box-shadow: 0 3px 0 var(--lip); }
.section.done .sec-num { background: #6DBB3F; color: #fff; box-shadow: 0 3px 0 #4E9A2C; }
.section.open .sec-num { background: var(--ink); color: #fff; box-shadow: 0 3px 0 #1A1726; }
.sec-title { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sec-title b { font-size: 17px; }
.sec-prog { display: flex; align-items: center; gap: 8px; }
.mini-track { width: 80px; height: 8px; border-radius: 4px; background: #E9E3D7; overflow: hidden; display: block; }
.mini-track span { display: block; height: 100%; border-radius: 4px; }
.sec-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.skip-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; }
.skip-row .small-text { flex: 1; }
.unit-row { background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 2px 0 #EFE9DD; }
.unit-title { display: flex; align-items: center; gap: 8px; }
.unit-code { font-family: var(--display); font-size: 13px; color: #fff; background: var(--ink-3); padding: 2px 7px; border-radius: 7px; }
.subs { margin: 4px 0 2px; }
.soon-tag { background: #EFEAE0; color: var(--ink-3); }
.stage-path { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin-top: 10px; row-gap: 12px; }
.path-line { width: 12px; height: 4px; border-radius: 2px; background: #E4DED2; }
.snode { position: relative; width: 48px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 4px 0 var(--lip), 0 6px 12px rgba(60,50,90,.15), inset 0 2px 0 rgba(255,255,255,.4); }
.snode.locked { --c: #DCD6CA; --lip: #C8C1B2; background: #E4DED2; box-shadow: inset 0 3px 5px rgba(60,50,90,.15); color: #9A9488; }
.snode.soon { background: #EFEAE0; box-shadow: inset 0 0 0 2px #E0D9CB; }
.snode.soon .snode-ic svg { stroke: #B5AE9F; }
.snode.next { animation: glow 1.6s ease-in-out infinite; box-shadow: 0 0 0 4px #F7CE45, 0 4px 0 var(--lip), 0 0 18px rgba(247,206,69,.9); }
.snode-stars { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 8px; padding: 0 2px; box-shadow: 0 1px 3px rgba(0,0,0,.12); line-height: 0; }
.snode-flag { position: absolute; top: -9px; right: -10px; font-size: 10px; font-weight: 700; color: #fff; background: #E8664F; padding: 1px 5px; border-radius: 6px; }

/* player (tablet first) */
.player-top { gap: 12px; }
.pbar { flex: 1; height: 14px; border-radius: 7px; background: #E4DED2; box-shadow: inset 0 2px 3px rgba(60,50,90,.14); overflow: hidden; }
.pbar span { display: block; height: 100%; border-radius: 7px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), inset 0 2px 0 rgba(255,255,255,.45); transition: width .3s; }
.hearts { display: inline-flex; gap: 2px; }
.player { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 760px; margin: 0 auto; }
.player.with-pad { max-width: none; }
.pane-content { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stage-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 14px; background: #fff; box-shadow: 0 3px 0 var(--lip); font-family: var(--display); font-size: 15px; max-width: 100%; }
.stage-chip svg { background: var(--c); border-radius: 9px; padding: 4px; width: 28px; height: 28px; box-sizing: border-box; flex-shrink: 0; }
.stage-chip .chip-title { font-family: var(--body); font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.concept-card { padding: 24px 22px; line-height: 1.85; font-size: 17px; }
.concept-card .kicker { font-size: 12px; font-weight: 700; color: var(--sea-d); letter-spacing: .04em; }
.concept-card.recall .kicker { color: var(--green); }
.concept-card h2 { margin: 4px 0 12px; }
.qtext { font-size: 17px; line-height: 1.85; }
.steps { margin: 14px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.75; }
.steps li { background: #F4FAFD; border-radius: 12px; padding: 8px 12px; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.choices { margin-top: 0; }
.choices.ox { grid-template-columns: 1fr 1fr; }
.choices.ox .choice { justify-content: center; min-height: 88px; }
.ox { font-family: var(--display); font-size: 40px; }
.pane-pad { padding: 0; display: flex; flex-direction: column; overflow: hidden; min-height: 46vh; }
.pad-tools { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid #EFE9DD; background: #FBF9F4; }
.pad-tools button { width: 44px; height: 44px; border-radius: 12px; border: none; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 0 var(--lip); color: var(--ink-2); }
.pad-tools button.on { background: #FFF1B8; box-shadow: 0 2px 0 #E2C35A, inset 0 0 0 2px #E8B93A; }
.pad-tools .sw { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.pad-tools .sw.hl { border-radius: 5px; width: 22px; height: 12px; }
.pad-surface { position: relative; flex: 1; min-height: 320px;
  background-color: #FFFEFB; background-image: linear-gradient(#EEF3F7 1px, transparent 1px), linear-gradient(90deg, #EEF3F7 1px, transparent 1px); background-size: 28px 28px; }
.pad-surface canvas { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
.pad-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #B5AE9F; font-family: var(--display); font-size: 18px; pointer-events: none; }
.pad-view { padding: 0; margin-top: 10px; height: 340px; display: flex; overflow: hidden; }
.pad-view .pad-surface { min-height: 0; }
.wrong-item .qtext { font-size: 15px; }
.result-hero .big.fail { color: #C6362B; text-shadow: 0 3px 0 #F3C9C2; }

@media (orientation: landscape) and (min-width: 900px) {
  .player.with-pad { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .player.with-pad .pane-pad { position: sticky; top: 76px; height: calc(100vh - 190px); min-height: 0; }
  .choices:not(.ox) { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .school-grid { grid-template-columns: 1fr; }
  .pane-pad { min-height: 38vh; }
  .sec-prog .mini-track { width: 48px; }
}

/* ===================== v3 · 부드럽고 몽글몽글한 테마 ===================== */
:root {
  --ink: #17224F; --ink-2: #4A5582; --ink-3: #8790B0;
  --lip: #E4E8F5; --line: #E8ECF6;
  --teal: #2F5BFF; --teal-d: #1B2A6B; --sea: #35BDF2; --sea-d: #2272D9;
  --gold: #35BDF2; --gold-d: #2272D9;
  --navy: #16215A;
  --radius: 26px;
  --soft: 0 10px 30px rgba(70, 90, 170, .12), 0 2px 6px rgba(70, 90, 170, .06);
  --display: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'IBM Plex Sans KR', system-ui, sans-serif;
  --body: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'IBM Plex Sans KR', system-ui, sans-serif;
}
body { background: #FFFFFF; letter-spacing: -0.01em; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }
.card { box-shadow: var(--soft); border-radius: var(--radius); }
.btn { font-weight: 700; font-size: 17px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 6px 16px rgba(70,90,170,.14), inset 0 0 0 1.5px #E3E8F6; transition: transform .12s ease, box-shadow .12s, filter .15s; }
.btn:active:not(:disabled) { transform: scale(.97); box-shadow: 0 3px 8px rgba(70,90,170,.14), inset 0 0 0 1.5px #E3E8F6; }
.btn:disabled { background: #EEF0F7; color: #A3AAC4; box-shadow: none; }
.btn.primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(22,33,90,.28); }
.btn.primary:active:not(:disabled) { box-shadow: 0 4px 10px rgba(22,33,90,.25); }
.btn.gold { background: linear-gradient(135deg, #3CCBFA, #2E9BF5); color: #fff; box-shadow: 0 8px 20px rgba(46,155,245,.32); }
.btn.gold:active:not(:disabled) { box-shadow: 0 4px 10px rgba(46,155,245,.28); }
.btn.ghost { color: var(--teal); box-shadow: none; }
.btn.small { border-radius: 999px; font-size: 15px; }
.btn.soft { background: #F1F4FF; color: var(--ink); box-shadow: none; }
.topbar { background: rgba(255,255,255,.62); }
.topbar .title { font-weight: 800; color: var(--navy); }
.icon-btn { border-radius: 50%; box-shadow: 0 4px 12px rgba(70,90,170,.12); }
.icon-btn:active { transform: scale(.95); box-shadow: 0 2px 6px rgba(70,90,170,.12); }
.pill { font-weight: 700; font-size: 15px; box-shadow: 0 4px 12px rgba(70,90,170,.10); }
.type-badge { border-radius: 50%; width: 30px; height: 30px; font-weight: 800; font-size: 15px; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.tabs { background: #EEF1FA; border-radius: 999px; box-shadow: none; }
.tabs button { border-radius: 999px; font-weight: 700; }
.tabs button[aria-selected="true"] { box-shadow: 0 4px 12px rgba(70,90,170,.14); }
input[type=email], input[type=password], input[type=text], input[type=search] { border-radius: 18px; background: #F4F6FC; box-shadow: none; border-color: #E6EAF6; }
input:focus { border-color: #8FB3FF; }
.chip, .type-card { box-shadow: 0 6px 18px rgba(70,90,170,.09); border-radius: 22px; }
.chip[aria-pressed="true"], .type-card[aria-pressed="true"] { border-color: #5A82FF; background: #F0F4FF; }
.chip .chip-check { border-radius: 50%; background: #EEF1FA; box-shadow: none; }
.chip[aria-pressed="true"] .chip-check { background: #5A82FF; box-shadow: none; }
.chip .note { color: #6A5BD6; }
.subj, .tag { border-radius: 999px; }
.wtab { border-radius: 999px; font-family: var(--body); font-weight: 700; font-size: 15px; box-shadow: 0 4px 14px rgba(70,90,170,.10); }
.wtab[aria-selected="true"] { box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 40%, transparent); }
.choice { border-radius: 22px; border: 2px solid #E8ECF7; background: #fff; box-shadow: 0 6px 16px rgba(70,90,170,.08); }
.choice .key { border-radius: 50%; background: #F0F3FB; box-shadow: none; font-weight: 800; }
.choice[aria-pressed="true"] { transform: none; border-color: #5A82FF; background: #F0F4FF; box-shadow: 0 6px 16px rgba(90,130,255,.18); }
.choice[aria-pressed="true"] .key { background: #5A82FF; color: #fff; }
.choice.correct { border-color: #4CC38A; background: #E9FAF1; box-shadow: none; }
.choice.correct .key { background: #4CC38A; }
.choice.wrong { border-color: #FF8A94; background: #FFF0F1; box-shadow: none; }
.choice.wrong .key { background: #FF8A94; }
.feedback { border-radius: 24px; }
.feedback.ok { background: #E9FAF1; box-shadow: none; }
.feedback.no { background: #FFF0F1; box-shadow: none; }
.feedback .head { font-weight: 800; }
.sticky-cta { background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 32%); }
.nav { background: rgba(255,255,255,.88); box-shadow: 0 -6px 24px rgba(70,90,170,.10); border-radius: 26px 26px 0 0; }
.nav a { font-family: var(--body); font-weight: 600; }
.nav a[aria-current="page"] { color: var(--teal); }
.stage-chip { border-radius: 999px; box-shadow: 0 4px 12px rgba(70,90,170,.10); font-weight: 700; }
.stage-chip svg { border-radius: 50%; }
.pbar { background: #E6EAF6; box-shadow: none; }
.pbar span { box-shadow: none; }
.steps li { background: #F2F6FF; border-radius: 16px; }
.pad-tools { background: #F7F8FD; border-bottom-color: #ECEFF8; }
.pad-tools button { border-radius: 50%; box-shadow: 0 3px 8px rgba(70,90,170,.10); }
.pad-tools button.on { background: #E8EEFF; box-shadow: inset 0 0 0 2px #5A82FF; }
.pad-surface { background-color: #FFFFFF; background-image: radial-gradient(#E3E8F5 1.2px, transparent 1.2px); background-size: 24px 24px; }
.omr button { border-radius: 14px; box-shadow: 0 3px 10px rgba(70,90,170,.08); }
.omr button.current { outline-color: #5A82FF; }
.result-hero .big { color: var(--navy); text-shadow: none; font-weight: 800; }
.stat .v { font-weight: 800; }
.concept-card .kicker, .q-card .kicker { color: #5A82FF; }
#toast { background: var(--navy); border-radius: 999px; }
.prereq, .soft-note { background: rgba(255,255,255,.7); box-shadow: none; border-radius: 18px; }

/* ---------- home v3 ---------- */
.home.v3 { max-width: 860px; gap: 12px; }
.world-sum { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: 28px; color: var(--ink);
  background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--c) 14%, #fff) 100%); box-shadow: var(--soft); }
.ws-kicker { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.ws-name { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.ws-prog { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 160px; }
.ws-pct { font-size: 22px; font-weight: 800; color: var(--navy); }
.ws-track { display: block; width: 180px; height: 10px; border-radius: 999px; background: #E9ECF7; overflow: hidden; }
.ws-track > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3CCBFA, #6C7CFF); }
.ws-track.thin { width: 100%; max-width: 220px; height: 6px; margin-top: 4px; }
.soft-note { padding: 12px 16px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.loc-banner { position: sticky; z-index: 9; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px 14px 22px; border: none; cursor: pointer; text-align: left;
  border-radius: 999px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(70,90,170,.16), inset 0 0 0 1.5px rgba(255,255,255,.9); }
.loc-banner::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); }
.loc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.loc-sec { font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-unit { font-size: 18px; font-weight: 800; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-more { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px 8px 14px; border-radius: 999px; background: #EEF2FF; color: #3E5BD6; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.trail-wrap { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.sec-block { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; }
.sec-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 28px; background: var(--navy); color: #fff; box-shadow: 0 12px 28px rgba(22,33,90,.25); }
.sec-block.locked .sec-card { background: #A9B1CE; box-shadow: 0 8px 20px rgba(70,90,170,.15); }
.sec-block.done .sec-card { background: linear-gradient(135deg, #3BC48A, #2AA5A0); }
.sec-badge { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; background: rgba(255,255,255,.16); color: #fff; }
.sec-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sec-info b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.sec-card .small-text { color: rgba(255,255,255,.72); }
.sec-card .ws-track { background: rgba(255,255,255,.2); }
.sec-card .ws-track > span { background: #7FE0FF; }
.sec-card .btn.soft { background: rgba(255,255,255,.95); }
.unit-block { padding-top: 26px; }
.unit-pill { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin: 0 auto 6px; max-width: 520px; padding: 14px 22px; border-radius: 26px; background: rgba(255,255,255,.78); box-shadow: 0 6px 18px rgba(70,90,170,.08); }
.unit-pill b { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.u-no { font-size: 12px; font-weight: 800; color: #5A82FF; letter-spacing: .02em; }
.trail { position: relative; width: 100%; }
.trail-lines { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.trail-lines line { stroke: #DCE2F3; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1 16; }
.trail-lines line.on { stroke: #9FB6FF; }
.trow { position: relative; height: 118px; }
.trow.big { height: 150px; }
.pnode { position: absolute; left: calc(50% + var(--off)); top: 50%; width: 92px; height: 92px; transform: translate(-50%, -54%); text-decoration: none; transition: transform .15s ease; -webkit-tap-highlight-color: transparent; }
.trow.big .pnode { width: 124px; height: 124px; }
.pnode:active { transform: translate(-50%, -50%) scale(.95); }
.pad-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 12px rgba(70,90,170,.16)); }
.pnode-ic { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); display: flex; }
.pnode-ic svg { width: 30px; height: 30px; }
.trow.big .pnode-ic svg { width: 40px; height: 40px; }
.pnode.locked .pnode-ic { color: #A7AFC8; }
.pnode.locked .pnode-ic svg { stroke: #A7AFC8; }
.pnode-done { position: absolute; right: 2px; top: 0; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #3BC48A; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(70,90,170,.2); }
.pnode-done svg { width: 15px; height: 15px; }
.pnode.next::before { content: ""; position: absolute; left: 50%; top: 44%; width: 104%; height: 104%; transform: translate(-50%, -50%); border-radius: 50%; border: 4px solid #6C7CFF; opacity: .55; animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { transform: translate(-50%, -50%) scale(.85); opacity: .6; } 100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0; } }
.start-bubble { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; box-shadow: 0 6px 14px rgba(22,33,90,.3); animation: bob 1.4s ease-in-out infinite; }
.start-bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--navy); }
.plabel { position: absolute; top: 50%; transform: translateY(-58%); max-width: min(240px, 34%); display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 18px; background: rgba(255,255,255,.85); box-shadow: 0 6px 16px rgba(70,90,170,.08); }
.plabel.right { left: calc(50% + var(--off) + 64px); }
.plabel.left { right: calc(50% - var(--off) + 64px); text-align: right; align-items: flex-end; }
.trow.big .plabel.right { left: calc(50% + var(--off) + 80px); }
.trow.big .plabel.left { right: calc(50% - var(--off) + 80px); }
.ptype { align-self: inherit; font-size: 11px; font-weight: 800; color: var(--tc); background: var(--tint); padding: 2px 8px; border-radius: 999px; width: fit-content; }
.plabel.left .ptype { align-self: flex-end; }
.ptitle { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plabel.dim { opacity: .55; }
.pstars { line-height: 0; margin-top: 2px; }
.jump-cur { position: fixed; right: 22px; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 25; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px; border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #3CCBFA, #6C7CFF); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 10px 24px rgba(90,110,255,.35); }
.jump-cur[hidden] { display: none; }
/* 섹션 선택 시트 */
.sheet-back { position: fixed; inset: 0; z-index: 60; background: rgba(23,34,79,.0); transition: background .2s; display: flex; align-items: flex-end; justify-content: center; }
.sheet-back.show { background: rgba(23,34,79,.32); }
.sheet { width: 100%; max-width: 720px; max-height: 82vh; display: flex; flex-direction: column; gap: 12px; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; background: #fff; transform: translateY(100%); transition: transform .22s ease; box-shadow: 0 -10px 40px rgba(23,34,79,.2); }
.sheet-back.show .sheet { transform: none; }
.sheet-grab { width: 44px; height: 5px; border-radius: 3px; background: #DDE2F0; margin: 0 auto 4px; }
.sheet-list { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; }
.sheet-sec { border-radius: 24px; background: #F6F8FE; padding: 6px; }
.sheet-sec.cur { background: #EEF2FF; box-shadow: inset 0 0 0 2px #C9D5FF; }
.sheet-sec-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border: none; background: transparent; cursor: pointer; text-align: left; }
.sheet-sec-head .sec-badge { background: var(--navy); }
.sheet-sec.locked .sec-badge { background: #B4BBD6; }
.sheet-sec.done .sec-badge { background: #3BC48A; }
.sheet-sec-head b { font-size: 17px; color: var(--navy); }
.sheet-units { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 8px 64px; }
.sheet-unit { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: none; border-radius: 999px; background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); box-shadow: 0 2px 8px rgba(70,90,170,.08); }
.sheet-unit.cur { background: var(--navy); color: #fff; }
.sheet-unit.cur .u-no { color: #9FD8FF; }
.u-ok { color: #3BC48A; display: inline-flex; }
.u-ok svg { width: 14px; height: 14px; }
@media (max-width: 600px) {
  .world-sum { flex-direction: column; align-items: flex-start; }
  .ws-prog { align-items: flex-start; width: 100%; }
  .ws-track { width: 100%; }
  .loc-more span, .loc-more { font-size: 0; padding: 8px; gap: 0; }
  .loc-more svg { width: 18px; height: 18px; }
  .pnode { width: 76px; height: 76px; } .trow.big .pnode { width: 100px; height: 100px; }
  .plabel { max-width: 30%; padding: 8px 10px; }
  .plabel.right { left: calc(50% + var(--off) + 46px); } .plabel.left { right: calc(50% - var(--off) + 46px); }
  .ptitle { font-size: 12px; }
  .sheet-units { padding-left: 8px; }
}
/* 개념 보충 칸 */
.more-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.more { border-radius: 18px; padding: 12px 16px; font-size: 16px; line-height: 1.75; }
.more-h { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.more-why { background: #EEF3FF; } .more-why .more-h { color: #3E5BD6; }
.more-ex { background: #EFFAF4; } .more-ex .more-h { color: #23966A; }
.more-trap { background: #FFF2F2; } .more-trap .more-h { color: #D24857; }
.more-tip { background: #FFF7E6; } .more-tip .more-h { color: #C27B0E; }
/* 섹션 시트 접기/펼치기 */
.sheet-sec-row { display: flex; align-items: center; gap: 8px; padding-right: 8px; }
.sheet-sec-row .sheet-sec-head { flex: 1; min-width: 0; }
.sheet-fold { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; min-height: 40px; padding: 0 12px 0 14px; border: none; border-radius: 999px; background: #fff; color: #3E5BD6; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(70,90,170,.10); }
.sheet-fold svg { transition: transform .2s; }
.sheet-fold[aria-expanded="true"] svg { transform: rotate(180deg); }
.sheet-units[hidden] { display: none; }
.sheet-units { padding: 2px 8px 10px 64px; }
@media (max-width: 600px) { .sheet-fold span { display: none; } .sheet-fold { padding: 0 10px; } .sheet-units { padding-left: 8px; } }

/* ---------- 학교별 기출 ---------- */
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 8px; }
.year-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; background: #F4F6FC; color: var(--ink); text-decoration: none; box-shadow: inset 0 -3px 0 rgba(22,33,90,.08); }
.year-cell b { font-size: 18px; }
.year-cell span { font-size: 12px; color: var(--ink-3); }
.year-cell.done { background: #EAF6E1; }
.year-cell.done span { color: #3E7A22; font-weight: 600; }
.q-fig { display: block; max-width: 100%; max-height: 320px; margin: 12px auto 0; border-radius: 10px; background: #fff; }
.past-choices { margin: 8px 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.past-choices li { padding: 2px 8px; border-radius: 8px; }
.past-choices li.ans { background: var(--green-bg); font-weight: 600; }
.past-choices li.mine { background: var(--red-bg); }
.sticky-cta #prev { flex: 0 0 auto; min-width: 92px; white-space: nowrap; }

/* ---------- 코스 난이도 트랙 ---------- */
.track-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #EEF1FA; padding: 5px; border-radius: 18px; margin: 10px 0; }
.track-tabs button { border: 0; background: transparent; border-radius: 14px; padding: 9px 4px; font: inherit; font-weight: 700; color: var(--ink-3); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.track-tabs button[aria-selected="true"] { background: #fff; color: var(--c); box-shadow: 0 2px 8px rgba(40,50,110,.12); }
.tt-me { font-size: 10px; font-weight: 700; background: var(--c); color: #fff; border-radius: 6px; padding: 1px 5px; }
.track-units { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 22px; }
.track-unit { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: 0 3px 12px rgba(40,50,110,.08); }
.track-unit b { display: block; }
.track-unit .u-no { font-size: 12px; color: var(--ink-3); }
.track-unit .tu-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #F2B630; color: #fff; }
.track-unit.locked { opacity: .7; }
.track-unit.locked .tu-ic { background: #E6E9F4; color: #8A90AA; }
/* 수식 크기: 본문과 비슷한 크기로, 줄 안 분수(\dfrac)도 같은 크기라 줄 간격만 살짝 여유 */
.katex { font-size: 1.08em; }
/* 수식 안 한글(\\text{반지름} 등)은 본문 글꼴·크기에 맞춘다 */
.katex .hangul_fallback, .katex .cjk_fallback { font-family: var(--body); font-size: .926em; font-weight: inherit; }
.q-card, .feedback, .concept-card, .qtext, .more, .concept-item, .steps { overflow-wrap: anywhere; }
.katex-display > .katex { font-size: 1.1em; }
/* 풀이 메모장: 여러 페이지 + 손가락 쓰기 */
.pad-sub { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #ECEFF8; background: #FBFCFF; font-size: 13px; color: var(--ink-2); }
.pad-sub .spacer { flex: 1; }
.pad-finger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.pad-finger input { width: 18px; height: 18px; accent-color: #5A82FF; }
.pad-add { display: inline-flex; align-items: center; gap: 4px; border: none; border-radius: 999px; padding: 6px 12px; background: #fff; color: var(--navy); font-weight: 700; font-size: 13px; box-shadow: 0 2px 6px rgba(70,90,170,.14); cursor: pointer; }
.pad-add:disabled { opacity: .45; cursor: default; }
.pad-pager { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(70,90,170,.14); font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pad-pager button { border: none; background: none; width: 26px; height: 26px; font-size: 18px; line-height: 1; color: var(--navy); cursor: pointer; border-radius: 50%; }
.pad-pager button:disabled { opacity: .25; cursor: default; }
.pad-surface.flip-l canvas { animation: padIn .22s ease-out; }
.pad-surface.flip-r canvas { animation: padIn2 .22s ease-out; }
@keyframes padIn { from { opacity: .2; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes padIn2 { from { opacity: .2; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.pane-pad { min-height: 62vh; }
.pad-surface { min-height: 440px; }
/* 문제 풀이 화면 상단: 배경 막대 없이, 스크롤을 따라 내려오지 않게 */
.topbar.player-top { position: static; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
@media (orientation: landscape) and (min-width: 900px) {
  .player.stage-play.with-pad .pane-pad { top: 16px; height: calc(100vh - 120px); min-height: 0; }
  .player.with-pad .pane-pad { min-height: 0; }
}
.pad-hint[hidden] { display: none; }
/* 유닛 건너뛰기 */
.jump-bubble { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); padding: 6px 12px; border-radius: 12px; background: #fff; color: #E2596A; border: 2px solid #FFB3BB; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 14px rgba(226,89,106,.22); animation: bob 1.6s ease-in-out infinite; cursor: pointer; z-index: 3; }
.jump-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #FFB3BB; }
.pnode.locked:has(.jump-bubble) .pad-svg { filter: drop-shadow(0 0 0 transparent) drop-shadow(0 6px 14px rgba(226,89,106,.25)); }
.jump-intro { text-align: center; padding-top: 6vh; }
.jump-hero { position: relative; width: 150px; margin: 0 auto 18px; }
.jump-pad { position: relative; width: 150px; height: 150px; }
.jump-pad .pnode-ic { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%) scale(1.8); color: #fff; }
.jump-pad .pnode-ic svg { stroke: #fff; }
.jump-title { font-family: var(--display); font-size: 26px; line-height: 1.4; color: var(--navy); margin: 8px 0 12px; }
.jump-sub { color: var(--ink-2); line-height: 1.6; margin: 0 auto; max-width: 440px; }
.jump-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.btn-link { display: block; text-align: center; padding: 10px; font-weight: 800; color: #4E8FE0; text-decoration: none; letter-spacing: .02em; }
/* 개념 그림 */
.cfig { margin: 14px 0 4px; padding: 10px 10px 8px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #E8ECF7; text-align: center; }
.cfig-svg { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; }
.cfig figcaption { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); text-align: left; }
/* 공통 보기표(20개 안팎) */
.choices.pool { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.choices.pool .choice { min-height: 52px; padding: 8px 10px; border-radius: 14px; gap: 6px; }
.choices.pool .choice .key { width: 24px; height: 24px; font-size: 12px; flex: none; }
@media (max-width: 600px) { .choices.pool { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pool-note { margin: 10px 2px 0; }
.past-choices.pool { columns: 2; }

/* 마스코트 설명 */
.talk { display: flex; gap: 10px; align-items: flex-end; margin: 0 0 12px; }
.talk-m { flex: 0 0 auto; }
.mascot-img { display: block; height: auto; animation: bob 2.6s ease-in-out infinite; }
.talk-b { flex: 1; position: relative; background: #fff; border: 2px solid var(--line, #E4DED2); border-radius: 18px; padding: 14px 16px 8px; box-shadow: 0 2px 0 rgba(0,0,0,.05); }
.talk-b::before { content: ""; position: absolute; left: -9px; bottom: 18px; width: 14px; height: 14px; background: #fff; border-left: 2px solid var(--line, #E4DED2); border-bottom: 2px solid var(--line, #E4DED2); transform: rotate(45deg); }
.talk-say { font-size: 17px; line-height: 1.75; min-height: 3.4em; cursor: pointer; }
.talk-nav { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.talk-nav .icon-btn { width: 36px; height: 36px; font-size: 15px; }
.talk-nav .link-btn { margin-left: auto; background: none; border: 0; color: var(--sea-d, #2C86B5); font-weight: 700; cursor: pointer; padding: 6px; }
.talk-done { align-items: center; }
.talk-done .talk-m { flex-basis: 40px; }
.btn.small { padding: 8px 14px; font-size: 14px; min-height: 0; }
.talk-name { font-size: 12px; font-weight: 800; color: #4330C2; letter-spacing: .02em; margin-bottom: 2px; }

/* 개념 장면 재생기 */
.scene { background: radial-gradient(120% 90% at 50% 0%, #1B2140 0%, #0B0E1C 70%); border-radius: 22px; padding: 12px 12px 10px; margin: 0 0 12px; box-shadow: 0 8px 24px rgba(20,24,60,.25); }
.scene-title { min-height: 1.7em; text-align: center; color: #F5F7FF; font-weight: 800; font-size: 16px; line-height: 1.5; padding: 2px 8px 6px; }
.scene-title .katex { font-size: 1.05em; }
.scene-stage { position: relative; width: 100%; aspect-ratio: 16 / 11; }
.scene-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.scene-lab { position: absolute; left: 0; top: 0; font-size: 14px; font-weight: 700; white-space: nowrap; transition: opacity .35s; text-shadow: 0 0 6px rgba(0,0,0,.8); }
.scene + .talk { margin-top: -2px; }
.pad-w { display: inline-flex; gap: 4px; margin-left: 6px; }
.pad-w button { width: 32px; height: 32px; border-radius: 50%; border: none; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 6px rgba(70,90,170,.10); }
.pad-w button span { display: block; border-radius: 50%; background: #2F2B3D; }
.pad-w button[aria-pressed="true"] { background: #E8EEFF; box-shadow: inset 0 0 0 2px #5A82FF; }

/* 확인 버튼: 답을 고르기 전에는 회색 */
.btn:disabled, .btn.gold:disabled, .btn.primary:disabled { background: #E6E9F2; color: #9AA2BA; box-shadow: none; cursor: default; }

/* 다크 모드(기기 설정을 따름) */
@media (prefers-color-scheme: dark) {
  :root, body { --ink: #E9ECF5; --ink-2: #B7BED3; --ink-3: #8C93AB; --card: #181B24; --lip: #0B0D12; --line: #2A2F3D; --navy: #C9D3FF; --soft: 0 6px 20px rgba(0,0,0,.45); color-scheme: dark; }
  body { background: #000; color: var(--ink); }
  .card, .icon-btn, .pill, .chip, .type-card, .wtab, .sec-num, .skip-row, .unit-row, .stage-chip, .omr button, .choice, .btn, .sheet, .sheet-unit, .sheet-fold,
  .track-unit, .pad-add, .talk-b, .talk-b::before, .pad-w button, .pad-tools button, .snode-stars, .pnode-done, .jump-bubble,
  .tabs button[aria-selected="true"], .track-tabs button[aria-selected="true"], .avatar { background: #181B24; color: var(--ink); }
  .btn { box-shadow: inset 0 0 0 1.5px #2A2F3D; }
  .btn.primary, #toast, .start-bubble { background: #3550D8; color: #fff; }
  .start-bubble::after { border-top-color: #3550D8; }
  .btn.gold { background: linear-gradient(135deg, #3CCBFA, #2E9BF5); color: #fff; }
  .btn.soft, .sec-card .btn.soft { background: #232733; color: var(--ink); }
  .btn:disabled, .btn.gold:disabled, .btn.primary:disabled { background: #262A35; color: #6F7690; box-shadow: none; }
  .topbar { background: rgba(0,0,0,.7); }
  .nav { background: rgba(20,22,30,.94); box-shadow: 0 -6px 24px rgba(0,0,0,.5); }
  .tabs, .track-tabs, input[type=email], input[type=password], input[type=text], input[type=search], .choice .key, .chip .chip-check, .pbar, .ws-track, .bar-track,
  .mini-track, .path-line, .progress-blocks span, .mini-bars span, .sheet-sec, .year-cell, .steps li, .section, .loc-more, .pad-tools, .pad-sub, .soon-tag,
  .prereq, .soft-note, .unit-pill, .plabel, .weight-tag, .pad-pager, .reco, .continue, .world-bar { background: #232733; color: var(--ink); }
  input:focus { background: #232733; color: var(--ink); }
  .sheet-sec.cur { background: #22305A; box-shadow: inset 0 0 0 2px #3E5BD6; }
  .choice[aria-pressed="true"], .chip[aria-pressed="true"], .type-card[aria-pressed="true"], .omr button.answered, .pad-tools button.on, .pad-w button[aria-pressed="true"] { background: #22305A; }
  .pad-w button span { background: #E9ECF5; }
  .choice.correct, .feedback.ok, .year-cell.done, .form-msg.ok { background: #123524; color: var(--ink); }
  .choice.wrong, .feedback.no { background: #3A1A1F; color: var(--ink); }
  .more-why { background: #1D2440; } .more-why .more-h { color: #9FB2FF; }
  .more-ex { background: #14301F; } .more-ex .more-h { color: #6FDCA7; }
  .more-trap { background: #3A1C20; } .more-trap .more-h { color: #FF9AA5; }
  .more-tip { background: #3A2E14; } .more-tip .more-h { color: #F2C46B; }
  .concept-card .kicker, .loc-more { color: #9FB2FF; }
  .snode.locked, .snode.soon, .track-unit.locked .tu-ic { background: #2A2E3A; color: #6F7690; box-shadow: none; }
  .scene { box-shadow: 0 8px 24px rgba(0,0,0,.6); }
  .cfig, .q-fig { background: #F4F6FC; }
  .pad-surface { filter: none; }
  a { color: #9FB2FF; }
  .world-sum { background: linear-gradient(135deg, #181B24 0%, color-mix(in srgb, var(--c) 22%, #181B24) 100%); }
  .loc-banner { background: rgba(24,27,36,.92); box-shadow: 0 10px 28px rgba(0,0,0,.5), inset 0 0 0 1.5px #2A2F3D; }
  .sec-card { background: #1E2A66; color: #fff; }
  .sec-block.locked .sec-card { background: #2A2E3A; color: #9AA2BA; }
  .sec-card .btn.soft { background: rgba(255,255,255,.12); color: #fff; }
  .sticky-cta { background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.94) 32%); }
  .pad-tools .sw[style*="#2F2B3D"] { box-shadow: 0 0 0 2px #8C93AB; }
}
/* 본문에서 블록으로 뺀 수식: 가운데 정렬, 폭이 넘치면 그 수식만 옆으로 스크롤 */
.concept-card .katex-display, .more .katex-display { margin: .45em 0 .55em; overflow-x: auto; overflow-y: hidden; padding: 2px 0; text-align: center; }
/* 수식 맞춤(app.js fitMath): 줄 안 수식은 쪼개지지 않고 통째로 다음 줄로, 넘치면 블록 */
.mf { white-space: nowrap; }
.mf .katex, .mf .katex-html { white-space: nowrap; }
.mf.mf-b, .mf.mf-d { display: block; white-space: normal; }
.mf.mf-l { white-space: normal; }
.mf-l .mf-i { white-space: nowrap; }
.mf-b .katex-display, .mf-d .katex-display { margin: .45em 0 .55em; overflow-x: auto; overflow-y: hidden; padding: 2px 0; text-align: center; }

/* ---------- 섬 지도 스타일 (2026-11): 상단 바, 스테이지 발판, 스테이지 이름 ---------- */
@font-face { font-family: 'Jua'; src: url('fonts/jua-korean-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jua'; src: url('fonts/jua-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
.topbar .title.brand { font-family: 'Jua', var(--display); font-weight: 400; font-size: 20px; color: #0E8A50; letter-spacing: 0; }
.pill { height: 36px; padding: 0 10px; border-radius: 12px; background: #fff; border: 2px solid #E3E8EC; box-shadow: none; font-family: 'Jua', var(--display); font-weight: 400; font-size: 16px; gap: 4px; }
.pill.fire { color: #E8590C; } .pill.xp { color: #B97F00; }
.world-title { font-family: 'Jua', var(--display); font-weight: 400; font-size: 30px; color: var(--ink); margin: 6px 4px 14px; letter-spacing: 0; }
.unit-pill { background: none; box-shadow: none; padding: 6px 12px; }
.unit-pill b { font-family: 'Jua', var(--display); font-weight: 400; font-size: 20px; letter-spacing: 0; }
.trail-lines line { stroke: #CFE9F3; stroke-width: 8; stroke-dasharray: 1 15; }
.trail-lines line.on { stroke: #9AD8EC; }
.pnode.next { width: 104px; height: 104px; } .trow.big .pnode.next { width: 130px; height: 130px; }
.pnode.next::before { top: 50%; width: 112%; height: 100%; border: 5px solid #C9F0DC; opacity: 1; animation: none; }
.pnode-ic svg { width: 32px; height: 32px; }
.pnode.locked .pnode-ic, .pnode.locked .pnode-ic svg { color: #7B8791; stroke: #7B8791; }
.start-bubble { top: -20px; padding: 4px 10px; border-radius: 9px; background: #0E8A50; color: #fff; font-family: 'Jua', var(--display); font-weight: 400; font-size: 13px; letter-spacing: 0; box-shadow: none; white-space: nowrap; }
.start-bubble::after { border-top-color: #0E8A50; }
.plabel { background: none; box-shadow: none; padding: 0; gap: 2px; }
.ptype { background: none; padding: 0; font-size: 13px; font-weight: 700; color: var(--ink-3); border-radius: 0; }
.ptitle { font-family: 'Jua', var(--display); font-weight: 400; font-size: 17px; line-height: 1.3; color: var(--ink); }
.plabel.dim { opacity: 1; } .plabel.dim .ptitle { color: #6B7782; }
@media (max-width: 560px) {
  .pnode.next { width: 88px; height: 88px; }
  .plabel { padding: 0; max-width: 34%; }
  .ptitle { font-size: 16px; }
}
@media (prefers-color-scheme: dark) {
  .topbar .title.brand { color: #4FD69A; }
  .pill { background: #181B24; border-color: #2C313D; }
  .plabel, .unit-pill { background: none; }
  .plabel.dim .ptitle { color: #8B95A1; }
  .trail-lines line { stroke: #26303A; } .trail-lines line.on { stroke: #2F6F85; }
  .start-bubble { background: #0E8A50; } .start-bubble::after { border-top-color: #0E8A50; }
  .pnode.next::before { border-color: #1D4A36; }
}
.pnode .pad-svg { filter: none; }

/* ---------- 섹션·유닛 배너: 섬 지도 스타일 (sticky 동작은 그대로) ---------- */
.loc-banner { padding: 12px 12px 12px 18px; border-radius: 20px; background: #17B26A; box-shadow: 0 6px 0 #0E8A50; backdrop-filter: none; -webkit-backdrop-filter: none; margin-bottom: 22px; }
.loc-banner::before { display: none; }
.loc-sec { font-size: 13px; font-weight: 700; color: #DFF7EA; }
.loc-unit { font-family: 'Jua', var(--display); font-weight: 400; font-size: 21px; color: #fff; letter-spacing: 0; }
.loc-more, .loc-more span { width: 44px; height: 44px; padding: 0; gap: 0; border-radius: 12px; background: #0E8A50; color: #fff; justify-content: center; font-size: 0; }
.loc-more svg { width: 22px; height: 22px; }
.loc-banner:active { transform: translateY(3px); box-shadow: 0 3px 0 #0E8A50; }
/* ---------- 정답 확인 칸: 섬 지도 스타일 ---------- */
.feedback:has(> .head) { padding: 0; overflow: hidden; border-radius: 18px; background: #fff; border: 2px solid #17B26A; box-shadow: 0 5px 0 #0E8A50; margin-bottom: 8px; }
.feedback:has(> .head) > .head { margin: 0; padding: 10px 16px; font-family: 'Jua', var(--display); font-weight: 400; font-size: 22px; color: #fff; background: #17B26A; display: flex; align-items: center; gap: 8px; }
.feedback.ok:has(> .head) > .head::before { content: ""; width: 24px; height: 24px; flex: none; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.7 5.6 6.1.8-4.5 4.2 1.1 6-5.4-3-5.4 3 1.1-6L3.2 9.4l6.1-.8z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.7 5.6 6.1.8-4.5 4.2 1.1 6-5.4-3-5.4 3 1.1-6L3.2 9.4l6.1-.8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.feedback:has(> .head) > .head + div { padding: 14px 16px 16px; }
.feedback.no:has(> .head) { border-color: #E5484D; box-shadow: 0 5px 0 #B4282D; }
.feedback.no:has(> .head) > .head { background: #E5484D; color: #fff; }
@media (prefers-color-scheme: dark) {
  .loc-banner { background: #17B26A; box-shadow: 0 6px 0 #0E8A50; }
  .loc-more { background: #0E8A50; color: #fff; }
  .feedback:has(> .head) { background: #181B24; }
}

/* ---------- 개념 화면 섬 지도 시안 (미리보기: 주소에 ?cstyle) ---------- */
.cstyle .player-top .icon-btn { background: none; box-shadow: none; color: #7B8791; }
.cstyle .pbar { height: 18px; border-radius: 9px; background: #E3E8EC; box-shadow: none; }
.cstyle .pbar > span { background: #17B26A !important; border-radius: 9px; min-width: 28px; box-sizing: border-box; border-top: 5px solid #5FD39B; }
.cstyle .player-top .small-text { font-family: 'Jua', var(--display); font-size: 16px; color: #5E6B75; }
.cstyle .concept-card { background: none; box-shadow: none; border-radius: 0; padding: 6px 4px 0; }
.cstyle .concept-card .kicker { display: none; }
.cstyle .concept-card h2 { font-family: 'Jua', var(--display); font-weight: 400; font-size: 27px; line-height: 1.25; letter-spacing: 0; margin: 0 0 14px; color: var(--ink); }
.cstyle .concept-card .body b { color: #0E8A50; font-weight: 800; }
.cstyle .talk-b { border: 2px solid #22303A; border-radius: 18px 18px 18px 4px; box-shadow: 0 4px 0 #22303A; }
.cstyle .talk-b::before { display: none; }
.cstyle .more { background: #fff; border: 2px solid #E3E8EC; border-radius: 16px; padding: 12px 14px; }
.cstyle .more-h { font-family: 'Jua', var(--display); font-weight: 400; font-size: 15px; }
.cstyle .more-why .more-h { color: #1C7ED6; } .cstyle .more-ex .more-h { color: #0E8A50; } .cstyle .more-trap .more-h { color: #D6336C; } .cstyle .more-tip .more-h { color: #B97F00; }
.cstyle .more-ex { border-color: #BFE9D2; } .cstyle .more-trap { border-color: #F7C6D6; } .cstyle .more-tip { border-color: #F3DFA6; } .cstyle .more-why { border-color: #C5DDF5; }
.cstyle .sticky-cta { background: #fff; border-top: 2px solid #E3E8EC; }
.cstyle .sticky-cta .btn.primary, .cstyle .sticky-cta .btn.gold:not(:disabled) { background: #17B26A; color: #fff; border-radius: 16px; box-shadow: 0 5px 0 #0E8A50; font-family: 'Jua', var(--display); font-weight: 400; font-size: 19px; }

/* ---------- 2026-11-16: 과목 드롭다운, 파란 배너, 파란 정답 칸, 해설 글꼴, 섹션 이동 안내 ---------- */
@font-face { font-family: 'Gowun Dodum'; src: url('fonts/gowun-dodum-korean-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Gowun Dodum'; src: url('fonts/gowun-dodum-latin-400-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
.world-dd { position: relative; }
.world-dd-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 6px 0 2px; border: 0; background: none; cursor: pointer; font-family: 'Jua', var(--display); font-weight: 400; font-size: 24px; color: var(--ink); }
.world-dd-btn svg { color: #2E9BF5; transition: transform .15s; }
.world-dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.world-dd-menu { position: absolute; left: -6px; top: 48px; z-index: 30; min-width: 210px; padding: 6px; border-radius: 16px; background: #fff; border: 2px solid #E3E8EC; box-shadow: 0 5px 0 #E3E8EC; display: flex; flex-direction: column; }
.world-dd-menu[hidden] { display: none; }
.world-dd-menu button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 11px; background: none; cursor: pointer; text-align: left; font-family: 'Jua', var(--display); font-weight: 400; font-size: 18px; color: var(--ink); }
.world-dd-menu button[aria-selected="true"] { background: #E8F4FF; color: #1670C9; }
.world-dd-menu .out-tag { font-family: var(--body); font-size: 11px; font-weight: 700; color: #6B7782; }
.loc-banner { background: linear-gradient(135deg, #3CCBFA, #2E9BF5); box-shadow: 0 6px 0 #1E7FD6; }
.loc-banner:active { box-shadow: 0 3px 0 #1E7FD6; }
.loc-sec { color: #EAF7FF; }
.loc-more, .loc-more span { background: #1E7FD6; }
/* 정답 확인 칸: 파란색 (오답은 빨강 그대로) */
.feedback.ok:has(> .head) { border-color: #2E9BF5; box-shadow: 0 5px 0 #1E7FD6; }
.feedback.ok:has(> .head) > .head { background: #2E9BF5; }
.feedback .sol { font-family: 'Gowun Dodum', var(--body); font-weight: 700; font-size: 16.5px; line-height: 1.75; }
.sol-step { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.sol-n { flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 8px; background: #E8F4FF; color: #1670C9; font-family: 'Jua', var(--display); font-weight: 400; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.feedback.no .sol-n { background: #FDECEC; color: #B4282D; }
.sol-step > span:last-child { flex: 1; min-width: 0; }
/* 개념 화면(섬 지도): 색은 앱 기본 파랑으로 */
.cstyle .pbar > span { background: #2E9BF5 !important; border-top-color: #7CC6FB; }
.cstyle .concept-card .body b { color: #1670C9; }
.cstyle .more-ex .more-h { color: #1670C9; } .cstyle .more-ex { border-color: #C5DDF5; }
.cstyle .more-why .more-h { color: #6B5BD6; } .cstyle .more-why { border-color: #D9D3F7; }
.cstyle .sticky-cta .btn.primary, .cstyle .sticky-cta .btn.gold:not(:disabled) { background: #2E9BF5; box-shadow: 0 5px 0 #1E7FD6; }
/* 섹션 이동 안내: 화면 가운데 */
.secjump-intro { min-height: calc(100vh - 190px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.secjump-intro img { display: block; height: auto; }
.secjump-intro .jump-title { font-family: 'Jua', var(--display); font-weight: 400; font-size: 28px; margin: 0; }
@media (prefers-color-scheme: dark) {
  .world-dd-menu { background: #181B24; border-color: #2C313D; box-shadow: 0 5px 0 #2C313D; }
  .world-dd-menu button[aria-selected="true"] { background: #1B2A44; color: #8CC4FF; }
  .sol-n { background: #1B2A44; color: #8CC4FF; }
  .cstyle .more { background: #181B24; border-color: #2C313D; }
  .cstyle .sticky-cta { background: #000; border-top-color: #2C313D; }
  .cstyle .talk-b { border-color: #C9D3FF; box-shadow: 0 4px 0 #C9D3FF; }
  .cstyle .concept-card .body b { color: #8CC4FF; }
}
/* 상단 숫자: 네모 칸 없이 */
.pill { border: 0; background: none; padding: 0 2px; height: 36px; font-size: 19px; gap: 5px; }
.pill + .pill { margin-left: 6px; }
@media (prefers-color-scheme: dark) { .pill { background: none; border: 0; } }
.home-top { gap: 4px; }
.level-dd .world-dd-btn { font-size: 18px; color: #1670C9; height: 36px; padding: 0 6px 0 12px; margin-left: 6px; border-radius: 12px; background: #E8F4FF; gap: 2px; }
.level-dd .world-dd-btn svg { width: 16px; height: 16px; }
.level-dd .world-dd-menu { min-width: 150px; top: 44px; left: 0; }
.home.v3 { padding-top: 4px; }
@media (prefers-color-scheme: dark) { .level-dd .world-dd-btn { background: #1B2A44; color: #8CC4FF; } }

/* 모의고사 응시 시간 고르기 (수학+영어 합본 시험) */
.time-pick { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.time-pick output { font-family: var(--font-display, inherit); font-size: 28px; font-weight: 700; min-width: 4.5ch; text-align: center; color: var(--ink, #1a2250); }
.time-pick .icon-btn { font-size: 22px; line-height: 1; }
.time-pick .icon-btn:disabled { opacity: .35; }
#tmRange { width: 100%; accent-color: #2f7cf6; }

/* 한글이 섞인 식 한 줄(가운데 정렬, 좁은 화면에서는 자연스럽게 줄바꿈) */
.eqline { display: block; text-align: center; margin: 10px 0; line-height: 2; }
.eqline .eqcond { font-size: .9em; opacity: .8; }

/* 실전·심화 코스 */
.track-empty { margin: 6px auto 18px; text-align: center; color: var(--muted, #6b7390); display: flex; gap: 6px; align-items: center; justify-content: center; }
.track-empty svg { width: 16px; height: 16px; }
.feedback.proof:has(> .head) { border-color: #2f7cf6; box-shadow: 0 5px 0 #1d5fd0; }
.feedback.proof:has(> .head) > .head { background: #2f7cf6; color: #fff; }
.rubric { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(47, 124, 246, .35); }
.rubric ol { margin: 6px 0 0 1.2em; padding: 0; }
.rubric li { margin: 4px 0; }
.self-grade { display: flex; gap: 10px; width: 100%; }
.self-grade .btn { flex: 1; }

/* 오답노트: 단원별 */
.wrong-world { font-family: var(--display); font-size: 15px; color: var(--ink-2, #3B4160); margin: 14px 2px 0; }
.wrong-sec .chip { flex: 1; min-height: 48px; }
.wrong-cnt { font-weight: 700; font-size: 13px; color: #fff; background: #E8664F; border-radius: 999px; padding: 2px 9px; }
.wrong-sec > .row > .btn.small { flex-shrink: 0; }

/* 보석 · 퀘스트 */
.pill.gem { color: #0E7482; }
.topbar .pill { height: 34px; padding: 0 10px; gap: 4px; }
.home-top .world-dd-btn { white-space: nowrap; }
.home-top .pill { padding: 0 6px; gap: 3px; }
@media (max-width: 420px) { .home-top .world-dd-btn { font-size: 18px; } .home-top .level-dd .world-dd-btn { font-size: 14px; } .home-top .pill { font-size: 14px; padding: 0 4px; } }
.nav-ic { position: relative; display: inline-flex; }
.nav-dot { position: absolute; top: -2px; right: -5px; width: 9px; height: 9px; border-radius: 50%; background: #E8664F; box-shadow: 0 0 0 2px #fff; }
.quest-toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #E4F8FA; color: #0E5E6A; font-weight: 600; font-size: 14px; text-decoration: none; }
.quest-toast span { flex: 1; }
.quest-head { display: flex; align-items: center; gap: 14px; padding: 4px 2px 0; }
.quest-head h2 { margin: 0 0 2px; font-size: 22px; }
.quest-list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 18px; box-shadow: 0 6px 18px rgba(70,90,170,.10); overflow: hidden; }
.quest { display: flex; align-items: center; gap: 14px; padding: 15px 16px; }
.quest + .quest { border-top: 1px solid var(--line); }
.quest-main { flex: 1; min-width: 0; }
.quest-title { font-weight: 700; font-size: 15.5px; margin-bottom: 8px; }
.quest.got .quest-title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.quest-bar { height: 8px; border-radius: 4px; background: #E9EDF7; overflow: hidden; }
.quest-bar span { display: block; height: 100%; border-radius: 4px; background: #2E9BF5; }
.quest.done .quest-bar span, .quest.got .quest-bar span { background: #27B6C9; }
.quest-rew { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.quest-rew b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.quest-rew span { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: #0E7482; }
.quest-claim { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: #16A5B8; color: #fff; font: 700 14.5px var(--body); cursor: pointer; box-shadow: 0 3px 0 #0E7482; white-space: nowrap; }
.quest-claim:active { transform: translateY(2px); box-shadow: 0 1px 0 #0E7482; }
.quest-claim:focus-visible { outline: 3px solid #F7A541; outline-offset: 3px; }
.quest-check { width: 30px; height: 30px; border-radius: 50%; background: #DDF3F6; color: #0E7482; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quest-chest { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 2px dashed #B9DDE3; }
.quest-chest.done { border-style: solid; border-color: #27B6C9; background: #EEFBFC; }
.quest-pips { display: grid; grid-template-columns: repeat(3, 9px); gap: 4px; }
.quest-pips i { width: 9px; height: 9px; border-radius: 2px; background: #D5DCEB; transform: rotate(45deg); }
.quest-pips i.on { background: #27B6C9; }

/* 내 정보 */
.me { display: flex; flex-direction: column; gap: 0; padding-bottom: 24px; }
.me-head { display: flex; align-items: center; gap: 16px; padding: 6px 2px 18px; }
.me-face { width: 84px; height: 84px; flex-shrink: 0; border-radius: 50%; background: #E6F1FF; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; }
.me-face img { margin-top: 10px; }
.me-id { min-width: 0; flex: 1; }
.me-name { margin: 0 0 2px; font-size: 26px; line-height: 1.2; display: flex; align-items: center; gap: 6px; }
.me-edit { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.me-edit:hover { background: #EEF1FA; }
.me-nick-form { display: flex; gap: 8px; margin-bottom: 4px; }
.me-nick-form input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1.5px solid #CBD3E6; border-radius: 10px; font: 600 17px var(--body); color: var(--ink); background: var(--card); }
.me-week { padding: 14px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.me-week-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.wd { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.wd i { width: 30px; height: 30px; border-radius: 50%; background: #EDF0F7; color: #fff; display: flex; align-items: center; justify-content: center; }
.wd i svg { width: 15px; height: 15px; }
.wd.on i { background: #F2913A; }
.wd.today span { color: var(--ink); font-weight: 700; }
.wd.today:not(.on) i { background: transparent; box-shadow: inset 0 0 0 2px #F2913A; }
.wd.future i { background: transparent; box-shadow: inset 0 0 0 1.5px #E1E5F0; }
.me-week-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); text-align: center; }
.me-week-note b { color: #C2621A; }
.me-ledger { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 16px 0 4px; }
.me-ledger > div { padding: 0 10px; }
.me-ledger > div + div { border-left: 1px solid var(--line); }
.me-ledger > div:first-child { padding-left: 2px; }
.me-ledger dt { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.me-ledger dd { margin: 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.me-h { margin: 26px 2px 10px; font-size: 14px; font-weight: 700; color: var(--ink-3); letter-spacing: 0; }
.prog-row { display: grid; grid-template-columns: 6.2em 1fr 3.6em; align-items: center; gap: 10px; padding: 7px 2px; font-size: 14.5px; }
.prog-name { font-weight: 600; white-space: nowrap; }
.prog-bar { height: 8px; border-radius: 4px; background: #E9EDF7; overflow: hidden; }
.prog-bar span { display: block; height: 100%; border-radius: 4px; min-width: 0; }
.prog-num { text-align: right; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.me-list { background: var(--card); border-radius: 16px; box-shadow: 0 6px 18px rgba(70,90,170,.10); overflow: hidden; }
.me-list a { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px 8px 16px; color: var(--ink); text-decoration: none; }
.me-list a + a { border-top: 1px solid var(--line); }
.me-list .k { font-weight: 600; white-space: nowrap; }
.me-list .v { flex: 1; min-width: 0; text-align: right; color: var(--ink-3); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-list svg { color: #B4BBD0; flex-shrink: 0; }
.me-list a:focus-visible { outline: 3px solid #F7A541; outline-offset: -3px; }
.me-join { margin-top: 22px; padding: 16px; border-radius: 16px; background: #EEF3FF; }
.me-join p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.me-logout { margin: 22px auto 0; border: 0; background: none; color: var(--ink-3); font: 600 14px var(--body); text-decoration: underline; cursor: pointer; padding: 10px; }
.me-foot { display: flex; justify-content: center; gap: 18px; margin-top: 4px; }
.me-foot a { color: var(--ink-3); font-size: 12.5px; text-decoration: none; padding: 6px; }
.leave { padding-top: 8px; padding-bottom: 40px; }
.leave-h { font-size: 21px; margin: 6px 0 8px; }
.leave-p { color: var(--ink-2); font-size: 15px; margin: 0 0 10px; }
.leave-list { margin: 0 0 16px; padding-left: 20px; color: var(--ink); font-size: 15px; line-height: 1.8; }
.leave-note { font-size: 13.5px; color: var(--ink-2); background: #F4F5F8; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.leave-check { display: flex; gap: 10px; align-items: center; font-size: 15px; margin: 4px 0 16px; cursor: pointer; }
.leave-check input { width: 20px; height: 20px; accent-color: var(--red); }
.leave-btn { background: var(--red); color: #fff; box-shadow: 0 4px 0 #8F2219; }
.leave-btn:disabled { background: #E3E3E8; color: #9A9AA5; box-shadow: none; cursor: not-allowed; }
.leave-cancel { display: block; text-align: center; margin-top: 14px; color: var(--ink-2); font-size: 14.5px; padding: 8px; }
@media (max-width: 380px) { .nav a { font-size: 11.5px; } .me-ledger dd { font-size: 19px; } }
@media (prefers-color-scheme: dark) {
  .quest-bar, .prog-bar, .wd i { background: #2A2F3D; }
  .wd.on i { background: #F2913A; }
  .wd.today:not(.on) i, .wd.future i { background: transparent; }
  .me-face { background: #1E2636; } .me-join { background: #1B2233; } .me-edit:hover { background: #232838; }
  .quest-toast, .quest-chest.done { background: #10303A; color: #BDEFF5; } .quest-check { background: #143A42; color: #7FE0EA; }
  .pill.gem, .quest-rew span { color: #7FE0EA; } .nav-dot { box-shadow: 0 0 0 2px #14161D; }
}

/* 로그인 */
html.authbg, html.authbg body { background: #1F7FE6; }
html.authbg #app { padding: 0; max-width: none; }
.auth { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; color: #fff;
  background: radial-gradient(120% 70% at 85% 0%, #46A6FF 0%, rgba(70,166,255,0) 60%), linear-gradient(175deg, #2D8DF2 0%, #1C6CDA 100%); }
.auth-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; pointer-events: none; }
.auth-in { position: relative; max-width: 440px; margin: 0 auto; min-height: 100vh; min-height: 100svh; padding: max(56px, 9vh) 28px calc(36px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.auth-head { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.auth.is-form .auth-head { flex: 0; padding: 12px 0 22px; }
.auth-euler { width: max-content; margin-bottom: 22px; filter: drop-shadow(0 10px 18px rgba(8,40,110,.35)); }
.auth.is-form .auth-euler { margin-bottom: 12px; }
.auth-h { font-family: var(--display); font-size: 38px; line-height: 1.22; letter-spacing: -0.02em; margin: 0; color: #fff; }
.auth-h.sm { font-size: 28px; }
.auth-sub { margin: 14px 0 0; font-size: 16.5px; line-height: 1.55; color: rgba(255,255,255,.86); }
.auth-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; }
.auth-btn { height: 56px; border-radius: 14px; font: 700 17px var(--body); cursor: pointer; border: 0; }
.auth-btn.solid { background: #fff; color: #1A5FC8; box-shadow: 0 8px 22px rgba(6,35,100,.28); }
.auth-btn.line { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:focus-visible, .auth-links button:focus-visible, .auth-back:focus-visible { outline: 3px solid #FFD35C; outline-offset: 3px; }
.auth-note { margin: -2px 0 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.72); }
.auth-links { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 0 4px; }
.auth-links i { width: 1px; height: 16px; background: rgba(255,255,255,.5); }
.auth-links button { background: none; border: 0; color: #fff; font: 600 15px var(--body); padding: 10px 2px; cursor: pointer; }
.auth-back { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.auth-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 22px 20px 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px rgba(6,35,100,.30); }
.auth-swap { background: none; border: 0; color: var(--ink-3); font: 500 14px var(--body); padding: 8px; cursor: pointer; }
.auth-swap b { color: #1A5FC8; }
.auth .form-msg { margin: 0; }
.auth-actions .form-msg { background: rgba(255,255,255,.95); }

/* 공부 목적 */
.goal { padding-top: 40px; }
.goal-head { text-align: center; margin-bottom: 24px; }
.goal-head .mascot-bob { margin: 0 auto 10px; }
.goal-head h1 { font-size: 26px; }
.goal-head p { margin: 8px 0 0; }
.goal-opts { display: flex; flex-direction: column; gap: 14px; }
.goal-opt { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 20px 16px 20px 18px; border: 0; border-radius: 20px; background: var(--card); color: var(--ink); cursor: pointer; box-shadow: 0 6px 18px rgba(70,90,170,.12), inset 0 0 0 1.5px #E3E8F6; }
.goal-opt.on { box-shadow: 0 6px 18px rgba(70,90,170,.12), inset 0 0 0 2.5px #2E86F0; }
.goal-opt:hover { box-shadow: 0 8px 22px rgba(70,90,170,.18), inset 0 0 0 1.5px #C9D6F2; }
.goal-opt:focus-visible { outline: 3px solid #F7A541; outline-offset: 3px; }
.goal-ic { width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; }
.goal-ic svg { width: 26px; height: 26px; }
.goal-ic.t { background: #2E86F0; } .goal-ic.s { background: #16A5B8; }
.goal-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.goal-txt b { font-size: 18px; font-weight: 750; letter-spacing: -0.02em; }
.goal-txt span { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.goal-opt > svg { color: #B4BBD0; flex-shrink: 0; }
.back-link { display: inline-block; margin-bottom: 10px; font-size: 14px; color: var(--ink-3); }

.ptitle, .loc-unit, .unit-pill b { word-break: keep-all; overflow-wrap: break-word; }
#talkSkip { white-space: nowrap; flex-shrink: 0; }

.auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-btn svg { flex-shrink: 0; }
.auth-btn.kakao { background: #FEE500; color: rgba(0,0,0,.85); }
.auth-btn.google { background: #fff; color: #1F1F1F; box-shadow: 0 8px 22px rgba(6,35,100,.22); }
.auth-btn:disabled { opacity: .6; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 6px 0 2px; color: rgba(255,255,255,.75); font-size: 13px; }
.auth-or i { flex: 1; height: 1px; background: rgba(255,255,255,.35); }
.auth-legal { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.75); }
.auth-legal a { color: #fff; }
.auth-mail { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-mail .auth-btn { font-size: 15px; height: 52px; }
.auth-sub { font-size: min(16.5px, 4.3vw); }

/* ---------- 전체화면 개념 영상 ---------- */
.vplay { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; color: #F5F7FF;
  background: radial-gradient(120% 60% at 50% 0%, #1B2140 0%, #0B0E1C 72%);
  padding: max(8px, env(safe-area-inset-top)) 0 max(16px, env(safe-area-inset-bottom)); }
.v-top { display: flex; align-items: center; gap: 10px; padding: 2px 10px 0 6px; }
.v-x { width: 44px; height: 44px; border: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.v-segs { flex: 1; display: flex; gap: 4px; }
.v-segs i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.v-segs b { display: block; height: 100%; width: 0; background: #fff; border-radius: 2px; }
.v-segs i.past b { width: 100%; }
.v-segs i.cur b { animation: vseg var(--ms, 4000ms) linear forwards; }
.vplay.paused .v-segs i.cur b { animation-play-state: paused; }
@keyframes vseg { from { width: 0; } to { width: 100%; } }
.v-skip { border: 0; background: none; color: rgba(255,255,255,.78); font: 600 14px var(--body); padding: 12px 8px; cursor: pointer; }
.vplay .v-scene { flex: 1; min-height: 0; display: flex; flex-direction: column; background: none; box-shadow: none; border-radius: 0; margin: 0; padding: 0; }
.vplay .scene-title { font-size: 20px; line-height: 1.45; padding: 12px 22px 6px; min-height: 3.6em; word-break: keep-all; }
.vplay .scene-stage { flex: 1; min-height: 0; aspect-ratio: auto; }
.vplay .scene-lab { font-size: 16px; }
.v-tap { position: absolute; top: 0; bottom: 0; width: 32%; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.v-tap.l { left: 0; } .v-tap.r { right: 0; }
.v-cap { display: flex; align-items: flex-end; gap: 12px; padding: 12px 24px 8px; min-height: 8.6em; }
.v-say { flex: 1; margin: 0; align-self: center; font-size: 17.5px; line-height: 1.7; text-align: center; color: #EEF1FF; word-break: keep-all; }
.v-ctl { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 4px 0 2px; height: 68px; }
.v-ctl button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.v-ctl button.main { width: 60px; height: 60px; background: #fff; color: #10142B; }
.v-ctl button:disabled { opacity: .35; cursor: default; }
.v-end { display: none; flex-direction: column; align-items: center; gap: 6px; padding: 0 20px; }
.v-end .btn.primary { background: #2D8DF2; color: #fff; box-shadow: 0 4px 0 #1A62C4; }
.vplay.ended .v-ctl { display: none; } .vplay.ended .v-end { display: flex; }
.v-again { order: -1; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: rgba(255,255,255,.8); font: 600 14px var(--body); padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.vplay.vb .v-cap { padding: 10px 16px 8px; height: 190px; min-height: 0; box-sizing: border-box; }
.vplay.vb .v-face { flex: none; width: 50px; height: auto; }
.vplay.vb .v-say { position: relative; align-self: flex-end; text-align: left; background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 15px; font-size: 16.5px; }
.vplay.vb .v-say::before { content: ""; position: absolute; left: -6px; bottom: 20px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); }
@media (min-aspect-ratio: 5/4) and (min-width: 820px) {
  .vplay { display: grid; grid-template-columns: 1fr min(380px, 36vw); grid-template-rows: auto 1fr; }
  .v-top { grid-column: 1 / -1; }
  .v-side { display: flex; flex-direction: column; justify-content: center; padding-right: 12px; }
  .v-cap { min-height: 12em; } .v-say { font-size: 19px; }
}

/* ---------- 하트 ---------- */
.pill.heart { color: #D7263D; text-decoration: none; }
.hpage { text-align: center; padding-top: 28px; padding-bottom: 40px; }
.hp-row { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }
.hp-h { font-size: 22px; margin: 0 0 8px; }
.hp-p { color: var(--ink-2); font-size: 15px; line-height: 1.65; margin: 0 auto 18px; max-width: 30em; word-break: keep-all; }
.hp-next { font-size: 15px; margin: 0 0 18px; }
.hp-next b { font-variant-numeric: tabular-nums; font-size: 20px; margin-left: 4px; }
.hp-note { font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; }
.hp-go { margin-top: 18px; }

.hbuy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 0; }
.hbuy { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border: 2px solid #D9DEEA; border-radius: 18px; background: #fff; cursor: pointer; font-family: var(--body); color: var(--ink); box-shadow: 0 4px 0 #D9DEEA; }
.hbuy:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #D9DEEA; }
.hbuy:disabled { opacity: .45; cursor: not-allowed; }
.hbuy-n { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; }
.hbuy-p { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 15px; color: #0E7482; }
.hmodal-back { position: fixed; inset: 0; z-index: 90; background: rgba(15,20,45,.55); display: grid; place-items: center; padding: 20px; }
.hmodal { position: relative; width: 100%; max-width: 360px; background: #fff; border-radius: 26px; padding: 22px 20px 20px; text-align: center; box-shadow: 0 20px 60px rgba(10,15,40,.35); }
.hmodal-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.hmodal-img { display: block; margin: 0 auto 8px; height: 170px; width: auto; }
.hmodal h2 { font-size: 20px; margin: 0 0 4px; word-break: keep-all; }
.hmodal-p { margin: 0 0 14px; color: var(--ink-2); font-size: 15.5px; }
.hmodal-note { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.hmodal-wait { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); }
.hmodal-wait b { font-variant-numeric: tabular-nums; color: var(--ink); }

.hrow { display: inline-flex; align-items: center; gap: 4px; }
.hrow .hh { display: inline-flex; font-style: normal; }
.hrow .hplus { font-family: var(--body); font-weight: 800; color: #F0445A; font-size: 15px; margin-left: 2px; }
.hp-row .hrow { gap: 10px; } .hp-row .hplus { font-size: 26px; }
.hbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; max-width: 640px; width: 100%; box-sizing: border-box; margin: -16px auto -14px; padding: 0 6px; min-height: 44px; text-decoration: none; }
.hbar-clock { font-family: var(--body); font-weight: 700; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.hspend { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; pointer-events: none; background: rgba(15,20,45,.28); transition: opacity .3s; }
.hspend.out { opacity: 0; }
.hspend-card { background: #fff; border-radius: 24px; padding: 22px 28px 16px; text-align: center; box-shadow: 0 18px 50px rgba(10,15,40,.3); animation: hspendIn .25s ease-out; }
.hspend-card .hrow { gap: 10px; } .hspend-card .hplus { font-size: 22px; }
.hspend-card p { margin: 10px 0 0; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.hspend .hh.break { animation: heartBreak .45s ease-in forwards; }
.hspend .hplus.bump { animation: heartBump .4s ease-out; display: inline-block; }
@keyframes hspendIn { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes heartBreak { 0% { transform: scale(1); } 25% { transform: scale(1.3) rotate(-8deg); } 45% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(.2) translateY(30px) rotate(20deg); opacity: 0; } }
@keyframes heartBump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hspend-card, .hspend .hh.break, .hspend .hplus.bump { animation: none; } }

.shop-fab { position: fixed; z-index: 31; left: max(22px, calc(50% - 290px)); bottom: calc(86px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #FFD23F; color: #4A3A10; box-shadow: 0 6px 16px rgba(120,90,10,.3); text-decoration: none; }
.shop-fab:active { transform: scale(.94); }
.shop { padding-bottom: 110px; }
.shop-have { display: inline-flex; align-items: center; margin-right: 6px; }
.shop-sec { margin: 0 0 26px; }
.shop-h { display: inline-block; margin: 0 0 12px; padding: 7px 18px 8px; border-radius: 12px 12px 12px 4px; background: var(--c); color: #fff; font-size: 17px; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 70%, #000); }
.shop-grid { display: grid; gap: 10px; } .shop-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .shop-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 10px; border: 2px solid #D9DEEA; border-radius: 18px; background: #fff; box-shadow: 0 5px 0 #D9DEEA; cursor: pointer; font-family: var(--body); color: var(--ink); }
.shop-card:active { transform: translateY(3px); box-shadow: 0 2px 0 #D9DEEA; }
.shop-card[aria-disabled="true"] .sp-price { background: #EEF0F5; color: var(--ink-3); }
.sp-pile { height: 64px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap-reverse; align-content: center; max-width: 92px; }
.sp-pile svg { margin: -5px -4px; filter: drop-shadow(0 2px 2px rgba(60,30,60,.18)); }
.sp-gems svg { margin: -6px -3px; } .sp-gems { max-width: 110px; }
.sp-name { font-weight: 700; font-size: 14.5px; }
.sp-price { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 76px; padding: 6px 10px; border-radius: 10px; background: #E3F7FA; color: #0E7482; font-weight: 800; font-size: 14.5px; }
.sp-price.won { background: #2FB36A; color: #fff; box-shadow: 0 3px 0 #23874F; }
.sp-tag { position: absolute; top: -9px; right: -4px; padding: 3px 9px; border-radius: 999px; background: #F0445A; color: #fff; font-size: 12px; font-weight: 800; transform: rotate(6deg); }
.shop-soon { padding: 26px 16px; border: 2px dashed #CBD2E3; border-radius: 18px; text-align: center; color: var(--ink-3); font-size: 14.5px; }
.shop-note { margin: 12px 2px 0; font-size: 13px; color: var(--ink-3); }

.hchip { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px 0 8px; border-radius: 10px; background: #FFE3E7; color: #D7263D; font-family: var(--body); font-weight: 800; font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums; position: relative; }
.hchip::after { content: ""; position: absolute; inset: -6px -4px; }
.home-top .hchip { margin-left: 2px; }
@media (max-width: 420px) {
  .home-top { padding-left: 16px; padding-right: 16px; gap: 3px; }
  .home-top .world-dd-btn { font-size: 17px; gap: 3px; padding-right: 2px; }
  .home-top .level-dd .world-dd-btn { padding: 0 4px 0 8px; margin-left: 2px; font-size: 14px; }
  .home-top .pill { padding: 0 1px; gap: 2px; }
  .home-top .hchip { padding: 0 7px 0 6px; font-size: 14px; margin-left: 1px; }
}

.pill.fire { color: #E8590C; font-weight: 800; }
.pill.fire svg { filter: drop-shadow(0 1px 1px rgba(200,60,20,.3)); margin-top: -2px; }
.pill.fire.off { color: var(--ink-3); } .pill.fire.off svg { filter: grayscale(1); opacity: .55; }
@media (max-width: 420px) { .topbar .title { flex-shrink: 0; overflow: visible; } .topbar > .pill { padding: 0 3px; gap: 3px; font-size: 16px; } }
@media (max-width: 380px) { .topbar { gap: 4px; } }
button.hchip { border: 0; cursor: pointer; }
.hpop { position: fixed; z-index: 60; width: 214px; padding: 16px 14px 12px; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(30,40,90,.26); text-align: center; animation: hpopIn .16s ease-out; }
.hpop::before { content: ""; position: absolute; top: -7px; right: 22px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.hpop-row .hrow { gap: 8px; } .hpop-row .hplus { font-size: 17px; }
.hpop-t { margin: 10px 0 12px; font-size: 14.5px; color: var(--ink-2); }
.hpop-t b { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; margin-left: 2px; }
.hpop-shop { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 12px; background: #FFF3C4; color: #6B5200; font-weight: 700; font-size: 14.5px; text-decoration: none; }
@keyframes hpopIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hpop { animation: none; } }

.hmodal-clock { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 10px; padding: 7px 14px; border-radius: 12px; background: #FFE3E7; color: #B23A50; font-size: 14px; font-weight: 600; }
.hmodal-clock b { font-size: 19px; font-weight: 800; color: #D7263D; font-variant-numeric: tabular-nums; }

.pro-mark { display: inline-block; padding: 3px 10px 4px; border-radius: 8px; background: linear-gradient(135deg, #FFE08A, #F5B400); color: #2A1E00; font-family: var(--body); font-weight: 900; font-size: 15px; letter-spacing: 1px; font-style: italic; }
.pro-mark.sm { font-size: 12px; padding: 2px 7px 3px; border-radius: 6px; }
.hchip.pro { background: linear-gradient(135deg, #1B1F3B, #33266B); color: #FFD44D; padding: 0 10px 0 8px; gap: 5px; box-shadow: inset 0 0 0 1.5px rgba(255,212,77,.55); }
.hchip.pro span { font-weight: 900; font-style: italic; letter-spacing: 1px; font-size: 14px; background: linear-gradient(180deg, #FFF0B0, #F5B400); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hchip.pro svg path { fill: #FFD44D; }
.hpop.pro { background: linear-gradient(160deg, #1B1F3B, #33266B); color: #fff; } .hpop.pro::before { background: #262250; }
.hpop.pro .hpop-t { color: #fff; margin: 12px 0 4px; } .hpop.pro .hpop-t b { color: #FFD44D; margin: 0; }
.hpop-s { margin: 0 0 4px; font-size: 13px; color: rgba(255,255,255,.75); }
.pro-card { margin: 0 0 26px; padding: 18px 18px 16px; border-radius: 22px; background: linear-gradient(150deg, #1B1F3B 0%, #33266B 70%, #4A2F8F 100%); color: #fff; box-shadow: 0 6px 0 #14162C, 0 16px 30px rgba(30,25,80,.3); }
.pro-card-top { display: flex; align-items: center; gap: 10px; } .pro-card-name { font-size: 19px; font-weight: 800; }
.pro-list { list-style: none; margin: 14px 0 16px; padding: 0; } .pro-list li { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; } .pro-list svg path { fill: #FFD44D; }
.pro-buy { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 18px; border: 0; border-radius: 14px; cursor: pointer; background: linear-gradient(180deg, #FFE08A, #F5B400); color: #2A1E00; font-family: var(--body); box-shadow: 0 4px 0 #B98500; }
.pro-buy:active { transform: translateY(3px); box-shadow: 0 1px 0 #B98500; } .pro-buy b { font-size: 18px; font-weight: 900; } .pro-buy span { font-size: 15px; font-weight: 800; }
.pro-on { min-height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.12); color: #FFE08A; font-weight: 800; }
.hmodal-pro { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 12px; border-radius: 12px; background: linear-gradient(135deg, #1B1F3B, #33266B); color: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none; }

.topbar .hchip { margin-left: 6px; } .home-top .hchip { margin-left: 8px; }
.year-cell.locked { background: #EEF0F5; color: var(--ink-3); box-shadow: none; }
.year-cell.locked b { display: inline-flex; align-items: center; gap: 3px; font-size: 16px; } .year-cell.locked b svg { width: 14px; height: 14px; }
.year-cell.locked span { color: #9A7300; font-weight: 800; font-style: italic; letter-spacing: .5px; }
.pro-lock { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 6px auto 18px; min-height: 44px; padding: 0 16px; border-radius: 14px; background: linear-gradient(135deg, #1B1F3B, #33266B); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.pro-lock svg { width: 16px; height: 16px; }
.hpop-pro { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin-top: 8px; border-radius: 12px; background: linear-gradient(135deg, #1B1F3B, #33266B); color: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.pro-list li { margin-top: 8px; } .pro-list li:first-child { margin-top: 0; } .pro-list li svg { width: 18px; height: 18px; color: #FFD44D; }
.shop-fab.up { bottom: calc(146px + env(safe-area-inset-bottom)); }

.yn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.btn.danger { background: #F0445A; color: #fff; box-shadow: 0 5px 0 #C22A40; }
.hmodal .pro-buy { margin-top: 4px; }
.spop { position: absolute; z-index: 25; padding: 14px 14px 12px; border-radius: 18px; background: #1E8FEF; color: #fff; text-align: center; box-shadow: 0 6px 0 #1670C9, 0 14px 26px rgba(20,70,150,.28); animation: hpopIn .16s ease-out; }
.spop::before { content: ""; position: absolute; top: -7px; left: var(--ax, 50%); margin-left: -8px; width: 16px; height: 16px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.spop.concept { background: #17B26A; box-shadow: 0 6px 0 #0E8A50, 0 14px 26px rgba(10,110,60,.26); }
.spop.exam { background: #7A5AF8; box-shadow: 0 6px 0 #5B3FD0, 0 14px 26px rgba(70,40,170,.28); }
.spop-k { display: block; font-size: 12.5px; font-weight: 700; opacity: .9; position: relative; }
.spop-t { display: block; margin: 3px 0 12px; font-size: 16.5px; line-height: 1.35; word-break: keep-all; position: relative; }
.spop-go { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; border: 0; border-radius: 13px; background: #fff; color: #16215A; font-family: var(--body); font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.16); }
.spop-go:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.16); }
.spop-h { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 8px; background: #FFE3E7; color: #D7263D; font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) { .spop { animation: none; } }
.hmodal .pro-buy { flex-direction: column; justify-content: center; gap: 1px; padding: 9px 12px; } .hmodal .pro-buy b { font-size: 16px; } .hmodal .pro-buy span { font-size: 13px; font-weight: 700; }
/* 흰 바탕 위에 쓰는 창·칸은 기기가 어두운 화면 모드여도 글자가 어둡게 보여야 한다 */
.vplay.vb .v-say, .hmodal, .hpop:not(.pro), .hbuy, .shop-card, .hspend-card, .hchip:not(.pro) { --ink: #16215A; --ink-2: #4A5578; --ink-3: #7A849E; }
.vplay.vb .v-say, .hmodal, .hpop:not(.pro), .hbuy, .shop-card, .hspend-card { color: #16215A; }
.hmodal .btn:not(.danger):not(.primary) { background: #fff; color: #16215A; }
.hmodal .btn.primary { background: #1E8FEF; color: #fff; box-shadow: 0 5px 0 #1670C9; }

.hmodal-back.over { z-index: 96; }
.buy-what { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 8px 0 16px; }
.buy-what b { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; color: #16215A; }
.buy-what span { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #0E7482; }

.scene-lab.plate { background: rgba(11,14,28,.8); border-radius: 7px; padding: 1px 7px 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }

.nick-start { max-width: 380px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.nick-start input { font-size: 18px; }
.nick-msg { min-height: 20px; margin: -2px 2px 2px; font-size: 14px; color: #D7263D; }
.goal-head p, .goal-head h1 { word-break: keep-all; }

.ad-heart { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; width: 100%; min-height: 48px; margin: 0 0 10px; padding: 6px 12px; border: 2px solid #F7B6C0; border-radius: 14px; background: #FFF1F3; color: #C2233A; font-family: var(--body); font-weight: 800; font-size: 15px; cursor: pointer; }
.ad-heart span { font-weight: 600; font-size: 12.5px; color: #B8606E; }
.ad-heart:disabled { opacity: .5; }
.hpop .ad-heart { font-size: 14px; margin-bottom: 8px; }
.ad-fake { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #111; color: #fff; font-size: 20px; font-weight: 700; }

/* 로봇 확인 위젯 */
.cap-box { min-height: 65px; display: flex; justify-content: center; align-items: center; font-size: 13px; color: var(--muted, #6B7280); text-align: center; }
