/* =====================================================================
 * Mirai Voca — 학습 화면(/study.html) 전용 스타일 · 디자인 「06 Sumi Reel · 먹의 상영관」(2026-10-20 채택)
 * 머리(h1)·선택 화면(studyapp.js 마크업) + 학습 스테이지(modal.js·study.js — 플래시카드·퀴즈·목록).
 * 토큰·바탕·머리글·바닥글은 /style.css(사이트 정본). 스테이지 토큰은 .v2-stage 안에 따로 있다.
 * 원본 시안: 10080_Design/Concept/153_MiraiVoca_2026-10-18/06_sumi-reel/study/ (§4·§5·§7~)
 * ===================================================================== */

:root { --labcol: clamp(168px, 17vw, 232px); }   /* 선택 화면 — 왼쪽 줄 이름 칸 */

/* ── 4. 머리 — h1(qs.title) · qs.sub ─────────────────────────────────── */
.page { padding-bottom: clamp(56px, 9vh, 112px); }

.page-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
    padding-top: clamp(30px, 5.4vh, 64px);
    padding-bottom: clamp(26px, 4.4vh, 48px);
}
.eyebrow {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    font-family: var(--f-mono);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--usu);
}
.eyebrow > .mono { color: var(--ink); }
.eyebrow__range { display: inline-flex; flex-wrap: wrap; gap: 0 8px; text-transform: none; }
.eyebrow__sep { color: var(--line); }

.page-head h1 {
    grid-column: 1 / 9;
    margin-top: clamp(14px, 2vh, 20px);
    max-width: 13em;
    font-size: clamp(38px, 5.6vw, 84px);
    font-weight: 300;
    line-height: 1.03;
    letter-spacing: -0.042em;
    text-wrap: balance;
    hyphens: auto;
}
html:lang(ko) .page-head h1 { font-size: clamp(34px, 5vw, 74px); line-height: 1.14; letter-spacing: -0.04em; }
html:lang(ja) .page-head h1, html:lang(zh) .page-head h1 { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.2; letter-spacing: -0.02em; }
html:lang(ar) .page-head h1 { line-height: 1.3; }
.page-head .b2 {
    grid-column: 9 / 13;
    max-width: 30em;
    padding-bottom: 8px;
    font-size: clamp(14px, 1.08vw, 16px);
    line-height: 1.65;
    color: var(--usu);
    text-wrap: pretty;
}

/* ── 5. 선택 화면 — studyapp.js 의 마크업 그대로, 헤어라인 사양서처럼 다시 칠한다 ──
   줄 이름은 study-chrome.js 가 번역 키(home.features.title·common.level·common.range·common.sort)를
   CSS 변수 문자열로 넘겨 ::before 로만 단다 — 마크업에는 손대지 않는다. */
.v2-select {
    max-width: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ink);
}
.v2-select > * {
    position: relative;
    margin: 0;
    padding-inline-start: var(--labcol);
}
.v2-select > :is(.v2-cats, .v2-levels, .v2-days-wrap, .v2-order)::before {
    position: absolute;
    top: 24px;
    inset-inline-start: 0;
    max-width: calc(var(--labcol) - 20px);
    font-family: var(--f-mono);
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--usu);
    white-space: pre-wrap;
}
html:is(:lang(ko), :lang(ja), :lang(zh), :lang(ar)) .v2-select > *::before { font-family: var(--f-sans); font-size: 12px; letter-spacing: .02em; }
.v2-cats::before { content: "01\2003" var(--v2l-cats, "Learning Content"); }
.v2-levels::before { content: "02\2003" var(--v2l-level, "Level"); }
.v2-days-wrap::before { content: "03\2003" var(--v2l-range, "Range"); }
.v2-order::before { content: "04\2003" var(--v2l-sort, "Sort"); }

/* 01 과정 4개 — 헤어라인 칸, 고른 칸은 반전(먹 바탕에 흰 글자) */
.v2-cats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding-block: 0;
    border-bottom: 1px solid var(--line);
}
.v2-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    min-height: 148px;
    padding: 20px 20px 18px;
    background: var(--paper);
    border: 0;
    border-inline-start: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    text-align: start;
    color: var(--ink);
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.v2-cat:last-child { border-inline-end: 1px solid var(--line); }
.v2-cat:hover { transform: none; border-color: var(--line); }
@media (hover: hover) {
    .v2-cat:hover .v2-cat-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
}
.v2-cat-icon { display: none; }
.v2-cat-name {
    font-size: clamp(26px, 2.5vw, 38px);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.032em;
    color: inherit;
}
html:is(:lang(ko), :lang(ja), :lang(zh)) .v2-cat-name { letter-spacing: -0.02em; }
.v2-cat-sub { font-family: var(--f-mono); font-size: 11px; line-height: 1.4; letter-spacing: .04em; color: var(--usu); }
html:lang(ar) .v2-cat-sub { font-family: var(--f-sans); }
.v2-cat.active { background: var(--ink); color: var(--paper); box-shadow: none; }
.v2-cat.active .v2-cat-name { color: var(--paper); }
.v2-cat.active .v2-cat-sub { color: var(--paper); opacity: .72; }
.v2-cat:focus-visible { outline-offset: -2px; z-index: 1; }

/* 02 레벨 · 03 Day — 모노 칩, 고른 칩은 반전 */
.v2-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
}
.v2-levels { padding-block: 18px; border-bottom: 1px solid var(--line); }
.v2-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 56px;
    height: 40px;
    padding: 0 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0;
    font-family: var(--f-mono);
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: .02em;
    color: var(--ink);
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, color .15s;
}
@media (hover: hover) {
    .v2-chip:hover { border-color: var(--ink); color: var(--ink); }
}
.v2-chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.v2-days-wrap { max-width: none; margin: 0; padding-block: 18px; border-bottom: 1px solid var(--line); }
.v2-days {
    flex-wrap: wrap;
    overflow: visible;
    padding: 0;
    -webkit-mask-image: none;
    mask-image: none;
}
.v2-day { min-width: 98px; justify-content: space-between; }
.v2-day .v2-day-n { margin: 0; font-size: 11px; color: var(--usu); opacity: 1; }
.v2-day.active .v2-day-n { color: var(--paper); opacity: .7; }
.v2-days-loading {
    display: inline-block;
    padding: 11px 0;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--usu);
}

/* 04 정렬 — 글자 둘, 고른 쪽 밑줄 */
.v2-order {
    display: flex;
    justify-content: flex-start;
    gap: 26px;
    margin: 0;
    padding-block: 20px;
    border-bottom: 1px solid var(--line);
}
.v2-order-btn {
    padding: 4px 0 5px;
    background: none;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--usu);
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.v2-order-btn:hover { color: var(--ink); }
.v2-order-btn.active { color: var(--ink); background: none; border-bottom-color: var(--ink); }

