
*{box-sizing:border-box}body{margin:0;font-family:'Susu',system-ui,sans-serif;color:#225747;background:#a6dae9}button,input,a{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #174e69;outline-offset:5px}[hidden]{display:none!important}.welcome-world{position:relative;isolation:isolate;min-height:100svh;overflow:hidden;background:#a6dae9 url('/assets/welcome/archipelago-gateway.webp') center/cover no-repeat;display:flex;flex-direction:column}.welcome-haze{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#c9f2ff88,transparent 22%,transparent 85%,#1b635b33)}.welcome-top{display:flex;justify-content:space-between;align-items:center;padding:clamp(15px,2.8vw,34px) clamp(18px,4vw,64px);gap:12px}.welcome-brand{display:flex;align-items:center;gap:9px;color:#235c4b;font-size:12px;font-weight:700;letter-spacing:1.3px;text-decoration:none;text-shadow:0 1px #fff}.welcome-brand>span{font-size:26px}.welcome-tools{display:flex;gap:10px}.welcome-tools button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:9px 15px;border:2px solid #fff9;border-radius:30px;background:#fffcf0df;color:#35604d;box-shadow:0 3px 0 #608f7a32;backdrop-filter:blur(10px)}.welcome-tools button>span{font-size:22px;line-height:1}.welcome-tools button>b{font-size:11px}.welcome-stage{width:min(1250px,94%);margin:auto;flex:1;display:grid;grid-template-columns:43% 57%;align-items:center;position:relative;padding:0 0 20px;min-height:540px}.welcome-character{position:relative;align-self:center;display:flex;align-items:center;justify-content:center;flex-direction:column;margin-top:90px;min-width:0}.mam-greeting{position:relative;z-index:2;font-size:16px;font-weight:700;background:#fffdf1f5;padding:14px 24px;border:3px solid white;border-radius:25px;box-shadow:0 5px 0 #528c6c26;transform:rotate(-4deg);animation:greetingFloat 4s ease-in-out infinite;white-space:nowrap}.mam-greeting:after{content:'';position:absolute;left:48%;bottom:-13px;border:8px solid transparent;border-top-color:#fffdf1;border-bottom:0;transform:rotate(10deg)}.welcome-mam{position:relative;width:min(100%,450px);aspect-ratio:1;border:0;padding:0;background:none;filter:drop-shadow(0 14px 8px #28524630);z-index:1;transform-origin:50% 90%;animation:mamDance 2.8s ease-in-out infinite}.mam-dancer{display:block;width:100%;height:100%;background:url('/assets/islands/mam-poses.webp') 66.6667% 100%/400% 200% no-repeat;animation:mamPoses 5.6s steps(1,end) infinite}.mam-ground{position:absolute;bottom:-3px;width:55%;height:26px;border-radius:50%;background:#224c3c28;filter:blur(4px);animation:groundDance 2.8s ease-in-out infinite}.mam-spark{position:absolute;color:#fff9a2;text-shadow:0 3px 0 #cc952c50;animation:sparkFloat 2.8s ease-in-out infinite;font-size:46px;pointer-events:none}.s1{top:15%;left:2%}.s2{right:3%;top:35%;color:#ffa97d;animation-delay:-1s}.s3{left:10%;bottom:18%;animation-delay:-1.8s}.welcome-content{text-align:center;padding:10px 16px 25px;position:relative}.welcome-eyebrow{font-weight:700;letter-spacing:2px;font-size:11px;color:#326755;text-shadow:0 1px 6px #fff;margin:0 0 16px}.welcome-content h1{font-family:'Susu',sans-serif;margin:0;line-height:1.04;transform:rotate(-3deg);filter:drop-shadow(0 8px 0 #27675425)}.welcome-content h1>span{display:block;color:#fff9d7;font-size:clamp(44px,5.7vw,80px);-webkit-text-stroke:2px #327358;paint-order:stroke fill;text-shadow:0 3px #357151}.welcome-content h1 strong{display:block;position:relative;font-size:clamp(96px,12vw,163px);font-weight:700;letter-spacing:5px;color:#ffd34f;-webkit-text-stroke:8px #fff7da;paint-order:stroke fill;text-shadow:0 7px #cf8033,0 12px #2b6a48,4px 10px #2b6a48,-4px 10px #2b6a48}.title-leaf{position:absolute;font-family:'Susu',system-ui;font-size:.32em;right:4%;top:-4%;letter-spacing:0;-webkit-text-stroke:0;text-shadow:none;transform:rotate(20deg)}.welcome-tagline{font-family:'Susu',sans-serif;font-size:clamp(20px,2.4vw,30px);color:#315e45;text-shadow:0 2px #fff8;margin:28px 0 24px}.welcome-start{display:flex;justify-content:center;align-items:center;gap:18px;min-height:80px;width:min(420px,100%);margin:0 auto;padding:16px 25px;border:3px solid #fff3b6;border-radius:27px;color:#70430f;background:linear-gradient(#ffe779,#ffc83e 75%);box-shadow:0 8px 0 #bf8131,0 11px 0 #fff7db90,0 16px 24px #37675526;font-family:'Susu',sans-serif;font-weight:700;font-size:clamp(26px,3vw,37px);text-decoration:none;transition:transform .18s,filter .18s,box-shadow .18s}.welcome-start:hover{filter:brightness(1.05);transform:translateY(-3px)}.welcome-start:active{transform:translateY(5px);box-shadow:0 3px 0 #bf8131,0 5px 12px #37675526}.welcome-start svg{width:30px;height:30px;fill:currentColor}.welcome-start>span{font-size:.7em}.welcome-start:disabled{opacity:.65;cursor:wait;transform:none}.welcome-invite{font-size:13px;color:#315c4a;margin:25px 0 22px;text-shadow:0 1px 5px white}.welcome-chips{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.welcome-chips>span{background:#fffdf0cc;border:1px solid white;border-radius:30px;padding:9px 15px;font-size:12px;font-weight:700;box-shadow:0 3px 7px #27604d12;backdrop-filter:blur(8px)}.welcome-footer{display:flex;justify-content:space-between;gap:15px;padding:18px clamp(20px,4vw,64px);font-size:10px;font-weight:700;color:white;text-shadow:0 2px 5px #194d4d;letter-spacing:1px}.sky-cloud{position:absolute;pointer-events:none;z-index:-1;width:250px;height:50px;border-radius:50%;background:#ffffff45;filter:blur(9px);animation:cloudDrift 30s ease-in-out infinite}.cloud-one{top:13%;left:3%}.cloud-two{top:9%;right:10%;width:180px;animation-delay:-14s}.welcome-leaves{position:absolute;inset:0;z-index:-1;pointer-events:none}.welcome-leaves i{position:absolute;top:-10%;left:9%;width:15px;height:26px;border-radius:100% 0 100% 0;background:linear-gradient(120deg,#f6ee8b,#9ec95d);animation:leafDrift 17s linear infinite;opacity:.8}.welcome-leaves i:nth-child(2){left:30%;animation-delay:-8s;width:10px;height:17px}.welcome-leaves i:nth-child(3){left:64%;animation-delay:-3s}.welcome-leaves i:nth-child(4){left:82%;animation-delay:-12s;width:12px;height:20px}.welcome-leaves i:nth-child(5){left:45%;animation-delay:-15s}.registration-card{width:min(470px,94%);margin:10px auto 25px;padding:25px 35px 20px;background:linear-gradient(155deg,#fffef7f7,#f7ffe9f5);border:3px solid #fff;border-radius:35px;box-shadow:0 8px 0 #729e6835,0 22px 60px #1a635636;text-align:center;backdrop-filter:blur(18px)}.registration-back{display:block;border:0;background:none;padding:4px 0 10px;color:#5b7965;font-size:12px;min-height:38px}.registration-seal{display:grid;place-items:center;width:66px;height:66px;margin:0 auto 14px;border-radius:24px;background:#e6f1d8;border:2px solid #fff;font-size:35px;transform:rotate(-8deg);box-shadow:0 4px #adc79e40}.registration-card .welcome-eyebrow{font-size:10px;margin-bottom:10px}.registration-card h2{font-family:'Susu',sans-serif;font-size:30px;line-height:1.3;margin:0 0 12px;outline:none}.registration-intro,.registration-card p{font-size:13px;line-height:1.8}.registration-intro{color:#627361;margin:0 0 18px}.registration-card form{text-align:left}.registration-card label{display:block;font-size:14px;font-weight:700;margin:18px 0 8px}.registration-card input{display:block;width:100%;font:16px 'Susu',system-ui;padding:15px 17px;border:2px solid #d4e3c9;border-radius:15px;color:#315f46;background:#fff;min-height:52px}.registration-note{color:#71836c;margin:6px 0 19px!important;font-size:11px!important}.registration-card .welcome-start{font-size:23px;min-height:61px;border-radius:20px;gap:10px;padding:13px 16px}.existing-profile{display:block;text-align:center;font-size:12px;color:#416b54;margin:25px 0 10px;text-underline-offset:4px;line-height:1.8}.registration-foot{margin-top:16px;padding-top:16px;border-top:1px solid #dfe8d2;color:#829277;font-size:10px;letter-spacing:1px}.registration-card small{display:block;line-height:1.7;color:#7e8b73;font-size:11px;margin-top:25px}#registrationError{color:#aa4937;margin:12px 0 0}#registrationError:empty{display:none}#registrationRetry{background:#e9efdc;color:#315f46;border:1px solid #c2d4b3;border-radius:12px;min-height:44px;padding:10px 18px;margin:14px auto}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.is-encore{animation:mamEncore 1s ease-in-out!important}.motion-paused *,.motion-paused *:before,.motion-paused *:after{animation-play-state:paused!important}
@keyframes mamDance{0%,100%{transform:translateY(0) rotate(-5deg)}25%{transform:translateY(-18px) rotate(5deg)}50%{transform:translateY(0) rotate(5deg)}75%{transform:translateY(-12px) rotate(-4deg)}}@keyframes mamPoses{0%,100%{background-position:66.6667% 100%}25%{background-position:33.3333% 0}50%{background-position:0 100%}75%{background-position:100% 0}}@keyframes greetingFloat{50%{transform:translateY(-5px) rotate(-2deg)}}@keyframes groundDance{25%,75%{transform:scale(.8);opacity:.5}}@keyframes sparkFloat{50%{transform:translateY(-18px) rotate(20deg);opacity:.4}}@keyframes cloudDrift{50%{transform:translateX(80px)}}@keyframes leafDrift{to{transform:translate(80px,110vh) rotate(420deg)}}@keyframes mamEncore{0%,100%{transform:rotate(0)}25%{transform:translateY(-35px) rotate(-13deg)}60%{transform:translateY(-15px) rotate(13deg)}}
@media(min-width:900px) and (max-height:790px){.welcome-stage{min-height:450px}.welcome-character{margin-top:30px}.welcome-mam{width:min(100%,370px)}.welcome-content h1 strong{font-size:125px}.welcome-content h1>span{font-size:62px}.welcome-tagline{margin:20px 0}.welcome-start{min-height:70px}.welcome-top{padding-top:16px;padding-bottom:10px}.registration-card{padding:14px 28px;margin:0 auto 12px}.registration-seal{width:48px;height:48px;font-size:28px;margin-bottom:9px}.registration-card h2{font-size:27px}.registration-intro{margin-bottom:8px}.registration-foot{margin-top:10px;padding-top:10px}.welcome-footer{padding-top:10px;padding-bottom:12px}}
@media(max-width:700px){.welcome-world{background-position:35% center}.welcome-top{padding:14px 16px}.welcome-brand{font-size:9px;letter-spacing:.8px;gap:6px}.welcome-brand>span{font-size:22px}.welcome-tools{gap:6px}.welcome-tools button{width:42px;min-height:42px;padding:6px}.welcome-tools button b{display:none}.welcome-stage{width:100%;grid-template-columns:1fr;min-height:0;align-content:center;gap:0;padding:0 15px 20px}.welcome-character{margin-top:0;order:2}.welcome-content{order:1;padding:15px 0 8px}.welcome-eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:13px}.welcome-content h1>span{font-size:43px;-webkit-text-stroke:1px #327358}.welcome-content h1 strong{font-size:90px;letter-spacing:3px;-webkit-text-stroke:6px #fff7da}.title-leaf{right:20%}.welcome-tagline{font-size:21px;margin:20px 0 17px}.welcome-start{width:min(310px,100%);min-height:65px;font-size:29px;border-radius:23px;padding:12px 18px}.welcome-start svg{width:24px;height:24px}.welcome-invite{font-size:11px;margin:22px 0 12px}.welcome-chips{gap:7px}.welcome-chips>span{font-size:10px;padding:7px 11px}.welcome-mam{width:230px}.mam-greeting{font-size:11px;padding:8px 16px;border-width:2px;margin-top:15px;position:absolute;left:50%;top:18px;transform:translateX(-50%) rotate(-4deg);animation:none;z-index:3;white-space:nowrap}.welcome-character{padding-top:50px}.mam-spark{font-size:30px}.mam-ground{width:135px;height:18px;bottom:5px}.welcome-footer{padding:10px 18px;font-size:8px;letter-spacing:.6px}.registration-card{order:1;max-width:400px;margin:12px auto;padding:20px 25px;border-radius:29px;width:100%}.registration-card h2{font-size:28px}.registration-seal{width:55px;height:55px;font-size:30px}.registration-open .welcome-character{display:none}.registration-open .welcome-stage{flex:1}.registration-card .welcome-eyebrow{font-size:9px}.registration-card .welcome-start{width:100%;font-size:22px}.registration-open .welcome-world{background-position:40% center}}
@media(max-width:700px) and (max-height:750px){.welcome-content{padding-top:7px}.welcome-content h1>span{font-size:37px}.welcome-content h1 strong{font-size:76px}.welcome-tagline{margin:18px 0 12px;font-size:18px}.welcome-mam{width:180px}.welcome-character{padding-top:39px}.mam-greeting{top:2px}.welcome-chips{display:none}.welcome-invite{margin-bottom:4px}.welcome-stage{padding-bottom:7px}.welcome-footer{padding:7px 16px}.registration-card{padding:15px 22px}.registration-seal{display:none}.registration-intro{margin-bottom:8px}}
@media(max-width:900px) and (orientation:landscape) and (max-height:540px){.welcome-stage{grid-template-columns:40% 60%;min-height:0;align-content:center}.welcome-character{order:0;padding:20px 0 0}.welcome-mam{width:220px}.welcome-content{padding:0 0 10px}.welcome-content h1>span{font-size:30px}.welcome-content h1 strong{font-size:70px}.welcome-tagline{font-size:17px;margin:16px 0 10px}.welcome-start{min-height:52px;font-size:24px;width:270px}.welcome-chips{display:none}.welcome-invite{margin:15px 0 0}.welcome-eyebrow{font-size:8px;margin-bottom:8px}.mam-greeting{font-size:10px;top:-8px}.welcome-top{padding:8px 18px}.welcome-footer{padding:8px 18px}.registration-open .welcome-stage{display:block}.registration-card{max-width:480px;padding:15px 25px}.registration-open .welcome-world{overflow-y:auto}.registration-seal{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.registration-roles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 12px}
.registration-roles[hidden]{display:none}
.registration-roles button{min-width:0;padding:16px 10px;border:2px solid #d6e4c9;border-radius:20px;background:#fffef8;color:#42634a;box-shadow:0 4px 0 #d6e4c966;transition:transform .2s,border-color .2s,background .2s}
.registration-roles button:hover{transform:translateY(-3px);border-color:#8bb574;background:#f2f9e7}
.registration-roles button[aria-pressed="true"]{border-color:#548c57;background:#e6f3da;box-shadow:0 4px 0 #93b98355}
.registration-roles button:focus-visible{outline:3px solid #c2932f;outline-offset:3px}
.registration-roles button>span{display:block;font-size:32px;margin-bottom:10px}
.registration-roles button>b{display:block;font-size:14px;line-height:1.5}
.registration-roles button>small{font-size:10px;margin-top:7px;line-height:1.5;color:#718267}
.registration-roles button:disabled{opacity:.65;cursor:wait;transform:none}
.registration-card .welcome-start{font-size:clamp(17px,2vw,23px)}
@media(prefers-reduced-motion:reduce){.registration-roles button{transition:none}.registration-roles button:hover{transform:none}}
.auth-google{display:flex;align-items:center;justify-content:center;gap:12px;min-height:56px;margin:18px 0 4px;padding:12px 18px;border:2px solid #d6e4c9;border-radius:18px;background:#fff;color:#2f4f3c;font-weight:700;font-size:15px;text-decoration:none;box-shadow:0 4px 0 #d6e4c966;transition:transform .2s,border-color .2s}
.auth-google:hover{transform:translateY(-2px);border-color:#8bb574}
.auth-google svg{width:24px;height:24px;flex:none}
.auth-divider{display:flex;align-items:center;gap:12px;margin:18px 0 0;color:#829277;font-size:11px;letter-spacing:.5px}
.auth-divider:before,.auth-divider:after{content:'';flex:1;border-top:1px solid #dfe8d2}
.auth-email label{margin:14px 0 6px}
.auth-email .welcome-start{margin-top:18px}
.auth-switch{display:block;margin:14px auto 0;border:0;background:none;color:#416b54;font-size:13px;min-height:40px;text-underline-offset:4px}
.auth-switch:hover{text-decoration:underline}
.auth-notice{background:#eef6e4;border:1px solid #cfe2bd;border-radius:14px;padding:10px 14px;color:#315f46;margin:12px 0 0}
@media(prefers-reduced-motion:reduce){.auth-google{transition:none}.auth-google:hover{transform:none}}

.class-login{margin:16px 0 4px}.class-start{width:100%}.class-hint{font-size:12px;color:#5d7466;margin:8px 0 0;text-align:center}
.class-login label{display:block;font-size:14px;font-weight:700;margin:6px 0 8px;text-align:left}
#classCode{display:block;width:100%;font:700 26px ui-monospace,monospace;letter-spacing:6px;text-align:center;text-transform:uppercase;padding:12px;border:2px solid #d4e3c9;border-radius:16px;background:#fff;color:#315f46;margin-bottom:14px}
.class-title{font-weight:700;font-size:16px;margin:4px 0 12px;color:#2f5a48}
.class-names{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;max-height:46vh;overflow-y:auto;padding:2px}
.class-names button{min-height:52px;padding:10px;border:2px solid #d6e4c9;border-radius:16px;background:#fffef8;color:#2f5a48;font:700 15px 'Susu',system-ui;box-shadow:0 3px 0 #d6e4c966;text-align:center}
.class-names button:hover{border-color:#8bb574;background:#f2f9e7}
.pin-dots{display:flex;justify-content:center;gap:14px;margin:8px 0 16px}.pin-dots i{width:20px;height:20px;border-radius:50%;border:3px solid #8bb574;background:#fff}.pin-dots i.on{background:#2c6959;border-color:#2c6959}
.pin-dots.shake{animation:pin-shake .4s}@keyframes pin-shake{25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}
.pin-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:280px;margin:0 auto}
.pin-pad button{min-height:62px;border:2px solid #d6e4c9;border-radius:18px;background:#fffef8;color:#2f5a48;font:800 26px 'Susu',system-ui;box-shadow:0 4px 0 #d6e4c999}
.pin-pad button:active{transform:translateY(3px);box-shadow:0 1px 0 #d6e4c999}
#adultAuth .auth-divider{margin-top:22px}
@media(prefers-reduced-motion:reduce){.pin-dots.shake{animation:none}}
/* "SUSULAND" is longer than the old title: size it by viewport width so it never overflows its column. */
.welcome-content h1 strong{font-size:clamp(64px,7.6vw,112px);letter-spacing:3px}
@media(min-width:900px) and (max-height:790px){.welcome-content h1 strong{font-size:clamp(64px,7vw,100px)}}
@media(max-width:700px){.welcome-content h1 strong{font-size:13.5vw;letter-spacing:2px;-webkit-text-stroke:5px #fff7da}.welcome-footer span:last-child{display:none}}
@media(max-width:900px) and (orientation:landscape) and (max-height:540px){.welcome-content h1 strong{font-size:min(70px,7vw)}}
/* Class sign-in steps: one back button, less text above the PIN pad. */
.registration-card.class-flow .registration-back,.registration-card.class-flow .registration-intro{display:none}
