:root{--navy:#0b1c2e;--gold:#c8a96e;--cream:#f5f1e9;--ink:#172d41;--blue:#428bce;--red:#d55360;--app-height:100vh;--app-width:100vw;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;border:0}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #63b6f5;outline-offset:3px}a{color:inherit;text-underline-offset:4px}.lobby{min-height:100svh;max-width:1050px;margin:auto;padding:clamp(20px,4vh,42px) 24px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px}.brand{width:245px;max-width:60vw;height:auto}.brand-link{margin-bottom:12px}.eyebrow{font:11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:1.4px;color:#9e7d44;text-transform:uppercase;margin:0 0 12px}h1{font:normal clamp(34px,5vw,58px)/1.04 Georgia,serif;letter-spacing:-1.4px;margin:0}h1 em{font-weight:normal;color:#94723a}.intro{font-size:16px;line-height:1.4;margin:17px 0 6px;color:#667480}.lobby-scene{width:min(100%,520px);height:clamp(150px,29vh,270px);background:url('assets/client-0.webp') center 24%/cover;border:5px solid #152c40;border-radius:6px;box-shadow:0 15px 35px #19293824}.primary{min-height:48px;padding:13px 20px;border-radius:5px;background:#d8b97c;color:#0b1c2e;font-weight:700;font-size:15px;box-shadow:0 3px 0 #9a7e47;line-height:1.2}.primary:hover:not(:disabled){background:#edd39f}.primary:active:not(:disabled){transform:translateY(1px);box-shadow:none}.launch{width:min(100%,520px);margin-top:7px}.launch-note{font-size:12px;color:#77818b;margin:3px 0}.lobby-links{display:flex;flex-wrap:wrap;gap:22px;justify-content:center;font-size:12px;margin-top:7px;color:#647482}.text-button{background:none;padding:0;text-decoration:underline;text-underline-offset:4px;font-size:inherit;color:inherit}.playing{overflow:hidden;overscroll-behavior:none;background:var(--navy)}.playing .lobby{display:none}.game-shell{position:fixed;left:0;top:0;width:100%;height:var(--app-height);background:var(--navy);color:#eaf0f5;z-index:20;display:grid;grid-template-rows:46px minmax(0,1fr);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow:hidden}.game-shell:fullscreen{width:100%;height:100%;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.game-bar{display:flex;align-items:center;gap:12px;padding:0 12px;background:#12283c;border-bottom:1px solid #304253;font:12px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;min-width:0}.score{color:#d8ba82;margin-right:auto}.bar-button,.icon-button{min-height:44px;background:none;color:#c3d0db;white-space:nowrap}.bar-button{font-size:12px;padding:0 8px}.icon-button{font-size:26px;min-width:44px;padding:0 8px;line-height:1}.game-content{position:relative;min-height:0;min-width:0;overflow:hidden}.brief-screen,.play-screen,.feedback-screen,.end-screen{width:100%;height:100%;min-height:0;min-width:0}.brief-screen{max-width:1500px;margin:auto;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:0 25px;padding:24px}.portrait{width:100%;height:100%;min-height:0;min-width:0;object-fit:cover;object-position:center 22%;image-rendering:pixelated;grid-column:1;grid-row:1/3;border-radius:4px}.brief-copy{align-self:center;min-height:0;max-height:100%;overflow:auto;grid-column:2;grid-row:1;padding:16px 5px}.speech{font-size:clamp(17px,2vw,25px);line-height:1.5;white-space:pre-line;margin:0}.brief-actions{grid-column:2;grid-row:2;padding:18px 0 4px}.brief-actions .primary{width:100%}.play-screen{max-width:1600px;margin:auto;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:12px;padding:20px}.diagram-area{display:flex;min-width:0;min-height:0;align-items:center;justify-content:center}.diagram-wrap{width:100%;height:100%;min-height:0}.diagram-wrap svg{display:block;width:100%;height:100%;overflow:hidden}.compact-plot-labels{display:none}#balloon-graph>text,#balloon-graph text[id^='label-']{paint-order:stroke;stroke:#0b1c2e;stroke-width:3.5px;stroke-linejoin:round}.construction-panel{display:flex;flex-direction:column;justify-content:center;min-height:0;min-width:0;gap:20px;padding:15px 25px;border-left:1px solid #304253}.evidence-key p{font-size:12px;line-height:1.4;color:#a8bccc;margin:0 0 10px}.evidence-key>div{display:flex;align-items:baseline;gap:8px;font-size:15px;margin:7px 0;white-space:nowrap}.evidence-key b{color:#d7ba80;font:12px ui-monospace,SFMono-Regular,Consolas,monospace}.evidence-key small{margin-left:auto;font-size:10px;color:#9eb0c2}.coverage{display:flex;gap:13px;flex-wrap:wrap;font-size:11px;line-height:1.4;color:#a9bbc9}.coverage span{display:flex;align-items:center;gap:5px}.dot{display:inline-block;width:7px;height:7px;background:#8c99a6;border-radius:50%}.dot.red{background:var(--red)}.dot.blue{background:var(--blue)}.scope-controls label{display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:bold}.scope-controls output{color:#d7b985;font:11px ui-monospace,SFMono-Regular,Consolas,monospace}.range-line{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:10px;margin-top:10px}.stepper{height:44px;border:1px solid #4c6072;border-radius:4px;background:#20384e;color:#dbe5ee;font-size:23px}.range-line input{touch-action:none;width:100%;height:44px;margin:0;accent-color:#d7b875;cursor:ew-resize;-webkit-appearance:none;appearance:none;background:transparent}.range-line input::-webkit-slider-runnable-track{height:5px;background:#4c6072;border-radius:5px}.range-line input::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:29px;margin-top:-12px;background:#dec18a;border:3px solid #f3dfb7;border-radius:4px;box-shadow:0 2px 8px #0005}.range-line input::-moz-range-track{height:5px;background:#4c6072;border-radius:5px}.range-line input::-moz-range-thumb{width:20px;height:25px;background:#dec18a;border:3px solid #f3dfb7;border-radius:4px}.range-labels{display:flex;justify-content:space-between;margin:3px 54px 0;font:10px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;color:#9bb0c2;text-transform:uppercase;letter-spacing:.6px}.live-state{font-size:12px;line-height:1.4;color:#ddbf83;min-height:34px;margin:12px 0 0}.filing-actions .primary{width:100%}.feedback-screen{display:grid;grid-template-rows:minmax(0,1fr) auto;padding:25px;max-width:850px;margin:auto}.feedback-body{align-self:center;text-align:center;min-height:0;max-height:100%;overflow:auto;padding:10px 12px}.verdict-mark{font:70px/1 Georgia,serif;color:#d7b985;margin-bottom:20px}.feedback-screen.good .verdict-mark{color:#8cd1ae}.feedback-screen h2{font:clamp(27px,4.6vw,46px)/1.12 Georgia,serif;margin:0 0 20px;color:#e9cc96}.feedback-screen p:not(.eyebrow){font-size:clamp(16px,2vw,21px);line-height:1.5;color:#c6d5e0;margin:0}.feedback-actions{padding-top:20px}.feedback-actions .primary{width:100%}.end-screen{max-width:900px;margin:auto;padding:25px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:15px;text-align:center}.end-heading h2{font:30px/1.1 Georgia,serif;color:#e9cc96;margin:10px 0}.end-heading p:not(.eyebrow){font-size:14px;line-height:1.45;color:#b5c7d5;margin:5px 0}.score-big{font:55px/1 Georgia,serif;color:#dec18a}.results{list-style:none;padding:0;margin:0;align-self:center;min-height:0;max-height:100%;overflow:auto;text-align:left;display:grid;grid-template-columns:1fr 1fr;gap:10px}.results li{padding:14px;border:1px solid #30465a;display:flex;gap:12px;align-items:center}.results strong{display:block;font-size:15px;line-height:1.4;color:#e5cfaa}.results span{font-size:12px;color:#a9bdcb}.result-icon{font-size:20px!important;color:#9dd1b5!important}.about-panel{position:fixed;inset:5vh max(5vw,calc((100vw - 780px)/2));background:#f5f1e9;color:#263a4b;z-index:50;border:1px solid #d2c3a9;border-radius:8px;padding:24px 32px;overflow:auto;box-shadow:0 0 0 100vmax #061522cc}.about-panel .icon-button{float:right;color:#213749}.about-panel h2{font:30px Georgia,serif;margin-top:12px}.about-panel p{font-size:15px;line-height:1.6}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@supports(height:100dvh){:root{--app-height:100dvh}.game-shell{height:var(--app-height,100dvh)}}
@media(orientation:portrait) and (max-width:900px){.game-shell{grid-template-rows:44px minmax(0,1fr)}.game-bar{gap:6px;padding:0 8px;font-size:10px}.bar-button{font-size:11px;padding:0 6px}.icon-button{min-width:40px}.brief-screen{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;padding:12px;gap:12px}.portrait{grid-column:1;grid-row:1;object-position:center 18%}.brief-copy{grid-column:1;grid-row:2;padding:0 5px;max-height:45dvh}.speech{font-size:clamp(14px,3.9vw,19px);line-height:1.4}.brief-actions{grid-column:1;grid-row:3;padding:0 0 4px}.play-screen{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:0;padding:4px 12px 12px}.diagram-area{min-height:0}.construction-panel{border-left:0;padding:0;gap:8px}.evidence-key p{font-size:10px;margin:0 0 4px}.evidence-key>div{font-size:12px;line-height:1.3;margin:3px 0}.evidence-key small{font-size:10px}.coverage{font-size:10px;gap:12px}.scope-controls label{font-size:14px}.range-line{margin-top:4px}.range-labels{margin-top:0}.live-state{font-size:11px;min-height:16px;margin:6px 0 0}.compact-plot .desktop-plot-label{display:none}.compact-plot .compact-plot-labels{display:block}.primary{min-height:46px;font-size:14px}.end-screen{padding:18px 16px;gap:12px}.end-heading h2{font-size:28px}.end-heading p:not(.eyebrow){font-size:13px}.score-big{font-size:48px}.results{grid-template-columns:1fr;width:100%;gap:7px}.results li{padding:9px 13px}.feedback-screen{padding:20px 16px}.feedback-body{padding:6px}.verdict-mark{font-size:60px;margin-bottom:20px}}
@media(orientation:landscape) and (max-height:600px){.game-shell{grid-template-rows:40px minmax(0,1fr)}.game-bar{font-size:10px}.brief-screen{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 16px;padding:12px 16px}.speech{font-size:clamp(13px,2.1vw,17px);line-height:1.35}.brief-copy{padding:0 3px}.brief-actions{padding:8px 0 2px}.primary{min-height:44px;padding:10px 14px;font-size:13px}.play-screen{grid-template-columns:minmax(0,1.45fr) minmax(250px,1fr);gap:0;padding:3px 12px 10px}.construction-panel{padding:5px 10px 0;gap:7px}.evidence-key p{font-size:9px;margin:0 0 4px}.evidence-key>div{font-size:11px;margin:3px 0}.evidence-key small{font-size:9px}.coverage{font-size:9px;gap:9px}.scope-controls label{font-size:12px}.range-line{margin-top:3px;gap:7px}.live-state{min-height:15px;font-size:10px;margin:4px 0 0}.range-labels{font-size:9px;margin-top:0}.feedback-screen{max-width:950px;padding:12px 24px}.feedback-body{padding:0}.verdict-mark{font-size:40px;margin-bottom:8px}.feedback-screen .eyebrow{font-size:10px;margin-bottom:7px}.feedback-screen h2{font-size:26px;margin-bottom:10px}.feedback-screen p:not(.eyebrow){font-size:15px;line-height:1.4}.feedback-actions{padding-top:10px}.end-screen{padding:12px 20px;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) auto;gap:12px 20px}.end-heading{grid-row:1;grid-column:1;align-self:center}.results{grid-column:2;grid-row:1;grid-template-columns:1fr;gap:5px}.results li{padding:6px 10px}.end-screen>.primary{grid-row:2;grid-column:1/3}.end-heading .eyebrow{font-size:9px;margin-bottom:5px}.end-heading h2{font-size:23px;margin:6px 0}.score-big{font-size:40px}.end-heading p:not(.eyebrow){font-size:11px;margin:0;line-height:1.3}}
@media(orientation:portrait) and (max-height:650px){.brief-screen{padding:8px 10px;gap:8px}.speech{font-size:14px;line-height:1.35}.brief-copy{max-height:45dvh}.lobby{gap:10px;padding:18px 18px}.brand-link{margin-bottom:0}.brand{width:190px}h1{font-size:34px}.intro{font-size:13px;margin:12px 0 0}.lobby-scene{height:150px}.eyebrow{font-size:9px;margin-bottom:8px}.construction-panel{gap:5px}.evidence-key p{font-size:9px}.coverage{font-size:9px}.live-state{font-size:10px;margin:4px 0 0}.play-screen{padding:2px 10px 8px}.end-screen{padding:12px;gap:7px}.end-heading h2{font-size:24px}.end-heading p:not(.eyebrow){font-size:11px}.score-big{font-size:38px}.results li{padding:6px 10px}.feedback-screen{padding:12px}.verdict-mark{font-size:46px;margin-bottom:12px}.feedback-screen h2{font-size:26px;margin-bottom:13px}}
@media(orientation:landscape) and (max-height:440px) and (max-width:700px){.play-screen{grid-template-columns:minmax(0,1fr) minmax(235px,1fr);padding:2px 8px 6px}.construction-panel{padding:4px 6px 0;gap:4px}.evidence-key small{display:none}.coverage{gap:7px}.speech{font-size:13px}.brief-screen{gap:0 12px;padding:8px 12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}#burst-ring{opacity:0}}

#air-leak,#balloon-burst{opacity:0;pointer-events:none}#balloon-face{pointer-events:none}#balloon-graph.leaking #air-leak{opacity:1}#balloon-graph.leaking .air-streak,#balloon-graph.leaking .air-speck{animation:escaping-real .7s ease-out infinite}#balloon-graph.leaking .air-streak:nth-child(2){animation-delay:.23s}#balloon-graph.leaking .air-streak:nth-child(3){animation-delay:.46s}#balloon-graph.leaking #balloon-whole{animation:latex-wobble .22s ease-in-out infinite alternate;transform-origin:460px 376px}#balloon-graph.burst #balloon-whole{opacity:0}#balloon-graph.burst #balloon-burst{opacity:1}#balloon-graph.burst .scrap{animation:latex-burst .85s cubic-bezier(.12,.7,.3,1) both;transform-origin:385px 220px}#balloon-graph.burst #burst-ring{animation:shock-wave .45s ease-out both;transform-origin:385px 220px}#balloon-graph.burst #pop-word{animation:pop-word .35s ease-out both;transform-origin:385px 208px}.portrait.entering{animation:appear .4s ease-out}
@keyframes appear{from{opacity:.45;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes latex-wobble{from{transform:rotate(-.25deg) scale(1,.995)}to{transform:rotate(.25deg) scale(.997,1)}}@keyframes escaping-real{from{transform:translate(0,0);opacity:.95}to{transform:translate(0,19px);opacity:0}}@keyframes latex-burst{from{transform:translate(0,0) scale(.87) rotate(0);opacity:1}to{transform:translate(var(--dx),var(--dy)) scale(1.08) rotate(var(--rot));opacity:.8}}@keyframes shock-wave{from{transform:scale(.55);opacity:.9}to{transform:scale(1.25);opacity:0}}@keyframes pop-word{from{transform:scale(.45);opacity:0}to{transform:scale(1);opacity:1}}

.compact-plot .desktop-plot-label{display:none}.compact-plot .compact-plot-labels{display:block}
/* Keep the launch card within the phone viewport as well. */
.lobby{height:100svh;min-height:0}.lobby-scene{flex:1 1 180px;min-height:0;max-height:270px}
@media(orientation:landscape) and (max-height:600px){.lobby{max-width:1150px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;padding:12px 20px;gap:8px 20px}.brand-link{grid-column:1;grid-row:1;margin:0}.brand{width:190px}.lobby-copy{grid-column:2;grid-row:1/3;align-self:center}.lobby-copy .eyebrow{font-size:9px;margin-bottom:8px}h1{font-size:clamp(26px,4vw,38px);letter-spacing:-.8px}.intro{font-size:12px;margin:10px 0 0}.lobby-scene{grid-column:1;grid-row:2/5;width:100%;height:100%;max-height:none}.launch{grid-column:2;grid-row:3;margin:0;min-height:44px}.launch-note{display:none}.lobby-links{grid-column:2;grid-row:4;font-size:10px;gap:8px 15px;margin:3px 0 0}}
.bar-key{display:none}.evidence-screen{height:100%;max-width:700px;margin:auto;padding:10px 18px;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:8px}.evidence-screen>div{align-self:center;min-height:0;overflow:auto}.evidence-screen h2{font-size:14px;margin:0 0 7px}.evidence-screen p{font-size:12px;line-height:1.3;margin:4px 0}.evidence-screen b{color:#d8b97c;margin-right:8px}.key-colours{color:#adbfce}.game-shell.short-landscape .bar-key{display:block}.game-shell.short-landscape .construction-panel>.evidence-key,.game-shell.short-landscape .construction-panel>.coverage{display:none}.game-shell.short-landscape .game-bar{gap:6px;font-size:10px}.game-shell.short-landscape .play-screen{grid-template-columns:minmax(0,1.3fr) minmax(235px,1fr);grid-template-rows:minmax(0,1fr);padding:2px 8px 6px}.game-shell.short-landscape .construction-panel{padding:2px 8px;gap:6px}.game-shell.short-landscape .scope-controls label{font-size:12px}.game-shell.short-landscape .live-state{font-size:10px;line-height:1.2;min-height:12px;margin-top:3px}.game-shell.short-landscape .primary{min-height:44px;padding:10px 12px;font-size:13px}.game-shell.short-landscape .brief-screen{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:0 12px;padding:8px 12px}.game-shell.short-landscape .speech{font-size:12px;line-height:1.3}.game-shell.short-landscape .brief-actions{padding:5px 0 0}.game-shell.short-landscape .verdict-mark{display:none}.game-shell.short-landscape .feedback-screen h2{font-size:23px;margin-bottom:8px}.game-shell.short-landscape .feedback-screen p:not(.eyebrow){font-size:13px;line-height:1.3}.game-shell.short-landscape .feedback-screen{padding:8px 18px}.game-shell.short-landscape .feedback-actions{padding-top:6px}

/* The brief and construction share one screen; only filing opens the result. */
.game-shell .bar-key{display:block}
.game-shell .play-screen{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.3fr);grid-template-rows:minmax(0,1fr) auto;gap:16px 28px;padding:18px 24px}
.client-card{display:grid;grid-template-rows:minmax(0,1fr) auto;grid-column:1;grid-row:1/3;gap:18px;min-width:0;min-height:0}
.portrait-frame{position:relative;overflow:hidden;min-width:0;min-height:0;border-radius:5px;background:#243c4b}
.game-shell .portrait{position:absolute;inset:0;width:100%;height:115%;min-height:0;object-fit:cover;object-position:center top;border-radius:0}
.game-shell .email-scene .portrait{height:100%}
.client-copy{min-width:0;min-height:0;overflow:auto;align-self:center}
.game-shell .speech{font-size:clamp(15px,1.6vw,22px);line-height:1.45;margin:0;white-space:pre-line}
.game-shell .diagram-area{display:grid;grid-template-rows:minmax(0,1fr) auto;grid-column:2;grid-row:1;min-height:0;min-width:0;gap:5px}
.plot-key{display:flex;flex-wrap:wrap;justify-content:center;gap:5px 14px;color:#b9cad8;font-size:11px;line-height:1.35;padding:0 0 3px}
.plot-key span{white-space:nowrap}.plot-key b{color:#e6c88e;margin-right:4px}.plot-key small{width:100%;text-align:center;font-size:10px;color:#93aabd}
.game-shell .construction-panel{grid-column:2;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,190px);gap:16px;align-items:center;border-left:0;border-top:1px solid #304253;padding:12px 0 0}
.game-shell .scope-controls{min-width:0}.game-shell .scope-controls label{font-size:13px}
.game-shell .range-line{margin-top:2px;gap:6px}.game-shell .range-labels{margin-top:0}
.game-shell .live-state{font-size:11px;line-height:1.3;min-height:29px;margin:5px 0 0}
.game-shell .filing-actions .primary{min-height:52px;padding:10px 12px;font-size:14px}
@media(orientation:portrait) and (max-width:900px){
 .game-shell .play-screen{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:8px;padding:10px 12px 12px}
 .client-card{grid-column:1;grid-row:1;grid-template-columns:minmax(0,.37fr) minmax(0,.63fr);grid-template-rows:minmax(0,1fr);gap:12px;min-height:clamp(175px,27svh,240px)}
 .portrait-frame{grid-column:1;grid-row:1;min-height:175px}
 .game-shell .portrait{height:128%}
 .client-copy{grid-column:2;grid-row:1;padding:3px 0;max-height:34svh}
 .game-shell .speech{font-size:clamp(13px,3.55vw,17px);line-height:1.35}
 .game-shell .diagram-area{grid-column:1;grid-row:2;gap:0}
 .plot-key{font-size:10px;gap:3px 10px}.plot-key small{font-size:9px}
 .game-shell .construction-panel{grid-column:1;grid-row:3;grid-template-columns:minmax(0,1fr) minmax(120px,.68fr);gap:10px;padding-top:8px}
 .game-shell .scope-controls label{font-size:12px;gap:6px}.scope-controls output{font-size:10px;white-space:nowrap}
 .game-shell .range-line{grid-template-columns:36px minmax(0,1fr) 36px;gap:5px}
 .game-shell .range-labels{margin-left:41px;margin-right:41px;font-size:9px}
 .game-shell .live-state{font-size:10px;min-height:26px;margin-top:4px}
 .game-shell .filing-actions .primary{font-size:13px;min-height:58px;padding:10px}
}
/* Short portrait: the full-width instruction frees space for a larger plot. */
.game-shell.short-portrait .play-screen{grid-template-columns:minmax(0,.34fr) minmax(0,.66fr);grid-template-rows:auto minmax(0,1fr) auto;gap:8px 9px;padding:8px 10px}
.game-shell.short-portrait .client-card{display:contents}
.game-shell.short-portrait .client-copy{grid-column:1/3;grid-row:1;max-height:33svh;padding:0}
.game-shell.short-portrait .speech{font-size:13px;line-height:1.3}
.game-shell.short-portrait .portrait-frame{grid-column:1;grid-row:2;min-height:0}
.game-shell.short-portrait .portrait{height:130%}
.game-shell.short-portrait .email-scene .portrait{height:100%}
.game-shell.short-portrait .diagram-area{grid-column:2;grid-row:2}
.game-shell.short-portrait .construction-panel{grid-column:1/3;grid-row:3;padding-top:6px}
.game-shell.short-portrait .plot-key{justify-content:flex-start;gap:2px 7px;font-size:9px;line-height:1.25}
.game-shell.short-portrait .plot-key small{text-align:left;font-size:9px}
@media(orientation:landscape) and (max-height:600px){
 .game-shell .play-screen{grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr);grid-template-rows:minmax(0,1fr) auto;gap:6px 15px;padding:6px 14px 8px}
 .client-card{grid-template-rows:minmax(0,1fr) auto;gap:8px}
 .client-copy{max-height:none;align-self:end}
 .game-shell .speech{font-size:clamp(12px,1.7vw,14px);line-height:1.3}
 .game-shell .portrait{height:125%}
 .game-shell .diagram-area{grid-row:1;grid-column:2;gap:0}
 .plot-key{font-size:9px;gap:2px 9px;padding:0}.plot-key small{font-size:9px}
 .game-shell .construction-panel{grid-row:2;grid-column:2;padding:5px 0 0;gap:10px;grid-template-columns:minmax(0,1fr) minmax(125px,.7fr)}
 .game-shell .scope-controls label{font-size:11px}
 .game-shell .range-line{grid-template-columns:36px minmax(0,1fr) 36px;gap:5px;margin-top:0}
 .game-shell .range-labels{margin-left:41px;margin-right:41px;font-size:9px}
 .game-shell .live-state{font-size:10px;margin-top:2px;min-height:13px}
 .game-shell .filing-actions .primary{font-size:12px;min-height:48px;padding:8px}
}
/* Browser controls can leave little landscape height; use three columns. */
.game-shell.short-landscape .play-screen{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(165px,.8fr);grid-template-rows:minmax(0,1fr);gap:10px;padding:5px 10px 7px}
.game-shell.short-landscape .client-card{grid-column:1;grid-row:1;grid-template-columns:minmax(0,.36fr) minmax(0,.64fr);grid-template-rows:minmax(0,1fr);gap:8px}
.game-shell.short-landscape .portrait-frame{grid-column:1;grid-row:1}
.game-shell.short-landscape .client-copy{grid-column:2;grid-row:1;align-self:center;max-height:100%}
.game-shell.short-landscape .speech{font-size:11px;line-height:1.25}
.game-shell.short-landscape .diagram-area{grid-column:2;grid-row:1}
.game-shell.short-landscape .plot-key{display:none}
.game-shell.short-landscape .construction-panel{grid-column:3;grid-row:1;display:flex;flex-direction:column;justify-content:center;gap:8px;border-top:0;border-left:1px solid #304253;padding:0 0 0 9px}
.game-shell.short-landscape .scope-controls,.game-shell.short-landscape .filing-actions{width:100%}
.game-shell.short-landscape .scope-controls label{font-size:11px}
.game-shell.short-landscape .live-state{min-height:26px}

/* Keep the share action accessible even on short landscape screens. */
.end-screen{overflow-y:auto;grid-template-rows:auto minmax(120px,1fr) auto}
.end-actions{display:flex;flex-direction:column;align-items:center;gap:16px;grid-column:1/-1;padding:4px 0 8px}
.linkedin-share{display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;width:100%;max-width:440px;background:#0a66c2;color:white;box-shadow:0 3px 0 #074b90}
.linkedin-share:hover{background:#0759ab}.linkedin-share span{font:bold 20px Arial;border:1px solid currentColor;padding:0 3px;border-radius:2px}
.end-actions .text-button{min-height:44px;color:#d8b97c}
@media(orientation:landscape) and (max-height:600px){.end-screen{grid-template-rows:minmax(150px,1fr) auto}.end-actions{grid-row:2;flex-direction:row;justify-content:center}.end-actions .text-button{white-space:nowrap}}

/* Preserve the complete client scene, including the desk and body language. */
.game-shell .portrait,.game-shell .email-scene .portrait,.game-shell.short-portrait .portrait{height:100%;object-fit:contain;object-position:center!important}
.portrait-frame{background:#102334}
@media(orientation:portrait) and (max-width:900px){
 .client-card{grid-template-columns:minmax(0,.44fr) minmax(0,.56fr);min-height:0;gap:10px}
 .portrait-frame{min-height:0;align-self:center;aspect-ratio:4/3;width:100%}
 .game-shell.short-portrait .portrait-frame{align-self:center;aspect-ratio:4/3}
}

.end-actions{gap:8px}.end-actions .text-button{display:inline-flex;align-items:center;justify-content:center;text-align:center}#company-link{font-size:13px} @media(orientation:landscape) and (max-height:600px){.end-actions{flex-wrap:wrap;gap:8px 20px}}
.client-title{font:600 12px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:1px;text-transform:uppercase;color:#e6c88e;margin:0 0 10px}
.compact-graph .plot-key{display:none}
/* The recap and optional final challenge form one scrollable results page. */
.game-shell .end-screen{display:flex;flex-direction:column;gap:24px;max-width:820px;padding:28px 24px 40px;overflow-y:auto;scroll-padding:20px}
.end-screen>.end-heading,.end-screen>.results,.end-screen>.end-actions,.final-challenge{flex:none}
.end-screen>.results{max-height:none;overflow:visible;width:100%}
.final-challenge{border-top:1px solid #30465a;padding-top:28px;text-align:left}
.final-challenge h2{font:normal clamp(26px,4vw,34px)/1.15 Georgia,serif;color:#e9cc96;margin:0 0 12px}
.final-challenge .eyebrow{color:#d8b97c}
.challenge-intro,.company-feedback{font-size:15px;line-height:1.5;color:#c6d5e0}
.company-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}
.company-fields label{font:normal 24px/1.2 Georgia,serif;color:#e9cc96;min-width:0}
.company-fields input{display:block;width:100%;box-sizing:border-box;min-height:48px;border:1px solid #5a7186;border-radius:4px;background:#12283c;color:#f5f1e9;padding:12px 10px;margin-top:8px;font:16px/1.3 Arial,sans-serif}
.company-fields input::placeholder{color:#a9bdcb}
.company-feedback{min-height:24px;margin:18px 0}
.company-feedback[data-result="correct"]{color:#a9dfc0}
#challenge-restart-button{display:block;min-height:44px;margin:0 auto;color:#d8b97c}
@media(max-width:600px){.game-shell .end-screen{padding:20px 16px 32px;gap:20px}.company-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}.client-title{font-size:10px;letter-spacing:.6px;margin-bottom:6px}}
/* A short phone needs a full-width diagram for the direct disclosure labels. */
.game-shell.short-portrait .play-screen{grid-template-columns:minmax(0,1fr)}
.game-shell.short-portrait .client-card{display:grid;grid-column:1;grid-row:1;grid-template-columns:minmax(0,.34fr) minmax(0,.66fr);grid-template-rows:auto;gap:9px}
.game-shell.short-portrait .portrait-frame{grid-column:1;grid-row:1}
.game-shell.short-portrait .diagram-area{grid-column:1}
.game-shell.short-portrait .client-copy{grid-column:2;grid-row:1}
.game-shell.short-portrait .construction-panel{grid-column:1}
/* Keep the complete recap visible on short portrait screens. */
@media(orientation:portrait) and (max-height:680px){
 .results{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .results li{padding:7px;gap:6px}
 .results strong{font-size:12px}
 .results span{font-size:10px}
 .results .result-icon{display:none}
}
