
:host { all: initial; display: block; visibility: inherit; width: 1200px; height: 1800px; overflow: hidden; background: var(--paper, #f5f5f5); color: var(--ink, #191919); font-family: "Paperlogy", "Apple SD Gothic Neo", sans-serif; word-break: keep-all; -webkit-text-size-adjust: none; }
p, h1, h2, ol, ul, dl, dt, dd, div { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
.page { position: relative; box-sizing: border-box; width: 1080px; height: 1920px; padding: 132px 112px 156px; display: flex; flex-direction: column; overflow: hidden; }
.cover { padding: 0; }
.cover img { display: block; width: 1080px; height: 1920px; }
.kicker { font-family: Georgia, serif; font-style: italic; font-size: 36px; line-height: 1; color: var(--accent, #4b4b4b); }
.kicker .of { color: var(--faint, #767676); }
.top { display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
/* ▶ 듣기(Apple 도서 소리 내어 읽기): 휴대폰에서 쪽이 1/3 로 줄어 단추가 손끝보다 작았다 — 크게 그리되 바깥 높이(62px)는 그대로(음수 여백), ::after 로 누르는 자리를 더 넓힌다 */
.listen { position: relative; display: inline-block; margin: -22px 0; padding: 30px 52px 32px; border-radius: 999px; background: var(--action, #111); color: var(--paper-hi, #fff); font-size: 44px; line-height: 1; }
.listen::after { content: ""; position: absolute; top: -28px; right: -32px; bottom: -28px; left: -32px; }
.run { position: absolute; left: 112px; right: 112px; bottom: 64px; display: flex; justify-content: space-between; padding-top: 22px; border-top: 2px solid var(--rule, #d9d9d9); font-size: 24px; color: var(--faint, #767676); }
.scene { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; margin: 48px -40px 0; }
.scene img { display: block; max-width: 100%; max-height: 100%; }
.-epub-media-overlay-active { background-color: rgba(192, 85, 58, .2); border-radius: 8px; }

/* 이렇게 읽어요 */
.big { margin-top: 40px; font-weight: normal; font-size: 104px; line-height: 1.22; letter-spacing: -2px; }
.big .accent { color: var(--accent, #4b4b4b); }
.how { margin-top: auto; border-top: 3px solid var(--ink, #191919); }
.how li { display: flex; gap: 40px; padding: 38px 0; border-bottom: 2px solid var(--rule, #d9d9d9); }
.how .num { flex: none; width: 64px; font-family: Georgia, serif; font-style: italic; font-size: 40px; color: var(--accent, #4b4b4b); }
.how p { font-size: 38px; line-height: 1.6; }
.note { margin-top: 44px; font-size: 30px; line-height: 1.6; color: var(--soft, #606060); }

/* 장 표지 */
.title { margin-top: 30px; font-family: Georgia, serif; font-weight: normal; font-size: 100px; line-height: 1.08; letter-spacing: -1.5px; }
.title-ko { margin-top: 22px; font-size: 48px; color: var(--soft, #606060); }
.caption { margin-top: 28px; font-size: 32px; line-height: 1.6; color: var(--soft, #606060); text-align: center; }

/* 구절 */
.en { margin-top: 60px; font-family: Georgia, serif; font-size: 62px; line-height: 1.42; letter-spacing: -.3px; }
.en .key { color: #c0553a; border-bottom: 3px solid #c0553a; }
.ko { margin-top: 40px; font-size: 38px; line-height: 1.65; color: var(--soft, #606060); }
.keys { margin-top: 48px; border-top: 2px solid var(--rule, #d9d9d9); }
.keys li { display: flex; align-items: baseline; gap: 28px; padding: 18px 0; border-bottom: 2px solid var(--rule, #d9d9d9); }
.keys .w { flex: none; width: 300px; font-family: Georgia, serif; font-size: 40px; }
.keys .d { font-size: 32px; color: var(--soft, #606060); }
.scene.small { margin-top: 36px; }

/* 단어 30 */
.h { margin-top: 28px; font-weight: normal; font-size: 80px; line-height: 1.15; letter-spacing: -1.5px; }
.index { margin-top: 48px; padding-top: 6px; border-top: 3px solid var(--ink, #191919); -webkit-column-count: 2; column-count: 2; -webkit-column-gap: 64px; column-gap: 64px; }
.index li { -webkit-column-break-inside: avoid; break-inside: avoid; border-bottom: 2px solid var(--rule, #d9d9d9); }
.index a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; }
.index .w { font-family: Georgia, serif; font-size: 36px; }
.index .d { font-size: 26px; color: var(--soft, #606060); white-space: nowrap; }

/* 단어 학습 */
.lemma { margin-top: 40px; font-family: Georgia, serif; font-weight: normal; font-size: 124px; line-height: 1; letter-spacing: -2px; }
.ipa { margin-top: 26px; font-family: Georgia, serif; font-size: 38px; color: var(--soft, #606060); }
.ipa .pos { margin-left: 16px; padding: 4px 16px 6px; border-radius: 999px; background: var(--paper-deep, #ededed); color: var(--ink, #191919); font-family: "Paperlogy", sans-serif; font-size: 26px; vertical-align: 6px; }
.mean { margin-top: 34px; font-size: 50px; line-height: 1.35; }
.q { margin-top: 44px; padding-left: 28px; border-left: 4px solid #c0553a; font-family: Georgia, serif; font-size: 32px; line-height: 1.55; color: #454545; }
.q b { font-weight: normal; color: #c0553a; }
.rel { margin-top: 44px; border-top: 3px solid var(--ink, #191919); }
.rel div { display: flex; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 2px solid var(--rule, #d9d9d9); }
.rel dt { flex: none; width: 184px; font-size: 26px; color: var(--soft, #606060); }
.rel dd { font-size: 28px; line-height: 1.55; }
.rel dd span[lang] { font-family: Georgia, serif; font-size: 32px; }
.rel .pos { font-style: normal; font-size: 22px; color: var(--faint, #767676); }
.ex-en { margin-top: 40px; font-family: Georgia, serif; font-style: italic; font-size: 36px; line-height: 1.45; }
.ex-ko { margin-top: 10px; font-size: 30px; line-height: 1.55; color: var(--soft, #606060); }
.tip { margin-top: 36px; padding: 24px 30px; border-radius: 20px; background: var(--paper-hi, #fff); font-size: 29px; line-height: 1.55; }

/* 신청하기(끝 장) */
.price { margin-top: 56px; display: flex; align-items: baseline; gap: 24px; }
.price del { font-size: 40px; color: var(--faint, #767676); }
.price strong { font-family: Georgia, serif; font-weight: normal; font-size: 120px; line-height: 1; color: var(--accent, #4b4b4b); }
.price .off { padding: 8px 20px 10px; border-radius: 999px; background: var(--accent, #4b4b4b); color: var(--paper-hi, #fff); font-size: 30px; }
.end-text { margin-top: 48px; font-size: 38px; line-height: 1.65; color: #454545; }
.go { margin-top: auto; display: block; padding: 40px 0 42px; border-radius: 999px; background: var(--ink, #191919); color: var(--paper-hi, #fff); font-size: 40px; text-align: center; }

/* 모든 쪽 바탕은 공통 종이 한 장. 카드 쪽은 그 위에 종이를 뺀 투명 그림(2:3)을 얹고 위쪽 빈 곳에 글을 얹는다 */
.card { padding: 96px 96px 140px; text-align: center; }
.card .bg { position: absolute; left: 0; top: 0; width: 1200px; height: 1800px; z-index: 0; }
.card > * { position: relative; z-index: 1; }
.card .run { position: absolute; left: 96px; right: 96px; text-align: left; border-top: 0; }
.card .top { text-align: left; }
/* 카드의 재생은 하단 중앙에 두고 Apple Books 미디어 오버레이를 유지한다. */
.card .top .listen { position: absolute; left: 50%; top: 1430px; width: 144px; height: 144px; box-sizing: border-box; margin: 0 0 0 -72px; padding: 0; border-radius: 50%; background: #c0553a; color: #fff; font-size: 0; }
.card .top .listen::before { content: ""; position: absolute; left: 61px; top: 48px; border-top: 24px solid transparent; border-bottom: 24px solid transparent; border-left: 36px solid white; }
.card .kicker { font-family: "Paperlogy", sans-serif; font-style: normal; font-size: 30px; color: var(--faint, #767676); }
.hw { margin-top: 30px; font-family: Georgia, serif; font-weight: normal; line-height: 1.05; letter-spacing: -1.5px; }
.hw-ko { margin-top: 14px; font-size: 44px; line-height: 1.35; color: var(--soft, #606060); }
.sent { margin-top: 44px; font-family: Georgia, serif; line-height: 1.38; letter-spacing: -.3px; }
.sent .key { color: #c0553a; }
.sent-ko { margin-top: 22px; line-height: 1.55; color: #454545; }
.sent, .sent-ko, .src { text-shadow: 0 0 8px var(--paper, #f5f5f5), 0 0 16px var(--paper, #f5f5f5), 0 0 24px var(--paper, #f5f5f5); }
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.chips li { padding: 10px 22px 12px; border-radius: 999px; background: var(--ink, #191919); color: #fff; font-size: 28px; line-height: 1.2; }
.chips span { font-family: Georgia, serif; font-size: 30px; margin-right: 8px; }
.src { margin-top: 22px; font-family: Georgia, serif; font-style: italic; font-size: 30px; color: var(--soft, #606060); }
/* 쉬운 버전: 큰 단어 강조는 글자(inline span #hw)에만, 문장·번역 줄 길이를 고르게, 번역은 어절 단위로 끊는다 */
.easy .hw span { border-radius: 6px; }
.easy .sent, .easy .sent-ko { text-wrap: balance; }
.easy .sent-ko { word-break: keep-all; }


/* 올인원 카드: 안내 줄은 위로, 문장과 주요 단어는 더 크게. */
.card.allinone .run { top: 34px; bottom: auto; padding-top: 0; }
.card.allinone .top { min-height: 0; height: 0; }
.card.allinone .hw { margin-top: 0; }
.card.allinone .hw-ko { font-size: 52px; }
.card.allinone .chips li { font-size: 34px; }
.card.allinone .chips span { font-size: 36px; }
.card.allinone .bg { transform: scale(1.12); transform-origin: 50% 100%; }
/* 표제어 위 공간과 바닥에 닿는 그림, 오른쪽 아래 재생. */
.card.allinone .hw { margin-top: 55px; }
.card.allinone .bg { top: auto; bottom: 0; transform-origin: 50% 100%; }
.card.allinone .top .listen { left: auto; right: -20px; top: 1500px; margin: 0; }
/* 그림을 더 크게 키우고 아래로 내려 페이지 바닥에 걸친다. */
.card.allinone .bg { bottom: -80px; transform: scale(1.24); transform-origin: 50% 100%; }
/* 이미지의 중앙과 바닥을 맞추고, 듣기를 단어 목록 바로 아래에 둔다. */
.card.allinone .bg { left: 50%; top: auto; bottom: 0; transform: translateX(-50%) scale(1.24); transform-origin: 50% 100%; }
.card.allinone .play-row { height: auto; min-height: 0; margin-top: 24px; display: flex; justify-content: flex-end; }
.card.allinone .play-row .listen { position: relative; left: auto; right: auto; top: auto; margin: 0; flex: none; }
/* 두 책의 푸터: 페이지 정보와 원형 재생 버튼을 같은 기준으로 놓는다. */
.card.allinone .run { top: auto; left: 44px; right: 44px; bottom: 26px; padding-top: 22px; }
.card.allinone .play-row { position: absolute; left: 50%; right: auto; top: auto; bottom: 115px; width: 144px; height: 144px; min-height: 0; margin: 0; transform: translateX(-50%); display: flex; justify-content: center; z-index: 3; }
.card.allinone .bg { bottom: -350px; }





/* 부 표지 */
.part-en { margin-top: 20px; font-family: Georgia, serif; font-style: italic; font-size: 44px; color: var(--soft, #606060); }
.part-lede { margin-top: 30px; font-size: 36px; line-height: 1.6; color: #454545; }
.cats { margin-top: 44px; border-top: 3px solid var(--ink, #191919); display: flex; flex-wrap: wrap; column-gap: 56px; }
.cats li { width: 460px; border-bottom: 2px solid var(--rule, #d9d9d9); }
.cats a { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; font-size: 29px; }
.cats .n { font-family: Georgia, serif; font-size: 26px; color: var(--faint, #767676); }
.cats.wide li { width: 976px; }
.cats.wide a { font-size: 36px; padding: 22px 0; }

/* 찾아보기 */
.idx { margin-top: 36px; display: flex; gap: 56px; border-top: 3px solid var(--ink, #191919); }
.idx ul { width: 460px; }
.idx li { display: flex; align-items: baseline; gap: 12px; height: 37px; border-bottom: 1px solid var(--rule, #d9d9d9); overflow: hidden; white-space: nowrap; }
.idx .w { flex: none; font-family: Georgia, serif; font-size: 25px; }
.idx .d { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 19px; color: var(--soft, #606060); }
.idx .p { flex: none; font-family: Georgia, serif; font-size: 19px; color: var(--accent, #4b4b4b); }
.idx .p a { margin-left: 6px; }
.idx-note { margin-top: 20px; font-size: 26px; color: var(--soft, #606060); }

/* 여행: 그림 없는 카드는 글을 지면 가운데로 */
.card.plain .hw { margin-top: auto; }
.card.plain .sent-ko { margin-bottom: auto; }
.card .run span:first-child { font-size: 22px; }
/* 분류 찾아보기 */
.find { margin-top: 36px; border-top: 3px solid var(--ink, #191919); -webkit-column-count: 2; column-count: 2; -webkit-column-gap: 56px; column-gap: 56px; }
.find section { -webkit-column-break-inside: avoid; break-inside: avoid; padding-top: 22px; }
.find h2 { font-weight: normal; font-size: 34px; color: var(--accent, #4b4b4b); padding-bottom: 8px; border-bottom: 2px solid var(--ink, #191919); }
.find a { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule, #d9d9d9); font-size: 28px; }
.find .n { font-family: Georgia, serif; font-size: 22px; color: var(--faint, #767676); }
/* 상황 한눈 목록 */
.tags { margin-top: 14px; font-size: 22px; color: var(--faint, #767676); }
.glance { margin-top: 26px; border-top: 3px solid var(--ink, #191919); }
.glance a { display: flex; gap: 18px; padding: 7px 0 8px; border-bottom: 1px solid var(--rule, #d9d9d9); }
.glance .no { flex: none; width: 34px; font-family: Georgia, serif; font-size: 20px; line-height: 34px; color: var(--accent, #4b4b4b); }
.glance .en { display: block; font-family: Georgia, serif; font-size: 26px; line-height: 1.3; }
.glance .ko { display: block; font-size: 20px; line-height: 1.35; color: var(--soft, #606060); }

/* VocaSnsAuto/hf/stack.html의 번호 · 영어 · 해석 쌓기와 하단 삽화. */
.page { width: 1080px; height: 1920px; padding-inline: 72px; }
.cover img { width: 1080px; height: 1920px; }
.run { left: 72px; right: 72px; }
.pocket-reel { padding: 78px 44px 86px; text-align: left; }
.pocket-reel .kicker { color: #c0553a; font: 700 32px/1.3 "Paperlogy", sans-serif; }
.pocket-reel .pocket-title { margin: 10px 0 20px; font-size: 66px; line-height: 1.15; }
.pocket-reel .pocket-art { flex: 1; min-height: 0; margin: 12px -44px 0; display: flex; align-items: flex-end; pointer-events: none; }
.pocket-reel .pocket-art img { display: block; width: 100%; height: 100%; max-height: 820px; object-fit: contain; object-position: center bottom; }
.pocket-reel .pocket-head, .pocket-reel .pocket-rows { position: relative; }
.pocket-reel .pocket-row { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 2px solid rgba(35, 32, 28, .16); }
.pocket-reel .pocket-row > div { flex: 1; min-width: 0; }
.pocket-reel .pocket-row:target, .pocket-reel .pocket-row[data-target-row] { background: rgba(192, 85, 58, .08); }
.pocket-reel .pocket-number { flex: 0 0 44px; color: #6b6359; font: 36px/1.2 Georgia, serif; }
.pocket-reel .pocket-en { color: #0d0b09; font: 54px/1.17 Georgia, "Times New Roman", serif; }
.pocket-reel .pocket-ko { margin-top: 4px; color: #2f2a25; font-size: 38px; line-height: 1.22; }
/* 주요 단어와 뜻을 어두운 알약에 묶는다. */
.pocket-reel .pocket-vocab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 6px; font-size: 24px; line-height: 1.22; }
.pocket-reel .pocket-word { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; padding: 3px 11px; border-radius: 999px; background: var(--ink, #191919); color: #fff; }
.pocket-reel .pocket-word [lang="en"] { color: #fff; font: 28px/1.16 Georgia, "Times New Roman", serif; }
.pocket-reel .pocket-context { color: #a9472f; }
.pocket-reel .pocket-vocab .-epub-media-overlay-active,
.pocket-reel .pocket-en .-epub-media-overlay-active { color: #a9472f; }
.pocket-reel .pocket-vocab .-epub-media-overlay-active { color: #fff; background: #a9472f; }
.pocket-reel .run { left: 44px; right: 44px; bottom: 26px; border: 0; }
/* 넉넉한 문장 간격과 하단 중앙 재생. */
.pocket-reel .pocket-head { z-index: 3; }

.pocket-reel .pocket-row { padding: 24px 0; }
.pocket-reel .top .listen { position: absolute; left: 50%; top: 1530px; width: 144px; height: 144px; box-sizing: border-box; margin: 0 0 0 -72px; padding: 0; border-radius: 50%; background: #c0553a; color: white; font-size: 0; z-index: 3; }
.pocket-reel .top .listen::before { content: ""; position: absolute; left: 61px; top: 48px; border-top: 24px solid transparent; border-bottom: 24px solid transparent; border-left: 36px solid white; }
/* 분류·제목과 재생을 하단 한 줄의 푸터로 묶는다. */
.pocket-reel .pocket-head { position: absolute; left: 44px; right: 44px; bottom: 115px; height: 144px; padding-right: 168px; box-sizing: border-box; z-index: 3; text-align: left; }
.pocket-reel .pocket-head .top { min-height: 0; height: auto; display: block; }
.pocket-reel .pocket-head .pocket-title { margin: 8px 0 0; }
.pocket-reel .pocket-head .listen { top: 0; right: 0; left: auto; margin: 0; }
/* 첫 구분선을 없애고 테마는 페이지 정보 가운데에 작게 둔다. */
.pocket-reel .pocket-row:first-child { border-top: 0; }
/* 문장 영역은 가로 구분선 없이 여백으로 구분한다. */
.pocket-reel .pocket-row { border-top: 0; }

.pocket-reel .pocket-head .pocket-title { position: absolute; top: 34px; left: 0; max-width: calc(100% - 168px); margin: 0; }
.pocket-reel .pocket-head .kicker { position: absolute; left: 50%; top: 204px; transform: translateX(-50%); width: 50%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; font-size: 24px; line-height: 1.3; }
/* 테마는 상단 왼쪽, 재생은 다른 책과 같은 하단 중앙. */
.pocket-reel .pocket-theme { margin: 0 0 24px; color: #c0553a; font: 700 32px/1.3 "Paperlogy", sans-serif; text-align: left; }
.pocket-reel .pocket-head .listen { top: 0; right: auto; left: 50%; margin: 0; transform: translateX(-50%); }






:host([data-carousel-page]) { background: transparent; }
:host([data-carousel-page]) .cover { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
:host([data-carousel-page]) .cover img { width: 84%; height: 84%; object-fit: contain; }

:host, :host([data-carousel-page]) { width: 1080px; height: 1920px; }
.page { background: #eee4cf url("/sample/pocket-paper.png") center / cover; }

/* 웹 미리보기만: 영어 문장은 줄마다 낱말을 고르게, 문장 칸은 높게, 큰 상황 제목은 머리 오른쪽(header 머리인 쪽만) */
.pocket-reel header.pocket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 20px; }
.pocket-reel header.pocket-head .pocket-title { margin: 0; text-align: right; }
.pocket-reel .pocket-row { padding-block: 28px; }
.pocket-reel .pocket-en { text-wrap: balance; }

.listen { display: none; }
