/* Best Nest Academy schoolhouse — the daily lesson rooms */
body.schoolhouse-mode .introduction{display:none}
body.schoolhouse-mode{background:linear-gradient(#bce9ff 0 42%,#8cd26e 42% 100%);min-height:100vh}
body.schoolhouse-mode .site-head{background:#174f85;border-bottom:4px solid #ffd55b}
body.schoolhouse-mode #garage-start{max-width:980px;margin:22px auto;border:5px solid #fff1a4;border-radius:28px;overflow:hidden;box-shadow:0 12px 0 #2b6a3d;background:linear-gradient(#c8efff 0 54%,#7fc960 54%)}
body.schoolhouse-mode .garage-house{width:min(78%,650px);height:245px;margin:40px auto 0;background:linear-gradient(90deg,#b42f31 0 10%,#d94742 10% 90%,#b42f31 90%);border:8px solid #fffaf0;border-bottom:0;border-radius:95px 95px 0 0;position:relative;box-shadow:inset 0 14px #ef7068,0 6px #81302c}
body.schoolhouse-mode .garage-house>span{position:absolute;top:42px;left:50%;translate:-50%;color:#fff;font-size:clamp(1.4rem,3vw,2.4rem);font-weight:900;letter-spacing:.05em;text-shadow:0 3px #7b2228;white-space:nowrap}
body.schoolhouse-mode .garage-house:before{content:"BEST NEST ACADEMY";position:absolute;top:-25px;left:50%;translate:-50%;background:#b8242d;border:5px solid #fff;border-radius:14px;padding:10px 22px;color:#fff;font-weight:900;font-size:clamp(1rem,2.4vw,1.8rem);white-space:nowrap;box-shadow:0 4px #743424}
body.schoolhouse-mode .garage-doors{position:absolute!important;bottom:0;left:50%;translate:-50%;width:42%;height:48%;background:repeating-linear-gradient(90deg,#fff 0 34px,#d8e7ef 35px 40px);border:6px solid #f8f8f0;border-bottom:0;border-radius:22px 22px 0 0}
body.schoolhouse-mode .garage-car{font-size:4rem!important;filter:drop-shadow(0 8px 0 #438739)}
body.schoolhouse-mode .garage-panel{background:#fffdf1;border:4px solid #ffc74d;border-radius:20px;padding:20px;margin:-12px auto 26px;max-width:680px;position:relative;z-index:2}
body.schoolhouse-mode #leave-garage{background:#277d48!important;border:0;border-radius:14px;font-size:1.1rem;font-weight:900;padding:15px 25px;box-shadow:0 4px #15522c}
body.schoolhouse-mode .calendar{max-width:980px;margin:18px auto;background:#fff9dc;border:4px solid #ffcf56;border-radius:22px;padding:18px}
body.schoolhouse-mode .calendar h2{text-align:center;color:#184d7d;margin:0 0 12px}
body.schoolhouse-mode .day-buttons{justify-content:center}
body.schoolhouse-mode .game{max-width:1080px;margin:0 auto;padding:12px}
body.schoolhouse-mode .day-heading{background:#fff9df;border:4px solid #ffcc4c;border-radius:20px;padding:15px 20px;margin-bottom:14px}
body.schoolhouse-mode .world{height:520px;max-width:1050px;margin:0 auto;border:8px solid #70452d;border-radius:28px 28px 12px 12px;overflow:hidden;background:linear-gradient(#bceeff 0 29%,#f8f1c9 29% 100%);box-shadow:0 12px 0 #386f3c;position:relative}
body.schoolhouse-mode .world:before{content:"WELCOME TO TODAY’S SCHOOLHOUSE";position:absolute;z-index:1;top:22px;left:50%;translate:-50%;background:#1e5e93;border:5px solid #fff3a2;border-radius:15px;padding:9px 22px;color:#fff;font-weight:900;font-size:clamp(1rem,2.7vw,1.65rem);white-space:nowrap;box-shadow:0 4px #123f64}
body.schoolhouse-mode .world:after{content:"";position:absolute;inset:92px 7% 0;background:linear-gradient(90deg,#b52d32 0 7%,#dc4945 7% 93%,#b52d32 93%);border:7px solid #fffaf0;border-bottom:0;border-radius:70px 70px 0 0;box-shadow:inset 0 20px #fff}
body.schoolhouse-mode .world .sky,.world .hills,.world .path,.world .day-landmark,.world>.benny,.world>.speech{z-index:2}
body.schoolhouse-mode .world .sky,.world .hills,.world .path{display:none}
body.schoolhouse-mode #day-landmark{position:absolute;z-index:3;top:110px;left:50%;translate:-50%;font-size:3.7rem;text-shadow:0 3px #fff}
body.schoolhouse-mode .world>.benny{position:absolute;z-index:4;bottom:18px;left:50%;translate:-50%;font-size:4rem}
body.schoolhouse-mode .world>.speech{position:absolute;z-index:5;bottom:22px;left:calc(50% + 64px);max-width:270px;background:#fff;border:3px solid #7ba6c7;border-radius:16px;padding:10px;font-weight:700}
body.schoolhouse-mode .mission-stops{position:absolute!important;z-index:6;inset:115px 9% 56px}
body.schoolhouse-mode .mission-stops .stop{width:clamp(112px,16vw,160px)!important;min-height:103px;border:5px solid #73442c!important;border-radius:14px 14px 4px 4px!important;background:linear-gradient(#5ca5d6 0 52%,#f4c96c 53% 100%)!important;box-shadow:inset 0 0 0 4px #d5f2ff,0 5px #5a3626;color:#1b3551!important;font-weight:900;padding:8px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
body.schoolhouse-mode .mission-stops .stop:nth-child(1){background:linear-gradient(#d6a453 0 52%,#ffe39b 53% 100%)!important}
body.schoolhouse-mode .mission-stops .stop:nth-child(2){background:linear-gradient(#78b76d 0 52%,#dff6cf 53% 100%)!important}
body.schoolhouse-mode .mission-stops .stop:nth-child(3){background:linear-gradient(#74b8dc 0 52%,#d8f2ff 53% 100%)!important}
body.schoolhouse-mode .mission-stops .stop:nth-child(4){background:linear-gradient(#d58a75 0 52%,#ffe0d4 53% 100%)!important}
body.schoolhouse-mode .mission-stops .stop:nth-child(5){background:linear-gradient(#ce79a9 0 52%,#ffdced 53% 100%)!important}
body.schoolhouse-mode .mission-stops .stop:nth-child(6){background:linear-gradient(#9476c9 0 52%,#e5dbff 53% 100%)!important}
body.schoolhouse-mode .mission-stops .stop .emoji{font-size:2rem}
body.schoolhouse-mode .mission-stops .stop small{font-size:.72rem}
body.schoolhouse-mode .mission-stops .stop.done{filter:saturate(.72);box-shadow:inset 0 0 0 4px #d5f2ff,0 5px #5a3626,0 0 0 4px #ffe05b}
body.schoolhouse-mode .mission-panel{border:4px solid #f2bc43;border-radius:22px;background:#fffdf1}
body.schoolhouse-mode .mission-header{background:#e7f4ff;border-radius:16px;padding:12px}
@media(max-width:700px){body.schoolhouse-mode .world{height:650px}.mission-stops{inset:112px 5% 72px!important}.world>.benny{bottom:12px;left:25%;font-size:3rem}.world>.speech{bottom:13px;left:42%;font-size:.82rem;max-width:190px}.mission-stops .stop{width:108px!important;min-height:92px!important}.garage-house{height:200px!important}}

/* White shutters and classic front windows make the welcome building unmistakably a schoolhouse. */
body.schoolhouse-mode .garage-house:after{content:"";position:absolute;left:12%;right:12%;top:92px;height:62px;background:linear-gradient(90deg,#fff 0 14%,#8ec3df 14% 34%,#fff 34% 41%,transparent 41% 59%,#fff 59% 66%,#8ec3df 66% 86%,#fff 86%);border:5px solid #fff;border-radius:5px;box-shadow:0 6px 0 #8a2428}
body.schoolhouse-mode .garage-house{overflow:visible}

/* In the driving game, each lesson opens inside this compact red schoolhouse foyer. */
body.school-embedded.schoolhouse-mode .world{display:block!important;height:190px!important;min-height:190px!important;margin:0 0 14px!important;border-radius:22px!important}
body.school-embedded.schoolhouse-mode .world:before{content:"BEST NEST ACADEMY · TODAY’S LESSON";top:13px;font-size:clamp(.8rem,2.4vw,1.25rem)}
body.school-embedded.schoolhouse-mode .world:after{inset:58px 12% 0;border-radius:48px 48px 0 0;background:linear-gradient(90deg,#b52d32 0 8%,#df4a46 8% 92%,#b52d32 92%);border-color:#fff}
body.school-embedded.schoolhouse-mode .world .mission-stops,body.school-embedded.schoolhouse-mode .world>.benny,body.school-embedded.schoolhouse-mode .world>.speech{display:none!important}
body.school-embedded.schoolhouse-mode #day-landmark{top:73px;font-size:2.6rem;z-index:4}
body.school-embedded.schoolhouse-mode .world:after{box-shadow:inset 0 0 0 7px #e96159}
body.school-embedded.schoolhouse-mode .mission-panel{margin-top:0!important}
