body[data-theme="architect"]{--ink:#214b47;--chrome:100px;background:#e9eddc;color:#214b47;overflow-x:hidden}
body[data-theme="architect"] .game-nav{height:56px;max-width:1250px;padding:8px 22px;flex-shrink:0}
body[data-theme="architect"] .brand{font-size:1.55rem}
body[data-theme="architect"] .brand img{width:32px;height:32px}
body[data-theme="architect"] .game-shell{max-width:1206px;padding:0 12px 12px}
body[data-theme="architect"] .game-heading{height:44px;padding:2px 8px 8px;gap:10px}
body[data-theme="architect"] h1{font-size:26px;line-height:1;letter-spacing:-.025em}
body[data-theme="architect"] .game-subtitle{display:none}
body[data-theme="architect"] .game-progress{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1}
body[data-theme="architect"] .progress-dots{margin:0;gap:5px}
body[data-theme="architect"] .progress-dots i{width:11px;height:11px;background:#5476652b}
body[data-theme="architect"] .progress-dots i.done{background:#4d8b72;box-shadow:inset 0 -2px 0 #2a6755}
.architect-game{height:calc(100svh - 112px);min-height:410px;max-height:790px;display:grid;grid-template-rows:minmax(0,1fr) 103px 84px;background:#f4e1bc;border:1px solid #d4be95;border-radius:25px;box-shadow:0 13px 36px #516e5420;overflow:hidden}
.architect-scene{position:relative;min-height:0;overflow:hidden;isolation:isolate;background:#b4dbd7}
.world{width:100%;height:100%;display:block;overflow:hidden}
.scene-heading{position:absolute;left:20px;right:20px;top:13px;z-index:4;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;color:#28544a;pointer-events:none}
.scene-heading>div{display:flex;align-items:center;gap:9px}
.scene-heading h2{font-size:25px;font-weight:800;line-height:1.15;text-shadow:0 2px 1px #edf1db77;letter-spacing:-.02em}
.site-count{font-size:12px;font-weight:800;white-space:nowrap;background:#fff8db8c;padding:6px 9px;border-radius:30px;border:1px solid #fff5d299}
.friend-tag{font-size:14px;font-weight:700;padding-top:5px;white-space:nowrap}
.site-clue{position:absolute;left:50%;bottom:11px;transform:translateX(-50%);font-size:15px;line-height:1.1;white-space:nowrap;color:#466951;background:#f9f3d8c9;border:1px solid #fff6da90;border-radius:30px;padding:6px 12px;max-width:calc(100% - 140px);overflow:hidden;text-overflow:ellipsis}
.glee-friend{position:absolute;right:6%;bottom:5%;width:100px;z-index:5;pointer-events:none;filter:drop-shadow(0 7px 3px #355d4c25);transform-origin:50% 90%}
.glee-friend img{display:block;width:100%;height:auto;user-select:none}
.glee-approval{position:absolute;right:-11px;top:-14px;width:37px;height:34px;border-radius:50% 50% 50% 8px;background:#fff4c9;color:#4d8a6b;display:grid;place-items:center;font-size:27px;font-weight:800;opacity:0;transform:scale(.5);box-shadow:0 2px 3px #47624922}
.glee-friend.approves .glee-approval{opacity:1;transform:scale(1);transition:transform .25s .35s,opacity .25s .35s}
.glee-friend.approves{animation:glee-approve .7s .3s ease-out}
.block-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:8px 18px 7px;background:linear-gradient(90deg,#dbc6a0aa 1px,transparent 1px) 0 0/90px 100%,linear-gradient(#ebd4ab,#dfbd8e);box-shadow:inset 0 4px 7px #7e603817,inset 0 1px 0 #fff0c8;position:relative;z-index:6;border-top:5px solid #c79f71;border-bottom:1px solid #bf976a}
.block-compartment{min-width:0;border:0;margin:0;padding:0}
.block-compartment legend{float:left;width:100%;text-align:center;font-size:12px;font-weight:800;line-height:16px;color:#716246;margin-bottom:3px;letter-spacing:.005em}
.piece-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px;clear:both}
.block-piece{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-height:59px;min-width:44px;padding:4px 9px 4px 6px;color:#5c6149;font:inherit;font-size:14px;font-weight:700;border:2px solid transparent;border-radius:12px;background:linear-gradient(#f4e5c9,#e9d2ad);box-shadow:inset 0 2px 2px #fff7ddaa,0 3px 0 #b6976e;touch-action:manipulation;transition:transform .15s,background .15s,border-color .15s}
.block-piece svg{display:block;width:57px;height:43px;flex-shrink:0;filter:drop-shadow(0 2px 1px #7d654b22)}
.block-piece i{position:absolute;right:4px;top:1px;font-size:11px;font-style:normal;opacity:0;color:#3b796d}
.block-piece.selected{border-color:#4b8d7f;background:linear-gradient(#f4f0d5,#dee1c4);box-shadow:inset 0 1px 1px #fff,0 3px 0 #769b82}
.block-piece.selected i{opacity:1}
.block-piece:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px 1px #fff,0 1px 0 #769b82}
.block-piece:disabled{cursor:default;color:#7e7e65}
.block-piece:disabled:not(.selected){opacity:.55}
.block-piece:focus-visible{outline:3px solid #254e4a;outline-offset:1px;box-shadow:0 0 0 4px #fff8d9,0 3px 0 #7b9b83;z-index:2}
.build-actions{display:flex;align-items:center;justify-content:center;gap:24px;padding:10px 24px 12px;background:#f4e6c9;box-shadow:inset 0 1px 0 #fff8e0}
.build-feedback{font-size:17px;font-weight:650;line-height:1.15;text-align:center;flex:1;color:#5b6b51;max-width:510px}
.build-feedback.success{color:#367751}
.build-feedback:not(.ready):not(.success):not(.testing){color:#825f43}
#architect-test{display:flex;align-items:center;justify-content:center;gap:10px;min-width:250px;min-height:48px;border-radius:16px;background:#3c7b70;color:#fff6df;padding:10px 20px;font-size:18px;font-weight:800;line-height:1.05;box-shadow:0 4px 0 #24574e;border:1px solid #347164;flex-shrink:0}
#architect-test svg{width:25px;height:23px;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;fill:none}
#architect-test:disabled{color:#e0e3cf;background:#54877b;box-shadow:0 4px 0 #36655b}
#architect-test:focus-visible{outline:3px solid #214f49;outline-offset:3px;box-shadow:0 0 0 6px #fff5d5,0 4px 0 #24574e}
.clearance-guide{opacity:.76}
.architect-scene[data-phase="success"] .clearance-guide{opacity:0}
.building{transform-origin:400px 440px}
.roof-piece{transform-origin:var(--roof-pivot)}
.resident-mover{transform:translate(-138px,40px)}
.resident-mover.has-tried{transform:translateX(0)}
.architect-scene[data-phase="testing"] .resident-mover{animation:friend-try .65s ease-in-out both}
.architect-scene[data-phase="success"] .resident-mover{animation:friend-home 1.1s ease-in-out both}
.architect-scene[data-phase="success"] .resident-mover[data-resident="turtle"]{animation:friend-crawl 1.3s ease-in-out both}
.architect-scene[data-phase="success"] .resident-mover[data-resident="fox"]{animation:friend-steps 1s ease-in-out both}
.failure-cue{fill:none;stroke:#cf7959;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px #fff9dc)}
.architect-scene[data-outcome="ears"] .roof-piece{opacity:.6}
.architect-scene[data-outcome="ears"] .bunny{animation:ear-pause .55s ease-out}
.architect-scene[data-outcome="space"] .resident-mover{transform:translateX(-20px)}
.architect-scene[data-outcome="roof-gap"] .roof-piece{transform:translate(7px,27px) rotate(8deg);animation:roof-slip .55s ease-out both}
.architect-scene[data-outcome="branch"] .roof-piece{opacity:.7;transform:translateY(8px)}
.architect-scene[data-outcome="branch"] [data-environment="low-branch"]{animation:branch-bump .4s ease-out 2;transform-origin:150px 220px}
.architect-scene[data-outcome="wind"] .building{transform:skewX(-4deg);animation:wind-wobble .6s ease-out 2}
.architect-scene[data-wind="-1"][data-outcome="wind"] .building{transform:skewX(4deg);animation-name:wind-wobble-reverse}
.architect-scene[data-outcome="boundary"] .site-guide{stroke:#cf7959;stroke-width:6}
.gusts{opacity:0}
.architect-scene[data-phase="testing"] .gusts{opacity:.8;animation:gust-flow .75s linear infinite}
.architect-scene[data-outcome="wind"] .gusts{opacity:.85}
.architect-scene[data-site="windy-hill"] .wind-flag{transform-box:fill-box;transform-origin:left center}
.architect-scene[data-phase="testing"] .wind-flag{animation:flag-blow .4s ease-in-out 3}
.home-sparkles{opacity:0;transform-origin:400px 280px}
.architect-scene[data-phase="success"] .home-sparkles{opacity:1;animation:home-glow .65s ease-out both}
.architect-scene[data-phase="success"] .bloom{transform-box:fill-box;transform-origin:center;animation:bloom .7s .4s ease-out both}
.architect-scene[data-phase="success"] .pond{filter:brightness(1.12)}
.butterfly{opacity:0}
.architect-scene[data-phase="success"] .butterfly{opacity:1;animation:butterfly-arrives 1.5s ease-out both}
.architect-scene[data-placed="width"] .wall-piece{animation:block-place .24s ease-out}
.architect-scene[data-placed="height"] .wall-piece{animation:block-place .24s ease-out}
.architect-scene[data-placed="roof"] .roof-piece{animation:roof-place .3s ease-out}
@keyframes block-place{from{translate:0 -15px;opacity:.7}to{translate:0 0;opacity:1}}
@keyframes roof-place{from{translate:0 -22px;opacity:.65}to{translate:0 0;opacity:1}}
@keyframes roof-slip{from{transform:translate(0,0) rotate(0)}to{transform:translate(7px,27px) rotate(8deg)}}
@keyframes friend-try{0%{transform:translate(-138px,40px)}50%{transform:translate(-72px,10px)}100%{transform:translateX(0)}}
@keyframes friend-home{0%{transform:translate(-138px,40px)}25%{transform:translate(-103px,15px)}45%{transform:translate(-75px,20px)}65%{transform:translate(-42px,-8px)}85%{transform:translateX(0)}100%{transform:translateX(0)}}
@keyframes friend-crawl{0%{transform:translate(-138px,40px)}35%{transform:translate(-92px,24px)}70%{transform:translate(-40px,12px)}100%{transform:translateX(0)}}
@keyframes friend-steps{0%{transform:translate(-138px,40px)}20%{transform:translate(-110px,28px)}40%{transform:translate(-77px,25px)}60%{transform:translate(-47px,8px)}80%{transform:translate(-20px,6px)}100%{transform:translateX(0)}}
@keyframes ear-pause{25%{rotate:-3deg}75%{rotate:2deg}}
@keyframes branch-bump{50%{rotate:1deg}}
@keyframes wind-wobble{0%{transform:skewX(0)}35%{transform:skewX(-6deg)}65%{transform:skewX(1deg)}100%{transform:skewX(-4deg)}}
@keyframes wind-wobble-reverse{0%{transform:skewX(0)}35%{transform:skewX(6deg)}65%{transform:skewX(-1deg)}100%{transform:skewX(4deg)}}
@keyframes gust-flow{0%{translate:-18px 0;opacity:0}35%{opacity:.9}100%{translate:35px 0;opacity:0}}
@keyframes flag-blow{50%{scale:1 .9}}
@keyframes glee-approve{30%{translate:0 -8px;rotate:-5deg}60%{translate:0 0;rotate:4deg}}
@keyframes home-glow{0%{scale:.3;opacity:0}70%{scale:1.1}100%{scale:1;opacity:1}}
@keyframes bloom{0%{scale:.6}75%{scale:1.14}100%{scale:1}}
@keyframes butterfly-arrives{0%{translate:75px -25px;opacity:0}100%{translate:0 0;opacity:1}}
@media(min-width:1100px){.world{object-fit:cover}.glee-friend{right:12%;width:115px}.site-clue{bottom:18px}.block-tray{padding-left:9%;padding-right:9%}}
@media(max-width:760px){body[data-theme="architect"] .game-nav{height:50px;padding:3px 12px}body[data-theme="architect"] .brand{font-size:1.4rem}body[data-theme="architect"] .brand img{width:29px;height:29px}body[data-theme="architect"] .game-shell{padding:0 8px 8px}body[data-theme="architect"] .game-heading{height:38px;padding:0 4px 5px}body[data-theme="architect"] h1{font-size:23px}body[data-theme="architect"] .game-progress{font-size:10px;gap:6px}body[data-theme="architect"] .progress-dots{gap:3px}body[data-theme="architect"] .progress-dots i{width:8px;height:8px}.architect-game{height:calc(100svh - 96px);min-height:0;max-height:calc(100vw + 190px);grid-template-rows:minmax(0,1fr) 95px 84px;border-radius:19px}.scene-heading{left:12px;right:12px;top:11px;gap:6px}.scene-heading>div{gap:6px}.scene-heading h2{font-size:21px}.site-count{font-size:10px;padding:5px 6px}.friend-tag{font-size:12px;padding-top:5px}.site-clue{bottom:9px;font-size:12px;max-width:calc(100% - 32px);padding:5px 10px}.glee-friend{width:76px;right:3%;bottom:11%;}.glee-approval{width:27px;height:26px;font-size:21px;top:-10px;right:-4px}.block-tray{gap:8px;padding:5px 8px 7px;border-top-width:4px}.block-compartment legend{font-size:11px;line-height:14px;margin-bottom:4px}.piece-pair{gap:5px}.block-piece{min-height:58px;flex-direction:column;gap:0;padding:1px 1px 2px;border-radius:9px;font-size:11px;line-height:1.1}.block-piece svg{width:45px;height:37px}.block-piece i{right:2px;top:0;font-size:9px}.build-actions{flex-direction:column;gap:4px;padding:6px 10px}.build-feedback{font-size:12px;line-height:1.1;height:24px;min-height:24px;max-width:100%;display:flex;align-items:center;justify-content:center;flex:0}#architect-test{width:100%;min-width:0;min-height:44px;max-height:44px;padding:7px 12px;border-radius:13px;font-size:17px;gap:8px}#architect-test svg{width:22px;height:21px}}
@media(max-width:360px){body[data-theme="architect"] .game-nav{height:48px;padding-left:9px;padding-right:9px}body[data-theme="architect"] .brand{font-size:1.25rem}body[data-theme="architect"] .brand img{width:27px;height:27px}body[data-theme="architect"] .game-heading{height:36px}body[data-theme="architect"] h1{font-size:21px}body[data-theme="architect"] .game-progress>span{font-size:9px}body[data-theme="architect"] .game-progress{gap:4px}.architect-game{height:calc(100svh - 92px);grid-template-rows:minmax(0,1fr) 92px 84px}.scene-heading{left:9px;right:9px;top:10px}.scene-heading h2{font-size:18px}.site-count{padding:4px 5px}.friend-tag{font-size:10px;padding-top:5px}.block-tray{gap:6px;padding-left:6px;padding-right:6px}.piece-pair{gap:4px}.block-piece{min-height:58px;min-width:44px;font-size:10px}.block-piece svg{width:40px;height:36px}.glee-friend{width:65px;right:3%;bottom:13%}.site-clue{font-size:11px;bottom:8px}.build-feedback{font-size:11.5px;line-height:12px;min-height:24px}#architect-test{font-size:16px}}
@media(max-height:560px) and (min-width:600px){body[data-theme="architect"] .game-nav{height:44px}body[data-theme="architect"] .game-heading{height:32px}.architect-game{height:calc(100svh - 84px);min-height:310px;grid-template-rows:minmax(0,1fr) 78px 60px}.block-tray{padding-top:3px;padding-bottom:5px}.block-compartment legend{font-size:10px;line-height:12px;margin-bottom:2px}.block-piece{min-height:46px}.block-piece svg{width:42px;height:32px}.build-actions{flex-direction:row;gap:14px;padding:5px 16px 9px}.build-feedback{font-size:13px}#architect-test{width:auto;min-width:220px}.scene-heading{top:8px}.scene-heading h2{font-size:19px}.glee-friend{width:62px}.site-clue{font-size:11px}}
@media(prefers-reduced-motion:reduce){.architect-game *{animation:none!important;transition:none!important}.architect-scene[data-phase="success"] .resident-mover,.architect-scene[data-phase="testing"] .resident-mover{transform:translateX(0)}.architect-scene[data-phase="testing"] .gusts{opacity:.8}.glee-friend.approves .glee-approval{opacity:1;transform:scale(1)}}
/* Bounded puzzle variants share controls, while their physical scene cues vary. */
.architect-scene[data-outcome="headroom"] .roof-piece{opacity:.6}
.architect-scene[data-outcome="roof-lift"] .roof-piece{transform:translate(-4px,-12px) rotate(8deg);animation:roof-lift .65s ease-out both}
.architect-scene[data-outcome="roof-lift"] .gusts{opacity:.9}
.architect-scene[data-wind-strength="2"] .gusts{opacity:.24}
.architect-scene[data-wind-strength="1"] .gusts path:not(:first-child){display:none}
.architect-scene[data-wind-strength="1"] .gusts{stroke-width:3}
.architect-scene[data-phase="testing"] .gusts,.architect-scene[data-outcome="wind"] .gusts,.architect-scene[data-outcome="roof-lift"] .gusts{opacity:.85}
.architect-scene[data-phase="success"] .gusts{opacity:0}
.architect-scene[data-outcome="branch"] [data-environment="low-branch"]{animation:none}
.architect-scene[data-outcome="branch"] .branch-canopy{animation:branch-bump .4s ease-out 2;transform-origin:150px 180px}
@keyframes roof-lift{0%{transform:translate(0,0) rotate(0)}35%{transform:translate(-5px,-18px) rotate(11deg)}100%{transform:translate(-4px,-12px) rotate(8deg)}}
@media(orientation:landscape) and (max-height:500px){.architect-game{height:auto;min-height:490px;max-height:none;grid-template-rows:310px 96px 84px}.architect-scene{min-height:310px}.world{height:310px}.site-clue{bottom:10px}.glee-friend{bottom:12%;width:70px}.scene-heading{top:10px}.scene-heading h2{font-size:20px}.build-actions{flex-direction:column;gap:4px;padding:6px 10px}.build-feedback{height:24px;min-height:24px;font-size:12px;flex:0}#architect-test{width:100%;min-width:0;min-height:44px;max-height:44px}.block-piece{min-height:58px}.block-compartment legend{font-size:11px;line-height:14px;margin-bottom:4px}}
@media(prefers-reduced-motion:reduce){.architect-scene[data-outcome="roof-lift"] .roof-piece,.architect-scene[data-outcome="branch"] .branch-canopy{animation:none!important}}
.architect-scene[data-wind-strength="0"] .gusts{display:none}