/* 학습 방법 3개 — 헤어라인 한 줄, 플래시카드만 먹으로 채운다(01 의 CTA) */
.v2-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    max-width: none;
    margin: 0;
    padding-top: 28px;
}
.v2-action {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 66px;
    padding: 16px 22px;
    background: var(--paper);
    border: 1px solid var(--ink);
    border-radius: 0;
    box-shadow: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.006em;
    color: var(--ink);
    text-align: start;
    cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease);
}
.v2-action + .v2-action { border-inline-start-width: 0; }
.v2-action::after {
    content: "→";
    font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 300;
    transition: transform .25s var(--ease);
}
[dir="rtl"] .v2-action::after { transform: scaleX(-1); }
.v2-action-icon { display: none; }
@media (hover: hover) {
    .v2-action:hover { transform: none; box-shadow: none; background: var(--ink); color: var(--paper); border-color: var(--ink); }
    .v2-action:hover::after { transform: translateX(4px); }
    [dir="rtl"] .v2-action:hover::after { transform: scaleX(-1) translateX(4px); }
}
.v2-action-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: hover) {
    .v2-action-primary:hover { background: var(--paper); color: var(--ink); box-shadow: none; border-color: var(--ink); }
}
.v2-action:focus-visible { outline-offset: 4px; }


/* =====================================================================
   7. 학습 스테이지 — 「먹의 상영관」
   순백(다크는 Night) 위에 스크린이 주인. 위 띠(← 돌아가기 · 세트 이름 · 모드 탭) → 릴 선택 → 스크린.
   ===================================================================== */
body.v2-stage-open { overflow: hidden; }

.v2-stage {
    /* 스테이지 토큰 — 페이지 토큰과 이름이 겹치지 않게 스테이지 안에서만 */
    --st-paper: #FFFFFF;
    --st-ink: #111111;
    --st-line: #E5E5E5;
    --st-usu: #6E6E6E;
    --st-ng: #C8372D;                      /* 기능색 — 퀴즈 오답(종이 위) */
    --scr: #111111;                        /* 화면 면 — 테마와 상관없이 늘 어둡다 */
    --scr-edge: #111111;
    --scr-ink: #F2F2F2;                    /* 화면 안 글자 */
    --scr-dim: #8C8C8C;                    /* 화면 안 보조 글 */
    --scr-line: rgba(255, 255, 255, .14);  /* 화면 안 헤어라인 */
    --scr-ghost: rgba(255, 255, 255, .05); /* 거대한 배경 글자(톤온톤) */
    --scr-ng: #E5604F;                     /* 화면(늘 어둡다) 위의 오답 표시 */

    --st-sans: "Inter", "Pretendard Variable", Pretendard, system-ui, sans-serif;
    --st-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
    --st-ko: "Pretendard Variable", Pretendard, system-ui, sans-serif;
    --st-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* 스크린 크기 — 화면 높이 안에 들어오는 가장 큰 2.39:1(위아래 띠·릴 선택·보기까지 한 화면에) */
    --st-pad: clamp(16px, 4vw, 56px);
    --st-bar: 56px;
    --st-set: 46px;
    --band-t: 38px;
    --band-b: 56px;
    --tracks-h: 226px;                     /* 퀴즈 보기 4줄 + 틈 */
    --ratio: 2.39;
    --min-w: 560px;
    --max-w: 1320px;
    --vh: 100vh;
    --avail-w: calc(100vw - 2 * var(--st-pad));
    --fc-res: calc(var(--st-bar) + var(--st-set) + var(--band-t) + var(--band-b) + 40px);
    --qz-res: calc(var(--fc-res) + var(--tracks-h));
    --fc-extra: 120px;                     /* 플래시카드 — 위 눈금 띠 + 아래 둘째 줄 + 큰 재생 단추 */
    --fc-w: min(var(--avail-w), var(--max-w), max(min(var(--avail-w), var(--min-w)), calc((var(--vh) - var(--fc-res) - var(--fc-extra)) * var(--ratio))));
    --qz-w: min(var(--avail-w), var(--max-w), max(min(var(--avail-w), var(--min-w)), calc((var(--vh) - var(--qz-res)) * var(--ratio))));
    --screen-w: var(--fc-w);

    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    background: var(--st-paper);
    color: var(--st-ink);
    font-family: var(--st-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: light;
}
@supports (height: 100dvh) { .v2-stage { --vh: 100dvh; } }
.v2-stage.is-quiz { --screen-w: var(--qz-w); }
/* 엔드 크레딧 — 보기 줄이 사라지니 플래시카드와 같은 폭(릴 선택 줄도 함께) */
.v2-stage.is-quiz:has(.sr-quiz.is-done) { --screen-w: var(--fc-w); }

html[data-theme="dark"] .v2-stage {
    --st-paper: #0D0D0D;
    --st-ink: #EDEDED;
    --st-line: #2A2A2A;
    --st-usu: #9A9A9A;
    --st-ng: #E5604F;
    --scr: #000000;
    --scr-edge: #2A2A2A;
    color-scheme: dark;
}
html:lang(ja) .v2-stage { --st-sans: "Inter", "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif; }
html:lang(zh) .v2-stage { --st-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
html:lang(ko) .v2-stage { word-break: keep-all; }

.v2-stage ::selection { background: var(--st-ink); color: var(--st-paper); }
.v2-stage :focus-visible { outline: 2px solid var(--st-ink); outline-offset: 3px; }
:where(.v2-stage) :where(button, select) { font: inherit; color: inherit; }

/* 위 띠 — ← 돌아가기 · 세트 이름 · 모드 탭(밑줄) */
.v2-stagebar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--st-bar);
    padding: 0 var(--st-pad);
    background: var(--st-paper);
    border-bottom: 1px solid var(--st-line);
}
.v2-stage-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: none;
    height: 40px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: 14px;
    line-height: 1;
    color: var(--st-ink);
    cursor: pointer;
}
.v2-back-arrow { display: inline-block; font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif; font-weight: 300; font-size: 17px; transition: transform .25s var(--ease); }
[dir="rtl"] .v2-back-arrow { transform: scaleX(-1); }
.v2-stage-back:hover .v2-back-arrow { transform: translateX(-3px); }
[dir="rtl"] .v2-stage-back:hover .v2-back-arrow { transform: scaleX(-1) translateX(-3px); }
.v2-back-label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .34em; text-decoration-color: var(--st-line); transition: text-decoration-color .2s; }
.v2-stage-back:hover .v2-back-label { text-decoration-color: var(--st-ink); }
.v2-stage-title {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline-start: 20px;
    border-inline-start: 1px solid var(--st-line);
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.005em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v2-stage-modes {
    display: flex;
    align-items: stretch;
    gap: 26px;
    flex: none;
    align-self: stretch;
    margin-inline-start: auto;
    padding: 0;
    background: none;
    border-radius: 0;
}
.v2-stage-modes button {
    position: relative;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    font-size: 14px;
    line-height: 1;
    color: var(--st-usu);
    cursor: pointer;
    transition: color .2s;
}
.v2-stage-modes button::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 1px;
    background: transparent;
    transition: background-color .2s;
}
.v2-stage-modes button:hover { color: var(--st-ink); opacity: 1; }
.v2-stage-modes button.active { color: var(--st-ink); background: none; box-shadow: none; }
.v2-stage-modes button.active::after { height: 2px; background: var(--st-ink); }
.v2-stage-modes button:focus-visible { outline-offset: -2px; }

