@font-face{font-family:RoomSans;src:local('Aptos'),local('Trebuchet MS')}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#fbf5e9;color:#304c3e}body{font-family:RoomSans,'Trebuchet MS',sans-serif;font-size:15px}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a85e4d;outline-offset:4px}button{border:0;background:transparent}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#app{max-width:1600px;margin:auto;padding:0 44px}header{height:96px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dedfce}.brand{display:flex;align-items:center;gap:12px;padding:0;font-size:12px;letter-spacing:2px}.brand b{font-weight:400;color:#8b9582}.brand-mark{background:#34583f;color:#fff8e8;font:bold 27px Georgia;width:41px;height:41px;display:grid;place-items:center;border-radius:12px 12px 17px 12px;letter-spacing:-3px;padding-right:4px}.build-label{font-size:10px;letter-spacing:2px;color:#8c957e}.icon-btn{width:46px;height:46px;border:1px solid #dedfce;border-radius:50%;display:grid;place-items:center;background:#fffaf1}.icon-btn:hover{background:#eeefdf}footer{min-height:68px;display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:1.8px;color:#8b9680;border-top:1px solid #dedfce;margin-top:30px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#8b9b79;margin:0 0 18px;display:flex;align-items:center;gap:9px}.eyebrow:before{content:'';width:6px;height:6px;background:#b78d65;border-radius:50%}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-1.2px}h1{font-size:clamp(40px,4.1vw,68px);line-height:1.05;margin-bottom:24px}h1 em{color:#869c73;font-weight:400}h2{font-size:34px;line-height:1.13;margin-bottom:15px}h3{font-size:23px;letter-spacing:-.5px}.muted{color:#849078}.body-copy{line-height:1.85;color:#7d8774;font-size:14px;max-width:340px}.home{display:grid;grid-template-columns:.78fr 1.4fr;gap:45px;align-items:center;padding-top:45px}.home-copy{padding:22px 0 30px 10px}.home-scene{height:min(65vh,620px);min-height:410px;position:relative;background:#e5e6d5;border-radius:100px 18px 18px 18px;overflow:hidden}.scene-host{position:relative;overflow:hidden;isolation:isolate}.scene-host canvas{display:block;width:100%;height:100%;touch-action:none}.scene-caption{position:absolute;bottom:24px;left:27px;background:#fff9eeeb;border:1px solid #fffaf1;border-radius:10px;padding:11px 16px;backdrop-filter:blur(10px);font-size:11px;line-height:1.6;pointer-events:none}.scene-caption strong{display:block;font-family:Georgia;font-size:18px;font-weight:400}.pill{display:inline-flex;align-items:center;gap:7px;border:1px solid #d9decc;border-radius:30px;padding:7px 12px;font-size:10px;letter-spacing:.5px}.pill:before{content:'';width:5px;height:5px;border-radius:50%;background:#8da46b}.primary{background:#365b44;color:#fff9e9;padding:16px 24px;border-radius:12px;min-height:52px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:22px;box-shadow:0 5px 0 #2b49370d}.primary:hover{background:#466e50;transform:translateY(-1px)}.primary svg{width:18px;height:18px}.secondary{border:1px solid #d8d9c5;border-radius:11px;padding:13px 17px;min-height:47px;background:#fffaf0;font-size:12px}.secondary:hover{background:#efefdf}.text-button{font-size:12px;text-decoration:underline;text-underline-offset:4px;padding:12px 8px;min-height:44px}.home-actions{display:flex;flex-wrap:wrap;gap:11px;margin:27px 0 18px}.fine{font-size:10px;line-height:1.7;color:#8b927e}.friends-strip{display:flex;align-items:center;gap:13px;border-top:1px solid #e0e1ce;padding-top:25px;margin-top:30px}.friends-strip .mini-portrait{width:36px;height:40px;margin-right:-20px}.friends-strip p{margin:0 0 0 14px;font-size:10px;color:#859078}.section-label{font-size:10px;letter-spacing:1.7px;color:#859477;font-weight:700}.level-top{display:flex;align-items:center;justify-content:space-between;margin:25px 0 24px}.back{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:12px;padding:0 10px 0 0}.crumb{font-size:11px;color:#8c957f}.progress-dots{display:flex;gap:6px}.progress-dots span{width:7px;height:7px;background:#dfdfcc;border-radius:50%}.progress-dots .done{background:#7d9670}.progress-dots .current{background:#be946c;box-shadow:0 0 0 3px #e8dbc7}.game-layout{display:grid;grid-template-columns:270px minmax(350px,1fr);gap:34px}.room-copy{padding:14px 0}.room-copy h2{font-size:35px;max-width:260px}.room-copy .body-copy{font-size:12px;line-height:1.8}.goal-box{padding:18px 0 18px 16px;border-left:2px solid #b6c49f;margin:24px 0;font-size:12px;line-height:1.6}.goal-box strong{display:block;font-size:9px;letter-spacing:1.7px;color:#95a184;margin-bottom:7px}.friends{display:grid;gap:8px;margin:12px 0 15px}.friend-card{display:flex;align-items:center;gap:12px;border:1px solid #dfe0cd;background:#fffaf0;padding:10px 13px;border-radius:14px;text-align:left;position:relative;min-height:73px}.friend-card:hover,.friend-card.active{background:#f0efde;border-color:#8aa07b}.friend-card.active:after{content:'✓';position:absolute;right:12px;top:10px;font-size:10px;border-radius:50%;width:17px;height:17px;background:#3b6249;color:#fff7e8;text-align:center;line-height:17px}.friend-card .name{font-family:Georgia;font-size:19px;display:block;margin-bottom:3px}.friend-card .role{font-size:10px;color:#89947c}.friend-card .spot{font-size:9px;display:block;margin-top:3px;color:#7b8b71}.mini-portrait{width:42px;height:49px;flex-shrink:0}.rule{font-size:11px;line-height:1.65;color:#89917b;min-height:45px;padding-right:8px}.room-wrap{position:relative}.room-scene{height:min(61vh,620px);min-height:410px;background:#e5e4d4;border-radius:20px 65px 20px 20px}.room-badge{position:absolute;top:20px;left:22px;padding:8px 12px;background:#fff9e9dd;border-radius:20px;font-size:9px;letter-spacing:1.1px;pointer-events:none}.room-instruction{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);background:#fff9e8ec;border:1px solid #fff8e8;border-radius:40px;padding:10px 18px;white-space:nowrap;font-size:10px;pointer-events:none}.room-tools{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:14px}.tool-cluster{display:flex;gap:6px}.tool{min-width:43px;min-height:45px;border:1px solid #dedfc9;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:11px;padding:8px 12px;background:#fffaf0}.tool svg{width:17px;height:17px}.play{min-width:170px}.caption-row{display:flex;justify-content:space-between;align-items:center;margin:15px 2px 0;font-size:10px;color:#89957d}.caption-row .fine{max-width:70%}.hint{border-top:1px solid #dedfcd;margin-top:17px;padding-top:10px}.hint button{font-size:11px;padding:9px 0;min-height:44px}.hint p{font-size:12px;line-height:1.65;color:#8b7d61;margin:5px 0 10px}.keyboard-controls{font-size:10px;color:#7f8977;margin-top:12px}.keyboard-controls summary{cursor:pointer;min-height:38px;padding:10px 0}.tile-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:3px;max-width:350px;padding:6px 0}.tile-grid button{border:1px solid #cccdbb;min-height:40px;background:#f6efdf;border-radius:5px;font-size:9px}.tile-grid button:disabled{background:#d3d2be}.simulation-line{font-family:Georgia;font-size:19px;color:#546b4b;line-height:1.45;min-height:54px;margin-top:20px}.chapter-head{display:flex;align-items:end;justify-content:space-between;margin:35px 0}.chapter-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}.level-card{background:#f1efdf;border:1px solid #e2e0ca;border-radius:18px;padding:22px 18px;text-align:left;min-height:176px;display:flex;flex-direction:column;gap:15px}.level-card:not(:disabled):hover{background:#e9edda;transform:translateY(-3px)}.level-card .number{font-family:Georgia;font-size:34px;color:#8c9e75}.level-card strong{font-family:Georgia;font-weight:400;font-size:19px;line-height:1.2}.level-card small{font-size:9px;color:#8a967c;margin-top:auto}.hub-layout{display:grid;grid-template-columns:280px 1fr;gap:30px}.hub-items{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}.hub-items button{padding:10px 12px;min-height:44px;border:1px solid #d9dbc5;border-radius:9px;background:#fff9ed;font-size:11px}.hub-items button.active{background:#dce3cc;border-color:#8b9d76}.outfit-row{display:flex;align-items:center;gap:9px;margin:10px 0}.outfit-row label{min-width:46px;font-size:12px}.outfit-row select{background:#fff9ee;border:1px solid #d9dbc5;border-radius:8px;padding:10px;font-size:11px;min-height:44px;max-width:180px}#modal{position:fixed;inset:0;background:#273f3280;z-index:30;display:grid;place-items:center;backdrop-filter:blur(8px);padding:18px}#modal[hidden]{display:none}.dialog{background:#fff8ec;border:1px solid #f2e6ce;border-radius:25px;box-shadow:0 30px 100px #1c352c30;padding:34px;max-width:480px;width:100%;max-height:92dvh;overflow:auto;position:relative}.dialog.wide{max-width:650px}.dialog h2{font-size:36px;margin-top:14px}.close-modal{position:absolute;right:15px;top:15px;min-width:44px;min-height:44px;border-radius:50%;background:#f2eddd;font-size:22px}.dialog p{font-size:13px;line-height:1.75;color:#7c8872}.dialog .actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}.checks{display:grid;gap:9px;margin:20px 0}.check{font-size:12px;display:flex;gap:9px;align-items:center}.check span{color:#7d9968;font-size:17px}.check.bad span{color:#bd7766}.reward{background:#eef0dc;padding:17px 18px;border-radius:12px;margin:20px 0;font-size:12px;line-height:1.7}.reward strong{font-family:Georgia;font-size:21px;font-weight:400;display:block}.success-art{display:flex;justify-content:center;gap:5px;margin:20px 0}.success-art .mini-portrait{width:64px;height:75px}.setting{margin:21px 0}.setting label{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:9px}.setting input[type=range]{width:100%;accent-color:#6a875c;height:30px}.setting input[type=checkbox]{width:22px;height:22px;accent-color:#6a875c}.settings-group{border-top:1px solid #e0e1cc;padding-top:17px;margin-top:21px}.settings-group button{margin:4px 7px 5px 0}.danger{color:#a96855}.error{font-size:12px;color:#a45443;background:#f5e2d3;border-radius:8px;padding:12px;line-height:1.6}.import-file{display:block;max-width:100%;font-size:11px;padding:13px 0}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(100px);background:#375c44;color:#fff8e9;padding:13px 22px;border-radius:12px;z-index:60;font-size:12px;max-width:90vw;text-align:center;transition:transform .25s;pointer-events:none}#toast.visible{transform:translateX(-50%) translateY(0)}.warning{background:#f4e6cc;border:1px solid #dac49d;border-radius:12px;font-size:12px;padding:16px;margin:15px 0;line-height:1.6}.webgl-error{position:absolute;inset:0;display:grid;place-content:center;padding:25px;text-align:center;color:#694d3d}body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
@media(min-width:1400px){.game-layout{grid-template-columns:300px minmax(350px,1fr)}.room-copy{padding:30px 10px}.room-scene{min-height:540px}}
@media(max-width:1000px){#app{padding:0 25px}.game-layout{grid-template-columns:230px minmax(320px,1fr);gap:22px}.build-label{display:none}.home{gap:20px;grid-template-columns:.85fr 1.2fr}.home-scene{min-height:390px;border-radius:65px 18px 18px}.chapter-grid{grid-template-columns:repeat(3,1fr)}.hub-layout{grid-template-columns:230px 1fr}}
@media(max-width:700px){#app{padding:0 19px}header{height:74px}.brand{font-size:10px;letter-spacing:1.4px}.brand-mark{width:35px;height:35px;font-size:25px}.icon-btn{width:41px;height:41px}.home{display:flex;flex-direction:column-reverse;padding-top:19px;gap:20px}.home-scene{width:100%;height:39dvh;min-height:290px;max-height:370px;border-radius:55px 15px 15px}.home-copy{width:100%;padding:0 4px}.home h1{font-size:44px;line-height:1.03;margin-bottom:15px}.home .eyebrow{margin-bottom:13px;font-size:9px}.home .body-copy{font-size:12px;line-height:1.65;max-width:320px}.home-actions{margin:20px 0 12px}.home-actions .primary{flex:1;max-width:240px}.friends-strip{margin-top:20px;padding-top:19px}.scene-caption{bottom:14px;left:15px;padding:9px 12px;font-size:9px}.scene-caption strong{font-size:16px}footer{margin-top:22px;min-height:53px;font-size:7px;letter-spacing:1px}.level-top{margin:13px 0 13px}.game-layout{display:flex;flex-direction:column;gap:8px}.room-copy{display:contents}.room-copy .eyebrow{font-size:8px;margin:0}.room-copy h2{font-size:28px;max-width:none;margin:2px 0 0}.room-copy>.body-copy{display:none}.goal-box{margin:0 0 4px;padding:0;border:0;font-size:11px}.goal-box strong{display:none}.friends{display:flex;gap:6px;order:6;margin:8px 0 0}.friend-card{flex:1;min-width:0;padding:8px 5px;gap:4px;border-radius:10px;min-height:74px;flex-direction:column;justify-content:center;text-align:center}.friend-card .mini-portrait{width:30px;height:33px}.friend-card .name{font-size:12px;margin-bottom:0}.friend-card .role{display:none}.friend-card .spot{font-size:8px}.friend-card.active:after{right:4px;top:4px;width:12px;height:12px;line-height:12px;font-size:7px}.rule{order:7;font-size:10px;margin:0;min-height:36px;line-height:1.55}.hint{order:9;margin:0;padding:0;border:0}.hint button{min-height:40px;padding:4px 0;font-size:10px}.hint p{font-size:11px}.room-wrap{order:5}.room-scene{height:43dvh;min-height:300px;max-height:440px;border-radius:16px 45px 16px 16px}.room-badge{top:12px;left:13px;font-size:8px;padding:7px 9px}.room-instruction{font-size:9px;bottom:10px;padding:8px 12px;max-width:95%;overflow:hidden;text-overflow:ellipsis}.room-tools{margin-top:10px;gap:4px}.tool{padding:7px 9px;min-width:43px}.tool-cluster{gap:4px}.play{min-width:124px;padding:13px 16px}.play svg{width:14px;height:14px}.tool-label{display:none}.caption-row{margin-top:8px;font-size:8px}.caption-row .fine{font-size:8px}.keyboard-controls{order:10;margin-top:0}.simulation-line{order:8;font-size:16px;margin-top:0;min-height:24px}.chapter-head{margin:20px 0}.chapter-head h1{font-size:38px}.chapter-grid{grid-template-columns:repeat(2,1fr);gap:9px}.level-card{min-height:145px;padding:17px 14px;gap:9px}.level-card strong{font-size:17px}.level-card .number{font-size:28px}.hub-layout{display:flex;flex-direction:column-reverse;gap:20px}.hub-layout .room-scene{height:43dvh}.dialog{padding:27px 23px;border-radius:20px}.dialog h2{font-size:31px}.dialog .eyebrow{margin-top:8px}.dialog .actions .primary{flex:1}.success-art .mini-portrait{width:55px;height:65px}.outfit-row select{max-width:240px}.home .fine{max-width:320px}.caption-row .pill{font-size:8px;padding:5px 8px}}
@media(max-width:360px){#app{padding:0 13px}.room-scene{min-height:270px}.home h1{font-size:38px}.tool{min-width:39px;padding:7px}.play{min-width:115px}.primary{gap:10px}.friend-card .name{font-size:11px}}
[hidden]{display:none!important}#toast{visibility:hidden}#toast.visible{visibility:visible}@media(max-width:700px){.room-wrap{display:contents}.room-scene{order:5}.room-tools{order:8;width:100%}.caption-row{order:9;width:100%}.keyboard-controls{order:12}.hint{order:11}.simulation-line{order:10}.friends{width:100%;margin:0}.rule{margin:0}.room-instruction{max-width:95%}}

/* Cottage materials are rendered in 3D. The controls echo their tactile finish. */
.primary.play{background:linear-gradient(#d2ec75,#a9ca4c);color:#354b1f;border:1px solid #90ad3f;border-radius:18px;box-shadow:0 5px 0 #7e9a36;font-size:16px;font-weight:900;letter-spacing:.3px}
.primary.play:hover{background:linear-gradient(#def58c,#b8d85b)}
.primary.play:active{transform:translateY(3px);box-shadow:0 2px 0 #7e9a36}
.friend-card{background:linear-gradient(#fff7e6,#eee2c7);border-color:#d5c3a0;box-shadow:0 2px 0 #c9b48d30}
.friend-card.active{background:linear-gradient(#f4f1d7,#dedfb5);border-color:#92a465}
.room-scene{box-shadow:inset 0 0 0 1px #c4b59760}
.room-instruction{white-space:normal;text-align:center;line-height:1.55;max-width:86%;width:max-content}
@media(max-width:700px){.primary.play{font-size:16px;min-height:50px}.room-instruction{font-size:9px;max-width:88%}}

.reaction-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0;color:#42604b;font-size:13px}.reaction-controls label{display:flex;align-items:center;min-height:44px;gap:8px}.reaction-controls input{width:20px;height:20px;accent-color:#50764b}.reaction-controls button{min-height:44px;padding:9px 14px}.progress-dots{flex-wrap:wrap;max-width:45%}.setting select{max-width:100%;min-height:44px}.reaction-controls button:disabled{opacity:.45}
