:root{font-family:"Trebuchet MS","Arial Rounded MT Bold",system-ui,sans-serif;color:#244832;background:#f8f6e9;--forest:#285942;--cream:#fffdf3;--gold:#ffd56b;--line:#dce2cb}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 90% 10%,#e3edce,transparent 52%),#f8f6e9}button,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer;border:1px solid #cbd7b9;background:#fffdf3;color:#35563b;border-radius:12px;padding:11px 16px;font-weight:850;min-height:44px}button:disabled{cursor:default;color:#718169;background:#ecefdf}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:4px solid #bd6c35;outline-offset:4px}a{color:inherit}h1,h2,p{margin-top:0}.primary{background:var(--gold);color:#3a4529;border-color:#e0b14d;box-shadow:0 4px 0 #c3a044}.primary:hover:not(:disabled){background:#ffe18c;transform:translateY(-1px)}.primary:disabled{box-shadow:none}.eyebrow{font-size:16px;letter-spacing:1.8px;font-weight:900;color:#708259}.skip-link{position:fixed;top:-90px;left:12px;padding:14px;z-index:100;background:#fff}.skip-link:focus{top:12px}.header{max-width:1120px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 28px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:20px;font-weight:900;letter-spacing:-.6px}.brand img{width:42px;height:42px}.brand b{color:#759451}.header nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;font-size:16px;font-weight:800}.header nav a{text-decoration:none;min-height:44px;display:flex;align-items:center;padding:9px}.header button{font-size:16px;padding:9px 12px}.wallet{background:#efedd2;border-radius:15px}main{max-width:1080px;padding:12px 28px 32px;margin:auto}.lobby{display:grid;grid-template-columns:1fr 1fr;gap:44px;padding:35px 0 18px;align-items:center}.lobby h1{font-size:clamp(42px,5vw,65px);line-height:1.03;letter-spacing:-2.6px;margin:18px 0}.lobby h1 em{font-style:normal;color:#a56c2d}.lobby p{font-size:18px;line-height:1.6}.lobby .intro{font-size:20px;font-weight:850}.settings{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:22px}.settings label,.timing label{font-size:16px;font-weight:850;line-height:1.5}.settings select{display:block;width:100%;margin-top:7px;min-height:47px;background:#fffef7;border:1px solid #c4d0b2;border-radius:11px;padding:10px;color:#365937}.hint{margin:16px 0 14px;font-weight:750;color:#536c40}.timing{font-size:16px;padding:11px 14px;background:#eef0df;border-radius:12px}.timing summary{cursor:pointer;font-weight:850}.timing label{display:block;margin-top:12px}.timing select{padding:8px;background:#fff;border:1px solid #c4d0b2;border-radius:8px}.timing p{font-size:18px;margin:10px 0 0}.start{font-size:17px;min-height:54px;margin-top:20px;width:100%}.reward-note{font-size:18px!important;color:#737451;margin:18px 0 0}.lobby-art{text-align:center;position:relative}.lobby-art>p{font-weight:850;color:#6e8458}.treehouse-preview{position:relative;background:repeating-linear-gradient(0deg,#d3a676 0 32px,#bd905f 33px 35px);border:7px solid #9b6f45;border-radius:20px;margin:45px 0 0;padding:45px 18px 22px;box-shadow:0 10px 0 #c7cbb4}.roof{position:absolute;inset:-57px -17px auto;height:71px;clip-path:polygon(50% 0,100% 80%,98% 100%,2% 100%,0 80%);background:#466b42}.preview-sign{position:absolute;top:12px;left:50%;transform:translateX(-50%);white-space:nowrap;font-weight:900;font-size:16px;letter-spacing:1.5px;background:#f9e9b7;padding:9px 12px;border-radius:8px}.pattern-preview{height:210px;background:#f8f4df;border-radius:16px;overflow:hidden;border:6px solid #8d683f}.pattern-preview svg{width:100%;height:100%}.preview-banana{position:absolute;right:-12px;bottom:-20px;font-size:55px;transform:rotate(18deg)}.lobby-helper{width:200px;height:160px;object-fit:contain;display:block;margin:-20px auto 0;position:relative;filter:drop-shadow(0 7px 3px #3a573228)}.play-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:8px 0 15px}.play-heading h1{font-size:28px;margin:6px 0 0;letter-spacing:-.7px}.play-tools{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.play-tools button{font-size:16px}.round-bank{font-size:16px;font-weight:850}.game-panel{border:1px solid var(--line);border-radius:24px;background:#fffdf4;padding:15px 23px 17px;box-shadow:0 6px 0 #e3e5d3}.door-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:16px;font-weight:850;min-height:35px}.door-caption>span:first-child{color:#68834c}.reward-pill{background:#fff0c4;border:1px solid #e8d395;padding:6px 11px;border-radius:15px;white-space:nowrap}.treehouse-stage{position:relative;display:grid;place-items:center;min-height:296px;background:radial-gradient(ellipse at center,#e3edc9,transparent 70%);isolation:isolate}.door-frame{position:relative;width:min(80%,540px);height:260px;border:12px solid #c4a076;border-radius:30px 30px 10px 10px;background:#f4f2dc;box-shadow:0 0 0 4px #956e46,0 12px 0 7px #d5d9ba;perspective:900px;z-index:1}.symbol{position:absolute;inset:0;overflow:hidden;border-radius:18px;background:radial-gradient(ellipse at top,#fffdf1,#e9efda);display:grid;place-items:center}.symbol svg{width:100%;height:100%;max-height:250px}.door{position:absolute;inset:0;width:100%;height:100%;background:transparent!important;border:0!important;border-radius:18px;padding:0;box-shadow:none!important;overflow:visible;perspective:900px}.door:disabled{opacity:1;color:inherit}.door-leaf{position:absolute;top:0;bottom:0;width:50%;background:repeating-linear-gradient(90deg,#b6804b 0 18px,#b8814e 18px 21px,#cc995f 22px 44px);border:3px solid #926537;box-shadow:inset 0 0 0 7px #d9ae74,inset 0 0 0 10px #a47546,0 5px 12px #563d252a;transition:transform .38s cubic-bezier(.3,.6,.3,1);transform-style:preserve-3d;backface-visibility:hidden}.left-leaf{left:0;transform-origin:left center;border-radius:17px 0 0 6px}.right-leaf{right:0;transform-origin:right center;border-radius:0 17px 6px 0}.is-open .left-leaf{transform:rotateY(-110deg)}.is-open .right-leaf{transform:rotateY(110deg)}.wood-panel{position:absolute;inset:23px 23px;background:linear-gradient(130deg,#b8844d33,#976a3833);border:4px solid #a77643;border-radius:9px;box-shadow:inset 2px 3px 1px #e5bd8299}.door-star{position:absolute;top:29%;left:50%;transform:translateX(-50%);font-size:70px;line-height:1;font-style:normal;color:#f3d485;text-shadow:0 3px #956c3e}.door-handle{position:absolute;top:61%;width:16px;height:30px;background:linear-gradient(90deg,#835d28,#ffdf8b,#ae762e);border:2px solid #986a28;border-radius:12px;box-shadow:0 3px 2px #7353245c}.left-leaf .door-handle{right:8px}.right-leaf .door-handle{left:8px}.door-label{position:absolute;top:33%;left:50%;transform:translateX(-50%) rotate(3deg);font-size:22px;line-height:1.25;color:#ffedbd;font-weight:900;text-shadow:0 2px 0 #765c32}.door-step{position:absolute;bottom:-25px;left:-18px;right:-18px;height:12px;background:#b88c5b;border-radius:6px;box-shadow:0 6px #947246}.helper{position:absolute;bottom:14px;left:1px;width:114px;height:130px;object-fit:contain;z-index:3;filter:drop-shadow(0 5px 2px #25472d25);pointer-events:none}.leaf{position:absolute;font-size:33px;color:#b3c695;z-index:-1}.leaf-one{top:8px;right:8%}.leaf-two{bottom:25px;left:10%}.peek-track{height:5px;border-radius:5px;background:#e5e9d5;margin:7px auto 13px;width:min(80%,540px);overflow:hidden}.peek-track span{height:100%;display:block;transform-origin:left;width:100%;transform:scaleX(0);background:#7b9b5b}.answer-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.answer-heading h2{font-size:18px;letter-spacing:-.3px;margin:0 0 3px}.answer-heading p{font-size:18px;color:#748161;margin:0}.answer-heading button{white-space:nowrap;font-size:16px;min-height:44px}.answers{display:grid;grid-template-columns:repeat(var(--answer-columns,6),minmax(0,1fr));gap:8px;max-width:720px;margin:auto}.answer-number{font-size:34px;line-height:1.1;min-height:56px;padding:7px 2px;border-radius:12px;background:#f1f4e1;box-shadow:0 3px 0 #d1d9bd;border:2px solid #d4dfbf;font-weight:900;color:#315b38}.answer-number:hover:not(:disabled){background:#ffebac;border-color:#d5b256}.answer-number:disabled{opacity:.6}.answer-number.correct{opacity:1;background:#d5edb9;color:#365e26;border-color:#7fa958;box-shadow:0 3px #9db57a}.answer-number.try-again{border-color:#d0a45e;background:#ffefc9}.feedback-line{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:49px;margin-top:10px;font-size:16px}.feedback-line p{font-weight:850;margin:0;line-height:1.45}.feedback-line>span{font-size:16px;color:#7c8164;flex-shrink:0}progress{width:100%;height:9px;accent-color:#759d51;display:block}.pause-panel{position:fixed;inset:0;z-index:80;background:#24372bb0;display:grid;place-items:center;padding:20px;backdrop-filter:blur(5px)}.pause-panel>div{background:#fffdef;border-radius:25px;padding:30px;text-align:center;max-width:420px;box-shadow:0 18px 45px #13281944}.pause-panel>div>span{font-size:45px}.pause-panel h2{margin:12px 0}.pause-panel p{line-height:1.6}.results{position:relative;isolation:isolate;border:1px solid #dce2cb;border-radius:25px;background:#fffdf3;text-align:center;padding:30px 25px;overflow:hidden}.results h1{font-size:39px;letter-spacing:-1.6px;margin:13px 0 20px}.result-actions{position:relative;z-index:2;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 18px}.result-actions a{font-size:16px;font-weight:850;padding:13px}.results>img{width:170px;height:150px;object-fit:contain;animation:happy 1.6s ease-in-out infinite}.results>p{max-width:640px;margin:13px auto;line-height:1.6}.result-totals{display:flex;justify-content:center;gap:38px;flex-wrap:wrap;margin:25px 0}.result-totals>span{font-size:16px;color:#798262}.result-totals b{display:block;font-size:26px;color:#42613a;margin-bottom:5px}.confetti{position:absolute;inset:0;z-index:-1;pointer-events:none}.confetti i{position:absolute;top:-12px;left:var(--x);background:var(--c);width:9px;height:13px;border-radius:2px;animation:confetti var(--duration) var(--delay) ease-in infinite}.parent-notes{margin:25px 0 0;font-size:18px;color:#6c7658;line-height:1.6;overflow:auto}.parent-notes summary{font-weight:850;cursor:pointer;min-height:34px}.parent-notes table{border-collapse:collapse;width:100%;min-width:640px;margin:18px 0}.parent-notes th,.parent-notes td{text-align:left;padding:10px;border-bottom:1px solid #dde2cc}.warning{border-radius:10px;padding:12px;background:#fff0cd;font-size:18px;line-height:1.5}footer{display:flex;justify-content:space-between;gap:18px;max-width:1080px;margin:auto;padding:20px 28px 30px;border-top:1px solid #dde2cc;font-size:16px;color:#73805b;flex-wrap:wrap}@keyframes happy{50%{transform:translateY(-7px) rotate(2deg)}}@keyframes confetti{to{transform:translateY(760px) rotate(390deg)}}.reduce-motion *{animation:none!important;scroll-behavior:auto!important}.reduce-motion .door-leaf{transition:none}.reduce-motion .confetti i{top:calc(8% + var(--slot)*8%);transform:rotate(20deg)}
@media(max-width:760px){.header{padding:12px 17px;gap:10px}.brand{font-size:17px}.brand img{width:34px;height:34px}.header nav{gap:4px;font-size:16px}.header button{font-size:16px;padding:8px}.header nav a{padding:7px}.header nav .game-fullscreen-button{font-size:16px;padding:8px}.header .fullscreen-status{display:none}main{padding:10px 17px 28px}.lobby{grid-template-columns:1fr;gap:14px;padding:20px 0}.lobby-art{max-width:440px;width:100%;margin:auto}.lobby h1{font-size:49px}.lobby h1 br{display:none}.lobby h1 em{display:block}.treehouse-preview{margin-top:40px}.pattern-preview{height:170px}.lobby-helper{height:135px;width:170px}.play-heading{align-items:flex-start;margin:4px 0 12px}.play-heading h1{font-size:24px}.play-tools{gap:6px;max-width:190px}.play-tools button{font-size:16px;padding:8px;min-height:36px}.round-bank{font-size:16px;width:100%;text-align:right}.game-panel{padding:12px 13px 14px;border-radius:20px}.door-caption{font-size:16px;gap:5px;flex-wrap:wrap}.reward-pill{padding:5px 7px}.treehouse-stage{min-height:241px}.door-frame{width:88%;height:211px;border-width:9px}.helper{width:82px;height:102px;left:-13px;bottom:3px}.wood-panel{inset:15px}.door-label{font-size:18px}.door-star{font-size:53px}.door-handle{width:13px;height:26px}.peek-track{margin:6px auto 12px;width:88%}.answer-heading h2{font-size:16px}.answer-heading p{font-size:18px}.answer-heading button{font-size:16px;padding:9px 11px}.answers{grid-template-columns:repeat(var(--mobile-columns,5),minmax(0,1fr));gap:7px}.answer-number{font-size:30px;min-height:49px}.feedback-line{align-items:flex-start;padding-top:6px;min-height:52px;font-size:16px;gap:5px;flex-direction:column;justify-content:center}.feedback-line>span{font-size:16px}.results{padding:25px 16px}.results h1{font-size:33px}.result-actions{gap:8px}.result-actions button{font-size:16px;padding:10px}.result-totals{gap:22px}.results>p{font-size:18px}footer{padding-left:17px;padding-right:17px}.parent-notes{font-size:18px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}.door-leaf{transition:none}.confetti i{top:calc(8% + var(--slot)*8%);transform:rotate(20deg)}}

/* Make the two setup choices easy to spot and read. */
.settings{background:#fff0bb;border:2px solid #d4af59;border-radius:19px;padding:18px 19px 20px;gap:15px;box-shadow:0 5px 0 #e8dab0}.settings h2{grid-column:1/-1;font-size:23px;line-height:1.25;letter-spacing:-.5px;color:#3e5b32;margin:0 0 2px}.settings label{font-size:16px;font-weight:900;color:#3f5d35}.settings select{font-size:18px;font-weight:850;min-height:58px;border:2px solid #8ea775;background:#fffef8;padding:12px;color:#2d512f;box-shadow:0 3px 0 #e1d5a6}.advance-status{font-size:18px;font-weight:850;line-height:1.4;max-width:180px;color:#42682e;background:#e5f1d4;border:1px solid #c2d7a8;padding:10px 13px;border-radius:12px;text-align:center}
@media(max-width:760px){.settings{padding:16px 14px 18px;gap:12px}.settings h2{font-size:22px}.settings label{font-size:16px}.settings select{font-size:17px;min-height:56px;padding:10px 8px}.advance-status{font-size:18px;max-width:145px;padding:8px 10px}}

.play-tools #change-level{background:#fff0bb;border:2px solid #d4af59;color:#3f5d35;font-size:16px;min-height:44px}

.settings{grid-template-columns:repeat(2,minmax(0,1fr))}.settings label{min-width:0}.settings select{min-width:0;width:100%}
@media(max-width:520px){.settings{grid-template-columns:1fr}.settings select{font-size:18px;min-height:58px}}

/* Celebrate each correct answer directly on the door, with or without sound. */
.door-frame.has-success{border-color:#48915a;box-shadow:0 0 0 4px #257344,0 0 0 9px #b8df9e,0 12px 0 7px #d5d9ba}
.door-success{position:absolute;inset:0;z-index:4;display:grid;place-items:center;overflow:hidden;border-radius:18px;background:radial-gradient(ellipse at center,#e5f9d9e8,#e5f9d966);pointer-events:none}
.door-success-card{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:12px 25px 14px;border:2px solid #90c486;border-radius:23px;background:#fffdf3f5;color:#205331;box-shadow:0 6px 18px #24533426;animation:success-pop .32s ease-out}
.success-check{width:91px;height:91px;filter:drop-shadow(0 3px 0 #c3ddb1)}
.door-success-card strong{font-size:27px;line-height:1.1}.door-success-card>span{font-size:16px;font-weight:850}
.door-confetti{position:absolute;inset:0;pointer-events:none}.door-confetti i{position:absolute;left:50%;top:50%;width:8px;height:13px;border-radius:2px;background:var(--burst-color);animation:door-burst 1.15s ease-out forwards}
@keyframes success-pop{from{transform:scale(.88)}to{transform:scale(1)}}
@keyframes door-burst{from{opacity:1;transform:translate(-50%,-50%) rotate(0deg)}to{opacity:0;transform:translate(calc(-50% + var(--burst-x)),calc(-50% + var(--burst-y))) rotate(var(--burst-spin))}}
@media(max-width:760px){.success-check{width:70px;height:70px}.door-success-card{padding:9px 18px 11px;border-radius:18px}.door-success-card strong{font-size:23px}.door-success-card>span{font-size:16px}}
.reduce-motion .door-confetti{display:none}
@media(prefers-reduced-motion:reduce){.door-confetti{display:none}}