/* 릴 선택 — 스크린 위 한 줄(레벨 · Day, 세 모드 모두). 불러오는 동안에도 자리를 지켜 화면이 튀지 않게 */
.v2-stageset {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 26px;
    width: var(--screen-w);
    max-width: calc(100% - 2 * var(--st-pad));
    min-height: var(--st-set);
    margin: auto auto 0;
    padding: 4px 0;
    justify-content: flex-start;
}
.v2-stage .v2-stageset[hidden] { display: flex !important; visibility: hidden; }
.v2-set-reel {
    font-family: var(--st-mono);
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--st-usu);
}
.v2-set-item { position: relative; display: inline-flex; align-items: baseline; gap: 10px; }
.v2-set-lab, .v2-set-ico {
    font-family: var(--st-mono);
    font-size: 11px;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--st-usu);
}
html:is(:lang(ko), :lang(ja), :lang(zh), :lang(ar)) :is(.v2-set-lab, .v2-set-ico) { font-family: var(--st-sans); font-size: 12px; letter-spacing: 0; }
.v2-stageset select {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 6px 22px 7px 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--st-line);
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--st-ink);
    cursor: pointer;
}
[dir="rtl"] .v2-stageset select { padding: 6px 0 7px 22px; }
.v2-stageset select:hover { border-bottom-color: var(--st-ink); }
.v2-stageset select option { color: #111111; background: #FFFFFF; }
.v2-set-caret {
    position: absolute;
    inset-inline-end: 4px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -1px;
    border-inline-end: 1px solid var(--st-ink);
    border-bottom: 1px solid var(--st-ink);
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}
.v2-set-count {
    margin-inline-start: auto;
    font-size: 12px;
    color: var(--st-usu);
}
.v2-set-n { font-family: var(--st-mono); color: var(--st-ink); }

/* 몸 — 데스크톱은 릴 선택 + 스크린 한 덩어리를 세로 가운데에 */
.v2-stagebody {
    flex: 0 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: auto;
    padding: 6px var(--st-pad) 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.v2-mount { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: none; margin: 0; }
.v2-stage-loading { padding: 0; text-align: center; color: var(--scr-ink); font-size: 11px; }

/* 목록은 위에서부터 흐르는 대본 — 몸 전체가 스크롤 */
.v2-stage.is-list .v2-stageset { width: min(var(--avail-w), 1120px); margin-top: 8px; }
.v2-stage.is-list .v2-stagebody { flex: 1 1 auto; margin-bottom: 0; }

/* =====================================================================
   8. 스크린 공용 — 위 띠(타임코드 · 장면 메타) / 화면 / 아래 띠(조작 · 눈금)
   ===================================================================== */
.sr-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    width: var(--screen-w);
    max-width: 100%;
    background: var(--scr);
    color: var(--scr-ink);
    border: 1px solid var(--scr-edge);
}
.sr-screen ::selection { background: var(--scr-ink); color: var(--scr); }
.sr-screen :focus-visible { outline-color: var(--scr-ink); }

.sr-band {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-inline: 16px;
    font-family: var(--st-mono);
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--scr-dim);
}
.sr-band--top { height: var(--band-t); border-bottom: 1px solid var(--scr-line); }
.sr-band--bot { min-height: var(--band-b); gap: 18px; padding: 0 14px 0 10px; border-top: 1px solid var(--scr-line); }

/* 플래시카드 — 진행 눈금은 화면 위 띠, 아래 띠는 두 줄(이전·재생·다음 / 카드 속도·발음 속도) */
.sr-band--prog { height: 26px; border-bottom: 1px solid var(--scr-line); }
.sr-band--prog .sr-ticks { flex: 1 1 auto; height: 12px; }
.sr-band--rows { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
.sr-brow { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 8px 14px; }
.sr-brow + .sr-brow { border-top: 1px solid var(--scr-line); }
.sr-brow--ctrls .sr-ctrls { gap: 12px; }
/* 이전·재생·다음 — 크게(2026-10-19 사용자 요청), 재생이 가장 크다 */
.sr-brow--ctrls .sr-btn { width: 56px; height: 56px; }
.sr-brow--ctrls .sr-btn svg { width: 26px; height: 26px; stroke-width: 1.6; }
.sr-brow--ctrls .sr-btn--play { width: 68px; height: 68px; }
.sr-brow--ctrls .sr-btn--play svg { width: 30px; height: 30px; }

/* 타임코드 — 재생 중에는 흰 네모, 멈추면 두 줄 */
.sr-tc {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
    letter-spacing: .14em;
}
.sr-tc__rec { width: 6px; height: 6px; background: var(--scr-ink); }
.sr-tc__pause { display: none; gap: 2px; }
.sr-tc__pause i { width: 2px; height: 8px; background: var(--scr-dim); }
.sr-screen:not(.is-playing) .sr-tc__rec { display: none; }
.sr-screen:not(.is-playing) .sr-tc__pause { display: inline-flex; }
.sr-screen[data-mode="quiz"][data-state="ask"] .sr-tc__rec { display: block; }
.sr-screen[data-mode="quiz"][data-state="ask"] .sr-tc__pause { display: none; }
.sr-tc__now { color: var(--scr-ink); font-variant-numeric: tabular-nums; }
.sr-tc__total { color: var(--scr-dim); }

.sr-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: isolate;
}
.sr-meta > span + span::before { content: "·"; margin-inline: 10px; color: var(--scr-dim); }
.sr-meta__pos { color: var(--scr-ink); }
.sr-meta__deck { overflow: hidden; text-overflow: ellipsis; }

