:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN",sans-serif;color:#f4f5f7;background:#050608;--muted:#949ba7;--cyan:#a5eaf4;--line:#ffffff1a}*{box-sizing:border-box}body{margin:0}button,a,input{ -webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{opacity:.35;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--cyan);outline-offset:5px}button{border:0}a{color:inherit}button[hidden],[hidden]{display:none!important}.topbar{height:88px;padding:0 4vw;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.brand{text-decoration:none;font-size:21px;letter-spacing:-.045em;white-space:nowrap}.brand b{font-size:11px;font-weight:500;letter-spacing:.1em;vertical-align:middle;margin-left:8px;color:var(--cyan)}.dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#a5eaf4;margin-left:5px}.event{color:#969da6;font-size:10px;letter-spacing:.12em}.event span{color:#e8e9eb;margin-left:18px}.tools{display:flex;gap:8px}.tools button,.stage-bottom button{background:transparent;color:#a8afb9;font-size:11px;padding:9px 12px;border:1px solid var(--line);border-radius:30px}.tools .stop{color:#fbb9ae;border-color:#fbb9ae4d}.experience{max-width:1800px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,29%);min-height:calc(100svh - 165px)}.stage{position:relative;min-width:0;min-height:660px;background:radial-gradient(ellipse at 50% 48%,#19222d66,transparent 62%);isolation:isolate}.stage-top{position:absolute;top:32px;left:4vw;right:3vw;display:flex;justify-content:space-between;align-items:center;z-index:3;gap:12px}.chip{display:inline-flex;font-size:9px;letter-spacing:.12em;border:1px solid #84d3df44;border-radius:30px;color:#a9d5db;padding:8px 12px}.reference{font-size:8px;color:#6c7886;letter-spacing:.14em}.brain-canvas{position:absolute;inset:40px 0 65px;overflow:hidden}.brain-canvas canvas{width:100%;height:100%;display:block;cursor:grab;transition:filter .7s}.brain-canvas canvas:active{cursor:grabbing}#brainLoading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:#9baab8;font-size:13px}.loading-line{width:100px;height:1px;background:#a5eaf4;animation:load 1.2s ease-in-out infinite;transform-origin:left}@keyframes load{50%{transform:scaleX(.25);opacity:.3}}.map-caption{position:absolute;bottom:98px;left:4vw;z-index:3;display:flex;flex-direction:column;gap:8px;pointer-events:none}.micro{font-size:8px;color:#80939d;letter-spacing:.18em}.map-caption strong{font-size:13px;font-weight:500;color:#d2dbe3}.map-caption #cue{font-size:11px;color:#8b9dab}.stage-bottom{position:absolute;bottom:22px;left:4vw;right:3vw;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:4}.science-badge{font-size:11px;color:#d9dfe6;border-left:2px solid var(--cyan);padding-left:10px}.control-panel{padding:44px 3vw 25px 22px;display:flex;flex-direction:column;justify-content:center;border-left:1px solid var(--line);min-width:0}.step-track{display:flex;gap:5px;margin-bottom:36px}.step-track i{height:2px;width:25px;background:#ffffff1a}.step-track i.on{background:var(--cyan)}.eyebrow{font-size:9px;letter-spacing:.18em;color:#8a9ba7;margin:0 0 22px}h1{font-size:clamp(34px,3.4vw,60px);line-height:1.32;letter-spacing:-.06em;font-weight:600;margin:0 0 28px}h1 em,h2 em{font-style:normal;color:#a5eaf4}h2{font-size:clamp(27px,2.5vw,42px);font-weight:500;line-height:1.4;letter-spacing:-.045em;margin:0 0 24px}.lead{color:#c0c7d0;font-size:14px;line-height:1.9;margin-bottom:25px}.primary,.secondary{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:14px 19px;border-radius:9px;font-size:13px;font-weight:500;margin:12px 0}.primary{background:#d4f4f8;color:#071216}.primary:hover:not(:disabled){background:#fff}.secondary{background:transparent;justify-content:center;border:1px solid var(--line);color:#c4ced6}.secondary:hover:not(:disabled){border-color:#a5eaf466}.fine{font-size:11px;color:var(--muted);line-height:1.85;margin:18px 0}.always-experimental{margin:30px 0 0;color:#69737e;font-size:8px;letter-spacing:.1em}.consent{display:flex;align-items:flex-start;gap:11px;font-size:12px;line-height:1.8;color:#d2d8df;margin:16px 0}.consent input{flex:none;width:18px;height:18px;accent-color:#a5eaf4;margin-top:2px}.observation{font-size:17px;line-height:1.6;color:var(--cyan);min-height:52px}.signal-bars{display:flex;gap:5px;height:32px;align-items:center;margin:24px 0}.signal-bars i{width:3px;height:calc(4px + var(--signal,0) * 28px);max-height:32px;background:#85c8d3;border-radius:2px;transition:height .5s}.signal-bars i:nth-child(3n){height:calc(4px + var(--signal,0) * 17px)}.signal-bars i:nth-child(2n){height:calc(4px + var(--signal,0) * 23px)}.camera-dock{position:absolute;right:3vw;bottom:92px;width:132px;aspect-ratio:4/3;border:1px solid #9fc8d344;border-radius:10px;overflow:hidden;background:#0d1016;z-index:5}.camera-dock video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}.camera-dock span{position:absolute;bottom:7px;left:9px;font-size:7px;letter-spacing:.1em;text-shadow:0 1px 5px black}.game-board{position:absolute;inset:102px 30px 160px;z-index:3;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:20px;pointer-events:none;align-items:start}.choice{width:155px;min-height:86px;padding:15px;background:#091019eb;border:1px solid #ffffff32;border-radius:12px;display:flex;flex-direction:column;gap:10px;box-shadow:0 8px 25px #0004;transition:border-color .4s,background .4s,box-shadow .4s}.choice:nth-child(even){justify-self:end}.choice:nth-child(n+3){align-self:end}.choice .number{font-size:9px;color:var(--cyan);letter-spacing:.15em}.choice strong{font-size:17px;font-weight:500}.choice.active{border-color:#c2f6ff;background:#132b35;box-shadow:0 0 30px #a5eaf42d}.timer{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:72px;font-weight:200;text-shadow:0 0 35px #000,0 0 15px #000;z-index:4}.prediction{font-size:clamp(29px,3vw,48px);font-weight:500;color:#c8f6ff;letter-spacing:-.05em;margin-bottom:16px}.answers{display:grid;grid-template-columns:1fr 1fr;gap:8px}.answers button{border:1px solid var(--line);background:#0e141c;border-radius:8px;padding:12px 6px;font-size:12px}.answers button[aria-pressed=true]{border-color:#a5eaf4;color:#a5eaf4}.answer-prompt{font-size:12px;color:#c5cdd6}.comparison{font-size:15px;line-height:1.6;color:#b5edf3;min-height:25px}.bonus{font-size:12px;line-height:1.8;color:#b6c8d1;border-left:1px solid #a5eaf4;padding-left:15px;margin-top:20px}.asset-error{position:absolute;inset:25% 10%;background:#150d10ef;border:1px solid #e8999a55;border-radius:15px;padding:25px;display:flex;justify-content:center;flex-direction:column;z-index:7}.asset-error p{font-size:12px;line-height:1.8;overflow-wrap:anywhere;color:#ecc1c1}.asset-error button{padding:13px;background:#58333b;border-radius:8px;align-self:start}.science-details{border-top:1px solid var(--line);padding:0 4vw}summary{display:flex;justify-content:space-between;cursor:pointer;padding:22px 0;list-style:none;font-size:11px;color:#86949f}summary::-webkit-details-marker{display:none}.details-grid{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:45px;padding:12px 0 35px;color:#929eaa;font-size:12px;line-height:1.9}.details-grid h3{font-size:13px;color:#d4dee7;font-weight:500}.candidate-brain-ramp{height:5px;border-radius:4px}#candidateBrainScale p{font-size:10px}footer{padding:22px 4vw;display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--line);color:#65727d;font-size:8px;letter-spacing:.08em}.projection .topbar{height:64px}.projection .experience{min-height:calc(100svh - 100px)}.projection .science-details,.projection footer{display:none}.projection .stage{min-height:650px}body[data-step=calibrate] .map-caption,body[data-step=challengePanel] .map-caption{bottom:100px}body[data-step=calibrate] .camera-dock,body[data-step=challengePanel] .camera-dock{width:88px;bottom:86px}body[data-step=calibrate] .brain-canvas,body[data-step=challengePanel] .brain-canvas{opacity:.85}
@media(min-width:1800px){.stage-top,.map-caption,.stage-bottom{left:65px}}
@media(max-width:1000px){.event{display:none}.experience{grid-template-columns:minmax(0,1fr) 315px}.stage{min-height:620px}.control-panel{padding:30px 24px}.reference{display:none}.choice{width:130px;min-height:78px}.choice strong{font-size:15px}.game-board{left:20px;right:20px}}
@media(max-width:700px){.topbar{height:66px;padding:0 18px;gap:8px}.brand{font-size:18px}.tools{gap:5px}.tools button{font-size:10px;padding:8px}.tools #fullscreen{display:none}.experience{display:flex;flex-direction:column;min-height:auto}.stage{height:51svh;min-height:340px;max-height:580px}.stage-top{left:20px;right:20px;top:18px}.chip{font-size:8px;padding:6px 9px}.brain-canvas{inset:15px 0 40px}.stage-bottom{left:20px;right:20px;bottom:12px}.science-badge{font-size:10px}.stage-bottom button{font-size:9px;padding:7px}.map-caption{left:20px;bottom:59px;gap:5px}.map-caption strong{font-size:10px}.map-caption #cue{font-size:9px}.micro{font-size:7px}.camera-dock{width:90px;right:20px;bottom:58px}.control-panel{border-left:0;border-top:1px solid var(--line);padding:24px 24px 16px}.step-track{margin-bottom:20px}.eyebrow{margin-bottom:13px}h1{font-size:36px;line-height:1.25;margin-bottom:17px}#intro h1 br:nth-child(2){display:none}h2{font-size:28px;line-height:1.4;margin-bottom:16px}h2 br{display:none}.lead{font-size:13px;margin-bottom:18px}.primary,.secondary{min-height:46px}.fine{margin:13px 0}.always-experimental{margin-top:18px}.observation{min-height:0;font-size:16px}.signal-bars{margin:15px 0;height:22px}.details-grid{grid-template-columns:1fr;gap:12px;padding-bottom:20px}footer{flex-direction:column;line-height:1.8;padding:18px 20px;gap:5px}.game-board{inset:63px 18px 95px;gap:12px}.choice{width:118px;min-height:62px;padding:10px 12px;gap:5px;border-radius:9px}.choice strong{font-size:13px}.choice .number{font-size:8px}.timer{font-size:48px}body[data-step=calibrate] .map-caption,body[data-step=challengePanel] .map-caption{bottom:55px}body[data-step=calibrate] .map-caption strong,body[data-step=calibrate] .map-caption .micro,body[data-step=challengePanel] .map-caption strong,body[data-step=challengePanel] .map-caption .micro{display:none}body[data-step=calibrate] .camera-dock,body[data-step=challengePanel] .camera-dock{width:59px;bottom:49px}.projection .stage{min-height:340px;height:55svh}.projection .topbar{height:60px}.asset-error{inset:18% 7%;padding:20px}.asset-error strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* v0.5: visible observation availability and aligned local landmark overlay. */
.tracking-head{display:flex;flex-direction:column;gap:10px}.tracking-head #trackingState{font-size:12px;color:#b8e9e8;letter-spacing:.02em}body[data-tracking=suspended] #trackingState,body[data-tracking=waiting] #trackingState{color:#e0b6a8}body[data-tracking=recovering] #trackingState{color:#d5cf9d}.camera-dock{width:clamp(140px,22vw,220px);aspect-ratio:4/3;bottom:174px}.camera-dock video{display:block}.camera-dock #landmarks{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}.camera-dock #cameraLabel{z-index:3;background:#050b10a8;border-radius:3px;padding:3px 4px;font-size:8px;max-width:90%;bottom:6px;left:6px}.camera-dock #landmarkToggle{position:absolute;right:6px;top:6px;z-index:4;border:1px solid #a5eaf455;background:#071216db;color:#cffaff;border-radius:5px;padding:5px 7px;font-size:9px}.camera-dock #landmarkToggle[aria-pressed=false]{color:#a2aab5}.demo-themes{display:flex;flex-direction:column;gap:8px;color:#91a5b2;font-size:10px;margin:15px 0}.demo-themes select{width:100%;padding:10px;border:1px solid #a5eaf433;border-radius:7px;background:#0b131a;color:#d0eef4;font:inherit;font-size:11px}body[data-step=calibrate] .camera-dock,body[data-step=challengePanel] .camera-dock{width:128px;bottom:60px}body[data-step=calibrate] .camera-dock #cameraLabel,body[data-step=challengePanel] .camera-dock #cameraLabel{font-size:6px}body[data-step=calibrate] .camera-dock #landmarkToggle,body[data-step=challengePanel] .camera-dock #landmarkToggle{font-size:7px;padding:3px}
@media(max-width:700px){.camera-dock{width:160px;bottom:100px}.tracking-head{gap:7px}.tracking-head #trackingState{font-size:10px}.map-caption #cue{max-width:calc(100vw - 40px);font-size:8px}body[data-step=calibrate] .camera-dock,body[data-step=challengePanel] .camera-dock{width:74px;bottom:40px}.camera-dock #cameraLabel{font-size:6px}.camera-dock #landmarkToggle{font-size:8px;padding:4px}body[data-step=calibrate] .camera-dock #cameraLabel,body[data-step=challengePanel] .camera-dock #cameraLabel{display:none}body[data-step=calibrate] .camera-dock #landmarkToggle,body[data-step=challengePanel] .camera-dock #landmarkToggle{font-size:6px;padding:2px;top:3px;right:3px}}
/* Keep the scientific boundary visible even on short screens and during scrolling. */
.science-badge{position:fixed;left:4vw;bottom:14px;z-index:30;background:#05090eeb;border-radius:0 5px 5px 0;padding:8px 11px;pointer-events:none}.stage-bottom button{margin-left:auto}body{padding-bottom:38px}
@media(max-width:700px){.science-badge{left:18px;bottom:10px;font-size:10px;padding:7px 9px}}

/* v0.6 isolated exhibit refinement; visual only, no source-map changes */
.stage{background:radial-gradient(ellipse 52% 46% at 52% 48%,#29496044,transparent 75%),#05080c}
.brain-canvas{inset:8px 0 76px}
.map-caption{left:3.5vw;bottom:108px;gap:8px;max-width:57%}
.map-caption .micro{color:#a2d9e4;font-size:10px;letter-spacing:.16em}
.map-caption strong{font-size:clamp(22px,2.3vw,35px);font-weight:550;line-height:1.2;color:#eefbff;text-shadow:0 2px 18px #000b,0 0 28px #82dce82a}
.map-caption #cue{font-size:12px;line-height:1.5;color:#bfced8}
.camera-dock{width:clamp(180px,20vw,275px);right:3.5vw;bottom:126px;border:1px solid #a7e8f270;box-shadow:0 0 30px #6fd4e91b,0 20px 40px #0008}
.tracking-head #trackingState{font-size:13px;line-height:1.5}
.control-panel{background:linear-gradient(100deg,#070b0f,#05080b)}
.primary{min-height:53px}
@media(max-width:700px){
 .brain-canvas{inset:10px 0 36px}
 .map-caption{left:18px;bottom:65px;max-width:calc(100% - 150px);gap:4px}
 .map-caption .micro{font-size:7px}
 .map-caption strong{font-size:14px;line-height:1.3}
 .map-caption #cue{font-size:8px}
 .camera-dock{width:clamp(108px,32vw,144px);right:14px;bottom:76px}
 body[data-step=calibrate] .camera-dock,body[data-step=challengePanel] .camera-dock{width:74px;bottom:40px}
}

/* v0.6 observed cue is a label for reference-map selection, not neural measurement */
.stage-cue{position:absolute;top:125px;left:3.5vw;z-index:4;max-width:55%;display:flex;align-items:center;gap:11px;padding:12px 15px;border:1px solid #a0e4ec55;background:linear-gradient(95deg,#12303bdc,#071216d9);border-radius:11px;box-shadow:0 10px 32px #0008;pointer-events:none}
.stage-cue-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#a7eaf1;box-shadow:0 0 15px #79e3f5a8}
.stage-cue>div{display:flex;flex-direction:column;gap:5px}
#stageCueKind{color:#a3c2ca;font-size:9px;letter-spacing:.13em}
#stageCueText{color:#f0faff;font-size:14px;font-weight:500}
.stage-cue.cue-pop{animation:cueEnter .65s ease-out}
@keyframes cueEnter{from{opacity:.1;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
body[data-step=calibrate] .stage-cue,body[data-step=challengePanel] .stage-cue,body[data-step=reveal] .stage-cue,body[data-tracking=suspended] .stage-cue,body[data-tracking=recovering] .stage-cue{display:none}
.motion-note{font-size:9px;color:#a8cbd0;margin:10px 0 -12px;letter-spacing:.07em}
@media(max-width:700px){.stage-cue{left:18px;top:68px;max-width:calc(100% - 137px);padding:8px 9px;gap:7px}.stage-cue-dot{width:6px;height:6px}#stageCueKind{font-size:7px;letter-spacing:0}#stageCueText{font-size:9px}.motion-note{font-size:8px}}
@media(prefers-reduced-motion:reduce){.stage-cue.cue-pop{animation:none}}

/* v0.8: the frame contains only video + landmarks. All text stays outside it. */
.camera-dock{position:absolute;right:3.5vw;bottom:82px;width:clamp(190px,18vw,230px);aspect-ratio:auto;border:0;border-radius:10px;overflow:visible;background:#091219;box-shadow:0 12px 36px #0008;z-index:5}
.camera-frame{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;border:1px solid #a7e8f270;border-radius:10px 10px 0 0;background:#0d1016}
.camera-frame video{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.camera-frame #landmarks{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}
.camera-dock span,.camera-dock #cameraLabel,.camera-dock #landmarkToggle{position:static;inset:auto;text-shadow:none}
.camera-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:32px;padding:5px 7px;border:1px solid #a7e8f230;border-top:0}
.camera-dock #cameraLabel{padding:0;background:none;font-size:8px;color:#a7bec9;letter-spacing:0;max-width:none}
.camera-dock #landmarkToggle{font-size:9px;padding:4px 6px;white-space:nowrap;background:#0b2029;border:1px solid #a5eaf455;border-radius:4px;color:#cffaff}
.facial-gesture{position:static;padding:9px 10px;border:1px solid #a7e8f230;border-top:0;border-radius:0 0 10px 10px;background:#091219;pointer-events:none}
.facial-gesture-head{display:block;font-size:8px;color:#9ab5bf;letter-spacing:.08em}
.facial-gesture strong{display:block;margin:4px 0;font-size:13px;font-weight:500;line-height:1.45;color:#e1f8fb;overflow-wrap:anywhere}
.facial-gesture small{display:block;font-size:10px;line-height:1.6;color:#b4ccd3;overflow-wrap:anywhere}
.facial-gesture .facial-caveat{font-size:8px;color:#8a9fa9;margin-top:4px}
.facial-gesture-track{height:2px;background:#ffffff18;overflow:hidden;margin-top:7px}
.facial-gesture-track span{display:block;height:100%;width:0;background:#9de2eb;transition:width .25s ease}
/* Observation and candidate are intentionally distinct, with the actual applied map below. */
.stage-cue{display:block;top:125px;left:3.5vw;width:340px;max-width:calc(100% - 7vw);padding:13px 16px;border-color:#9cc7d33d;background:linear-gradient(110deg,#10222cf2,#071117ed);border-radius:12px;pointer-events:none}
.cue-kind{display:block;font-size:9px;letter-spacing:.1em;color:#8eb7c2;margin-bottom:9px}
.cue-flow{margin:0;display:grid;gap:8px}.cue-flow>div{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:baseline;gap:8px}
.cue-flow dt{font-size:10px;line-height:1.6;color:#9ab5c0}.cue-flow dt span{color:#7797a1;margin-left:3px}
.cue-flow dd{margin:0;font-size:14px;line-height:1.55;color:#d9f9fc;overflow-wrap:anywhere}
#stageCueText{font-size:14px;font-weight:500;color:#f1fbff}
#stageInterpretation{color:#a9dee6;font-size:13px}
.cue-map-row{border-top:1px solid #9cc7d328;padding-top:8px}.cue-map-row dd{font-size:11px;color:#c1d3dd}
.stage-cue>small{display:block;color:#8ea4ae;font-size:9px;line-height:1.6;margin-top:10px}
body[data-step=live] .stage{min-height:620px}
body[data-step=calibrate] .camera-dock,body[data-step=challengePanel] .camera-dock{width:128px;bottom:60px}
body[data-step=calibrate] .facial-gesture,body[data-step=challengePanel] .facial-gesture{display:none}
@media(max-width:700px){
 body[data-step=live] .stage{height:calc(100svh - 66px);min-height:680px;max-height:none}
 body[data-step=live] .brain-canvas{inset:195px 0 145px}
 .stage-cue{left:18px;right:18px;top:83px;width:auto;max-width:none;padding:10px 12px}
 .cue-kind{font-size:8px;margin-bottom:7px}
 .cue-flow{gap:5px}.cue-flow>div{grid-template-columns:86px minmax(0,1fr);gap:8px}
 .cue-flow dt{font-size:10px}#stageCueText{font-size:13px}#stageInterpretation{font-size:12px}.cue-map-row dd{font-size:10px}
 .cue-map-row{padding-top:5px}.stage-cue>small{font-size:8px;line-height:1.5;margin-top:7px}
 .camera-dock{width:clamp(126px,36vw,156px);right:14px;bottom:66px;aspect-ratio:auto}
 .camera-toolbar{min-height:30px;padding:5px}
 .camera-dock #cameraLabel{font-size:7px}
 .camera-dock #landmarkToggle{font-size:8px;padding:4px}
 .facial-gesture{padding:7px}.facial-gesture-head{font-size:7px}.facial-gesture strong{font-size:11px}.facial-gesture small{font-size:9px}.facial-gesture .facial-caveat{font-size:7px}
 .map-caption{max-width:calc(100% - clamp(126px,36vw,156px) - 48px);bottom:82px;gap:5px}
 .map-caption strong{font-size:13px;overflow-wrap:anywhere}.map-caption #cue{font-size:9px}
 body[data-step=live] .control-panel{padding-top:18px}body[data-step=live] .control-panel h2{font-size:25px;margin-bottom:12px}
 body[data-step=calibrate] .camera-dock,body[data-step=challengePanel] .camera-dock{width:104px;bottom:40px}
 body[data-step=calibrate] .camera-dock #landmarkToggle,body[data-step=challengePanel] .camera-dock #landmarkToggle{font-size:7px;padding:3px}
}
@media(prefers-reduced-motion:reduce){.facial-gesture-track span{transition:none}}
/* Tablet / phone landscape: preserve a wide stage instead of squeezing it beside the controls. */
@media(min-width:701px) and (max-width:1000px){
 body[data-step=live] .experience{display:flex;flex-direction:column}
 body[data-step=live] .control-panel{border-left:0;border-top:1px solid var(--line);padding:24px}
 body[data-step=live] .stage{min-height:620px}
}
/* Keep the optional gaze cards unobscured by the taller, external camera footer. */
body[data-step=calibrate] .camera-dock,body[data-step=challengePanel] .camera-dock{width:104px;bottom:45px}
@media(max-width:700px){
 body[data-step=calibrate] .stage,body[data-step=challengePanel] .stage{height:500px;min-height:500px;max-height:none}
 body[data-step=calibrate] .game-board,body[data-step=challengePanel] .game-board{inset:80px 18px 185px}
}

/* v0.9: 3 minute research comparison, NOT a second simulated brain activation map. */
.stage-action{background:linear-gradient(115deg,#d8f9fa,#9de5f5);color:#0b2024}
.stage-research{margin:18px 0 8px;padding:17px;border:1px solid #9ce5ed3b;border-radius:14px;background:linear-gradient(140deg,#11222bd8,#0a1016cc)}
.stage-research-kicker{font-size:10px;letter-spacing:.15em;color:#9ddce6;margin:0 0 8px}
.stage-research h3{font-size:clamp(19px,1.75vw,28px);line-height:1.3;font-weight:550;letter-spacing:-.04em;margin:0 0 14px}
.stage-research h3 em{color:#a9edf4;font-style:normal}
.research-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.research-side{min-width:0;padding:12px;border:1px solid #a9dae231;border-radius:9px;background:#0b1b22d6}
.research-side span{display:block;color:#90cdd8;font-size:10px;line-height:1.5;margin-bottom:8px}
.research-side strong{display:block;font-size:13px;font-weight:600;color:#e4f7f8;line-height:1.5}
.research-side p{color:#afc4cb;font-size:11px;line-height:1.7;margin:8px 0 7px}
.research-side a{display:inline-block;color:#b6e3f4;font-size:10px;text-decoration:underline;text-underline-offset:3px}
.stage-research-note{font-size:10px;line-height:1.65;color:#b1bac2;margin:12px 0 5px}
.stage-recalibrate{font-size:11px;min-height:36px;margin:11px 0 4px;padding:8px}
.stage-baseline-status{font-size:11px;color:#a7d9dc;line-height:1.5;margin:4px 0 0}
body[data-stage-mode=true] #challenge,body[data-stage-mode=true] #unknownExample{display:none!important}

/* Illustrated guide lives in the document flow and never overlays a camera view. */
.guide{background:radial-gradient(ellipse at 50% 5%,#14283b,#070b11 65%);border-bottom:1px solid #a5eaf42b;padding:clamp(22px,3vw,44px) 4vw;scroll-margin-top:0}
.guide-inner{max-width:1180px;margin:auto}.guide-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.guide-kicker{margin:0 0 10px;color:#90c6d2;letter-spacing:.18em;font-size:10px}.guide-heading h1{font-size:clamp(25px,2.7vw,39px);line-height:1.35;margin:0 0 8px;letter-spacing:-.04em}.guide-sub{font-size:13px;color:#adbfca;margin:0}.guide-mobile-break{display:none}.guide-close{flex:none;background:transparent;color:#c3d3dc;border:1px solid #a5eaf44a;border-radius:30px;padding:9px 15px;font-size:12px}
.guide-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0 12px;padding:0;list-style:none}.guide-steps li{position:relative;min-width:0;text-align:center;border:1px solid #b2e7ef29;border-radius:12px;background:#080e17b3;padding:8px 10px 14px}.guide-steps li:not(:last-child)::after{content:'→';position:absolute;right:-17px;top:43%;z-index:2;color:#b6eefa;font-size:18px}.guide-steps img{width:100%;height:clamp(100px,13vw,180px);object-fit:contain}.guide-number{position:absolute;top:12px;left:14px;color:#9de3ee;font-size:11px;letter-spacing:.12em}.guide-steps h2{font-size:17px;line-height:1.35;letter-spacing:0;margin:3px 0 4px}.guide-steps p{font-size:11px;line-height:1.4;color:#a7b8c3;margin:0}.guide-flow{text-align:center;color:#c1e5ea;font-size:12px;margin:12px 0 16px}.guide-flow span{padding:0 .6em;color:#6fc9d7}.guide-flow small{color:#a0adb5}.guide-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:700px;margin:auto}.guide-actions button{min-height:50px;border-radius:8px;padding:12px 20px;background:#d4f4f8;color:#071216;font-size:14px;font-weight:650}.guide-actions button+button{background:#0c1a25;color:#d5eef3;border:1px solid #a5eaf477}.guide-actions button span{margin-left:10px}.guide-optional{display:flex;justify-content:center;align-items:center;gap:10px;margin:10px 0 0;color:#a7bbc7}.guide-optional img{width:44px;height:44px;object-fit:contain}.guide-optional p{font-size:11px;line-height:1.5;margin:0}.guide-optional strong{color:#d3eaf0}.guide-notice{text-align:center;color:#b6c3cb;font-size:11px;line-height:1.65;margin:10px 0 0}body:not([data-step=intro]) .guide-actions{display:none}
@media(max-width:700px){.guide{padding:20px 16px 24px}.guide-heading h1{font-size:20px}.guide-mobile-break{display:block}.guide-kicker{font-size:9px}.guide-sub{font-size:12px}.guide-close{padding:8px 10px;font-size:11px}.guide-steps{gap:10px;margin:17px 0 9px}.guide-steps li{padding:6px 4px 10px}.guide-steps li:not(:last-child)::after{right:-10px;top:39%;font-size:14px}.guide-steps img{height:88px}.guide-number{top:7px;left:7px;font-size:9px}.guide-steps h2{font-size:12px;white-space:nowrap;margin:2px 0 4px}.guide-steps p{font-size:9px;line-height:1.4}.guide-flow{font-size:10px;margin:10px 0}.guide-flow span{padding:0 .25em}.guide-actions{gap:8px}.guide-actions button{font-size:12px;padding:10px 6px;min-height:50px}.guide-actions button span{margin-left:2px}.guide-optional{margin-top:9px}.guide-optional img{width:38px;height:38px}.guide-optional p,.guide-notice{font-size:10px}.guide-notice{margin-top:7px}.tools #guideOpen{padding:8px}}
@media(max-width:360px){.topbar{padding-inline:10px;gap:4px}.brand{font-size:15px}.brand b{font-size:9px;margin-left:4px}.tools{gap:4px}.tools button,.tools #guideOpen{white-space:nowrap;font-size:9px;padding:8px 6px}}
body[data-stage-mode=true] .signal-bars{margin:8px 0}
@media(max-width:1100px){.research-pair{grid-template-columns:1fr}.stage-research{padding:12px}.research-side{padding:9px}}
@media(max-width:700px){.research-pair{grid-template-columns:1fr 1fr}.stage-research h3{font-size:20px}.stage-research{margin:10px 0}.research-side span{font-size:9px}.research-side strong{font-size:11px}.research-side p{font-size:10px}}
@media(max-width:410px){.research-pair{grid-template-columns:1fr}}

/* v0.9 smartphone camera flip. Controls stay OUTSIDE the facial video frame. */
.camera-frame[data-facing="environment"] video{transform:none}
.camera-frame[data-facing="user"] video{transform:scaleX(-1)}
.camera-dock #cameraFlip{position:static;inset:auto;border:1px solid #8eddec66;background:#122630;color:#d4f7fa;font-size:9px;line-height:1.3;padding:5px 7px;border-radius:5px;white-space:nowrap;min-width:54px}
.camera-dock #cameraFlip:disabled{opacity:.4}
.camera-toolbar{gap:5px;flex-wrap:wrap}
.camera-dock #cameraLabel{min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis}
.camera-dock #cameraFlip,.camera-dock #landmarkToggle{flex:0 0 auto}
@media(max-width:700px){
 .camera-toolbar{gap:4px;padding:4px 5px}
 .camera-dock #cameraFlip{font-size:8px;padding:5px;min-width:40px}
 .camera-dock #landmarkToggle{padding:5px;font-size:8px}
 .camera-dock #cameraLabel{font-size:7px}
}
@media(max-width:410px){
 .camera-toolbar{gap:3px}
 .camera-dock #cameraFlip{min-width:38px;padding:4px}
 .camera-dock #landmarkToggle{padding:4px;font-size:7px}
}

/* WOW controls are below the media, never over face landmarks. */
.wow-controls{border:1px solid #a5eaf433;border-radius:10px;padding:14px;margin-bottom:14px}.wow-controls p{margin:0 0 10px;font-size:14px;line-height:1.7;color:#c9edf3}.wow-controls .wow-caveat{font-size:11px;color:#a6b8c5}.wow-options{display:flex;flex-wrap:wrap;gap:12px;font-size:11px;color:#c6d6df}.wow-options input{accent-color:#a5eaf4}.extra-experiment{margin-top:22px;border-top:1px solid #ffffff22}body:not([data-step=live]) .wow-controls{display:none}body[data-step=live] #live:has(#demoThemes:not([hidden])) .wow-controls{display:none}
