:root{--paper:#fcfaf6;--ink:#24232b;--muted:#605b69;--blue:#3e34bf;--green:var(--blue);--rule:#dad5df}
header{border-color:var(--rule)}header nav a:first-child{letter-spacing:-.055em}
.reading-feature{display:grid;grid-template-columns:1fr 1fr;margin:28px 0 0;border:1px solid #cfc8eb;background:#eeebfc}
.feature-editorial{padding:clamp(22px,4.7vw,54px);align-self:center}
.feature-topic{display:flex;gap:10px;align-items:center;color:#45329b;font-weight:750;font-size:.9rem}
.feature-topic span+span{padding-left:10px;border-left:1px solid #a397c7}
.feature-editorial h1,.reader h1{font-family:"Noto Serif KR","Noto Serif CJK KR",serif;word-break:keep-all;letter-spacing:-.065em}
.feature-editorial h1{font-size:clamp(2.15rem,4.6vw,4rem);margin:14px 0 12px}
.feature-term{font-size:1.16rem;font-weight:800}.feature-term span{font-weight:500;margin-left:7px}
.feature-dek{margin-top:8px;color:var(--muted);word-break:keep-all}
.feature-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.feature-controls .action,.feature-controls .next-feature{margin:0;min-height:44px;padding:9px 13px}
.feature-controls .action{background:var(--blue);color:white}
.feature-controls .next-feature{color:#3d3180}.feature-controls .next-feature:focus-visible{outline-color:var(--blue)}
.feature-illustration{min-width:0;min-height:320px}.feature-illustration .art{height:100%;aspect-ratio:auto;object-fit:cover}
.home-recommendations{margin-top:42px}.recommendation-heading{border-color:var(--ink);padding-bottom:13px}
.story-rows a{padding:16px 0;gap:clamp(12px,3vw,24px)}.story-rows li{border-color:var(--rule)}
.story-rows .art{border-radius:3px}.story-rows strong{font-size:1.22rem}.story-rows p{margin-top:5px}
.tabs{border-color:var(--rule);background:var(--paper)}.tabs a[aria-current=page]{background:#e9e6fa;color:#382caa}
.reader{max-width:660px}.reader h1{font-size:clamp(2.3rem,5vw,4rem)}.reader h2:not(.comic-title){margin-top:28px}
.reader>p{line-height:1.9}.reader .meaning{background:#eeebfc;border-color:var(--blue)}
.reader-heading .icon-button{border-color:var(--rule)}.comic-title{background:#4b35ba}
@media(max-width:700px){.reading-feature{grid-template-columns:1fr;margin-top:16px}.feature-illustration{min-height:0}.feature-illustration .art{aspect-ratio:1.65}.home-recommendations{margin-top:30px}}
:root{--paper:#fbfaf7;--ink:#181c24;--muted:#555964;--blue:#263edc;--rule:#dcddd9}
header nav a:first-child{font-weight:900}
.reading-feature{background:#f0f1ff;border-color:#d6d9ed}
.feature-topic{color:#2d3dac}.feature-topic span+span{border-color:#bbc2e2}
.feature-editorial h1,.reader h1{font-weight:800;line-height:1.14}
.feature-controls .next-feature{color:#27378c}
.feature-illustration .art{object-position:center}
.tabs a[aria-current=page]{background:#e9ecff;color:#293bb9}
.reader>p{font-size:1.06rem}.reader .meaning{background:#eff1ff}
.comic-title{background:#253ac7}
.comic{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;background:transparent}
.comic img{aspect-ratio:1.12;object-fit:cover}
@media(max-width:460px){.reader>p{font-size:1rem}.comic{grid-template-columns:1fr}.comic img{aspect-ratio:1.6}}
.webtoon{display:grid;gap:22px;margin:22px 0 30px}
.webtoon figure{position:relative;margin:0;background:#16152c;color:white;border-radius:12px;overflow:hidden}
.webtoon img{width:100%;aspect-ratio:1;object-fit:cover;display:block;background:#262345}
.webtoon figcaption{font-size:1.04rem;line-height:1.7;padding:17px 20px;word-break:keep-all}
.original-story{margin:24px 0}.reader .original-story h2{font-size:1.2rem;font-weight:750;margin:0 0 10px}.original-story p{font-size:1.2rem;line-height:1.75;margin-top:8px}
header{background:#f6f3ff;border-color:#d9d1ed}header nav{min-height:62px}
.reading-feature{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:0;border:0;border-radius:14px;overflow:hidden;background:#19182c;color:#fff}
.feature-illustration{min-height:0;position:relative}
.feature-illustration .art{display:block;width:100%;height:100%;min-height:340px;object-fit:cover;object-position:center 42%}
.feature-editorial{padding:clamp(23px,5vw,52px)}
.feature-editorial h1{font-family:inherit;font-weight:900}
.feature-topic{color:#fcae98}.feature-topic span+span{border-color:#6d607c}
.feature-term{color:#efdcff}.feature-dek{color:#d6d2e2}
.feature-controls .action{background:#fba68e;color:#23182b}.feature-controls .next-feature{color:white}
.home-recommendations{margin-top:34px}.recommendation-heading{border-color:#dcd8e4}
.story-rows li{position:relative;border:0}.story-rows a{grid-template-columns:minmax(105px,clamp(140px,34vw,208px)) minmax(0,1fr);align-items:center;gap:clamp(12px,4vw,26px);padding:14px 0}
.story-rows .art{aspect-ratio:1.33;border-radius:8px;background:#e4def1}
.row-copy{min-width:0}.row-copy .hanja{display:block;margin:3px 0 0}.row-copy p{font-size:1rem;color:var(--ink);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.row-topic{display:block;margin-top:6px;color:#51458e;font-size:.82rem;font-weight:700}
.story-rows li:has(.row-bookmark) .row-copy{padding-right:46px}.row-bookmark{position:absolute;top:12px;right:0}.row-bookmark .icon-button{width:44px;height:44px;border-radius:8px;background:transparent;color:#51458e;position:relative;isolation:isolate}.row-bookmark .icon-button::before{content:"";position:absolute;inset:6.6px;border-radius:7px;background:#eeeaf8;z-index:-1}.row-bookmark .icon-button svg{width:16.8px;height:16.8px}
.row-bookmark .icon-button[aria-pressed=true]{color:#23182b}.row-bookmark .icon-button[aria-pressed=true]::before{background:#fba68e}.row-bookmark [aria-pressed=true] svg{fill:currentColor}
@media(max-width:700px){.reading-feature{grid-template-columns:1fr}.feature-illustration .art{min-height:0;aspect-ratio:1.6}.feature-editorial{padding:22px 20px 24px}}
.reader .reader-hanja{margin:0;color:var(--muted);font-size:1.12rem;letter-spacing:.08em}
.reader .meaning{margin-top:16px}
.reader .meaning h2,.reader .reader-example h2{margin:0 0 8px;font-size:1.2rem;line-height:1.35}
.reader-example{margin:24px 0 16px;padding:18px 20px;border:1px solid var(--rule);border-radius:12px;background:#fff}
.reader-example p{font-size:1.06rem;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
.reader .reader-links{max-width:none;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0;margin:0 0 24px;border:0}
.reader-links a,.reader-links a:first-child{display:grid;align-content:center;gap:4px;padding:12px 14px;border:1px solid #d6d9ed;border-radius:10px;background:#fff;min-height:68px;font-size:1rem;letter-spacing:normal;line-height:1.35;word-break:keep-all}
.reader-links a:last-child{background:#eef0ff;border-color:#cbd0f5}
.reader-links a:hover{border-color:var(--blue)}
.reader-links span{color:var(--muted);font-size:.85rem;font-weight:600}
.reader-links strong{font-size:1.04rem}
.webtoon-wide img{aspect-ratio:auto;height:auto}
.my-story-section{margin-block:24px}
.my-story-heading,.my-story-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.my-page .my-story-heading h2,.my-story-dialog-heading h2{margin:0;font-size:1.2rem}
.my-story-heading button{border:0;background:none;color:#51458e;font-size:.875rem;font-weight:700;min-height:44px;padding:0 4px;white-space:nowrap}
.my-story-dialog{padding:0;border:0;border-radius:14px;width:min(calc(100% - 24px),560px);max-height:80dvh;background:var(--paper);color:var(--ink);overflow:hidden}
.my-story-dialog::backdrop{background:#19182c9c}
.my-story-dialog-panel{display:flex;flex-direction:column;max-height:80dvh}
.my-story-dialog-heading{padding:12px 18px;border-bottom:1px solid var(--rule)}
.my-story-dialog-heading button{border:0;background:none;font-size:1.6rem;width:44px;height:44px;line-height:1}
.my-story-dialog-list{overflow:auto;overscroll-behavior:contain;padding:0 18px 16px}
.tabs{grid-template-columns:repeat(5,minmax(0,1fr))}
.tabs a[href="#game"]{color:#fff1c4;background:#342050;border-radius:50%;width:44px;height:44px;place-self:center}
.tabs a[href="#game"][aria-current="page"]{color:#342050;background:#f5db99}
.quiz-preview{max-width:600px;margin:auto}
.quiz-modes{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}
.quiz-modes button,.quiz-choices button{padding:10px 14px;min-height:44px;border:1px solid #d6cee0;background:white;border-radius:8px}
.quiz-modes [aria-pressed=true]{background:#342050;color:white;border-color:#342050}
.quiz-sample{padding:20px;border:1px solid #ded6e5;border-radius:12px;background:white}
.quiz-sample .art{margin:12px 0;aspect-ratio:1.6;border-radius:6px}
.quiz-sample h2{font-size:1.25rem;margin-bottom:8px}
.quiz-choices{display:grid;gap:8px;margin:16px 0}
.quiz-choices button{text-align:left}
.quiz-feedback a{text-decoration:underline;color:#4e2c75}
.quiz-action{border:0;background:#342050;color:#fff;padding:10px 18px;min-height:44px;border-radius:8px;margin:12px 0;font-weight:750}
.quiz-progress{color:#625473;margin:0 0 8px;font-size:.9rem}
.quiz-note,.quiz-records{padding:0;list-style:none;margin:12px 0}
.quiz-note li,.quiz-records li{border-top:1px solid #ded6e5;padding:12px 0}
.quiz-note p{margin:6px 0}
.quiz-note a,.quiz-records a{color:#4e2c75;text-decoration:underline}
.quiz-mark{padding:2px 7px;border-radius:5px;font-size:.84rem;font-weight:750}
.quiz-mark.is-correct{background:#e0f4ea;color:#144d34}
.quiz-mark.is-wrong{background:#fbe8e8;color:#822e39}
.quiz-records small{display:block;margin-top:4px}
.my-quiz-summary progress{width:100%;accent-color:#61418e}
.my-quiz-summary summary{cursor:pointer;font-weight:750;margin-top:14px;min-height:44px;padding-top:8px}
body:has(.quiz-preview){background:#342050}
.quiz-preview{padding-bottom:32px}
.quiz-preview>h1{color:#fff5de}
.story-intro{position:fixed;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;padding:0;border:0;overflow:hidden;background:#170c25;color:#fff6db}
.story-intro::backdrop{background:#170c25}
.intro-ambient,.intro-light{position:absolute;inset:0}
.intro-ambient{background:linear-gradient(0deg,#190d25 8%,#25133d60 60%,#190d25b0),var(--intro-art) center/cover;filter:blur(28px);transform:scale(1.08);opacity:.75}
.intro-scene{position:absolute;inset:10% 0 21%;display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;padding:0 5vw}
.intro-scene img{width:auto;height:auto;max-width:min(100%,760px);max-height:100%;object-fit:contain;border-radius:12px;box-shadow:0 20px 65px #12081899;animation:intro-camera 2.8s ease-out both}
.intro-light{pointer-events:none;background:radial-gradient(ellipse at 70% 48%,#f9b65342,transparent 58%);mix-blend-mode:screen;animation:intro-light 2.8s ease-out both}
.intro-word{position:absolute;inset:0 0 12%;display:flex;align-items:end;justify-content:center;gap:.015em;font-size:clamp(3rem,17vw,9rem);font-weight:950;line-height:1;text-shadow:0 .08em .18em #170a23,-.03em .03em #46225d;pointer-events:none}
.intro-word span{display:block;animation:intro-hit .45s cubic-bezier(.2,.7,.25,1.35) both;animation-delay:calc(.28s + var(--beat) * .22s + var(--reveal-pause, 0s))}
.intro-word span:nth-child(n+3){--reveal-pause:.96s}
@keyframes intro-camera{from{transform:scale(.985) translateY(4px)}to{transform:scale(1.015) translateY(0)}}
@keyframes intro-light{0%,100%{opacity:.3}45%{opacity:.85}}
@keyframes intro-hit{from{opacity:0;transform:translateY(-.36em) scale(1.65)}55%{opacity:1;transform:translateY(.035em) scale(.94)}to{opacity:1;transform:none}}
.quiz-choices .quiz-correct-choice{background:#e0f4ea;color:#144d34;border-color:#3a8260}
.quiz-choices .quiz-wrong-choice{background:#fbe8e8;color:#822e39;border-color:#b95a63}
.quiz-feedback{min-height:1.5em;font-weight:750}

.story-intro .intro-skip{position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;background:transparent;color:#fff6db;cursor:pointer}
.story-intro:focus,.intro-skip:focus{outline:none}
.intro-skip span{position:absolute;left:0;right:0;bottom:max(16px,env(safe-area-inset-bottom));font-size:.6875rem;font-weight:500;text-shadow:0 1px 4px #170c25;animation:intro-skip-pulse 1.2s ease-in-out infinite}
.intro-skip:focus-visible span{text-decoration:underline;text-underline-offset:3px}
@keyframes intro-skip-pulse{0%,100%{opacity:.62}50%{opacity:1}}

.three-kingdoms-cover.art{display:grid;place-items:center;min-height:100%;padding:.2em;background:#24163a;color:#fff0ca;font-family:serif;font-size:clamp(1rem,4vw,2.5rem);font-weight:700;line-height:1.1;text-align:center}
.feature-illustration .three-kingdoms-cover.art{min-height:260px;font-size:clamp(2rem,9vw,5rem)}

.app-install-dialog{width:min(360px,calc(100% - 32px));box-sizing:border-box;padding:24px;border:0;border-radius:18px;background:#fff;color:#211432;text-align:center;box-shadow:0 16px 64px #140d3155}
.app-install-dialog::backdrop{background:#17102099}
.app-install-dialog img{border-radius:12px}
.app-install-dialog h2{font-size:1.35rem;margin:8px 0}
.app-install-dialog p{margin:0 0 20px;word-break:keep-all}
.app-install-dialog form{display:flex;justify-content:center;gap:8px}
.app-install-dialog button{min-height:44px;padding:8px 18px;border:0;border-radius:10px;background:#f2edf8;color:#35234c;font:inherit;cursor:pointer}
.app-install-dialog .install-now{background:#55299d;color:white;font-weight:700}
