.sk-book-choices{display:grid;gap:10px;margin:20px 0}
.sk-book-kinds,.sk-book-styles{display:flex;gap:10px;flex-wrap:wrap}
.sk-books .sk-book-styles button{min-height:36px;padding:7px 14px;border-radius:999px;font-size:14px;background:#faf7ff}
.sk-books .sk-book-styles button[aria-pressed=true]{background:#efe6ff;color:#5b3e98;border-color:#b9a2e6}
.sk-books button{font:inherit;cursor:pointer;border:1px solid #dfd3ee;border-radius:14px;background:#fff;padding:12px 20px;color:#51406d;min-height:44px}
.sk-books button[aria-pressed=true]{background:#7d57bd;color:#fff;border-color:#7d57bd}
.sk-books button:focus-visible,.sk-book-reader:focus-visible{outline:3px solid #b68b30;outline-offset:4px}
.sk-books button:disabled{opacity:.45;cursor:default}
.sk-book-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.sk-book-heading h3{margin:0;font-size:21px;color:#45365e}
.sk-book-heading span{font-size:13px;color:#7a678d}

/* What went in: the reference photos (or chosen friends) and the parent's idea. */
.sk-book-inputs{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 16px;padding:12px 14px;border-radius:16px;background:#f7f2ff;border:1px solid #ece2fa}
.sk-book-inputs-label{font-size:13px;font-weight:700;color:#7954b7}
.sk-book-refs{display:flex;gap:8px;flex-wrap:wrap}
.sk-book-refs figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:4px}
.sk-book-refs img{width:56px;height:56px;border-radius:12px;object-fit:cover;border:2px solid #fff;box-shadow:0 3px 10px #46305d26}
.sk-book-refs figcaption{font-size:11px;color:#6b5a86}
.sk-book-idea{flex:1 1 240px;margin:0;font-size:14px;line-height:1.6;color:#5d4e74;word-break:keep-all}
.sk-book-idea:empty{display:none}

/* Same layout as the real 책장 reader: text sits in a cream card over the
   bottom-right of the picture, with the page count in the corner. */
.sk-book-page{position:relative;margin:0;border:6px solid #fff;border-radius:22px;overflow:hidden;background:#faf6ec;box-shadow:0 10px 30px #46305d1f}
.sk-book-page img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#faf6ec}
.sk-book-page figcaption{position:absolute;right:1.6%;bottom:3%;width:min(54%,640px);padding:clamp(10px,1.6vw,22px) clamp(12px,1.9vw,26px);border-radius:clamp(10px,1.4vw,18px);background:#fffaf0f2;box-shadow:0 6px 18px #4a352018;font-size:clamp(13px,1.65vw,22px);line-height:1.6;color:#3d3446;white-space:pre-line;word-break:keep-all;box-sizing:border-box}
.sk-book-count{position:absolute;left:1.4%;top:3%;padding:4px 10px;border-radius:999px;background:#ffffffe6;font-size:12px;color:#6b5a86}

.sk-book-audio{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;margin-top:14px}
.sk-books .sk-book-play{display:inline-flex;align-items:center;gap:8px;background:#7954b7;color:#fff;border-color:#7954b7;font-weight:700;padding:12px 24px}
.sk-books .sk-book-play[aria-pressed=true]{background:#fff;color:#7954b7}
.sk-book-auto{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#78698c;cursor:pointer}
.sk-book-auto input{width:16px;height:16px;accent-color:#7954b7;margin:0}

.sk-book-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px}
.sk-book-navigation output{font-size:15px;color:#51406d;text-align:center}
.sk-books .sk-book-note{font-size:12px;line-height:1.7;color:#8a7d9c;margin:20px 0 0}

/* On phones the card would cover most of the picture, so the text moves below it,
   still in the same cream card. */
@media(max-width:700px){
 .sk-book-page{border-width:4px;border-radius:18px}
 .sk-book-count{bottom:auto;top:8px}
 .sk-books button{padding:10px 14px}
 .sk-book-heading h3{font-size:18px}
 .sk-book-refs img{width:48px;height:48px}
}
.sk-book-translation{margin:10px 4px 0;font-size:14px;line-height:1.6;color:#6b5a86;white-space:pre-line}
.sk-book-play:disabled{opacity:.55;cursor:default}
.sk-book-lang{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.sk-book-lang>span{font-size:13px;font-weight:700;color:#6b5a86;margin-right:4px}
.sk-book-lang button{border:1px solid #dcd0f0;background:#fff;color:#5c4780;border-radius:999px;padding:7px 14px;font:inherit;font-size:14px;cursor:pointer}
.sk-book-lang button[aria-pressed=true]{background:#7954b7;border-color:#7954b7;color:#fff;font-weight:700}
/* 자막 체험 막대 */
.sk-book-try{display:grid;gap:10px;margin:0 0 14px;padding:14px 16px;border:1px solid #ece3f8;border-radius:16px;background:#fbf8ff}
.sk-book-try-title{margin:0;font-size:14px;color:#6b5a86}.sk-book-try-title b{color:#4b3b66;margin-right:6px}
.sk-book-try .sk-book-lang{margin:0}
.sk-try-controls{display:flex;flex-wrap:wrap;gap:10px 22px}
.sk-try-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sk-try-row>span{font-size:13px;font-weight:700;color:#6b5a86;margin-right:4px}
.sk-try-row button{border:1px solid #dcd0f0;background:#fff;color:#5c4780;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;cursor:pointer}
.sk-try-row button[aria-pressed=true]{background:#7954b7;border-color:#7954b7;color:#fff;font-weight:700}
.sk-try-row button:disabled{opacity:.4;cursor:default}
.sk-try-row output{min-width:44px;text-align:center;font-size:13px;font-weight:700;color:#4b3b66}
.sk-try-row input[type=range]{width:130px;accent-color:#7954b7}
.sk-book-try [data-off]{opacity:.4;pointer-events:none}
.sk-book-try-note{font-size:12px;color:#8a7d9c}
/* The sample caption follows the bar: size, box opacity, corner and film-style subtitles. */
.sk-book-page figcaption{font-size:calc(clamp(13px,1.65vw,22px) * var(--cap-scale,1));background:rgba(255,250,240,var(--cap-alpha,.95));box-shadow:0 6px 18px rgba(74,53,32,calc(.1 * var(--cap-alpha,.95)));transition:background .2s,color .2s}
.sk-book-page[data-cap-pos=tl] figcaption{top:3%;left:1.6%;right:auto;bottom:auto}
.sk-book-page[data-cap-pos=tr] figcaption{top:3%;right:1.6%;left:auto;bottom:auto}
.sk-book-page[data-cap-pos=bl] figcaption{bottom:3%;left:1.6%;right:auto;top:auto}
.sk-book-page.is-subtitle figcaption{color:#fffdf6;text-shadow:0 1px 3px rgba(20,16,30,.9),0 0 10px rgba(20,16,30,.7)}
.sk-book-try-note{margin:2px 0 0;font-size:15px;font-weight:600;line-height:1.5;color:#3d3446}
/* The finger drags the box on every screen (without this a phone scrolls the page instead and cuts the drag off). */
.sk-book-page figcaption{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}.sk-book-page figcaption.is-dragging{cursor:grabbing;outline:2px dashed #9672cb;outline-offset:3px}
.sk-book-page figcaption.is-writing{touch-action:auto;-webkit-user-select:text}
/* Pulled box size: the words fit inside (--cap-fit shrinks them only when needed). */
.sk-book-page figcaption{font-size:calc(clamp(13px,1.65vw,22px) * var(--cap-scale,1) * var(--cap-fit,1));overflow:hidden}
/* Selection frame with eight dots (desktop, when the words sit on the picture). */
.sk-cap-frame{position:absolute;z-index:3;box-sizing:border-box;border:2px dashed #9672cb;border-radius:clamp(10px,1.4vw,18px);pointer-events:none}
.sk-cap-frame[hidden]{display:none}
.sk-cap-frame span{position:absolute;width:12px;height:12px;margin:-7px 0 0 -7px;background:#fff;border:2px solid #7954b7;border-radius:3px;pointer-events:auto;touch-action:none;box-shadow:0 1px 3px #3d2a5e44}
.sk-cap-frame [data-edge=lt]{left:0;top:0;cursor:nwse-resize}.sk-cap-frame [data-edge=t]{left:50%;top:0;cursor:ns-resize}.sk-cap-frame [data-edge=rt]{left:100%;top:0;cursor:nesw-resize}
.sk-cap-frame [data-edge=r]{left:100%;top:50%;cursor:ew-resize}.sk-cap-frame [data-edge=rb]{left:100%;top:100%;cursor:nwse-resize}.sk-cap-frame [data-edge=b]{left:50%;top:100%;cursor:ns-resize}
.sk-cap-frame [data-edge=lb]{left:0;top:100%;cursor:nesw-resize}.sk-cap-frame [data-edge=l]{left:0;top:50%;cursor:ew-resize}
.sk-book-page figcaption.is-writing{cursor:text;outline:3px solid #7954b7;outline-offset:2px;user-select:text;overflow:auto}
/* Phones: the words stay on the picture (as in the real book), a little smaller. */
@media(max-width:700px){.sk-book-page figcaption{width:min(62%,640px);padding:8px 10px;border-radius:10px;line-height:1.45;font-size:calc(11px * var(--cap-scale,1) * var(--cap-fit,1))}.sk-cap-frame span{width:14px;height:14px;margin:-8px 0 0 -8px}}
/* ⛶ 크게 보기 */
.sk-big-open{position:absolute;bottom:10px;left:10px;z-index:4;border:0;border-radius:999px;padding:7px 12px;background:#2a2238cc;color:#fff;font:700 13px/1 inherit;cursor:pointer;backdrop-filter:blur(4px)}
@media(max-width:700px){.sk-big-open{bottom:6px;left:6px;padding:5px 9px;font-size:11px}}
html.sk-big-on,html.sk-big-on body{overflow:hidden}
.sk-big{position:fixed;inset:0;z-index:2147483000;background:#17121f}
.sk-big-stage{position:absolute;left:50%;top:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:6px 8px;box-sizing:border-box;transform-origin:50% 50%}
.sk-big .sk-book-page{flex:none;margin:0;max-width:none}
.sk-big .sk-big-open{display:none}
.sk-big-bar{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.sk-big-bar button{border:1px solid #ffffff40;background:#ffffff14;color:#fff;border-radius:999px;padding:6px 12px;font:600 13px/1 inherit;cursor:pointer;min-height:0}
.sk-big-bar button[aria-pressed=true]{background:#7954b7;border-color:#7954b7}
.sk-big-bar output{color:#fff;font-size:13px;min-width:56px;text-align:center}
.sk-big .sk-book-try{position:absolute;right:10px;top:46px;bottom:10px;width:min(330px,46%);overflow:hidden auto;margin:0;z-index:5;display:none;box-shadow:0 10px 30px #0008}
.sk-big.tools-open .sk-book-try{display:grid;align-content:start}
.sk-big .sk-book-try .sk-try-controls{gap:8px 14px}
/* 크게 보기 › 자막 조절: compact and scrollable (thin visible scrollbar, finger scroll stays in the panel). */
.sk-big .sk-book-try{gap:8px;padding:10px 12px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;scrollbar-width:thin;scrollbar-color:#9672cb #efe8fb}
.sk-big .sk-book-try::-webkit-scrollbar{width:6px}.sk-big .sk-book-try::-webkit-scrollbar-thumb{background:#9672cb;border-radius:3px}.sk-big .sk-book-try::-webkit-scrollbar-track{background:#efe8fb}
.sk-big .sk-book-try-title,.sk-big .sk-book-try-note{display:none}
.sk-big .sk-try-controls{display:grid;gap:8px}
.sk-big .sk-try-row,.sk-big .sk-book-lang{gap:5px}
.sk-big .sk-try-row>span,.sk-big .sk-book-lang>span{font-size:12px;min-width:52px}
.sk-big .sk-try-row button,.sk-big .sk-book-lang button{padding:5px 10px;font-size:12px;min-height:0}
.sk-big .sk-try-row input[type=range]{width:110px}
/* Mode and style choices: full names on wide screens, short names in one row each on phones. */
.sk-book-kinds .sk-short,.sk-book-styles .sk-short{display:none}
@media(max-width:700px){
 .sk-book-kinds,.sk-book-styles{flex-wrap:nowrap;gap:6px;overflow-x:auto;scrollbar-width:none}
 .sk-book-kinds::-webkit-scrollbar,.sk-book-styles::-webkit-scrollbar{display:none}
 .sk-book-kinds .sk-full,.sk-book-styles .sk-full{display:none}.sk-book-kinds .sk-short,.sk-book-styles .sk-short{display:inline}
 .sk-books .sk-book-kinds button{flex:1 1 0;min-width:0;min-height:38px;padding:7px 6px;font-size:14px;border-radius:12px;white-space:nowrap}
 .sk-books .sk-book-styles button{flex:0 0 auto;min-height:32px;padding:5px 12px;font-size:13px;white-space:nowrap}
}
.sk-try-row button:disabled{opacity:.45;cursor:not-allowed}
/* Phones: the try-it bar as compact as the choice rows above (글 표시 on one line, "만" dropped). */
.sk-book-lang .sk-short{display:none}
@media(max-width:700px){
 .sk-book-lang .sk-full{display:none}.sk-book-lang .sk-short{display:inline}
 .sk-book-try{padding:10px 12px;gap:8px}
 .sk-book-try-title{font-size:12px}
 .sk-try-controls{gap:8px 14px}
 .sk-book-lang,.sk-try-row{flex-wrap:nowrap;gap:5px}
 .sk-book-lang>span,.sk-try-row>span{font-size:12px;margin-right:2px;white-space:nowrap}
 .sk-books .sk-book-lang button,.sk-books .sk-try-row button{min-height:30px;padding:4px 10px;font-size:12px;white-space:nowrap}
 .sk-try-row output{min-width:36px;font-size:12px}
 .sk-try-row input[type=range]{width:110px}
 .sk-book-try-note{font-size:12px;line-height:1.45}
}
@media(max-width:700px){.sk-books .sk-big-open{min-height:0;padding:4px 8px;font-size:11px;bottom:6px;left:6px}}
/* 또박또박 / 동글동글 and the letter color, as in the app's caption panel. */
.sk-book-page.is-round figcaption{font-family:'Playground','Noto Sans KR',sans-serif}
.sk-book-page.has-ink figcaption{color:var(--cap-ink)}
.sk-book-page.has-ink.ink-light figcaption{text-shadow:0 1px 3px rgba(20,16,30,.9),0 0 10px rgba(20,16,30,.7)}
.sk-book-page.has-ink:not(.ink-light) figcaption{text-shadow:none}
.sk-book-page.has-ink.ink-glow figcaption{text-shadow:0 0 4px rgba(255,253,244,.95),0 0 10px rgba(255,253,244,.85)}
.sk-try-row .sk-font-round{font-family:'Playground','Noto Sans KR',sans-serif;font-weight:400}
.sk-try-row button.sk-ink{width:26px;height:26px;min-height:0;padding:0;border:2px solid #fff;border-radius:50%;background:var(--ink);box-shadow:0 0 0 1px #cbbfe0}
.sk-try-row button.sk-ink[aria-pressed=true]{background:var(--ink);border-color:#fff;box-shadow:0 0 0 3px #7954b7}
.sk-font-plain .sk-short,.sk-font-round .sk-short{display:none}
@media(max-width:600px){
 .sk-book-try>*,.sk-try-controls>*{min-width:0;max-width:100%}
 .sk-try-ink{gap:3px;overflow-x:auto;scrollbar-width:none}.sk-try-ink::-webkit-scrollbar{display:none}
 .sk-font-plain .sk-full,.sk-font-round .sk-full{display:none}.sk-font-plain .sk-short,.sk-font-round .sk-short{display:inline}
 .sk-try-row button.sk-ink{flex:0 0 auto;width:18px;height:18px}.sk-books .sk-try-row button.sk-ink-auto{padding:4px 7px}
}
/* 배경음: in the empty top-right corner of the try-it box on wide screens, a row of its own elsewhere. */
.sk-book-try{position:relative;container-type:inline-size}
.sk-try-bgm{display:grid;gap:6px;padding:10px 12px;border:1px solid #e3d8f4;border-radius:12px;background:#fff}
.sk-bgm-on{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#4b3b66;cursor:pointer}
.sk-bgm-on input{width:16px;height:16px;margin:0;accent-color:#7954b7}
.sk-try-bgm select{width:100%;min-width:0;padding:6px 8px;border:1px solid #dcd0f0;border-radius:10px;background:#faf7ff;color:#4b3b66;font:inherit;font-size:13px}
.sk-bgm-volume{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#6b5a86}
.sk-bgm-volume span{white-space:nowrap}
.sk-bgm-volume input{flex:1;min-width:0;accent-color:#7954b7}
.sk-bgm-volume output{min-width:36px;text-align:right;color:#4b3b66}
.sk-try-bgm.is-off select,.sk-try-bgm.is-off .sk-bgm-volume{opacity:.45}
@container (min-width:900px){.sk-try-bgm{position:absolute;top:12px;right:14px;width:250px}}
.sk-big .sk-try-bgm{position:static;width:auto;padding:8px 10px}
.sk-try-bgm>*{min-width:0;max-width:100%}
.sk-books .sk-try-bgm select{min-height:0;height:34px}
.sk-books .sk-try-bgm input{min-height:0}
/* 표지 만들기: a preview of the sample book's cover and a button into the app's cover editor. */
.sk-cover-card{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px;align-items:center;margin-top:18px}
.sk-cover-preview{display:block;width:100%;padding:0;border:0;border-radius:18px;overflow:hidden;background:#2e2440;cursor:pointer;box-shadow:0 12px 30px #2e244033}
.sk-cover-preview canvas{display:block;width:100%;height:auto;aspect-ratio:16/9}
.sk-cover-preview:hover{transform:translateY(-2px);transition:transform .2s}
.sk-cover-side{display:grid;gap:12px}
.sk-cover-side ul{margin:0;padding:0;list-style:none;display:grid;gap:8px;font-size:15px;color:#4b3b66}
.sk-cover-side small{font-size:12px;color:#8a7d9c}
.sk-books .sk-cover-start,.sk-cover-start{justify-self:start;padding:12px 24px;border:1px solid #7954b7;border-radius:999px;background:#7954b7;color:#fff;font:inherit;font-weight:700;cursor:pointer}
@media(max-width:700px){.sk-cover-card{grid-template-columns:1fr;gap:14px}.sk-cover-side ul{font-size:13px}.sk-cover-start{justify-self:stretch}}
