/* 30초 투자 노트(/learn) — 목록 화면 + 영상 플레이어.
   화면 틀(카드·글자)은 사이트 토큰(--nx-*)을 따라 라이트/다크를 같이 탄다.
   영상 무대(.lp-stage)는 테마와 무관한 고정 '스튜디오' 팔레트(짙은 남색 + 유리 패널 + 인디고/틸 강조)를 쓴다 —
   영상은 어느 테마에서 보든, 화면 녹화해 쇼츠로 올리든 같은 그림이어야 하기 때문이다. */

.lp-stage, .ln-hero {
  --st-bg0: #070b1a; --st-bg1: #0f1733; --st-bg2: #1b2552;
  --st-text: #eef1fb; --st-muted: #a3acc9; --st-faint: #6b7499;
  --st-glass: rgba(255, 255, 255, .055); --st-glass2: rgba(255, 255, 255, .09); --st-edge: rgba(255, 255, 255, .12);
  --st-indigo: #8b93ff; --st-teal: #5eead4; --st-amber: #fbbf24; --st-rose: #fb7185; --st-sky: #60a5fa;
}

/* ── 캐릭터 노엑타 ───────────────────────────────────────────── */
.lt-mascot { display: block; width: 100%; height: auto; overflow: visible; }
.lt-mascot .lt-head { transform-box: view-box; transform-origin: 110px 170px; animation: lt-bob 3.4s ease-in-out infinite; }
.lt-mascot .lt-eye-open { transform-box: fill-box; transform-origin: center; animation: lt-blink 4.6s infinite; }
.lt-mascot .lt-eye-wink, .lt-mascot .lt-sparkle, .lt-mascot .lt-q { display: none; }
.lt-mascot .lt-mouth { transform-box: fill-box; transform-origin: 50% 35%; transition: transform .3s; }
.lt-mascot .lt-arm-r { transform-box: view-box; transform-origin: 150px 168px; transition: transform .4s; }
.lt-mascot .lt-arm-l { transform-box: view-box; transform-origin: 70px 168px; transition: transform .4s; }
.lt-mascot .lt-eyes { transition: transform .3s; }

.lt-mascot.m-think .lt-q { display: inline; animation: lt-pop .5s both; }
.lt-mascot.m-think .lt-eyes { transform: translate(3px, -3px); }
.lt-mascot.m-think .lt-head { animation: lt-tilt 3s ease-in-out infinite; }
.lt-mascot.m-think .lt-mouth { transform: scale(.62); }
.lt-mascot.m-think .lt-arm-r { transform: rotate(-150deg) translate(4px, 6px); }
.lt-mascot.m-wow .lt-sparkle { display: inline; animation: lt-pop .5s both; }
.lt-mascot.m-wow .lt-mouth { transform: scale(1.1); }
.lt-mascot.m-wow .lt-arm-l { transform: rotate(55deg); }
.lt-mascot.m-wow .lt-arm-r { transform: rotate(-55deg); }
.lt-mascot.m-wink .lt-eye-r { display: none; }
.lt-mascot.m-wink .lt-eye-wink { display: inline; }
.lt-mascot.m-wink .lt-mouth { transform: scale(.85); }

.lt-mascot.is-talking .lt-mouth { animation: lt-talk .24s ease-in-out infinite alternate; }
.lt-mascot.is-waving .lt-arm-r { animation: lt-wave .7s ease-in-out infinite alternate; }

@keyframes lt-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes lt-tilt { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(-9deg); } }
@keyframes lt-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes lt-talk { from { transform: scale(.92, .62); } to { transform: scale(1, 1.04); } }
@keyframes lt-wave { from { transform: rotate(-120deg); } to { transform: rotate(-170deg); } }
@keyframes lt-pop { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }

