/* V6: presentation only. Routes, permissions and learning workflows stay in V5. */
:root{--ink:#153966;--muted:#49617d;--pink:#e52d83;--blue:#2779df;--bg:#f0f9ff;--line:#d8eaf7;--shadow:0 7px 24px #24578b12;--radius:24px}
body{font-family:Arial,Helvetica,sans-serif;font-size:18px;line-height:1.65;background:linear-gradient(145deg,#eefaff,#fffaf1);color:var(--ink)}
button,input,textarea,select{font-family:Arial,Helvetica,sans-serif}
.topbar{height:104px;background:linear-gradient(100deg,#fffef5,#e5f7ff 65%,#e8f8ed);border-bottom:3px solid white;padding:12px 22px;gap:16px}
.brand{min-width:260px}.brand img{width:58px;height:58px}.brand-name{font-size:30px;letter-spacing:-.7px}.brand-tagline{font-size:14px;color:#276d52}.top-slogan{font-size:20px}.top-slogan span{padding:12px 22px;border:2px solid white;box-shadow:var(--shadow)}
.profile strong{font-size:16px}.profile small{font-size:14px}.profile{max-width:280px}.icon-btn{width:46px;height:46px}
.sidebar{top:104px;width:278px;background:linear-gradient(#fff,#f0fbff);border-right:3px solid white;padding:16px 12px}.nav-label{font-size:12px;color:#557190}.nav-item{font-size:17px;line-height:1.4;padding:12px 13px;min-height:48px;border-radius:15px;margin:3px 0}.nav-item .emoji{font-size:24px;width:29px}.nav-item.active{background:linear-gradient(110deg,#e52d83,#f4529a);box-shadow:0 5px 13px #e52d8326}.nav-item:hover:not(.active){background:#e8f5ff}.sidebar-garden{height:140px;background:url('assets/school-welcome-3d.webp') center/cover;border:3px solid white;border-radius:19px}.sidebar-tip{font-size:15px;color:#49617d}
.main{margin-left:278px;padding:24px 26px 38px;max-width:1900px}.footer{font-size:14px;color:#49617d}
.hero{height:auto;min-height:310px;aspect-ratio:3/1;background-image:url('assets/school-welcome-3d.webp');background-size:cover;background-position:center;border:6px solid white;border-radius:27px;box-shadow:0 9px 28px #42739c1c;overflow:hidden}
.hero-copy{width:55%;padding:15px 12px;border-radius:25px;background:radial-gradient(ellipse,#ffffffed 25%,#ffffffa3 62%,#ffffff00 75%)}
.hero h1{font:800 clamp(34px,3.3vw,58px)/1.15 Arial,Helvetica,sans-serif;letter-spacing:-1px;color:#dc287b;margin-bottom:12px}.hero h1 span{color:#126ecb}.hero p{font-size:19px;color:#143c6a}.hero .btn{font-size:16px;min-height:47px;padding:10px 14px}.hero .flex{justify-content:center;gap:9px}
.page-title{font-size:34px;letter-spacing:-.5px}.page-head p,.section-head p{font-size:17px;color:#49617d}.section-head h2{font-size:29px}.panel{padding:24px;border:2px solid #e4eff8;border-radius:24px}
.btn{font-size:18px;min-height:48px;border-radius:14px;padding:11px 18px;white-space:normal;text-align:center}.btn.small{font-size:16px;min-height:42px;padding:8px 12px}.btn.ghost{color:#23476f;background:#edf5fd}.btn.danger{color:#ac2447}.badge{font-size:14px;line-height:1.4;padding:6px 10px}.tiny{font-size:15px}.muted,small{color:#49617d}
.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat{padding:16px 12px;border:4px solid white;border-radius:21px;min-width:0;gap:10px}.stat-icon{font-size:42px}.stat strong{font-size:34px}.stat-label,.stat small{font-size:15px}
.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.card{border:3px solid white;border-radius:23px;box-shadow:0 7px 24px #275e8b16}.card-top{height:auto;aspect-ratio:16/10;background-size:cover!important;background-position:center!important;background-image:url('assets/garden-game.webp')!important}.card-top[data-game-theme=ocean]{background-image:url('assets/ocean-game.webp')!important}.card-top[data-game-theme=music]{background-image:url('assets/music-game.webp')!important}.card-top::before,.card-top::after{display:none}
.card-top .card-art{display:none}.card-top .badge{position:absolute;top:12px;left:12px;z-index:2;background:#fffffff0;color:#164a76;max-width:80%;font-size:14px}.card-top .play-overlay{position:absolute;right:12px;bottom:12px;z-index:2;min-height:43px;font-size:16px;padding:8px 14px;border:2px solid white;box-shadow:0 3px 12px #12365c30}
.card-top:has(.custom-card-illustration){background-image:none!important}.custom-card-illustration{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff8ef}.card-top:has(.custom-card-illustration) .badge,.card-top:has(.custom-card-illustration) .play-overlay{position:absolute;z-index:2}
.card-body{padding:18px}.card-body h3{font-size:23px;line-height:1.4}.card-body p{font-size:17px;line-height:1.6;min-height:54px;color:#49617d}.card-actions{gap:9px}.filterbar{flex-wrap:wrap;padding:13px;gap:14px}.tabs{gap:7px}.tab{font-size:17px;min-height:45px;padding:10px 14px}.search{font-size:18px;min-height:48px}.author-tools .tabs{gap:12px}
label{font-size:18px}input,textarea,select{font-size:18px;min-height:48px;padding:12px 14px}.hint{font-size:15px!important}.note,.article,.news-card .pre{font-size:18px}.table-wrap th{font-size:15px;text-transform:none;letter-spacing:0}.table-wrap td,.table-wrap td strong{font-size:17px}code{font-size:16px}.activity strong{font-size:18px}.activity p,.quote p{font-size:17px}
dialog{width:min(920px,calc(100% - 30px));border-radius:24px}.dialog-head h2{font-size:24px}#dialog-body{padding:24px}.question-editor label{font-size:17px}.question-editor .question-num{font-size:16px}.upload-box,.upload-box input{font-size:17px}.game-question-card .quiz-question{font-size:clamp(28px,3vw,40px)}.answer-text{font-family:Arial,Helvetica,sans-serif;font-size:clamp(26px,2.5vw,36px)}.media-widget-title{font-size:22px}.volume-label,.recorder-status{font-size:17px}.game-controls .btn{font-size:18px}.record-buttons .btn{font-size:18px}
.login-page{background:linear-gradient(130deg,#eefaff,#fff9ed)}.login-layout{max-width:1360px}.login-visual h1{font:800 clamp(36px,4vw,56px)/1.2 Arial,Helvetica,sans-serif}.login-visual p,.login-box p{font-size:18px}.login-garden{height:auto;aspect-ratio:3/1;background:url('assets/school-welcome-3d.webp') center/cover;border:5px solid white;border-radius:25px}.login-box{border-radius:26px}.login-box label,.login-box input{font-size:19px}.login-box h2{font-size:30px}.login-foot{font-size:15px!important}.login-box .btn{min-height:54px}.role-pills span{font-size:16px}
@media(min-width:1500px){.hero{min-height:350px}.card-top{aspect-ratio:16/9}}
@media(max-width:1250px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.top-slogan{display:none}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{min-height:320px}.hero-copy{width:62%}.hero h1{font-size:40px}.hero .btn{font-size:15px}.two-col{grid-template-columns:1fr}.profile{margin-left:auto}}
@media(max-width:900px){.topbar{height:86px;padding:10px 14px}.brand{min-width:0}.brand-name{font-size:26px}.brand img{width:46px;height:46px}.brand-tagline{font-size:12px}.sidebar{top:86px;width:250px}.main{margin-left:250px;padding:18px}.nav-item{font-size:16px}.hero{min-height:330px;aspect-ratio:auto;background-position:center}.hero-copy{width:90%;background:#ffffffd9}.hero h1{font-size:36px}.hero p{font-size:17px}.hero .btn{font-size:15px}.grid{grid-template-columns:1fr}.stat-icon{font-size:30px}.stat strong{font-size:28px}.stat-label,.stat small{font-size:14px}.page-title{font-size:30px}}
@media(max-width:760px){.mobile-menu{display:inline-flex}.sidebar{transform:translateX(-100%);width:278px;z-index:30;box-shadow:10px 0 30px #163f6020}.sidebar.open{transform:translateX(0)}.main{margin-left:0;padding:14px 12px 28px}.topbar{gap:9px}.brand{flex:1}.profile{max-width:140px;padding:7px}.profile .avatar{display:none}.profile strong{font-size:14px;max-width:110px}.profile small{font-size:12px}.brand-name{font-size:23px}.brand-tagline{font-size:11px}.brand img{width:39px;height:39px}.hero{min-height:330px;background-size:auto 100%;border-width:4px;border-radius:22px}.hero-copy{width:82%;padding:18px 10px;background:#ffffffe3}.hero h1{font-size:36px}.hero .flex{gap:8px}.hero .btn{font-size:16px;min-height:46px}.hero p{font-size:17px}.stats{gap:9px;margin:14px 0 22px}.stat{padding:12px 8px;gap:8px}.stat-icon{font-size:29px}.stat strong{font-size:28px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card-body{padding:13px}.card-body h3{font-size:20px}.card-body p{font-size:16px}.card-top{aspect-ratio:4/3}.card-top .badge{font-size:12px;left:6px;top:6px;padding:4px 7px}.card-top .play-overlay{font-size:15px;bottom:7px;right:7px;padding:6px 9px;min-height:40px}.card-actions .btn{width:100%}.section-head{flex-wrap:wrap}.section-head h2{font-size:26px}.panel{padding:18px}.filterbar{align-items:stretch}.search{max-width:none;width:100%}.form-grid{grid-template-columns:1fr}.page-head{gap:12px}.page-head>.flex{width:100%}.page-head .btn{flex:1}.login-layout{display:flex;flex-direction:column;gap:22px}.login-garden{min-height:150px}.login-visual h1{font-size:36px}.login-visual p{font-size:18px}.login-box{width:100%}.login-top .chip{display:none}dialog{width:calc(100% - 16px);max-height:94dvh}#dialog-body{padding:16px}.dialog-head{padding:14px}.dialog-head h2{font-size:22px}.game-options{grid-template-columns:repeat(2,minmax(0,1fr))}.game-controls .btn,.record-buttons .btn{font-size:17px}.volume-label{font-size:16px}.tab{font-size:16px}.footer{font-size:13px}}
@media(max-width:440px){.grid{grid-template-columns:1fr}.card-top{aspect-ratio:16/9}.hero-copy{width:92%}.hero h1{font-size:33px}.brand img{display:none}.profile{max-width:115px}.profile strong{max-width:92px}.hero .btn{padding:9px 11px}.game-encourage{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
