/* A shared visual language, with distinct story and adult-checklist flows. */
.guide-track { height:0; }
.guide-pin { position:relative; top:0; }
.guide-room { padding-bottom:30px; }
.proj { height:auto; min-height:640px; }
.proj-body { height:auto; min-height:440px; overflow:visible; }
.story-animation { width:100%; aspect-ratio:16/9; background:#f6f8ed; border-radius:16px; overflow:hidden; margin-bottom:12px; }
.story-animation svg { display:block; width:100%; height:100%; }
.demo-voices { display:grid; gap:8px; }
.demo-voice { display:flex; gap:10px; align-items:center; border:1px solid #c8d6df; background:#f8fbfc; padding:10px 12px; border-radius:12px; cursor:pointer; }
.demo-voice > span { flex:1; }
.demo-voice b,.demo-voice small { display:block; }
.demo-voice small { font-size:.8rem; color:#526776; }
.demo-voice input { accent-color:#087f79; width:18px; height:18px; }
.narration-status { font-size:.85rem; color:#526776; min-height:1.5em; margin:8px 0; }
.proj > .narration-status,.proj > .narration-recovery { margin-inline:24px; }
.sbtn:disabled,.pill:disabled,select:disabled { opacity:.5; cursor:wait; }
.narration-recovery[hidden] { display:none; }
#visitor-role { font:inherit; padding:12px; border:1px solid #b4c7d7; border-radius:8px; width:100%; background:white; color:#17394d; }
#screen-body .s-answers { margin-block:10px; }
#screen-body .s-actions { flex-wrap:wrap; }
@media(max-width:900px) {
 .guide-room { gap:12px; }
 .robot-view { height:300px; width:100%; margin:0; }
 .guide-robot { grid-template-columns:1fr; }
 .robot-speech { width:100%; }
 .proj { min-height:0; }
 .proj-body { min-height:0; }
 .demo-voice { padding:9px; }
}
@media(prefers-reduced-motion:reduce) { .story-animation * { animation:none!important; } }
.demo-voice { color:#17394d; }
.demo-voice .sbtn.ghost { color:#17394d; border-color:#9bb2c2; }
.demo-voice .sbtn.ghost:hover { background:#e4f3f2; }
.proj .narration-status { color:#b9d4e8; }
.proj-body { --fit:1!important; }
.proj { display:block; }
.robot-bubble { height:auto; min-height:6em; max-height:14em; overflow:auto; }
.story-animation { height:clamp(180px,22vw,280px); aspect-ratio:auto; }
#screen-title { scroll-margin-top:90px; }
#demo-caption { font-size:.95rem; line-height:1.55; margin:0; }

/* Explore's room-specific frame stays intact around a light, readable board. */
:is(.story-demo-page,.questionnaire-page) .guide { --board-fill:#c6e0d5; --board-ink:#17313d; }
:is(.story-demo-page,.questionnaire-page) [data-board-theme="blue"] { --board-fill:#c9dfef; }
:is(.story-demo-page,.questionnaire-page) [data-board-theme="pink"] { --board-fill:#f2d9e1; }
:is(.story-demo-page,.questionnaire-page) .proj { background:var(--board-fill); color:var(--board-ink); }
:is(.story-demo-page,.questionnaire-page) .proj :is(h2,.s-question,.s-label,.s-note,.narration-status,.proj-bar) { color:var(--board-ink); }
:is(.story-demo-page,.questionnaire-page) .proj-bar { border-bottom:1px solid #17313d30; flex-wrap:wrap; }
:is(.story-demo-page,.questionnaire-page) .proj a { color:#124e70; }
:is(.story-demo-page,.questionnaire-page) .proj .sbtn { background:#155b84; border-color:#155b84; color:white; }
:is(.story-demo-page,.questionnaire-page) .proj .sbtn:hover { background:#104565; }
:is(.story-demo-page,.questionnaire-page) .proj .sbtn.ghost,:is(.story-demo-page,.questionnaire-page) .proj-tools button { background:#f8fcfa; color:#17313d; border:2px solid #537180; }
:is(.story-demo-page,.questionnaire-page) .proj .sbtn.ghost:hover,:is(.story-demo-page,.questionnaire-page) .proj-tools button:hover { background:#e5f1ed; border-color:#17313d; }
:is(.story-demo-page,.questionnaire-page) .proj .sbtn:disabled { opacity:1; background:#dbe5e9; color:#3b505c; border:2px dashed #69808c; }
.board-colors { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:12px 24px 0; font-size:.8rem; }
.board-colors button { font:inherit; font-weight:700; border:2px solid #537180; color:#17313d; border-radius:999px; min-height:44px; padding:6px 12px; cursor:pointer; }
.board-colors [data-board-color="mint"] { background:#c6e0d5; }
.board-colors [data-board-color="blue"] { background:#c9dfef; }
.board-colors [data-board-color="pink"] { background:#f2d9e1; }
.board-colors [aria-pressed="true"] { outline:2px solid #17313d; outline-offset:2px; }
:is(.story-demo-page,.questionnaire-page) .proj :is(button,a):focus-visible { outline:3px solid #17313d; outline-offset:3px; }

.questionnaire-page .proj :is(.pill,.s-age select,.s-copy) { background:#f8fcfa; color:#17313d; border-color:#537180; }
.questionnaire-page .proj :is(.pill.on,.sbtn.answer.chosen) { background:#155b84; color:#fff; border-color:#17313d; }
.questionnaire-page .proj :is(.s-counts caption,.s-rec small,.status) { color:#17313d; }
.questionnaire-page .proj :is(.s-card,.s-rec,.s-advice) { background:#ffffff80; border-color:#6e9588; }
.questionnaire-page .s-progress { background:#a3c4b7; }
.questionnaire-page .s-progress span { background:#155b84; }
.questionnaire-page .s-error { color:#8e2424; }
.questionnaire-page .pill:disabled { opacity:1; background:#dbe5e9; color:#3b505c; }