/* ── 목록 화면 ──────────────────────────────────────────────── */
.ln-wrap { max-width: 1040px; margin: 0 auto; }
.ln-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: center;
  background: radial-gradient(120% 140% at 85% 0%, var(--st-bg2) 0%, var(--st-bg1) 45%, var(--st-bg0) 100%);
  color: var(--st-text); border-radius: 20px; padding: 28px 32px; margin-bottom: 28px; border: 1px solid var(--st-edge);
}
.ln-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px; -webkit-mask-image: radial-gradient(circle at 80% 20%, #000 0%, transparent 70%); mask-image: radial-gradient(circle at 80% 20%, #000 0%, transparent 70%);
}
.ln-hero > * { position: relative; }
.ln-kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--st-teal); text-transform: uppercase; margin-bottom: 8px; }
.ln-hero h1 { font-size: 28px; font-weight: 800; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.01em; }
.ln-hero h1 em { font-style: normal; background: linear-gradient(90deg, #fff, var(--st-indigo) 55%, var(--st-teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ln-hero p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--st-muted); max-width: 40em; }
.ln-hero .ln-sched { display: inline-block; margin-top: 14px; border: 1px solid var(--st-edge); background: var(--st-glass); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--st-text); }
.ln-progress { margin-top: 14px; font-size: 13px; color: var(--st-muted); }
.ln-progress-bar { height: 6px; background: rgba(255, 255, 255, .1); border-radius: 999px; overflow: hidden; margin-top: 6px; max-width: 320px; }
.ln-progress-bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--st-indigo), var(--st-teal)); border-radius: 999px; transition: width .6s; }
.ln-level { margin: 30px 0 12px; font-size: 16px; font-weight: 700; color: var(--nx-text); letter-spacing: -.01em; }
.ln-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ln-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 14px;
  background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: 14px; color: var(--nx-text);
  text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; overflow: hidden;
}
.ln-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, #8b93ff, #5eead4); opacity: .8; }
.ln-card:hover, .ln-card:focus-visible { transform: translateY(-2px); border-color: var(--nx-accent); box-shadow: 0 8px 22px rgba(15, 23, 42, .18); }
/* 카드 썸네일(제목 장면 정지 화면) */
.ln-thumb { position: relative; display: block; margin: -2px -2px 6px; border-radius: 10px; overflow: hidden; aspect-ratio: 1200 / 630; background: #0b1024; }
.ln-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ln-card:hover .ln-thumb img { transform: scale(1.04); }
.ln-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(7, 11, 26, .62); color: #fff; display: flex; align-items: center; justify-content: center; border: 1.5px solid rgba(255, 255, 255, .7); }
.ln-play svg { width: 18px; height: 18px; margin-left: 2px; }
.ln-len { position: absolute; right: 8px; bottom: 8px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(7, 11, 26, .78); padding: 2px 7px; border-radius: 6px; }
.ln-ep { font-size: 11px; font-weight: 700; color: var(--nx-accent-text); letter-spacing: .12em; }
.ln-term { font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.ln-title { font-size: 14px; color: var(--nx-muted); line-height: 1.5; }
.ln-meta { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--nx-muted); display: flex; gap: 8px; align-items: center; }
.ln-done { display: none; margin-left: auto; font-weight: 700; color: var(--nx-good); }
.ln-card.is-done .ln-done { display: inline; }
.ln-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--nx-warn-soft); color: var(--nx-warn); }
.ln-empty { padding: 32px; text-align: center; color: var(--nx-muted); }
.ln-note { margin-top: 32px; font-size: 13px; color: var(--nx-muted); line-height: 1.6; }
@media (max-width: 640px) {
  .ln-hero { grid-template-columns: 78px 1fr; gap: 14px; padding: 20px 18px; }
  .ln-hero h1 { font-size: 20px; }
  .ln-hero p { font-size: 14px; }
}

/* ── 영상 화면 틀 ─────────────────────────────────────────────── */
.le-wrap { max-width: 980px; margin: 0 auto; }
.le-crumb { font-size: 13px; color: var(--nx-muted); margin-bottom: 8px; }
.le-crumb a { color: var(--nx-accent-text); }
.le-head h1 { font-size: 24px; font-weight: 800; margin: 0 0 4px; line-height: 1.3; letter-spacing: -.01em; }
.le-head p { margin: 0 0 14px; color: var(--nx-muted); font-size: 14px; line-height: 1.6; }
.le-sched { display: inline-block; margin-bottom: 10px; }
.le-prereq { margin: 0 0 14px; font-size: 13px; color: var(--nx-muted); }
.le-prereq a { color: var(--nx-accent-text); }
.le-nav { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0; }
.le-nav a { flex: 1; padding: 12px 14px; border: 1px solid var(--nx-line); border-radius: 12px; background: var(--nx-surface); color: var(--nx-text); text-decoration: none; font-size: 14px; }
.le-nav a:hover { border-color: var(--nx-accent); }
.le-nav a small { display: block; font-size: 12px; color: var(--nx-muted); margin-bottom: 2px; }
.le-nav .le-next { text-align: right; }
.le-script { margin-top: 24px; background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: 14px; }
.le-script summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 15px; }
.le-script ol { margin: 0; padding: 0 16px 16px 36px; font-size: 14px; line-height: 1.7; color: var(--nx-text); }
.le-script li { margin: 4px 0; }
.le-script .le-quiz { color: var(--nx-muted); }
.le-cta { margin-top: 20px; padding: 16px; border-radius: 14px; background: var(--nx-surface); border: 1px dashed var(--nx-line); font-size: 14px; line-height: 1.6; color: var(--nx-muted); }
.le-cta a { color: var(--nx-accent-text); font-weight: 600; }

