/* Designs 04–06 are additive: the original three designs retain their layouts. */
.preview-bar{gap:15px}.theme-picker{overflow-x:auto;white-space:nowrap;flex-shrink:1;scrollbar-width:thin}.preview-bar>span,.motion-toggle{flex-shrink:0}
.play-experience{display:none}
html:is([data-theme=playground],[data-theme=factory],[data-theme=garden]) .hero{display:none}
html:is([data-theme=playground],[data-theme=factory],[data-theme=garden]) .play-experience{display:block}
.play-experience{padding:52px 0 35px;position:relative}
.play-topline{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px}
.play-topline .eyebrow{margin:0}.play-edition{font:11px 'Courier New',monospace;letter-spacing:1.5px;color:var(--muted)}
.play-intro{display:grid;grid-template-columns:1.4fr 1fr;gap:50px;align-items:end;margin-bottom:32px}
.play-intro h1{font-size:clamp(45px,5.5vw,78px);line-height:1.03;letter-spacing:-4px}
.play-intro h1 .serif{display:block}.play-intro p{font-size:15px;line-height:1.85;margin-bottom:20px;max-width:400px}
.play-intro-actions{display:flex;align-items:center;gap:24px}.play-intro .button{font-size:14px;padding:13px 18px;gap:20px}.play-intro .text-link{font-size:13px}
.game-shell{border:1px solid #446161;border-radius:22px;overflow:hidden;position:relative;background:#09131b;box-shadow:0 30px 100px #0003}
.game-topbar{padding:16px 22px;display:flex;align-items:center;gap:12px;background:#15232c;color:#c1d6dd;border-bottom:1px solid #ffffff15;font:11px 'Courier New',monospace;letter-spacing:1.3px}
.game-topbar .game-state{margin-left:auto;color:#a6f0d1}.game-stage{position:relative;height:470px;overflow:hidden;isolation:isolate}
.game-stage canvas{display:block;width:100%;height:100%;outline-offset:-5px;touch-action:pan-y;cursor:crosshair}
.game-stage.is-playing canvas{touch-action:none}.game-scenery{position:absolute;left:25px;top:24px;z-index:2;pointer-events:none;max-width:190px}
.game-scenery span{font:10px 'Courier New',monospace;letter-spacing:1.8px;color:#89afa9}.game-scenery h2{font-size:25px;letter-spacing:-.8px;color:#eaf6f3;margin:10px 0}
.game-scenery p{font:12px/1.7 'Courier New',monospace;color:#98afb7;margin:0}
.game-score{position:absolute;right:24px;top:24px;z-index:2;color:#d4eee1;text-align:right;pointer-events:none}.game-score>span{display:block;font:10px 'Courier New',monospace;letter-spacing:1.6px;color:#93b7aa}.game-score strong{font-size:45px;letter-spacing:-2px;font-weight:400;line-height:1.4}.game-score small{font-size:17px;margin-left:3px;color:#91a39c}
.game-start{position:absolute;left:50%;bottom:30px;transform:translateX(-50%);display:flex;align-items:center;gap:20px;width:max-content;max-width:90%;border:1px solid #5d7e75;background:#112b29ed;padding:12px 14px 12px 20px;border-radius:12px;color:#dbf7e8;box-shadow:0 10px 40px #0005;backdrop-filter:blur(12px)}
.game-start p{color:#b7d3c8;font-size:12px;margin:0}.game-start strong{display:block;font-size:14px;font-weight:500;margin-bottom:3px}.game-start .button{font-size:12px;gap:10px;padding:12px 16px;white-space:nowrap}
.game-bottom{display:flex;align-items:center;gap:15px;padding:15px 22px;background:#132029;border-top:1px solid #ffffff15;color:#9cb6bc}.game-instructions{font:11px/1.7 'Courier New',monospace;margin-right:auto;max-width:500px}.game-controls{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.game-controls button{border:1px solid #46616a;background:#1b3039;color:#def0ec;border-radius:5px;padding:8px 12px;font-size:12px;min-height:36px}.game-controls button:hover{background:#2b4650}.game-controls button:disabled{opacity:.4}.game-controls button[aria-pressed=true]{color:#b0f7d5;border-color:#b0f7d5}
.play-legend{display:flex;gap:30px;flex-wrap:wrap;padding:20px 0;color:var(--muted);font:11px 'Courier New',monospace;letter-spacing:.8px}.play-legend span{display:flex;align-items:center;gap:8px}.legend-light{width:5px;height:5px;background:var(--accent);border-radius:50%;box-shadow:0 0 12px var(--accent)}
.play-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;border-top:1px solid var(--line);padding-top:25px;margin-top:2px}.play-progress article{display:grid;grid-template-columns:30px 1fr;gap:5px 15px}.play-progress article>span{font:12px 'Courier New',monospace;color:var(--accent);padding-top:3px}.play-progress h3{font-size:17px;letter-spacing:-.3px}.play-progress p{grid-column:2;font-size:13px;margin:0}
.game-toast{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);padding:8px 16px;border:1px solid #aaf1cf66;border-radius:20px;color:#c9f8e2;background:#13312ce6;font:12px 'Courier New',monospace;pointer-events:none;white-space:nowrap;max-width:95%;text-align:center}
.game-accessible-status{padding:0 22px 12px;background:#132029;color:#aec8c7;font-size:12px;min-height:26px}
html[data-theme=playground]{--bg:#ffffff;--panel:#101f2d;--line:#263d4b;--accent:#9ff4cb;--purple:#07121c;--muted:#91a8ba}
html[data-theme=playground] .game-shell{box-shadow:0 20px 100px #66e2c10c}
html[data-theme=playground] .solution{background:linear-gradient(145deg,#122d38,#0a1825)}
html[data-theme=playground] .ticker{background:#102532}
html[data-theme=playground] .section-heading h2{font-weight:400}
html[data-theme=playground] .final-cta{background:radial-gradient(ellipse at top right,#6be4bd25,transparent),#112c2c}
html[data-theme=factory]{--bg:#07121c;--panel:#07121c;--line:#07121c;--accent:#ffc384;--purple:#07121c;--muted:#07121c;--radius:8px}
html[data-theme=factory] .play-experience{display:grid;grid-template-columns:.85fr 1.25fr;gap:0 35px;padding-top:45px}
html[data-theme=factory] .play-topline{grid-column:1/-1}
html[data-theme=factory] .play-intro{display:flex;flex-direction:column;justify-content:center;align-items:start;gap:25px;grid-column:1;margin:0;padding:25px 0}
html[data-theme=factory] .play-intro h1{font-size:clamp(43px,5.3vw,73px);font-weight:800;letter-spacing:-3px}
html[data-theme=factory] .play-intro h1 .serif{font-family:inherit;font-style:normal;font-weight:800}
html[data-theme=factory] .play-intro-actions{flex-wrap:wrap;gap:20px}
html[data-theme=factory] .game-shell{grid-column:2;grid-row:2;border:1px solid #07121c;border-radius:10px;box-shadow:8px 8px 0 #07121c}
html[data-theme=factory] .game-stage{height:495px}
html[data-theme=factory] .game-topbar,html[data-theme=factory] .game-bottom,html[data-theme=factory] .game-accessible-status{background:#07121c}
html[data-theme=factory] .game-scenery{top:18px;left:18px;max-width:160px}
html[data-theme=factory] .game-scenery h2{font-size:21px}
html[data-theme=factory] .game-score{top:16px;right:18px}
html[data-theme=factory] .game-score strong{font-size:35px}
html[data-theme=factory] .game-bottom{flex-wrap:wrap;gap:10px;padding:13px 16px}
html[data-theme=factory] .game-instructions{font-size:10px}
html[data-theme=factory] .game-controls button{border-color:#07121c;background:#07121c;color:#ffe2bc}
html[data-theme=factory] .game-start{background:#07121ced;border-color:#07121c;padding:12px;gap:10px;bottom:25px}
html[data-theme=factory] .game-start p{color:#07121c}
html[data-theme=factory] .game-start .button{background:#ffc384}
html[data-theme=factory] .game-scenery span,html[data-theme=factory] .game-score>span{color:#e1b589}
html[data-theme=factory] .game-topbar .game-state{color:#ffc384}
html[data-theme=factory] .play-legend,html[data-theme=factory] .play-progress{grid-column:1/-1}
html[data-theme=factory] .play-legend{padding-top:30px}
html[data-theme=factory] .solution{background:linear-gradient(130deg,#07121c,#07121c)}
html[data-theme=factory] .lab-section,html[data-theme=factory] .about-section{background:#07121c}
html[data-theme=factory] .calculator{background:#07121c;border-color:#07121c}
html[data-theme=factory] .ticker{background:#07121c;color:#07121c}
html[data-theme=factory] .hardware{background:linear-gradient(100deg,#07121c,#32252d);border-color:#755969}
html[data-theme=factory] .final-cta{background:#32252c;border-color:#906b6a}
html[data-theme=factory] .cta-star{color:#ffc384}
html[data-theme=factory] .proof strong{font-family:'Courier New',monospace;color:#ffc384}
html[data-theme=garden]{--bg:#ffffff;--panel:#10202d;--line:#2c4052;--ink:#eff6fb;--accent:#07121c;--purple:#07121c;--muted:#a5b6c7;--radius:24px;color-scheme:dark}
html[data-theme=garden] header{background:var(--bg)}
html[data-theme=garden] .preview-bar{background:#10202d;color:#c4d1df}
html[data-theme=garden] .theme-picker button,html[data-theme=garden] .motion-toggle{color:#a5b6c7}
html[data-theme=garden] .theme-picker button[aria-pressed=true]{background:#263349;color:#07121c}
html[data-theme=garden] .play-intro{display:block;text-align:center;margin:5px auto 35px}
html[data-theme=garden] .play-intro h1{font-size:clamp(48px,5.3vw,75px);font-weight:400;letter-spacing:-3.5px}
html[data-theme=garden] .play-intro h1 .serif{display:inline}
html[data-theme=garden] .play-intro p{max-width:600px;margin:22px auto}
html[data-theme=garden] .play-intro-actions{justify-content:center}
html[data-theme=garden] .button{background:#07121c;color:#10202d}
html[data-theme=garden] .button.outline{background:none;color:var(--ink)}
html[data-theme=garden] .game-shell{border-radius:50px 50px 22px 22px;border-color:#3c5067;background:#ffffff;box-shadow:0 20px 70px #00000033}
html[data-theme=garden] .game-topbar{background:#10202d;color:#b1c4d4;border-color:#30475c;padding-left:30px;padding-right:30px}
html[data-theme=garden] .game-topbar .game-state{color:#07121c}
html[data-theme=garden] .game-stage{height:420px}
html[data-theme=garden] .game-scenery h2{color:#f0f5fb}
html[data-theme=garden] .game-scenery p,html[data-theme=garden] .game-scenery span{color:#afc0d2}
html[data-theme=garden] .game-score,html[data-theme=garden] .game-score>span,html[data-theme=garden] .game-score small{color:#07121c}
html[data-theme=garden] .game-start{background:#122330ed;border-color:#526580;color:#eef3fb;box-shadow:0 10px 30px #00000033}
html[data-theme=garden] .game-start p{color:#b4c5d5}
html[data-theme=garden] .game-bottom,html[data-theme=garden] .game-accessible-status{background:#10202d;color:#b5c6d5;border-color:#30475c}
html[data-theme=garden] .game-controls button{background:#1c3040;color:#07121c;border-color:#536680}
html[data-theme=garden] .game-toast{background:#182d3b;color:#07121c;border-color:#07121c}
html[data-theme=garden] .ticker,html[data-theme=garden] .about-section,html[data-theme=garden] .lab-section{background:#0e1c29;color:#bdcbd8}
html[data-theme=garden] .calculator{background:#10212f;border-color:#425b71}
html[data-theme=garden] .calculator label,html[data-theme=garden] .panel-top,html[data-theme=garden] .calc-result>div,html[data-theme=garden] .calc-result>div>span{color:#bbccdb}
html[data-theme=garden] .workflow span{background:#183041}
html[data-theme=garden] .hardware{background:#122432;border-color:#43586d}
html[data-theme=garden] .avatar:after{display:none}
html[data-theme=garden] .final-cta{background:#102b32;border-color:#486675}
html[data-theme=garden] .cta-star{color:#07121c;opacity:.45}
html[data-theme=garden] .cta-bottom,html[data-theme=garden] .global,html[data-theme=garden] .footer-label{color:#b5c7d4}
html[data-theme=garden] .widget-panel{box-shadow:0 15px 50px #00000044}
@media(max-width:1050px){.preview-caption{display:none}.preview-bar{padding:0 20px;gap:12px}.theme-picker button{padding:5px 9px}.play-intro h1{font-size:58px}.play-intro{gap:30px}.game-stage{height:440px}html[data-theme=factory] .play-experience{grid-template-columns:.8fr 1.2fr;gap:0 25px}html[data-theme=factory] .play-intro h1{font-size:53px}html[data-theme=factory] .game-start{gap:8px}html[data-theme=factory] .game-start strong{font-size:12px}html[data-theme=factory] .game-start p{font-size:10px}html[data-theme=factory] .game-start .button{font-size:11px;padding:10px}}
@media(max-width:800px){.preview-bar{height:auto;min-height:42px;padding:8px 15px;flex-wrap:wrap}.preview-bar>span{font-size:10px}.theme-picker{order:3;width:100%;justify-content:space-between}.theme-picker button{font-size:11px;padding:6px 9px}.motion-toggle{margin-left:auto}.play-intro{grid-template-columns:1fr;gap:22px}.play-intro p{max-width:550px}.play-intro h1{font-size:64px}.play-intro h1 .serif{display:inline}.game-stage{height:440px}.game-scenery{max-width:160px}.game-scenery h2{font-size:21px}.game-bottom{flex-wrap:wrap}.game-instructions{max-width:none;width:100%}.game-controls{justify-content:flex-start}html[data-theme=factory] .play-experience{display:block}html[data-theme=factory] .play-intro{padding:0 0 30px;gap:20px}html[data-theme=factory] .play-intro h1{font-size:61px}html[data-theme=factory] .play-intro h1 .serif{display:inline}html[data-theme=factory] .game-stage{height:440px}html[data-theme=factory] .game-start{padding:12px 16px;gap:18px}html[data-theme=factory] .game-start strong{font-size:14px}html[data-theme=factory] .game-start p{font-size:12px}.play-progress{gap:15px}.play-progress article{grid-template-columns:1fr;gap:8px}.play-progress p{grid-column:1}.play-progress h3{font-size:16px}}
@media(max-width:560px){.preview-bar{padding:7px 12px}.theme-picker{gap:6px;justify-content:start}.theme-picker button{font-size:10px;padding:6px 7px}.play-experience{padding-top:30px}.play-topline{margin-bottom:24px;gap:12px}.play-topline .eyebrow{font-size:9px;letter-spacing:1px}.play-edition{font-size:9px;letter-spacing:.5px}.play-intro h1{font-size:47px;letter-spacing:-2.5px}.play-intro h1 .serif{display:block}.play-intro p{font-size:14px;margin:0 0 20px}.play-intro-actions{gap:18px}.play-intro .button{font-size:12px;padding:12px 14px;gap:14px}.play-intro .text-link{font-size:12px}.game-shell{border-radius:15px}.game-topbar{padding:12px 14px;font-size:9px;letter-spacing:.7px;gap:6px}.game-stage{height:410px}.game-scenery{top:18px;left:15px;max-width:145px}.game-scenery span{font-size:9px;letter-spacing:.7px}.game-scenery h2{font-size:19px;margin:8px 0}.game-scenery p{font-size:10px}.game-score{right:15px;top:16px}.game-score strong{font-size:34px}.game-score>span{font-size:9px}.game-start{max-width:94%;gap:12px;padding:11px;bottom:20px;border-radius:9px}.game-start strong{font-size:12px}.game-start p{font-size:10px}.game-start .button{font-size:11px;padding:10px 12px}.game-bottom{padding:12px 14px;gap:10px}.game-instructions{font-size:10px}.game-controls{gap:5px}.game-controls button{padding:8px 9px;font-size:11px}.game-accessible-status{padding:0 14px 12px;font-size:11px}.play-legend{gap:12px 20px;padding:18px 0;font-size:9px}.play-progress{gap:12px;padding-top:20px}.play-progress article>span{font-size:10px}.play-progress h3{font-size:14px}.play-progress p{font-size:12px}.game-toast{font-size:10px;white-space:normal;width:max-content}html[data-theme=factory] .play-intro h1{font-size:48px}html[data-theme=factory] .game-stage{height:410px}html[data-theme=factory] .game-shell{box-shadow:5px 5px 0 #07121c}html[data-theme=factory] .game-start{padding:10px;gap:10px}html[data-theme=factory] .game-start strong{font-size:12px}html[data-theme=factory] .game-start p{font-size:10px}html[data-theme=garden] .play-intro h1{font-size:47px;letter-spacing:-2.5px}html[data-theme=garden] .play-intro h1 .serif{display:block}html[data-theme=garden] .play-intro p{margin:20px auto}html[data-theme=garden] .game-shell{border-radius:25px 25px 15px 15px}html[data-theme=garden] .game-stage{height:410px}html[data-theme=garden] .game-topbar{padding:13px 17px}}

/* White surfaces with the Stringraysoft navy accent. */
html[data-theme=garden]{--bg:#ffffff;--panel:#ffffff;--panel2:#f3f6f8;--ink:#07121c;--muted:#526372;--line:#d6dfe5;--accent:#07121c;--purple:#07121c;color-scheme:light}
html[data-theme=garden] .button{background:#07121c;color:#ffffff}
html[data-theme=garden] .button.outline{background:transparent;color:#07121c}
html[data-theme=garden] :is(.preview-bar,.game-topbar,.game-bottom,.game-accessible-status,.ticker,.about-section,.lab-section,.calculator,.hardware,.final-cta){background:#f3f6f8;color:#526372;border-color:#d6dfe5}
html[data-theme=garden] :is(.motion-toggle,.preview-caption,.game-scenery p,.game-scenery span,.game-start p,.calculator label,.panel-top,.calc-result>div,.calc-result>div>span,.cta-bottom,.global,.footer-label){color:#526372}
html[data-theme=garden] :is(.game-scenery h2,.game-score,.game-score>span,.game-score small,.game-topbar .game-state){color:#07121c}
html[data-theme=garden] .game-shell{background:#ffffff;border-color:#d6dfe5;box-shadow:0 20px 70px #07121c0d}
html[data-theme=garden] .game-start{background:#ffffffed;color:#07121c;border-color:#d6dfe5;box-shadow:0 10px 30px #07121c15}
html[data-theme=garden] :is(.game-controls button,.game-toast,.workflow span){background:#eaf0f4;color:#07121c;border-color:#c5d1da}
html[data-theme=garden] .solution-icon{background:#07121c0c;border-color:#07121c2a}
html[data-theme=garden] .widget-trigger{background:#ffffff;color:#07121c;border-color:#c5d1da;box-shadow:0 7px 30px #07121c15}
html[data-theme=garden] .chat-icon{color:#ffffff}
html[data-theme=garden] .cta-star{color:#07121c}
html[data-theme=garden] .custom-callout{background:#f3f6f8;border-color:#d6dfe5}
html[data-theme=garden] .custom-callout p{color:#526372}
html[data-theme=garden] :is(input:not([type=range]),select,textarea){background:#ffffff;color:#07121c;border-color:#c5d1da}
html[data-theme=garden] .filters button[aria-pressed=true]{background:#07121c0c;border-color:#07121c36}

/* Readable game controls and progress on both touch and desktop screens. */
.garden-dashboard{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 22px;padding:14px 24px;background:#ffffff;color:#07121c;border-bottom:1px solid #d6dfe5;font:13px/1.5 'Courier New',monospace}
html[data-theme=garden] .game-scenery{max-width:240px}
html[data-theme=garden] .game-scenery p{font-size:12px}
html[data-theme=garden] .game-instructions{font-size:12px;max-width:600px}
html[data-theme=garden] .game-bottom{flex-wrap:wrap}
html[data-theme=garden] .game-controls button{min-height:42px;font-size:13px}
html[data-theme=garden] .game-start p{font-size:13px;max-width:340px}
html[data-theme=garden] .game-start strong{font-size:16px}
html[data-theme=garden] .game-start .button{font-size:14px}
html[data-theme=garden] .game-toast{max-width:calc(100% - 28px);font-size:13px;text-align:center}
@media(max-width:600px){
 .garden-dashboard{padding:12px 16px;gap:6px;font-size:12px}.garden-dashboard>span{flex:1 1 45%}
 html[data-theme=garden] .game-scenery{left:16px;top:18px;max-width:190px}
 html[data-theme=garden] .game-scenery h2{font-size:23px}
 html[data-theme=garden] .game-score{right:14px;top:18px}
 html[data-theme=garden] .game-score>span{font-size:9px;letter-spacing:0}
 html[data-theme=garden] .game-start{gap:12px;padding:14px;flex-wrap:wrap;justify-content:center;text-align:center}
 html[data-theme=garden] .game-controls{justify-content:flex-start}
 html[data-theme=garden] .game-bottom{padding:16px}
 .preview-caption{display:none}
}

.garden-challenge{padding:12px 24px;background:#eaf0f4;border-bottom:1px solid #d6dfe5;color:#07121c;font-size:15px;font-weight:600;min-height:49px}
.garden-challenge.is-ready{background:#07121c;color:#ffffff}
.garden-dashboard .is-urgent{font-weight:700;text-decoration:underline;text-underline-offset:4px}
@media(max-width:600px){.garden-challenge{padding:12px 16px;font-size:14px}}

/* Keep the embedded assistant within the viewport during resize transitions. */
#project-chat-widget-shell #projectChatWidgetPanel{max-width:calc(100vw - 24px)}
