:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#00536c;background:#eef7f8;font-size:16px}*{box-sizing:border-box}body{margin:0}header{background:#006785;color:white;padding:22px max(5vw,24px);display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:14px;font-size:.75rem;letter-spacing:.12em}.brand strong{display:block;font-size:1.2rem;letter-spacing:0;margin-top:3px}.mark{background:#38debc;color:#006785;font-weight:900;padding:9px 14px;border-radius:12px;font-size:1.4rem}.header-note{color:#b8c9db;font-size:.875rem}main{max-width:1260px;margin:auto;padding:36px 28px}.top{display:flex;justify-content:flex-end;align-items:center;gap:20px;margin-bottom:24px}h1{font-size:2.2rem;margin:5px 0;letter-spacing:-.04em}h2{font-size:1.25rem;margin:6px 0 18px;letter-spacing:-.02em}.eyebrow{font-size:.75rem;font-weight:750;letter-spacing:.12em;color:#50677c;margin:0 0 8px}.controls label{display:block;font-size:.875rem;margin-bottom:6px}select{font:inherit;border:1px solid #b3c3d2;border-radius:8px;padding:11px 35px 11px 12px;background:white;color:#00536c}.notice{padding:16px 20px;background:#fff5de;border:1px solid #ebd49a;border-left:4px solid #b7831d;border-radius:8px;font-size:.875rem;line-height:1.6;margin-bottom:24px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.metric{padding:22px;background:white;border:1px solid #e0e6ee;border-radius:12px}.metric:first-child{background:#006785;color:white;border:0}.metric .name{font-size:.875rem;margin-bottom:10px}.value{font-size:2.3rem;font-weight:750;letter-spacing:-.05em}.unit{font-size:1rem;font-weight:400;letter-spacing:0;color:#697d90}.metric:first-child .unit{color:#bbcedf}.metric p{font-size:.875rem;margin:9px 0 0;line-height:1.5}.grid{display:grid;grid-template-columns:1.7fr 1fr;gap:24px}.panel{background:white;border:1px solid #e0e6ee;border-radius:12px;padding:24px;margin-bottom:24px}.section-head{display:flex;justify-content:space-between;align-items:start;gap:16px}.muted,.footnote{color:#536a7e;font-size:.875rem;line-height:1.6}.footnote{margin-bottom:0}.legend{display:flex;gap:24px;font-size:.875rem;margin-bottom:12px}.legend span:before{content:'';display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px}.legend-a:before{background:#006785}.legend-b:before{background:#189fb1}svg{width:100%;height:auto;display:block}.change{border-top:1px solid #e9edf2;padding:14px 0;display:flex;justify-content:space-between;gap:12px;font-size:.875rem}.change b{display:block;margin-bottom:4px}.up{color:#08796a}.down{color:#b34343}.flat{color:#5b6d80}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:.875rem;color:#576c80;font-weight:600;padding:12px 10px;border-bottom:1px solid #cbd6e2}td{padding:14px 10px;border-bottom:1px solid #e7ecf2;font-size:.95rem}th:not(:first-child),td:not(:first-child){text-align:center}small{font-size:.75rem;font-weight:400}td button{border:0;background:none;font:inherit;color:#173e68;cursor:pointer;text-align:left;padding:0;text-decoration:underline;text-decoration-color:#b6c8da;text-underline-offset:4px}button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #286cc1;outline-offset:5px}.score{border-radius:6px;padding:6px 10px;background:#edf6f5;font-variant-numeric:tabular-nums}.low{background:#fff0e5;color:#9a461e}.selected-col{background:#f1f5fa}.group td{background:#f6f8fb;color:#52697c;font-size:.75rem;font-weight:750;letter-spacing:.09em;text-align:left!important;padding:10px}.detail{background:#f5f8fb;padding:20px;border-radius:8px;margin-top:20px}.detail h3{font-size:1rem;margin:0 0 16px}.distribution{display:flex;height:28px;border-radius:5px;overflow:hidden}.distribution span{display:flex;align-items:center;justify-content:center;font-size:.875rem;color:white}.dist-labels{display:flex;gap:20px;flex-wrap:wrap;font-size:.875rem;margin-top:12px}.themes{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.themes h3{font-size:1rem;margin:0 0 12px}.themes ul{padding-left:18px;margin:0;line-height:1.7;font-size:.95rem}.themes li{margin-bottom:8px}.tone{font-size:1.3rem;font-weight:700;margin:0 0 12px}.themes p{font-size:.95rem;line-height:1.7;margin-top:0}.pill{font-size:.875rem;background:#eaf1f9;border-radius:20px;padding:6px 12px;white-space:nowrap}summary{cursor:pointer;font-weight:650;font-size:.95rem}.methodology p{font-size:.875rem;line-height:1.7;color:#536a7e}.methodology{padding:20px 24px}footer{display:flex;justify-content:space-between;color:#62788b;font-size:.875rem;padding:5px 0 15px}@media(max-width:850px){.metrics{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}.themes{grid-template-columns:1fr}.top{align-items:start}.header-note{display:none}}@media(max-width:540px){main{padding:24px 16px}.top{display:block}h1{font-size:1.85rem}.controls{margin-top:0}select{width:100%}.panel{padding:18px}.metrics{gap:10px}.metric{padding:16px}.value{font-size:1.9rem}.section-head{display:block}.section-head .muted{display:block;margin-bottom:14px}.legend{gap:15px;font-size:.8rem}footer{display:block}footer span{display:block;margin-top:8px}th,td{padding:12px 6px}table{min-width:640px}.themes{gap:12px}}