/* ── 플레이어: 무대 ───────────────────────────────────────────── */
.lp { position: relative; border-radius: 16px; overflow: hidden; background: #070b1a; box-shadow: 0 12px 36px rgba(2, 6, 23, .35); border: 1px solid rgba(255, 255, 255, .06); }
/* 전체 화면 — 브라우저 전체 화면(:fullscreen) 또는 그 API 가 없는 기기의 CSS 확대 모드(.lp-pseudo-full, 아이폰 등) */
.lp:fullscreen, .lp.lp-pseudo-full { display: flex; flex-direction: column; justify-content: center; border-radius: 0; background: #04060f; }
.lp:-webkit-full-screen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; background: #04060f; }
.lp:fullscreen .lp-stage, .lp.lp-pseudo-full .lp-stage { width: min(100vw, calc((100vh - 120px) * 16 / 9)); margin: 0 auto; }
.lp:-webkit-full-screen .lp-stage { width: min(100vw, calc((100vh - 120px) * 16 / 9)); margin: 0 auto; }
.lp.lp-pseudo-full { position: fixed; inset: 0; z-index: 9999; border: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.lp-noscroll, .lp-noscroll body { overflow: hidden; }
.lp-ib[data-act="full"][aria-pressed="true"] { opacity: 1; color: #5eead4; }
.lp-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size;
  background: radial-gradient(110% 120% at 82% -10%, var(--st-bg2) 0%, var(--st-bg1) 42%, var(--st-bg0) 100%);
  color: var(--st-text); font-size: clamp(11px, 2.25cqw, 28px); user-select: none; font-feature-settings: "tnum";
}
.lp-sky { position: absolute; inset: 0; pointer-events: none; }
.lp-grid {
  position: absolute; inset: 0; opacity: .7;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 4cqw 4cqw;
  -webkit-mask-image: radial-gradient(ellipse at 65% 40%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse at 65% 40%, #000 10%, transparent 75%);
}
.lp-orb { position: absolute; border-radius: 50%; filter: blur(4cqw); opacity: .55; animation: lp-float 14s ease-in-out infinite alternate; }
.lp-orb.o1 { width: 30cqw; height: 30cqw; right: -6cqw; top: -10cqw; background: #4f46e5; }
.lp-orb.o2 { width: 22cqw; height: 22cqw; left: 18cqw; bottom: -12cqw; background: #0d9488; opacity: .4; animation-duration: 18s; }
.lp-spot { position: absolute; left: 1.5%; bottom: 2%; width: 27%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 147, 255, .35), transparent); }
@keyframes lp-float { from { transform: translate(0, 0); } to { transform: translate(-3cqw, 2cqw); } }

.lp-mascot { position: absolute; left: 3%; bottom: 4%; width: 23%; z-index: 2; }
.lp-mascot .lt-mascot { filter: drop-shadow(0 .6em .8em rgba(0, 0, 0, .45)); }
.lp-name { position: absolute; left: 50%; bottom: -3%; transform: translateX(-50%); font-size: .62em; font-weight: 700; letter-spacing: .06em; color: var(--st-text); background: rgba(15, 23, 51, .85); border: 1px solid var(--st-edge); padding: .15em .8em; border-radius: 999px; white-space: nowrap; }
.lp-brand { position: absolute; right: 2.2%; bottom: 2.6%; z-index: 3; display: flex; align-items: center; gap: .35em; font-size: .6em; font-weight: 700; color: var(--st-faint); letter-spacing: .02em; }
.lp-brand svg { width: 1.4em; height: 1.4em; }
.lp-brand .b-bg { fill: rgba(139, 147, 255, .35); }
.lp-brand .b-bar { fill: var(--st-text); opacity: .75; }

.lp-board {
  position: absolute; right: 3%; top: 7%; width: 67%; height: 78%; z-index: 1;
  background: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025));
  border: 1px solid var(--st-edge); border-radius: 1em;
  box-shadow: 0 1.2em 3em rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(.5em); -webkit-backdrop-filter: blur(.5em);
  display: flex; align-items: center; justify-content: center; padding: 8.5% 5% 4.5%;
}
.lp-scene { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6em; animation: lp-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lp-in { from { opacity: 0; transform: translateY(.6em); filter: blur(.2em); } to { opacity: 1; transform: none; filter: none; } }
.lp-stagger > * { opacity: 0; animation: lp-rise .55s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(.7em); } to { opacity: 1; transform: none; } }
.lp-kicker {
  position: absolute; left: 4.5%; top: 4.2%; display: flex; align-items: center; gap: .5em;
  font-size: .62em; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--st-teal);
}
.lp-kicker::before { content: ""; width: 1.6em; height: .14em; border-radius: 1em; background: linear-gradient(90deg, var(--st-indigo), var(--st-teal)); }
.lp-hl, .lp-scene b { color: var(--st-teal); font-weight: 800; }

/* 장면: 제목 */
.lp-t-ep { font-size: .72em; font-weight: 700; letter-spacing: .2em; color: var(--st-muted); text-transform: uppercase; }
.lp-t-term {
  font-size: 3.3em; font-weight: 900; line-height: 1.08; letter-spacing: -.03em; word-break: keep-all;
  background: linear-gradient(95deg, #ffffff 10%, var(--st-indigo) 60%, var(--st-teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .05em;
}
.lp-t-line { height: .14em; width: 0; border-radius: 1em; background: linear-gradient(90deg, var(--st-indigo), var(--st-teal)); }
.lp-stagger > .lp-t-line { opacity: 1; animation: lp-line .9s .6s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes lp-line { to { width: 6em; } }
.lp-t-title { font-size: 1.12em; font-weight: 600; color: var(--st-text); letter-spacing: -.01em; }
.lp-t-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em; margin-top: .3em; }
.lp-t-chips span { font-size: .78em; font-weight: 700; color: var(--st-text); background: var(--st-glass2); border: 1px solid var(--st-edge); border-radius: 999px; padding: .25em .9em; }
.lp-t-chips span:nth-child(2) { color: var(--st-teal); border-color: rgba(94, 234, 212, .35); }
.lp-t-meta { font-size: .76em; color: var(--st-muted); letter-spacing: .02em; }
/* 장면: 강조 문장 */
.lp-emoji { font-size: 2.6em; line-height: 1; }
.lp-big { font-size: 1.85em; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; word-break: keep-all; }
.lp-small { font-size: .95em; color: var(--st-muted); line-height: 1.5; word-break: keep-all; }
/* 장면: 도넛 */
.lp-pie-wrap { display: flex; align-items: center; justify-content: center; gap: 7%; width: 100%; height: 100%; }
.lp-pie { height: 84%; aspect-ratio: 1; overflow: visible; }
.lp-pie path { transform-box: view-box; transform-origin: 50% 50%; opacity: 0; animation: lp-slice .5s cubic-bezier(.2, .8, .2, 1.1) forwards; stroke: #121a3a; stroke-width: .025; }
.lp-pie path.lp-pie-ghost { fill: none; stroke: var(--st-rose); stroke-width: .02; stroke-dasharray: .05 .035; animation: lp-fade .4s forwards; }
.lp-pie path.is-burn { animation: lp-slice .5s cubic-bezier(.2, .8, .2, 1.1) forwards, lp-burn 1s cubic-bezier(.5, 0, .7, .4) forwards; }
.lp-pie text { font-weight: 800; text-anchor: middle; dominant-baseline: middle; opacity: 0; animation: lp-fade .4s forwards; }
.lp-pie .lp-pie-center { font-size: .3px; fill: var(--st-text); letter-spacing: -.01px; }
.lp-pie .lp-pie-center-sub { font-size: .12px; fill: var(--st-muted); font-weight: 600; }
@keyframes lp-slice { from { opacity: 0; transform: scale(.6) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes lp-burn { 0% { opacity: 1; } 30% { fill: #fb7185; opacity: 1; } 100% { fill: #fb7185; opacity: 0; transform: translate(.25px, .45px) rotate(18deg) scale(.85); } }
@keyframes lp-fade { to { opacity: 1; } }
.lp-pie-side { max-width: 46%; text-align: left; display: flex; flex-direction: column; gap: .55em; }
.lp-pie-label { font-size: 1.3em; font-weight: 800; letter-spacing: -.01em; word-break: keep-all; }
.lp-pie-cap { font-size: .92em; color: var(--st-muted); line-height: 1.55; word-break: keep-all; }
.lp-tag { align-self: flex-start; font-size: .82em; font-weight: 800; padding: .3em .85em; border-radius: 999px; background: rgba(94, 234, 212, .12); color: var(--st-teal); border: 1px solid rgba(94, 234, 212, .35); }
.lp-tag.tone-up { background: rgba(251, 113, 133, .12); color: var(--st-rose); border-color: rgba(251, 113, 133, .4); }
/* 장면: 수식 */
.lp-formula { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: .5em .32em; }
.lp-chip { display: flex; flex-direction: column; align-items: center; gap: .35em; }
.lp-chip > span { font-size: 1.2em; font-weight: 800; padding: .38em .6em; border-radius: .55em; background: var(--st-glass2); border: 1px solid var(--st-edge); color: var(--st-text); white-space: nowrap; letter-spacing: -.01em; }
.lp-chip small { font-size: .62em; color: var(--st-muted); max-width: 8em; line-height: 1.35; word-break: keep-all; }
.lp-op > span { background: none; border-color: transparent; color: var(--st-faint); padding: .4em .05em; font-weight: 600; }
.lp-ex { font-size: .95em; color: var(--st-muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--st-edge); border-radius: .6em; padding: .5em 1em; line-height: 1.5; word-break: keep-all; }
.lp-res { font-size: 1.2em; font-weight: 800; color: var(--st-teal); letter-spacing: -.01em; }
.lp-chip.tone-accent > span { border-color: rgba(139, 147, 255, .6); color: #c7cbff; background: rgba(139, 147, 255, .14); box-shadow: 0 0 1.2em rgba(139, 147, 255, .25); }
.lp-chip.tone-good > span { border-color: rgba(94, 234, 212, .6); color: var(--st-teal); background: rgba(94, 234, 212, .1); box-shadow: 0 0 1.2em rgba(94, 234, 212, .18); }
.lp-chip.tone-up > span { border-color: rgba(251, 113, 133, .6); color: var(--st-rose); background: rgba(251, 113, 133, .1); }
.lp-chip.tone-down > span { border-color: rgba(96, 165, 250, .6); color: var(--st-sky); background: rgba(96, 165, 250, .1); }
.lp-chip.tone-warn > span { border-color: rgba(251, 191, 36, .6); color: var(--st-amber); background: rgba(251, 191, 36, .1); }
/* 장면: 막대·워터폴 */
.lp-bars-title { font-size: 1em; font-weight: 700; color: var(--st-text); letter-spacing: -.01em; }
.lp-bars { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 8%; width: 86%; flex: 1; min-height: 0; padding-top: .4em; margin-bottom: 1.6em; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.lp-bar { position: relative; flex: 0 1 6em; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.lp-bar-val { font-size: 1em; font-weight: 800; margin-bottom: .3em; white-space: nowrap; }
.lp-bar-fill { width: 100%; height: 0; border-radius: .35em .35em 0 0; background: linear-gradient(180deg, #a5abff, #6366f1); transition: height 1s cubic-bezier(.2, .9, .3, 1), bottom 1s cubic-bezier(.2, .9, .3, 1); box-shadow: 0 0 1.4em rgba(99, 102, 241, .25); }
.lp-bar-lab { position: absolute; top: 100%; margin-top: .45em; font-size: .78em; font-weight: 600; color: var(--st-muted); white-space: nowrap; }
.lp-bar.tone-good .lp-bar-fill { background: linear-gradient(180deg, #99f6e4, #14b8a6); box-shadow: 0 0 1.4em rgba(20, 184, 166, .3); }
.lp-bar.tone-up .lp-bar-fill { background: linear-gradient(180deg, #fda4af, #e11d48); box-shadow: 0 0 1.4em rgba(225, 29, 72, .25); }
.lp-bar.tone-down .lp-bar-fill { background: linear-gradient(180deg, #93c5fd, #2563eb); }
.lp-bar.tone-warn .lp-bar-fill { background: linear-gradient(180deg, #fde68a, #d97706); }
.lp-bar.tone-plain .lp-bar-fill { background: linear-gradient(180deg, #64748b, #334155); box-shadow: none; }
.lp-bar.tone-good .lp-bar-val { color: var(--st-teal); }
.lp-wf .lp-bar-fill { position: absolute; bottom: 0; border-radius: .3em; }
.lp-wf .lp-bar-val { position: absolute; bottom: 0; margin: 0 0 .35em; transition: bottom 1s cubic-bezier(.2, .9, .3, 1); }
.lp-wf .wf-down .lp-bar-fill { background: repeating-linear-gradient(135deg, rgba(251, 113, 133, .9) 0 .35em, rgba(251, 113, 133, .55) .35em .7em); box-shadow: none; }
.lp-wf .wf-down .lp-bar-val { color: var(--st-rose); }
.lp-wf .wf-up .lp-bar-fill { background: linear-gradient(180deg, #99f6e4, #14b8a6); }
.lp-wf .wf-end .lp-bar-fill { background: linear-gradient(180deg, #99f6e4, #0d9488); box-shadow: 0 0 1.6em rgba(45, 212, 191, .4); }
.lp-wf .wf-end .lp-bar-val { color: var(--st-teal); }
.lp-note { font-size: .82em; color: var(--st-muted); }
/* 장면: 비교 */
.lp-cmp { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 3%; width: 100%; }
.lp-card { position: relative; background: var(--st-glass); border: 1px solid var(--st-edge); border-radius: .8em; padding: 1em .9em; display: flex; flex-direction: column; gap: .4em; justify-content: center; overflow: hidden; }
.lp-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .18em; background: var(--st-faint); }
.lp-card h3 { margin: 0 0 .15em; font-size: 1.15em; font-weight: 800; letter-spacing: -.01em; }
.lp-card p { margin: 0; font-size: .86em; color: var(--st-muted); line-height: 1.5; word-break: keep-all; }
.lp-card .lp-emoji { font-size: 1.8em; }
.lp-card.tone-good::before { background: var(--st-teal); } .lp-card.tone-good h3 { color: var(--st-teal); }
.lp-card.tone-warn::before { background: var(--st-amber); } .lp-card.tone-warn h3 { color: var(--st-amber); }
.lp-card.tone-up::before { background: var(--st-rose); } .lp-card.tone-up h3 { color: var(--st-rose); }
.lp-card.tone-down::before { background: var(--st-sky); } .lp-card.tone-down h3 { color: var(--st-sky); }
.lp-card.tone-accent::before { background: var(--st-indigo); } .lp-card.tone-accent h3 { color: #c7cbff; }
.lp-vs { align-self: center; font-size: .8em; font-weight: 800; letter-spacing: .15em; color: var(--st-faint); }
.lp-cmp .lp-card:first-child { animation: lp-left .6s cubic-bezier(.2, .8, .2, 1) both; }
.lp-cmp .lp-card:last-child { animation: lp-right .6s .2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lp-left { from { opacity: 0; transform: translateX(-1.5em); } to { opacity: 1; transform: none; } }
@keyframes lp-right { from { opacity: 0; transform: translateX(1.5em); } to { opacity: 1; transform: none; } }
/* 장면: 사분면 */
.lp-quad-wrap { position: relative; flex: none; width: 22em; max-width: 92%; height: 10.5em; margin: 3.6em 0 1em; }
.lp-quad { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; border-left: 1px solid rgba(255, 255, 255, .35); border-bottom: 1px solid rgba(255, 255, 255, .35); }
.lp-quad > div { display: flex; font-size: .74em; font-weight: 700; color: var(--st-faint); padding: .55em .7em; word-break: keep-all; opacity: 0; animation: lp-fade .5s forwards; }
.lp-quad > div:nth-child(1) { align-items: flex-start; justify-content: flex-start; }
.lp-quad > div:nth-child(2) { align-items: flex-start; justify-content: flex-end; }
.lp-quad > div:nth-child(3) { align-items: flex-end; justify-content: flex-start; }
.lp-quad > div:nth-child(4) { align-items: flex-end; justify-content: flex-end; }
.lp-quad > div:nth-child(1) { border-right: 1px dashed rgba(255, 255, 255, .14); border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.lp-quad > div:nth-child(2) { border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.lp-quad > div:nth-child(3) { border-right: 1px dashed rgba(255, 255, 255, .14); }
.lp-quad > div.tone-good { color: var(--st-teal); background: rgba(94, 234, 212, .07); }
.lp-quad > div.tone-up { color: var(--st-rose); background: rgba(251, 113, 133, .06); }
.lp-quad > div.tone-warn { color: var(--st-amber); background: rgba(251, 191, 36, .05); }
.lp-axis-x, .lp-axis-y { position: absolute; font-size: .68em; font-weight: 700; color: var(--st-muted); letter-spacing: .06em; white-space: nowrap; }
.lp-axis-x { right: 0; top: 100%; margin-top: .4em; }
.lp-axis-y { left: 0; bottom: 100%; margin-bottom: .35em; transform: translateX(-50%); }
.lp-dot { position: absolute; width: .9em; height: .9em; margin: -.45em 0 0 -.45em; border-radius: 50%; background: var(--st-indigo); box-shadow: 0 0 0 .3em rgba(139, 147, 255, .2), 0 0 1.2em rgba(139, 147, 255, .6); opacity: 0; animation: lp-dot .5s cubic-bezier(.2, .8, .2, 1.4) forwards; }
.lp-dot span { position: absolute; left: 1.4em; top: 50%; transform: translateY(-50%); font-size: .78em; font-weight: 700; white-space: nowrap; color: var(--st-text); background: rgba(10, 14, 31, .85); border: 1px solid var(--st-edge); padding: .1em .55em; border-radius: .4em; }
.lp-dot.is-left span { left: auto; right: 1.4em; }
.lp-dot.tone-good { background: var(--st-teal); box-shadow: 0 0 0 .3em rgba(94, 234, 212, .2), 0 0 1.2em rgba(94, 234, 212, .7); }
.lp-dot.tone-good::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: lp-ping 1.6s 1.4s ease-out infinite; }
.lp-dot.tone-up { background: var(--st-rose); box-shadow: 0 0 0 .3em rgba(251, 113, 133, .2), 0 0 1.2em rgba(251, 113, 133, .6); }
@keyframes lp-dot { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes lp-ping { 0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, .6); } 100% { box-shadow: 0 0 0 1.3em rgba(94, 234, 212, 0); } }
/* 장면: 정리 */
.lp-pts-title { font-size: .72em; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--st-muted); }
.lp-pts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55em; text-align: left; width: 100%; max-width: 30em; counter-reset: pt; }
.lp-pts li { counter-increment: pt; display: flex; gap: .8em; align-items: center; font-size: 1.05em; font-weight: 600; line-height: 1.45; background: var(--st-glass); border: 1px solid var(--st-edge); border-radius: .7em; padding: .6em .9em; word-break: keep-all; }
.lp-pts li::before { content: counter(pt, decimal-leading-zero); flex: none; font-size: .8em; font-weight: 800; color: var(--st-teal); letter-spacing: .04em; }
/* 장면: 퀴즈 */
.lp-q-badge { font-size: .72em; font-weight: 800; letter-spacing: .18em; color: var(--st-teal); }
.lp-q { font-size: 1.25em; font-weight: 800; line-height: 1.4; word-break: keep-all; }
.lp-choices { display: flex; flex-direction: column; gap: .45em; width: 100%; max-width: 28em; }
.lp-choice { font: inherit; font-size: .95em; font-weight: 700; text-align: left; padding: .55em .9em; border-radius: .6em; border: 1px solid var(--st-edge); background: var(--st-glass); color: var(--st-text); cursor: pointer; transition: transform .1s, background .2s, border-color .2s; }
.lp-choice:hover:not(:disabled) { border-color: var(--st-indigo); transform: translateX(.2em); }
.lp-choice:focus-visible { outline: 2px solid var(--st-teal); outline-offset: 2px; }
.lp-choice:disabled { cursor: default; }
.lp-choice.is-right { background: rgba(94, 234, 212, .14); border-color: var(--st-teal); color: var(--st-teal); }
.lp-choice.is-wrong { background: rgba(251, 113, 133, .14); border-color: var(--st-rose); color: var(--st-rose); animation: lp-shake .4s; }
.lp-explain { font-size: .9em; line-height: 1.5; color: var(--st-text); background: rgba(139, 147, 255, .12); border: 1px solid rgba(139, 147, 255, .3); border-radius: .6em; padding: .55em .9em; max-width: 28em; text-align: left; word-break: keep-all; }
@keyframes lp-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-.35em); } 75% { transform: translateX(.35em); } }

/* 시작·끝 화면 */
.lp-cover { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9em; background: rgba(7, 11, 26, .62); backdrop-filter: blur(.35em); -webkit-backdrop-filter: blur(.35em); text-align: center; padding: 4%; }
.lp-cover[hidden] { display: none; }
.lp-cover-kicker { font-size: .7em; font-weight: 800; letter-spacing: .22em; color: var(--st-teal); text-transform: uppercase; }
.lp-cover h2 { margin: 0; font-size: 2em; font-weight: 900; color: var(--st-text); line-height: 1.2; letter-spacing: -.02em; word-break: keep-all; }
.lp-cover p { margin: 0; font-size: .85em; color: var(--st-muted); }
.lp-play-big { font: inherit; font-size: 1em; font-weight: 800; display: inline-flex; align-items: center; gap: .6em; padding: .8em 1.6em; border: 0; border-radius: 999px; background: linear-gradient(95deg, #6366f1, #8b5cf6 55%, #14b8a6); color: #fff; cursor: pointer; box-shadow: 0 .5em 1.6em rgba(99, 102, 241, .45); transition: transform .15s, box-shadow .15s; }
.lp-play-big:hover { transform: translateY(-.1em); box-shadow: 0 .7em 2em rgba(99, 102, 241, .6); }
.lp-play-big:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lp-play-big svg { width: 1em; height: 1em; }
.lp-end-btns { display: flex; flex-wrap: wrap; gap: .6em; justify-content: center; }
.lp-btn2 { font: inherit; font-size: .9em; font-weight: 700; padding: .6em 1.15em; border-radius: 999px; border: 1px solid var(--st-edge); background: var(--st-glass2); color: var(--st-text); cursor: pointer; text-decoration: none; }
.lp-btn2:hover { border-color: var(--st-indigo); }
.lp-btn2.is-primary { background: linear-gradient(95deg, #6366f1, #14b8a6); border-color: transparent; color: #fff; }
.lp-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.lp-confetti i { position: absolute; top: -5%; width: .9%; aspect-ratio: 1 / 2.4; border-radius: 1px; opacity: .85; animation: lp-fall 2.6s cubic-bezier(.3, .2, .6, 1) forwards; }
@keyframes lp-fall { to { transform: translateY(70cqw) rotate(420deg); opacity: 0; } }

/* 끝 화면 — 다음 영상 자동 이어 보기 카운트다운 */
.lp-auto { margin: 0; display: flex; align-items: center; gap: .6em; font-size: .8em; color: var(--st-muted); }
.lp-auto[hidden] { display: none; }
.lp-auto-cancel { font: inherit; font-weight: 700; color: var(--st-text); background: transparent; border: 1px solid var(--st-edge); border-radius: 999px; padding: .2em .9em; cursor: pointer; }
.lp-auto-cancel:hover { border-color: var(--st-indigo); }

/* 공유하기 패널 — 플레이어 안(전체 화면에서도 보이게) */
.lp-share { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; background: rgba(4, 6, 15, .66); padding: 4%; font-size: 15px; }
.lp-share[hidden] { display: none; }
.lp-share-box { width: min(420px, 100%); background: #0f1530; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 16px 16px 14px; color: #eef1fb; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.lp-share-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lp-share-head strong { font-size: 15px; }
.lp-share-x { font: inherit; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #c9cfe6; cursor: pointer; }
.lp-share-x:hover { background: rgba(255, 255, 255, .08); }
.lp-share-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.lp-share-btn { font: inherit; font-size: 12px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 0; border-radius: 10px; background: transparent; color: #dfe4f5; cursor: pointer; text-decoration: none; }
.lp-share-btn:hover, .lp-share-btn:focus-visible { background: rgba(255, 255, 255, .07); outline: none; }
.lp-share-btn[hidden] { display: none; }
.lp-sh-ic { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #fff; background: #334155; }
.lp-sh-ic.is-link { background: #475569; font-size: 17px; }
.lp-sh-ic.is-x { background: #000; border: 1px solid #3f3f46; }
.lp-sh-ic.is-fb { background: #1877f2; font-family: Georgia, serif; font-size: 22px; }
.lp-sh-ic.is-nv { background: #03c75a; }
.lp-sh-ic.is-more { background: #fee500; color: #191919; }
.lp-share-url { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.lp-share-url input { flex: 1; min-width: 0; font: inherit; font-size: 12px; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); background: #070b1a; color: #c9cfe6; }
.lp-share-ok { font-size: 12px; font-weight: 700; color: #5eead4; white-space: nowrap; }
.lp-nextvid { gap: 5px; text-decoration: none; }

/* 자막·조작 */
.lp-sub { min-height: 3.6em; padding: 12px 18px; background: #070b1a; border-top: 1px solid rgba(255, 255, 255, .06); color: #eef1fb; font-size: 17px; font-weight: 500; line-height: 1.55; text-align: center; display: flex; align-items: center; justify-content: center; word-break: keep-all; }
.lp-sub b { color: #5eead4; font-weight: 700; }
.lp-sub[hidden] { display: none; }
.lp-ctrl { display: flex; align-items: center; gap: 4px; padding: 6px 10px 10px; background: #070b1a; color: #c9cfe6; }
.lp-ib { font: inherit; display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; font-size: 13px; font-weight: 700; }
.lp-ib:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lp-ib:focus-visible { outline: 2px solid #5eead4; outline-offset: 1px; }
.lp-ib svg { width: 20px; height: 20px; }
.lp-ib[aria-pressed="false"] { opacity: .5; }
.lp-ib:disabled { opacity: .3; cursor: not-allowed; }
.lp-time { font-size: 12px; color: #8a93b5; margin: 0 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-track { flex: 1; display: flex; gap: 3px; height: 22px; align-items: center; cursor: pointer; min-width: 60px; }
.lp-seg { flex: 1; height: 4px; background: rgba(255, 255, 255, .14); border-radius: 3px; overflow: hidden; border: 0; padding: 0; cursor: pointer; transition: height .15s; }
.lp-seg:hover { height: 7px; }
.lp-seg:focus-visible { outline: 2px solid #5eead4; }
.lp-seg > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8b93ff, #5eead4); }
.lp-seg.is-done > span { width: 100%; }
.lp-speed { font: inherit; font-size: 12px; font-weight: 700; height: 30px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .15); background: #111833; color: #c9cfe6; padding: 0 4px; }

/* 좁은 화면: 무대를 정사각형으로 — 보드를 위, 토리를 아래 왼쪽에 둔다(글자가 작아지지 않게). */
@container (max-width: 600px) {
  .lp-board { left: 4%; right: 4%; top: 4%; width: auto; height: 66%; padding: 10% 5% 5%; }
  .lp-mascot { width: 25%; left: 4%; bottom: 2%; }
  .lp-spot { left: 2%; width: 30%; }
  .lp-cmp { grid-template-columns: 1fr 1fr; gap: .5em; }
  .lp-cmp .lp-vs { display: none; }
  .lp-card { padding: .6em .6em; }
  .lp-quad-wrap { width: 23em; height: 10.5em; }
}
@media (max-width: 640px) {
  .lp-stage { aspect-ratio: 1 / 1; font-size: 3.4cqw; }
  .lp-sub { font-size: 15px; padding: 10px 12px; }
  .lp-time, .lp-hide-sm { display: none; }
  .lp-ib { min-width: 34px; padding: 0 5px; }
  .le-head h1 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .lt-mascot *, .lp-orb, .lp-scene, .lp-stagger > *, .lp-ex, .lp-res, .lp-pie path, .lp-pie text,
  .lp-cmp .lp-card, .lp-confetti i, .lp-dot, .lp-quad > div { animation: none !important; opacity: 1 !important; }
  .lp-pie path.is-burn { opacity: .15 !important; }
  .lp-stagger > .lp-t-line { animation: none !important; width: 6em; }
  .lp-bar-fill, .lp-wf .lp-bar-val { transition: none; }
}

/* 정지 화면(?still=N) — 검수용 캡처: 무대만 화면 가득 */
.lp-still-mode body { overflow: hidden; }
.lp-still-mode .lp { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; margin: 0; max-width: none; border-radius: 0; background: #070b1a; }
.lp-still-mode .lp-stage { flex: 1; width: 100%; height: auto; max-width: none; aspect-ratio: auto; border-radius: 0; margin: 0; }
.lp-still-mode .lp-ctrl { display: none; }
/* 썸네일 캡처(?still=1&thumb=1) — 자막 줄 없이 무대만 */
.lp-thumb-mode .lp-sub { display: none; }
