.world-bar{position:sticky;top:0;z-index:48;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px max(5%,16px);background:#12100d;border-bottom:1px solid #b89a61;color:#f8ead0;backdrop-filter:blur(12px)}.world-bar label{display:flex;align-items:center;gap:8px;font-size:13px}.world-bar select{font:inherit;font-size:14px;padding:8px 26px 8px 10px;color:inherit;background:#211b15;border:1px solid #a58c60;border-radius:20px}.world-bar a{font-family:Georgia,serif;font-size:20px;letter-spacing:.06em}.world-options{display:flex;gap:12px}body[data-world=story]{background:#faf5e9;color:#4a291c}body[data-world=story] .world-bar{background:#12100d;color:#f8ead0;border-color:#b89a61}body[data-world=story] .world-bar select{background:#211b15;color:#f8ead0}body[data-world=story] #royal-world,body[data-world=story]>#song-lyrics,body[data-world=story]>#english-lyrics,body[data-world=story]>#royal-stars{display:none}body[data-world=real] #storybook{display:none}#storybook{font-family:'Noto Serif JP',Georgia,serif;background:radial-gradient(ellipse at 10% 20%,#ddc99d20,transparent 50%),#faf5e9}#storybook h1,#storybook h2,#storybook h3{letter-spacing:.05em}#storybook h1{font-size:clamp(34px,4.1vw,62px);line-height:1.55;font-weight:600;margin:12px 0 18px}#storybook h2{font-size:clamp(28px,3vw,42px);line-height:1.6;color:#57331f}#storybook h3{font-size:23px;line-height:1.7;margin:12px 0}#storybook p{line-height:2}#storybook .story-head{text-align:center;padding:20px 20px 18px;color:#5b321d}#storybook .story-head strong{display:block;font-size:32px;letter-spacing:.16em}#storybook .story-head small{color:#967039;font-size:11px;letter-spacing:.18em}#storybook .story-hero{position:relative;isolation:isolate;min-height:760px;max-width:1440px;margin:auto;display:flex;justify-content:flex-end;align-items:center;overflow:hidden;background:#102240 url('assets/story-kingdom.jpg') left 36% / cover no-repeat;color:#fff2d4}#storybook .story-hero:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 25%,#08162c40 50%,#08162cbb 100%);z-index:-1}#storybook .story-copy{width:51%;padding:60px 5% 30px 2%;text-align:center;text-shadow:0 2px 15px #08152c}#storybook .story-kicker{font-size:13px;letter-spacing:.25em;color:#ffdfa1}#storybook .story-copy>p{font-size:17px;letter-spacing:.08em}#storybook .story-ornament{color:#edc970;font-size:24px;letter-spacing:.2em}#storybook .story-button{display:inline-flex;align-items:center;justify-content:center;gap:24px;border:1px solid #bd8b35;border-radius:40px;padding:17px 32px;background:linear-gradient(120deg,#f4d47d,#b97a16);box-shadow:inset 0 0 0 3px #ffe4a86b,0 5px 20px #0003;color:#40240d;text-shadow:none;font-weight:700;font-size:18px;margin-top:16px;transition:transform .2s}#storybook .story-button:hover{transform:translateY(-3px)}#storybook .story-subnav{display:flex;justify-content:center;gap:0;padding:30px 16px;border-bottom:1px solid #dac49c;max-width:1140px;margin:auto}#storybook .story-subnav a{flex:1;text-align:center;padding:12px;border-right:1px solid #dcc6a1;font-size:17px}#storybook .story-subnav a:last-child{border:0}#storybook .story-subnav span{display:block;color:#b17d29;font-size:28px;margin-bottom:6px}#storybook .story-section{max-width:1140px;margin:auto;padding:70px 28px}#storybook .story-section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}#storybook .story-section-heading>span{font-size:12px;color:#967039;letter-spacing:.15em}#storybook .story-books{display:grid;grid-template-columns:1fr 1fr;gap:22px}#storybook .story-book{position:relative;border:1px solid #dfc69e;border-radius:18px;background:#fffaf2;padding:28px;box-shadow:0 6px 16px #63401d08;display:flex;flex-direction:column}#storybook .book-number{color:#aa772b;font-size:13px;letter-spacing:.16em}#storybook .story-book p{margin:0 0 22px;font-size:15px;color:#795a42}#storybook .story-book a{margin-top:auto;color:#9a620e;border-bottom:1px solid #caa460;align-self:flex-start;padding:8px 0;font-size:16px}#storybook .story-about{border-block:1px solid #dbc49c;text-align:center;background:#eee1c344}#storybook .story-about p{max-width:680px;margin:24px auto;color:#72563d;font-size:17px}#storybook .story-footer{display:block;background:#182742;color:#fff0cf;text-align:center;padding:40px 24px 60px}#storybook .story-footer p{font-size:13px;color:#f5dfb3;margin:10px}#storybook .story-twinkle{position:absolute;width:4px;height:4px;border-radius:50%;background:#fff1bd;box-shadow:0 0 12px 3px #f6d58d80;animation:gentle-star 6s ease-in-out infinite;pointer-events:none}#storybook .story-twinkle:nth-child(1){top:12%;left:75%}#storybook .story-twinkle:nth-child(2){top:26%;left:55%;animation-delay:2s}#storybook .story-twinkle:nth-child(3){top:7%;left:90%;animation-delay:4s}@keyframes gentle-star{0%,100%{opacity:.2}50%{opacity:1}}#entry-form .entry-worlds{gap:12px;flex-wrap:wrap}#entry-form .entry-worlds label{padding:8px;font-size:16px}#entry-title{font-size:28px}.world-bar:focus-within{z-index:49}@media(min-width:1100px){#storybook .story-hero{background-size:60% auto;background-position:left 43%}#storybook .story-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 35%,#102240 65%);z-index:-1}}@media(max-width:650px){.world-bar{padding:8px 12px;gap:6px}.world-bar>a{display:none}.world-options{width:100%;justify-content:space-between;gap:8px}.world-bar label{font-size:11px;gap:5px}.world-bar select{font-size:13px;max-width:160px;padding:8px 20px 8px 8px}#storybook .story-head{padding:15px}#storybook .story-head strong{font-size:27px}#storybook .story-hero{min-height:740px;aspect-ratio:2/3;align-items:flex-end;background-size:cover;background-position:center}#storybook .story-hero:before{background:linear-gradient(180deg,transparent 33%,#08162c10 48%,#07142cb0 70%,#07142ce8 100%)}#storybook .story-copy{width:100%;padding:0 20px 30px;margin-top:360px}#storybook h1{font-size:clamp(28px,7.3vw,42px);line-height:1.5;margin:8px 0}#storybook .story-copy>p{font-size:14px;margin:10px 0}#storybook .story-ornament{font-size:18px}#storybook .story-button{font-size:17px;padding:15px 30px;margin-top:8px}#storybook .story-subnav{padding:16px 8px}#storybook .story-subnav a{padding:8px;font-size:14px}#storybook .story-subnav span{font-size:23px}#storybook .story-section{padding:44px 20px}#storybook .story-section-heading{display:block}#storybook .story-section-heading>span{display:block;margin-top:10px}#storybook .story-books{grid-template-columns:1fr;gap:16px}#storybook .story-book{padding:24px}#storybook h3{font-size:21px}#storybook .story-about p{font-size:15px}html[lang=en] #storybook h1{font-size:clamp(28px,7.5vw,40px)}#entry-form fieldset{gap:12px}}
#storybook .story-hero{width:100%;min-width:0}#storybook .story-copy{min-width:0}#storybook .story-button{max-width:100%}#storybook .story-kicker{overflow-wrap:anywhere}.world-bar select:focus-visible{outline:2px solid #b48431;outline-offset:3px}#storybook a:focus-visible{outline:2px solid #b48431;outline-offset:5px}body[data-world=story] .world-bar label{color:#f8ead0}
@media(prefers-reduced-motion:reduce){#storybook .story-twinkle{animation:none}#storybook .story-button{transition:none}}
body[data-world=story][data-story-scene=shooting-star] #storybook .story-hero{background-image:url('assets/story-shooting-star.jpg')}#story-falling-stars{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:45}#story-falling-stars span{position:absolute;top:-10%;left:var(--star-left);font-size:var(--star-size);color:#ffedb9;text-shadow:0 0 12px #eacb88;opacity:0;animation:story-star-shower var(--star-duration,6s) ease-in 1 both;pointer-events:none}@keyframes story-star-shower{0%{opacity:0;transform:translate3d(40px,-30px,0) rotate(-15deg)}12%{opacity:.85}80%{opacity:.55}100%{opacity:0;transform:translate3d(var(--star-drift,-100px),110vh,0) rotate(100deg)}}@media(prefers-reduced-motion:reduce){#story-falling-stars{display:none}}@media(max-width:650px){body[data-world=story][data-story-scene=shooting-star] #storybook .story-hero{background-size:100% auto;background-position:center top}}
@media(min-width:1100px){body[data-world=story][data-story-scene=shooting-star] #storybook .story-hero{background-position:left 18%}}

/* Black page canvas and top safe area; native browser chrome uses theme-color where supported. */
html{background:#000}.world-bar,body[data-world=story] .world-bar{background:#000;padding-top:calc(10px + env(safe-area-inset-top,0px));padding-left:max(5%,16px,env(safe-area-inset-left,0px));padding-right:max(5%,16px,env(safe-area-inset-right,0px))}@media(max-width:650px){.world-bar,body[data-world=story] .world-bar{padding-top:calc(8px + env(safe-area-inset-top,0px));padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}}
