
@import url("https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Nanum+Pen+Script&display=swap");
.st {
  --ink: #2a2217; --ink-2: #4b4030; --muted: #74644a; --gold-deep: #8a6417; --gold: #b8892b; --line: #e3cf9c; --soft: #fbf3df;
  --gold-grad: linear-gradient(135deg, #a3761f 0%, #946a18 50%, #74520f 100%);
  --card: rgba(255, 255, 255, .94); --page: #fbf8f0; --red: #d42a1e; --ok: #2f7a3e; --note: #5d6b78; --ai-tag: #8a6417;
  --serif: "Gowun Batang", "Noto Serif KR", serif; --sans: "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Malgun Gothic", sans-serif;
  --hanja: "Noto Serif KR", serif; --pen: "Nanum Pen Script", "Gowun Batang", cursive; --chalk: "Nanum Pen Script", "Gowun Batang", cursive;
  --k: 1; --bar: 56px; --radius: 18px;
  position: fixed; inset: 0; z-index: 93; background: #efe2c4; color: var(--ink); font-family: var(--serif); overflow: hidden;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
.st[data-fs="1"] { --k: 1.15; }
.st[data-fs="2"] { --k: 1.3; }
.st.hidden { display: none; }
html.st-open, html.st-open body { overflow: hidden; }
:where(.st) button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; } 
.st-praise, .st-word, .st-opt { -webkit-user-select: none; user-select: none; }
.st .hj { font-family: var(--hanja); }
.st-bar { background: linear-gradient(180deg, rgba(60, 40, 12, .6), rgba(60, 40, 12, 0)); }
.st .st-bar { z-index: 15; } 
.st-bar .a3-title { color: #fff8e6; }


.st-room { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; background: #f1e3c3; }
.st-stage { position: relative; width: min(100vw, calc((100vh - 8px) * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto; background: #e9d6ad url("../study/media/classroom.webp") center / 100% 100% no-repeat; }
.st-board { position: absolute; left: 17.8%; top: 30.5%; width: 64.4%; height: 46%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2%; color: #f6f3e6; text-align: center; container-type: size; }
.st-board .bd-k { font-family: var(--chalk); font-size: clamp(14px, 9cqh, 40px); color: #ffe9a6; line-height: 1; }
.st-board .bd-hj { font-family: var(--hanja); font-weight: 700; font-size: clamp(26px, 30cqh, 120px); letter-spacing: .08em; line-height: 1.05; text-shadow: 0 0 6px rgba(255, 255, 255, .25); }
.st-board .bd-eum { font-family: var(--chalk); font-size: clamp(16px, 12cqh, 52px); line-height: 1; }
.st-board .bd-go { margin-top: 2%; padding: .25em 1em; border-radius: 999px; border: 2px dashed rgba(255, 248, 220, .8); font-family: var(--chalk); font-size: clamp(15px, 10cqh, 40px); color: #fff8dc; line-height: 1.1; }
.st-board .bd-go:hover, .st-board .bd-go:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }
.st-home { width: min(100%, 980px); margin: 0 auto; padding: 14px 16px 32px; display: flex; flex-direction: column; gap: 12px; }
.st-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.st-big { min-height: calc(96px * var(--k)); border-radius: 20px; background: var(--card); border: 1.5px solid var(--line); box-shadow: 0 8px 24px rgba(154, 111, 28, .14); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; text-align: center; }
.st-big b { font-size: calc(24px * var(--k)); font-weight: 700; color: var(--ink); }
.st-big small { font-family: var(--sans); font-size: calc(14px * var(--k)); font-weight: 700; color: var(--muted); }
.st-big.gold { background: var(--gold-grad); border-color: #74520f; }
.st-big.gold b, .st-big.gold small { color: #fff; }
.st-big.red { background: #c8281e; border-color: #8e1a12; }
.st-big.red b, .st-big.red small { color: #fff; }
.st-big:focus-visible, .st-opt:focus-visible, .st-btn:focus-visible { outline: 3px solid #1d3f86; outline-offset: 2px; }
.st-line { font-family: var(--sans); font-size: calc(14.5px * var(--k)); font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.5; }
.st-ai-note { font-family: var(--sans); font-size: calc(15px * var(--k)); font-weight: 700; color: #6b4c10; background: #fff3d6; border: 1.5px solid #e6c77a; border-radius: 12px; padding: 8px 12px; text-align: center; }
.st-join { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; font-family: var(--sans); font-size: calc(15px * var(--k)); font-weight: 700; color: var(--ink-2); }
@media (orientation: portrait), (max-width: 640px) {
  .st-menu { grid-template-columns: 1fr 1fr; }
}

@media (orientation: landscape) and (min-height: 560px) {
  .st-stage { width: min(100vw, calc((100vh - 250px) * 16 / 9)); }
  .st-home { padding-top: 10px; gap: 8px; }
  .st-big { min-height: calc(84px * var(--k)); }
}
@media (orientation: landscape) and (max-height: 559px) {
  .st-room { display: flex; align-items: flex-start; gap: 0; }
  .st-stage { flex: none; width: min(60vw, calc((100vh - 56px) * 16 / 9)); margin: 56px 0 0 0; }
  .st-home { flex: 1; min-width: 0; padding: 60px 12px 20px; gap: 8px; }
  .st-menu { grid-template-columns: 1fr 1fr; gap: 8px; }
  .st-big { min-height: calc(70px * var(--k)); padding: 6px; }
  .st-big b { font-size: calc(20px * var(--k)); }
  .st-ai-note { font-size: calc(13px * var(--k)); padding: 6px 8px; }
}


.st-paper { position: absolute; inset: 0; z-index: 5; display: flex; justify-content: center; background: rgba(60, 42, 14, .38); }
.st-paper.hidden { display: none; }
.st-sheet { position: relative; width: min(100%, 640px); height: 100%; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  background: var(--page) url("../study/media/paper_bg.webp") center top / 100% auto no-repeat; box-shadow: 0 0 40px rgba(40, 26, 6, .35); }
.st-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: calc(var(--bar) + 2px) 14px 10px 14px; background: linear-gradient(180deg, rgba(251, 248, 240, .98) 70%, rgba(251, 248, 240, .0)); }
.st-back { min-height: 48px; padding: 0 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); font-family: var(--sans); font-size: calc(16px * var(--k)); font-weight: 700; color: var(--gold-deep); flex: none; }
.st-crumb { flex: 1; min-width: 0; font-size: calc(20px * var(--k)); font-weight: 700; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.st-crumb small { font-weight: 400; color: var(--ink-2); font-size: calc(16px * var(--k)); }
.st-body { padding: 6px 16px 140px; display: flex; flex-direction: column; gap: 14px; }
.st-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 8px 28px rgba(154, 111, 28, .12); }
.st-title { font-weight: 700; font-size: calc(26px * var(--k)); color: var(--gold-deep); text-align: center; line-height: 1.25; }
.st-prompt { font-size: calc(22px * var(--k)); font-weight: 700; line-height: 1.4; text-align: center; }
.st-hint { font-size: calc(18px * var(--k)); color: var(--muted); text-align: center; }
.st-quote-l { font-family: var(--sans); font-size: calc(14px * var(--k)); font-weight: 700; color: #fff; background: var(--gold-deep); border-radius: 6px; padding: 2px 8px; display: inline-block; margin-bottom: 6px; }
.st-quote-l.teach { background: var(--note); }
.st-quote { font-size: calc(20px * var(--k)); line-height: 1.55; }
.st-src { margin-top: 6px; font-size: calc(15px * var(--k)); color: var(--muted); }
.ai-tag { display: inline-block; font-family: var(--sans); font-size: calc(14px * var(--k)); font-weight: 800; color: #fff; background: var(--ai-tag); border-radius: 7px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; letter-spacing: 0; }
.st-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.st-btns.one { grid-template-columns: 1fr; }
.st-btn { min-height: calc(60px * var(--k)); border-radius: var(--radius); font-size: calc(20px * var(--k)); font-weight: 700; text-align: center; background: #fff; border: 1.5px solid var(--line); color: var(--gold-deep); padding: 6px 12px; }
.st-btn.primary { background: var(--gold-grad); color: #fff; border-color: #74520f; box-shadow: 0 6px 18px rgba(154, 111, 28, .3); }
.st-btn.red { background: #c8281e; color: #fff; border-color: #8e1a12; box-shadow: 0 6px 16px rgba(212, 42, 30, .3); }
.st-btn small { display: block; font-family: var(--sans); font-size: calc(14px * var(--k)); font-weight: 600; opacity: .92; }
.st-btn[disabled] { opacity: .45; cursor: default; }
.st-glow { animation: stGlow 1.6s ease-in-out infinite; }
@keyframes stGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 42, 30, .45); } 50% { box-shadow: 0 0 0 10px rgba(212, 42, 30, 0); } }


.st-fs { position: absolute; z-index: 20; left: max(10px, env(safe-area-inset-left)); top: calc(max(8px, env(safe-area-inset-top)) + 50px); display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border-radius: 30px; background: #fff; border: 2px solid var(--gold); box-shadow: 0 3px 12px rgba(106, 71, 8, .22); }
.st-fs button { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: flex-end; justify-content: center; font-family: var(--sans); font-weight: 800; color: var(--gold-deep); line-height: 1; }
.st-fs button:nth-child(1) { font-size: 15px; padding-bottom: 14px; }
.st-fs button:nth-child(2) { font-size: 20px; padding-bottom: 12px; }
.st-fs button:nth-child(3) { font-size: 26px; padding-bottom: 9px; }
.st-fs button.on { background: var(--gold-grad); color: #fff; }
.st-paper .st-head { padding-left: 166px; }

@media (orientation: portrait) {
  .st-room { top: calc(max(8px, env(safe-area-inset-top)) + 112px); }
}


.st-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.st-steps span { min-height: 46px; border-radius: 12px; background: #fff; border: 2px solid #e6d5aa; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: calc(17px * var(--k)); font-weight: 700; color: var(--muted); }
.st-steps span b { width: 24px; height: 24px; border-radius: 50%; background: #e6d5aa; color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); }
.st-steps span.on { border-color: #74520f; background: var(--soft); color: var(--ink); }
.st-steps span.on b { background: var(--gold-grad); }
.st-steps span.done { color: var(--ok); border-color: #9cc9a6; }
.st-steps span.done b { background: var(--ok); }
.st-video { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(30, 40, 20, .25); background: #2c5a3e; }
.st-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #1d2a20; }
.st-video.tall video { aspect-ratio: 9 / 16; max-height: 70vh; margin: 0 auto; }
.st-vcap { font-family: var(--sans); font-size: calc(14px * var(--k)); font-weight: 600; color: var(--muted); text-align: center; margin-top: 6px; }
.st-words { display: flex; flex-direction: column; gap: 10px; }
.st-word { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 0 14px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); text-align: left; width: 100%; }
.st-word .ko { font-size: calc(28px * var(--k)); font-weight: 700; }
.st-word .hj { font-size: calc(22px * var(--k)); color: var(--muted); font-weight: 700; }
.st-word .say { margin-left: auto; width: 56px; height: 56px; border-radius: 50%; background: var(--gold-grad); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.st-word .say::after { content: ""; border-left: 15px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.st-word .chk { margin-left: auto; font-family: var(--sans); font-size: calc(16px * var(--k)); font-weight: 800; color: var(--ok); }
.st-word.ok { border-color: var(--ok); background: #eef7ef; }
.st-sayline { display: flex; gap: 10px; align-items: center; }
.st-sayline img { width: 64px; height: 64px; object-fit: contain; background: #fff3d6; border-radius: 50%; flex: none; }
.st-sayline p { flex: 1; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 12px; font-size: calc(19px * var(--k)); font-weight: 700; line-height: 1.4; }
.st-lessons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-lesson { min-height: calc(104px * var(--k)); border-radius: 18px; background: #fff; border: 1.5px solid var(--line); padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.st-lesson small { font-family: var(--sans); font-size: calc(13.5px * var(--k)); font-weight: 800; color: var(--gold-deep); }
.st-lesson b { font-size: calc(21px * var(--k)); line-height: 1.3; }
.st-lesson i { font-style: normal; font-family: var(--sans); font-size: calc(13.5px * var(--k)); color: var(--muted); }


.st-ppr { margin: 0 -4px; background: #fffef9; border-radius: 6px; box-shadow: 0 6px 24px rgba(60, 40, 10, .18); padding: 16px 14px 20px;
  background-image: repeating-linear-gradient(transparent 0 43px, rgba(120, 150, 190, .14) 43px 44px); }
.st-phead { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 6px; gap: 8px; }
.st-phead h2 { font-size: calc(24px * var(--k)); font-weight: 700; }
.st-phead .who { font-size: calc(16px * var(--k)); font-weight: 700; color: var(--muted); margin-top: 4px; font-family: var(--sans); }
.st-score { position: relative; width: 120px; height: 88px; flex: none; opacity: 0; }
.st-ppr.graded .st-score { opacity: 1; transition: opacity .4s; }
.st-score span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--pen); font-size: 48px; color: var(--red); transform: rotate(-8deg); }
.st-score svg { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); }
.st-gold { position: absolute; right: -6px; top: -14px; width: 64px; height: 64px; border-radius: 50%; display: none; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at 35% 30%, #ffe39a, #c99a2e 70%, #8a6417); color: #fff; font: 800 12px/1.15 var(--sans); box-shadow: 0 4px 12px rgba(120, 80, 0, .35); transform: rotate(12deg); }
.st-ppr.graded.perfect .st-gold { display: flex; }
.st-q { position: relative; padding: 14px 4px 14px 50px; border-bottom: 1px dashed rgba(74, 59, 32, .25); scroll-margin: 120px; }
.st-q .no { position: absolute; left: 6px; top: 12px; width: 34px; height: 34px; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.st-q .no svg { position: absolute; left: -12px; top: -12px; width: 58px; height: 58px; overflow: visible; }
.st-q p.qt { font-size: calc(20px * var(--k)); font-weight: 700; line-height: 1.45; }
.st-q .big { display: block; font-family: var(--hanja); font-weight: 700; font-size: calc(36px * var(--k)); letter-spacing: .06em; margin-bottom: 4px; }
.st-q .basis { margin-top: 4px; font-family: var(--sans); font-size: calc(13.5px * var(--k)); font-weight: 700; color: var(--muted); }
.st-q .need { font-family: var(--sans); font-size: calc(14px * var(--k)); font-weight: 800; color: #1d3f86; margin-top: 4px; }
.st-opts { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.st-opt { position: relative; width: 100%; min-height: calc(54px * var(--k)); text-align: left; padding: 8px 14px; border-radius: 14px; background: #fff; border: 1.5px solid #e6d5aa; font-size: calc(19px * var(--k)); font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.st-opt .n { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #c9b47e; display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 15px; color: var(--muted); }
.st-opt.on { border-color: #1d3f86; background: #eef3fb; color: #1d3f86; box-shadow: inset 0 0 0 1.5px #1d3f86; }
.st-opt.on .n { border-color: #1d3f86; background: #1d3f86; color: #fff; }
.st-opt .mk { position: absolute; inset: -4px -6px; pointer-events: none; display: none; }
.st-opt .mk svg { width: 100%; height: 100%; overflow: visible; }
.graded .st-opt { cursor: default; }
.graded .st-opt.bad .mk { display: block; }
.st-sheet.has-ex .st-body { padding-bottom: 62vh; }
.graded .st-opt.right { border-color: #2f7a3e; }
.graded .st-opt.right::after { content: "정답"; margin-left: auto; font-family: var(--sans); font-size: 13px; font-weight: 800; color: #fff; background: #2f7a3e; border-radius: 6px; padding: 2px 7px; }
.st-qline { margin-top: 6px; padding: 8px 12px; border-left: 4px solid var(--gold); background: #fffaf0; font-size: calc(19px * var(--k)); line-height: 1.5; }

.pz-how { margin-top: 6px; font-family: var(--sans); color: #1d3f86; }
.pz-how b { display: block; font-size: calc(17px * var(--k)); font-weight: 800; }
.pz-how small { display: block; font-size: calc(14px * var(--k)); font-weight: 700; color: var(--muted); margin-top: 2px; }
.pz { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.25fr); margin-top: 10px; }
.pz-col { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.pz-col.L { grid-column: 1; }
.pz-col.R { grid-column: 3; }
.pz-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.pz-it { position: relative; min-height: 56px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; text-align: left; padding: 8px 10px; border-radius: 14px; background: #fff; border: 2px solid #e0cd9c; color: var(--ink-2); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: box-shadow .12s, border-color .12s; }
.pz-it .pz-no { flex: none; min-width: 30px; height: 30px; border-radius: 50%; border: 2px solid #c9b47e; display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 16px; font-weight: 800; color: var(--muted); background: #fffaf0; }
.pz-it .pz-tx { flex: 1 1 0; min-width: 0; font-size: calc(17px * var(--k)); font-weight: 700; line-height: 1.35; }
.pz-it .pz-tx.hj { flex: 1 0 auto; font-family: var(--hanja); font-size: calc(22px * var(--k)); letter-spacing: .02em; word-break: keep-all; color: var(--ink); } 
.pz-gw { position: relative; margin-left: auto; display: inline-flex; flex: none; }
.pz-it .pz-eum { display: block; font-family: var(--sans); font-size: calc(13.5px * var(--k)); font-weight: 700; color: var(--muted); letter-spacing: 0; }
.pz-it .pz-got { display: none; flex: none; align-items: center; justify-content: center; font-family: var(--sans); font-weight: 900; color: #fff; background: #1d3f86; position: relative; }
.pz-it.L .pz-got { width: calc(40px * var(--k)); height: calc(40px * var(--k)); border-radius: 50%; font-size: calc(24px * var(--k)); }
.pz-it.R .pz-got { order: -1; min-width: 40px; height: 28px; border-radius: 8px; font-size: calc(15px * var(--k)); padding: 0 6px; }
.pz-it.on .pz-got { display: inline-flex; }
.pz-it.on { border-color: #1d3f86; background: #f3f6fc; }
.pz-it.sel, .pz-it.hov { border-color: #1d3f86; border-width: 4px; padding: 6px 8px; background: #e6eefc; box-shadow: 0 0 0 4px rgba(29, 63, 134, .18); }
.pz-it.sel::before { content: "고름"; position: absolute; right: 8px; top: -13px; font-family: var(--sans); font-size: 13px; font-weight: 800; color: #fff; background: #1d3f86; border-radius: 7px; padding: 1px 7px; z-index: 3; }
.pz-it:focus-visible { outline: 3px solid #1d3f86; outline-offset: 2px; }
.pz-ln { fill: none; stroke: #1d3f86; stroke-width: 4; stroke-linecap: round; }
.pz-ln.tmp { stroke-dasharray: 3 9; stroke-width: 4; }
.pz-ln.bad { stroke: #8f8676; stroke-width: 3; stroke-dasharray: 5 7; }
.pz-dot { fill: #1d3f86; }
.pz-dot.bad { fill: #8f8676; }
.pz-pen { fill: none; stroke: #d42a1e; stroke-width: 4.5; stroke-linecap: round; opacity: .9; }
.pz-pen.thin { stroke-width: 1.6; opacity: .55; }
.pz-left { margin-top: 8px; font-family: var(--sans); font-size: calc(15.5px * var(--k)); font-weight: 800; color: #9a5a00; }
.pz-left.done { color: #2f7a3e; }
.pz-left:empty { display: none; }
.pz-mk { position: absolute; left: 50%; top: 50%; width: calc(58px * var(--k)); height: calc(58px * var(--k)); transform: translate(-50%, -50%); pointer-events: none; display: none; } 
.pz-mk svg { width: 100%; height: 100%; overflow: visible; }
.pz.done .pz-it.L .pz-mk { display: block; }
.pz.done .pz-it { cursor: default; }
.pz-fix { display: none; order: 6; flex-basis: 100%; font-family: var(--pen); color: var(--red); font-size: calc(24px * var(--k)); line-height: 1.1; transform: rotate(-1deg); }
.pz.done .pz-it.bad .pz-fix { display: block; }
.pz.done .pz-it.L.bad .pz-got { background: #8f8676; }

.pz-demo { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.pz-demo i { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(29, 63, 134, .28); border: 3px solid #1d3f86; animation: pzDemo 3.2s ease-in-out 0.6s 3 both; }
@keyframes pzDemo {
  0% { transform: translate(var(--x0), var(--y0)) scale(1.3); opacity: 0; }
  12% { transform: translate(var(--x0), var(--y0)) scale(1.3); opacity: 1; }
  22% { transform: translate(var(--x0), var(--y0)) scale(.8); }
  32% { transform: translate(var(--x0), var(--y0)) scale(1); }
  70% { transform: translate(var(--x1), var(--y1)) scale(1); opacity: 1; }
  80% { transform: translate(var(--x1), var(--y1)) scale(.8); }
  100% { transform: translate(var(--x1), var(--y1)) scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pz-demo i { animation: none; transform: translate(var(--x0), var(--y0)); } }
@media (max-width: 560px) {
  .st-qpz .pz, .st-qpz .pz-how, .st-qpz .pz-left { margin-left: -40px; }
  .pz { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1.2fr); }
  .pz-it { padding: 7px 7px; gap: 4px 6px; }
  .pz-it.sel, .pz-it.hov { padding: 5px 5px; }
  .pz-it .pz-no { min-width: 26px; height: 26px; font-size: 14px; }
  .pz-it .pz-tx { font-size: calc(15.5px * var(--k)); order: 5; flex-basis: 100%; } 
  .pz-it .pz-tx.hj { font-size: calc(20px * var(--k)); order: 5; flex: 1 0 100%; }
  .pz-it.L .pz-got { width: calc(34px * var(--k)); height: calc(34px * var(--k)); font-size: calc(21px * var(--k)); }
}
.st-red { display: none; font-family: var(--pen); color: var(--red); font-size: calc(30px * var(--k)); line-height: 1.15; margin-top: 6px; transform: rotate(-1.5deg); }
.graded .st-q.wrong .st-red { display: block; }
.st-q.now { background: rgba(212, 42, 30, .06); box-shadow: inset 4px 0 0 var(--red); }
.st-flag { display: none; margin-top: 6px; font-family: var(--sans); font-size: calc(13.5px * var(--k)); font-weight: 700; color: var(--muted); text-decoration: underline; padding: 6px 0; }
.graded .st-flag { display: inline-block; }
.st-grade { width: 100%; min-height: 68px; border-radius: 18px; background: #c8281e; color: #fff; font-size: calc(23px * var(--k)); font-weight: 700; box-shadow: 0 6px 16px rgba(212, 42, 30, .3); }
.st-grade small { display: block; font-family: var(--sans); font-size: calc(14px * var(--k)); font-weight: 700; opacity: .92; }
.graded .st-grade, .st-ppr.graded ~ .st-grade { display: none; }
.st-grade.wait { opacity: .45; box-shadow: none; } 
.st-after { display: none; flex-direction: column; gap: 10px; }
.graded ~ .st-after, .st-after.on { display: flex; }
.st-tchip { flex: none; height: 46px; padding: 0 12px 0 4px; border-radius: 24px; background: #fff; border: 1.5px solid var(--line); display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: calc(14px * var(--k)); font-weight: 800; color: var(--gold-deep); }
.st-tchip img, .st-tchip .t { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); }
.st-tchip img.dz { object-fit: contain; background: #fff3d6; }


.st-ex { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 640px); z-index: 8; background: #fffdf7; border-top: 3px solid var(--red); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px rgba(60, 40, 10, .25); padding: 12px 16px max(14px, env(safe-area-inset-bottom)); }
.st-ex.hidden { display: none; }
.st-ex .row { display: flex; align-items: center; gap: 10px; }
.st-ex .row img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold); flex: none; }
.st-ex .row img.dz { object-fit: contain; background: #fff3d6; }
.st-ex .row b { font-size: calc(19px * var(--k)); }
.st-ex .qn { font-family: var(--sans); font-size: 14px; font-weight: 800; color: var(--red); display: block; }
.st-ex .x { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; color: var(--muted); flex: none; }
.st-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.st-eq i { width: 4px; background: var(--red); border-radius: 2px; animation: stEq .9s ease-in-out infinite; }
.st-eq i:nth-child(2) { animation-delay: .15s; } .st-eq i:nth-child(3) { animation-delay: .3s; } .st-eq i:nth-child(4) { animation-delay: .45s; }
@keyframes stEq { 0%, 100% { height: 5px; } 50% { height: 22px; } }
.st-ex.quiet .st-eq { display: none; }
.st-ex .cap { margin-top: 8px; font-size: calc(19px * var(--k)); line-height: 1.5; max-height: 36vh; overflow-y: auto; }
.st-ex .part + .part { margin-top: 10px; }
.st-ex .ctrl { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.st-ex .ctrl button { min-height: 52px; border-radius: 14px; font-size: calc(17px * var(--k)); font-weight: 700; border: 1.5px solid var(--line); background: #fff; color: var(--gold-deep); padding: 0 12px; }
.st-ex .ctrl .next { flex: 1; background: var(--gold-grad); color: #fff; border-color: #74520f; }
.st-ex .ctrl .mute { font-family: var(--sans); font-size: calc(15px * var(--k)); }
.st-aiplay { display: none; margin-top: 8px; font-family: var(--sans); font-size: calc(15px * var(--k)); font-weight: 800; color: #fff; background: var(--ai-tag); border-radius: 8px; padding: 4px 10px; }
.st-ex.ai .st-aiplay { display: inline-block; }


.st-modal { position: absolute; inset: 0; z-index: 12; background: rgba(36, 26, 8, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.st-modal.hidden { display: none; }
.st-modal .box { width: 100%; max-width: 420px; max-height: 92vh; overflow-y: auto; background: #fffdf7; border-radius: 22px; border: 1.5px solid var(--line); padding: 18px 16px 16px; }
.st-modal h2 { font-size: calc(23px * var(--k)); font-weight: 700; text-align: center; line-height: 1.35; }
.st-modal .ai-say { margin: 8px 0 12px; text-align: center; font-family: var(--sans); font-size: calc(16px * var(--k)); font-weight: 800; color: #6b4c10; background: #fff3d6; border-radius: 10px; padding: 8px; }
.st-teachers { display: flex; flex-direction: column; gap: 10px; }
.st-teacher { display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 8px 14px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); text-align: left; width: 100%; }
.st-teacher img, .st-teacher .txt { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--soft); flex: none; }
.st-teacher img.dz { object-fit: contain; background: #fff3d6; }
.st-teacher .txt { display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; color: var(--gold-deep); }
.st-teacher b { display: block; font-size: calc(21px * var(--k)); }
.st-teacher small { display: block; font-family: var(--sans); font-size: calc(14.5px * var(--k)); font-weight: 600; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.st-teacher.on { border-color: #74520f; background: var(--soft); box-shadow: 0 0 0 2px #a3761f inset; }
.st-teacher[disabled] { opacity: .5; }
.st-modal .later { margin-top: 10px; text-align: center; font-family: var(--sans); font-size: calc(14px * var(--k)); font-weight: 700; color: var(--muted); }
.st-whys { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }


.st-streak { text-align: center; }
.st-streak b { font-size: calc(42px * var(--k)); font-weight: 900; color: #b3261e; }
.st-streak span { display: block; font-size: calc(19px * var(--k)); font-weight: 700; color: var(--ink-2); }
.st-month { font-weight: 700; font-size: calc(22px * var(--k)); color: var(--gold-deep); text-align: center; margin-bottom: 8px; }
.st-dow, .st-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.st-dow span { text-align: center; font-family: var(--sans); font-size: 15px; font-weight: 800; color: var(--muted); }
.st-dow span:first-child { color: #b3261e; }
.st-grid span { position: relative; aspect-ratio: 1; border-radius: 12px; background: #fff; border: 1.5px solid #e6d5aa; display: flex; align-items: flex-start; justify-content: flex-start; padding: 3px 5px; font-family: var(--sans); font-size: 14px; font-weight: 800; color: var(--muted); }
.st-grid span.blank { background: transparent; border: 0; }
.st-grid span.st::after { content: ""; position: absolute; inset: 5px 3px 3px 5px; border-radius: 50%; border: 2.5px solid #c8281e; background: rgba(200, 40, 30, .08); transform: rotate(-12deg); }
.st-grid span.st i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--serif); font-weight: 700; font-size: 16px; color: #c8281e; transform: rotate(-12deg); z-index: 1; }
.st-grid span.today { border: 2.5px solid #74520f; background: var(--soft); }
.st-bigstamp { position: relative; width: 190px; height: 190px; margin: 4px auto 0; }
.st-bigstamp .ring { position: absolute; inset: 0; border-radius: 50%; border: 7px solid #c8281e; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px #c8281e; transform: rotate(-10deg); }
.st-bigstamp .txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #c8281e; transform: rotate(-10deg); }
.st-bigstamp .txt b { font-weight: 700; font-size: 36px; line-height: 1.1; text-align: center; }
.st-bigstamp .txt small { font-family: var(--sans); font-size: 17px; font-weight: 800; letter-spacing: .2em; margin-top: 4px; }
.st-bigstamp.hit { animation: stThump .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stThump { 0% { transform: scale(1.8); opacity: 0; } 60% { transform: scale(.94); opacity: 1; } 100% { transform: scale(1); } }
.st-praise { display: flex; gap: 12px; align-items: flex-start; }
.st-praise > img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold); }
.st-bubble { position: relative; flex: 1; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.st-bubble p { font-size: calc(22px * var(--k)); line-height: 1.4; }
.st-tag { display: inline-block; font-family: var(--sans); font-size: calc(14px * var(--k)); font-weight: 800; color: #fff; background: #8a6417; border-radius: 6px; padding: 2px 8px; margin-top: 6px; }
.st-tag.real { background: #b3261e; }
.st-from { margin-top: 4px; font-family: var(--sans); font-size: calc(13.5px * var(--k)); font-weight: 600; color: var(--muted); line-height: 1.35; }


.st-hj4 { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; row-gap: 2px; }
.st-hj4 .h { font-family: var(--hanja); font-weight: 700; font-size: calc(52px * var(--k)); line-height: 1.15; }
.st-hj4 .e { font-size: calc(22px * var(--k)); font-weight: 700; color: #9a2a1e; }
.st-hj4 .u { font-family: var(--sans); font-size: calc(15px * var(--k)); font-weight: 600; color: var(--ink-2); }
.st-mean { text-align: center; font-size: calc(20px * var(--k)); font-weight: 700; }
.st-lv { display: inline-block; font-family: var(--sans); font-size: calc(14px * var(--k)); font-weight: 800; padding: 2px 10px; border-radius: 12px; background: var(--gold-deep); color: #fff; }
.st-toast { position: absolute; left: 50%; top: calc(var(--bar) + 54px); transform: translate(-50%, -8px); z-index: 30; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 14px; background: #2a2217; color: #fff8e6; font-family: var(--sans); font-size: calc(16px * var(--k)); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center; }
.st-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .st-glow, .st-bigstamp.hit, .st-eq i { animation: none; } }
@media (max-width: 420px) {
  .st-paper .st-head { padding-left: 14px; padding-top: calc(var(--bar) + 54px); flex-wrap: wrap; }
  .st-head .st-crumb { order: 3; flex-basis: 100%; }
  .st-head .st-tchip { margin-left: auto; }
  .st-lessons { grid-template-columns: 1fr; }
}
.st-head { background: #fbf8f0; box-shadow: 0 6px 12px -8px rgba(60, 40, 10, .25); }
.st-ex .row > span:not(.st-eq) { flex: 1; min-width: 0; }
@media (max-width: 480px) { .st-ex .cap { max-height: 28vh; } .st-ex .ctrl button { min-height: 48px; } .st-ex .ctrl .next { flex-basis: 100%; } }

@media (orientation: landscape) and (max-height: 559px) {
  .st-ex { left: auto; right: 8px; transform: none; width: min(calc(100% - 190px), 640px); padding-top: 8px; }
  .st-ex .row img { width: 40px; height: 40px; }
  .st-ex .cap { max-height: 22vh; margin-top: 4px; }
  .st-ex .ctrl { margin-top: 6px; }
  .st-ex .ctrl button { min-height: 44px; }
  .st-aiplay { margin-top: 4px; }
}
