/* 패턴 90 고정 레이아웃 — 1080 × 1920, 한 화면이 한 쪽. 이 책만의 CSS(고정 레이아웃이라 px · 바탕색 · 글자색을 정한다).
   그림: 쪽 바탕 = 그림 파일의 종이색(#f6efe2)이라 네모 칸이 안 보인다 → 그림이 종이에 바로 그려진 것처럼 놓인다. 흰 카드 안에는 그림을 넣지 않는다.
   배치: 쪽(main)은 세로 flex. 글 · 단추는 제 크기, 그림(.stage)이 남는 높이를 모두 가진다 → 빈 데가 없고, 글이 길면 그림이 줄어든다.
   휴대폰에서는 약 0.36배: 본문 32px 아래는 이름표만, 영어 문장 44~52px, 누르는 자리 96px(약 35pt) 이상(듣기 단추는 아이콘이 작아도 누르는 자리는 106px). */
html, body { width: 1080px; height: 1920px; margin: 0; padding: 0; overflow: hidden; }
body { background: #f6efe2; color: #2b251e; font-family: -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; line-height: 1.45;
       word-break: keep-all; overflow-wrap: break-word; -webkit-text-size-adjust: 100%; }
main { display: flex; flex-direction: column; box-sizing: border-box; width: 1080px; height: 1920px; padding: 52px 64px 56px; }
main > * { flex: none; }
h1, h2, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: #c0553a; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.eyebrow:empty { display: none; }
.en { font-family: Georgia, "Times New Roman", serif; word-break: normal; }

/* 줄바꿈: 두 줄이 넘는 제목 · 문장 · 이름표는 줄마다 낱말을 고르게(balance), 긴 설명 글은 마지막 줄에 한 낱말만 남지 않게(pretty).
   모르는 리더는 평소 줄바꿈. 함께 다닐 말(틀 조각 · 뜻 낱말 · 빈칸과 앞 낱말)은 묶는다 */
h1, .lead, .mean, .pill, .frame, .bubble .en, .bubble .ko, .msg .en, .msg .ko, .say-it .ko, .say-it .fill, .card .ko, .write p, .how span, .how strong { text-wrap: balance; }
.tip span, .chip { text-wrap: pretty; }
.chunk, .stick { white-space: nowrap; }
.chunk.wrap { white-space: normal; }