/* 화면 — 데스크톱 2.39:1 */
.sr-pic {
    position: relative;
    aspect-ratio: var(--ratio) / 1;
    overflow: hidden;
    container-type: size;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* 배경 — 그 단어의 거대한 톤온톤 글자, 화면 밖으로 잘리게(05 의 필름 스틸) */
.sr-shots, .sr-shot { position: absolute; inset: 0; pointer-events: none; }
.sr-shot { opacity: 0; transition: opacity .6s ease; }
.sr-shot.is-on { opacity: 1; }
.sr-glyph {
    position: absolute;
    left: var(--gx, 50%);
    top: var(--gy, 50%);
    font-family: var(--st-ja);
    font-weight: 500;
    font-size: calc(var(--gs, 100) * 1vmin);
    font-size: calc(var(--gs, 100) * 1cqmin);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--scr-ghost);
    white-space: nowrap;
    transform: translate(-50%, -50%);
}
.sr-glyph.is-v { writing-mode: vertical-rl; letter-spacing: 0; }
.sr-glyph.is-push { animation: sr-push var(--card-ms, 5500ms) linear forwards; }
@keyframes sr-push {
    from { transform: translate(-50%, -50%) scale(1); }
    to { transform: translate(-50%, -50%) scale(1.05); }
}
.sr-screen:not(.is-playing) .sr-glyph { animation-play-state: paused; }

/* 자막 — 화면 아래 1/3, 가운데. 읽기 → 표기 → 뜻 세 줄 */
.sr-subs {
    position: absolute;
    z-index: 1;
    inset-inline: 6%;
    bottom: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: none;
    transition-property: opacity;
    transition-timing-function: ease;
}
.sr-subs.is-enter, .sr-subs.is-dim { opacity: 0; }
.sr-read {
    min-height: 1.4em;
    font-family: var(--st-ja);
    font-weight: 300;
    font-size: clamp(20px, 2.8vw, 42px);
    font-size: clamp(18px, min(2.8vw, 9.5cqh), 42px);   /* 2026-10-19 사용자 요청으로 키움(옛 12~19px) */
    line-height: 1.4;
    letter-spacing: .2em;
    color: var(--scr-ink);
}
.sr-subs.no-read .sr-read { visibility: hidden; }
.sr-main {
    margin-top: .08em;
    font-family: var(--st-ja);
    font-weight: 500;
    font-size: clamp(72px, 14vw, 190px);
    font-size: min(clamp(72px, 14vw, 190px), 36cqh);   /* 2026-10-19 키움(옛 40~88px) */
    line-height: 1.14;
    letter-spacing: .04em;
    color: var(--scr-ink);
}
.sr-subs.is-long .sr-main { font-size: min(clamp(52px, 10vw, 140px), 27cqh); letter-spacing: .02em; }
.sr-mean {
    min-height: 1.4em;
    max-width: 34ch;
    margin-top: .5em;
    font-family: var(--st-sans);
    font-weight: 300;
    font-size: clamp(24px, 3.4vw, 50px);
    font-size: clamp(22px, min(3.4vw, 11.5cqh), 50px);   /* 2026-10-19 키움(옛 14~24px) */
    line-height: 1.4;
    letter-spacing: -0.005em;
    color: var(--scr-ink);
    text-wrap: balance;
}
.sr-mean:lang(ko), .sr-mean__txt:lang(ko) { font-family: var(--st-ko); }

/* 귀퉁이 재단선 · 큐 마크 · 누름 표시(장식) */
.sr-frame { position: absolute; inset: 5.5cqh; pointer-events: none; }
.sr-frame i { position: absolute; width: 16px; height: 16px; border: 0 solid var(--scr-line); }
.sr-frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.sr-frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.sr-frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.sr-frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.sr-cue {
    position: absolute;
    top: 9%;
    right: 4.6%;
    width: 9px;
    height: 9px;
    background: var(--scr-ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity .1s linear;
}
.sr-cue.is-on { opacity: .85; }
.sr-flash {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 70px;
    height: 70px;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}
.sr-flash i { display: none; width: 5px; height: 30px; background: var(--scr-ink); }
.sr-flash b { display: none; width: 0; height: 0; border-style: solid; border-width: 16px 0 16px 27px; border-color: transparent transparent transparent var(--scr-ink); margin-left: 6px; }
.sr-flash.is-pause i { display: block; }
.sr-flash.is-play b { display: block; }
.sr-flash.go { animation: sr-flash .75s ease forwards; }
@keyframes sr-flash {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
    25% { opacity: .9; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.12); }
}
@keyframes sr-fade { from { opacity: 0; } to { opacity: 1; } }

/* 아래 띠 — 1px 선 직각 단추 · 헤어라인 눈금 · 모노 세그먼트 */
.sr-ctrls { display: flex; align-items: center; gap: 6px; flex: none; }
.sr-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: none;
    padding: 0;
    border: 1px solid var(--scr-line);
    border-radius: 0;
    background: transparent;
    color: var(--scr-ink);
    cursor: pointer;
    transition: border-color .2s, background-color .2s, color .2s;
}
@media (hover: hover) {
    .sr-btn:hover { border-color: var(--scr-ink); }
}
.sr-btn:active { background: var(--scr-ink); color: var(--scr); }
.sr-btn:focus-visible { outline-offset: 2px; }
.sr-btn[disabled] { opacity: .32; cursor: default; border-color: var(--scr-line); background: transparent; color: var(--scr-ink); }
.sr-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.sr-btn--play .icon-play { fill: currentColor; stroke: none; }
.sr-btn--play .icon-pause { display: none; }
.sr-btn--play[aria-pressed="true"] .icon-play { display: none; }
.sr-btn--play[aria-pressed="true"] .icon-pause { display: block; }
.sr-btn--sound .i-off { display: none; }
.sr-btn--sound.is-muted .i-on { display: none; }
.sr-btn--sound.is-muted .i-off { display: block; }
[dir="rtl"] :is([data-fc-prev], [data-fc-next]) svg { transform: scaleX(-1); }