/* Focus dashboard brand */
header{background:white;color:#00536c;border-bottom:4px solid #189fb1;padding:22px max(5vw,24px);gap:24px}
.brand{max-width:610px;flex:1;letter-spacing:0}.brand img{width:100%;height:auto;display:block}
.header-title{text-align:right;flex-shrink:0}.header-title strong{display:block;font-size:1.1rem}.header-title span{display:block;font-size:.875rem;color:#527487;margin-top:7px}
h1,h2{color:#006785}.eyebrow{color:#006785}.panel,.metric{border-color:#c8e5e9;box-shadow:0 3px 12px #00536c06}.metric:first-child{border-bottom:4px solid #189fb1}.pill{background:#d9f0f3;color:#00536c}.detail,.selected-col{background:#edf8f9}.legend-a:before{background:#006785}.legend-b:before{background:#189fb1}select{border-color:#9cdae1;color:#00536c}td button{color:#006785}.group td{background:#e7f4f6}.score{background:#e0f2f4;color:#00536c}.score.low{background:#fff0e5;color:#9a461e}
@media(max-width:850px){header{align-items:start;flex-direction:column}.brand{width:100%;max-width:520px}.header-title{text-align:left}}

/* Arcade edition: CRT console, neon scoreboards, hard-edged panels. */
:root{color:#ececff;background:#0d1020;font-family:ui-sans-serif,system-ui,-apple-system,sans-serif}
body{background:linear-gradient(180deg,#16142d 0,#0d1020 430px);min-height:100vh}
body:before{content:'';position:fixed;inset:0;pointer-events:none;z-index:0;background:repeating-linear-gradient(0deg,transparent 0px,transparent 3px,#8583ce06 3px,#8583ce06 4px)}
header,main{position:relative;z-index:1}header{background:#111426;border-bottom:3px solid #ff89dc;padding-top:20px;padding-bottom:20px;box-shadow:0 4px 0 #242442;color:#ececff}
.brand{background:white;padding:10px 14px;border:2px solid #67f5e2;max-width:465px;flex:1;border-radius:2px}.header-title strong{color:#67f5e2;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1rem;text-transform:uppercase;letter-spacing:.06em}.header-title span{color:#c0c2db}
main{padding-top:36px}.eyebrow{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.1em;color:#67f5e2;font-size:.8rem}
h1{color:#fff;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:2.6rem;letter-spacing:-.05em;text-shadow:3px 3px 0 #64396e;margin-top:10px}h2{color:#fff;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1.2rem;letter-spacing:-.04em}.edition{display:block;font-size:.8rem;letter-spacing:.15em;color:#ff89dc;margin-top:10px;text-shadow:none}
.controls label{color:#c8c9e2;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}select{background:#171a31;color:#67f5e2;border:2px solid #676c9e;border-radius:2px;box-shadow:3px 3px 0 #303452}
.notice{background:#27213b;border:1px solid #746043;border-left:4px solid #f8cc70;border-radius:2px;color:#f4dfb2}.notice strong{color:#ffe39c}
.panel,.metric{background:#171a2f;border:1px solid #4a4c70;border-radius:3px;box-shadow:5px 5px 0 #080b16}.panel{border-top:3px solid #676b9e}.metric{border-top:3px solid #858cba}.metric:first-child{background:#1b2038;border:1px solid #67f5e2;border-top:3px solid #67f5e2;border-bottom:1px solid #67f5e2}.metric:nth-child(2){border-top-color:#67f5e2}.metric:nth-child(3){border-top-color:#ff89dc}.metric:nth-child(4){border-top-color:#f8cc70}
.metric .name{color:#cacce3;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.value{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:2.3rem;color:#fff;font-weight:800}.unit,.metric:first-child .unit{color:#aeb5d4}.metric p{color:#c0c6e0}
.muted,.footnote{color:#b3b8d2}.legend{color:#d9dbee}.legend-a:before{background:#67f5e2;border-radius:0}.legend-b:before{background:#ff89dc;border-radius:0}.change{border-color:#383d5a}.change b{color:#e9eaff}.up{color:#67f5c0}.down{color:#ff9aab}.flat{color:#c2c6de}
th{color:#b8bfd8;border-color:#5a6080}td{border-color:#353c59;color:#edf0ff}td button{color:#8cf3ed;text-decoration-color:#5a838e}.selected-col{background:#242a42}.group td{background:#262b43;color:#c8cce3}.score{background:#193a43;color:#8bf1e5;border:1px solid #34616b;border-radius:2px}.score.low{background:#492d35;color:#ffbfbb;border-color:#76505d}.detail{background:#101529;border:1px solid #454d72;border-radius:2px}.detail h3{color:#eceeff}.distribution{border-radius:1px}.pill{color:#ffb2e8;background:#352642;border:1px solid #705073;border-radius:2px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.themes h3{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.themes p,.themes ul{color:#cdd0e4}.themes .tone{color:#f6f6ff;font-size:1.25rem}.methodology p{color:#b9bfd8}summary{color:#cfd4ed}footer{color:#b7bad1;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.8rem}
button:focus-visible,select:focus-visible,summary:focus-visible{outline-color:#ff89dc}
@media(max-width:540px){h1{font-size:2rem}.brand{padding:8px 10px}.header-title strong{font-size:.875rem}.value{font-size:1.8rem}.panel{box-shadow:3px 3px 0 #080b16}.edition{font-size:.75rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

.brand.game-title{background:transparent;border:0;padding:0;color:#67f5e2;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1.75rem;font-weight:900;letter-spacing:.08em;text-shadow:3px 3px 0 #424567}

.office-game{border-top-color:#ff89dc}.game-stats{font-family:ui-monospace,monospace;color:#f8cc70;font-size:.95rem}.office-game canvas{display:block;width:100%;max-width:720px;height:auto;margin:20px auto;background:#101529;border:2px solid #676b9e;border-radius:3px;touch-action:none}.game-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.game-actions button{font:700 .95rem ui-monospace,monospace;color:#101529;background:#67f5e2;border:2px solid #b6fff6;border-radius:2px;padding:12px 18px;cursor:pointer;min-width:48px;min-height:46px;box-shadow:3px 3px 0 #060b17}.game-actions button:disabled{opacity:.45;cursor:default}.dpad{text-align:center}.dpad button{padding:8px 14px;margin:3px;background:#252c49;color:#f3f3ff;border-color:#636c9d}.game-message{text-align:center;color:#f8cc70;font-family:ui-monospace,monospace;font-size:.95rem;line-height:1.6}.office-game canvas:focus-visible{outline:3px solid #ff89dc;outline-offset:4px}

.brand.game-title{display:flex;align-items:center;gap:15px}.brand.game-title .brandon-avatar{width:68px;height:80px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}.leaderboard-wrap{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:28px;padding-top:24px;border-top:1px solid #424a6a}.leaderboard-wrap h3{font:700 1.2rem ui-monospace,monospace;color:#f8cc70;margin-top:0}.leaderboard{list-style:none;padding:0;counter-reset:rank}.leaderboard li{counter-increment:rank;display:flex;gap:16px;padding:10px 12px;border-bottom:1px solid #343b5a;font-family:ui-monospace,monospace}.leaderboard li:before{content:counter(rank,decimal-leading-zero);color:#ff89dc}.leaderboard b{color:#67f5e2}.leaderboard strong{margin-left:auto;color:#f8cc70}#score-form{border:1px solid #6a5577;padding:20px;align-self:start}#score-form[hidden]{display:none}#score-form label{display:block;font:700 1rem ui-monospace,monospace;margin-bottom:12px}#score-form input{font:700 1.3rem ui-monospace,monospace;text-transform:uppercase;letter-spacing:.2em;width:110px;background:#101529;color:#67f5e2;border:2px solid #676b9e;padding:10px;display:block;margin-bottom:16px}#score-form button{font:700 .95rem ui-monospace,monospace;padding:12px;color:#101529;background:#f8cc70;border:0;cursor:pointer}#score-status{color:#cdd0e4;line-height:1.6}#score-form button:disabled{opacity:.5}@media(max-width:650px){.leaderboard-wrap{grid-template-columns:1fr}.brand.game-title{font-size:1.4rem}.brand.game-title .brandon-avatar{width:55px;height:65px}}

/* One quiet, in-flow doorway to the arcade. Slots reserve space before JS runs. */
.top{justify-content:space-between}
.game-egg-slot{display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;flex:0 0 44px}
.egg-heading,.egg-footnote{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.egg-heading>div,.egg-footnote>p{min-width:0;flex:1}
.egg-footnote{align-items:flex-end}
footer{display:flex;align-items:center;gap:16px}
.footer-copy{display:flex;justify-content:space-between;align-items:center;gap:16px;flex:1;min-width:0}
#game-launcher{position:relative;display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;background:transparent;color:#9199bc;border:1px solid transparent;border-radius:4px;box-shadow:none;cursor:pointer;touch-action:manipulation}
#game-launcher svg{width:22px;height:22px}
#game-launcher:hover,#game-launcher:focus-visible{color:#67f5e2;background:#242a42;border-color:#454d72}
#game-launcher:focus-visible{outline:2px solid #ff89dc;outline-offset:3px}
#game-launcher .game-egg-hint{position:absolute;bottom:calc(100% + 6px);right:0;z-index:3;white-space:nowrap;pointer-events:none;padding:8px 10px;background:#242a42;color:#ececff;border:1px solid #676b9e;border-radius:3px;font:500 .8rem ui-monospace,monospace;opacity:0;visibility:hidden}
#game-launcher:focus-visible .game-egg-hint{opacity:1;visibility:visible}
[data-game-spot="quarter"] .game-egg-hint{left:0;right:auto;bottom:auto;top:calc(100% + 6px)}
@media(hover:hover){#game-launcher:hover .game-egg-hint{opacity:1;visibility:visible}}
@media(max-width:540px){.top{display:flex;align-items:flex-end;gap:14px}.top .controls{flex:1;min-width:0}.top select{min-width:0}.footer-copy{display:block}.footer-copy>span{display:block;margin-top:8px}footer>.game-egg-slot{display:flex;margin:0}}
.game-open{overflow:hidden}#game-dialog{width:min(960px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 32px);padding:0;background:#12162b;color:#ececff;border:2px solid #ff89dc;border-radius:4px;box-shadow:0 0 65px #0009;overscroll-behavior:contain}#game-dialog::backdrop{background:#080b19dc;backdrop-filter:blur(4px)}.game-modal-bar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;background:#242039;border-bottom:1px solid #705073;font:700 .8rem ui-monospace,monospace;color:#ffb2e8}.game-modal-bar button{border:1px solid #8a719a;background:#17182d;color:#fff;padding:10px 14px;font:700 .875rem ui-monospace,monospace;cursor:pointer;min-height:42px}#game-dialog .office-game{margin:0;border:0;box-shadow:none;border-radius:0}#game-dialog .office-game canvas{margin:14px auto}#game-dialog .office-game .section-head{align-items:start}#game-dialog .game-stats{line-height:1.7;font-size:.875rem;max-width:390px;text-align:right}#game-dialog .office-game> .muted{margin:0;font-size:.875rem}.dpad button{touch-action:none;user-select:none}@media(max-width:540px){#game-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}#game-dialog .game-stats{text-align:left;max-width:none}.game-modal-bar span{font-size:.7rem}#game-dialog .office-game{padding:14px}#game-dialog h2{margin-bottom:10px}.game-modal-bar{padding:8px 12px}}

.game-stage{position:relative;max-width:720px;margin:14px auto}.game-stage canvas{margin:0!important}.game-over{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:22px;background:radial-gradient(ellipse at 50% 20%,#4f163bcc,#140e24f7 65%);border:3px solid #ff6288;box-shadow:inset 0 0 60px #ff3f771a;color:#fef1f7;overflow:auto;animation:gameover-reveal .65s cubic-bezier(.16,1,.3,1)}.game-over[hidden]{display:none}.game-over h3{font:900 clamp(2.6rem,7vw,4.8rem)/.95 ui-monospace,monospace;letter-spacing:-.07em;margin:0;color:#ff91ad;text-shadow:4px 4px 0 #82163f,0 0 32px #ff4e8844;animation:gameover-title .8s ease-out}.game-over-kicker{font:700 .8rem ui-monospace,monospace;letter-spacing:.2em;color:#ffb2ce;margin:0}.game-over p{font-size:.875rem;margin:0;line-height:1.5}.final-stats{display:flex;justify-content:center;gap:36px;padding:8px 0}.final-stats span{display:block;font:700 .7rem ui-monospace,monospace;letter-spacing:.1em;color:#b7b3d0}.final-stats strong{display:block;color:#f8cc70;font:700 1.8rem ui-monospace,monospace;padding-top:3px}.game-over #score-form{padding:10px 12px;background:#0c0c20aa;border:1px solid #774362;max-width:430px;width:100%}.game-over #score-form label{font-size:.8rem;margin-bottom:6px}.game-over #score-form input{display:inline-block;width:85px;vertical-align:middle;font-size:1rem;padding:7px;margin:0 5px 0 0}.game-over #score-form button{padding:10px;font-size:.8rem;vertical-align:middle}.game-over #score-status{font-size:.8rem;margin:5px 0 0}.game-over #game-retry{padding:11px 18px;border:1px solid #ffb3d0;background:#ff89bc;color:#190b22;font:700 .9rem ui-monospace,monospace;cursor:pointer}.game-over.victory{border-color:#f8cc70;background:radial-gradient(ellipse at 50% 20%,#535017dd,#0d202af7 65%)}.game-over.victory h3{color:#f8cc70;text-shadow:4px 4px 0 #6e5524}.run-ended .game-actions{display:none}.game-stage.finished{min-height:460px;animation:gameover-shake .4s ease-out}.game-stage.finished canvas{filter:grayscale(.8)}@keyframes gameover-reveal{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}@keyframes gameover-title{from{transform:translateY(-18px);letter-spacing:.02em}to{transform:translateY(0);letter-spacing:-.07em}}@keyframes gameover-shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}}@media(max-width:540px){.game-stage.finished{min-height:460px}.game-over{padding:18px 10px;gap:12px}.final-stats{gap:20px}.final-stats strong{font-size:1.5rem}.game-over h3{font-size:2.7rem}}@media(prefers-reduced-motion:reduce){.game-over,.game-over h3,.game-stage.finished{animation:none}}

/* Opening title entrance: reserve the final layout while the pair walks in. */
header{overflow:hidden}
.brand.game-title{flex:none;max-width:100%;min-width:0;gap:10px;white-space:normal;animation:pulse-drag-in 2.8s cubic-bezier(.15,.5,.4,1) both}
.brand.game-title .brandon-avatar{display:block;width:68px;height:80px;transform-origin:50% 95%;animation:none}
.brand.game-title h1{margin:0;min-width:0;color:inherit;font:inherit;letter-spacing:.03em;text-shadow:inherit;line-height:1.2}
@keyframes pulse-drag-in{from{transform:translateX(100vw)}to{transform:translateX(0)}}
@keyframes pulse-lean{0%,83%{transform:rotate(0)}92%,100%{transform:none}}
@media(max-width:650px){.brand.game-title .brandon-avatar{width:55px;height:65px}}
@media(prefers-reduced-motion:reduce){.brand.game-title{animation:none}.brand.game-title .brandon-avatar{animation:none;transform:none}}

.level-clear{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;padding:24px;background:radial-gradient(ellipse at center,#26395ef5,#080b19f5);border:4px solid #67f5e2;animation:level-celebrate .45s ease-out}
.level-clear[hidden]{display:none}.level-clear h3{font:900 clamp(1.6rem,5vw,2.7rem) ui-monospace,monospace;color:#67f5e2;text-shadow:3px 3px #615094;margin:0}.level-clear p{margin:0;color:#eeeaff}.level-clear strong{color:#f8cc70;font:700 1.15rem ui-monospace,monospace}.level-clear button{margin-top:12px;background:#67f5e2;color:#101529;border:0;padding:14px 24px;font:700 1rem ui-monospace,monospace;cursor:pointer;box-shadow:5px 5px #46456b}@keyframes level-celebrate{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.level-clear{animation:none}}

.level-clear{gap:10px}.celebration-team{width:min(100%,620px);height:auto;max-height:190px;object-fit:contain;image-rendering:pixelated;animation:team-cheer .8s ease-in-out infinite alternate}.level-clear button{margin-top:4px}@keyframes team-cheer{from{transform:translateY(2px)}to{transform:translateY(-5px)}}@media(prefers-reduced-motion:reduce){.celebration-team{animation:none}}

.game-over-team{width:min(100%,600px);height:auto;max-height:145px;object-fit:contain;image-rendering:pixelated;flex-shrink:0;animation:team-impatient 2.2s ease-in-out infinite}.game-stage.finished{min-height:600px}.game-over{justify-content:flex-start}.game-over.victory .game-over-team{animation:team-cheer .8s ease-in-out infinite alternate}@keyframes team-impatient{0%,75%,100%{transform:translateX(0)}80%{transform:translateX(-3px)}85%{transform:translateX(3px)}90%{transform:translateX(-2px)}95%{transform:translateX(2px)}}@media(max-width:540px){.game-stage.finished{min-height:560px}}@media(prefers-reduced-motion:reduce){.game-over-team,.game-over.victory .game-over-team{animation:none}}

/* Focused game layout. The board and controls stay together on small screens. */
.game-instructions{margin:4px 0 12px;font-size:.875rem;color:#cbd0e8}.game-instructions summary{font-size:.875rem}.game-instructions p{margin:8px 0;line-height:1.5}
#game-dialog{width:min(920px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}
#game-dialog .office-game{padding:16px 20px}.office-game .section-head{margin-bottom:8px}.office-game h2{margin:0 0 4px}
.game-stage{width:min(100%,720px,calc((100dvh - 270px)*1.5));margin:8px auto;min-height:0;aspect-ratio:3/2}.office-game canvas{height:100%;width:100%}
.game-ready{position:absolute;inset:0;display:flex;flex-direction:column;gap:14px;justify-content:center;align-items:center;background:#080b19d9;text-align:center;padding:16px}.game-ready[hidden]{display:none}.game-ready button{font:900 clamp(1rem,3.6vw,1.8rem) ui-monospace,monospace;color:#67f5e2;background:#192b43;border:2px solid #67f5e2;padding:18px 22px;cursor:pointer;box-shadow:4px 4px #050817}.game-ready span{font-size:.875rem;color:#c8cde4}
.game-actions{gap:10px;margin-top:12px}.game-actions>button{padding:10px 14px}.dpad{display:flex;gap:3px;align-items:center}.dpad>div{display:flex}.dpad button{margin:0;min-width:44px;min-height:44px;padding:8px 12px}.game-message{font-size:.875rem;margin:10px 0;min-height:1.5em}
.leaderboard-details{margin-top:18px;border-top:1px solid #424a6a;padding-top:14px}.leaderboard-wrap{display:block;margin-top:10px;padding-top:0;border:0}.leaderboard-wrap .eyebrow,.leaderboard-wrap h3{display:none}
.office-game.has-result .game-actions{display:none}.game-stage:has(.level-clear:not([hidden])),.game-stage.finished{aspect-ratio:auto;min-height:410px;width:min(100%,720px)}
.level-clear,.game-over{justify-content:flex-start;padding:18px;gap:10px;overflow:auto}.level-clear h3{font-size:clamp(1.4rem,4vw,2.3rem)}.game-over h3{font-size:clamp(2rem,5vw,3rem)}.celebration-team{max-height:145px;flex-shrink:0}.game-over-team{max-height:115px}.game-stage.finished{min-height:540px}.level-clear button,#game-retry{min-height:44px}.level-clear strong{font-size:1rem}
.game-stage.impact{animation:caught-impact .45s ease-out}.game-stage.impact canvas{box-shadow:inset 0 0 0 5px #ff6b99;filter:sepia(.3) saturate(1.4)}@keyframes caught-impact{0%,100%{transform:translateX(0)}20%{transform:translateX(-5px)}40%{transform:translateX(5px)}70%{transform:translateX(-2px)}}
.action-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.action-card{padding:18px;background:#101529;border:1px solid #454d72}.action-card h3{font:700 1rem ui-monospace,monospace;line-height:1.45;margin:14px 0 10px}.action-card p{font-size:1rem;line-height:1.5;color:#cdd0e4}.action-status{font:700 .875rem ui-monospace,monospace;color:#f8cc70}.action-card small{font-size:.875rem;color:#b3b8d2}
@media(max-width:650px){.action-cards{grid-template-columns:1fr}#game-dialog{width:100vw;max-height:100dvh;margin:auto;border-width:1px;border-radius:0}#game-dialog .office-game{padding:10px}.game-modal-bar{padding:6px 10px}.game-modal-bar button{min-height:44px}.office-game .section-head{display:flex;align-items:center!important;gap:8px}.office-game .section-head .eyebrow{display:none}#game-dialog h2{font-size:1.05rem}.game-stats{font-size:.8rem!important;line-height:1.5!important}.game-stage{width:min(100%,calc((100dvh - 245px)*1.5))}.game-actions{gap:6px}.game-actions>button{padding:8px;min-width:44px}.dpad button{padding:8px 10px}.game-ready button{padding:14px}.game-ready span{font-size:.8rem}.game-stage:has(.level-clear:not([hidden])){min-height:350px}.game-stage.finished{min-height:490px}.level-clear,.game-over{padding:12px}.celebration-team{max-height:110px}.game-over-team{max-height:90px}.final-stats{padding:2px 0}.game-instructions{margin:2px 0 6px}}
@media(max-height:500px) and (min-width:540px){.game-stage{width:min(100%,calc((100dvh - 200px)*1.5))}.game-actions{margin-top:4px}.game-instructions{margin:0}.game-message{margin:4px 0}.office-game .section-head .eyebrow{display:none}.game-modal-bar{padding:4px 12px}}
@media(prefers-reduced-motion:reduce){.game-stage.impact{animation:none}}

@media(max-width:650px){.brand.game-title h1{font-size:1.25rem;letter-spacing:.015em}}