/* 쪽 머리: 며칠째 · 하루 안의 네 단계 */
.top { display: flex; align-items: center; height: 52px; margin-bottom: 26px; }
.top b { color: #c0553a; font-size: 30px; font-weight: 800; letter-spacing: 3px; }
.dots { display: flex; margin-left: auto; }
.dots i { display: block; width: 52px; height: 10px; margin-left: 10px; border-radius: 10px; background: #e0d2ba; }
.dots .past { background: #e2ae9d; }
.dots .on { background: #c0553a; }
.top em { margin-left: 22px; color: #75695b; font-size: 30px; font-style: normal; font-weight: 800; }
h1 { margin-bottom: 14px; font-size: 64px; font-weight: 800; line-height: 1.26; letter-spacing: -1.5px; }
.lead { margin-bottom: 8px; color: #75695b; font-size: 36px; font-weight: 600; }

/* 그림 */
.stage, main > .stage { position: relative; flex: 1 1 0; min-height: 0; }
.stage img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: darken; }  /* 칸 바탕이 쪽 색으로 눌린다 */

/* 기본 플레이어는 단추 아래에 남겨 둔다. 앞 단추가 터치와 클릭을 받아 쪽 넘김을 막는다. */
.sound { flex: none; }
.sound audio { display: block; width: 392px; height: 54px; margin-bottom: 65px; -webkit-transform: scale(2.2); transform: scale(2.2); -webkit-transform-origin: left top; transform-origin: left top; }
.sound.mini:not(.ready) audio { display: none; }
.sound.ready .sound-hit { position: relative; overflow: hidden; border-radius: 50px; }
.sound.ready .sound-hit audio {
  position: absolute; left: 50%; top: 50%; width: 250px; height: 50px;
  margin: -25px 0 0 -25px; opacity: .02; display: block;
  -webkit-transform: scale(8); transform: scale(8);
  -webkit-transform-origin: 25px 25px; transform-origin: 25px 25px;
}
.sound.ready button {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; padding: 0; border: 0; background: transparent;
  touch-action: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.sound button i { display: block; width: 0; height: 0; margin-left: 4px; border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 21px solid #2b251e; }
.sound.on button i { width: 7px; height: 24px; margin: 0; border-width: 0 5px; border-style: solid; border-color: #2b251e; }
.sound:not(.wide) button i { -webkit-transform: scale(1.6); transform: scale(1.6); }  /* 글자(43~52px) 옆에서 묻히지 않게 — 그림만 키워서 줄바꿈 · 배치는 그대로 */
.sound button:active i { opacity: .7; }
.sound button:focus-visible { border-radius: 50px; outline: 4px solid #2b251e; outline-offset: -4px; }
/* '대화 전체 듣기'만 글이 있는 알약 단추 */
.sound.wide.ready { align-self: center; }
.sound.wide.ready button { width: auto; height: 84px; padding: 0 40px 0 32px; border-radius: 50px; background: #c0553a; }
.sound.wide button i { margin: 0 18px 0 0; border-left-color: #fff; }
.sound.wide.on button i { margin: 0 18px 0 0; border-color: #fff; }
.sound.wide button span { color: #fff; font-size: 32px; font-weight: 800; }
.sound.wide.on button { animation: ring 1.1s ease-out infinite; }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(192, 85, 58, .5); } to { box-shadow: 0 0 0 20px rgba(192, 85, 58, 0); } }
@media (prefers-reduced-motion: reduce) { .sound.wide.on button { animation: none; box-shadow: 0 0 0 9px rgba(192, 85, 58, .24); } }

/* 말풍선: 그림 속 사람이 하는 말. 꼬리가 위(그림)를 가리킨다 */
.bubble { position: relative; display: flex; flex-direction: column; padding: 28px 30px 28px 46px; border-radius: 46px; background: #fffcf5; box-shadow: 0 14px 36px rgba(92, 66, 36, .11); }
.p90-player .bubble { flex-direction: row; align-items: center; }  /* 단추는 글 옆. 스크립트가 없으면 넓은 기본 플레이어가 글 아래 놓인다 */
.bubble .sound:not(.ready):not(.mini) audio { margin-top: 14px; }
/* 대표 패턴은 카드 높이를 글과 단어 줄로 정하고, 듣기 버튼은 하단 여백에 겹친다. */
.k-pattern .bubble { flex-direction: column; align-items: stretch; }
.k-pattern .bubble .text { padding-right: 0; }
.p90-player .k-pattern .bubble-footer { min-height: 52px; margin-top: 6px; }
.p90-player .k-pattern .bubble-footer .word { margin-top: 0; }
.k-pattern .bubble .sound.ready { position: absolute; right: 2px; bottom: 12px; }
.k-pattern .bubble .sound-hit { border-radius: 50%; }
.k-pattern .bubble .sound.ready button { width: 128px; height: 86px; border-radius: 50%; }
.k-pattern .bubble .sound button::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 72px; height: 72px;
  transform: translate(-50%, -50%); background: #c0553a; border-radius: 50%;
}
.k-pattern .bubble .sound button i { position: relative; transform: none; -webkit-transform: none; border-left-color: #fff; }
.k-pattern .bubble .sound.on button i { border-color: #fff; }
.bubble:before { content: ""; position: absolute; top: -15px; left: 130px; width: 34px; height: 34px; border-radius: 7px; background: #fffcf5; -webkit-transform: rotate(45deg); transform: rotate(45deg); }
.text { position: relative; flex: 1 1 auto; min-width: 0; padding-right: 26px; }
.bubble .en { font-size: 52px; line-height: 1.3; }
.bubble .ko { margin-top: 8px; color: #75695b; font-size: 36px; line-height: 1.42; }
.chunk { color: #c0553a; font-weight: 700; }
.key { border-bottom: 5px dotted rgba(192, 85, 58, .55); }
.word { display: inline-block; margin-top: 14px; padding: 5px 22px; border-radius: 30px; background: rgba(192, 85, 58, .1); color: #5f5447; font-size: 30px; font-weight: 600; }
.word b { margin-right: 14px; color: #c0553a; font-family: Georgia, "Times New Roman", serif; }

/* 읽는 낱말 형광펜. 줄바꿈이 흔들리지 않게 글자 크기는 유지한다. */
.w { border-radius: 8px; }
.w.now, .-epub-media-overlay-active { color: #2b251e; background: rgba(255, 196, 61, .5); box-shadow: 0 0 0 5px rgba(255, 196, 61, .5); }
.bubble.reading { box-shadow: 0 0 0 5px rgba(192, 85, 58, .6), 0 14px 36px rgba(92, 66, 36, .11); }
.msg.reading { box-shadow: 0 0 0 5px rgba(192, 85, 58, .6), 0 10px 26px rgba(92, 66, 36, .09); }

/* 아래 단추 */
.next { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 24px; }
.next a { display: flex; align-items: center; height: 100px; padding: 0 17px 0 46px; border-radius: 60px; background: #2b251e; color: #fff; font-size: 37px; font-weight: 800; text-decoration: none; }
.next a:after { content: "\2192"; display: block; width: 68px; height: 68px; margin-left: 28px; border-radius: 50%; background: #c0553a; line-height: 64px; text-align: center; }

/* 차례(첫 쪽) */
.k-nav .brand { margin-top: 12px; color: #c0553a; font: 700 30px/1.2 Georgia, "Times New Roman", serif; letter-spacing: 9px; }
.k-nav h1 { margin: 20px 0 6px; font-size: 112px; line-height: 1.12; letter-spacing: -4px; }
.k-nav h1 span { color: #c0553a; font-family: Georgia, "Times New Roman", serif; }
.k-nav .sub { color: #75695b; font-size: 40px; font-weight: 700; }
nav h2 { margin: 6px 0 4px; color: #75695b; font-size: 28px; letter-spacing: 6px; }
nav li { margin-top: 14px; }
nav a { display: flex; align-items: center; justify-content: space-between; height: 104px; padding: 0 40px; border-radius: 34px; background: #fffcf5; box-shadow: 0 8px 22px rgba(92, 66, 36, .08);
        color: #2b251e; font-size: 38px; font-weight: 800; text-decoration: none; }
nav a:after { content: "\2192"; color: #c0553a; }

/* 공부하는 법 */
.how li { display: flex; align-items: center; margin-top: 18px; padding: 22px 34px; border-radius: 38px; background: #fffcf5; box-shadow: 0 8px 22px rgba(92, 66, 36, .08); }
.how b { flex: none; width: 74px; height: 74px; margin-right: 30px; border-radius: 50%; background: #c0553a; color: #fff; font: 700 36px/74px Georgia, "Times New Roman", serif; text-align: center; }
.how p { flex: 1 1 auto; min-width: 0; }
.how strong { display: block; font-size: 41px; }
.how span { display: block; color: #75695b; font-size: 33px; }
.chip { align-self: flex-start; margin-top: 28px; padding: 14px 40px; border-radius: 50px; background: rgba(192, 85, 58, .11); color: #c0553a; font-size: 34px; font-weight: 800; }

/* 30일 달력: 두 줄, 위에서 아래로 */
.calendar-tabs { display: flex; gap: 14px; margin-bottom: 12px; }
.calendar-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 66px; border-radius: 22px;
                   background: #fffcf5; color: #2b251e; font-size: 30px; font-weight: 800; text-decoration: none; }
.calendar-tabs a[aria-current="page"] { background: #c0553a; color: #fff; }
.days { display: flex; flex-direction: column; flex-wrap: wrap; align-content: space-between; height: 1380px; margin-top: 14px; }
.days li { display: flex; align-items: center; box-sizing: border-box; width: 466px; height: 85px; margin-bottom: 7px; border-radius: 24px; background: #fffcf5; }
.days a, .days .locked { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; height: 85px; padding: 0 24px; color: #2b251e; text-decoration: none; }
.days b { flex: none; width: 62px; color: #c0553a; font: 700 33px/1 Georgia, "Times New Roman", serif; }
.days span { flex: 1 1 auto; min-width: 0; overflow: hidden; font: 26px/1.3 Georgia, "Times New Roman", serif; white-space: nowrap; text-overflow: ellipsis; }
.days .long { font-size: 22px; letter-spacing: -.3px; }
.days .today { background: #c0553a; box-shadow: 0 10px 24px rgba(192, 85, 58, .3); }
.days .today a, .days .today b { color: #fff; font-weight: 700; }

/* 오늘의 패턴 */
.frame { font: 700 108px/1.14 Georgia, "Times New Roman", serif; letter-spacing: -2px; word-break: normal; }
.frame span { background: linear-gradient(transparent 66%, rgba(192, 85, 58, .28) 66%) no-repeat 0 0 / 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: sweep .9s ease-out .25s both; }
.frame.mid { font-size: 94px; }
.frame.small { font-size: 82px; letter-spacing: -1px; }
@keyframes sweep { from { background-size: 0 100%; } }
@media (prefers-reduced-motion: reduce) { .frame span { animation: none; } }
.mean { margin-top: 6px; color: #5f5447; font-size: 46px; font-weight: 800; }
.tip { display: flex; margin-top: 28px; padding: 26px 30px 26px 26px; border: 3px solid #e2d4bb; border-radius: 38px; font-size: 33px; line-height: 1.56; }
.tip b { flex: none; align-self: flex-start; margin-right: 22px; padding: 7px 16px; border-radius: 14px; background: #2b251e; color: #f6efe2; font-size: 25px; letter-spacing: 2px; }

/* 그림 보고 말하기 · 복습: 그림 카드가 쪽을 나눠 채운다. 카드 바탕도 종이색(그림이 갇혀 보이지 않게) */
.pill { align-self: flex-start; margin-bottom: 22px; padding: 8px 34px; border-radius: 50px; background: rgba(192, 85, 58, .12); color: #c0553a; font: 700 44px/1.4 Georgia, "Times New Roman", serif; }
.grid, main > .grid { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; }
.row { display: flex; flex: 1 1 0; justify-content: space-between; min-height: 0; margin-top: 22px; }
.card { position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 464px; padding: 12px 22px 22px; border: 3px solid #e2d4bb; border-radius: 42px; }
.card > b { position: absolute; z-index: 1; top: 18px; left: 18px; width: 56px; height: 56px; border-radius: 50%; background: #2b251e; color: #fff; font: 700 28px/56px Georgia, "Times New Roman", serif; text-align: center; }
.card .ko { min-height: 104px; font-size: 36px; font-weight: 800; line-height: 1.44; }
.fill { margin-top: 10px; color: #75695b; font: 32px/1.4 Georgia, "Times New Roman", serif; word-break: normal; }
.fill i { display: inline-block; width: 150px; border-bottom: 4px solid rgba(192, 85, 58, .55); }
.k-review .card { padding-bottom: 16px; }
.k-review .card .ko { min-height: 88px; font-size: 31px; }
.k-review .row { margin-top: 18px; }
.k-review .fill { margin-top: 4px; }
.k-review .fill i { width: 100%; height: 22px; }

/* 그림 보고 말하기: 네 줄, 그림과 우리말이 좌우를 번갈아 */
.lanes, main > .lanes { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; }
.lanes li { display: flex; flex: 1 1 0; align-items: stretch; min-height: 0; margin-top: 14px; }
.lanes li:nth-child(even) { flex-direction: row-reverse; }
.lanes .stage { flex: 0 0 500px; }
.say-it { position: relative; align-self: center; flex: 1 1 auto; min-width: 0; padding: 18px 30px 18px; border-radius: 40px; background: #fffcf5; box-shadow: 0 12px 30px rgba(92, 66, 36, .1); }
.say-it:before { content: ""; position: absolute; top: 50%; left: -13px; width: 30px; height: 30px; margin-top: -15px; border-radius: 6px; background: #fffcf5; -webkit-transform: rotate(45deg); transform: rotate(45deg); }
.lanes li:nth-child(even) .say-it:before { right: -13px; left: auto; }
.say-it b { display: block; color: #c0553a; font: 700 30px/1 Georgia, "Times New Roman", serif; }
.say-it .ko { margin-top: 10px; font-size: 37px; font-weight: 800; line-height: 1.42; }
.say-it .fill { margin-top: 12px; }
.say-it .fill i { width: 120px; }

/* 정답: 그림 → 그 사람의 말 */
.shot { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; }
.shot + .shot { margin-top: 26px; }
.shot .bubble { flex: none; margin-top: 10px; }
.k-review-a .bubble { padding-top: 20px; padding-bottom: 20px; }
.k-review-a .bubble .en { font-size: 45px; }
.k-review-a .bubble .ko { font-size: 32px; }

/* 대표 문장 복습 */
.review-list { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.review-list .bubble { padding: 16px 28px; }
.review-list .bubble::before { display: none; }
.review-list .bubble .en { font-size: 44px; }
.review-list .bubble .ko { font-size: 32px; }
.review-list .sound audio { width: 100%; margin: 8px 0 0; transform: none; -webkit-transform: none; }
.review-day { display: block; margin-bottom: 5px; color: #75695b; font-size: 26px; }

/* 대화: A 는 왼쪽, B 는 오른쪽, 말마다 듣기 단추 */
.k-talk .sound.wide { margin: 8px 0 10px; }
.talk li { display: flex; align-items: flex-end; margin-top: 18px; }
.talk .who { flex: none; width: 66px; height: 66px; border-radius: 50%; background: #2b251e; color: #fff; font: 700 29px/66px Georgia, "Times New Roman", serif; text-align: center; }
.msg { display: flex; align-items: center; max-width: 836px; padding: 16px 18px 16px 34px; border-radius: 42px 42px 42px 12px; background: #fffcf5; box-shadow: 0 10px 26px rgba(92, 66, 36, .09); }
.talk .who + .msg { margin-left: 18px; }
.talk .me { flex-direction: row-reverse; }
.talk .me .who { background: #c0553a; }
.talk .me .msg { margin: 0 18px 0 0; border-radius: 42px 42px 12px 42px; background: #fbe6dd; }
.msg .text { padding-right: 20px; }
.msg .en { font-size: 43px; line-height: 1.32; }
.msg .ko { margin-top: 4px; color: #6d6154; font-size: 32px; line-height: 1.4; }
.k-talk-ko .talk li { margin-top: 22px; }

/* 내 문장 만들기 */
.write li { display: flex; margin-top: 22px; padding: 28px 34px 30px; border-radius: 40px; background: #fffcf5; box-shadow: 0 8px 22px rgba(92, 66, 36, .08); }
.write b { flex: none; width: 60px; height: 60px; margin-right: 26px; border-radius: 50%; background: rgba(192, 85, 58, .14); color: #c0553a; font: 700 30px/60px Georgia, "Times New Roman", serif; text-align: center; }
.write div { flex: 1 1 auto; min-width: 0; }
.write p { font-size: 41px; font-weight: 800; line-height: 1.42; }
.write i { display: block; height: 72px; border-bottom: 4px dotted rgba(192, 85, 58, .55); }

/* 내 문장 정답 */
.own .bubble { margin-top: 24px; padding-top: 20px; padding-bottom: 20px; }
.own .bubble:before { display: none; }
.own .ko { margin: 0 0 6px; }
.own .bubble .en { font-size: 46px; font-weight: 700; }

/* 완주 */
.stamp { align-self: center; margin: 0 0 14px; padding: 12px 46px; border: 8px double #c0553a; border-radius: 60px; color: #c0553a; font-size: 40px; font-weight: 800; -webkit-transform: rotate(-4deg); transform: rotate(-4deg); }
.stamp b { margin-right: 6px; font: 700 52px/1 Georgia, "Times New Roman", serif; }
.k-finish h1 { text-align: center; }
.recap { display: flex; flex-direction: column; flex-wrap: wrap; align-content: space-between; height: 690px; margin-top: 8px; padding: 22px 34px; border-radius: 40px; background: #fffcf5; }
.recap li { display: flex; width: 430px; height: 45px; overflow: hidden; font: 29px/45px Georgia, "Times New Roman", serif; white-space: nowrap; }
.recap b { flex: none; width: 56px; color: #c0553a; }

/* 완주 쪽: 다음 권 안내 */
.after { margin-top: 18px; text-align: center; }

:host { display:block; width:1200px; height:1800px; overflow:hidden; background:#f6efe2; }
.fixed-preview { width:1080px; margin-inline:auto; transform:scale(.9375); transform-origin:top center; }
.fixed-preview .sound, .fixed-preview .next { display:none; }
.fixed-preview .k-pattern > .stage { margin-right:0; }
.fixed-preview .review-list .bubble { padding:18px 28px; }
.fixed-preview .review-list .bubble .en { font-size:54px; line-height:1.25; }
.fixed-preview .review-list .bubble .ko { font-size:36px; line-height:1.4; }
.fixed-preview .review-day { display:inline-block; margin-bottom:10px; padding:4px 16px; border-radius:999px; background:#1d1d1f; color:#fff; font-size:26px; line-height:1.3; }
/* 목차(90일 달력) 쪽: 줄이지 않고 1200 판을 다 쓴다(바깥 여백 ↓). 큰 제목 · 설명 → 날짜 → 맨 아래 기간 탭(1~30 · 31~60 · 61~90일).
   날짜 칸은 2열 × 15줄 grid 가 남는 높이를 다 나눠 가진다 — 아래 빈자리가 남지 않고, 설명이 두 줄이 돼도 넘치지 않는다 */
.fixed-preview:has(> .k-chart) { width:1200px; transform:none; }
.fixed-preview:has(> .k-chart) > .k-chart { width:1200px; height:1800px; padding:88px 36px 36px; }
.fixed-preview:has(> .k-chart) h1 { margin-bottom:12px; font-size:84px; line-height:1.2; letter-spacing:-2px; }
.fixed-preview:has(> .k-chart) .lead { margin-bottom:0; }
.fixed-preview:has(> .k-chart) .days { display:grid; flex:1 1 0; min-height:0; height:auto; margin-top:32px; grid-template-columns:1fr 1fr; grid-template-rows:repeat(15, 1fr); grid-auto-flow:column; gap:12px 24px; }
.fixed-preview:has(> .k-chart) .days li { width:auto; height:auto; margin:0; }
.fixed-preview:has(> .k-chart) :is(.days a, .days .locked, .days label) { height:auto; align-self:stretch; }
.fixed-preview:has(> .k-chart) .days label { width:66px; }
.fixed-preview:has(> .k-chart) .days b { width:66px; font-size:36px; }
.fixed-preview:has(> .k-chart) .days span { font-size:32px; }
.fixed-preview:has(> .k-chart) .calendar-tabs { order:1; margin:32px 0 0; }
.fixed-preview:has(> .k-chart) .calendar-tabs a { min-height:76px; font-size:32px; }
.page.cover img { display:block; width:100%; height:1800px; object-fit:contain; }