/* 눈금 — 장수만큼(많으면 묶음). 지난 칸 = 흰 채움 · 지금 칸 = 흰 테두리 · 퀴즈 틀림 = 빨강 짧은 선 */
.sr-ticks {
    flex: 1 1 auto;
    min-width: 72px;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sr-ticks li { position: relative; flex: 1 1 0; height: 8px; border: 1px solid var(--scr-line); }
.sr-ticks li.done, .sr-ticks li.ok { background: var(--scr-ink); border-color: var(--scr-ink); }
.sr-ticks li.now { border-color: var(--scr-ink); }
.sr-ticks li.ng { border-color: var(--scr-line); }
.sr-ticks li.ng::before { content: ""; position: absolute; inset-inline: 18%; top: 50%; height: 2px; margin-top: -1px; background: var(--scr-ng); }

/* 속도 — 작은 모노 세그먼트(카드 속도 · 발음 켜기/끄기 + 발음 속도) */
.sr-seg { display: flex; align-items: center; gap: 6px; flex: none; }
.sr-seg__lab { display: grid; place-items: center; width: 22px; height: 36px; color: var(--scr-dim); }
.sr-seg__lab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; }
.sr-seg__grp { display: flex; border: 1px solid var(--scr-line); transition: opacity .2s; }
.sr-seg__btn {
    height: 34px;
    min-width: 40px;
    padding: 0 8px;
    background: transparent;
    border: 0;
    border-inline-start: 1px solid var(--scr-line);
    border-radius: 0;
    font-family: var(--st-mono);
    font-size: 11px;
    line-height: 1;
    letter-spacing: .02em;
    color: var(--scr-dim);
    cursor: pointer;
    transition: color .15s, background-color .15s;
}
.sr-seg__btn:first-child { border-inline-start: 0; }
@media (hover: hover) {
    .sr-seg__btn:hover { color: var(--scr-ink); }
}
.sr-seg__btn.active { background: var(--scr-ink); color: var(--scr); }
.sr-seg__btn:focus-visible { outline-offset: -3px; }
.sr-seg__grp.muted { opacity: .38; }

/* 모노 글자 단추(결과 보기) */
.sr-tlink {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    padding: 10px 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-family: var(--st-mono);
    font-size: 11.5px;
    line-height: 1.2;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--scr-ink);
    white-space: nowrap;
    cursor: pointer;
}
.sr-tlink__t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--scr-dim); transition: text-decoration-color .2s; }
.sr-tlink:hover .sr-tlink__t { text-decoration-color: var(--scr-ink); }
.sr-arrow { display: inline-block; font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif; font-weight: 300; font-size: 14px; letter-spacing: 0; transition: transform .25s var(--ease); }
[dir="rtl"] .sr-arrow { transform: scaleX(-1); }
:is(.sr-tlink, .sr-end__btn):hover .sr-arrow { transform: translateX(4px); }
[dir="rtl"] :is(.sr-tlink, .sr-end__btn):hover .sr-arrow { transform: scaleX(-1) translateX(4px); }
html:is(:lang(ko), :lang(ja), :lang(zh)) .sr-tlink { font-family: var(--st-sans); font-size: 13px; letter-spacing: .02em; }
html:lang(ko) .sr-tlink { font-family: var(--st-ko); }
html:lang(ar) .sr-tlink { font-family: var(--st-sans); font-size: 13px; }

/* 「終」 — 엔드카드(플래시카드)·엔드 크레딧(퀴즈) 공용 */
.sr-end__mark { font-family: var(--st-ja); font-weight: 300; line-height: 1; color: var(--scr-ink); }
.sr-end__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 18px;
    border: 1px solid var(--scr-line);
    border-radius: 0;
    background: transparent;
    color: var(--scr-ink);
    font-family: var(--st-sans);
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, color .2s;
}
@media (hover: hover) {
    .sr-end__btn:hover { border-color: var(--scr-ink); }
}
.sr-end__btn:active { background: var(--scr-ink); color: var(--scr); }
.sr-end__btn.is-primary { background: var(--scr-ink); color: var(--scr); border-color: var(--scr-ink); }
.sr-end__btn.is-primary:hover { background: transparent; color: var(--scr-ink); }
.sr-end__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }
.sr-end__grp { font-family: var(--st-mono); font-size: 12px; letter-spacing: .04em; }

/* =====================================================================
   9. 플래시카드 = 상영
   ===================================================================== */
.sr-screen[data-mode="flashcard"] .sr-pic { cursor: pointer; }
.sr-screen[data-mode="flashcard"] :is(.sr-read, .sr-mean) {
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: ease;
}
.sr-screen[data-mode="flashcard"] :is(.sr-read, .sr-mean).is-on { opacity: 1; }

