:root{--forest:#084b35;--deep:#063e2e;--gold:#d5ac45;--ivory:#fbf5e4;--sage:#e2ebca;--line:#c7d5b2}
body{color:var(--deep)}button,a,input,select,textarea{font-family:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #cb971e;outline-offset:3px}.button{font-size:1rem}.button.gold{background:linear-gradient(#ffce5b,#efb330);border:1px solid #ce941c;color:var(--deep);font-weight:750}.legacy-controls,#roomSetup{display:none!important}
body .site-header .brand-small{display:none}.brand-logo-full{display:none}body .site-header .brand-logo{border:0!important;padding-right:0!important;width:54px!important;height:54px!important}body .site-header .brand{gap:12px}body .site-header #logoutButton{flex:none;white-space:nowrap;height:46px;min-height:0;margin:0;padding:10px 16px;background:#fffdf5;color:#80503c;border:1px solid #cebcb0;border-radius:12px;font-size:1rem}body[data-role=none] #menuToggle{display:none!important}
body:not(.exploring) #main{background:radial-gradient(ellipse at 85% 100%,#578f5a44,transparent 58%),linear-gradient(120deg,#123d2d,#075440)}body:not(.exploring) #world{opacity:0;pointer-events:none}body:not(.exploring) .world-shade{display:none}body:not(.exploring) #welcomeBackdrop{display:block;position:absolute;inset:0;background:radial-gradient(ellipse at 3% 10%,#98ba4d35,transparent 35%),radial-gradient(ellipse at 96% 0,#426c3a55,transparent 35%);opacity:1;pointer-events:none}body:not(.exploring) .site-header{inset:16px 24px auto;height:104px;background:var(--ivory);border:2px solid var(--gold);border-radius:30px;box-shadow:0 8px 24px #001d2940;padding:12px 30px}body:not(.exploring) .site-header .brand-logo{display:none}body:not(.exploring) .brand-logo-full{display:block;width:350px;max-width:100%;height:82px;object-fit:contain;object-position:left}body:not(.exploring) .site-header .brand>span{display:none}body:not(.exploring) .site-header #musicDock{background:#fbf6e6;border-color:#899e7b}
body:not(.exploring) #intro{position:absolute;left:24px;top:136px;bottom:94px;right:auto;width:43%;max-width:none;max-height:none;box-sizing:border-box;border:2px solid var(--gold);border-right:0;border-radius:28px 0 0 28px;background:radial-gradient(ellipse at 0 100%,#b6cc7b3b,transparent 55%),var(--ivory);box-shadow:none;margin:0;padding:clamp(28px,5vw,70px) clamp(25px,4vw,64px);display:flex;flex-direction:column;justify-content:center;z-index:3;overflow:auto;color:var(--deep)}body:not(.exploring) #intro h1{font:800 clamp(34px,4.1vw,66px)/1.1 'Segoe UI',Arial,sans-serif;letter-spacing:-1.5px;margin:18px 0 22px;color:var(--deep)}body:not(.exploring) #intro h1 span{color:#0b7550}body:not(.exploring) #intro .eyebrow{font-size:.9rem;letter-spacing:3px;color:#29543c;margin:0}body:not(.exploring) #intro .intro-copy{font-size:clamp(16px,1.5vw,22px);line-height:1.55;color:#2b4e3d;margin:0 0 30px}body:not(.exploring) #intro .intro-actions{display:grid;gap:14px;width:100%;max-width:420px;margin:0}body:not(.exploring) #startButton{min-height:60px;font-size:1.5rem;background:linear-gradient(#13835a,#035533);border:2px solid var(--gold);border-radius:30px;box-shadow:0 5px 0 #00432d16;font-weight:800}body:not(.exploring) #exploreButton{min-height:52px;border:1px solid #bfa055;border-radius:26px;background:#fffaf0;font-size:1.1rem;color:var(--deep);font-weight:700}
#landingHero{position:absolute;left:44%;right:24px;top:136px;bottom:94px;margin:0;border:2px solid var(--gold);border-left:0;border-radius:0 28px 28px 0;overflow:hidden;background:#a9c88e;z-index:2}#landingHero img{width:100%;height:100%;object-fit:cover;object-position:52% 50%}#welcomeFooter{position:absolute;bottom:17px;left:35px;right:35px;height:58px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#fff3c4;font-size:1.05rem}#welcomeFooter img{width:116px;height:58px;object-fit:contain;background:#fff9e9;border-radius:10px;padding:3px 8px}body.exploring #landingHero,body.exploring #welcomeFooter{display:none}
/* Shared interior frames */
.dialog:not(.chat-dialog){border:2px solid var(--gold);background:var(--ivory);border-radius:28px;color:var(--deep);box-shadow:0 20px 70px #041e2455}.dialog::backdrop{background:#142e2578;backdrop-filter:blur(8px)}.pustaka-panel>.dialog-top,#collectionDialog>.dialog-top{background:linear-gradient(110deg,#06432f,#0c6046);color:#fff6d4;border-bottom:2px solid var(--gold);display:flex;align-items:center;padding:18px 28px;gap:22px;min-height:100px}.pustaka-panel .dialog-top h2{font:800 clamp(24px,2.8vw,40px)/1.2 'Segoe UI',sans-serif;color:#fff8dc;margin:0}.pustaka-panel .dialog-top .eyebrow{font-size:.85rem;letter-spacing:2px;color:#f8dc80;margin:0 0 5px}.panel-logo{width:84px;height:84px;object-fit:contain;flex:none}.panel-subtitle{font-size:1rem;margin:6px 0 0;color:#f9f0d3}.pustaka-panel .dialog-top>.icon-button,#collectionDialog .dialog-top>.icon-button{margin-left:auto;background:transparent;color:#fff4c8;border:2px solid var(--gold);border-radius:50%;width:44px;height:44px;flex:none;font-size:2rem}.pustaka-panel .dialog-top>div{min-width:0}.dialog .button{border-radius:12px}.dialog select,.dialog textarea,.dialog input:not([type=range]):not([type=checkbox]):not([type=file]){border:1px solid #b2bd91;border-radius:12px;background:#fffcf2;color:var(--deep);font-size:1rem;padding:12px;box-sizing:border-box}
/* Role and pupil entry */
#accessDialog{width:min(1120px,94vw);max-width:94vw;max-height:94dvh;padding:34px 40px;background:radial-gradient(ellipse at 0 100%,#c3d89350,transparent 55%),var(--ivory);border:2px solid var(--gold);overflow:auto}#accessDialog h2{font:800 clamp(30px,4vw,53px)/1.1 'Segoe UI',sans-serif;text-align:center;margin:16px 0;color:var(--deep)}#closeAccess{position:absolute;top:18px;right:18px;width:42px;height:42px;border:1px solid var(--gold);border-radius:50%;background:#fff9ec;color:var(--deep);font-size:2rem;z-index:2}.access-brand{display:flex;flex-direction:column;align-items:center;gap:7px;font-weight:750;letter-spacing:1px;font-size:.9rem}.access-brand img{height:64px;width:64px;object-fit:contain}.access-intro{text-align:center;margin:0 0 24px;font-size:1.15rem;color:#3e5945}.role-cards{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:0}.role-card,.pupil-card{border:1px solid #c7d4a1;border-radius:28px;background:linear-gradient(140deg,#eff5db,#dde8c5);padding:16px 22px 24px;box-shadow:0 7px 12px #25422516;color:var(--deep);display:flex;flex-direction:column;align-items:stretch;text-align:center;min-width:0}.role-card{cursor:pointer;transition:transform .15s,box-shadow .15s}.role-card:hover{transform:translateY(-3px);box-shadow:0 10px 18px #25422526}.role-card:nth-child(2),.together-card{border-color:#dfbf74;background:linear-gradient(140deg,#fff6dc,#f5ebc9)}.role-art{display:block;width:100%;height:clamp(160px,22vh,260px);background-image:url('assets/pustaka-v54/role-atlas.webp')!important;background-size:200% 200%!important;background-repeat:no-repeat!important;border:0!important;border-radius:20px;box-shadow:none!important;position:relative}.teacher-art{background-position:0 0!important}.pupil-art{background-position:100% 0!important}.solo-art{background-position:0 100%!important}.together-art{background-position:100% 100%!important}.role-card>strong,.pupil-card h3{font-size:clamp(28px,3vw,42px);line-height:1.2;margin:10px 0}.role-card>span:not(.role-art):not(.role-cta),.pupil-card>p{font-size:1rem;line-height:1.5;margin:0 0 18px}.role-cta{display:block;padding:15px 12px;margin-top:auto;background:linear-gradient(#13643e,#084a30);border-radius:28px;color:#fff7da;font-size:1.25rem;font-weight:800}.role-cta.pupil-cta{background:linear-gradient(#ffd662,#efb52b);color:var(--deep)}#pupilRoomForm{text-align:left;margin-top:auto;display:grid;gap:10px}#pupilRoomForm label{font-size:1rem;font-weight:700}#pupilRoomCode{display:block;width:100%;margin-top:7px;text-transform:uppercase;letter-spacing:2px}#pupilRoomCode::placeholder{text-transform:none;letter-spacing:0}.pupil-card>.button,#pupilRoomForm>.button{width:100%;min-height:52px;font-size:1.15rem;border-radius:26px;margin-top:auto}.login-status{min-height:1.4em;font-size:.9rem;line-height:1.4;margin:4px 0 0}#accessDialog .role-back{position:absolute;top:25px;left:24px;color:var(--deep);border:0;padding:10px;background:#fffaf0}#teacherChoice .teacher-login-form{display:flex;flex-direction:column;gap:16px;width:min(500px,100%);margin:auto;padding:24px 0;background:none;border:0;color:var(--deep)}#teacherChoice .teacher-portrait{height:190px;width:260px;max-width:100%;margin:auto;background:url('assets/pustaka-v54/role-atlas.webp') 0 0/200% 200%}#teacherChoice label{display:block;text-align:left;font-weight:650}#accessKey,#accessServer{display:block;width:100%;margin-top:8px}#teacherChoice .connection-settings{background:#e9edd8;border:1px solid #c7d4ac;border-radius:12px;padding:12px;font-size:.9rem}#teacherChoice p{text-align:center}#teacherChoice #teacherLogin{font-size:1.2rem}
/* Book shelves and language cards */
#collectionDialog{width:min(1380px,96vw);height:min(870px,94dvh);max-height:94dvh;padding:0;overflow:auto;position:fixed}#collectionDialog>.dialog-top{padding:14px 28px;min-height:82px}.mini-brand{display:flex;align-items:center;gap:14px;font:700 1.05rem 'Segoe UI',sans-serif;letter-spacing:1px}.mini-brand img{width:56px;height:56px;object-fit:contain}#collectionDialog .collection-heading{padding:22px 28px 14px;display:flex;flex-wrap:wrap;align-items:flex-end;gap:18px;background:linear-gradient(120deg,#fbf5e4,#eef1d2)}#collectionDialog .collection-heading>div{flex:1 1 100%;padding-right:150px}#collectionDialog .collection-heading h2{font:800 clamp(28px,3vw,45px)/1.2 'Segoe UI',sans-serif;margin:6px 0;color:var(--deep)}#collectionDialog .collection-heading .eyebrow{font-size:.85rem;letter-spacing:1px}#collectionDialog .collection-heading p{font-size:1rem;margin:6px 0}#collectionDialog .search-field{flex:2 1 250px;background:#fffdf6;padding:0 14px;border:1px solid #bfad62;border-radius:14px;min-height:49px}#collectionDialog .search-field input{border:0!important;background:none!important;width:100%;padding:12px 5px!important}#collectionDialog .level-filter{flex:1 1 180px;font-size:.9rem;gap:6px;display:flex;flex-direction:column}#collectionDialog .level-filter select{width:100%;min-height:49px;border-color:#bfa65d}#collectionDialog #changeBookLanguage{position:absolute;right:28px;top:120px;background:#fffcf0;border-color:#b89c45;font-size:.95rem;padding:12px 18px}#collectionDialog .language-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:22px 28px 32px;margin:0}#collectionDialog .language-card{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;padding:20px 16px;min-height:290px;border:2px solid #d3b551;border-radius:28px;background:linear-gradient(140deg,#f3f4d9,#dce6bd);color:var(--deep);box-shadow:0 6px 8px #33542e17;font-size:1.05rem;cursor:pointer}#collectionDialog .language-card:before{content:'';display:block;width:175px;max-width:100%;height:150px;background:url('assets/pustaka-v54/utility-atlas.webp') 100% 0/200% 200%;margin-bottom:10px}#collectionDialog .language-card .language-letter{position:absolute;top:22px;right:18px;display:grid;place-items:center;width:60px;height:54px;border-radius:50%;background:linear-gradient(#ffedaf,#efce70);border:1px solid #b99a45;font-size:1.6rem;font-weight:750}#collectionDialog .language-card strong{font-size:clamp(24px,2.5vw,34px);line-height:1.2}#collectionDialog .language-card>span:last-child{margin-top:12px;font-size:1rem}#collectionDialog .language-card:hover{background:#d2e2ad;border-color:#99752b;transform:translateY(-2px)}#collectionDialog .collection-count{padding:10px 30px;font-size:1rem;color:#315b42}#collectionDialog .book-grid{padding:12px 28px 28px;gap:20px}#collectionDialog .book-card{border:1px solid #bdcb9b;border-radius:20px;background:#fffdf2;overflow:hidden}#collectionDialog .book-card-cover{height:240px;background:#e8efce}#collectionDialog .book-card-cover img{object-fit:contain;height:100%;width:100%;display:block}#collectionDialog .book-card h3{font:750 1.15rem/1.4 'Segoe UI',sans-serif}#collectionDialog .book-card-body{padding:16px}#collectionDialog .book-card-body>p{font-size:.95rem}.collection-bottom{background:linear-gradient(110deg,#06452f,#0b5a40)!important;color:#fff1c8!important;font-size:.95rem!important;padding:16px 28px!important;gap:18px;display:flex;justify-content:space-between;position:sticky;bottom:0;border-top:1px solid var(--gold);z-index:2}#collectionDialog .empty-state{grid-column:1/-1;background:radial-gradient(#f3f6df,#dce6c8);border:1px solid #bbcf9c;border-radius:24px;text-align:center;padding:15px 20px 28px;min-height:290px;color:var(--deep)}.empty-state h3{font:750 clamp(23px,2.4vw,34px)/1.3 'Segoe UI',sans-serif;margin:5px 0 8px}.empty-state p{font-size:1rem;margin:0}.utility-art{display:block;background-image:url('assets/pustaka-v54/utility-atlas.webp');background-repeat:no-repeat;background-size:200% 200%;width:240px;height:210px;max-width:100%;margin:auto}.shelf-art{background-position:0 0}.book-art{background-position:100% 0}.monitor-art{background-position:0 100%}.medal-art{background-position:100% 100%}
/* Video selection and Laman Hikayat thumbnails */
#learningDialog,#gameDialog{width:min(1380px,96vw);height:min(870px,94dvh);max-height:94dvh;padding:0;overflow:auto}#learningDialog .learning-layout{display:grid;grid-template-columns:minmax(230px,29%) minmax(0,1fr);gap:24px;padding:22px 26px;min-height:410px}#learningDialog .learning-layout>aside{padding:20px;background:linear-gradient(120deg,#e7ecd2,#dce5c8);border:1px solid #c7ac5a;border-radius:20px}#videoSubjectLabel{font-size:1.05rem;font-weight:750;display:grid;gap:12px}#videoSubject{width:100%;min-height:48px}#videoChoices{display:flex;flex-direction:column;gap:12px;margin-top:22px}.video-choice-card{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:10px;background:#fffaf0;border:1px solid #c1cba4;border-radius:16px;cursor:pointer;color:var(--deep);font-size:1rem}.video-choice-card:hover{border-color:#79934f;background:#f4f4dc}.video-choice-card strong{font-size:1.05rem;line-height:1.4}.video-thumbnail{display:block;position:relative;width:106px;height:76px;overflow:hidden;border-radius:11px;background:#adc38b;flex:none}.video-thumbnail img{width:100%;height:100%;object-fit:cover}.video-thumbnail .utility-art{height:76px;width:106px}.thumbnail-play{position:absolute;bottom:4px;right:5px;border-radius:50%;border:1px solid var(--gold);background:#0c563be0;color:#fff3c3;width:25px;height:25px;display:grid;place-items:center;font-size:.85rem}.learning-player{padding:0;min-width:0}#learningVideoTitle{font:750 clamp(22px,2.4vw,32px)/1.3 'Segoe UI',sans-serif;margin:0 0 16px}.learning-player>video,.learning-player>iframe{display:block;width:100%;aspect-ratio:16/9;max-height:58dvh;border:2px solid var(--gold);border-radius:20px;background:#072e23;object-fit:contain}#learningEmpty{border:2px solid #ceb15c;border-radius:22px;min-height:330px;background:radial-gradient(ellipse at center,#dce9cb,#8ab498);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:26px 16px}.learning-empty h3{font:800 clamp(23px,2.5vw,34px)/1.3 'Segoe UI',sans-serif;margin:18px 0 8px}.learning-empty p{font-size:1rem;margin:0}.learning-empty .utility-art{width:270px;height:220px;margin:0}.learning-bottom{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:16px 28px;background:var(--forest);color:#fff4d2;border-top:1px solid var(--gold);font-size:1rem}#learningStatus{font-size:.95rem;padding:8px 0;margin:8px 0}#learningExternal{font-size:.95rem}.lounge-seat-status{padding:11px 25px;border:1px solid var(--gold);background:#e2e9c8;border-radius:25px;width:max-content;margin:20px auto 0;font-size:1.1rem;font-weight:700}#learningDialog.lounge-picker .learning-layout{display:block;padding:24px}#learningDialog.lounge-picker .learning-layout>aside{padding:0;background:none;border:0}#learningDialog.lounge-picker #videoChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;gap:18px}#learningDialog.lounge-picker .learning-player{display:none}#learningDialog.lounge-picker .video-choice-card{display:flex;flex-direction:column;padding:0;overflow:hidden;border:2px solid #d1b45d;border-radius:22px;gap:0;text-align:center;box-shadow:0 5px 8px #273d2520}#learningDialog.lounge-picker .video-thumbnail{width:100%;height:auto;aspect-ratio:16/10;border-radius:0;background:#d7e4bf}#learningDialog.lounge-picker .video-thumbnail .utility-art{width:100%;height:100%}#learningDialog.lounge-picker .thumbnail-play{width:40px;height:40px;font-size:1.2rem;bottom:12px;right:12px}#learningDialog.lounge-picker .video-choice-card strong{padding:18px 12px;min-height:75px;box-sizing:border-box;font-size:1.2rem;background:#e2e8c7;width:100%}#standFromVideo{background:linear-gradient(#ffe7a0,#dcb550);border:1px solid var(--gold);color:#123c29;font-size:1rem;font-weight:750;padding:14px 20px;white-space:normal;flex:none}#gameDialog .game-toolbar{padding:20px 26px;gap:24px;display:flex;align-items:flex-end}#gameDialog .game-toolbar label{flex:1;display:grid;gap:6px;font-weight:700}#gameChoice{width:100%}#gameExternal{white-space:normal;max-width:240px;font-weight:700}#gameEmbed{width:calc(100% - 48px);margin:0 24px;min-height:470px;height:58dvh;border:1px solid #c4a346;border-radius:20px;background:#e4eccc}#gameStatus{padding:15px 26px;background:var(--forest);color:#fff3d1;margin:14px 0 0;font-size:.95rem}
/* Live avatar studio */
#studentDialog{width:min(1460px,97vw);height:min(930px,96dvh);max-height:96dvh;padding:0;background:#496b44 url('assets/pustaka-v54/studio-background.webp') center/cover;border:2px solid var(--gold);overflow:hidden}#studentDialog .studio-heading{display:grid;grid-template-columns:minmax(190px,1fr) minmax(280px,2fr) 1fr;align-items:center;padding:14px 24px;min-height:100px;background:linear-gradient(#08442f,#0c5338);border-bottom:2px solid var(--gold);gap:18px;color:#fff4cf}#studentDialog .studio-heading>div:nth-child(2){text-align:center}#studentDialog .studio-heading h2{font:800 clamp(24px,3vw,38px)/1.2 'Segoe UI',sans-serif;color:#fff2cd;margin:5px 0}#studentDialog .studio-heading .eyebrow{font-size:.8rem;letter-spacing:3px;margin:0;color:#f9eab8}#studentDialog .studio-heading>.icon-button{justify-self:end;border:2px solid var(--gold);border-radius:50%;background:none;color:#fff1c5;width:44px;height:44px}#studentDialog .studio-wordmark{display:flex;align-items:center;gap:10px;font:750 .85rem/1.4 'Segoe UI',sans-serif;color:#fff0bf;letter-spacing:1px}#studentDialog .studio-wordmark img{width:65px;height:65px;object-fit:contain}.studio-progress{display:flex;gap:7px;justify-content:center;margin:9px 0 0}.studio-progress i{display:block;width:76px;height:9px;border-radius:20px;background:#589c6c}.studio-progress i:first-child{background:#f1cc5d}#studentDialog.step-two .studio-progress i:nth-child(2){background:#e8c55d}#studentForm{height:calc(100% - 104px);min-height:0}#characterChoice{height:100%;padding:0!important;position:relative;display:flex;flex-direction:column;justify-content:flex-end;background:url('assets/pustaka-v54/studio-background.webp') center/cover}#characterChoice .character-carousel{display:grid;grid-template-columns:64px minmax(260px,480px) 64px;gap:20px;justify-content:center;align-items:center;flex:1;min-height:0;padding:10px 20px 0}#characterChoice .character-carousel>.character-podium{width:100%;height:100%;min-height:0;background:none;border:0;box-shadow:none;padding:0 0 4%;position:relative;border-radius:0}#characterChoice #characterPreview{height:92%;min-height:0}#characterChoice .character-carousel>button{border-radius:50%;width:60px;height:60px;background:#fff5da;border:2px solid var(--gold);font-size:2rem;color:var(--deep);box-shadow:0 3px 5px #132e2633}#characterDots{position:absolute;left:0;right:0;bottom:0;display:flex;gap:10px;justify-content:center}.character-dot{width:16px;height:16px;border:2px solid #fff5cc;background:#d6dfb7;border-radius:50%;margin:0}.character-dot[aria-pressed=true]{background:#f1bd3f;border-color:#ffed95}#characterChoice .studio-note{font-size:1rem;text-align:left;line-height:1.4;padding:16px 280px 18px 24px;margin:0;background:#06432fe8;border-top:1px solid var(--gold);color:#fff2c8;min-height:75px;box-sizing:border-box;display:flex;align-items:center}#chooseCharacter{position:absolute;right:24px;bottom:13px;width:230px;font-size:1.4rem;min-height:50px;background:linear-gradient(#f7d266,#deaf3d);border:1px solid #f0d388;color:var(--deep);border-radius:30px;box-shadow:none}#characterCustomize:not([hidden]){display:flex;flex-direction:column;height:100%;padding:0;background:transparent;gap:0}.studio-identity{padding:12px 24px;background:#dce6b9e8;border-bottom:2px solid #ceac4c;gap:20px;display:flex;align-items:center;flex:none}.studio-identity>label{font-size:1rem;display:flex;align-items:center;gap:10px}.studio-identity input{height:42px;padding:8px 14px!important;max-width:220px;background:#fff8df!important;border:1px solid #96a36f!important;border-radius:24px!important}.studio-type-choices{margin-left:auto;display:flex;gap:10px}.studio-type-choices button{width:58px;height:53px;min-height:0;border-radius:16px;background:#fff8e4;border:1px solid #afbc8a;padding:6px}.studio-type-choices button>span{display:block;width:100%!important;height:100%!important}.studio-type-choices button[aria-pressed=true]{outline:2px solid #0a563a;outline-offset:0}.studio-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,1.05fr) minmax(0,1fr);gap:15px;flex:1;min-height:0;padding:12px 16px}.studio-columns>.character-podium{min-width:0;min-height:0;padding:0;background:none;border:0;box-shadow:none;border-radius:0}.studio-columns #avatarPreview{height:100%;min-height:0}.studio-option-panel{padding:15px 18px;border:2px solid var(--gold);border-radius:24px;background:linear-gradient(120deg,#f1f1d7ed,#d1deb7f0);overflow:auto;min-height:0}.studio-option-panel>h3{font:750 1.3rem 'Segoe UI',sans-serif;margin:0 0 14px}.wardrobe-group{margin:0 0 12px;padding-bottom:10px;border-bottom:2px solid #9eb17a5c}.wardrobe-heading{margin-bottom:8px}.wardrobe-heading h4{font-size:1rem;line-height:1.3;margin:0}.wardrobe-arrows button{height:27px;width:28px;background:#fff9de;border:1px solid #aeb98c;border-radius:8px;font-size:1.4rem}.wardrobe-cards{gap:8px}.wardrobe-card{min-width:calc((100% - 16px)/3);width:calc((100% - 16px)/3);padding:6px;border-radius:15px;border:1px solid #a8b98b;background:#fff9e7;position:relative;flex:none}.wardrobe-card[aria-pressed=true]{border:2px solid #0c5d3b;padding:5px;background:#fff3cf}.wardrobe-thumb{height:68px}.wardrobe-group.compact .wardrobe-thumb{height:48px}.wardrobe-check{top:4px;right:4px;width:20px;height:20px;font-size:.85rem}.studio-palette legend{font-size:1rem}.studio-swatches{gap:8px;flex-wrap:wrap}.studio-swatch{width:34px;height:34px;border:3px solid #fff7dd}.studio-swatch[aria-pressed=true]{outline:2px solid #0a5b39}.accessory-tabs{display:flex;gap:5px;flex-wrap:wrap}.accessory-tabs button{font-size:.8rem;padding:7px 10px;background:#fff8df;border:1px solid #b1bd92;border-radius:20px}.accessory-tabs button[aria-pressed=true]{background:var(--forest);color:#fff6d5}.accessory-picker>h4{font-size:1rem;margin:4px 0 10px}.accessory-picker .wardrobe-heading{display:none}.studio-actions{padding:12px 24px;border-top:2px solid var(--gold);background:#084a34;display:flex;align-items:center;gap:12px;flex:none}.studio-actions .button{font-size:.95rem!important;padding:10px 18px!important;min-height:42px!important;background:#fff5d7!important;color:var(--deep)!important;border:1px solid #ceb659!important;border-radius:25px!important}.studio-actions #studentSubmit{margin-left:auto;min-width:200px!important;font-size:1.35rem!important;background:linear-gradient(#fcd571,#e5b63d)!important}.studio-panel-tabs{display:none}
/* Achievements: data remains scoped to the pupil's name and class */
#achievementsDialog{width:min(1260px,95vw);max-height:94dvh;padding:0;overflow:auto}.achievements-content{padding:22px 26px;background:radial-gradient(ellipse at bottom left,#c6dba555,transparent),var(--ivory)}.achievement-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px}.achievement-stat{display:flex;align-items:center;gap:18px;padding:16px 22px;border:1px solid var(--gold);border-radius:22px;background:linear-gradient(120deg,#f4f4d8,#dce7c4);box-shadow:0 4px 5px #18382016}.achievement-stat .stat-symbol{font-size:3.3rem}.achievement-stat strong{display:block;font:800 2.8rem/1.1 'Segoe UI',sans-serif}.achievement-stat span:last-child{font-size:1.05rem;font-weight:700}.achievement-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.achievement-card{border:1px solid var(--gold);border-radius:22px;background:linear-gradient(120deg,#f3f6df,#dde7c8);overflow:hidden;box-shadow:0 4px 6px #26432717}.achievement-card>h3{margin:0;padding:13px 22px;background:linear-gradient(110deg,#0b4b32,#296642);font:750 1.35rem 'Segoe UI',sans-serif;color:#fff2c5;border-bottom:1px solid var(--gold)}.achievement-card-body{padding:20px 24px}.achievement-empty{text-align:center}.achievement-empty h4{font-size:1.5rem;margin:8px 0 14px;line-height:1.35}.achievement-empty p{font-size:1rem}.achievement-empty .utility-art{height:180px}.achievement-empty .button{margin-top:12px;border:2px solid var(--gold);border-radius:26px;min-width:220px;font-size:1.15rem}.achievement-side{display:grid;gap:20px;align-content:start}.achievement-goal strong{font-size:1.25rem}.goal-meter{display:flex;gap:12px;align-items:center;margin:14px 0 8px}.goal-meter progress{flex:1;min-width:0;height:20px;accent-color:#3c8c4d}.goal-meter span{background:#cadbb5;padding:5px 10px;border-radius:20px;font-weight:750;white-space:nowrap}.badge-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.badge-item{text-align:center;border-right:1px solid #bacb9e;position:relative}.badge-item:last-child{border:0}.badge-item .utility-art{width:100%;height:98px}.badge-item.locked .utility-art{filter:grayscale(1);opacity:.45}.badge-item strong{font-size:.95rem;display:block;line-height:1.4}.badge-item small{display:block;font-size:.8rem;line-height:1.4;margin-top:6px;color:#486446}.badge-state{position:absolute;right:3px;top:70px;border:1px solid #f8efc2;background:#25523b;color:white;border-radius:50%;width:24px;height:24px;font-size:.8rem;display:grid;place-items:center}.achievement-reading-list{list-style:none;margin:0;padding:0}.achievement-reading-list li{padding:12px 0;border-bottom:1px solid #bacb9e;font-size:1rem}.profile-note{font-size:.9rem!important;line-height:1.5}
/* Teacher management and upload feedback */
#teacherDialog{background:#f9f8ec}.teacher-layout{height:calc(100% - 160px)}#teacherDialog>.dialog-top{background:linear-gradient(110deg,#084a34,#1e6249);min-height:118px;padding:12px 22px}#teacherDialog>.dialog-top h2{color:#fff5d0;font-size:1.8rem}#teacherDialog>.dialog-top .eyebrow{color:#e8cf87;font-size:.8rem}#teacherDialog .release-version{color:#eee6be;border-color:#92a981}.teacher-navigation{background:#e3ead5;border-right:1px solid #c9d5b5}.teacher-navigation>.button{font-size:.95rem!important;line-height:1.4;color:#174b35}.teacher-navigation>.button[aria-current=page]{background:#14563c;color:#fff1c9}.teacher-content{padding:22px}.teacher-overview article{background:#fffdf1;border:1px solid #c7d4b2}.teacher-subnav .button[aria-pressed=true]{background:#e5eacb;border-color:#a0b580}.teacher-content .teacher-note{padding:18px;background:#e9efd9;border:1px solid #c8d6b3;border-radius:16px}.teacher-content .teacher-toolbar{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-start}.teacher-content #exportZip{margin-left:auto}#teacherDialog #autoSaveStatus{height:42px;padding:11px 18px;font-size:.9rem;background:#e8f1dd;border-color:#b9cda6}#teacherDialog #autoSaveStatus[data-state=error]{color:#9c392d;background:#fff0de}#autoSaveRetry{position:absolute;bottom:4px;right:14px;z-index:5;padding:6px 14px;min-height:31px;background:#fffaf0;color:#86412e;border-color:#bc775c}.upload-dropzone{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;width:100%;min-height:98px;padding:14px;border:2px dashed #9eb68b;border-radius:14px;background:#f4f7e9;color:#204e39;text-align:center;cursor:pointer;margin:10px 0}.upload-dropzone strong{font-size:.95rem}.upload-dropzone span,.upload-dropzone small{font-size:.85rem;line-height:1.4}.upload-dropzone small{font-weight:400;color:#54734e}.upload-dropzone.drag-over{background:#d9ecc8;border-color:#0e6d42;box-shadow:0 0 0 3px #2e7f4320}.upload-dropzone.upload-busy{border-color:#cca746;background:#fff6d8;cursor:progress}.upload-dropzone.upload-busy:after{content:'';height:4px;width:75%;border-radius:10px;background:linear-gradient(90deg,#dce6b6,#8bb35f,#dce6b6);background-size:200% 100%;animation:upload-progress 1.1s linear infinite}.upload-dropzone:disabled{opacity:.75}.inline-save-status{font-size:.9rem;line-height:1.5;color:#2c6741}.thumbnail-picker{padding:16px;background:#edf2dd;border:1px solid #c8d6af;border-radius:14px;margin:14px 0}.thumbnail-picker h4{font-size:1rem;margin:0 0 8px}.thumbnail-picker p{font-size:.9rem!important;line-height:1.55}.thumbnail-picker video{display:block;width:min(100%,600px);max-height:300px;background:#123c2c;border-radius:10px;margin:12px 0}.thumbnail-picker input[type=range]{width:min(90%,520px);accent-color:#236343}.thumbnail-picker output{display:inline-block;padding:5px 10px;font-size:.9rem}.thumbnail-picker .button{display:block;margin:10px 0}.selected-thumbnail{display:block;max-width:240px;max-height:150px;object-fit:contain;border-radius:10px;margin:12px 0}.poster-editor audio{width:100%;margin:10px 0}#posterAudioStatus{position:absolute;left:16px;bottom:90px;padding:10px 14px;max-width:calc(100% - 32px);border:1px solid #80b96b;border-radius:15px;background:#eefbdeed;color:#154b31;z-index:8;font-size:.95rem;align-items:center;gap:10px;box-sizing:border-box}#posterAudioStatus:not([hidden]){display:flex}.light-poster-board[data-audio=true]:after{content:'';position:absolute;bottom:-22px;left:-15px;right:-15px;height:28px;border:3px solid #29c25e;border-radius:50%;background:#39d96525;pointer-events:none}.light-poster-board.poster-listening:after{border-color:#9bff91;box-shadow:0 0 12px #52ff6d;background:#51e36650}#sceneViewport #miniMapWrap{display:none!important}#pustakaStatus #journeyStatus{font-size:.85rem}#pustakaStatus #journeyBar strong{font-size:1rem}
@keyframes upload-progress{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.upload-dropzone.upload-busy:after{animation:none}.role-card{transition:none}}
/* Layout follows the available screen, with no device selection screen. */
@media(max-width:1050px){body:not(.exploring) #intro{padding:30px;left:18px;top:120px;bottom:84px;width:43%}body:not(.exploring) .site-header{height:86px;inset:16px 18px auto;padding:8px 22px}body:not(.exploring) .brand-logo-full{width:290px;height:68px}#landingHero{right:18px;top:120px;bottom:84px}body:not(.exploring) #intro h1{font-size:clamp(32px,4.5vw,48px)}body:not(.exploring) #intro .intro-copy{font-size:1rem;margin-bottom:22px}#welcomeFooter{height:48px;bottom:14px;font-size:.95rem}#welcomeFooter img{height:48px;width:98px}.achievement-stat{gap:12px;padding:15px}.achievement-stat .stat-symbol{font-size:2.5rem}#studentDialog .studio-heading{grid-template-columns:180px 1fr 50px;padding:10px 16px;min-height:85px}#studentForm{height:calc(100% - 88px)}.studio-columns{gap:8px;padding:8px;grid-template-columns:1fr .85fr 1fr}.studio-option-panel{padding:12px}.wardrobe-thumb{height:55px}.wardrobe-group.compact .wardrobe-thumb{height:38px}.studio-identity{padding:8px 16px;gap:12px}.studio-identity input{max-width:165px}.studio-identity>label{font-size:.9rem}.studio-type-choices button{width:45px;height:43px}.studio-actions{padding:10px 16px}.studio-option-panel>h3{font-size:1.1rem}#learningDialog .learning-layout{gap:16px;padding:20px}.pustaka-panel>.dialog-top{padding:16px 22px;gap:16px}.panel-logo{width:70px;height:70px}#collectionDialog .language-card{min-height:250px}.teacher-layout{height:calc(100% - 160px)}}
@media(max-width:760px),(max-height:520px){body .site-header #logoutButton{height:38px;font-size:.85rem;padding:7px 10px}body .site-header .brand-logo{width:43px!important;height:43px!important}body.exploring .site-header .brand>span{font-size:1rem}#accessDialog{padding:28px 22px;max-height:96dvh}.access-brand img{width:48px;height:48px}#accessDialog h2{font-size:32px;margin:12px 0}.access-intro{font-size:1rem;margin:0 0 15px}.role-cards{gap:15px}.role-card,.pupil-card{padding:12px 14px 18px;border-radius:22px}.role-art{height:180px}.role-card>strong,.pupil-card h3{font-size:30px}.role-card>span:not(.role-art):not(.role-cta),.pupil-card>p{font-size:.9rem}.role-cta{font-size:1.1rem;padding:13px 8px}.pupil-card>.button,#pupilRoomForm>.button{min-height:46px;font-size:1rem}#accessDialog .role-back{top:18px;left:14px;font-size:.9rem}.panel-logo{width:54px;height:54px}.panel-subtitle{font-size:.9rem}.pustaka-panel>.dialog-top{min-height:90px;padding:12px 18px;gap:12px}.pustaka-panel .dialog-top .eyebrow{font-size:.75rem;letter-spacing:1px}.pustaka-panel .dialog-top h2{font-size:28px}#collectionDialog .language-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:16px 20px}#collectionDialog .language-card{min-height:225px;padding:12px}.collection-bottom{font-size:.85rem!important;padding:14px 20px!important}#collectionDialog #changeBookLanguage{right:20px;top:111px;font-size:.85rem;padding:9px 13px}#collectionDialog .collection-heading{padding:18px 20px 12px;gap:12px}#collectionDialog .collection-heading>div{padding-right:130px}#collectionDialog .collection-heading h2{font-size:30px}#collectionDialog .collection-heading p{font-size:.95rem}#collectionDialog .book-grid{padding:12px 20px 20px}#learningDialog .learning-layout{grid-template-columns:220px minmax(0,1fr);padding:14px;gap:14px}#learningDialog .learning-layout>aside{padding:14px}#learningEmpty{min-height:270px;padding:15px}#learningEmpty .utility-art{height:170px;width:210px}.video-choice-card{flex-direction:column;align-items:stretch;gap:8px}.video-thumbnail{width:100%;height:auto;aspect-ratio:16/10}.video-thumbnail .utility-art{width:100%;height:100%}#learningDialog.lounge-picker #videoChoices{gap:12px}#learningDialog.lounge-picker .video-choice-card strong{font-size:1rem;min-height:65px;padding:12px 8px}.learning-bottom{padding:14px 18px;font-size:.9rem;gap:10px}#standFromVideo{padding:11px 15px;font-size:.9rem}#gameDialog .game-toolbar{padding:16px 18px;gap:14px}#gameEmbed{width:calc(100% - 32px);margin:0 16px;height:60dvh;min-height:380px}.achievement-stats{gap:10px}.achievement-stat{flex-direction:column;text-align:center;gap:5px;padding:12px}.achievement-stat strong{font-size:2rem}.achievement-stat .stat-symbol{font-size:2.2rem}.achievement-stat span:last-child{font-size:.9rem}.achievement-columns{grid-template-columns:1fr;gap:16px}.achievement-card-body{padding:16px 20px}.teacher-layout{height:calc(100% - 143px)}#teacherDialog>.dialog-top{min-height:101px;padding:10px 16px}#teacherDialog>.dialog-top h2{font-size:25px}#teacherDialog .panel-subtitle{font-size:.8rem}.teacher-content{padding:16px}.teacher-navigation>.button{font-size:.85rem!important;padding:10px}.teacher-content #exportZip{margin:0}.studio-columns{grid-template-columns:1fr minmax(140px,.75fr) 1fr}.studio-identity>label{gap:6px}.studio-identity input{max-width:145px}.studio-type-choices{gap:5px}.studio-type-choices button{width:38px;height:38px}.studio-option-panel{padding:10px}.studio-option-panel>h3{font-size:1rem}.wardrobe-heading h4{font-size:.85rem}.wardrobe-thumb{height:43px}.wardrobe-group.compact .wardrobe-thumb{height:32px}.studio-swatch{width:27px;height:27px}.wardrobe-check{width:16px;height:16px;font-size:.7rem}.accessory-tabs button{font-size:.75rem;padding:5px 7px}.studio-actions .button{font-size:.85rem!important;min-height:38px!important;padding:8px 12px!important}.studio-actions #studentSubmit{font-size:1.15rem!important;min-width:150px!important}#characterChoice .character-carousel{grid-template-columns:46px minmax(180px,400px) 46px;gap:12px}#characterChoice .character-carousel>button{width:44px;height:44px;font-size:1.6rem}#characterChoice .studio-note{font-size:.9rem;padding-right:220px;min-height:65px}#chooseCharacter{width:180px;min-height:43px;font-size:1.2rem;bottom:11px}}
@media(max-width:600px) and (orientation:portrait){body:not(.exploring) #main{height:100dvh;min-height:0;overflow:auto;padding-bottom:76px}body:not(.exploring) .site-header{position:relative;inset:auto;margin:12px 12px 0;height:82px;padding:8px 15px;border-radius:24px}body:not(.exploring) .brand-logo-full{width:240px;height:65px}body:not(.exploring) #intro{position:relative;inset:auto;margin:14px 12px 0;width:calc(100% - 24px);max-height:none;border:2px solid var(--gold);border-bottom:0;border-radius:24px 24px 0 0;padding:26px 24px 24px;min-height:340px;overflow:visible}body:not(.exploring) #intro h1{font-size:40px;margin:14px 0 16px}body:not(.exploring) #intro .eyebrow{font-size:.8rem}body:not(.exploring) #intro .intro-copy{margin-bottom:24px}body:not(.exploring) #startButton{min-height:55px;font-size:1.3rem}body:not(.exploring) #exploreButton{min-height:47px;font-size:1rem}#landingHero{position:relative;inset:auto;height:260px;margin:0 12px;width:calc(100% - 24px);box-sizing:border-box;border:2px solid var(--gold);border-top:0;border-radius:0 0 24px 24px}#welcomeFooter{position:relative;inset:auto;margin:16px 20px 0;height:48px;font-size:.8rem}#welcomeFooter img{height:45px;width:88px}body.exploring .site-header .brand>span{font-size:.85rem;max-width:130px}body.exploring .site-header .brand{gap:7px}body.exploring .site-header #musicToggle{font-size:.8rem!important}body.exploring .site-header #logoutButton{width:39px;font-size:0;padding:0}body.exploring .site-header #logoutButton:before{content:'⏻';font-size:1.4rem}body.exploring .site-header #menuToggle{font-size:.8rem;padding:7px}#accessDialog{padding:45px 16px 20px;width:96vw;max-width:96vw;border-radius:24px}.role-cards{grid-template-columns:1fr}.role-card{padding:10px 16px 20px}.role-art{height:210px;width:100%;max-width:320px;margin:auto}.role-card>strong,.pupil-card h3{font-size:32px}.access-intro{margin-bottom:20px}.access-brand img{width:54px;height:54px}#teacherChoice .teacher-login-form{padding:14px 4px}.pustaka-panel>.dialog-top{padding:12px 14px;gap:10px}.pustaka-panel .dialog-top h2{font-size:24px}.pustaka-panel .dialog-top .eyebrow{font-size:.7rem;letter-spacing:.6px}.pustaka-panel .dialog-top>.icon-button,#collectionDialog .dialog-top>.icon-button{width:35px;height:35px;font-size:1.7rem}.panel-logo{width:45px;height:45px}.panel-subtitle{font-size:.85rem;line-height:1.45}.mini-brand{font-size:.9rem;gap:10px;letter-spacing:0}.mini-brand img{width:44px;height:44px}#collectionDialog>.dialog-top{padding:10px 14px;min-height:70px}#collectionDialog .collection-heading{padding:18px 14px 12px}#collectionDialog .collection-heading>div{padding:0}#collectionDialog .collection-heading h2{font-size:30px}#collectionDialog #changeBookLanguage{position:static;float:right;margin:8px 14px}#collectionDialog .language-choices{padding:12px 14px 20px;gap:10px}#collectionDialog .language-card{min-height:220px;padding:10px 8px;border-radius:20px}#collectionDialog .language-card:before{height:115px;width:140px}#collectionDialog .language-card strong{font-size:25px}#collectionDialog .language-card>span:last-child{font-size:.85rem}#collectionDialog .language-card .language-letter{top:12px;right:10px;width:45px;height:41px;font-size:1.35rem}#collectionDialog .collection-count{padding:12px 15px;clear:both}#collectionDialog .book-grid{padding:10px 14px 20px}.collection-bottom{flex-direction:column;gap:6px;font-size:.8rem!important;padding:12px 16px!important}#learningDialog .learning-layout{display:flex;flex-direction:column;padding:14px;gap:18px}#videoChoices{flex-direction:row;overflow-x:auto;gap:10px}#videoChoices .video-choice-card{min-width:180px;width:180px;flex:none}.learning-empty h3{font-size:24px}.learning-empty p{font-size:.95rem}#learningDialog.lounge-picker #videoChoices{display:grid;grid-template-columns:1fr;overflow:visible}#learningDialog.lounge-picker #videoChoices .video-choice-card{width:100%;min-width:0}.learning-bottom{flex-direction:column;align-items:stretch;font-size:.9rem}.learning-bottom .button{width:100%;min-height:46px}#learningDialog.lounge-picker .video-choice-card strong{font-size:1.15rem;min-height:55px}#gameDialog .game-toolbar{flex-wrap:wrap;padding:16px 14px}#gameDialog .game-toolbar label{flex-basis:100%}#gameExternal{width:100%;max-width:none}#gameEmbed{min-height:650px;height:75dvh}#studentDialog{width:98vw!important;max-height:98dvh;height:98dvh;border-radius:20px}#studentDialog .studio-heading{grid-template-columns:1fr 36px;gap:8px;min-height:85px;padding:12px 14px}#studentDialog .studio-wordmark{display:none}#studentDialog .studio-heading>div:nth-child(2){text-align:left}#studentDialog .studio-heading h2{font-size:25px}#studentDialog .studio-heading .eyebrow{font-size:.65rem;letter-spacing:2px}#studentDialog .studio-heading>.icon-button{height:35px;width:35px}.studio-progress{justify-content:flex-start}.studio-progress i{height:7px;width:60px}#studentForm{height:calc(100% - 88px)}#characterChoice .character-carousel{grid-template-columns:36px minmax(0,1fr) 36px;gap:4px;padding:0 10px}#characterChoice .character-carousel>button{width:35px;height:35px;font-size:1.3rem}#characterChoice .studio-note{padding:14px 160px 14px 14px;font-size:.8rem;min-height:78px}#chooseCharacter{width:132px;right:14px;bottom:18px;font-size:1.1rem;min-height:43px}#characterCustomize{overflow:auto}.studio-identity{padding:10px 12px;gap:8px;flex-wrap:wrap}.studio-identity>label{flex:1;min-width:120px;font-size:.9rem}.studio-identity input{width:100%;max-width:none;min-width:0}.studio-type-choices{width:100%;justify-content:flex-end;margin:0}.studio-type-choices button{width:44px;height:40px}.studio-panel-tabs{display:flex;gap:8px;padding:8px 12px;background:#e6ebcf;flex:none}.studio-panel-tabs button{flex:1;min-height:36px;border:1px solid #b2c094;border-radius:20px;background:#fff8e2;color:var(--deep);font-size:.9rem}.studio-panel-tabs button[aria-pressed=true]{background:var(--forest);color:#fff2cb}.studio-columns{display:flex;flex-direction:column;min-height:490px;overflow:visible;padding:8px 10px;gap:8px;flex:none}.studio-columns>.character-podium{order:-1;width:100%;height:240px;flex:none}.studio-option-panel{min-height:260px;max-height:380px;flex:none;border-radius:20px;padding:12px}.studio-option-panel>h3{display:none}.wardrobe-thumb{height:64px}.wardrobe-group.compact .wardrobe-thumb{height:45px}.wardrobe-heading h4{font-size:.95rem}.wardrobe-arrows button{height:28px;width:30px}.studio-actions{padding:10px;gap:6px;position:sticky;bottom:0;z-index:5;flex-wrap:wrap}.studio-actions .button{font-size:.85rem!important;padding:9px 12px!important;min-height:39px!important}.studio-actions #studentSubmit{min-width:125px!important;font-size:1.15rem!important}.studio-swatch{width:32px;height:32px}#studentDialog[data-studio-panel=outfit] .studio-appearance{display:none}#studentDialog[data-studio-panel=appearance] .studio-outfit{display:none}.achievements-content{padding:15px}.achievement-stats{gap:8px;margin-bottom:15px}.achievement-stat{border-radius:16px;padding:10px 6px}.achievement-stat strong{font-size:1.7rem}.achievement-stat .stat-symbol{font-size:2rem}.achievement-stat span:last-child{font-size:.8rem}.achievement-card>h3{font-size:1.2rem;padding:13px 18px}.achievement-card-body{padding:16px}.achievement-empty h4{font-size:1.3rem}.badge-item strong{font-size:.85rem}.badge-item small{font-size:.75rem}.badge-item .utility-art{height:85px}.teacher-navigation{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-layout{height:calc(100% - 142px)}#teacherDialog .panel-logo{display:none}#teacherDialog .teacher-book{min-width:160px}.teacher-content .teacher-toolbar .button{width:100%}.teacher-content{padding:12px}.upload-dropzone{min-height:100px;padding:14px 10px}.thumbnail-picker{padding:12px}.thumbnail-picker .button{width:100%}.selected-thumbnail{max-width:100%}#posterAudioStatus{font-size:.85rem;left:10px;bottom:74px;padding:8px 10px}}
@media(max-height:520px) and (orientation:landscape){body:not(.exploring) .site-header{height:64px;inset:8px 12px auto;padding:5px 18px;border-radius:20px}body:not(.exploring) .brand-logo-full{height:54px;width:245px}body:not(.exploring) #intro{left:12px;top:81px;bottom:50px;padding:16px 22px}body:not(.exploring) #intro h1{font-size:30px;margin:8px 0 12px}body:not(.exploring) #intro .eyebrow{font-size:.7rem;letter-spacing:2px}body:not(.exploring) #intro .intro-copy{font-size:.85rem;line-height:1.4;margin:0 0 14px}body:not(.exploring) #intro .intro-actions{gap:7px}body:not(.exploring) #startButton{min-height:42px;font-size:1.15rem}body:not(.exploring) #exploreButton{min-height:36px;font-size:.9rem}#landingHero{top:81px;bottom:50px;right:12px}#welcomeFooter{bottom:4px;height:40px;font-size:.8rem}#welcomeFooter img{height:36px;width:78px}#accessDialog{padding:20px;max-height:97dvh}.access-brand{flex-direction:row;justify-content:center;gap:8px}.access-brand img{width:35px;height:35px}#accessDialog h2{font-size:28px;margin:8px 0}.role-art{height:135px;max-width:260px;margin:auto}.access-intro{font-size:.9rem;margin-bottom:10px}.role-card>strong,.pupil-card h3{font-size:25px;margin:4px 0}.role-card>span:not(.role-art):not(.role-cta),.pupil-card>p{font-size:.85rem;margin-bottom:10px}.role-cta{padding:10px;font-size:1rem}#studentDialog .studio-heading{min-height:68px;padding:7px 14px;grid-template-columns:150px 1fr 40px}#studentDialog .studio-wordmark{font-size:.7rem}#studentDialog .studio-wordmark img{width:45px;height:45px}#studentDialog .studio-heading h2{font-size:24px;margin:2px 0}#studentDialog .studio-heading .eyebrow{font-size:.65rem}.studio-progress{margin-top:6px}#studentForm{height:calc(100% - 72px)}.studio-identity{padding:5px 12px}.studio-identity input{height:32px}.studio-type-choices button{width:34px;height:32px}.studio-columns{padding:5px 8px;gap:8px;overflow:auto;grid-template-columns:1fr minmax(125px,.7fr) 1fr}.studio-option-panel{padding:8px}.studio-option-panel>h3{font-size:.95rem;margin-bottom:8px}.wardrobe-thumb{height:38px}.wardrobe-group.compact .wardrobe-thumb{height:28px}.wardrobe-group{margin-bottom:6px;padding-bottom:5px}.wardrobe-heading h4{font-size:.8rem}.wardrobe-arrows button{width:22px;height:22px;font-size:1.1rem}.studio-swatch{width:24px;height:24px}.studio-palette legend{font-size:.8rem}.accessory-tabs button{font-size:.7rem;padding:4px 6px}.studio-actions{padding:6px 12px;gap:8px}.studio-actions .button{min-height:32px!important;padding:6px 12px!important;font-size:.8rem!important}.studio-actions #studentSubmit{font-size:1rem!important;min-width:145px!important}#characterChoice .studio-note{min-height:50px;padding:10px 190px 10px 16px;font-size:.8rem}#chooseCharacter{bottom:7px;min-height:36px;width:150px;font-size:1.1rem}#characterChoice .character-carousel{padding-top:0}.character-dot{height:11px;width:11px}.pustaka-panel>.dialog-top{min-height:75px;padding:10px 18px}.pustaka-panel .dialog-top h2{font-size:27px}.panel-logo{width:52px;height:52px}.panel-subtitle{font-size:.85rem}#teacherDialog>.dialog-top{min-height:85px}.teacher-layout{height:calc(100% - 127px)}.teacher-navigation>.button{font-size:.8rem!important;padding:8px}.teacher-content{padding:15px}#collectionDialog .language-card{min-height:200px}#collectionDialog .language-card:before{height:105px;width:140px}#collectionDialog .language-choices{grid-template-columns:repeat(4,minmax(0,1fr))}#learningEmpty{min-height:250px}.learning-empty .utility-art{height:140px;width:180px}.learning-empty h3{font-size:24px}}

/* Keep the illustrated people proportional within the atlas slots. */
#accessDialog .role-art,#accessDialog .teacher-art,#accessDialog .pupil-art,#accessDialog .solo-art,#accessDialog .together-art{background:none!important;overflow:hidden}
#accessDialog .role-art:before{content:'';display:block;position:absolute;height:100%;aspect-ratio:1;left:50%;transform:translateX(-50%);background:url('assets/pustaka-v54/role-atlas.webp') 0 0/200% 200% no-repeat}
#accessDialog .teacher-art:before{background-position:0 0}#accessDialog .pupil-art:before{background-position:100% 0}#accessDialog .solo-art:before{background-position:0 100%}#accessDialog .together-art:before{background-position:100% 100%}
#teacherDialog>.dialog-top .panel-subtitle{font-size:.9rem}body.exploring .site-header #logoutButton{order:0}

.light-led-frame img{background:#f7efda}.light-hall-banner{background:#f7efda}

#accessDialog .role-cards{width:100%;max-width:none;margin:0}
#accessDialog .role-cta{border:1px solid var(--gold)!important;box-shadow:none!important}
#accessDialog{background:linear-gradient(#fbf5e4ed,#fbf5e4ed),url('assets/pustaka-v54/studio-background.webp') center/cover}
#characterChoice .studio-note{width:100%;max-width:none;align-self:stretch}
body:not(.exploring) #startButton{font-size:24px!important;min-height:60px!important;border-radius:30px!important}
@media(max-width:600px),(max-height:520px){body:not(.exploring) #startButton{font-size:20px!important;min-height:48px!important}}

#studentDialog .wardrobe-cards{display:flex!important;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:5px}
#studentDialog .wardrobe-card{flex:0 0 calc((100% - 16px)/3)!important;min-width:calc((100% - 16px)/3);width:calc((100% - 16px)/3);box-sizing:border-box;scroll-snap-align:start}
#studentDialog .wardrobe-thumb{width:100%}
#studentDialog .studio-option-panel{background:linear-gradient(115deg,#f3f1d8,#dce5bf)!important}

#collectionDialog .mini-brand strong{color:#fff1c8}
