@font-face{font-family:TootBook;src:local('Malgun Gothic'),local('Apple SD Gothic Neo');font-display:swap}
:root{--forest:#244d3b;--forest-deep:#193b2d;--mint:#eaf2ed;--paper:#fffdf5;--gold:#d9b86a;--ink:#234638;--muted:#60766a;--line:#cfdbd0;font-family:TootBook,'Malgun Gothic','Apple SD Gothic Neo',sans-serif;color:var(--ink);background:var(--mint);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #c3903e;outline-offset:5px}button:disabled{opacity:.35}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.room-nav{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:20px 5%;background:var(--paper);border-bottom:1px solid #244d3b12}.room-brand{font-size:28px;font-weight:800;letter-spacing:-.065em}.room-links{display:flex;align-items:center;gap:28px;font-size:15px;font-weight:700}.room-links a{padding:10px 0}.room-links a[aria-current]{border-bottom:2px solid var(--forest)}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:14px 24px;border:1px solid var(--forest);border-radius:999px;background:var(--forest);color:var(--paper);font-size:16px;font-weight:750;gap:16px;box-shadow:0 4px 0 #163c2a}.button:hover{background:#32664b}.button.secondary{background:transparent;color:var(--forest);box-shadow:none;border-color:#89a18e}.eyebrow{font-size:13px;font-weight:700;letter-spacing:.18em;color:var(--muted);margin:0 0 18px}h1,h2,p{margin-top:0}h1{font-size:clamp(38px,5vw,70px);line-height:1.18;letter-spacing:-.065em}p{line-height:1.85}.room-footer{padding:36px 5%;display:flex;justify-content:space-between;gap:20px;font-size:14px;background:#244d3b;color:#f4f7e8;border-top:0}
/* A room stands on the floor of the window. Shorter than the screen, it
   stretches, so the footer never leaves a strip of bare background below it. */
body:has(>.room-footer){min-height:100svh;display:flex;flex-direction:column}
body:has(>.room-footer)>main{flex:1 0 auto}.room-footer a{color:#f4f7e8}.room-footer span{opacity:.85}
.reading-room{background:radial-gradient(ellipse at 50% 10%,#f7f9ef,#e7efe4 65%,#d9e4d7);min-height:calc(100svh - 88px)}.reading-heading{text-align:center;padding:38px 18px 0}.reading-heading .eyebrow{margin-bottom:10px}.reading-heading h1{font-size:clamp(30px,3vw,43px);margin-bottom:9px}.reading-heading .byline{font-size:14px;color:var(--muted);margin-bottom:0}.reader-shell{max-width:1400px;margin:auto;padding:28px 6% 50px}.book-stage{position:relative;perspective:2200px;margin:22px auto 38px;max-width:1160px;touch-action:pan-y pinch-zoom}.storybook{position:relative;aspect-ratio:2000/804;transform-style:preserve-3d;isolation:isolate;background:#fffdf5;border-radius:5px;box-shadow:0 2px 0 #e9e0cd,0 5px 0 #fcf8eb,0 7px 0 #d2c7ad,0 10px 0 #e8dcc5,0 30px 45px -18px #23463875,0 3px 9px #23463824}.book-image{display:block;width:100%;height:100%;border-radius:4px;object-fit:contain}.storybook:after{content:'';pointer-events:none;position:absolute;left:50%;top:0;bottom:0;width:5%;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#4b3a2320 40%,#40312045 49%,#ffffff45 52%,transparent);z-index:4}.reader-controls{display:flex;justify-content:center;align-items:center;gap:24px}.reader-controls button,.reader-tools button{min-width:48px;min-height:48px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--forest);font-size:21px}.page-indicator{min-width:110px;text-align:center;font-size:15px;font-variant-numeric:tabular-nums}.reading-hint{text-align:center;font-size:14px;color:var(--muted);margin:22px 0 0}
@media(max-width:700px){.room-nav{min-height:76px;padding:16px 5%;gap:10px}.room-brand{font-size:26px}.room-links{gap:16px;font-size:14px}.room-links .optional{display:none}.reading-heading{padding-top:28px}.reader-shell{padding:22px 5% 34px}.book-stage{margin:16px auto 30px}.reader-controls{gap:18px}.room-footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Functional paper surfaces: original spreads are cropped into their two leaves. */
.storybook.single-page.cover-page,.book-page.full{aspect-ratio:1134/883}.book-page.full img{width:100%;margin:0;object-fit:contain}
.skip-link{position:fixed;top:-100px;left:20px;z-index:100;background:var(--paper);padding:16px}.skip-link:focus{top:12px}
.reading-room{overflow-x:clip}.storybook{display:grid;grid-template-columns:1fr 1fr;isolation:auto;user-select:none;--turn-shadow:0}
.book-stage.single-page{max-width:580px}.storybook.single-page{grid-template-columns:1fr;aspect-ratio:1000/804}.storybook.single-page:after{display:none}
.book-page{position:relative;min-width:0;overflow:hidden;aspect-ratio:1000/804;background:var(--paper)}
.book-page img{display:block;width:200%;max-width:none;height:100%;object-fit:fill;pointer-events:none}.book-page.right img{margin-left:-100%}
.storybook>.book-page:first-child{border-radius:4px 0 0 4px}.storybook>.book-page:last-child{border-radius:0 4px 4px 0}.storybook.single-page>.book-page{border-radius:4px}
.paper-curl{position:absolute;top:0;width:0;height:100%;z-index:10;transform-style:preserve-3d;pointer-events:none}
.paper-strip{position:absolute;top:0;height:100%;width:var(--strip-width);transform-style:preserve-3d;will-change:transform}
.next .paper-strip{left:0;transform-origin:0 50%}.prev .paper-strip{right:0;transform-origin:100% 50%}
.paper-face{position:absolute;inset:0 -0.4px 0 0;backface-visibility:hidden;background-repeat:no-repeat;background-color:var(--paper)}.paper-face.back{transform:rotateY(180deg)}
.paper-face:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#37291416,transparent);opacity:.45}
.storybook:not(.single-page):before{content:'';position:absolute;inset:0;z-index:5;background:linear-gradient(90deg,transparent,#302719 50%,transparent);opacity:var(--turn-shadow);pointer-events:none}
.reader-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 22px;font-size:14px;color:var(--muted);margin:0 auto 28px}
.reader-tools button{min-width:0;min-height:42px;padding:9px 14px;border-radius:999px;font-size:14px;background:transparent;border-color:transparent;color:var(--muted)}
.reader-tools button[aria-pressed=true]{background:#ffffff80;border-color:#cad8c8;color:var(--forest)}.reader-tools #open-zoom{border-color:#9db29e;color:var(--forest);font-weight:700}
.sound-tools{display:flex;gap:4px}.view-toggle{display:flex;gap:8px;align-items:center;min-height:44px;cursor:pointer;white-space:nowrap}.view-toggle input{width:17px;height:17px;accent-color:var(--forest)}
.reader-controls{gap:24px}.reader-controls button{font-size:15px;font-weight:700;border-radius:999px;min-width:104px;display:flex;align-items:center;justify-content:center;gap:14px;padding:10px 18px}
.reader-controls button:not(:disabled):hover{background:#dbe7d5;border-color:#8aa48c}.page-meter{display:flex;flex-direction:column;gap:10px;align-items:center;min-width:120px}
.page-indicator{font-size:14px;display:block}.page-meter progress{display:block;width:110px;height:3px;appearance:none;border:0;background:#c9d7c5;border-radius:5px;overflow:hidden}.page-meter progress::-webkit-progress-bar{background:#c9d7c5}.page-meter progress::-webkit-progress-value{background:var(--forest)}.page-meter progress::-moz-progress-bar{background:var(--forest)}
.reading-bottom{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:16px 30px;margin-top:28px}.reading-bottom .reading-hint{margin:0}.scene-picker{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px}.scene-picker select{padding:10px 28px 10px 12px;border:1px solid #bdcdb9;border-radius:8px;background:#f8fbf280;color:var(--forest);max-width:180px;font-size:14px}
.reading-after{display:flex;justify-content:center;flex-wrap:wrap;gap:14px 24px;padding:0 20px 38px;font-size:14px;color:var(--muted)}.reading-after a{color:var(--forest);font-weight:700}
.reader-error{text-align:center;padding:20px}.reader-error p{margin-bottom:8px}.reader-error button{padding:10px;border:1px solid var(--forest);border-radius:10px;background:var(--paper);color:var(--forest)}
#zoom-dialog{width:96vw;max-width:1700px;height:94dvh;max-height:94dvh;padding:0;border:1px solid #d9dfd0;border-radius:18px;background:var(--mint);color:var(--forest);box-shadow:0 30px 100px #0b281c55;overflow:hidden}
#zoom-dialog[open]{display:flex;flex-direction:column}#zoom-dialog::backdrop{background:#193b2dba;backdrop-filter:blur(5px)}
.zoom-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;gap:12px;background:var(--paper)}.zoom-header>div{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.zoom-header span{font-size:13px;color:var(--muted)}
#zoom-dialog button{min-height:44px;min-width:44px;padding:9px 16px;border:1px solid #bdcdb9;border-radius:999px;background:var(--paper);color:var(--forest);font-size:14px;font-weight:700}
.zoom-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:30px;touch-action:pan-x pan-y pinch-zoom}.zoom-pages{display:grid;margin:0 auto;background:var(--paper);box-shadow:0 10px 30px #233d2c26;max-width:none}
.zoom-controls{display:flex;align-items:center;justify-content:space-between;padding:14px 24px 4px;gap:12px}.zoom-controls>div{display:flex;gap:8px}.zoom-hint{text-align:center;font-size:12px;color:var(--muted);margin:6px 12px 14px}
/* Jelly introduction shares the village's warm paper and quiet forest palette. */
.play-room{background:var(--paper)}.play-hero{max-width:1500px;margin:auto;padding:72px 5% 82px;display:grid;grid-template-columns:.8fr 1.2fr;align-items:center;gap:6%}
.play-copy h1{font-size:clamp(40px,4.8vw,68px);margin-bottom:26px}.play-copy .lead{font-size:18px;line-height:1.9;color:var(--muted);margin-bottom:30px}.play-copy .cta-note{font-size:13px;color:var(--muted);margin:18px 0 0}.play-art{margin:0;position:relative}.play-art img{display:block;width:100%;height:auto;border-radius:38% 38% 8% 8%;box-shadow:0 20px 45px -28px #523d2390}.play-art figcaption{font-size:13px;text-align:center;margin-top:18px;color:var(--muted)}
.play-guide{background:#e7efe3;padding:74px 5% 80px}.guide-inner{max-width:1200px;margin:auto}.guide-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:42px}.guide-heading h2{font-size:clamp(30px,3vw,42px);line-height:1.3;letter-spacing:-.055em;margin:0}.guide-heading p{margin:0;color:var(--muted);font-size:15px}
.guide-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;list-style:none;padding:0;margin:0}.guide-steps li{padding-top:24px;border-top:1px solid #a8bba2}.step-number{font-size:13px;letter-spacing:.12em;color:#74816a}.guide-steps h3{font-size:24px;letter-spacing:-.045em;margin:18px 0 12px}.guide-steps p{font-size:16px;color:var(--muted);margin:0}.keyboard-hint{margin:40px 0 0;font-size:14px;color:var(--muted);padding-top:24px;border-top:1px solid #c4d2be}.keyboard-hint kbd{font:inherit;font-size:12px;border:1px solid #acbca5;border-radius:5px;padding:3px 6px;background:#f8faef}
.play-ending{text-align:center;padding:76px 20px 86px}.play-ending h2{font-size:clamp(30px,4vw,44px);letter-spacing:-.05em}.play-ending p{color:var(--muted)}.play-ending .ending-links{display:flex;justify-content:center;flex-wrap:wrap;gap:16px}
@media(max-width:900px){.play-hero{padding-top:44px;gap:4%;grid-template-columns:1fr 1.1fr}.play-copy h1{font-size:42px}.play-copy .lead{font-size:16px}.guide-steps{gap:24px}.guide-heading{align-items:flex-start;flex-direction:column}.guide-steps h3{font-size:21px}}
@media(max-width:700px){.reader-shell{padding-top:22px}.reader-tools{gap:8px 14px;justify-content:space-between;margin-bottom:22px;font-size:13px}.reader-tools button{font-size:13px;padding:8px 10px}.sound-tools{order:3;flex-basis:100%;justify-content:center}.book-stage{margin-top:8px}.book-stage.single-page{max-width:580px}.reader-controls{gap:10px}.reader-controls button{min-width:80px;font-size:14px;padding:10px 12px;gap:8px}.page-meter{min-width:100px}.page-meter progress{width:88px}.reading-bottom{margin-top:24px;gap:12px}.reading-hint{font-size:13px}.reading-after{font-size:13px;padding-bottom:30px}.zoom-header{padding:12px 14px}.zoom-header>div{gap:4px;flex-direction:column;align-items:flex-start}.zoom-scroll{padding:16px}.zoom-controls{padding:12px 12px 4px}#zoom-dialog button{padding:8px 13px}.play-hero{display:flex;flex-direction:column;padding:42px 6% 50px;gap:36px;align-items:stretch}.play-copy h1{font-size:clamp(38px,9vw,54px)}.play-copy .lead br{display:none}.play-copy .lead{max-width:380px}.play-art{max-width:580px}.play-art img{border-radius:28px}.play-guide{padding:48px 6%}.guide-steps{grid-template-columns:1fr;gap:26px}.guide-steps li{display:grid;grid-template-columns:40px 1fr;column-gap:12px;padding-top:20px}.step-number{grid-row:1/3;padding-top:7px}.guide-steps h3{margin:0 0 9px}.guide-steps p{font-size:15px}.keyboard-hint{font-size:13px;line-height:2.1}.play-ending{padding:52px 6% 62px}.play-ending p{font-size:15px}}