/* 화면 전체가 누름 자리 — 재생 중엔 멈춤, 멈춤 상태에선 드러냄 */
.sr-hit { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.sr-hit:focus, .sr-hit:focus-visible { outline: none; }
/* 키보드 포커스 — 네 귀퉁이 재단선이 흰색으로 길어진다(굵은 테두리 대신) */
.sr-hit:focus-visible ~ .sr-frame i { width: 26px; height: 26px; border-color: var(--scr-ink); }
.sr-frame i { transition: width .2s var(--ease), height .2s var(--ease), border-color .2s; }
.sr-screen:is([data-state="end"], [data-state="empty"]) .sr-hit { display: none; }

/* 지금 장의 진행(원본 단계 막대) — 화면 아래 끝 1px */
.sr-step { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; height: 1px; pointer-events: none; }
.sr-step i { position: absolute; inset: 0; background: var(--scr-dim); transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .sr-step i { transform-origin: right center; }

/* 「終」 엔드카드 — 다시 보기 · 퀴즈로 · 다음 Day */
.sr-end {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.6cqh;
    padding: 16px;
    background: var(--scr);
    cursor: default;
    animation: sr-fade .9s ease both;
}
.sr-end .sr-end__mark { font-size: 30cqh; }
.sr-end__meta {
    font-family: var(--st-mono);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .2em;
    text-align: center;
    color: var(--scr-dim);
    direction: ltr;
    unicode-bidi: isolate;
}
.sr-end__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 1.4cqh; }
.sr-screen[data-state="end"] .sr-frame { opacity: 0; }

/* =====================================================================
   10. 퀴즈 = 자막 맞히기 — 화면에 표기·읽기, 뜻 자리는 빈 줄 / 아래에 보기 4줄(자막 트랙)
   ===================================================================== */
.sr-quiz { display: flex; flex-direction: column; align-items: center; width: 100%; }
.sr-screen[data-mode="quiz"] .sr-pic { cursor: default; }
.sr-subs.is-quiz { bottom: 9%; }
.sr-mean.is-blank { width: 7.5em; max-width: 60%; border-bottom: 1px solid var(--scr-dim); }
.sr-mark { display: inline-block; margin-inline-end: .55em; font-family: var(--st-ja); font-weight: 300; }
.sr-mean.is-ok .sr-mean__txt, .sr-mean.is-ng .sr-mean__txt { animation: sr-fade .35s ease both; }
.sr-mean.is-ng .sr-mark { color: var(--scr-ng); }

.sr-tracks {
    width: var(--screen-w);
    max-width: 100%;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--st-ink);
}
.sr-tracks:focus { outline: none; }
.sr-tracks:focus-visible { outline: 2px solid var(--st-ink); outline-offset: 3px; }
.sr-track {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: stretch;
    min-height: 52px;
    padding: 0;
    background: var(--st-paper);
    border: 0;
    border-bottom: 1px solid var(--st-line);
    border-radius: 0;
    color: var(--st-ink);
    text-align: start;
    cursor: pointer;
    transition: background-color .18s, color .18s;
}
.sr-track__no {
    display: grid;
    place-items: center;
    border-inline-end: 1px solid var(--st-line);
    font-family: var(--st-mono);
    font-size: 12px;
    line-height: 1;
    color: var(--st-usu);
    transition: background-color .18s, color .18s;
}
.sr-track__txt {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: clamp(16px, 1.25vw, 19px);
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: -0.005em;
}
.sr-track__txt:lang(ko) { font-family: var(--st-ko); }
@media (hover: hover) {
    .sr-track:not(:disabled):hover .sr-track__no { background: var(--st-ink); color: var(--st-paper); border-inline-end-color: var(--st-ink); }
    .sr-track:not(:disabled):hover .sr-track__txt { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
}
.sr-track:focus-visible { outline-offset: -2px; }
.sr-track:disabled { cursor: default; color: var(--st-usu); }
/* 맞은 보기 — 반전(흰 글자 ↔ 먹 바탕) */
.sr-track.correct, .sr-track.correct:disabled { background: var(--st-ink); color: var(--st-paper); }
.sr-track.correct .sr-track__no { color: var(--st-paper); border-inline-end-color: transparent; }
/* 고른 오답 — 취소선 + 기능색 빨강 하나 */
.sr-track.incorrect, .sr-track.incorrect:disabled { color: var(--st-ng); }
.sr-track.incorrect .sr-track__txt { text-decoration: line-through; text-decoration-thickness: 1px; }
.sr-track.incorrect .sr-track__no { color: var(--st-ng); }

/* 「결과 보기」를 일찍 누르면 — 보기 아래 짧은 안내 */
.quiz-feedback.is-note {
    width: var(--screen-w);
    max-width: 100%;
    margin-top: 12px;
    font-size: 13px;
    color: var(--st-usu);
}
.sr-btn--say { margin-inline-end: 4px; }

/* =====================================================================
   11. 퀴즈 엔드 크레딧 — 「終」 · 점수 · 한마디 · 틀린 단어 크레딧 · 스마트 복습 안내
   ===================================================================== */
.sr-quiz.is-done { flex: 1 1 auto; }
.sr-screen.is-credits {
    width: var(--screen-w);
    height: calc(var(--vh) - var(--st-bar) - var(--st-set) - 40px);
    min-height: 420px;
}
.sr-roll {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    container-type: normal;
    cursor: default;
    user-select: text;
    -webkit-user-select: text;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
.sr-roll:focus { outline: none; }
.sr-roll:focus-visible { outline: 1px solid var(--scr-ink); outline-offset: -8px; }
.sr-roll__in {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    justify-content: center;
    padding: clamp(28px, 6vh, 64px) 24px clamp(36px, 6vh, 64px);
    text-align: center;
}
.sr-roll .sr-end__mark { font-size: clamp(64px, 11vh, 120px); }
.qr-score {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 6px 14px;
    margin-top: clamp(16px, 3vh, 28px);
    direction: ltr;
    unicode-bidi: isolate;
}
.qr-frac { font-family: var(--st-sans); font-weight: 300; font-size: clamp(32px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.03em; color: var(--scr-ink); }
.qr-dot { color: var(--scr-dim); }
.qr-pct { font-family: var(--st-mono); font-size: 15px; letter-spacing: .06em; color: var(--scr-ink); }
.qr-msg { margin-top: 12px; max-width: 34em; font-size: clamp(15px, 1.3vw, 18px); font-weight: 300; line-height: 1.5; color: var(--scr-ink); }
.qr-msg:lang(ko) { font-family: var(--st-ko); }
html:lang(ko) .qr-msg, html:lang(ko) .qr-note { font-family: var(--st-ko); }
.qr-h {
    margin-top: clamp(30px, 5.4vh, 52px);
    padding-bottom: 14px;
    width: min(100%, 640px);
    border-bottom: 1px solid var(--scr-line);
    font-family: var(--st-mono);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--scr-dim);
}
html:is(:lang(ko), :lang(ja), :lang(zh), :lang(ar)) .qr-h { font-family: var(--st-sans); font-size: 12px; letter-spacing: .04em; }
.qr-list { width: min(100%, 640px); margin: 14px 0 0; padding: 0; list-style: none; }
/* 크레딧처럼 — 왼쪽 표기는 끝 맞춤, 오른쪽 뜻은 시작 맞춤 */
.qr-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 30px;
    align-items: baseline;
    padding-block: 7px;
    animation: sr-fade .6s ease both;
    animation-delay: calc(var(--i, 0) * 70ms + 300ms);
}
.qr-jp { text-align: end; font-family: var(--st-ja); font-weight: 500; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.35; color: var(--scr-ink); }
.qr-kr { text-align: start; font-weight: 300; font-size: clamp(14px, 1.15vw, 16px); line-height: 1.45; color: var(--scr-dim); }
.qr-kr:lang(ko) { font-family: var(--st-ko); }
.qr-note { margin-top: 24px; max-width: 36em; font-size: 12.5px; line-height: 1.6; color: var(--scr-dim); }

.sr-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: none; }
.sr-tbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid var(--scr-line);
    border-radius: 0;
    background: transparent;
    color: var(--scr-ink);
    font-family: var(--st-sans);
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, color .2s;
}
@media (hover: hover) {
    .sr-tbtn:hover { border-color: var(--scr-ink); }
}
.sr-tbtn.is-primary { background: var(--scr-ink); color: var(--scr); border-color: var(--scr-ink); }
.sr-tbtn.is-primary:hover { background: transparent; color: var(--scr-ink); }
.sr-tbtn__n { font-family: var(--st-mono); font-size: 12px; color: inherit; opacity: .7; }

/* =====================================================================
   12. 목록 = 대본 — 헤어라인 표(번호 · 표기 · 읽기 · 뜻 가림), 누르면 뜻·발음
   ===================================================================== */
