/* Bookworm School — official site. Style "一天": the page scrolls from a summer morning to a starry night,
   drawn in a Japanese-anime look with original art only (never copyrighted characters).
   Shared by all languages (site/<lang>/), built by tools/site_build.py.
   Each page defines its own CJK serif ("BW Serif"), --serif and --sans in a small <style> block. */
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }

:root {
  --navy: #173A5E;
  --navy-soft: #4D6680;
  --navy-faint: #8597AA;
  --sky-deep: #2468C7;
  --sky: #4E9BE3;
  --sky-pale: #EAF4FC;
  --sun: #F6C25B;
  --night: #13213F;
  --star: #FFF3CF;
  --line: #D8E3EE;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #F6F9FB; color: var(--navy); font-family: var(--sans); font-size: 17px; line-height: 1.85; letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { line-height: 1.7; letter-spacing: 0; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }
html[lang="ja"] body { word-break: auto-phrase; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ----------
   Lucien 2026-10-25: make the title and menu stand out — logo badge + bold rounded wordmark, menu as pills on a frosted bar,
   and a bright "free trial" button. Fredoka (OFL, self-hosted) is used only for the Latin wordmark. */
@font-face { font-family: "Fredoka"; src: url("assets/fonts/fredoka-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand .badge { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px #CDBDFF, 0 6px 16px rgba(60, 40, 150, .22); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.brand .badge svg { width: 40px; height: 44px; margin-top: 2px; }
.brand:hover .badge { transform: rotate(-8deg) scale(1.06); }
.wm { font-family: "Fredoka", var(--sans); font-weight: 600; font-size: 29px; line-height: 1; letter-spacing: .005em; white-space: nowrap; }
.wm1 { color: #5B3FC4; }
.wm2 { color: #F08A12; }
.nav { display: flex; gap: 4px; padding: 5px; border-radius: 999px; font-size: 16px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--navy); padding: 8px 17px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.nav a:hover { background: #F1EDFF; color: #5B3FC4; }
.nav a[aria-current="page"] { background: #EDE7FF; color: #5B3FC4; }
.nav-cta { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 999px; background: #FFD45E; color: #3E2A8C; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 0 #E3A52C, 0 10px 22px rgba(227, 165, 44, .35); transition: transform .15s, box-shadow .15s, background .2s; }
.nav-cta:hover { background: #FFDD78; transform: translateY(-1px); }
.nav-cta:active { transform: translateY(3px); box-shadow: 0 1px 0 #E3A52C, 0 4px 10px rgba(227, 165, 44, .3); }
footer .wm1 { color: #fff; } footer .wm2 { color: #FFD45E; } footer .wm { font-size: 24px; }
/* home page: the menu floats over the morning sky, then becomes a frosted white bar once the sky has scrolled away */
html { scroll-padding-top: 92px; }
.home .top { position: fixed; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid transparent; transition: background .35s, border-color .35s, box-shadow .35s; }
.home .top:not(.solid) .wm1 { color: #fff; }
.home .top:not(.solid) .wm2 { color: #FFD45E; }
.home .top:not(.solid) .wm { text-shadow: -1.5px -1.5px 0 #5B3FC4, 1.5px -1.5px 0 #5B3FC4, -1.5px 1.5px 0 #5B3FC4, 1.5px 1.5px 0 #5B3FC4, 0 3.5px 0 #5B3FC4, 0 8px 20px rgba(30, 20, 90, .35); }
.home .top:not(.solid) .nav { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 8px 24px rgba(23, 58, 94, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.home .top:not(.solid) .nav a { color: #fff; text-shadow: 0 1px 6px rgba(23, 58, 94, .4); }
.home .top:not(.solid) .nav a:hover { background: rgba(255, 255, 255, .3); color: #fff; }
.home .top:not(.solid) .langs summary { color: #fff; text-shadow: 0 1px 6px rgba(23, 58, 94, .4); background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.home .top.solid { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); border-bottom-color: rgba(216, 227, 238, .9); box-shadow: 0 6px 24px rgba(23, 58, 94, .08); }
@media (max-width: 960px) { .nav { display: none; } .top .wrap { gap: 10px; height: 72px; } }
@media (max-width: 960px) and (min-width: 561px) { .brand .badge { width: 46px; height: 46px; } .brand .badge svg { width: 36px; height: 40px; } .wm { font-size: 26px; } }
@media (max-width: 560px) {
  .top .wrap { height: 64px; gap: 8px; }
  .brand { gap: 8px; } .brand .badge { width: 38px; height: 38px; box-shadow: 0 0 0 2px #CDBDFF, 0 4px 10px rgba(60, 40, 150, .2); } .brand .badge svg { width: 30px; height: 33px; }
  .wm { font-size: 19px; }
  .nav-cta { height: 36px; padding: 0 13px; font-size: 14px; box-shadow: 0 3px 0 #E3A52C, 0 6px 14px rgba(227, 165, 44, .3); }
  .langs summary > span { display: none; }
}

.langs { position: relative; font-size: 14px; }
.langs summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; height: 46px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; font-size: 15px; font-weight: 500; color: var(--navy); background: #fff; white-space: nowrap; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary svg { width: 16px; height: 16px; }
.langs summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.langs ul { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 8px; min-width: 168px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 36px rgba(23, 58, 94, .16); }
.langs li a { display: block; padding: 9px 14px; border-radius: 9px; text-decoration: none; color: var(--navy-soft); text-shadow: none; }
.langs li a:hover { background: var(--sky-pale); color: var(--navy); }
.langs li a[aria-current="true"] { color: var(--navy); font-weight: 500; }
.langs li a[aria-current="true"]::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); margin-left: 10px; vertical-align: middle; }
@media (max-width: 560px) { .langs summary { height: 36px; padding: 0 11px; gap: 4px; font-size: 13px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font: inherit; font-size: 16px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s; }
.btn.white { background: #fff; color: var(--navy); font-weight: 500; box-shadow: 0 10px 30px rgba(23, 58, 94, .18); }
.btn.white:hover { background: var(--sky-pale); }
.btn.clear { background: rgba(23, 58, 94, .32); border-color: rgba(255, 255, 255, .7); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn.clear:hover { background: rgba(23, 58, 94, .45); }
.btn.star { background: var(--star); color: var(--night); font-weight: 500; box-shadow: 0 0 40px rgba(255, 243, 207, .35); }
.btn.star:hover { background: #fff; }
.btn[aria-disabled="true"] { cursor: default; background: #fff; color: var(--navy-faint); border-color: var(--line); }
.btn small { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #FFE9A8; color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- shared section type ---------- */
section.block { position: relative; padding: clamp(84px, 11vw, 140px) 0; }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(44px, 6vw, 76px); }
.head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.1vw, 50px); line-height: 1.32; letter-spacing: .04em; text-wrap: balance; }
html[lang="en"] .head h2, html[lang="ko"] .head h2 { letter-spacing: -.005em; line-height: 1.2; }
.head p { margin: 0; color: var(--navy-soft); max-width: 32em; }
.time { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-family: "Newsreader", serif; font-style: italic; font-weight: 300; font-size: 19px; color: var(--sky-deep); }
.time svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 760px) { .head { grid-template-columns: 1fr; } }

/* ---------- 1. summer morning (hero) ---------- */
.morning { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; color: #fff; background: var(--sky-deep); }
.morning .bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.morning .wrap { position: relative; z-index: 2; padding-top: clamp(120px, 18vh, 190px); padding-bottom: 60px; }
.morning .eyebrow { font-family: "Newsreader", serif; font-style: italic; font-weight: 300; font-size: 21px; margin: 0 0 18px; text-shadow: 0 1px 10px rgba(23, 58, 94, .35); }
.morning h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.4vw, 76px); line-height: 1.28; letter-spacing: .06em; text-shadow: 0 2px 22px rgba(23, 58, 94, .35); }
html[lang="en"] .morning h1 { letter-spacing: -.01em; line-height: 1.1; font-size: clamp(38px, 4.3vw, 60px); }
html[lang="ja"] .morning h1, html[lang="ko"] .morning h1 { letter-spacing: .02em; font-size: clamp(34px, 4.3vw, 60px); }
.morning h1 .line { display: block; }
.morning .wrap > * { max-width: 640px; }
@media (min-width: 861px) { html[lang^="zh"] .morning h1 .line { white-space: nowrap; } html[lang^="zh"] .morning .wrap > h1 { max-width: none; } }
.morning .sub { margin: 26px 0 0; max-width: 27em; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.9; text-shadow: 0 1px 10px rgba(23, 58, 94, .45); }
html[lang="en"] .morning .sub { line-height: 1.7; }
.morning .actions { margin-top: 36px; }
.book { position: absolute; z-index: 3; pointer-events: none; right: max(2vw, calc(50% - 720px)); bottom: -2%; width: min(46vw, 640px); }
.book svg { width: 100%; height: auto; overflow: visible; }
.fly path { stroke: #8FB0D1; stroke-width: 1.5; stroke-linejoin: round; }
.fly { transform-box: fill-box; transform-origin: center; animation: fly 2.4s cubic-bezier(.2, .7, .2, 1) both; }
.fly.f2 { animation-delay: .25s; } .fly.f3 { animation-delay: .5s; } .fly.f4 { animation-delay: .75s; } .fly.f5 { animation-delay: 1s; }
@keyframes fly { from { opacity: 0; transform: translate(-40px, 140px) scale(.5) rotate(-20deg); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fly { animation: none; } }
@media (max-width: 860px) {
  .morning { min-height: 0; padding-bottom: 92vw; }
  .morning .wrap { padding-top: 104px; padding-bottom: 0; }
  .poles { display: none; }
  .book { right: 50%; transform: translateX(50%); width: 104vw; bottom: -1%; }
}

/* ---------- 2. late morning: the idea ---------- */
.idea-sec { background: linear-gradient(180deg, #E4F2FB 0%, #F6F9FB 100%); overflow: hidden; }
.idea-sec .cloud-deco { position: absolute; top: 40px; right: -60px; width: 340px; }
.idea-sec .wrap { position: relative; }
.ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.idea { background: #fff; border-radius: 24px; padding: 30px 28px 32px; box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(36, 104, 199, .07); }
.idea .ic { width: 64px; height: 64px; margin-bottom: 20px; }
.idea h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.45; }
.idea p { margin: 0; color: var(--navy-soft); font-size: 16px; }
@media (max-width: 860px) { .ideas { grid-template-columns: 1fr; } .idea-sec .cloud-deco { width: 200px; right: -70px; top: 20px; } }

/* ---------- 3. noon: one class ---------- */
.noon { background: #F6F9FB; }
.noon .time { color: #D9922E; }
.lesson { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 46px 1fr; gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-pale); color: var(--sky-deep); font-family: "Newsreader", serif; font-size: 18px; margin-top: 2px; }
.steps b { font-weight: 500; font-size: 17px; }
.steps span { color: var(--navy-soft); font-size: 15px; line-height: 1.7; }
.devices { position: sticky; top: 104px; margin: 0; }
.laptop { position: relative; }
.laptop .screen { background: #1E2A3A; border-radius: 18px 18px 6px 6px; padding: 14px 14px 18px; box-shadow: 0 30px 60px rgba(23, 58, 94, .18); }
.laptop .screen img { width: 100%; height: auto; border-radius: 6px; background: #fff; }
.laptop .base { height: 16px; margin: 0 -5%; border-radius: 0 0 18px 18px; background: linear-gradient(#D7DEE6, #B9C4D0); }
.phone { position: absolute; right: -3%; bottom: -14%; width: 27%; background: #1E2A3A; border-radius: 26px; padding: 7px; box-shadow: 0 24px 50px rgba(23, 58, 94, .28); }
.phone img { width: 100%; height: auto; border-radius: 20px; background: #fff; }
.devices figcaption { margin-top: clamp(48px, 9vw, 96px); font-size: 13px; color: var(--navy-faint); line-height: 1.6; max-width: 30em; }
@media (max-width: 860px) { .lesson { grid-template-columns: 1fr; } .devices { position: static; } .phone { right: -1%; } }

/* ---------- 4. afternoon: levels on a wooden shelf ---------- */
.afternoon { background: linear-gradient(180deg, #F6F9FB 0%, #FFF4E0 100%); }
.afternoon .time { color: #D9822E; }
.shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; padding: 0 14px; }
.spine { position: relative; border-radius: 8px 8px 2px 2px; color: #fff; padding: 18px 14px 16px; display: flex; flex-direction: column; text-decoration: none; box-shadow: inset -10px 0 0 rgba(0, 0, 0, .08), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.spine::before, .spine::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: rgba(255, 236, 180, .75); }
.spine::before { top: 26%; } .spine::after { top: calc(26% + 7px); }
.spine .lv { font-family: "Newsreader", serif; font-size: 32px; line-height: 1; font-weight: 300; }
.spine .cefr { font-size: 12.5px; opacity: .9; margin-top: 8px; }
.spine .meta { margin-top: auto; font-size: 13px; line-height: 1.6; opacity: .95; }
.spine .state { display: inline-block; margin-top: 12px; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); align-self: flex-start; }
.spine.open .state { background: #FFE9A8; color: var(--navy); }
.spine.open:hover { filter: brightness(1.06); }
.s1 { height: 300px; background: #5FAE6B; } .s2 { height: 330px; background: #3E9E9A; } .s3 { height: 360px; background: #3D86C8; }
.s4 { height: 390px; background: #4E68B8; } .s5 { height: 420px; background: #6F5FA0; } .s6 { height: 450px; background: #8A4F86; }
.plank { height: 22px; border-radius: 4px; background: linear-gradient(#C99A62, #A97A44); box-shadow: 0 14px 24px rgba(120, 80, 30, .22); }
.shelf-note { margin: 26px 0 0; color: var(--navy-soft); font-size: 15px; max-width: 46em; }
@media (max-width: 860px) {
  .shelf { grid-template-columns: 1fr; gap: 8px; padding: 0; }
  .spine { height: auto !important; border-radius: 10px; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 18px; }
  .spine::before, .spine::after { display: none; }
  .spine .meta { margin: 0; width: 100%; } .spine .state { margin: 0; }
  .plank { display: none; }
}

/* placement test, still afternoon */
section.block.test-sec { background: #FFF4E0; padding-top: 0; }
.test { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 88px); align-items: center; background: #fff; border-radius: 32px; padding: clamp(28px, 5vw, 64px); box-shadow: 0 24px 60px rgba(160, 110, 40, .1); }
.test .head { grid-template-columns: 1fr; margin-bottom: 0; }
.test .head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.test-kinds { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.test-kinds li { padding-left: 20px; position: relative; color: var(--navy-soft); font-size: 16px; }
.test-kinds li::before { content: ""; position: absolute; left: 0; top: .7em; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); }
.test-card { background: var(--sky-pale); border-radius: 22px; padding: clamp(22px, 3.4vw, 36px); }
.test-card .q { font-family: "Newsreader", serif; font-size: 26px; font-weight: 300; margin: 0 0 20px; }
.pics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pics div { aspect-ratio: 1; border-radius: 14px; background: #fff; display: grid; place-items: center; border: 2px solid transparent; }
.pics div.on { border-color: var(--sky); }
.pics svg { width: 86%; }
.test-card .bar { height: 5px; border-radius: 5px; background: #fff; margin-top: 22px; overflow: hidden; }
.test-card .bar i { display: block; height: 100%; width: 38%; background: var(--sky); }
.test-card p { margin: 12px 0 0; font-size: 13px; color: var(--navy-faint); }
@media (max-width: 860px) { .test { grid-template-columns: 1fr; } .test-kinds { grid-template-columns: 1fr; } }

/* ---------- 5. sunset: our story ---------- */
.sunset { position: relative; color: #fff; background: linear-gradient(180deg, #F9C98A 0%, #F09A72 18%, #D9758A 40%, #8F6AAE 66%, #5E5A9E 100%); padding: 0 0 clamp(90px, 11vw, 140px); overflow: hidden; }
.sunset .scene { display: block; width: 100%; height: auto; }
.sunset .page { position: relative; max-width: 700px; margin: clamp(-90px, -6vw, -40px) auto 0; background: #FFFBF4; color: #3B2E3F; border-radius: 6px; padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 72px) clamp(40px, 6vw, 64px); box-shadow: 0 30px 80px rgba(60, 30, 70, .35); }
.sunset .page::before { content: ""; position: absolute; left: 50%; top: -14px; width: 120px; height: 28px; margin-left: -60px; background: rgba(255, 236, 200, .85); transform: rotate(-2deg); border-radius: 2px; }
.sunset .kicker { font-family: "Newsreader", serif; font-style: italic; font-weight: 300; color: #D9758A; font-size: 20px; margin: 0 0 14px; }
.sunset h2 { margin: 0 0 40px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.3; letter-spacing: .04em; text-wrap: balance; }
html[lang="en"] .sunset h2, html[lang="ko"] .sunset h2 { letter-spacing: -.005em; }
.sunset .page p { font-family: var(--serif); font-weight: 300; font-size: clamp(17px, 1.8vw, 20px); line-height: 2.05; margin: 0 0 1.4em; }
html[lang="en"] .sunset .page p { line-height: 1.75; }
.sunset .name { text-align: center; margin: 2em 0; }
.sunset .name span { display: block; font-family: var(--serif); font-size: 15px; color: #8C7A8E; }
.sunset .name b { display: block; font-family: "Newsreader", serif; font-weight: 300; font-style: italic; font-size: clamp(48px, 8vw, 84px); line-height: 1.1; color: #C9607A; letter-spacing: -.02em; }
.sunset .page p.motto { text-align: center; font-size: 21px; margin: 2.2em 0 .6em; font-weight: 400; }
.sunset .page p.sign { text-align: right; color: #8C7A8E; font-family: var(--sans); font-size: 15px; margin: 0; }

/* ---------- 6. dusk: fees and questions ---------- */
.dusk { background: linear-gradient(180deg, #5E5A9E 0%, #3E4A86 22%, #2A3A6E 60%, #1E2E5C 100%); color: #fff; }
.dusk .head p, .dusk .faq details p { color: rgba(255, 255, 255, .8); }
.dusk .time { color: #FFD9A0; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.plan { border-radius: 26px; padding: clamp(30px, 4vw, 48px); }
.plan.now { background: #fff; color: var(--navy); box-shadow: 0 24px 60px rgba(10, 15, 40, .3); }
.plan.later { border: 1px dashed rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .85); }
.plan h3 { margin: 0; font-weight: 400; font-size: 17px; }
.plan .price { font-family: var(--serif); font-weight: 300; font-size: clamp(54px, 7vw, 82px); line-height: 1.1; margin: 20px 0 6px; letter-spacing: -.01em; }
.plan.later .price { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.6; color: rgba(255, 255, 255, .7); }
.plan .unit { font-size: 15px; opacity: .75; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 0; }
.plan li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.plan.later li { border-top-color: rgba(255, 255, 255, .2); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.faq-wrap { margin-top: clamp(90px, 11vw, 140px); }
.faq { max-width: 860px; }
.faq details { border-top: 1px solid rgba(255, 255, 255, .2); }
.faq details:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: translateY(-75%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { margin: -6px 0 24px; max-width: 40em; }
.faq a { color: #FFD9A0; }

/* ---------- 7. night: closing ---------- */
.night { position: relative; color: #fff; background: linear-gradient(180deg, #1E2E5C 0%, #16244A 45%, var(--night) 100%); text-align: center; overflow: hidden; }
.night .sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.night .wrap { position: relative; padding-top: clamp(110px, 14vw, 170px); }
.night p.end { margin: 0 auto 34px; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 4vw, 46px); line-height: 1.4; letter-spacing: .04em; max-width: 18em; text-wrap: balance; }
html[lang="en"] .night p.end, html[lang="ko"] .night p.end { letter-spacing: -.005em; }
.night .actions { justify-content: center; }
.night .town { position: relative; display: block; width: 100%; height: auto; margin-top: clamp(40px, 6vw, 70px); }
.twinkle { animation: twinkle 3.6s ease-in-out infinite; }
.twinkle.t2 { animation-delay: 1.2s; } .twinkle.t3 { animation-delay: 2.4s; }
@keyframes twinkle { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .twinkle { animation: none; } }

footer { background: var(--night); color: rgba(255, 255, 255, .62); padding: 36px 0 56px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
footer .brand b { color: #fff; }
footer nav { display: flex; gap: 24px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }

/* plain text pages (privacy) */
.doc { max-width: 720px; padding: clamp(56px, 9vw, 110px) 0; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 52px); margin: 0 0 12px; letter-spacing: .03em; }
.doc .date { color: var(--navy-faint); font-size: 14px; margin: 0 0 48px; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 44px 0 10px; }
.doc p, .doc li { color: var(--navy-soft); }

/* =========================================================
   Motion. Miss Bookworm is alive; each time of day moves a little.
   Everything below stops for visitors who ask for reduced motion.
   ========================================================= */
.mb *, .crawler * { transform-box: fill-box; }
/* idle: she breathes, blinks, her antennae sway, and now and then she turns a page */
.sit .mb-head { transform-origin: 50% 100%; animation: breathe 3.4s ease-in-out infinite; }
.sit .mb-ant-l { transform-origin: 100% 100%; animation: sway 2.6s ease-in-out infinite; }
.sit .mb-ant-r { transform-origin: 0% 100%; animation: sway 2.6s ease-in-out infinite reverse; }
.sit .mb-eyes { transform-origin: center; animation: blink 4.8s infinite; }
.sit .mb-shut, .sit .mb-open { opacity: 0; }
.sit .mb-page { transform-origin: 0% 50%; animation: page 9s ease-in-out infinite; opacity: 0; }
@keyframes breathe { 50% { transform: translateY(-2px) rotate(-1.5deg); } }
@keyframes sway { 50% { transform: rotate(-9deg); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.1); } }
@keyframes page { 0%, 78% { opacity: 0; transform: scaleX(1); } 80% { opacity: 1; } 90% { opacity: 1; transform: scaleX(-1); } 92%, 100% { opacity: 0; transform: scaleX(-1); } }
/* tap: she waves and talks */
.tap-me { cursor: pointer; outline: none; }
.tap-me:focus-visible .mb-head { filter: drop-shadow(0 0 6px #fff); }
.sit.waving .mb-hand-r { transform-origin: 0% 50%; animation: wave .5s ease-in-out 3; }
@keyframes wave { 50% { transform: translate(6px, -26px) rotate(-30deg); } }
.sit.talking .mb-smile { opacity: 0; }
.sit.talking .mb-open { opacity: 1; transform-origin: center; animation: talk .22s ease-in-out infinite alternate; }
@keyframes talk { from { transform: scaleY(.35); } to { transform: scaleY(1.1); } }
.sit.talking .mb-cheek { transform-origin: center; animation: talk .44s ease-in-out infinite alternate; }

/* the crawling pose: segments lift one after another, like an inchworm */
.crawler .seg { animation: inch .9s ease-in-out infinite; }
.crawler .s1 { animation-delay: .12s; } .crawler .s2 { animation-delay: .24s; } .crawler .s3 { animation-delay: .36s; }
.crawler .s0 { animation-name: inch-head; }
@keyframes inch { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px); } }
@keyframes inch-head { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(4px, -5px) rotate(3deg); } }

/* hero: she crawls in along the big book, then sits down to read */
/* nothing moves until the book is on screen (site.js adds .go), so every visitor sees her arrive */
.crawl-in, .book .sit, .tap-hint { opacity: 0; }
.book.go .crawl-in { animation: crawl-in 3.2s linear .2s both; }
@keyframes crawl-in { 0% { transform: translateX(390px); opacity: 0; } 6% { opacity: 1; } 88% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
.book.go .sit { animation: appear .5s ease-out 3.1s both; }
/* only Miss Bookworm and her bubble catch the mouse; the empty sky in the picture lets clicks through */
.book .tap-me, .book .tap-hint { pointer-events: auto; cursor: pointer; }
.book .tap-me > g { transition: transform .2s; }
.book .tap-me:hover .mb-head { filter: brightness(1.06); }
.book.tapped .tap-hint { pointer-events: none; }
/* a little "Tap me!" bubble once she has sat down; gone after the first tap */
.book.go .tap-hint { animation: appear .4s ease-out 3.8s both; }
.tap-bob { animation: bob 2.4s ease-in-out infinite; }
.book.tapped .tap-hint { animation: none; opacity: 0; transition: opacity .3s; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* morning: wisps drift, a tram runs past, paper birds keep floating */
.drift { animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(90px); } }
.tram-run { animation: tram 30s linear 2s infinite; transform: translateX(-500px); }
@keyframes tram { 0% { transform: translateX(-500px); } 40%, 100% { transform: translateX(2100px); } }
.bob { animation: bob 3.4s ease-in-out 2.4s infinite; }
.f2 .bob { animation-duration: 4.1s; } .f3 .bob { animation-duration: 3.7s; } .f4 .bob { animation-duration: 4.6s; } .f5 .bob { animation-duration: 3.2s; }
@keyframes bob { 50% { transform: translate(8px, -10px) rotate(4deg); } }

/* afternoon: Miss Bookworm crawls along the tops of the six books as you scroll */
.shelf { position: relative; }
.shelf-crawler { position: absolute; left: 0; top: 0; width: 106px; pointer-events: none; transition: transform .35s ease-out; will-change: transform; }
.shelf-crawler svg { width: 100%; height: auto; overflow: visible; }
@media (max-width: 860px) { .shelf-crawler { display: none; } }

/* sunset: a small flock crosses the evening sky */
.flock { animation: flock 22s linear infinite; }
@keyframes flock { from { transform: translateX(-1100px); } to { transform: translateX(700px); } }
.flap { transform-origin: 50% 80%; animation: flap .6s ease-in-out infinite; }
.flap.f2 { animation-delay: .2s; } .flap.f3 { animation-delay: .4s; }
@keyframes flap { 50% { transform: scaleY(-.6); } }

/* night: a shooting star, fireflies, and a sleepy yawn */
.shoot { opacity: 0; animation: shoot 11s ease-in 3s infinite; }
@keyframes shoot { 0% { opacity: 0; transform: translate(260px, 40px) rotate(18deg); } 2% { opacity: 1; } 9% { opacity: 0; transform: translate(760px, 200px) rotate(18deg); } 100% { opacity: 0; transform: translate(760px, 200px) rotate(18deg); } }
.fly-bug { animation: bug 5s ease-in-out infinite; filter: drop-shadow(0 0 4px #FFE88A); }
.fly-bug.b2 { animation-duration: 6.4s; animation-delay: 1s; } .fly-bug.b3 { animation-duration: 7.2s; animation-delay: 2s; } .fly-bug.b4 { animation-duration: 5.6s; animation-delay: 3s; }
@keyframes bug { 0%, 100% { transform: translate(0, 0); opacity: .2; } 30% { opacity: 1; } 50% { transform: translate(22px, -16px); opacity: .9; } 75% { transform: translate(-10px, -6px); opacity: .3; } }
.sleepy .mb-eyes { animation: sleepy-eyes 7s infinite; }
.sleepy .mb-shut { animation: sleepy-shut 7s infinite; }
.sleepy .mb-open { animation: yawn 7s infinite; transform-origin: center; }
.sleepy .mb-smile { animation: hide-smile 7s infinite; }
@keyframes sleepy-eyes { 0%, 60%, 84%, 100% { opacity: 1; } 64%, 80% { opacity: 0; } }
@keyframes sleepy-shut { 0%, 60%, 84%, 100% { opacity: 0; } 64%, 80% { opacity: 1; } }
@keyframes yawn { 0%, 62%, 82%, 100% { opacity: 0; transform: scale(1); } 66%, 78% { opacity: 1; transform: scale(1.6, 2); } }
@keyframes hide-smile { 0%, 62%, 82%, 100% { opacity: 1; } 64%, 80% { opacity: 0; } }
.sleepy.talking .mb-eyes { animation: none; opacity: 1; }
.sleepy.talking .mb-shut { animation: none; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .sit *, .crawler *, .crawl-in, .book.go .crawl-in, .book.go .sit, .book.go .tap-hint, .drift, .tram-run, .bob, .flock, .flap, .shoot, .fly-bug, .book .sit { animation: none !important; }
  .crawl-in { display: none; }
  .book .sit, .book .tap-hint { opacity: 1; }
  .tap-bob { animation: none !important; }
  .shelf-crawler { transition: none; }
}

/* the short film, in the late-morning section */
.film { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.film h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; }
.film p { margin: 0; color: var(--navy-soft); }
.film-frame { border-radius: 24px; overflow: hidden; background: #13213F; box-shadow: 0 30px 70px rgba(23, 58, 94, .2); aspect-ratio: 16 / 9; }
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
video::cue { font-family: -apple-system, "PingFang SC", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans CJK SC", sans-serif; background: rgba(19, 33, 63, .72); color: #fff; }
@media (max-width: 860px) { .film { grid-template-columns: 1fr; } .film-frame { border-radius: 18px; } }

/* =========================================================
   2026-10-25 redesign: a short home page (pictures, the film, three little games)
   and second-level pages for the long text (story / one class / fees + questions).
   ========================================================= */
.time.center { justify-content: center; }
.center-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.center-head h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.1vw, 50px); line-height: 1.32; letter-spacing: .04em; text-wrap: balance; }
html[lang="en"] .center-head h2, html[lang="ko"] .center-head h2 { letter-spacing: -.005em; line-height: 1.2; }
.center-head p { margin: 0; color: var(--navy-soft); font-size: 18px; }

/* late morning: meet her */
.meet { background: linear-gradient(180deg, #E4F2FB 0%, #F6F9FB 100%); overflow: hidden; }
.meet .cloud-deco { position: absolute; top: 50px; right: -70px; width: 320px; }
.meet .cloud-deco.left { right: auto; left: -110px; top: auto; bottom: 18%; width: 260px; opacity: .8; }
.film-stage { position: relative; max-width: 960px; margin: 0 auto; padding-top: 46px; }
.film-stage .film-frame { position: relative; }
.film-crawler { position: absolute; top: 0; left: 2%; width: 86px; z-index: 2; pointer-events: none; animation: film-crawl 24s linear infinite; }
.film-crawler svg { width: 100%; height: auto; overflow: visible; }
@keyframes film-crawl { 0% { left: -2%; opacity: 0; } 4% { opacity: 1; } 92% { left: 88%; opacity: 1; } 96%, 100% { left: 90%; opacity: 0; } }

/* noon: three little games */
.play { background: linear-gradient(180deg, #F6F9FB 0%, #FFFDF6 100%); }
.play .time { color: #D9922E; }
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.game { background: #fff; border-radius: 28px; padding: 14px 14px 26px; box-shadow: 0 1px 0 var(--line), 0 20px 44px rgba(36, 104, 199, .08); text-align: center; }
.game h3 { margin: 4px 0 6px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.4; }
.game > p { margin: 0 16px; color: var(--navy-soft); font-size: 15.5px; line-height: 1.7; }
.game .tip { margin-top: 14px; font-size: 14px; color: var(--sky-deep); display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; }
.game .tip .tip-text::before { content: "👆"; margin-right: 6px; }
.game .tip .count:empty { display: none; }
.game .tip .count { color: #C77A1E; font-weight: 500; }
.stage { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; margin-bottom: 18px; -webkit-user-select: none; user-select: none; }
.stage button { -webkit-tap-highlight-color: transparent; }
.bubble { position: absolute; z-index: 4; margin: 0; padding: 7px 14px; border-radius: 16px; background: #fff; color: var(--navy); font-family: "Newsreader", Georgia, serif; font-size: 17px; line-height: 1.35; box-shadow: 0 6px 18px rgba(23, 58, 94, .16); opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap; }
.bubble.show { opacity: 1; transform: none; }

@supports not (aspect-ratio: 1 / 1) { .stage { height: 0; padding-top: 75%; } }

/* game 1: she eats words */
.eat .stage { background: radial-gradient(circle at 75% 110%, #C8E8B6 0 38%, transparent 39%), linear-gradient(180deg, #EAF6FD 0%, #E6F5DC 100%); }
.eat-mb { position: absolute; right: 2%; bottom: -3%; width: 52%; overflow: visible; }
.words { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); width: 42%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.word { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; border: 0; border-radius: 14px; background: #fff; color: var(--navy); font: 400 16px/1.1 "Newsreader", Georgia, serif; cursor: pointer; box-shadow: 0 4px 0 #D3E5F3, 0 8px 18px rgba(23, 58, 94, .1); transition: transform .6s cubic-bezier(.55, -.25, .6, 1), opacity .6s ease-in; }
.word svg { width: 34px; height: 34px; }
.word:hover { transform: translateY(-2px); }
.word.flying { pointer-events: none; }
.word.gone { visibility: hidden; transition: none; }
.word.back { animation: pop-in .45s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop-in { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.eat .bubble { top: 7%; right: 6%; }
.sit.chomp .mb-head { animation: chomp .22s ease-in-out 5; }
@keyframes chomp { 50% { transform: translateY(3px) scale(1.04, .96); } }
.sit.full .mb-body { transform-origin: 50% 100%; animation: full .9s ease-in-out; }
@keyframes full { 30% { transform: scale(1.1, .94); } 60% { transform: scale(.97, 1.04); } }

/* game 2: the mystery box riddle — clue bubble on top, three picture answers on the left, the box on the right */
.box .stage { background: radial-gradient(circle at 70% 125%, #CBBDF6 0 48%, transparent 49%), linear-gradient(180deg, #F3EEFF 0%, #E4DAFC 100%); }
.box-btn { position: absolute; left: 36%; right: 0; top: 24%; bottom: 0; z-index: 1; padding: 0; border: 0; background: none; cursor: pointer; }
.box-btn svg { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; overflow: visible; }
.box .lid, .box .item, .box .crate { transform-box: fill-box; }
.box .lid { transform-origin: 0% 100%; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); animation: jiggle 3.2s ease-in-out infinite; }
@keyframes jiggle { 0%, 82%, 100% { transform: none; } 86% { transform: translateY(-5px) rotate(-2deg); } 90% { transform: none; } 94% { transform: translateY(-3px) rotate(1.5deg); } }
.box.open .lid { animation: none; transform: translate(-26px, -40px) rotate(-26deg); }
.box .item { opacity: 0; transform: translateY(40px) scale(.8); transition: transform .55s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; }
.box.open .item.on { opacity: 1; transform: translateY(-30px); }
.box.shake .box-btn svg { animation: shake .55s ease-in-out; }
@keyframes shake { 15%, 55% { transform: rotate(-3deg); } 35%, 75% { transform: rotate(3deg); } }
.box .bubble { top: 4%; left: 4%; right: 4%; white-space: normal; text-align: center; font-size: 16px; line-height: 1.25; padding: 6px 12px; }
.choices { position: absolute; z-index: 3; left: 4%; top: 30%; width: 34%; display: grid; gap: 6px; transition: opacity .3s; }
.box .stage:not(.asking):not(.won) .choices { opacity: .6; }
.choice { display: flex; align-items: center; gap: 5px; padding: 3px 6px 3px 3px; border: 2px solid transparent; border-radius: 13px; background: #fff; color: var(--navy); font: 400 15px/1.1 "Newsreader", Georgia, serif; text-align: left; cursor: pointer; box-shadow: 0 3px 0 #D9CFF7, 0 6px 14px rgba(60, 40, 150, .1); transition: transform .15s, opacity .3s, filter .3s; position: relative; }
.choice svg { width: 36px; height: 36px; flex: none; }
.choice span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.choice:hover { transform: translateY(-1px); }
.choice.no { padding-right: 24px; opacity: .45; filter: grayscale(1); cursor: default; animation: nope .4s ease-in-out; }
.choice.no::after { content: "\2715"; position: absolute; right: 7px; top: 50%; transform: translateY(-50%); color: #E8545A; font: 700 15px/1 var(--sans); }
@keyframes nope { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.choice.yes { border-color: #7DC25A; box-shadow: 0 3px 0 #5DA44E, 0 8px 18px rgba(93, 164, 78, .3); animation: pop-in .45s cubic-bezier(.3, 1.6, .5, 1); }
.clue-dots { position: absolute; z-index: 3; left: 38%; right: 0; top: 33%; display: flex; justify-content: center; gap: 7px; }
.clue-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(123, 92, 214, .22); transition: background .3s, transform .3s; }
.clue-dots i.on { background: #7B5CD6; transform: scale(1.25); }
.clue-dots i.done { background: #B9A6F0; }
.box .stage:not(.asking) .clue-dots { opacity: 0; }
.sparkle i { position: absolute; left: 68%; top: 56%; width: 14px; height: 14px; opacity: 0; background: #FFD45E; -webkit-clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.sparkle i:nth-child(3n+2) { background: #FF7FA0; } .sparkle i:nth-child(3n) { background: #7FC6F2; }
.won .sparkle i { animation: burst 1.2s ease-out .25s both; }
.won .sparkle i:nth-child(1) { --x: -90px; --y: -60px; } .won .sparkle i:nth-child(2) { --x: 80px; --y: -70px; } .won .sparkle i:nth-child(3) { --x: -40px; --y: -100px; } .won .sparkle i:nth-child(4) { --x: 50px; --y: -110px; }
.won .sparkle i:nth-child(5) { --x: -110px; --y: 0px; } .won .sparkle i:nth-child(6) { --x: 100px; --y: -10px; } .won .sparkle i:nth-child(7) { --x: 0px; --y: -120px; } .won .sparkle i:nth-child(8) { --x: 70px; --y: 30px; }

/* game 3: today's stars */
.stars .stage { background: radial-gradient(circle at 20% 20%, rgba(255, 243, 207, .25) 0 2px, transparent 3px), radial-gradient(circle at 80% 30%, rgba(255, 243, 207, .3) 0 1.5px, transparent 2.5px), linear-gradient(180deg, #2A3A6E 0%, #4E68B8 100%); background-size: 60px 60px, 90px 90px, auto; }
.slots { position: absolute; top: 7%; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.slots i { width: 28px; height: 28px; background: rgba(255, 255, 255, .22); -webkit-clip-path: polygon(50% 0, 63% 35%, 100% 38%, 71% 61%, 80% 100%, 50% 78%, 20% 100%, 29% 61%, 0 38%, 37% 35%); clip-path: polygon(50% 0, 63% 35%, 100% 38%, 71% 61%, 80% 100%, 50% 78%, 20% 100%, 29% 61%, 0 38%, 37% 35%); }
.slots i.on { background: #FFD45E; animation: pop-in .45s cubic-bezier(.3, 1.6, .5, 1); }
.big-star { position: absolute; left: 8%; bottom: 12%; width: 40%; padding: 0; border: 0; background: none; cursor: pointer; animation: glow 1.8s ease-in-out infinite; }
.big-star svg { width: 100%; height: auto; filter: drop-shadow(0 0 14px rgba(255, 212, 94, .55)); }
@keyframes glow { 50% { transform: scale(1.06) rotate(-4deg); } }
.big-star.boing { animation: boing .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes boing { 40% { transform: scale(.82); } 100% { transform: scale(1); } }
.star-mb { position: absolute; right: 3%; bottom: -3%; width: 44%; overflow: visible; }
.stars .bubble { top: 21%; left: 50%; transform: translate(-50%, 6px) scale(.96); }
.stars .bubble.show { transform: translate(-50%, 0); }
.confetti i { position: absolute; left: 50%; top: 45%; width: 8px; height: 12px; border-radius: 2px; opacity: 0; }
.confetti i:nth-child(5n+1) { background: #FFD45E; } .confetti i:nth-child(5n+2) { background: #FF7FA0; } .confetti i:nth-child(5n+3) { background: #7DC25A; } .confetti i:nth-child(5n+4) { background: #7FC6F2; } .confetti i:nth-child(5n) { background: #fff; }
.party .confetti i { animation: burst 1.4s ease-out both; }
.party .confetti i:nth-child(1) { --x: -120px; --y: -80px; } .party .confetti i:nth-child(2) { --x: 110px; --y: -90px; } .party .confetti i:nth-child(3) { --x: -60px; --y: -120px; } .party .confetti i:nth-child(4) { --x: 70px; --y: -130px; } .party .confetti i:nth-child(5) { --x: -150px; --y: -20px; }
.party .confetti i:nth-child(6) { --x: 150px; --y: -30px; } .party .confetti i:nth-child(7) { --x: -20px; --y: -140px; } .party .confetti i:nth-child(8) { --x: 30px; --y: -70px; } .party .confetti i:nth-child(9) { --x: -100px; --y: 40px; } .party .confetti i:nth-child(10) { --x: 100px; --y: 50px; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(400deg); } }
.party .slots i.on { animation: twinkle .5s ease-in-out 3; }
@media (max-width: 960px) { .games { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; } }

/* afternoon: placement test note under the shelf */
.test-chip { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 30px auto 0; padding: 10px 20px; border-radius: 999px; background: #fff; color: var(--navy-soft); font-size: 15px; box-shadow: 0 8px 24px rgba(160, 110, 40, .1); }
.test-chip svg { width: 18px; height: 18px; flex: none; color: #D9822E; }
.lib-chip { margin: 14px auto 0; width: fit-content; max-width: 100%; }
.lib-chip a { display: flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 999px; background: #FFD45E; color: #3E2A8C; font-size: 16px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 #E3A52C, 0 10px 22px rgba(227, 165, 44, .3); transition: transform .15s; }
.lib-chip a:hover { transform: translateY(-2px); }
.lib-chip svg { width: 24px; height: 24px; flex: none; }

/* sunset: a short teaser for the story page */
.sunset .page.teaser { text-align: center; max-width: 620px; }
.sunset .page.teaser h2 { margin-bottom: 10px; }
.sunset .page.teaser .name { margin: .2em 0 .6em; }
.sunset .page.teaser .more { margin: 1.6em 0 0; }
.btn.sunset-btn { background: #C9607A; color: #fff; font-family: var(--sans); font-weight: 500; box-shadow: 0 12px 28px rgba(201, 96, 122, .3); }
.btn.sunset-btn:hover { background: #B54F69; }
.teaser-mb { position: absolute; left: -46px; bottom: -36px; width: 120px; height: auto; overflow: visible; }
@media (max-width: 760px) { .teaser-mb { left: -6px; bottom: -40px; width: 84px; } }

/* night: links to the other pages */
.night .more-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; font-size: 15px; }
.night .more-links a { color: rgba(255, 255, 255, .78); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 2px; }
.night .more-links a:hover { color: #fff; }

/* second-level pages */
.sub-hero { background: linear-gradient(180deg, #CFE7F8 0%, #E4F2FB 100%); padding: clamp(56px, 8vw, 96px) 0 0; }
.sub-hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.2; letter-spacing: .04em; }
.kicker { font-family: "Newsreader", serif; font-style: italic; font-weight: 300; font-size: 20px; color: var(--sky-deep); margin: 0 0 10px; }
.page-learn .idea-sec { padding-top: clamp(48px, 6vw, 72px); background: linear-gradient(180deg, #E4F2FB 0%, #F6F9FB 100%); }
.page-faq .dusk { padding-top: clamp(72px, 9vw, 120px); }
.page-story .sunset { padding-bottom: clamp(70px, 8vw, 110px); }
.sub-end { background: linear-gradient(180deg, #1E2E5C 0%, var(--night) 100%); color: #fff; text-align: center; padding: clamp(56px, 8vw, 90px) 0; }
.page-learn .sub-end { background: linear-gradient(180deg, #FFF4E0 0%, #F9C98A 6%, #8F6AAE 40%, #1E2E5C 75%, var(--night) 100%); padding-top: clamp(110px, 14vw, 170px); }
.page-story .sub-end { background: linear-gradient(180deg, #5E5A9E 0%, #1E2E5C 50%, var(--night) 100%); }
.end-mb { width: 120px; height: auto; margin: 0 auto 26px; overflow: visible; }
.sub-end .actions { justify-content: center; }
.btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: transparent; }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }

@media (prefers-reduced-motion: reduce) {
  .film-crawler, .box .lid, .won .sparkle i, .big-star, .party .confetti i, .sit.chomp .mb-head, .sit.full .mb-body { animation: none !important; }
  .film-crawler { display: none; }
}
.home .meet { padding-bottom: clamp(56px, 7vw, 90px); }
.home .play { padding-top: clamp(56px, 7vw, 90px); }
.home .afternoon { background: linear-gradient(180deg, #FFFDF6 0%, #FFF4E0 100%); }
.home .night { background: linear-gradient(180deg, #5E5A9E 0%, #2E3D78 22%, #16244A 60%, var(--night) 100%); }
.home .play { padding-bottom: clamp(40px, 5vw, 70px); }
.home .afternoon { padding-top: clamp(56px, 7vw, 90px); }
@media (max-width: 760px) { .meet .cloud-deco { display: none; } }

/* ---------- phones and the WeChat browser (2026-10-25) ---------- */
/* keep the designed text size even if WeChat's own font setting is "large" (see also site.js) */
html { -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important; }
/* taps react at once: no double-tap zoom delay on buttons and games */
a, button, summary, .tap-me, .word, .choice, .box-btn, .big-star { touch-action: manipulation; }
/* no single orphan character on the last line of headings and short centered lines */
h1, h2, h3, .center-head p, .game > p, .test-chip, .lib-chip a, .sunset .page p.motto, .night .end, .sub-hero h1 { text-wrap: balance; }
/* the hero headline is always exactly two lines on phones (Chinese) */
@media (max-width: 860px) {
  html[lang^="zh"] .morning h1 .line { white-space: nowrap; }
  html[lang^="zh"] .morning h1 { font-size: 38px; font-size: min(38px, calc((100vw - 2 * var(--gutter)) / 8.7)); }
  html[lang="ko"] .morning h1 .line { white-space: nowrap; }
  html[lang="ko"] .morning h1 { font-size: 34px; font-size: min(34px, calc((100vw - 2 * var(--gutter)) / 11.4)); }
}
/* the language button stays readable on the bright morning sky */
.home .top:not(.solid) .langs summary { background: rgba(20, 60, 120, .32); border-color: rgba(255, 255, 255, .7); }
@media (max-width: 560px) { .lib-chip a { font-size: 15px; padding: 11px 18px; } .test-chip { font-size: 14px; } }
/* a picture WeChat can use as the share thumbnail (kept out of sight) */
.share-thumb { position: absolute; width: 0; height: 0; overflow: hidden; }

.tv-chip a { background: #5B3FC4; color: #fff; box-shadow: 0 4px 0 #3E2A8C, 0 10px 22px rgba(91, 63, 196, .3); }
.tv-chip svg { width: 28px; }

/* night: Miss Bookworm at the bottom says good night — a "Tap me!" bubble, and she is bigger on phones (2026-10-26) */
.night .town { overflow: visible; }
.night-mb .tap-me, .night-hint { cursor: pointer; }
.night-hint { animation: appear .4s ease-out 1s both; }
.night.tapped .night-hint { animation: none; opacity: 0; pointer-events: none; transition: opacity .3s; }
.night-hint path { filter: drop-shadow(0 0 8px rgba(255, 212, 94, .55)); }
@media (max-width: 760px) { .night-mb { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(3.4); } }

/* ---------- premium type (Lucien, 2026-10-25: "让字体看起来更高级", text unchanged) ----------
   1) eyebrows = small tracked capitals between hairlines; 2) big headings in light serif with calm tracking;
   3) lead and reading text in light serif; 4) small UI text a touch more open. */
html { text-rendering: optimizeLegibility; font-kerning: normal; }
body { font-feature-settings: "kern" 1; }

.time, .kicker, .morning .eyebrow, .sunset .kicker {
  font-family: "Newsreader", serif; font-style: normal; font-weight: 400;
  font-size: 12.5px; line-height: 1.4; letter-spacing: .3em; text-transform: uppercase; }
.time { gap: 12px; margin-bottom: 22px; }
.time svg { width: 16px; height: 16px; }
.time.center::before, .time.center::after, .kicker.center::before, .kicker.center::after {
  content: ""; width: 34px; height: 1px; background: currentColor; opacity: .45; }
.time.center::before { margin-right: 2px; } .time.center::after { margin-left: -2px; }
.morning .eyebrow { font-size: 13px; letter-spacing: .34em; }
.kicker { margin-bottom: 18px; }

/* headings: light serif, ink colour, calm CJK tracking */
.head h2, .center-head h2, .sunset h2, .sub-hero h1, .doc h1 { font-weight: 300; color: #102A48; }
.morning h1 { font-weight: 300; }
.sunset h2 { color: #3A2B45; }
html[lang^="zh"] .head h2, html[lang^="zh"] .center-head h2, html[lang^="zh"] .sunset h2, html[lang^="zh"] .sub-hero h1, html[lang^="zh"] .doc h1,
html[lang="ja"] .head h2, html[lang="ja"] .center-head h2, html[lang="ja"] .sunset h2, html[lang="ja"] .sub-hero h1, html[lang="ja"] .doc h1 { letter-spacing: .08em; }
html[lang^="zh"] .morning h1, html[lang="ja"] .morning h1 { letter-spacing: .1em; }
.idea h3, .game h3, .film h3, .doc h2 { font-weight: 400; letter-spacing: .04em; color: #102A48; }
html[lang="en"] .idea h3, html[lang="en"] .game h3, html[lang="en"] .film h3, html[lang="en"] .doc h2,
html[lang="ko"] .idea h3, html[lang="ko"] .game h3, html[lang="ko"] .film h3, html[lang="ko"] .doc h2 { letter-spacing: 0; }
.dusk .head h2, .dusk .center-head h2, .night .center-head h2 { color: #fff; }

/* lead + reading text in light serif */
.head p, .center-head p, .idea p, .game > p, .film p, .doc p, .doc li, .faq details p, .shelf-note, .test-kinds li {
  font-family: var(--serif); font-weight: 300; letter-spacing: .03em; }
.center-head p, .head p { font-size: 18px; line-height: 1.95; }
html[lang^="zh"] .center-head p, html[lang^="zh"] .head p, html[lang="ja"] .center-head p, html[lang="ja"] .head p { letter-spacing: .08em; }
.doc p, .doc li { font-size: 17px; line-height: 2.05; }
.faq summary { font-family: var(--serif); font-weight: 400; letter-spacing: .04em; }

/* small UI text a touch more open; numbers aligned */
.btn, .test-chip, .lib-chip a, .tv-chip a, .steps span { letter-spacing: .05em; }
.plan .price, .spine .lv { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
@media (max-width: 760px) {
  .time, .kicker { font-size: 11.5px; letter-spacing: .26em; }
  .center-head p, .head p { font-size: 16.5px; }
  html[lang^="zh"] .center-head p, html[lang^="zh"] .head p, html[lang="ja"] .center-head p, html[lang="ja"] .head p { letter-spacing: .05em; }
}
.dusk .head p, .dusk .faq details p, .night p { font-weight: 400; }
.dusk .time { font-size: 13px; }
@media (max-width: 760px) { .morning .eyebrow { font-size: 11px; letter-spacing: .2em; } }

/* ---------- rounded headings (Lucien, 2026-10-25: headings from the second screen on in the logo's style) ----------
   Fredoka (Latin) + "BW Rounded" (CJK, made by tools/round_font.py); one keyword per heading in the logo colours.
   The home hero headline and all reading text keep the serif. */
.head h2, .center-head h2, .sunset h2, .sub-hero h1, .doc h1, .doc h2, .idea h3, .game h3, .film h3, .night p.end {
  font-family: var(--round) !important; font-weight: 600; letter-spacing: .02em !important; color: #173A5E; }
.head h2, .center-head h2 { font-size: clamp(28px, 3.7vw, 46px); line-height: 1.3; }
.sunset h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.3; color: #3A2B45; }
.sub-hero h1 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.2; }
.doc h1 { font-size: clamp(32px, 4.4vw, 48px); }
.doc h2 { font-size: 21px; }
.idea h3, .game h3, .film h3 { line-height: 1.4; }
.idea h3, .game h3 { font-size: 21px; }
.night p.end { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.4; color: #fff; }
html[lang="en"] .head h2, html[lang="en"] .center-head h2, html[lang="en"] .sunset h2, html[lang="en"] .sub-hero h1, html[lang="en"] .night p.end,
html[lang="ko"] .head h2, html[lang="ko"] .center-head h2, html[lang="ko"] .sunset h2, html[lang="ko"] .sub-hero h1, html[lang="ko"] .night p.end { letter-spacing: 0 !important; line-height: 1.22; }
h1 em, h2 em, h3 em, p.end em { font-style: normal; color: #F08A12; }
h1 em.p, h2 em.p, h3 em.p { color: #5B3FC4; }
.dusk .head h2, .dusk .center-head h2, .night .center-head h2 { color: #fff; }
.dusk h2 em, .night p.end em { color: #FFD45E; }
.spine .lv { font-family: "Fredoka", var(--sans); font-weight: 600; font-size: 28px; }
a.test-chip { text-decoration: none; color: var(--navy); font-weight: 500; } a.test-chip:hover { box-shadow: 0 8px 24px rgba(160, 110, 40, .22); }

/* ---------- the manifesto (Lucien, 2026-10-26): 学的是世界，会的是英语。 ----------
   Anime-film-title style (his choice): two poster lines, all one size, the last word of each line a touch bigger.
   Bold serif, white with a thin purple outline and a soft glow; the keywords warm to gold at the foot, with a twinkling sparkle.
   On load the first keyword flips through a few topics and settles on "world", then line 2 rises. */
@font-face { font-family: "BW Title Latin"; src: url("assets/fonts/newsreader-600.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "BW Title Latin"; src: url("assets/fonts/newsreader-600-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
.morning h1.manifesto { --t: clamp(46px, 5.3vw, 86px); --o: max(1.5px, calc(var(--t) * .032));
  font-family: "BW Title Latin", "BW Title", var(--serif); font-weight: 700; font-size: var(--t); line-height: 1.22;
  letter-spacing: .07em; text-shadow: none; max-width: none; color: #fff; }
html[lang="en"] .morning h1.manifesto, html[lang="ko"] .morning h1.manifesto { letter-spacing: .01em; }
html[lang="en"] .morning h1.manifesto { --t: clamp(44px, 4.9vw, 80px); line-height: 1.12; }
html[lang="ja"] .morning h1.manifesto { --t: clamp(40px, 4.6vw, 74px); }
.manifesto .sr, .manifesto .cyc-words { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.manifesto .line { display: block; white-space: nowrap;
  filter: drop-shadow(var(--o) 0 0 #5B3FC4) drop-shadow(calc(var(--o) * -1) 0 0 #5B3FC4) drop-shadow(0 var(--o) 0 #5B3FC4) drop-shadow(0 calc(var(--o) * -1) 0 #5B3FC4)
          drop-shadow(0 calc(var(--o) * 2.2) 0 rgba(62, 42, 140, .55)) drop-shadow(0 8px 22px rgba(30, 24, 110, .35)); }
.manifesto .line + .line { padding-left: 1.1em; }
.manifesto .lead { color: #fff; }
.manifesto .k { display: inline-block; position: relative; font-size: 1.18em; line-height: 1; color: #FFF6DA;
  background: linear-gradient(180deg, #FFFFFF 30%, #FFE49A 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding: .18em 0 .12em; margin: -.18em 0 -.12em; /* 2026-10-25: room for the tops of 世/英 etc., without moving the text */ }
html[lang="en"] .manifesto .k { font-style: italic; padding-right: .06em; }
html[lang="en"] .manifesto .k + .lead, html[lang="en"] .manifesto .lead + .k { margin-left: .04em; }
/* a sparkle on each keyword (original four-point stars) */
.manifesto .k::after { content: ""; position: absolute; width: .42em; height: .42em; top: -.16em; right: -.3em; -webkit-text-fill-color: initial;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 0C21.6 12 28 18.4 40 20C28 21.6 21.6 28 20 40C18.4 28 12 21.6 0 20C12 18.4 18.4 12 20 0Z' fill='%23FFE27A'/%3E%3Ccircle cx='20' cy='20' r='3.4' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: mfTwinkle 2.6s ease-in-out infinite; }
.manifesto .l2 .k::after { width: .3em; height: .3em; top: -.06em; right: -.26em; animation-delay: 1.3s; }
.manifesto .k::before { content: ""; position: absolute; width: .16em; height: .16em; top: .16em; right: -.42em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 0C21.6 12 28 18.4 40 20C28 21.6 21.6 28 20 40C18.4 28 12 21.6 0 20C12 18.4 18.4 12 20 0Z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: mfTwinkle 2.6s ease-in-out .7s infinite; }
.manifesto .l2 .k::before { display: none; }
@keyframes mfTwinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); } 50% { opacity: .35; transform: scale(.62) rotate(25deg); } }
.morning .manifesto ~ .sub { margin-top: 30px; }
@media (max-width: 860px) {
  html[lang] .morning h1.manifesto { --t: min(60px, 14.6vw); }
  html[lang="ja"] .morning h1.manifesto { --t: min(40px, 9.4vw); }
  html[lang="ko"] .morning h1.manifesto { --t: min(46px, 10.8vw); }
  html[lang="en"] .morning h1.manifesto { --t: min(44px, 10.2vw); }
  .manifesto .line + .line { padding-left: .8em; }
  html[lang="ja"] .manifesto .line + .line { padding-left: .3em; }
}

/* the opening: topics flip on the first keyword, then it settles; line 2 rises; the rest follows */
.mf-play .manifesto .line:first-child { animation: mfIn .7s ease-out both; }
.mf-play .manifesto .k.w.flip { animation: mfFlip .4s ease-out both; }
.mf-play .manifesto .k.w.leave { animation: mfLeave .15s ease-in both; }
.mf-play .manifesto .k.w.cycling::after, .mf-play .manifesto .k.w.cycling::before { opacity: 0; animation: none; }
.mf-play .manifesto .l2 { animation: mfRise .9s cubic-bezier(.2, .7, .2, 1) 4.3s both; }
.mf-play .sub, .mf-play .actions { animation: mfIn .8s ease-out 5s both; }
@keyframes mfIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mfFlip { from { opacity: 0; transform: translateY(.3em); } to { opacity: 1; transform: none; } }
@keyframes mfLeave { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-.2em); } }
@keyframes mfRise { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .manifesto .k::after, .manifesto .k::before { animation: none; } }

/* the same words, small, everywhere else */
footer .f-id { display: flex; flex-direction: column; gap: 4px; }
footer .f-motto { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 14px; letter-spacing: .08em; color: rgba(255, 255, 255, .78); }
html[lang="en"] footer .f-motto, html[lang="ko"] footer .f-motto { letter-spacing: .02em; }
footer .f-motto em, footer .f-motto em.p { font-style: normal; color: #FFD45E; }
.sunset .page p.motto { font-size: clamp(24px, 3vw, 32px); font-weight: 300; letter-spacing: .1em; line-height: 1.5; }
html[lang="en"] .sunset .page p.motto, html[lang="ko"] .sunset .page p.motto { letter-spacing: 0; }
.sunset .page p.motto em { font-style: normal; font-weight: 400; font-size: 1.35em; color: #5B3FC4; }
