/* A small, touch-friendly picture book for the six gardens. */
.story-entry{display:flex;align-items:center;gap:18px;width:100%;padding:22px 26px;margin:0 0 25px;border:2px solid #fff;border-radius:25px;background:linear-gradient(115deg,#fff9df,#fff0e4);color:#587853;text-align:left;box-shadow:0 5px 0 #cba96720}
.story-entry-icon{display:grid;place-items:center;flex:none;width:65px;height:65px;border:2px solid #e6c98b;border-radius:21px;background:#fffdf3;color:#b88a42;transform:rotate(-7deg)}
.story-entry-icon svg{width:37px;height:37px}.story-entry>span:nth-child(2){display:grid;gap:5px}.story-entry small{font-size:13px;color:#a37e43;font-weight:700}.story-entry strong{font:26px/1.4 Garden,Pretendard,sans-serif}.story-entry span>span{font-size:15px;color:#7b8c71}.story-entry>b{margin-left:auto;font-size:27px;color:#b98e56}.story-entry:hover{border-color:#e3c46f;background:#fff7d8}
.story-game-actions{display:flex;gap:6px;flex-shrink:0}.story-game-actions .iconbtn{padding:10px;min-width:46px}.story-game-actions .story-replay{color:#a47737;background:#fff9df;border-color:#e6cf9c}.game-top .level-heading{min-width:0}
.story-book-shell{max-width:1000px;padding-bottom:55px}.story-book-heading{text-align:center;padding:38px 0 30px}.story-book-heading h1{font-size:48px;line-height:1.24;color:#47836b;letter-spacing:-1.5px}.story-book-heading h1 span{color:#c28e4a}.story-book-heading>p{font-size:18px;line-height:1.7;color:#6b8979;margin-top:14px}
.story-prologue{display:grid;grid-template-columns:.85fr 1fr;border:3px solid white;border-radius:30px;background:#fffdf1;overflow:hidden;box-shadow:0 7px 0 #72996e14}.story-cover-art{position:relative;min-height:350px;background:#e4edc8;overflow:hidden}.story-cover-art img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.story-cover-seal{position:absolute;left:18px;bottom:20px;border:1px dashed #c7a963;border-radius:12px;padding:10px 14px;font-size:14px;font-weight:650;color:#8e763f;background:#fffcebeF;transform:rotate(-4deg)}.story-prologue-copy{padding:30px 32px}.story-prologue-copy h2{font-size:28px;color:#588061;margin:20px 0 17px}
.story-prose p,.dialog .story-prose p{font-size:20px;font-weight:500;line-height:1.9;word-break:keep-all;overflow-wrap:break-word;text-align:left;white-space:normal;color:#4c665a;margin:0 0 15px}.story-prose p:last-child{margin-bottom:0}
.story-cast{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:650;color:#66826b;flex-wrap:wrap}.story-cast .avatar{width:37px;height:37px}.story-cast-friend{display:flex;align-items:center;gap:7px;margin-left:auto;font-size:13px;color:#82967f}
.story-shelf-title{font-size:28px;color:#4d7f68;margin:35px 0 20px;text-align:center}.story-chapter-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.story-chapter-card{position:relative;display:flex;align-items:center;gap:17px;overflow:hidden;min-height:176px;text-align:left;padding:24px 26px;border:2px solid #fff;border-radius:24px;background:#fffdf2;color:#56805b;box-shadow:0 5px 0 #72996e17;transition:transform .16s,box-shadow .16s}.story-chapter-card:hover{transform:translateY(-3px);box-shadow:0 8px 0 #72996e17}.story-chapter-symbol{flex:none;display:grid;place-items:center;width:58px;height:64px;font-size:37px;border-radius:20px;background:#eaf3d4}.story-chapter-symbol svg{width:42px;height:42px}.story-chapter-copy{display:flex;flex-direction:column;gap:7px}.story-chapter-copy>small{font-size:12px;font-weight:650;color:#8ba084}.story-chapter-copy>strong{font:25px/1.35 Garden,Pretendard,sans-serif}.story-chapter-copy>span{font-size:15px;color:#708a6c}.story-chapter-copy>.story-chapter-progress{font-size:12px;margin-top:2px;color:#9a9379}.story-chapter-number{position:absolute;right:11px;top:4px;font:bold 62px/1 Georgia,serif;letter-spacing:-5px;opacity:.08;pointer-events:none}.story-card-arrow{position:absolute;right:15px;bottom:16px;font-size:23px;color:#98af8f}
.story-color-1 .story-chapter-symbol{background:#e2edcd}.story-color-2{color:#55889e}.story-color-2 .story-chapter-symbol{background:#e1f2f9}.story-color-3 .story-chapter-symbol{background:#dcf0d6}.story-color-4{color:#997db0}.story-color-4 .story-chapter-symbol{background:#f0e3f6}.story-color-5{color:#ad8b40}.story-color-5 .story-chapter-symbol{background:#fff0c1}.story-book-footer{display:flex;justify-content:center;margin-top:25px}
.dialog.story-dialog{max-width:660px;padding:0;border-radius:30px;outline-color:#d3cda5;text-align:left;background:#fffdf2;box-shadow:0 20px 70px #2b514166}.story-dialog{--story-ink:#587d4e;--story-wash:#edf5db;--story-line:#cfdfad}
.story-theme-1{--story-ink:#39775b;--story-wash:#e6f1df;--story-line:#b8d7b2}
.story-theme-2{--story-ink:#487e9c;--story-wash:#e9f5fa;--story-line:#b7dce8}
.story-theme-3{--story-ink:#548366;--story-wash:#edf5e5;--story-line:#c7dfb5}
.story-theme-4{--story-ink:#89689f;--story-wash:#f4edf9;--story-line:#d9c8e7}
.story-theme-5{--story-ink:#987534;--story-wash:#fff4d5;--story-line:#e7d094}
.story-vignette{height:220px;position:relative;overflow:hidden;border-bottom:3px solid var(--story-line);background:var(--story-wash)}
.story-vignette>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.story-scene-shade{position:absolute;inset:0;background:linear-gradient(0deg,#243c3240,transparent 55%)}
.story-scene-caption{position:absolute;left:24px;bottom:17px;display:flex;align-items:center;gap:10px;padding:9px 16px 9px 9px;border:1px solid #fff9;border-radius:20px;background:#fffdf0eb;box-shadow:0 4px 15px #31483415;color:var(--story-ink)}
.story-scene-caption small{display:block;font-size:11px;line-height:1.5;letter-spacing:.5px;opacity:.8}
.story-scene-caption b{font:23px/1.4 Garden,Pretendard,sans-serif}
.story-scene-symbol{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:var(--story-wash);font-size:28px}
.story-scene-symbol svg{width:32px;height:32px}
.story-page-eyebrow{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.story-chapter-paging{display:flex;align-items:center;gap:8px;flex:none;font-size:12px;font-weight:700;color:var(--story-ink)}
.story-page-beads{display:flex;align-items:center;gap:4px}
.story-page-beads i{display:block;width:7px;height:7px;border:1px solid var(--story-line);border-radius:50%;background:var(--story-wash)}
.story-page-beads i.read{background:var(--story-line)}
.story-page-beads i.current{width:17px;border-radius:5px;border-color:var(--story-ink);background:var(--story-ink)}
.story-dialog .story-page-tag,.story-dialog h2{color:var(--story-ink)}
.story-dialog .story-reader-copy>.story-cast{border-color:var(--story-line)}
.story-dialog .story-navigation .secondary{background:var(--story-wash);color:var(--story-ink)}

.story-reader-copy{padding:25px 36px 22px}.story-page-tag{display:block;color:#ab8d53;font-size:13px;font-weight:700;line-height:1.6}.story-dialog h2{font-size:32px;color:var(--story-ink);margin:9px 0 14px;word-break:keep-all}.story-dialog h2:focus{outline:none}.story-reader-copy>.story-cast{padding-bottom:19px;margin-bottom:20px;border-bottom:1px dashed #e3dcc2}.story-spoken{padding:18px 22px;border:1px solid #d5e6ce;border-radius:22px 22px 22px 5px;background:#f0f6e6}.story-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:26px}.story-navigation button{min-height:52px;white-space:nowrap;padding:12px 21px;font-size:17px}.story-page-count{font-size:14px;color:#9b9d81;white-space:nowrap;min-width:44px;text-align:center}.story-skip{display:block;margin:16px auto 0;padding:10px 18px;border:0;background:transparent;text-decoration:underline;text-underline-offset:4px;color:#86997f;font-size:15px;min-height:44px}
.story-ending{margin:22px 0 10px;padding:18px 22px;border:1px dashed #ddbf7a;border-radius:19px;background:#fff7db;font-size:19px;font-weight:500;line-height:1.8;word-break:keep-all;color:#84713e;text-align:left}.story-ending-label{display:block;font:17px/1.6 Garden,Pretendard,sans-serif;color:#b08c43;margin-bottom:8px}.story-device-quote{display:flex;align-items:flex-start;gap:12px;padding:18px;border-radius:22px 22px 22px 5px;background:#eff5e4;margin:18px 0}.story-device-quote .avatar{margin-top:3px}.dialog .story-device-quote p{font-size:20px;line-height:1.8;text-align:left;word-break:keep-all;color:#527451}
@media(max-width:650px){.story-prologue{grid-template-columns:1fr}.story-cover-art{min-height:210px;max-height:240px}.story-cover-art img{object-position:center 49%}.story-prologue-copy{padding:25px}.story-book-heading h1{font-size:40px}.story-book-heading>p{font-size:16px}.story-chapter-grid{grid-template-columns:1fr}.story-chapter-card{min-height:155px}.story-book-shell{padding-bottom:35px}.story-book-heading{padding-top:27px}.story-shelf-title{font-size:24px}.story-entry{padding:18px;gap:12px}.story-entry strong{font-size:23px}.story-entry-icon{width:52px;height:57px;border-radius:17px}.story-entry span>span{font-size:13px}.story-reader-copy{padding:22px 24px 18px}.story-vignette{height:185px}.story-scene-caption{left:18px;bottom:14px}.story-dialog h2{font-size:28px}.story-prose p,.dialog .story-prose p{font-size:19px}.story-navigation button{padding:12px 16px;font-size:16px}.story-game-actions .iconbtn{min-width:42px;padding:9px}.story-game-actions{gap:4px}.story-dialog .story-cast-friend{font-size:12px}.story-dialog .story-cast{font-size:14px;gap:6px}.story-dialog .story-cast .avatar{width:32px;height:32px}}
@media(max-width:420px){.story-entry{padding:15px 13px}.story-entry strong{font-size:20px}.story-entry small{font-size:12px}.story-entry span>span{font-size:12px}.story-entry-icon{width:43px;height:49px}.story-entry-icon svg{width:30px;height:30px}.story-entry>b{font-size:22px}.story-prologue-copy{padding:20px}.story-chapter-card{padding:20px;gap:14px}.story-chapter-copy>strong{font-size:23px}.story-reader-copy{padding:18px 18px 16px}.story-vignette{height:150px}.story-scene-caption{left:12px;bottom:11px;padding:7px 12px 7px 7px;gap:7px;border-radius:16px}.story-scene-caption b{font-size:20px}.story-scene-caption small{font-size:10px}.story-scene-symbol{width:38px;height:38px;font-size:25px;border-radius:12px}.story-scene-symbol svg{width:29px;height:29px}.story-prose p,.dialog .story-prose p{font-size:18px;line-height:1.8}.story-dialog h2{font-size:26px}.story-page-tag{font-size:12px}.story-navigation{gap:6px}.story-navigation button{font-size:15px;padding:12px 13px}.story-cast-friend{margin-left:0}.story-dialog .story-cast{row-gap:8px}.story-game-actions .iconbtn{padding:8px;min-width:40px;min-height:44px}.game-top .level-heading h1{font-size:20px}.game-top .level-heading small{font-size:10px}.story-ending{font-size:18px;padding:16px}}
@media(prefers-reduced-motion:reduce){.story-chapter-card{transition:none}.story-chapter-card:hover{transform:none}}

/* Every chapter has a large, visible book button for little fingers. */
.chapter-heading>div:nth-child(2){min-width:0}
.chapter-story-actions{display:flex;align-items:center;gap:16px;margin-left:auto;flex-shrink:0}
.chapter-story-actions .chapter-range{margin-left:0;white-space:nowrap}
.chapter-story-button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:96px;min-height:54px;padding:10px 13px;border:1.5px solid #dcc589;border-radius:18px;background:#fff8dd;color:#92713a;box-shadow:0 3px 0 #d8c99844;font:18px/1.2 Garden,Pretendard,sans-serif}
.chapter-story-button svg{width:28px;height:28px;flex:none}
.chapter-story-button:hover{background:#ffefbc;border-color:#bd9d53}
.chapter-story-button:focus-visible{outline:3px solid #438772;outline-offset:4px}
.story-companion-speech{margin:20px 0}
.story-speaker{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.story-speaker .avatar{flex:none}
.story-speaker-name{font:20px/1.4 Garden,Pretendard,sans-serif;color:#558166}
.story-companion-speech .story-spoken{position:relative;margin-left:26px;border-radius:5px 23px 23px 23px;box-shadow:0 4px 0 #c8dfba33}
.story-companion-speech .story-spoken:before{content:"";position:absolute;top:-9px;left:15px;width:15px;height:15px;background:#f0f6e6;border-top:1px solid #d5e6ce;border-left:1px solid #d5e6ce;transform:rotate(45deg)}
.story-fruit-discovery{margin:18px 0;padding:18px 20px;border:1px solid #c8dfb4;border-radius:23px;background:#f2f8e7;text-align:left}
.story-fruit-heading{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.story-fruit-picture{display:grid;place-items:center;width:66px;height:66px;flex:none;border:2px solid #fff;border-radius:21px;background:#fffcdf}
.story-fruit-picture svg{width:54px;height:54px}
.story-fruit-heading small{display:block;font-size:14px;color:#7d9360;line-height:1.6}
.story-fruit-heading strong{font:26px/1.5 Garden,Pretendard,sans-serif;color:#50805b}
.dialog .story-fruit-discovery .story-prose p{font-size:18px;line-height:1.8;margin-bottom:9px}
@media(max-width:650px){.chapter-story-actions{gap:8px}.chapter-story-actions .chapter-range{font-size:12px}.chapter-story-button{min-width:54px;min-height:56px;padding:6px 10px;flex-direction:column;gap:2px;font-size:13px}.chapter-story-button svg{width:25px;height:25px}.story-companion-speech .story-spoken{margin-left:14px}.story-speaker-name{font-size:19px}.story-fruit-discovery{padding:16px}.story-fruit-heading strong{font-size:24px}}
@media(max-width:420px){.chapter-story-actions{gap:5px;flex-direction:column}.chapter-story-actions .chapter-range{font-size:11px}.chapter-heading{gap:9px}.story-speaker{gap:10px}.dialog .story-fruit-discovery .story-prose p{font-size:17px}}

/* Keep a clear tablet-sized exit visible while the picture-book page scrolls. */
.story-reader-top{position:sticky;top:0;height:0;z-index:5;pointer-events:none}
.story-close{position:absolute;top:12px;right:12px;display:flex;align-items:center;justify-content:center;gap:7px;min-width:94px;min-height:52px;padding:10px 14px;border:2px solid #fff;border-radius:19px;background:#fffdf2f5;box-shadow:0 3px 0 #6a8b6930,0 3px 15px #35553f25;color:#476f59;font:18px/1.2 Garden,Pretendard,sans-serif;pointer-events:auto}
.story-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.7;stroke-linecap:round}
.story-close:hover{background:#edf6dc}.story-close:focus-visible{outline:3px solid #d89b4e;outline-offset:3px}
@media(max-width:420px){.story-close{top:9px;right:9px;min-width:84px;min-height:48px;padding:9px 12px;font-size:17px}}

/* A page has its own reading area; navigation never floats over the words. */
.dialog.story-dialog{display:flex;flex-direction:column;width:min(720px,100%);max-width:720px;max-height:min(940px,calc(100dvh - 40px));overflow:hidden}
.story-reader-top{position:relative;top:auto;height:auto;min-height:64px;flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;padding:8px 12px;border-bottom:1px solid var(--story-line);background:#fffdf2;pointer-events:auto;z-index:1}
.story-close{position:static;min-height:48px;min-width:94px;padding:9px 14px;background:#fffdf2;box-shadow:0 2px 0 #dbe5cc;color:#476f59}
.story-vignette{flex:0 0 auto;height:clamp(145px,21dvh,220px)}
.story-reader-copy{min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-block:18px;padding:24px 34px 26px}
.story-dialog h2{font-size:31px;line-height:1.4;margin:10px 0 16px}
.story-reader-copy>.story-cast{padding-bottom:16px;margin-bottom:23px}
.story-dialog .story-prose p{font-size:23px;line-height:1.8;font-weight:500;color:#405f4f;word-break:keep-all;overflow-wrap:break-word;margin:0 0 19px}
.story-dialog .story-prose p:last-child{margin-bottom:0}
.story-reader-footer{flex:0 0 auto;padding:12px 24px 13px;border-top:1px solid var(--story-line);background:#fffdf2}
.story-reader-footer .story-navigation{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;margin:0}
.story-reader-footer .story-navigation button{min-width:0;min-height:52px;padding:10px 14px;font-size:18px;line-height:1.35;white-space:normal;word-break:keep-all;overflow-wrap:break-word}
.story-reader-footer .story-page-count{font-size:15px;color:#718164;min-width:42px}
.story-reader-shortcut{display:flex;justify-content:center;margin-top:5px}
.story-quick-start{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:8px 18px;border:0;border-radius:12px;background:transparent;color:#54735e;font:600 16px/1.5 Pretendard,sans-serif;text-decoration:underline;text-underline-offset:4px;word-break:keep-all}
.story-quick-start:hover{background:var(--story-wash);color:var(--story-ink)}
.story-quick-start:focus-visible,.story-reader-footer button:focus-visible{outline:3px solid #d89b4e;outline-offset:3px}

/* A companion's short clue stays in the page, below the adventure prose. */
.story-device-hints{margin-top:24px;padding-top:18px;border-top:1px dashed var(--story-line)}
.story-device-hints>small{display:block;font-size:15px;font-weight:650;line-height:1.6;color:var(--story-ink)}
.story-device-hints .story-companion-speech{margin:12px 0 0}
.story-device-hints .story-speaker{margin-bottom:12px}
.story-device-hints .story-speaker-name{font-size:19px;color:var(--story-ink)}
.story-device-hints .story-spoken{padding:15px 19px;background:var(--story-wash);border-color:var(--story-line);box-shadow:none}
.story-device-hints .story-spoken:before{background:var(--story-wash);border-color:var(--story-line)}
.story-dialog .story-device-hints .story-prose p{font-size:21px;line-height:1.75;margin-bottom:13px}
.story-dialog .story-device-hints .story-prose p:last-child{margin-bottom:0}

/* Future chapters look quiet without fading their readable labels or descendants. */
.story-chapter-copy{min-width:0;word-break:keep-all;overflow-wrap:break-word}
.story-chapter-card.is-locked,.story-chapter-card.is-locked:disabled{opacity:1;background:#f2f4e9;border-color:#e0e6d4;color:#73826b;box-shadow:0 3px 0 #dce4d4;transform:none;cursor:default}
.story-chapter-card.is-locked .story-chapter-symbol{background:#e3ead8;color:#859576}
.story-chapter-card.is-locked .story-chapter-copy>strong{color:#6d7f64}
.story-chapter-card.is-locked .story-chapter-copy>span,.story-chapter-card.is-locked .story-chapter-copy>small{color:#63745d}
.story-chapter-card.is-locked .story-chapter-progress{font-size:13px;line-height:1.6}
.story-chapter-card.is-locked .story-card-arrow{color:#859576}
.chapter-story-button:disabled{opacity:1;background:#f0f3e7;border-color:#d5ddc5;color:#788770;box-shadow:0 2px 0 #dfe5d5;cursor:default}

@media(max-width:650px){
  .story-reader-copy{padding:22px 24px 24px}
  .story-dialog h2{font-size:28px}
  .story-dialog .story-prose p{font-size:22px;line-height:1.8;margin-bottom:17px}
  .story-reader-footer{padding:11px 20px 12px}
  .story-reader-footer .story-navigation{gap:10px}
  .story-reader-footer .story-navigation button{font-size:17px;padding:10px 12px}
  .story-device-hints{margin-top:22px;padding-top:16px}
  .story-dialog .story-device-hints .story-prose p{font-size:20px}
}
@media(max-width:420px){
  .dialog.story-dialog{max-height:calc(100dvh - 28px);border-radius:24px}
  .story-reader-top{min-height:58px;padding:7px 9px}
  .story-close{min-height:44px;min-width:84px;padding:8px 12px}
  .story-vignette{height:125px}
  .story-reader-copy{padding:18px 18px 21px}
  .story-dialog h2{font-size:26px}
  .story-dialog .story-prose p{font-size:20px;line-height:1.8;margin-bottom:16px}
  .story-reader-footer{padding:10px 13px 11px}
  .story-reader-footer .story-navigation{gap:7px}
  .story-reader-footer .story-navigation button{font-size:16px;padding:10px 8px}
  .story-reader-footer .story-page-count{min-width:36px;font-size:14px}
  .story-quick-start{font-size:15px;padding-inline:12px}
  .story-device-hints .story-spoken{margin-left:8px;padding:14px 16px}
  .story-dialog .story-device-hints .story-prose p{font-size:19px}
}
@media(max-height:700px) and (min-width:421px){
  .story-reader-top{min-height:58px;padding-block:6px}
  .story-close{min-height:44px}
  .story-vignette{height:120px}
  .story-reader-copy{padding:18px 26px 22px}
  .story-dialog h2{font-size:27px;margin-block:8px 13px}
  .story-dialog .story-prose p{font-size:21px;line-height:1.75;margin-bottom:15px}
  .story-reader-footer{padding-block:9px 10px}
}
@media(max-height:480px){
  .story-vignette{height:82px}
  .story-scene-caption{left:14px;bottom:10px;padding:6px 12px 6px 7px;border-radius:15px}
  .story-scene-caption small{display:none}
  .story-scene-caption b{font-size:20px}
  .story-scene-symbol{width:36px;height:36px;font-size:24px}
  .story-scene-symbol svg{width:27px;height:27px}
}