.sr-script { --cols: 64px minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.6fr); width: min(100%, 1120px); margin-inline: auto; padding-bottom: 24px; }
.sr-script__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    min-height: 48px;
    border-bottom: 1px solid var(--st-ink);
}
.sr-script__meta {
    font-family: var(--st-mono);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--st-usu);
    direction: ltr;
    unicode-bidi: isolate;
}
.sr-script__meta span:first-child { color: var(--st-ink); }
.sr-script__meta span + span::before { content: "·"; margin-inline: 10px; }
.sr-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    background: none;
    border: 0;
    font-size: 13px;
    line-height: 1.2;
    color: var(--st-ink);
    cursor: pointer;
}
.sr-switch__box { width: 12px; height: 12px; border: 1px solid var(--st-ink); transition: background-color .15s; }
.sr-switch[aria-pressed="true"] .sr-switch__box { background: var(--st-ink); }
.sr-script__head {
    display: grid;
    grid-template-columns: var(--cols);
    column-gap: 20px;
    padding: 12px 0 10px;
    border-bottom: 1px solid var(--st-line);
    font-family: var(--st-mono);
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--st-usu);
}
.sr-script__head [lang="ja"] { font-family: var(--st-ja); letter-spacing: .14em; }
.sr-rows { margin: 0; padding: 0; list-style: none; }
.sr-row {
    display: grid;
    grid-template-columns: var(--cols);
    column-gap: 20px;
    align-items: baseline;
    width: 100%;
    padding: 15px 0 14px;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--st-line);
    border-radius: 0;
    color: var(--st-ink);
    text-align: start;
    cursor: pointer;
    transition: border-color .2s;
}
@media (hover: hover) {
    .sr-row:hover { border-bottom-color: var(--st-ink); }
}
.sr-row:focus-visible { outline-offset: -2px; }
.sr-row__no { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--st-mono); font-size: 11px; letter-spacing: .04em; color: var(--st-usu); }
.sr-row__tag { font-size: 10px; letter-spacing: .06em; color: var(--st-usu); }
.sr-row__main { font-family: var(--st-ja); font-weight: 500; font-size: clamp(20px, 1.75vw, 26px); line-height: 1.25; letter-spacing: .02em; }
.sr-row__read { font-family: var(--st-ja); font-weight: 300; font-size: 14px; line-height: 1.4; letter-spacing: .14em; color: var(--st-usu); }
.sr-row__mean { position: relative; min-height: 1.45em; font-size: 16px; font-weight: 300; line-height: 1.45; }
.sr-row__mean:lang(ko) { font-family: var(--st-ko); }
.sr-row__blank { position: absolute; inset-inline-start: 0; top: .8em; width: 3.2em; height: 1px; background: var(--st-usu); opacity: .55; }
.sr-row__txt { visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility 0s linear .3s; }
.sr-row.flipped .sr-row__txt, .sr-script.is-all .sr-row__txt { visibility: visible; opacity: 1; transition: opacity .3s ease; }
.sr-row.flipped .sr-row__blank, .sr-script.is-all .sr-row__blank { display: none; }
.sr-row.flipped .sr-row__no { color: var(--st-ink); }
.sr-row.flipped .sr-row__no::after { content: ""; width: 5px; height: 5px; margin-inline-start: 2px; background: currentColor; align-self: center; }

/* =====================================================================
   13. 필름 리더 — 불러오는 중(0.25초 넘게 걸릴 때만)·실패·데이터 없음
   ===================================================================== */
.sr-leader { position: absolute; inset: 0; display: grid; place-items: center; cursor: default; }
.sr-pic.sr-leader { position: relative; inset: auto; }
.sr-leader__svg { position: absolute; top: 50%; left: 50%; height: 84%; width: auto; aspect-ratio: 1; transform: translate(-50%, -50%); fill: none; stroke: var(--scr-line); stroke-width: 1; overflow: visible; }
.sr-leader__svg * { vector-effect: non-scaling-stroke; }
.sr-leader__svg circle:first-child { stroke: rgba(255, 255, 255, .22); }
.sr-leader__sweep { stroke: var(--scr-dim); transform-origin: 100px 100px; animation: sr-sweep 1.4s linear infinite; }
@keyframes sr-sweep { to { transform: rotate(360deg); } }
.sr-screen[data-state="error"] .sr-leader__sweep,
.sr-screen[data-state="empty"] .sr-leader__sweep { display: none; }
.sr-leader__in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sr-leader__msg {
    font-family: var(--st-mono);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: center;
    color: var(--scr-ink);
}
html:is(:lang(ko), :lang(ja), :lang(zh), :lang(ar)) .sr-leader__msg { font-family: var(--st-sans); font-size: 13px; letter-spacing: .02em; }
.sr-screen--leader[data-state="loading"] { animation: sr-fade .3s ease .25s both; }
/* 플래시카드·퀴즈·목록이 비었을 때 — 같은 리더, 자막 자리에 「데이터가 없습니다」 */
.sr-screen[data-state="empty"] .sr-subs { bottom: auto; top: 50%; transform: translateY(-50%); }
.sr-screen[data-state="empty"] .sr-main { font-family: var(--st-sans); font-weight: 300; font-size: clamp(16px, 1.6vw, 22px); letter-spacing: 0; }
.sr-screen[data-mode="flashcard"][data-state="empty"] :is(.sr-ticks, .sr-seg) { visibility: hidden; }

/* =====================================================================
   14. 반응형
   ===================================================================== */
@media (max-width: 1199px) {
    .page-head h1 { grid-column: 1 / 8; }
    .page-head .b2 { grid-column: 8 / 13; }
}

/* 스테이지 — 좁은 데스크톱에서 아래 띠가 넘치면 속도 세그먼트를 줄인다 */
@media (max-width: 1100px) and (min-width: 760px) {
    .sr-seg__btn { min-width: 34px; padding: 0 6px; }
    .sr-band--bot { gap: 12px; }
}

@media (max-width: 959px) {

    .page-head { padding-top: 30px; }
    .page-head h1, .page-head .b2 { grid-column: 1 / -1; }
    .page-head h1 { font-size: clamp(36px, 8.6vw, 64px); max-width: 12em; }
    .page-head .b2 { margin-top: 18px; padding-bottom: 0; }

}

/* 선택 화면 — 줄 이름을 위로 올린다 */
@media (max-width: 759px) {
    .v2-select > * { padding-inline-start: 0; }
    .v2-select > :is(.v2-cats, .v2-levels, .v2-days-wrap, .v2-order) { padding-top: 46px; }
    .v2-select > :is(.v2-cats, .v2-levels, .v2-days-wrap, .v2-order)::before { top: 18px; max-width: none; }
    .v2-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; border-bottom: 0; }
    .v2-cat { min-height: 112px; padding: 16px; border-top: 1px solid var(--line); }
    .v2-cat:nth-child(odd) { border-inline-start: 0; }
    .v2-cat:last-child { border-inline-end: 0; }
    .v2-cat:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
    .v2-cat-name { font-size: 28px; }

    /* Day — 가로로 넘기는 필름 띠(스크롤 스냅) */
    .v2-days-wrap { padding-bottom: 14px; }
    .v2-days {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: calc(-1 * var(--pad));
        padding: 0 var(--pad) 6px;
        scroll-snap-type: x proximity;
        scroll-padding-inline: var(--pad);
        scrollbar-width: thin;
    }
    .v2-days .v2-chip { scroll-snap-align: start; flex: none; }

    .v2-actions { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 24px; }
    .v2-action + .v2-action { border-inline-start-width: 1px; }
    .v2-action { min-height: 58px; }
}

