.story-hub{max-width:1240px}
.story-hub-hero{margin-bottom:24px}
.story-language-switch{display:flex;gap:10px;margin:26px 0 32px;border-bottom:1px solid var(--line,rgba(255,255,255,.12));padding-bottom:12px}
.story-language-switch button{appearance:none;border:1px solid var(--line,rgba(255,255,255,.16));background:rgba(255,255,255,.035);color:var(--text,#edf0f4);border-radius:999px;padding:11px 18px;font:inherit;font-size:14px;font-weight:750;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.story-language-switch button:hover{transform:translateY(-1px);border-color:rgba(198,166,92,.55)}
.story-language-switch button[aria-selected="true"]{background:rgba(198,166,92,.14);border-color:rgba(198,166,92,.65);color:#f1d99b}
.story-language-panel[hidden]{display:none}
.story-shelf{margin:0 0 38px}
.story-shelf-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 18px}
.story-shelf-heading h2{margin:3px 0 6px;font-size:clamp(22px,3vw,30px);line-height:1.2}
.story-shelf-heading p{margin:0;line-height:1.7;color:var(--muted,#a8b0bd);font-size:14px;max-width:780px}
.story-count-note{flex:none;font-size:12px;color:var(--muted,#a8b0bd);padding:5px 10px;border:1px solid var(--line,rgba(255,255,255,.13));border-radius:999px}
.story-hub .story-path-card{cursor:pointer;min-height:235px;transition:transform .18s,border-color .18s,background .18s}
.story-hub .story-path-card:hover{transform:translateY(-3px);border-color:rgba(198,166,92,.6)}
.story-hub .story-path-card .path-summary{line-height:1.75}
.story-hub .story-route{margin:36px 0 48px;scroll-margin-top:20px}
.story-hub .story-route[hidden]{display:none}
.story-hub .story-chapter{scroll-margin-top:24px}
.story-hub .story-route-hero{position:relative}
.story-hub .story-close{flex:none}
.story-hub .story-chapter-nav{position:sticky;top:0;z-index:4;backdrop-filter:blur(12px)}
.story-hub .story-node-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px}
.story-hub .story-node{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:14px;border-radius:14px;min-width:0}
.story-node-main{display:flex;align-items:center;gap:12px;width:100%;min-width:0;text-decoration:none;color:inherit;background:none;border:0;padding:0;text-align:left;cursor:pointer}
.story-node-char{flex:none;font-family:"Noto Serif CJK SC","Noto Serif SC",serif;font-size:42px;line-height:1.1;min-width:48px;text-align:center}
.story-node-copy{min-width:0;display:grid;gap:4px}
.story-node-copy b{font-size:13px;overflow-wrap:anywhere}
.story-node-copy small{font-size:11px;line-height:1.45;color:var(--muted,#a8b0bd)}
.story-node-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.story-word-check{display:inline-flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.45;color:var(--muted,#bcc4d0);cursor:pointer;max-width:100%}
.story-word-check input{accent-color:#c6a65c;flex:none;width:16px;height:16px;margin:1px 0 0}
.story-word-check small{font-size:11px;color:var(--muted,#8f99a8)}
.story-check-status{font-size:11px;color:#c9b779;min-height:1em}
.word-story-card{position:relative}
.word-story-card .story-word-check{margin-top:auto;padding-top:4px}
.word-story-card .word-story-main{min-width:0}
.word-story-card .word-story-main a{overflow-wrap:anywhere}
.word-story-card .word-story-main .word-story-meaning{line-height:1.65}
.story-progress{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:14px 0 10px;font-size:12px;color:var(--muted,#a8b0bd)}
.story-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 0}
.story-pagination button{appearance:none;border:1px solid rgba(198,166,92,.45);background:rgba(198,166,92,.09);color:var(--text,#edf0f4);border-radius:10px;padding:10px 13px;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.story-pagination button:hover{background:rgba(198,166,92,.17)}
.story-pagination button[hidden]{display:none}
.story-pagination .story-end{font-size:12px;color:var(--muted,#9ca6b4)}
.story-chapter-question{margin:8px 0 12px;font-size:14px;color:#d8c58c;font-style:italic;line-height:1.7}
.story-hub .word-story-chapter{scroll-margin-top:24px}
.story-hub .word-story-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));gap:12px}
.story-hub .word-story-card{min-width:0}
.story-hub .word-story-total{margin-top:8px}
.story-hub .story-reflection{margin-top:26px}
.story-hub .story-chapter-nav a{max-width:100%}
.story-hub-footnote{color:var(--muted,#8e98a6);font-size:12px;line-height:1.7;border-top:1px solid var(--line,rgba(255,255,255,.1));padding-top:18px;margin:30px 0 50px}
@media(max-width:700px){.story-language-switch{position:sticky;top:0;z-index:5;background:rgba(10,12,20,.9);backdrop-filter:blur(12px);padding:10px 0}.story-language-switch button{flex:1;padding:10px 8px;font-size:12px}.story-shelf-heading{align-items:start}.story-count-note{font-size:10px}.story-hub .story-chapter-nav{top:55px}.story-hub .word-story-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,155px),1fr))}.story-hub .story-node-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))}}
.story-hub .path-card-symbol{display:grid;place-items:center;width:56px;height:58px;border-radius:14px;border:1px solid color-mix(in srgb,var(--route-accent,#78cfc5) 30%,transparent);background:color-mix(in srgb,var(--route-accent,#78cfc5) 10%,transparent);color:var(--route-accent,#78cfc5);font-family:Georgia,'Noto Serif SC',serif;font-size:34px}
.story-hub .path-card-kicker{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:var(--route-accent,#78cfc5);line-height:1.5}
.story-hub .path-card-title{font-size:clamp(20px,2.2vw,25px);font-weight:800;line-height:1.35;color:#fff}
.story-hub .path-card-english{font-size:12px;color:#aebbd0;line-height:1.5}
.story-hub .path-summary{font-size:14px;line-height:1.8;color:#d0d8e5}
.story-hub .path-arc{font-size:12px;line-height:1.65;color:#9bcebF;border-left:2px solid var(--route-accent,#78cfc5);padding-left:10px}
.story-hub .story-preview-chips{display:flex;gap:6px;flex-wrap:wrap}
.story-hub .story-preview-chip{font-size:10px;line-height:1.45;padding:5px 7px;border:1px solid rgba(255,255,255,.09);border-radius:7px;background:rgba(255,255,255,.035);color:#ccd6e4}
.story-hub .path-card-question{font-family:Georgia,'Noto Serif KR',serif;color:#d5c58e;font-size:13px;line-height:1.65}
.story-hub .path-card-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:11px;border-top:1px solid rgba(255,255,255,.08);font-size:11px;color:#aab7c8}
.story-hub .path-card-footer span:last-child{color:var(--route-accent,#78cfc5);font-weight:800}
.story-hub .story-path-card{font:inherit;width:100%;border:1px solid rgba(255,255,255,.1)}
.story-hub .story-path-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.story-hub .story-chapter-head{grid-template-columns:46px minmax(0,1fr);align-items:start;gap:12px}
.story-hub .story-chapter-number{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:color-mix(in srgb,var(--route-accent,#78cfc5) 11%,transparent);border:1px solid color-mix(in srgb,var(--route-accent,#78cfc5) 25%,transparent);font-size:17px;color:var(--route-accent,#78cfc5);font-weight:800}
.story-hub .story-chapter-head h4{margin:0 0 7px;color:#fff;font-size:clamp(19px,2vw,24px);line-height:1.4}
.story-hub .story-chapter-head p{margin:0;color:#c4cfde;line-height:1.9;font-size:15px}
.story-hub .story-chapter-question{margin-top:8px}
.story-hub .word-story-main .word-story-term{display:block;color:#fff;text-decoration:none;font-family:'Noto Serif SC','Noto Sans CJK SC',serif;font-size:26px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
.story-hub .word-story-main .word-story-term:hover{color:#9ce0d6}
.story-hub .word-story-main .word-story-pinyin{font-size:12px}
.story-hub .word-story-main .word-story-meaning{margin:0}
.story-hub .word-story-extra{display:block;color:#8595aa;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.story-hub .story-node .story-pronounce-btn{font-size:11px;white-space:nowrap}
.story-hub .story-route-hero .story-route-kicker{font-size:10px}
.story-hub .story-route-hero .word-story-total{line-height:1.6}
.story-hub .story-chapter .chapter-story-prose{margin-top:8px;color:#a9d5d1;line-height:1.9;font-size:15px}
@media(max-width:760px){.story-hub .story-path-grid{grid-template-columns:1fr}.story-hub .story-path-card{min-height:0;padding:17px}.story-hub .story-chapter-head{grid-template-columns:35px minmax(0,1fr);gap:9px}.story-hub .story-chapter-number{width:32px;height:34px;font-size:13px;border-radius:9px}.story-hub .story-chapter-head p{font-size:14px}.story-hub .path-card-title{font-size:22px}.story-hub .path-summary{font-size:13px}.story-hub .word-story-main .word-story-term{font-size:23px}}

/* v27: compact icon-only check beside audio, bilingual English-story reading, and focus gestures */
.story-hub .story-node-actions{justify-content:flex-start;gap:8px;align-items:center;flex-wrap:nowrap}
.story-hub .story-check-icon{position:relative;display:inline-grid;place-items:center;flex:none;width:28px;height:28px;margin:0;padding:0;border:1px solid rgba(198,166,92,.38);border-radius:8px;background:rgba(198,166,92,.07);cursor:pointer;line-height:1}
.story-hub .story-check-icon input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.story-hub .story-check-icon span{font-size:17px;font-weight:900;color:#8b93a1;opacity:.6;line-height:1;pointer-events:none}
.story-hub .story-check-icon input:checked + span{color:#f1d99b;opacity:1}
.story-hub .story-check-icon input:indeterminate + span{color:#9dc8f2;opacity:1}
.story-hub .story-check-icon input:focus-visible + span{outline:2px solid #e8cf8c;outline-offset:5px;border-radius:2px}
.story-hub .story-check-icon:has(input:disabled){opacity:.35;cursor:not-allowed}
.story-hub .story-node-actions .story-pronounce-btn{padding:6px 9px;min-height:28px}
.story-hub .path-summary-translation,.story-hub .path-question-translation{display:block;margin-top:6px;color:#b8d6d1;font-size:12px;line-height:1.75;font-weight:500}
.story-hub .path-question-translation{color:#cbd3df;font-style:normal}
.story-hub .chapter-title-translation{display:block;margin-top:5px;color:#9ed9cf;font-size:16px;font-weight:700;line-height:1.55}
.story-hub .story-translation{display:block;margin-top:6px;color:#d4e9e4;font-size:15px;line-height:1.9;font-weight:500}
.story-hub .story-chapter-question .story-translation{margin-top:5px;color:#d4e0ed;font-style:normal;font-size:15px;line-height:1.9}
.story-hub .story-chapter-nav a small{display:block;margin-top:3px;color:#a8b6c7;font-size:10px;line-height:1.4}
.story-hub .story-english-title{margin-top:-4px!important;color:#b6c4d5!important;font-family:Georgia,serif;font-size:14px!important;font-style:italic}
.story-hub .story-root-note{margin-top:14px;padding:12px 14px;border-left:2px solid var(--route-accent,#78cfc5);background:rgba(255,255,255,.035);border-radius:0 10px 10px 0}
.story-hub .story-root-note b{font-size:11px;letter-spacing:.08em;color:var(--route-accent,#78cfc5)}
.story-hub .story-root-note p{margin:5px 0 0;color:#d0d8e5;font-size:12px;line-height:1.85}
.story-hub .word-story-total{font-size:11px;color:#aeb9c9}
.story-hub [data-vocab-card],.story-hub [data-character-node]{-webkit-touch-callout:none;touch-action:pan-y;transition:border-color .15s,box-shadow .15s}
.story-hub .story-card-checked-pulse{border-color:rgba(241,217,155,.95)!important;box-shadow:0 0 0 2px rgba(241,217,155,.18)!important}
.story-hub .word-story-card .story-node-actions{margin-top:8px}

/* v29: Korean-only English-story translations use the same generous reading scale. */
.story-hub .story-translation{font-size:15px;line-height:1.9}
.story-hub .story-chapter .chapter-story-prose.story-translation{font-size:15px;line-height:1.9}
.story-hub .chapter-title-translation{font-size:16px}
@media(max-width:760px){.story-hub .story-translation{font-size:14px;line-height:1.9}.story-hub .story-chapter-question .story-translation{font-size:14px}.story-hub .story-chapter .chapter-story-prose.story-translation{font-size:14px;line-height:1.9}.story-hub .chapter-title-translation{font-size:15px}.story-hub .story-chapter-nav a small{display:none}}

.story-hub .story-path-card .path-summary{font-size:15px;line-height:1.9}
.story-hub .story-root-note p{font-size:15px;line-height:1.9}
@media(max-width:760px){.story-hub .story-path-card .path-summary{font-size:14px;line-height:1.9}.story-hub .story-root-note p{font-size:14px}}

.story-chapter.story-chapter-targeted { outline: 2px solid rgba(255,209,102,.7); outline-offset: 4px; transition: outline-color .4s ease; }
