/* クイズの舞台。状態が変わっても問題と選択肢の位置を保つ。 */
body.playing{height:100vh;height:100dvh;overflow:hidden}body.playing #app{height:100%;display:flex;flex-direction:column;overflow:hidden}
.game-topbar{height:54px;flex:0 0 54px;padding:8px 23px;display:flex;align-items:center;justify-content:space-between;gap:15px;max-width:1500px;width:100%;margin:auto}.game-topbar .logo-main{font-size:26px}.game-topbar .logo-sub{font-size:9px;margin-top:3px}.game-topbar nav{display:flex;gap:8px}.game-concept{margin-left:auto;color:#859171;font-size:11px;letter-spacing:.08em}
.game-shell{flex:1;min-height:0;max-width:1500px;width:100%;margin:auto;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr);grid-template-rows:54px minmax(0,1fr) 18px;gap:12px;padding:0 20px 10px}
.growth-trail{grid-column:1/3;display:flex;align-items:center;gap:0;padding:0 7px}.growth-stop{flex:1;display:flex;align-items:center;gap:10px;position:relative;color:#9aab92}.growth-stop:not(:first-child):before{content:"";position:absolute;right:calc(100% + 6px);left:-40%;height:2px;background:#d8dfc8;z-index:-1}.growth-stop>span{height:28px;width:28px;border-radius:50%;border:1px solid #c7d1b3;background:#f4f4e6;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800}.growth-stop>div{display:flex;align-items:center;gap:9px;background:#fff8e9;padding-right:13px}.growth-stop strong{font-size:21px;font-weight:900;line-height:1}.growth-stop small{font-size:11px;margin-left:2px}.growth-stop em{font-size:11px;font-style:normal;white-space:nowrap}.growth-stop.current{color:#167f75}.growth-stop.current>span{color:#fff;background:#167f75;border-color:#167f75;box-shadow:0 0 0 5px #e0ebce}.growth-stop.passed{color:#5e9870}.growth-stop.passed>span{border-color:#9fc2a0;background:#e5f0d8}.total-progress{display:flex;align-items:baseline;gap:4px;padding-left:12px;font-size:12px;white-space:nowrap}.total-progress b{font-size:21px}.total-progress span{color:#88937b;font-size:11px}
.family-stage{display:flex;min-height:0;min-width:0;flex-direction:column;background:#fffdf3;border:1px solid #d7dcc4;border-radius:23px;overflow:hidden;box-shadow:0 5px 0 #d9dec833,0 8px 22px #83865a10;position:relative}.family-heading{flex:0 0 58px;display:flex;align-items:center;justify-content:space-between;padding:8px 15px;background:#fffdf4}.family-heading>div:first-child{display:grid;gap:3px}.family-heading>div>span{font-size:10px;letter-spacing:.04em;color:#7c8c70}.family-heading>div>strong{font-size:20px;letter-spacing:.02em}.family-heading small{font-size:13px;margin-left:8px;color:#82926f;font-weight:500}.strength-display{display:grid;grid-template-columns:auto auto;grid-template-rows:23px 5px;gap:4px 9px;align-items:baseline;text-align:right;min-width:90px}.strength-display>span{font-size:11px!important;color:#2c8d7f!important}.strength-display>strong{color:#167f75;font-size:24px!important;line-height:1}.strength-display>i{grid-column:1/3;height:5px;border-radius:5px;background:linear-gradient(to right,#61b38d var(--strength),#e0e8d5 var(--strength));width:100%}
.family-picture{flex:1;min-height:0;position:relative}.family-picture .family-scene{height:100%;border-radius:0}.family-picture .family-scene:after{content:"";position:absolute;bottom:0;left:0;right:0;height:35px;background:linear-gradient(transparent,#fffdf3);z-index:6;pointer-events:none}.family-picture .family-portraits{z-index:2}.family-picture .child{width:var(--child-size,230px);left:calc(50% - var(--child-size,230px)/2);bottom:0;translate:var(--attention-x,0px) 0;transition:translate .16s;animation:child-idle 5s ease-in-out infinite}.family-picture .papa,.family-picture .mama{width:var(--parent-size,230px);bottom:3%;animation:parent-idle 5.8s ease-in-out infinite}.family-picture .papa{left:calc(50% - var(--child-size,230px)*.37 - var(--parent-size,230px)*.8)}.family-picture .mama{left:calc(50% + var(--child-size,230px)*.37 - var(--parent-size,230px)*.2)}.family-picture .active-parent{filter:drop-shadow(0 0 8px #fff7b6) drop-shadow(0 6px 4px #3b493229)}.family-picture .is-resting{animation:none;filter:saturate(.7);transform:rotate(7deg) translateY(8px)}.family-picture .mama.is-resting{transform:rotate(-7deg) translateY(8px)}
.family-speech{position:absolute;top:11px;left:50%;transform:translateX(-50%);width:max-content;max-width:86%;min-width:130px;background:#fffdf8f5;border:2px solid #dec989;box-shadow:0 5px 15px #66532520;border-radius:17px;padding:8px 14px;z-index:8;text-align:center;animation:speech-in .22s ease-out}.family-speech:after{content:"";position:absolute;width:11px;height:11px;background:#fffdf8;bottom:-7px;left:calc(50% - 6px);transform:rotate(45deg);border-right:2px solid #dec989;border-bottom:2px solid #dec989}.family-speech>span{font-size:9px;font-weight:700;color:#b4904f;display:block;margin-bottom:2px}.family-speech p{margin:0;font-size:clamp(12px,1.25vw,17px);line-height:1.55;font-weight:700;color:#675b3e}.family-speech.gentle{border-color:#d4b49e}.family-speech[hidden]{display:none}.personality-label{position:absolute;bottom:7px;left:12px;z-index:9;font-size:10px;color:#657b5c;background:#fffef2d9;padding:4px 9px;border-radius:8px}
.family-controls{flex:0 0 92px;display:grid;grid-template-columns:1fr 46px 1fr;gap:7px;padding:3px 10px 8px;z-index:10}.parent-card{background:#f0f6ec;border:2px solid #d3e0cf;border-radius:14px;padding:8px 10px;position:relative;display:flex;flex-direction:column;justify-content:center;gap:5px;text-align:left;min-width:0;box-shadow:0 2px 0 #d2dac2}.parent-card.mama-card{background:#fcf0e8;border-color:#e9d6c8}.parent-card.is-active{border-color:#16897b;box-shadow:0 0 0 2px #16897b1f,0 3px 0 #85b6a1;background:#e7f4df}.parent-card.mama-card.is-active{border-color:#d47b63;background:#fff0df;box-shadow:0 0 0 2px #d47b6322,0 3px 0 #d5a28b}.parent-card:not(:disabled):is(:hover,:focus-visible){transform:translateY(-2px);box-shadow:0 0 0 3px #91b49b55,0 3px 0 #7eaa91}.parent-card-top,.parent-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px}.parent-card-top strong{font-size:16px}.parent-card-top>span{font-size:9px;font-weight:700;color:#6c9879;white-space:nowrap}.mama-card .parent-card-top>span{color:#bc8069}.lives{display:flex;gap:3px}.life{font-size:19px;line-height:1;font-style:normal;color:#e28271;filter:drop-shadow(0 1px white)}.life.spent{color:#c8cbb6;opacity:.6}.parent-score{font-size:10px;color:#77836e;white-space:nowrap}.parent-score b{font-size:15px;margin:0 2px;color:#3c6452}.parent-card-note{font-size:9px;color:#8d967b}.parent-card.is-down{opacity:1;background:#eeede1;border-color:#d6d4c5;box-shadow:none}.parent-card.is-down .parent-card-top>span{color:#9b8b6e}.parent-card.is-down .life{color:#b8bda4}.parent-card.is-down .parent-card-note{color:#9c8e70}.parent-card.is-danger:not(.is-down){border-color:#d49a43}.parent-card.is-danger .parent-card-note{color:#b5742e;font-weight:700}
.switch-button{border:0;background:#faf8e9;border-radius:13px;min-width:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px;color:#568c72;font-size:26px;gap:3px}.switch-button small{font-size:10px}.switch-button:not(:disabled):is(:hover,:focus-visible){background:#e1efd8;box-shadow:0 0 0 3px #167f7522}.chapter-progress{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 13px 11px;flex:0 0 28px}.chapter-progress>span{font-size:10px;color:#8a937b;white-space:nowrap}.chapter-progress b{color:#68845e;font-weight:700}.chapter-dots{display:flex;gap:3px;flex:1;max-width:55%;min-width:0}.chapter-dots i{display:block;flex:1;height:5px;border-radius:3px;background:#e4e9d4}.chapter-dots i.done{background:#6eb786}
.quiz-console,.dialogue-console{min-height:0;min-width:0;border:2px solid #d6dec5;border-radius:23px;padding:18px 22px;background:#fffefa;box-shadow:0 5px 0 #cdd8bd38,0 10px 30px #6a795512;display:flex;flex-direction:column;position:relative;overflow:hidden}.panel-meta{display:flex;align-items:center;gap:12px;flex:0 0 27px;color:#88947b;font-size:11px}.panel-meta>span:nth-child(2){margin-left:auto;white-space:nowrap}.panel-meta>span>b{font-size:16px;color:#667e5d}.genre-label{display:inline-flex;background:#dcefe7;color:#2d7b68;border-radius:8px;min-height:25px;align-items:center;font-size:12px;padding:4px 12px;font-weight:800}.answering-label{color:#9b7a44;font-weight:700;font-size:10px;white-space:nowrap;border-left:1px solid #e1dfc7;padding-left:10px}
.quiz-console h2{flex:0 0 auto;max-height:23%;overflow:auto;font-size:calc(clamp(19px,2.05vw,29px) * var(--font-scale));line-height:1.55;margin:18px 0;outline:none;overscroll-behavior:contain}.answers{flex:1;min-height:122px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(2,minmax(54px,1fr));gap:10px}.answer{border:2px solid var(--choice-border);background:var(--choice-bg);box-shadow:0 3px 0 var(--choice-shadow);border-radius:16px;padding:10px 13px;display:flex;align-items:center;gap:10px;position:relative;min-width:0;min-height:54px;text-align:left;isolation:isolate;overflow:hidden;transition:box-shadow .12s,transform .12s,background .12s,filter .12s}.choice-0{--choice-bg:#fff0e7;--choice-border:#efc4ae;--choice-shadow:#efc4ae80;--choice-accent:#d78566}.choice-1{--choice-bg:#eaf5fa;--choice-border:#b8d9e7;--choice-shadow:#b8d9e780;--choice-accent:#589cba}.choice-2{--choice-bg:#fff7d9;--choice-border:#e7d493;--choice-shadow:#e7d49380;--choice-accent:#b59a43}.choice-3{--choice-bg:#eaf4e6;--choice-border:#c2d9b6;--choice-shadow:#c2d9b680;--choice-accent:#719e61}.answer-letter{display:flex;align-items:center;justify-content:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:var(--choice-accent);color:#fff;font-size:19px;font-weight:900;transition:transform .15s}.answer-text{font-size:calc(clamp(16px,1.5vw,22px) * var(--font-scale));line-height:1.5;min-width:0;max-height:100%;overflow:auto;overscroll-behavior:contain;flex:1}.answer kbd{position:absolute;right:6px;top:5px;color:#8a9a7d;font-size:9px}.answer:after{content:"";position:absolute;inset:-100% auto -100% -60%;width:30%;background:linear-gradient(90deg,transparent,#fffb,transparent);transform:rotate(22deg);pointer-events:none;opacity:0}.answer:not(:disabled):is(:hover,:focus-visible){transform:translateY(-3px);box-shadow:0 0 0 3px #258b78,0 6px 0 #17726138;z-index:3;filter:brightness(1.02);outline:none}.answer:not(:disabled):is(:hover,:focus-visible) .answer-letter{transform:rotate(-8deg) scale(1.1)}.answer:not(:disabled):is(:hover,:focus-visible):after{animation:choice-light .6s ease-out}.answer.is-eliminated{opacity:.25;box-shadow:none}.answered .answer{opacity:1;cursor:default;box-shadow:0 2px 0 var(--choice-shadow)}.answered .answer-other{opacity:.35;filter:saturate(.4)}.answered .answer-correct{background:#ddf3d4;border-color:#419665;--choice-accent:#25844d;box-shadow:0 0 0 2px #71b77a55,0 3px 0 #7eb47b}.answered .answer-wrong{background:#fbe5df;border-color:#cf816b;--choice-accent:#c56550}.your-answer{position:absolute;bottom:3px;right:8px;font-size:9px;color:#7b7f61}.has-beat .answer-correct{animation:answer-reveal .32s ease-out}.has-beat .answer-wrong{animation:wrong-reveal .32s ease-out}
.console-bottom{flex:0 0 155px;min-height:0;display:flex;flex-direction:column;margin-top:16px}.quiz-coach{display:flex;align-items:center;gap:11px;flex:1;padding:10px 14px;background:#f5f6e9;border-radius:13px;border:1px solid #ecebd8}.quiz-coach>span{font-size:23px;color:#c6a756}.quiz-coach p{font-size:calc(12px * var(--font-scale));line-height:1.7;margin:0;color:#849072}.console-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 46px;margin-top:10px}.keyboard-guide{font-size:10px;color:#9ba38d;white-space:nowrap}.hint-button{min-height:42px;padding:7px 14px;border-radius:12px;background:#fff3cd;border:1px solid #ddc983;color:#8c7336;font-size:13px;box-shadow:0 2px 0 #e2cd8c55}.hint-button b{font-size:18px;margin-left:7px}.hint-button small{font-size:10px}.hint-button:not(:disabled):is(:hover,:focus-visible){background:#ffe9a5;transform:translateY(-2px);box-shadow:0 0 0 3px #ddc98355,0 2px 0 #ddc983}.next-button{min-height:43px;padding:8px 18px;font-size:14px}.next-button:disabled{opacity:.5}.answer-feedback{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}.feedback-title{display:flex;align-items:center;gap:10px;color:#25844d;outline:none;flex:0 0 24px}.feedback-title strong{font-size:16px}.feedback-title>span{font-size:12px;font-weight:800;background:#e5f2df;padding:3px 7px;border-radius:7px;margin-left:auto;white-space:nowrap}.feedback-title>small{font-size:10px;font-weight:800;color:#ad8528}.incorrect .feedback-title{color:#bb6f54}.incorrect .feedback-title>span{background:#f8e6da}.explanation{flex:1;min-height:0;overflow:auto;margin:0;font-size:calc(14px * var(--font-scale));line-height:1.7;color:#72816a;overscroll-behavior:contain}.state-notice{margin:0;flex:0 0 auto;font-size:11px;font-weight:700;color:#b07d32;line-height:1.5}.fresh-feedback{animation:feedback-enter .3s ease-out}
.dialogue-console .panel-meta{margin-bottom:20px}.dialogue-console h2{font-size:21px;line-height:1.6;margin:0 0 25px;color:#657d58}.dialogue-card{flex:1;min-height:0;display:flex;flex-direction:column;padding:23px 22px;border:2px solid #eadcb0;border-radius:19px;background:#fff8e3;position:relative;box-shadow:0 4px 0 #eadcb025}.dialogue-card.speaker-papa{position:relative;width:auto;left:auto;bottom:auto;background:#eef7ef;border-color:#c7dcc7}.dialogue-card.speaker-mama{position:relative;width:auto;left:auto;bottom:auto;background:#fff0e5;border-color:#edcfb8}.dialogue-speaker{font-size:16px;font-weight:800;color:#a7833b;margin-bottom:18px}.dialogue-card.speaker-papa .dialogue-speaker{color:#4b8b6d}.dialogue-card.speaker-mama .dialogue-speaker{color:#ba8467}.dialogue-text{overflow:auto;min-height:0;margin:0;font-size:calc(clamp(20px,2vw,29px) * var(--font-scale));line-height:1.9;overscroll-behavior:contain;animation:dialogue-enter .18s ease-out}.dialogue-dots{display:flex;gap:7px;justify-content:center;padding:18px;flex:0 0 41px}.dialogue-dots i{width:7px;height:7px;border-radius:50%;background:#dce2c9}.dialogue-dots .current{background:#c8a950;box-shadow:0 0 0 3px #f4e9be}.dialogue-dots .done{background:#b7c99d}.dialogue-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:0 0 48px}.dialogue-actions .primary{min-width:120px;font-size:15px}
.game-footer{grid-column:1/3;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 3px;font-size:10px;color:#8c997e}.game-footer>span:first-child{color:#ac8777}.journal-button{font-size:10px;min-height:20px;padding:2px 8px;background:none;text-decoration:underline;text-underline-offset:3px;color:#859274}.game-footer>span:last-child{font-size:9px}
/* 反応は短い芝居として、回答確定→親→子供の順に始める。 */
.family-picture .play-reaction.is-correct .answering-parent{animation:parent-cheer .7s .16s cubic-bezier(.2,.7,.3,1) both}.family-picture .play-reaction.is-correct .child{animation:child-cheer .9s .23s cubic-bezier(.2,.7,.3,1) both}.family-picture .play-reaction.is-wrong .answering-parent{animation:parent-fluster .7s .16s ease-out both}.family-picture .play-reaction.is-wrong .child{animation:child-listen .75s .25s ease-out both}.family-picture .sprite.knocked-parent{animation:parent-down .8s .15s ease-in-out both!important}.family-picture .sprite.recovering-parent{animation:parent-return .85s .25s ease-out both!important}.family-picture .sprite.is-speaking:not(.is-resting){animation:speaking .6s ease-out}.family-picture .switching .active-parent{animation:parent-return .5s ease-out}.family-picture .switching .child{animation:child-turn .5s ease-out}.family-picture .reaction-affection.play-reaction .child{animation:child-affection 1s .2s ease-out both}.reaction-particles{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:6}.reaction-particles i{position:absolute;left:50%;top:58%;font-size:20px;color:#e9b335;font-style:normal;opacity:0;--angle:calc(var(--i)*45deg);--distance:clamp(35px,8vw,110px)}.play-reaction .reaction-particles i{animation:particle-burst .95s calc(.25s + var(--i)*.025s) ease-out both}.reaction-affection .reaction-particles i{color:#db8a7c}.family-picture.is-small .family-speech{top:3px;padding:4px 8px;max-width:92%;border-radius:11px}.family-picture.is-small .family-speech>span{display:none}.family-picture.is-small .family-speech p{font-size:10px;line-height:1.4}.family-picture.is-small .personality-label{display:none}
@keyframes child-idle{0%,100%{transform:translateY(0) rotate(-.4deg)}50%{transform:translateY(-4px) rotate(.4deg)}}@keyframes parent-idle{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}@keyframes speech-in{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}@keyframes child-cheer{0%{transform:none}25%{transform:translateY(calc(var(--reaction-lift,20px)*-1)) rotate(-4deg) scale(1.04)}48%{transform:translateY(2px) rotate(3deg) scale(.98)}70%{transform:translateY(-8px) rotate(-2deg)}100%{transform:none}}@keyframes parent-cheer{0%{transform:none}30%{transform:translateY(-10px) rotate(-3deg)}60%{transform:translateY(1px) rotate(2deg)}100%{transform:none}}@keyframes parent-fluster{0%{transform:none}18%,55%{transform:translateX(-6px) rotate(-3deg)}35%,70%{transform:translateX(6px) rotate(3deg)}100%{transform:none}}@keyframes child-listen{0%{transform:none}30%{transform:translateY(5px) rotate(3deg) scale(.98)}70%{transform:rotate(-2deg)}100%{transform:none}}@keyframes parent-down{0%{transform:none}25%{transform:translateY(-8px) rotate(-5deg)}65%,100%{transform:translateY(12px) rotate(9deg)}}@keyframes parent-return{0%{opacity:.25;transform:translateY(40px) scale(.85)}60%{opacity:1;transform:translateY(-12px) scale(1.06)}100%{transform:none}}@keyframes speaking{25%,65%{transform:translateY(-5px) rotate(-1deg)}45%,100%{transform:none}}@keyframes child-turn{35%{transform:rotate(4deg) translateX(8px)}100%{transform:none}}@keyframes child-affection{30%{transform:translateY(-5px) rotate(-4deg) scale(1.05)}65%{transform:translateX(-5px) rotate(2deg)}100%{transform:none}}@keyframes particle-burst{0%{opacity:0;transform:rotate(var(--angle)) translateX(10px) rotate(calc(var(--angle)*-1)) scale(.5)}15%{opacity:1}80%{opacity:.8}100%{opacity:0;transform:rotate(var(--angle)) translateX(var(--distance)) rotate(calc(var(--angle)*-1)) scale(1.15)}}@keyframes choice-light{0%{left:-40%;opacity:0}15%{opacity:1}100%{left:150%;opacity:0}}@keyframes answer-reveal{0%,45%{border-color:var(--choice-border);background:var(--choice-bg)}65%{transform:scale(1.035)}100%{transform:none}}@keyframes wrong-reveal{0%,45%{border-color:var(--choice-border);background:var(--choice-bg)}65%{transform:translateX(-4px)}80%{transform:translateX(4px)}100%{transform:none}}@keyframes feedback-enter{0%,45%{opacity:0;translate:0 6px}100%{opacity:1;translate:0 0}}@keyframes dialogue-enter{from{opacity:.2;translate:0 4px}to{opacity:1;translate:0 0}}
.growth-backdrop{z-index:90;background:radial-gradient(ellipse at 50% 40%,#fbf1c8eb,#234d43f0)}.growth-ceremony{width:min(680px,100%);text-align:center;background:#fff9e9;border:4px solid #fffdf6;border-radius:30px;padding:27px 30px;box-shadow:0 20px 100px #133f3e50;animation:ceremony-in .5s ease-out}.growth-ceremony>.eyebrow{font-size:12px}.growth-ceremony h2{font-size:32px;color:#3a8e74;margin:10px 0}.growth-ceremony>p{font-size:15px;color:#7e8a69;margin:15px 0 22px}.growth-photos{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:20px}.growth-photos>b{font-size:32px;color:#c4a151}.growth-photo{position:relative;width:200px;height:220px;background:#ecf2da;border:7px solid white;border-radius:15px;box-shadow:0 7px 20px #8b855128;overflow:hidden;rotate:-4deg}.growth-photo.new{rotate:4deg;background:#f8edc9;animation:photo-new 1.1s cubic-bezier(.2,.7,.3,1)}.growth-photo .child{width:225px;left:calc(50% - 112px);bottom:16px}.growth-photo>span{position:absolute;bottom:0;left:0;right:0;background:white;padding:6px;font-size:15px;font-weight:800;z-index:4}.growth-photo.old{animation:photo-old 1.1s ease-out}.growth-ceremony .primary{min-width:220px}@keyframes ceremony-in{from{opacity:0;scale:.94}to{opacity:1;scale:1}}@keyframes photo-new{0%{opacity:0;translate:-50px 15px;rotate:-5deg}55%{opacity:1;translate:0 -8px;rotate:6deg}100%{translate:0 0;rotate:4deg}}@keyframes photo-old{from{translate:50px 0;rotate:2deg}to{translate:0 0;rotate:-4deg}}
/* 将来の文章は読める範囲でスクロールし、再挑戦を画面内に保つ。 */
.playing>.topbar,.playing #app>.topbar{height:54px;flex:0 0 54px;padding-top:7px;padding-bottom:7px;width:100%}.playing .topbar .tagline{display:none}.playing .outcome-page{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;max-width:1240px;padding:5px 20px 14px;margin:0 auto;overflow:hidden}.playing .outcome-page .section-heading{flex:0 0 auto;margin:0 0 13px}.playing .outcome-page h1{font-size:26px;margin-bottom:5px}.playing .outcome-page .section-heading .eyebrow{font-size:11px;margin-bottom:5px}.playing .outcome-page .section-heading p{font-size:12px}.playing .outcome-layout{flex:1;min-height:0;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:20px}.playing .outcome-art{height:100%;min-height:0}.playing .outcome-art .family-scene{height:100%;border-radius:20px}.playing .outcome-art .child{width:var(--child-size);left:calc(50% - var(--child-size)/2);bottom:0}.playing .outcome-art .papa,.playing .outcome-art .mama{width:var(--parent-size);bottom:8%}.playing .outcome-art .papa{left:calc(50% - var(--child-size)*.37 - var(--parent-size)*.8)}.playing .outcome-art .mama{left:calc(50% + var(--child-size)*.37 - var(--parent-size)*.2)}.playing .ending-story{min-height:0;display:flex;flex-direction:column;padding:17px 20px;overflow:hidden}.playing .ending-copy{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.playing .ending-copy>p{font-size:calc(15px * var(--font-scale));margin-bottom:12px}.playing .result-stats{margin-top:12px;padding:12px 0}.playing .ending-actions{flex:0 0 auto;margin-top:12px;gap:8px}.playing .ending-actions button{min-height:44px;font-size:11px;padding:7px 10px}
@media(min-width:1100px){.family-heading{flex-basis:62px}.family-controls{flex-basis:99px;padding-bottom:10px}.parent-card{padding:10px 13px}.parent-card-top strong{font-size:18px}.parent-card-top>span{font-size:10px}.parent-card-note{font-size:10px}.life{font-size:22px}.parent-score{font-size:11px}.parent-score b{font-size:18px}.chapter-progress{flex-basis:31px}.chapter-progress>span{font-size:11px}}
@media(max-width:1000px){.game-shell{gap:9px;padding:0 14px 8px}.game-topbar{padding-left:17px;padding-right:17px}.growth-stop{gap:7px}.growth-stop>div{gap:6px}.growth-stop em{font-size:10px}.growth-stop strong{font-size:18px}.growth-stop>span{width:24px;height:24px;font-size:11px}.quiz-console,.dialogue-console{padding:15px 17px;border-radius:20px}.quiz-console h2{margin:13px 0}.console-bottom{flex-basis:143px;margin-top:13px}.family-heading{padding-left:12px;padding-right:12px}.family-controls{gap:5px;padding-left:7px;padding-right:7px;grid-template-columns:1fr 43px 1fr}.parent-card{padding:7px}.parent-card-top>span{font-size:8px}.parent-card-top strong{font-size:15px}.parent-score{font-size:9px}.parent-score b{font-size:14px}.life{font-size:17px}.chapter-dots{gap:2px}.chapter-progress{padding-left:9px;padding-right:9px}.dialogue-console h2{font-size:19px;margin-bottom:18px}.dialogue-card{padding:18px}.dialogue-text{font-size:calc(22px * var(--font-scale))}}
@media(max-width:750px) and (orientation:portrait){
 .game-topbar{height:46px;flex-basis:46px;padding:5px 12px;gap:8px}.game-topbar .logo-main{font-size:22px}.game-topbar .logo-sub{font-size:8px}.game-topbar nav{gap:5px}.game-topbar .round-button{width:33px;height:33px;min-width:33px;font-size:15px}.game-topbar .round-button[aria-pressed=true]{font-size:9px}.game-concept{display:none}
 .game-shell{grid-template-columns:1fr;grid-template-rows:41px minmax(145px,.8fr) minmax(295px,1.2fr) 16px;gap:7px;padding:0 9px 7px}.growth-trail{grid-column:1;grid-row:1;padding:0 2px}.growth-stop{gap:5px}.growth-stop>span{width:19px;height:19px;font-size:9px}.growth-stop>div{display:grid;gap:3px;padding-right:4px}.growth-stop strong{font-size:15px}.growth-stop small{font-size:9px}.growth-stop em{font-size:8px}.growth-stop.current>span{box-shadow:0 0 0 3px #e0ebce}.total-progress{padding-left:4px;gap:1px}.total-progress b{font-size:15px}.total-progress span{font-size:9px}
 .family-stage{grid-row:2;grid-column:1;border-radius:16px}.family-heading{flex-basis:39px;padding:4px 10px}.family-heading>div:first-child{display:flex;align-items:center;gap:7px}.family-heading>div>span{font-size:8px}.family-heading>div>strong{font-size:15px}.family-heading small{font-size:10px;margin-left:3px}.strength-display{grid-template-rows:18px 3px;gap:2px 7px;min-width:70px}.strength-display>span{font-size:9px!important}.strength-display>strong{font-size:20px!important}.strength-display>i{height:3px}.family-speech{top:5px;padding:5px 10px;max-width:84%;border-radius:13px}.family-speech>span{display:none}.family-speech p{font-size:11px}.family-picture .family-scene:after{height:16px}.personality-label{font-size:8px;left:7px;bottom:3px;padding:3px 6px}
 .family-controls{flex-basis:60px;padding:2px 7px 5px;grid-template-columns:1fr 42px 1fr;gap:5px}.parent-card{border-radius:10px;padding:5px 7px;gap:3px}.parent-card-top strong{font-size:13px}.parent-card-top>span{font-size:8px}.parent-card-note{display:none}.parent-score{font-size:9px}.parent-score b{font-size:13px}.life{font-size:16px}.lives{gap:3px}.switch-button{font-size:22px;border-radius:10px}.switch-button small{font-size:9px}.chapter-progress{flex-basis:20px;padding:0 8px 6px;gap:8px}.chapter-progress>span{font-size:8px}.chapter-dots{height:4px;max-width:56%}.chapter-dots i{height:4px;gap:2px}
 .quiz-console,.dialogue-console{grid-row:3;grid-column:1;border-radius:16px;padding:12px 13px;border-width:1px}.panel-meta{flex-basis:23px;font-size:10px;gap:8px}.genre-label{font-size:10px;min-height:22px;padding:3px 9px}.panel-meta>span>b{font-size:14px}.answering-label{font-size:9px;padding-left:8px}.quiz-console h2{font-size:calc(19px * var(--font-scale));line-height:1.5;margin:11px 0;max-height:25%}.answers{min-height:106px;gap:8px;grid-template-rows:repeat(2,minmax(47px,1fr))}.answer{min-height:47px;border-radius:12px;padding:8px 9px;gap:8px;border-width:1px}.answer-letter{width:24px;height:24px;flex-basis:24px;font-size:15px}.answer-text{font-size:calc(16px * var(--font-scale));line-height:1.45}.answer kbd{display:none}.your-answer{font-size:8px;right:5px;bottom:2px}.console-bottom{flex-basis:116px;margin-top:10px}.quiz-coach{padding:7px 10px;gap:7px}.quiz-coach>span{font-size:18px}.quiz-coach p{font-size:calc(10px * var(--font-scale));line-height:1.55}.console-actions{flex-basis:38px;margin-top:7px}.keyboard-guide{display:none}.hint-button{margin-left:auto;min-height:36px;font-size:11px;padding:5px 11px}.hint-button b{font-size:16px}.hint-button small{font-size:9px}.next-button{min-height:37px;padding:6px 12px;font-size:12px}.feedback-title{gap:6px;flex-basis:22px}.feedback-title strong{font-size:12px}.feedback-title>span{font-size:10px;padding:3px 5px}.feedback-title>small{font-size:8px}.explanation{font-size:calc(12px * var(--font-scale));line-height:1.6}.state-notice{font-size:9px}.console-actions .text-button{font-size:10px;min-height:34px;padding:5px}
 .dialogue-console .panel-meta{margin-bottom:12px}.dialogue-console h2{font-size:16px;margin-bottom:15px}.dialogue-card{padding:16px 15px;border-radius:14px}.dialogue-speaker{font-size:14px;margin-bottom:10px}.dialogue-text{font-size:calc(20px * var(--font-scale));line-height:1.8}.dialogue-dots{padding:12px;flex-basis:31px}.dialogue-actions{flex-basis:41px}.dialogue-actions .primary{min-height:39px;min-width:100px;font-size:13px}.dialogue-actions .text-button{font-size:10px}
 .game-footer{grid-row:4;grid-column:1;font-size:8px;padding:0 2px}.game-footer>span:last-child{font-size:8px}.journal-button{font-size:8px;min-height:16px;padding:0 4px}
 .growth-ceremony{padding:20px 15px;border-radius:22px}.growth-ceremony h2{font-size:24px}.growth-ceremony>.eyebrow{font-size:10px}.growth-photos{gap:11px;margin-top:15px}.growth-photos>b{font-size:22px}.growth-photo{width:119px;height:154px;border-width:5px;border-radius:10px}.growth-photo .child{width:145px;left:calc(50% - 72px);bottom:18px}.growth-photo>span{font-size:12px;padding:4px}.growth-ceremony>p{font-size:12px;line-height:1.8}.growth-ceremony .primary{font-size:14px;min-width:200px}
 .playing .outcome-page{padding:4px 10px 9px}.playing #app>.topbar{height:46px;flex-basis:46px}.playing .outcome-page h1{font-size:20px}.playing .outcome-page .section-heading{margin-bottom:8px}.playing .outcome-page .section-heading .eyebrow{font-size:9px}.playing .outcome-page .section-heading p{font-size:10px}.playing .outcome-layout{grid-template-columns:1fr;grid-template-rows:minmax(80px,.65fr) minmax(0,1.35fr);gap:8px}.playing .ending-story{padding:10px 12px}.playing .ending-copy>p{font-size:calc(13px * var(--font-scale));margin-bottom:9px}.playing .ending-actions{margin-top:8px;gap:5px}.playing .ending-actions button{font-size:10px;padding:6px 5px}.playing .result-stats span{font-size:9px}.playing .result-stats strong{font-size:18px}
}
@media(max-width:750px) and (max-height:650px) and (orientation:portrait){
 .game-topbar{height:37px;flex-basis:37px;padding:3px 10px}.game-topbar .logo-main{font-size:20px}.game-topbar .logo-sub{font-size:7px;margin-top:2px}.game-topbar .round-button{width:30px;height:30px;min-width:30px}.game-shell{grid-template-rows:30px minmax(100px,.7fr) minmax(275px,1.3fr) 0;gap:4px;padding:0 7px 5px}.game-footer{display:none}.growth-stop em{display:none}.growth-stop strong{font-size:14px}.family-heading{flex-basis:30px}.family-heading>div:first-child>span{display:none}.family-heading>div>strong{font-size:13px}.strength-display{grid-template-rows:17px 3px;gap:1px 6px}.strength-display>strong{font-size:17px!important}.family-controls{flex-basis:49px;padding-top:1px;padding-bottom:4px}.parent-card-top strong{font-size:11px}.parent-card-top>span{font-size:7px}.life{font-size:13px}.parent-score{font-size:8px}.parent-score b{font-size:12px}.chapter-progress{flex-basis:16px;padding-bottom:4px}.chapter-progress>span{font-size:7px}.family-picture .family-speech{top:2px;padding:3px 7px}.family-picture .family-speech p{font-size:9px;line-height:1.35}.family-picture .personality-label{display:none}.quiz-console,.dialogue-console{padding:9px 10px}.quiz-console h2{font-size:calc(16px * var(--font-scale));margin:7px 0;max-height:22%}.answers{min-height:98px;gap:7px;grid-template-rows:repeat(2,minmax(44px,1fr))}.answer{min-height:44px;padding:6px 7px;gap:6px}.answer-letter{width:21px;height:21px;flex-basis:21px;font-size:13px}.answer-text{font-size:calc(14px * var(--font-scale))}.console-bottom{flex-basis:102px;margin-top:8px}.quiz-coach{padding:5px 8px}.quiz-coach p{font-size:calc(9px * var(--font-scale))}.console-actions{flex-basis:35px;margin-top:6px}.hint-button{min-height:34px;padding:4px 10px}.feedback-title{flex-basis:20px}.feedback-title strong{font-size:11px}.feedback-title>span{font-size:9px}.explanation{font-size:calc(11px * var(--font-scale))}.feedback-title>small{display:none}.next-button{min-height:34px;font-size:11px;padding:5px 10px}.console-actions .text-button{font-size:9px}.state-notice{font-size:8px;line-height:1.4}.dialogue-console h2{font-size:14px;margin-bottom:10px}.dialogue-console .panel-meta{margin-bottom:8px}.dialogue-card{padding:12px}.dialogue-speaker{font-size:12px;margin-bottom:7px}.dialogue-text{font-size:calc(17px * var(--font-scale))}.dialogue-dots{flex-basis:25px;padding:9px}.dialogue-actions{flex-basis:37px}.dialogue-actions .primary{min-height:35px;font-size:12px}
}
@media(orientation:landscape) and (max-height:560px) and (min-width:600px){
 .game-topbar{height:36px;flex-basis:36px;padding:3px 12px}.game-topbar .logo-main{font-size:21px}.game-topbar .logo-sub{display:none}.game-concept{display:none}.game-topbar .round-button{width:29px;height:29px;min-width:29px;font-size:13px}.game-shell{grid-template-rows:29px minmax(0,1fr) 12px;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:5px;padding:0 9px 5px}.growth-stop>span{width:20px;height:20px;font-size:9px}.growth-stop strong{font-size:16px}.growth-stop small{font-size:9px}.growth-stop em{font-size:9px}.total-progress b{font-size:16px}.total-progress span{font-size:9px}.family-stage{border-radius:14px}.family-heading{flex-basis:32px;padding:4px 9px}.family-heading>div:first-child{display:flex;align-items:center;gap:7px}.family-heading>div>span{font-size:8px}.family-heading>div>strong{font-size:14px}.family-heading small{font-size:10px;margin-left:4px}.strength-display{grid-template-rows:17px 3px;gap:1px 6px;min-width:65px}.strength-display>span{font-size:9px!important}.strength-display>strong{font-size:18px!important}.strength-display>i{height:3px}.family-controls{flex-basis:56px;grid-template-columns:1fr 38px 1fr;gap:4px;padding:2px 5px 5px}.parent-card{padding:4px 6px;border-radius:9px;gap:3px}.parent-card-top strong{font-size:12px}.parent-card-top>span{font-size:7px}.parent-card-note{display:none}.life{font-size:14px}.parent-score{font-size:8px}.parent-score b{font-size:12px}.switch-button{font-size:20px;min-width:36px}.switch-button small{font-size:8px}.chapter-progress{flex-basis:17px;padding:0 7px 5px}.chapter-progress>span{font-size:8px}.chapter-dots i{height:3px}.family-speech{top:5px;padding:4px 8px}.family-speech>span{display:none}.family-speech p{font-size:10px}.personality-label{font-size:8px;bottom:3px;padding:3px 7px}.quiz-console,.dialogue-console{padding:10px 12px;border-radius:14px}.panel-meta{flex-basis:21px;font-size:9px;gap:8px}.genre-label{font-size:10px;min-height:21px;padding:3px 8px}.panel-meta>span>b{font-size:13px}.answering-label{font-size:9px}.quiz-console h2{font-size:calc(17px * var(--font-scale));margin:7px 0;max-height:22%}.answers{min-height:94px;gap:6px;grid-template-rows:repeat(2,minmax(43px,1fr))}.answer{min-height:43px;padding:6px 8px;gap:7px;border-radius:11px;border-width:1px}.answer-letter{width:23px;height:23px;flex-basis:23px;font-size:14px}.answer-text{font-size:calc(14px * var(--font-scale))}.answer kbd{display:none}.console-bottom{flex-basis:101px;margin-top:8px}.quiz-coach{padding:5px 8px;gap:6px}.quiz-coach>span{font-size:18px}.quiz-coach p{font-size:calc(10px * var(--font-scale));line-height:1.5}.console-actions{flex-basis:34px;margin-top:6px}.hint-button{min-height:32px;font-size:11px;padding:4px 10px}.hint-button b{font-size:15px}.next-button{min-height:32px;font-size:11px;padding:5px 10px}.keyboard-guide{font-size:8px}.feedback-title{flex-basis:20px;gap:6px}.feedback-title strong{font-size:12px}.feedback-title>span{font-size:10px}.feedback-title>small{font-size:8px}.explanation{font-size:calc(11px * var(--font-scale));line-height:1.6}.state-notice{font-size:9px}.console-actions .text-button{font-size:9px;min-height:30px}.game-footer{font-size:8px}.game-footer>span:last-child{font-size:8px}.journal-button{font-size:8px;min-height:12px;padding:0 5px}.dialogue-console .panel-meta{margin-bottom:8px}.dialogue-console h2{font-size:15px;margin-bottom:10px}.dialogue-card{padding:13px 15px}.dialogue-speaker{font-size:13px;margin-bottom:8px}.dialogue-text{font-size:calc(18px * var(--font-scale));line-height:1.7}.dialogue-dots{padding:10px;flex-basis:28px}.dialogue-actions{flex-basis:34px}.dialogue-actions .primary{min-height:33px;min-width:100px;padding:5px 15px;font-size:12px}.dialogue-actions .text-button{font-size:10px}
 .growth-ceremony{max-width:580px;padding:13px 25px}.growth-ceremony h2{font-size:24px;margin:5px 0}.growth-ceremony>.eyebrow{font-size:10px;margin-bottom:4px}.growth-photos{margin-top:8px;gap:20px}.growth-photo{width:135px;height:140px;border-width:5px}.growth-photo .child{width:150px;left:calc(50% - 75px);bottom:15px}.growth-photo>span{font-size:11px;padding:3px}.growth-ceremony>p{font-size:11px;margin:8px 0}.growth-ceremony .primary{min-height:35px;font-size:12px;padding:5px 20px}
}
@media(prefers-reduced-motion:reduce){.play-reaction .reaction-particles{display:none}}body.reduce-motion .play-reaction .reaction-particles{display:none}

/* 狭い舞台では顔を大きく見せる。吹き出しで顔を隠さない。 */
.family-picture.is-small .child{bottom:var(--child-bottom,0px)}
.family-picture.is-small .papa,.family-picture.is-small .mama{bottom:var(--parent-bottom,0px)}
.family-picture.is-small .family-speech{display:none}

.quiz-console h2{flex-shrink:1;min-height:1.55em}
.family-picture.is-small .family-scene:after{height:4px}
@media(orientation:landscape) and (max-height:560px) and (min-width:600px){.console-bottom{flex-basis:95px}}

@media(max-width:750px) and (orientation:portrait){.large-text .game-shell{grid-template-rows:41px minmax(145px,.55fr) minmax(350px,1.45fr) 16px}}
@media(max-width:750px) and (max-height:650px) and (orientation:portrait){.large-text .game-shell{grid-template-rows:30px 140px minmax(0,1fr) 0}.large-text .family-heading{flex-basis:26px}}
.growth-stop{color:#708364}.growth-stop.passed{color:#5c7d57}
.parent-card-top>span{color:#4f785e}.mama-card .parent-card-top>span{color:#9e6750}
.parent-card.is-danger .parent-card-note{color:#91591a}
.quiz-coach{min-height:0;overflow:hidden}.quiz-coach p{color:#5e7152;max-height:100%;overflow:auto}
.answered .answer-other{opacity:.6}

.quiz-console h2{max-height:none}
.question-read{background:#f3f4e7;color:#718266;font-size:10px;min-width:31px;min-height:26px;padding:3px 5px;border-radius:7px;white-space:nowrap}
.question-read:is(:hover,:focus-visible){background:#deead1;box-shadow:0 0 0 2px #28816c44}
.modal .reader-prompt{font-size:calc(20px * var(--font-scale));line-height:1.8}
.reader-actor{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin-top:10px}
.reader-actor .quiet{font-size:12px}
.modal .answers{display:grid;grid-template-columns:1fr;grid-template-rows:none;flex:none;min-height:0;margin:15px 0;gap:10px}
.modal .answer{min-height:50px;padding:12px 15px;overflow:visible}
.modal .answer-text{max-height:none;overflow:visible;font-size:calc(17px * var(--font-scale))}
.modal .answer kbd{display:none}
/* 成長した子の目線を、両親と並んで立つ高さへ近づける。 */
.family-picture:not(.is-small) .child[data-stage="2"],.playing .outcome-art .child[data-stage="2"]{bottom:3%}
.family-picture:not(.is-small) .child[data-stage="3"],.playing .outcome-art .child[data-stage="3"]{bottom:9%}
.dialogue-console.moment-care .genre-label{background:#f5e4d6;color:#96694c}
.dialogue-console.moment-odd .genre-label{background:#eee6f6;color:#826695}
.dialogue-console.moment-bright .genre-label{background:#fff0bd;color:#9c7823}
.dialogue-card.speaker-narrator{background:#f3f1e4;border-color:#dfdcc5}
.moment-bright .stage-light{background:radial-gradient(ellipse at 50% 18%,#fff4b5b3,transparent 70%),linear-gradient(125deg,#f6d6dc40,transparent 60%)}
.moment-bright .reaction-particles i{left:calc(9% + var(--i)*11.5%);top:calc(11% + var(--i)*4%);color:#e2b544;animation:moment-shimmer 3s calc(var(--i)*.23s) ease-in-out infinite}
@keyframes moment-shimmer{0%,100%{opacity:.15;transform:translateY(0) scale(.8)}50%{opacity:.85;transform:translateY(-6px) scale(1.1)}}
@media(max-height:500px) and (orientation:landscape){.answer{padding-top:4px;padding-bottom:4px}.answer-text{line-height:1.3}}
