/* Explore BrightPath: the robot guide (3D BrightPath, projection screen,
   rooms behind it). Loaded only by explore.html, on top of site.css.
   The guide's rules predate the redesign, so its older colour names are
   mapped onto the current tokens here. */
:root {
  --teal: #0E7470; --deep: #0B4C63; --teal-soft: #E3F1EF; --on-accent: #FFFFFF; --on-honey: #241A00;
}
.guide { --header-offset: 0px; }
/* ===== Robot guide: 3D robot + projection screen ===== */
/* Backdrops behind the robot. The picker is a temporary preview option. */
.guide { --g-top: #EEF5FB; --g-bottom: #CBDCEB; --g-wall: #2A8D96; --g-wall-o: .16; --g-ink: #0B2A55; --g-accent: #1F5FE0; --g-muted: #45607A; --g-ctrl: rgba(255,255,255,.7); --g-ctrl-ink: #0B2A55; --g-ctrl-line: rgba(11,42,85,.2); }
.guide[data-bg="teal"] { --g-top: #3A98A1; --g-bottom: #1D6A73; --g-wall: #0F4E56; --g-wall-o: .35; --g-ink: #FFFFFF; --g-accent: #D7F3F0; --g-muted: #D7EEF0; --g-ctrl: rgba(255,255,255,.14); --g-ctrl-ink: #FFFFFF; --g-ctrl-line: rgba(255,255,255,.4); }
.guide[data-bg="navy"] { --g-top: #1D3B66; --g-bottom: #0A1A31; --g-wall: #2D5C99; --g-wall-o: .25; --g-ink: #FFFFFF; --g-accent: #9CCBFF; --g-muted: #C7D7EC; --g-ctrl: rgba(255,255,255,.12); --g-ctrl-ink: #FFFFFF; --g-ctrl-line: rgba(255,255,255,.4); }
.guide[data-bg="sand"] { --g-top: #EBDDC2; --g-bottom: #CDB48A; --g-wall: #9C7A45; --g-wall-o: .2; --g-ink: #3A2A12; --g-accent: #7A4E12; --g-muted: #5C4626; --g-ctrl: rgba(255,255,255,.55); --g-ctrl-ink: #3A2A12; --g-ctrl-line: rgba(58,42,18,.3); }
.guide[data-bg="graphite"] { --g-top: #59626F; --g-bottom: #2B3038; --g-wall: #1C2027; --g-wall-o: .35; --g-ink: #FFFFFF; --g-accent: #F2C15A; --g-muted: #D5DAE1; --g-ctrl: rgba(255,255,255,.12); --g-ctrl-ink: #FFFFFF; --g-ctrl-line: rgba(255,255,255,.4); }
/* The guide is a scroll track (scenes.js sizes .guide-track under the pin): the pin
   stays in view while the room behind the robot changes. overflow: clip keeps
   sticky working where overflow: hidden would not. */
.guide { position: relative; overflow: hidden; overflow: clip; background: linear-gradient(180deg, var(--g-top) 0%, var(--g-bottom) 100%); color: var(--g-ink); }
.guide-pin { position: sticky; top: var(--pin-top, 0px); overflow: hidden; background: linear-gradient(180deg, var(--g-top) 0%, var(--g-bottom) 100%); padding-block: 1.5rem 2rem; }
@media (max-width: 900px) { .guide-pin { position: relative; top: 0; } }
.guide-wall { position: absolute; inset: 0 0 auto 52%; height: 70%; background: repeating-linear-gradient(90deg, var(--g-wall) 0 160px, transparent 160px 163px); opacity: var(--g-wall-o); border-bottom-left-radius: 40px; pointer-events: none; }
.guide-pin::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.08)); pointer-events: none; }
/* Opening: what BrightPath is and the two main actions, before the robot. */
.guide-intro { position: relative; z-index: 2; display: grid; gap: .9rem; padding-block: 1.6rem .4rem; }
.guide-intro-copy { display: grid; gap: .5rem; max-width: 900px; }
.guide-intro .eyebrow { color: var(--g-accent); }
.guide-intro h1 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 700; color: var(--g-ink); text-wrap: pretty; }
.guide-lead { color: var(--g-muted); font-size: 1.05rem; max-width: 62ch; }
.guide-intro-side { display: flex; flex-wrap: wrap-reverse; gap: .7rem 1.5rem; align-items: center; }
.guide-status { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .9rem; color: var(--g-muted); }
@media (max-width: 900px) { .guide-intro { padding-block: 1.25rem .25rem; } }
.guide-head { position: relative; z-index: 2; display: flex; }
/* Places behind the robot (scenes-art.js). The rooms are light, so text and
   controls use the light palette there, whatever the preview colour. */
.guide-scenes { position: absolute; inset: 0; pointer-events: none; }
.guide-scenes::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 24%; background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,0)); opacity: 0; transition: opacity .5s; }
.guide:not([data-scene="studio"]) .guide-scenes::after { opacity: 1; }
.scene { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .45s ease, transform .7s cubic-bezier(.2, .8, .2, 1), visibility 0s .7s; visibility: hidden; }
.scene.on { opacity: 1; transform: none; visibility: visible; transition: opacity .45s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene .pop { transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(calc(var(--lp, 0) * -14px)); transition: transform .2s linear; }
.scene.on .pop { animation: scene-pop .7s cubic-bezier(.2, .9, .25, 1.2) var(--d) both; }
.scene .d0 { --d: 120ms; } .scene .d1 { --d: 210ms; } .scene .d2 { --d: 300ms; } .scene .d3 { --d: 390ms; } .scene .d4 { --d: 480ms; } .scene .d5 { --d: 570ms; } .scene .d6 { --d: 660ms; }
@keyframes scene-pop { from { opacity: 0; transform: translateY(40px) scale(.92); } }
.guide:not([data-scene="studio"]) .guide-wall { opacity: 0; }
.guide-wall { transition: opacity .4s; }
.guide:not([data-scene="studio"]) { --g-ink: #0B2A55; --g-accent: #1F5FE0; --g-muted: #45607A; --g-ctrl: rgba(255,255,255,.82); --g-ctrl-ink: #0B2A55; --g-ctrl-line: rgba(11,42,85,.2); }
.scene-rail { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; font-size: .82rem; color: var(--g-muted); }
.scene-rail span { font-weight: 700; margin-right: .2rem; }
.scene-rail button { font: inherit; font-weight: 700; min-height: 34px; padding: 0 .8rem; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--g-ctrl-line); color: var(--g-ctrl-ink); background: var(--g-ctrl); transition: background .25s, color .25s; }
.scene-rail button[aria-pressed="true"] { background: var(--g-accent); color: #FFFFFF; border-color: var(--g-accent); }
/* Backdrop colour (a review option in BrightPath's settings; shows behind the plain studio). */
.bg-picker { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; font-size: .85rem; }
.bg-picker button { font: inherit; font-weight: 700; min-height: 36px; padding: 0 .8rem; border-radius: 999px; cursor: pointer; border: 1.5px solid #C9D6E6; color: #0B2A55; background: #FFFFFF; }
.bg-picker button[aria-pressed="true"] { background: #1F5FE0; color: #FFFFFF; border-color: #1F5FE0; }
/* The screen has one fixed size (sized for the longest screen: the full program
   suggestion and the full doctor advice), and never scrolls. The robot sits on
   the left; its view reaches a little past its column so raised arms are not
   cut off, and slides under the screen's edge rather than over it. */
.guide { --stage-h: 640px; }
.guide-room { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-top: .75rem; max-width: 1360px; }
@media (max-width: 900px) { .guide-room { grid-template-columns: 1fr; } }
.guide-robot { position: relative; z-index: 3; display: grid; justify-items: center; min-width: 0; }
.robot-view { position: relative; justify-self: start; width: calc(100% + 140px); margin-left: -100px; height: var(--stage-h); cursor: grab; touch-action: pan-y; }
.robot-view:active { cursor: grabbing; }
.robot-view canvas { position: absolute; left: 0; top: 0; display: block; outline: none; pointer-events: none; }
/* The concept picture shows until the 3D view is ready, and stays if it cannot start. */
.robot-fallback { position: absolute; inset: 0; margin: auto; width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.robot-view.ready .robot-fallback { display: none; }
@media (max-width: 900px) { .guide { --stage-h: 320px; } .robot-view { justify-self: center; width: 100%; margin-left: 0; } }
/* The speech bubble sits above the robot, never over its face. A fixed
   height keeps the robot from moving as lines change length. */
.robot-speech { position: relative; z-index: 2; width: min(100%, 560px); display: flex; gap: .5rem; align-items: flex-start; }
.robot-bubble { position: relative; flex: 1; min-width: 0; height: 6.4em; overflow-y: auto; background: #FFFFFF; color: #102127; border-radius: 20px; padding: .7rem 1.1rem; font-family: var(--display); font-weight: 500; font-size: 1rem; line-height: 1.4; box-shadow: 0 10px 30px rgba(11, 42, 85, .15); }
.robot-speech::after { content: ""; position: absolute; bottom: -8px; left: calc(50% - 30px); width: 18px; height: 18px; background: #FFFFFF; transform: rotate(45deg); border-radius: 3px; }
.robot-speech + .robot-view { margin-top: -.25rem; }
.voice-toggle { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1.5px solid var(--g-ctrl-line); background: var(--g-ctrl); color: var(--g-ctrl-ink); }
.voice-toggle:hover { filter: brightness(1.08); }
.voice-toggle .icon-on, .voice-toggle[aria-pressed="true"] .icon-muted { display: none; }
.voice-toggle[aria-pressed="true"] .icon-on { display: block; }
.voice-toggle[aria-pressed="true"] { background: #F2C15A; color: #241A00; border-color: #F2C15A; }
/* Settings page: opens over the robot, like the robot's own setup screen. */
.settings-open[aria-expanded="true"] { background: #F2C15A; color: #241A00; border-color: #F2C15A; }
.settings { position: absolute; z-index: 5; top: 3.6rem; left: 0; right: 0; max-height: calc(var(--stage-h) + 1rem); overflow: auto; background: #FFFFFF; color: #102127; border-radius: 22px; padding: 1rem 1.2rem 1.1rem; box-shadow: 0 24px 60px rgba(11, 42, 85, .3); display: grid; gap: .7rem; align-content: start; }
.settings-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.settings h2 { font-size: 1.25rem; color: #0B2A55; }
.settings h2:focus { outline: none; }
.settings-close { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(11,42,85,.2); background: #F3F7FB; color: #0B2A55; cursor: pointer; font-size: 1rem; }
.settings-intro, .settings-note { font-size: .88rem; color: #45607A; margin: 0; }
.settings fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; }
.settings legend { font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #1F5FE0; padding: 0 0 .3rem; }
.set-voices { display: grid; gap: .4rem; }
.set-voice { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; border: 1.5px solid #DCE6F0; border-radius: 12px; padding: .45rem .6rem; }
.set-voice:has(input:checked) { border-color: #2F7BFF; background: #F1F6FF; }
.set-voice label { display: grid; cursor: pointer; line-height: 1.3; }
.set-voice label span { font-size: .85rem; color: #45607A; }
.set-hear { font: inherit; font-size: .85rem; font-weight: 700; border-radius: 999px; border: 1.5px solid #2F7BFF; background: #FFFFFF; color: #1F5FE0; padding: .35em .9em; min-height: 36px; cursor: pointer; }
.set-row { grid-auto-flow: column; justify-content: start; gap: .4rem 1.1rem !important; }
.set-row legend { grid-column: 1 / -1; }
.settings input { accent-color: #2F7BFF; width: 1.05rem; height: 1.05rem; }
.set-row label, .set-check { display: inline-flex; gap: .45rem; align-items: center; cursor: pointer; min-height: 32px; }
.view-controls { display: flex; gap: .4rem; margin-top: -.5rem; }
.view-controls button { font: inherit; min-width: 44px; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--g-ctrl-line); background: var(--g-ctrl); color: var(--g-ctrl-ink); cursor: pointer; padding: 0 .9rem; font-weight: 700; }
.view-controls button:hover { filter: brightness(1.08); }
.robot-caption { font-size: .8rem; color: var(--g-muted); text-align: center; margin-top: .4rem; max-width: 40ch; }

.proj { min-width: 0; background: radial-gradient(120% 120% at 20% 0%, #15315A 0%, #0B1B33 60%, #08142A 100%); color: #EAF3FF; border-radius: 22px; border: 10px solid #1B2433; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 60px rgba(8, 20, 42, .35), 0 0 60px rgba(76, 150, 255, .18); padding: 0 0 1.1rem; display: grid; grid-template-rows: auto auto minmax(0, 1fr); height: calc(var(--stage-h) + 6.6em); margin-top: 0; position: relative; z-index: 2; }
/* Phones and narrow windows: one column, so the screen grows with its content and the page scrolls. */
@media (max-width: 900px) { .proj { height: auto; min-height: 640px; } }
/* In each place the panel becomes that room's own screen. Extra bezel is
   drawn with box-shadow spread so the panel's inner size never changes. */
.proj { transition: border-color .5s, border-radius .5s, box-shadow .5s; }
.proj::before, .proj::after { content: none; position: absolute; pointer-events: none; }
/* Living room: a wall-mounted TV with a soundbar. */
.guide[data-scene="home"] .proj { border-color: #0D0F13; border-radius: 10px; box-shadow: 0 0 0 4px #24272E, 0 24px 50px rgba(40, 20, 0, .35); }
.guide[data-scene="home"] .proj::before { content: ""; inset: 0; border-radius: 2px; background: linear-gradient(115deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 32%); }
.guide[data-scene="home"] .proj::after { content: ""; left: 30%; right: 30%; bottom: -34px; height: 16px; border-radius: 8px; background: linear-gradient(#2A2D34, #15171B); box-shadow: 0 6px 12px rgba(0,0,0,.25); }
/* Classroom: a pull-down projector screen with its roller case and handle. */
.guide[data-scene="classroom"] .proj { border-color: #F4F2EB; border-radius: 3px; box-shadow: 0 0 0 10px #F4F2EB, 0 0 0 11px #D7D3C8, 0 20px 40px rgba(60, 50, 20, .25), -40px 0 80px rgba(234, 246, 255, .45); }
.guide[data-scene="classroom"] .proj::before { content: ""; left: -30px; right: -30px; top: -36px; height: 18px; border-radius: 9px; background: linear-gradient(#7A838E, #4A525C); box-shadow: 0 4px 8px rgba(0,0,0,.2); }
.guide[data-scene="classroom"] .proj::after { content: ""; left: calc(50% - 24px); bottom: -36px; width: 48px; height: 14px; border-radius: 0 0 10px 10px; background: #4A525C; }
/* ABA centre: a large tablet with a soft rubber bumper on a rolling stand. */
.guide[data-scene="aba"] .proj { border-color: #111A22; border-radius: 30px; box-shadow: 0 0 0 16px #3FA58F, 0 0 0 19px #2F8C78, 0 24px 50px rgba(20, 70, 60, .3); }
.guide[data-scene="aba"] .proj::before { content: ""; left: calc(50% - 5px); top: -24px; width: 10px; height: 10px; border-radius: 50%; background: #0D2A24; }
.guide[data-scene="aba"] .proj::after { content: ""; left: calc(50% - 22px); bottom: -80px; width: 44px; height: 61px; background: linear-gradient(90deg, #9AA7A2, #C9D3CF, #9AA7A2); }
/* Library: a board on a wooden easel. */
.guide[data-scene="library"] .proj { border-color: #8A5A2B; border-radius: 6px; box-shadow: 0 0 0 8px #A8723C, 0 0 0 10px #6E4520, 0 24px 50px rgba(40, 20, 0, .4); }
.guide[data-scene="library"] .proj::before { content: ""; left: 12%; right: 12%; bottom: -70px; height: 52px; background: linear-gradient(100deg, transparent 0 4%, #8A5A2B 4% 6.5%, transparent 6.5% 93.5%, #8A5A2B 93.5% 96%, transparent 96%); }
.guide[data-scene="library"] .proj::after { content: ""; left: 6%; right: 6%; bottom: -24px; height: 12px; border-radius: 4px; background: #A8723C; box-shadow: 0 3px 0 #6E4520; }

.proj-bar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: rgba(234,243,255,.7); }
.proj-dots { display: flex; gap: 5px; }
.proj-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.proj-dots i:first-child { background: #6FB2FF; }
.proj-label { margin-right: auto; }
.proj-tools { display: flex; gap: .4rem; }
.proj-tools button { font: inherit; font-size: .8rem; font-weight: 700; min-height: 32px; padding: 0 .8rem; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.3); background: transparent; color: #EAF3FF; cursor: pointer; }
.proj-tools button:hover { border-color: #FFFFFF; }
.proj h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: #FFFFFF; padding: 1.1rem 1.4rem .4rem; }
.proj h2:focus { outline: none; }
.proj h2:focus-visible { outline: 3px solid var(--honey); outline-offset: -3px; }
/* The screen keeps its size and does not scroll. Text inside is sized in em
   from --fit, which guide.js lowers a little only if a screen would overflow
   (scrolling is the last resort, on very small phones). */
.proj-body { --fit: 1; font-size: calc(1rem * var(--fit)); padding: 0 1.4rem .25rem; display: grid; gap: .9em; align-content: start; min-height: 0; overflow: hidden; }
.proj-body.overflowing { overflow: auto; overscroll-behavior: contain; }
.proj a { color: #9CCBFF; }
.proj .status { color: #9CCBFF; }
.proj .status[data-status="prototype"] { color: #241A00; background: #F2C15A; border-color: #F2C15A; }
.proj .status[data-status="planned"] { color: #B6C6DA; }
.s-hero { display: flex; gap: 1em; align-items: center; }
.s-hero img { background: #FFFFFF; border-radius: 50%; padding: 6px; flex: none; }
.s-big { font-family: var(--display); font-size: 1.25em; font-weight: 600; line-height: 1.35; }
.s-note { font-size: .9em; color: rgba(234,243,255,.75); display: flex; flex-wrap: wrap; gap: .5em; align-items: center; }
.s-label { font-family: var(--display); font-weight: 600; font-size: .8em; letter-spacing: .1em; text-transform: uppercase; color: #9CCBFF; }
.s-actions { display: flex; flex-wrap: wrap; gap: .6em; padding-top: .5em; }
.sbtn { font: inherit; font-family: var(--display); font-weight: 600; font-size: 1em; border-radius: 999px; padding: .7em 1.3em; min-height: 44px; border: 2px solid #4C96FF; background: #2563EB; color: #FFFFFF; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .5em; }
.sbtn:hover { background: #1F5FE0; color: #FFFFFF; }
.sbtn.ghost { background: transparent; color: #EAF3FF; border-color: rgba(255,255,255,.3); }
.sbtn.ghost:hover { border-color: #FFFFFF; }
.s-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75em; }
@media (max-width: 560px) { .s-cards { grid-template-columns: 1fr; } }
.s-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: .9em; display: grid; gap: .4em; align-content: start; font-size: .92em; }
.s-card b { font-family: var(--display); font-size: 1em; }
.s-faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5em; }
@media (max-width: 560px) { .s-faces { grid-template-columns: repeat(2, 1fr); } }
.face-btn { justify-content: center; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.s-facts { list-style: none; padding: 0; display: grid; gap: .5em; }
.s-facts li { background: rgba(255,255,255,.07); border-radius: 12px; padding: .65em .9em; font-weight: 700; }
.s-age { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: .6em; align-items: center; }
.s-age select { font: inherit; font-size: 1.05em; padding: .55em .7em; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.3); background: #0F2443; color: #FFFFFF; min-height: 44px; }
@media (max-width: 460px) { .s-age { grid-template-columns: auto 1fr; } }
.s-progress { height: 6px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; }
.s-progress span { display: block; height: 100%; background: #6FB2FF; }
.s-figure { margin: 0; background: #FEFDFC; border-radius: 14px; overflow: hidden; max-width: 360px; }
.s-figure img { display: block; width: 100%; height: auto; }
.s-question { font-family: var(--display); font-size: clamp(1.15em, 2vw, 1.4em); font-weight: 600; line-height: 1.35; color: #FFFFFF; }
.s-answers { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
@media (max-width: 460px) { .s-answers { grid-template-columns: 1fr; } }
.sbtn.answer { justify-content: flex-start; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); border-radius: 14px; }
.sbtn.answer:hover { background: rgba(255,255,255,.14); }
.sbtn.answer.chosen { background: #2563EB; border-color: #9CCBFF; }
.sbtn.answer kbd { font-family: var(--body); font-size: .75em; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; padding: 0 .35em; opacity: .8; }
.pills { display: flex; flex-wrap: wrap; gap: .45em; }
.pill { font: inherit; font-size: .95em; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #EAF3FF; padding: .45em .95em; cursor: pointer; min-height: 40px; display: inline-flex; gap: .45em; align-items: center; }
.pill.on { background: #2563EB; border-color: #9CCBFF; font-weight: 700; }
.pill small { font-size: .74em; background: #F2C15A; color: #241A00; border-radius: 999px; padding: .05em .5em; font-weight: 700; }
.s-error { color: #FFB4A8; font-weight: 700; font-size: .9em; }
.s-error:empty { display: none; }
.s-advice { background: rgba(242,193,90,.12); border: 1px solid rgba(242,193,90,.5); border-radius: 16px; padding: 1em 1.1em; display: grid; gap: .5em; }
.s-advice ul { padding-left: 1.2em; display: grid; gap: .25em; }
.s-counts { border-collapse: collapse; width: 100%; font-size: .92em; }
.s-counts caption { text-align: left; font-size: .8em; color: rgba(234,243,255,.7); padding-bottom: .3em; }
.s-counts th, .s-counts td { text-align: left; padding: .4em .2em; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 400; }
.s-counts td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-copy { width: 100%; min-height: 120px; font: inherit; font-size: .8em; background: #0F2443; color: #EAF3FF; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); padding: .5em; }
.s-rec { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: .8em .95em; display: grid; gap: .3em; font-size: .93em; }
.s-rec-head { display: flex; justify-content: space-between; gap: .5em; align-items: center; flex-wrap: wrap; }
.s-rec small { color: #9CCBFF; font-weight: 700; }
.s-recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(16em, 1fr)); gap: .6em; }
.s-advice ul.s-areas { columns: 2 15em; column-gap: 1.6em; display: block; }
.s-advice ul.s-areas li { break-inside: avoid; margin-bottom: .2em; }
.s-story { font-size: 1.08em; line-height: 1.55; max-width: 60ch; }
.s-parts { display: flex; gap: .35em; }
.s-parts span { width: 2.2em; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); }
.s-parts span.on { background: #6FB2FF; }
.s-echo { font-family: var(--display); font-weight: 700; font-size: 4.2em; line-height: 1.1; text-align: center; color: #FFFFFF; min-height: 1.15em; }
.s-echo-slots { display: flex; justify-content: center; gap: .6em; }
.s-echo-slots span { width: 2.6em; height: 2.6em; border-radius: 12px; border: 2px dashed rgba(255,255,255,.3); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.3em; }
.s-keypad { display: grid; grid-template-columns: repeat(3, 4.4em); gap: .5em; justify-content: center; }
.sbtn.key { justify-content: center; font-size: 1.2em; padding: .4em 0; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.sbtn.key:disabled { opacity: .45; cursor: default; }
.s-menu { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.s-menu .sbtn { justify-content: center; }
@media (max-width: 460px) { .s-menu { grid-template-columns: 1fr; } }
.legend-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.legend-strip .legend { margin: 0; padding-block: .9rem; }
@media (prefers-reduced-motion: no-preference) {
  .robot-bubble.pop { animation: pop .3s ease-out; }
  .robot-view canvas { opacity: 0; transition: opacity .6s; }
  .robot-view.ready canvas { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .scene.on { transition: opacity .2s; transform: none; }
  .scene.on .pop { animation: none; }
  .scene .pop { transform: none; }
}

.legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center; align-items: center; font-size: .9rem; color: var(--muted); }
@keyframes pop { from { transform: scale(.94); } to { transform: scale(1); } }
/* Links styled as screen buttons keep the button colours. */
.proj a.sbtn, .proj a.sbtn:hover { color: #FFFFFF; }
.proj .status[data-status="demonstrated"] { color: #BFF0CF; background: transparent; border-color: #8FD3A8; }
.proj .status[data-status="planned"] { color: #C7D7EC; }