@media (max-width: 599px) {
    .page-head h1 { font-size: clamp(34px, 9.6vw, 46px); }
}

/* 스테이지 — 모바일·세로 화면: 폭 가득, 세로로 긴 스크린(퀴즈는 보기 4줄이 스크롤 없이 아래에) */
@media (max-width: 759px), (max-aspect-ratio: 1/1) {
    .v2-stage {
        --st-pad: 16px;
        --st-bar: 48px;
        --st-set: 44px;
        --band-t: 34px;
        --screen-w: 100%;
    }
    .v2-stage.is-quiz { --screen-w: 100%; }
    .v2-stagebar { flex-wrap: wrap; height: auto; gap: 0 14px; padding: 0 16px; }
    .v2-stage-back { height: var(--st-bar); }
    .v2-stage-title { padding-inline-start: 14px; flex: 1 1 0; }
    .v2-stage-modes {
        order: 3;
        flex: 1 1 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        height: 44px;
        margin: 0 -16px;
        border-top: 1px solid var(--st-line);
    }
    .v2-stage-modes button { font-size: 13.5px; }
    .v2-stage-modes button + button { border-inline-start: 1px solid var(--st-line); }

    .v2-stageset { width: auto; max-width: none; margin: 0; padding: 4px 16px; gap: 4px 18px; flex-wrap: nowrap; }
    .v2-set-reel { display: none; }
    .v2-set-item { min-width: 0; }
    .v2-stageset select { max-width: 100%; text-overflow: ellipsis; }
    .v2-stage.is-list .v2-stageset { width: auto; margin: 0; }
    .v2-stagebody { flex: 1 1 auto; margin: 0; padding: 0; }
    .v2-mount { flex: 1 1 auto; min-height: 0; }
    .v2-stage.is-list .v2-stagebody { padding: 0 16px; }

    .sr-screen { flex: 1 1 auto; min-height: 0; width: 100%; border-inline-width: 0; }
    .sr-pic { flex: 1 1 auto; min-height: 208px; aspect-ratio: auto; }
    .sr-quiz { flex: 1 1 auto; min-height: 0; }
    .sr-quiz .sr-screen { min-height: 300px; }
    .sr-band { padding-inline: 12px; font-size: 10.5px; letter-spacing: .08em; }
    .sr-tc__total { display: none; }
    .sr-meta > span + span::before { margin-inline: 7px; }

    /* 아래 띠 두 줄 — 조작 + 눈금 / 카드 속도 + 발음 */
    .sr-band--bot { flex-wrap: wrap; row-gap: 8px; column-gap: 12px; padding: 8px 12px 10px; }
    .sr-band--rows { flex-wrap: nowrap; padding: 0; }
    .sr-brow { gap: 12px; padding: 8px 12px; }
    /* 모바일 자막 — 세로 스크린이 넉넉해 더 크게(2026-10-19) */
    .sr-read { font-size: min(26px, 7.5cqh); }
    .sr-main { font-size: min(clamp(84px, 30vw, 128px), 30cqh); }
    .sr-subs.is-long .sr-main { font-size: min(clamp(56px, 19vw, 88px), 21cqh); }
    .sr-mean { font-size: min(30px, 8.6cqh); }
    .sr-brow--speed { flex-wrap: wrap; row-gap: 8px; }
    .sr-band--prog { padding-inline: 12px; }
    .sr-screen[data-mode="flashcard"] .sr-seg { flex: 1 1 auto; }
    .sr-seg__btn { min-width: 34px; height: 36px; flex: 1 1 0; padding: 0 3px; font-size: 10.5px; letter-spacing: 0; white-space: nowrap; }
    .sr-seg__grp { flex: 1 1 auto; }
    .sr-seg__lab { width: 18px; }
    .sr-btn { width: 40px; height: 40px; }
    .sr-btn--sound { width: 38px; height: 38px; }
    .sr-brow--ctrls .sr-btn { width: 54px; height: 54px; }
    .sr-brow--ctrls .sr-btn--play { width: 64px; height: 64px; }

    .sr-tracks { width: 100%; margin-top: 0; border-top: 0; }
    .sr-track { min-height: 50px; grid-template-columns: 46px minmax(0, 1fr); }
    .sr-track__txt { padding: 10px 16px; font-size: 16px; }
    .quiz-feedback.is-note { width: auto; padding: 0 16px 12px; }

    .sr-screen.is-credits { width: 100%; height: auto; min-height: 0; }
    .sr-quiz.is-done .sr-screen { flex: 1 1 auto; }
    .sr-acts { flex: 1 1 100%; justify-content: stretch; }
    .sr-tbtn { flex: 1 1 auto; justify-content: center; }
    .qr-item { column-gap: 18px; }

    .sr-script { --cols: 36px minmax(0, 1fr) minmax(0, 1fr); }
    .sr-script__head { display: none; }
    .sr-row { row-gap: 2px; align-items: center; padding: 12px 0; }
    .sr-row__no { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
    .sr-row__main { grid-column: 2; grid-row: 1; font-size: 21px; }
    .sr-row__read { grid-column: 2; grid-row: 2; font-size: 12.5px; }
    .sr-row__mean { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 15px; }
    .sr-row__tag { display: none; }
}

@media (max-width: 479px) {
    .v2-set-count { display: none; }
    .v2-set-lab { display: none; }
}

/* 아주 낮은 가로 화면 — 띠를 줄여 스크린을 키운다 */
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
    .v2-stage { --st-bar: 46px; --st-set: 38px; --band-t: 30px; --band-b: 46px; --tracks-h: 186px; --min-w: 420px; }
    .sr-track { min-height: 44px; }
    .sr-btn { width: 32px; height: 32px; }
    .sr-seg__btn { height: 30px; }
    .sr-brow--ctrls .sr-btn { width: 44px; height: 44px; }
    .sr-brow--ctrls .sr-btn--play { width: 50px; height: 50px; }
}

/* =====================================================================
   15. 움직임 줄이기 — 교차 페이드·다가가는 카메라·리더 회전·누름 표시·크레딧 등장을 끈다
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0s !important;
        animation-duration: 0s !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
    .sr-glyph.is-push { animation: none; }
    .sr-leader__sweep { animation: none; }
    .sr-flash, .sr-cue { display: none; }
}
