.oyakata-portrait{height:auto;max-width:100%;object-fit:contain}
:root{color-scheme:dark;--night:#06152d;--panel:#091d39f5;--white:#f4f4ed;--gold:#ffd15b;--muted:#b8c7df;--line:#647c9e;--blue:#194a83;font-family:'Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;font-size:16px;line-height:1.7;color:var(--white);background:var(--night)}*{box-sizing:border-box}body{margin:0;background:linear-gradient(#04112870,#041128dd),url('world.png') center/cover fixed;min-height:100svh}button,input,textarea,select{font:inherit}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}button,.button{min-height:48px;cursor:pointer;border:1px solid #adbed7;background:#0d2748;color:var(--white);padding:12px 20px;border-radius:3px;box-shadow:inset 0 0 0 3px #0a1931;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:700;line-height:1.5;transition:background .15s,transform .15s}button:hover,.button:hover{background:#224d7f;border-color:#fff}button:active,.button:active{transform:translateY(1px)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #ffde80;outline-offset:5px}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #69b7ff;outline-offset:3px}.primary{background:linear-gradient(#ffe18b,#edb63b);color:#172440;border-color:#ffe9a7;box-shadow:inset 0 0 0 3px #dba942,0 4px 0 #715524}.primary:hover{background:#ffe29a;color:#09182c;border-color:#fff0b9}.primary:before{content:'▶';font-size:12px}.secondary{background:#174878}.muted,small{color:var(--muted)}small{font-size:14px}p{margin:0 0 18px}h1,h2,h3{line-height:1.5;margin:0 0 20px}h1{font-size:clamp(23px,2.6vw,36px)}h2{font-size:22px}h3{font-size:18px}a{color:#b9dcff;text-underline-offset:4px}.frame{background:var(--panel);border:2px solid #eff2ed;outline:1px solid #60789b;outline-offset:4px;box-shadow:inset 0 0 0 4px #07132b,inset 0 0 0 5px #6b82a2,0 14px 32px #0004;border-radius:5px;padding:28px}.topbar{max-width:1560px;margin:auto;padding:24px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font-weight:900;font-size:24px;letter-spacing:.05em;display:flex;align-items:center;gap:10px}.book{color:var(--gold);font-size:30px}.eyebrow{font-size:14px;letter-spacing:.15em;font-weight:700;color:var(--gold);margin-bottom:12px}.progress{display:flex;max-width:800px;gap:8px;margin:0 auto 32px;padding:0 20px;list-style:none}.progress li{flex:1;border:1px solid #667c9a;background:#0e223be8;padding:8px;text-align:center;color:#bbc6d8;font-size:16px}.progress li.current{background:#e7b447;color:#09172d;font-weight:800;border-color:#ffdf79}.progress li.passed{background:#194779;color:#fff}.stagehead{text-align:center;margin:0 20px 20px}.stagehead h1{margin:0}.layout{display:grid;grid-template-columns:minmax(210px,.8fr) minmax(440px,1.4fr) minmax(280px,.95fr);max-width:1560px;gap:28px;margin:0 auto;padding:10px 32px 32px;align-items:start}.scene{position:sticky;top:24px}.scene-art{height:330px;background:url('world.png') 85% 65%/auto 160%;image-rendering:pixelated;border:1px solid #617697;position:relative;border-radius:5px;margin-bottom:20px;box-shadow:0 8px 28px #0005}.scene-tag{position:absolute;top:18px;left:16px;background:#0a1b31e8;border:1px solid #e4b75c;padding:4px 14px;color:#f6db92;letter-spacing:.15em}.scene .frame{font-size:18px}.scene .chapter-symbol{font-size:36px;color:#ffda77;display:block;margin-bottom:6px}.scene .frame:after{content:'▼';display:block;text-align:right;color:#c1d7f0;font-size:12px}.question fieldset{border:0;margin:0 0 24px;padding:0;min-width:0}.question legend{font-size:21px;font-weight:700;line-height:1.55;padding:0;margin-bottom:14px}.choicegrid{display:grid;gap:9px}.choice{display:flex;align-items:center;gap:12px;min-height:50px;padding:10px 14px;border:1px solid #7388a7;background:#152940;cursor:pointer;border-radius:3px;line-height:1.6}.choice:hover{background:#203c60}.choice.selected{background:#29446b;border-color:#ffd269;box-shadow:inset 3px 0 #ffd269}.choice input{appearance:none;width:22px;height:22px;border:2px solid #b4c4db;border-radius:3px;flex:0 0 22px;display:grid;place-content:center;margin:0}.choice input[type=radio]{border-radius:50%}.choice input:checked{background:#ffd261;border-color:#ffd261}.choice input:checked:after{content:'✓';color:#09172d;font-size:20px;line-height:1;font-weight:900}.choice input[type=radio]:checked:after{content:'●';font-size:13px}.choice.unknown{border-style:dashed;color:#d3dcea}.text-field{display:block;margin:22px 0}.text-field>span{display:block;margin-bottom:7px;font-weight:700}.text-field textarea,.text-field input,select,.manual-copy{width:100%;padding:12px 14px;border:1px solid #9faec4;border-radius:3px;background:#eaf0fa;color:#14223b;min-height:48px}.text-field textarea{resize:vertical;min-height:90px}.text-field input::placeholder,.text-field textarea::placeholder{color:#576782}.count{display:block;text-align:right;font-size:13px;color:#adbfda}select{margin-top:8px}.actions{display:flex;gap:12px;flex-wrap:wrap}.actions>*{flex:1}.question .actions{border-top:1px dashed #71829d;margin-top:24px;padding-top:22px}.question .actions .primary{flex:3;padding:12px}.support-note{font-size:14px;color:#bfcee2;margin:18px 0 0}.hint{position:sticky;top:24px}.hint h2{font-size:20px}.hint-person{width:82px;height:88px;object-fit:cover;float:left;margin:0 14px 8px 0;border-radius:4px}.hint-text{font-size:16px}.article{clear:both;background:#edf3fc;color:#112442;padding:20px;border-radius:3px;margin:24px 0 14px;border-left:4px solid #d5b45e}.article .book{display:block;font-size:36px;margin-bottom:8px}.article h3{font-size:18px;margin-bottom:12px}.article p{font-size:15px;line-height:1.8}.article .button{display:flex;font-size:16px;background:#fff;color:#164c83;border:2px solid #235a94;box-shadow:none;padding:10px}.article small{display:block;margin-top:8px;color:#506079}.subarticle{font-size:14px;margin:14px 0 24px}.hint .skip{width:100%;margin-top:12px}.hint-toggle,.hint-close{display:none}.optional{border-top:1px dashed #6c83a0;padding-top:18px;margin-top:20px}.optional summary{font-weight:700;cursor:pointer;min-height:48px;padding:5px 0}.optional summary small{display:block;font-weight:400}.footer{text-align:center;padding:24px 24px 30px;background:#041127bb;font-size:14px;color:#c6d2e5}.footer .privacy{max-width:820px;margin:0 auto 12px;font-size:13px}.title-screen{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:calc(100svh - 125px);padding:50px 20px 40px;text-align:center;background:linear-gradient(#061b3c12,#05142b25)}body:has(.title-screen){background:linear-gradient(#06172c20,#06172c30),url('world.png') center/cover fixed}.logo{background:#07384dee;border:4px solid #ebbc52;outline:2px solid #102546;box-shadow:0 9px 0 #051a31,0 0 40px #0008;padding:14px 35px 18px;position:relative;margin:0 0 30px;max-width:95%;transform:rotate(-2deg)}.logo:before,.logo:after{content:'';position:absolute;inset:-9px -9px;border:3px solid #e8b641;clip-path:polygon(0 0,12% 0,12% 10%,88% 10%,88% 0,100% 0,100% 100%,88% 100%,88% 90%,12% 90%,12% 100%,0 100%);pointer-events:none}.logo h1{font-size:clamp(28px,6vw,76px);letter-spacing:.035em;font-weight:1000;color:#fff3c0;text-shadow:3px 4px #99702b,6px 7px #061f31;margin:0;white-space:nowrap}.logo .book{font-size:45px;line-height:1.2}.title-menu{width:min(360px,90%);display:grid;gap:14px;padding:24px;margin-top:22px;background:#071933ed}.title-menu button{font-size:20px}.title-intro{margin-top:30px;max-width:550px;background:#071931e8;padding:18px 30px;font-size:18px}.title-intro p{margin:0}.title-boss{position:absolute;right:5%;top:7%;display:grid;justify-items:center;gap:5px}.title-boss img{width:100px;height:100px;object-fit:cover;border-radius:50%;border:2px solid #d1af61}.title-boss span{font-size:14px;background:#081932e8;border:1px solid #b9cbe2;padding:2px 10px}.center-screen{max-width:780px;padding:36px 24px 60px;margin:auto;min-height:70svh;display:grid;align-content:center;gap:28px}.intro-screen .scene-art{height:220px;margin:0}.center-screen h1{color:#ffe098}.final-layout{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(500px,1.5fr);gap:36px;max-width:1230px;margin:30px auto 50px;padding:0 32px;align-items:start}.boss-card img{width:100%;max-height:380px;object-fit:contain;image-rendering:pixelated}.boss-card .eyebrow{text-align:center}.boss-card p{font-size:20px}.memo-section h2{margin-bottom:8px}.memo-product{color:#f5d782;overflow-wrap:anywhere}.memo-row{border-top:1px solid #4b678e}.memo-row summary{cursor:pointer;padding:16px 0;display:flex;gap:16px;align-items:baseline;min-height:56px}.memo-row summary:after{content:'＋';margin-left:auto;color:#e4bf68}.memo-row[open] summary:after{content:'−'}.memo-row summary strong{flex:0 0 64px;color:#ffdb80}.memo-row summary .summary-value{color:#c9d7e8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.memo-row dl{padding:0 6px 12px;margin:0}.memo-row dt{color:#a5bcdb;font-size:14px;margin-top:12px}.memo-row dd{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}.consult-box{margin:20px 0;padding:18px;background:#174376;border:1px solid #759cc6}.consult-box h3{color:#ffe298;margin-bottom:8px}.consult-box p{margin:0;overflow-wrap:anywhere}.destination{margin-top:30px}.destination h2{font-size:20px}.destination button{width:100%;margin-top:12px}.ready{max-width:1080px;margin:30px auto 50px;padding:0 32px}.ready-heading{text-align:center}.ready-heading h1{font-size:clamp(27px,4vw,44px);color:#ffdf7e}.ready .welcome{max-width:740px;margin:20px auto 30px;display:flex;flex-direction:column;align-items:center;gap:20px}.welcome img{display:block;width:180px;max-width:100%;height:auto;object-fit:contain;border-radius:5px}.welcome p{width:100%;margin:0;overflow-wrap:anywhere}.two-steps{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:30px 0}.number{width:38px;height:38px;border-radius:50%;background:#ffd367;color:#182642;display:inline-grid;place-items:center;margin-right:10px}.two-steps .button,.two-steps button{width:100%;margin:10px 0}.actual-summary{margin-top:26px}.actual-summary p{overflow-wrap:anywhere}.game-over{text-align:center}.game-over h1{font-family:Georgia,serif;font-weight:900;font-size:clamp(44px,8vw,85px);letter-spacing:.08em;color:#ffe4a3;text-shadow:4px 5px #701d29;margin:0}.game-over img{width:180px;height:auto;max-width:100%;object-fit:contain;border-radius:8px}.game-over .quote{font-size:24px;color:#ffe3a3}.game-over .primary{width:100%;margin-bottom:16px}.game-over{animation:arrive .4s ease-out}@keyframes arrive{from{opacity:0}to{opacity:1}}dialog{background:#081c38;color:#f3f4f8;border:double 6px #c7d9ed;max-width:min(850px,calc(100vw - 32px));max-height:85svh;width:760px;padding:28px;border-radius:5px;box-shadow:0 20px 80px #000b}dialog::backdrop{background:#000a}dialog h2{padding-right:24px}dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:16px}.dialog-actions{display:flex;justify-content:flex-end;gap:16px;margin-top:22px}.manual-copy{height:48vh;font-size:16px;resize:vertical}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#f5d786;color:#08172c;padding:10px 24px;border:2px solid #fff;z-index:20;max-width:90%;text-align:center;pointer-events:none;opacity:0;font-weight:700}#toast.visible{opacity:1}.extra-wrap:empty{display:none}
@media(min-width:1650px){.title-boss{right:14%;top:10%}}@media(max-width:1199px){.layout{grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);max-width:1000px}.scene{display:none}.hint{top:20px}.topbar{max-width:1000px}.title-boss{right:3%;top:3%}.final-layout{grid-template-columns:260px minmax(0,1fr)}.frame{padding:24px}}
@media(max-width:767px){.topbar{padding:17px 18px;gap:10px}.brand{font-size:18px;letter-spacing:0}.book{font-size:24px}.topbar button{padding:8px 12px;font-size:14px}.stagehead{margin:12px 18px 20px;text-align:left}.stagehead h1{font-size:23px}.eyebrow{font-size:13px}.progress{padding:0 18px;gap:5px;margin-bottom:24px}.progress li{font-size:13px;padding:7px 0}.layout{display:flex;flex-direction:column;padding:0 18px 28px;gap:22px}.question{width:100%;order:0}.frame{padding:22px 18px}.question legend{font-size:20px}.choice{padding:11px 12px;gap:10px;font-size:16px}.hint{position:static;width:100%;display:none;order:1}.hint.open{display:block}.hint-toggle,.hint-close{display:flex;width:100%;margin-bottom:20px}.hint-close{margin:20px 0 0}.question .actions{gap:10px;flex-direction:column-reverse}.question .actions button{width:100%}.title-screen{min-height:calc(100svh - 140px);padding-top:145px}.title-boss{right:calc(50% - 67px);top:22px}.title-boss img{width:74px;height:74px}.title-boss span{font-size:12px}.logo{padding:12px 15px;margin-bottom:12px;max-width:100%}.logo h1{font-size:clamp(26px,7.7vw,52px)}.logo .book{font-size:34px}.title-menu{max-width:300px;margin-top:15px}.title-intro{font-size:16px;margin-top:26px;padding:15px 20px}.footer{padding:18px 20px;font-size:13px}.footer .privacy{font-size:12px}.center-screen{padding:24px 18px 40px;min-height:65svh}.final-layout{display:flex;flex-direction:column;padding:0 18px;gap:24px;margin-top:10px}.boss-card{width:100%;display:grid;grid-template-columns:100px 1fr;gap:12px;align-items:center}.boss-card img{grid-row:1/3;max-height:125px}.boss-card .eyebrow{text-align:left;margin:0}.boss-card .frame{padding:14px;border:0;outline:0;box-shadow:none}.boss-card p{font-size:16px;margin:0}.memo-section{width:100%;min-width:0}.memo-row summary{gap:10px}.memo-row summary strong{flex-basis:55px;font-size:15px}.memo-row summary .summary-value{font-size:14px}.memo-section .actions{flex-direction:column}.ready{padding:0 18px}.ready .welcome{gap:12px}.welcome img{width:160px}.two-steps{grid-template-columns:1fr;gap:24px}.game-over .quote{font-size:20px}.game-over .actions{flex-direction:column}dialog{padding:20px 16px}.dialog-actions{flex-wrap:wrap}.question .support-note{font-size:13px}}
/* Keep the next action prominent even when motion is disabled. */
.primary[data-action="next"]{border:3px solid #fff3bd;box-shadow:inset 0 0 0 2px #dba942,0 4px 0 #715524,0 0 0 3px #ffd15b55;background:#ffd15b}
.primary[data-action="next"]:before{content:'▶';font-size:20px;flex-shrink:0}
@media(prefers-reduced-motion:no-preference){
.primary[data-action="next"]{animation:next-beacon 1.6s ease-in-out infinite}
.primary[data-action="next"]:before{animation:next-arrow 1.6s ease-in-out infinite}
}
@keyframes next-beacon{0%,100%{background-color:#edb63b;box-shadow:inset 0 0 0 2px #dba942,0 4px 0 #715524,0 0 0 3px #ffd15b55}50%{background-color:#fff0b3;box-shadow:inset 0 0 0 2px #ffe7a0,0 4px 0 #715524,0 0 0 6px #ffd15b99,0 0 22px #ffd15b80}}
@keyframes next-arrow{0%,100%{transform:translateX(-3px)}50%{transform:translateX(5px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Image-led retro RPG title screen. */
body:has(.title-screen){background:#041436}
.title-screen{min-height:760px;min-height:max(720px,calc(100svh - 100px));padding:30px 24px 28px;display:grid;grid-template-rows:auto 1fr auto;justify-items:center;align-items:start;gap:24px;background:linear-gradient(180deg,#0016440a,#00143b00 55%,#00103033),url('world.png') center center/cover no-repeat;isolation:isolate}
.title-brand{width:min(76vw,1000px);z-index:1;text-align:center;align-self:start}
.title-brand h1{margin:0;line-height:1}
.title-logo{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 5px 0 #031331);image-rendering:auto}
.title-tagline,.title-subtitle{font-family:'Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,monospace;font-weight:800;color:#fff8dc;text-shadow:2px 2px #001237,0 0 8px #001237;line-height:1.5}
.title-tagline{font-size:clamp(17px,2.05vw,30px);letter-spacing:.1em;margin:0 0 4px}
.title-subtitle{display:flex;align-items:center;justify-content:center;gap:16px;font-size:clamp(18px,2vw,28px);letter-spacing:.12em;margin:0}
.title-subtitle:before,.title-subtitle:after{content:'◆';color:#ffda62;font-size:16px;text-shadow:2px 2px #705019}
.title-screen .frame{background:#001447f5;border:6px double #f3f1df;border-radius:0;outline:2px solid #0c2453;outline-offset:2px;box-shadow:0 0 0 5px #e6e6d4,0 8px 0 5px #041332a8,inset 0 0 0 2px #7896c0}
.title-screen .title-menu{align-self:center;display:grid;gap:4px;width:min(360px,85vw);max-width:none;margin:0;padding:18px 20px;text-align:left;z-index:2}
.title-menu button{position:relative;display:block;min-height:58px;width:100%;border:0;border-radius:0;box-shadow:none;background:transparent;color:#fff8e9;padding:10px 10px 10px 42px;font-size:clamp(21px,2.2vw,30px);line-height:1.5;letter-spacing:.12em;text-align:left;text-shadow:2px 2px #041030;transition:none;transform:none}
.title-menu button:before{content:'▶';position:absolute;left:9px;top:50%;transform:translateY(-50%);font-size:22px;color:#fff7d9;opacity:0}
.title-menu button:first-child:before{opacity:1}
.title-menu:has(button:hover) button:before,.title-menu:focus-within button:before{opacity:0}
.title-menu button:hover,.title-menu button:focus-visible{background:#183e7477;color:#ffe08b}
.title-menu button:hover:before,.title-menu button:focus-visible:before{opacity:1}
.title-menu button:focus-visible{outline:2px dashed #ffe08b;outline-offset:1px}
.title-screen .title-intro{align-self:end;max-width:none;width:min(550px,88vw);padding:16px 26px;margin:0;font-weight:700;font-size:clamp(18px,1.8vw,25px);line-height:1.65;text-align:left;letter-spacing:.08em;z-index:2}
.title-boss{right:2.5%;top:20px;z-index:2;max-width:175px}
.title-boss img{width:clamp(90px,10vw,145px);height:auto;border:0;border-radius:0;object-fit:contain;filter:drop-shadow(3px 4px 0 #001332)}
.title-boss span{font-size:clamp(11px,1.1vw,16px);border:4px double #f3f1df;background:#001447;padding:2px 8px;white-space:nowrap;box-shadow:0 0 0 2px #11264c}
body:has(.title-screen) .footer{background:#041436}
@media(max-width:900px){.title-brand{width:min(95vw,840px);padding-top:105px}.title-boss{right:20px;top:10px;max-width:150px}.title-boss img{width:82px}.title-screen{min-height:800px;gap:24px;padding:18px 20px 26px}.title-boss span{font-size:12px}.title-tagline{font-size:18px}.title-subtitle{font-size:20px}}
@media(max-width:540px){.title-screen{min-height:calc(100svh - 80px);min-height:max(660px,calc(100svh - 80px));padding:20px 16px 30px;background-position:55% center;gap:28px}.title-brand{width:100%;padding-top:92px}.title-boss{right:18px;top:10px}.title-boss img{width:70px}.title-boss span{font-size:11px}.title-tagline{font-size:14px;letter-spacing:.02em;margin-bottom:8px}.title-subtitle{font-size:17px;letter-spacing:.05em;gap:10px;margin-top:8px}.title-subtitle:before,.title-subtitle:after{font-size:11px}.title-screen .title-menu{width:min(300px,85vw);padding:12px 14px}.title-menu button{font-size:23px;min-height:56px}.title-screen .title-intro{width:min(440px,88vw);padding:14px 18px;font-size:18px}}
