@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900;1000&display=swap');
:root{--blue:#075ecf;--navy:#082c80;--sky:#dff3ff;--mint:#c7f9dd;--purple:#e2d2ff;--cyan:#d0eeff;--yellow:#ffe18b;--shadow:0 7px 20px #0c479529;--line:#c7e0fb}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:700 15px/1.35 Nunito,ui-rounded,system-ui,Arial,sans-serif;color:#12316d;background:linear-gradient(160deg,#f9fdff 0%,#e7f5ff 48%,#f2f7ff 100%);min-height:100vh}
a{color:inherit;text-decoration:none}button,select{font:inherit}button,a,select{touch-action:manipulation}a:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid #ffc400;outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.topbar{height:75px;background:linear-gradient(105deg,#0350b5,#1569d8 55%,#0350b5);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:8px clamp(15px,3.5vw,56px);box-shadow:0 4px 12px #033f9770;position:relative;z-index:5}
.brand{display:flex;align-items:center;gap:11px;color:#fff;font-size:clamp(18px,1.5vw,25px);line-height:.93;font-weight:1000;letter-spacing:-.4px;min-width:230px;text-shadow:0 2px 0 #002c92}.brand strong{display:block;color:#ffdf63}.brand-icon{width:50px;height:50px;display:grid;grid-template-columns:repeat(2,1fr);gap:3px;transform:rotate(-4deg)}.brand-icon b{border-radius:6px;display:grid;place-content:center;font-size:21px;box-shadow:0 2px 1px #fff5 inset}.brand-icon b:nth-child(1){background:#fc3677}.brand-icon b:nth-child(2){background:#9155ff}.brand-icon b:nth-child(3){background:#08c3fa}.brand-icon b:nth-child(4){background:#ffac00}
.topnav{display:flex;align-items:center;justify-content:center;gap:clamp(2px,1vw,18px);flex:1;white-space:nowrap}.topnav a{padding:10px 12px;border-radius:30px;font-weight:900;transition:background .15s;color:white}.topnav a:hover{background:#ffffff29}.topnav a.selected{background:#e7f7ff;color:#0954ad}.topnav span{font-size:20px;vertical-align:middle;margin-right:4px}.lang-picker{border-radius:25px;display:flex;background:#fff;min-width:104px;box-shadow:0 2px 6px #073a7b26}.lang-picker select{width:100%;padding:8px 5px;border:0;background:transparent;color:#083f9e;font-size:14px;font-weight:1000;cursor:pointer;border-radius:25px}
.container{width:min(1470px,96vw);margin:auto}.hero{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(110deg,#66c7f8 0%,#c7eaff 34%,#abdbff 60%,#67c7f4 100%);box-shadow:inset 0 -5px 0 #e3f7ff;min-height:255px}.hero-home{min-height:295px}.hero::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 55% 25%,#fff8,transparent 40%);z-index:-1}.hero-figure{position:absolute;top:0;height:100%;width:36%;object-fit:cover;pointer-events:none}.figure-left{left:0;object-position:left center;mask-image:linear-gradient(90deg,black 0%,black 72%,transparent 100%)}.figure-right{right:0;object-position:right center;mask-image:linear-gradient(270deg,black 0%,black 72%,transparent 100%)}.hero-words{position:relative;z-index:1;width:42%;max-width:700px;margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:inherit;padding:22px 4px}.hero h1{font-size:clamp(36px,4.3vw,69px);line-height:.95;color:#123cab;font-weight:1000;margin:10px 0;letter-spacing:-2.5px;text-shadow:0 3px 0 white,2px 0 0 white,-2px 0 0 white}.hero h1 em{display:block;font-style:normal;color:#087de0;text-shadow:0 3px 0 white}.eyebrow{background:#fff9;border-radius:30px;padding:5px 15px;color:#1352ad;font-size:13px}.hero-slogan{padding:8px 19px;border-radius:9px;background:linear-gradient(90deg,#ffdf4b,#ffc842);color:#1645a0;font-size:clamp(14px,1.4vw,22px);font-weight:1000;box-shadow:0 3px 0 #dba735}.hero p{font-size:clamp(12px,1.2vw,17px);font-weight:900;max-width:500px;margin:13px 0 0;color:#174475}.level-pill{background:linear-gradient(180deg,#258bf6,#0052bd);color:#fff;border:4px solid white;border-radius:28px;box-shadow:var(--shadow);font-weight:1000;font-size:clamp(28px,2.8vw,48px);padding:2px 35px}.hero h1.level-name{display:block;font-size:clamp(20px,2.4vw,35px);color:#0755bb;letter-spacing:-.7px;margin:9px 0 0}.hero-level{min-height:215px}.hero-level .hero-words{width:45%}
.center-heading{text-align:center;font-size:clamp(22px,2.5vw,34px);color:#07398d;font-weight:1000;margin:17px 0 15px}.grade-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:23px;max-width:1200px;margin:0 auto}.grade-tile{min-height:173px;position:relative;border:5px solid white;border-radius:26px;overflow:hidden;box-shadow:var(--shadow);background:linear-gradient(115deg,#7cdbff,#09a6ee);padding:20px;transition:transform .17s,box-shadow .17s}.grade-tile:hover{transform:translateY(-5px);box-shadow:0 13px 25px #1456a63d}.tile-2{background:linear-gradient(110deg,#abf8b8,#45dfaa)}.tile-3{background:linear-gradient(120deg,#e5b5ff,#ad84f2)}.tile-number{display:block;font-size:58px;line-height:.9;color:#fff;font-weight:1000;text-shadow:0 4px 0 #196bb3,3px 2px 1px #195aae;z-index:1;position:relative}.tile-2 .tile-number{text-shadow:0 4px 0 #198f65}.tile-3 .tile-number{text-shadow:0 4px 0 #6740bd}.tile-text{display:block;font-size:24px;color:#0b3a81;font-weight:1000;position:relative;z-index:1}.grade-tile img{height:118%;position:absolute;right:4%;bottom:-11%;max-width:59%;object-fit:cover;mask-image:linear-gradient(90deg,transparent,black 22%)}.tile-arrow{position:absolute;right:10px;bottom:12px;z-index:2;background:white;color:#0756d5;border-radius:50%;width:35px;height:35px;display:grid;place-items:center;font-size:22px;box-shadow:var(--shadow)}
.feature-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;max-width:1100px;margin:19px auto}.feature{background:#fff;border:1px solid #d9eafa;box-shadow:var(--shadow);border-radius:30px;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 12px;min-height:67px;font-size:15px}.feature:hover{color:#0767df;background:#f5fbff}.feature-emoji{font-size:28px}.home-dashboard{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0 28px}.panel{background:linear-gradient(180deg,#fff,#f8fcff);border:1px solid #d6e9ff;border-radius:25px;box-shadow:var(--shadow);padding:18px;color:#093378}.panel h3{margin:0 0 12px;color:#0740ac;font-weight:1000;font-size:17px}.summary{min-height:165px}.summary h3{border-bottom:1px solid #d6e7ff;padding-bottom:9px}.topic-list{display:grid;gap:8px}.topic-list div{background:#edf8ff;border-radius:11px;padding:7px}.badges{font-size:43px;text-align:center;letter-spacing:8px}.microcopy{font-size:12px;color:#52739e;line-height:1.5;margin-top:10px}.progress-circle{width:94px;height:94px;border-radius:100%;background:conic-gradient(#33ce66 var(--progress),#d9ebf9 0);display:grid;place-items:center;flex-shrink:0}.progress-circle::after{content:attr(data-pct);border-radius:50%;width:69px;height:69px;display:grid;place-items:center;background:white;font-size:25px;font-weight:1000;color:#0b3a85}.progress-readout{display:flex;align-items:center;gap:16px;min-height:90px}.progress-text{font-size:14px}.progress-text b{display:block;font-size:21px;color:#0865c9}
.workspace{display:grid;grid-template-columns:230px 1fr;gap:17px;padding:18px 0 32px;align-items:start}.sidebar{display:flex;flex-direction:column;gap:9px;border-radius:25px;padding:13px;background:#f4faff;border:1px solid #cee5fd;box-shadow:var(--shadow);position:sticky;top:14px}.sidebar a{padding:13px 10px;border-radius:15px;color:#113978;font-weight:1000;font-size:14px}.sidebar a:hover,.sidebar a.sidebar-current{background:#d7efff;color:#0057bd}.sidebar .backlink{background:#fff;border-radius:12px;text-align:center;font-size:13px}.side-active{background:linear-gradient(150deg,#229cff,#0067db);border-radius:17px;color:white;padding:13px 9px;font-size:16px;font-weight:1000;box-shadow:0 3px 8px #0f70bf42}.side-active span{font-size:24px}.side-active small{display:block;font-size:12px}.side-sep{border-top:1px solid #cfe4ff;margin:7px 0}.level-content{min-width:0}.level-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.panel-title h2{margin:0;font-size:clamp(19px,1.7vw,26px);color:#043f9f;line-height:1.2}.tag,.demo-label{background:#dbeeff;border:1px solid #9fcdff;border-radius:23px;padding:7px 12px;color:#0753c0;font-weight:1000}.cards-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.content-panel{padding:15px}.activity-card{background:white;border-radius:20px;overflow:hidden;border:2px solid #e3edff;box-shadow:0 3px 8px #134c9c15;min-width:0;transition:transform .18s}.activity-card:hover{transform:translateY(-4px)}.activity-art{height:105px;display:flex;align-items:center;justify-content:center;position:relative;background:linear-gradient(140deg,#c9edff,#77cfff)}.activity-card.purple .activity-art{background:linear-gradient(135deg,#f2ddff,#bba6ff)}.activity-card.mint .activity-art{background:linear-gradient(130deg,#d0ffe2,#7ae4b0)}.activity-icon{font-size:59px;filter:drop-shadow(0 4px 3px #114b8833)}.activity-decoration{position:absolute;right:10px;top:8px;color:white;font-size:17px}.activity-info{padding:10px;position:relative;min-height:127px}.activity-info h3{font-size:16px;line-height:1.13;margin:5px 0;font-weight:1000;min-height:36px}.activity-info p{font-size:12px;line-height:1.2;color:#46719f;font-weight:700;margin:0 0 7px}.small-tag{text-transform:uppercase;color:#388ad8;font-size:10px;letter-spacing:.5px}.round-arrow{position:absolute;bottom:9px;right:9px;background:linear-gradient(120deg,#1bb7ff,#0868dc);color:white;width:28px;height:28px;border-radius:50%;display:grid;place-items:center}.level-bottom{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}.level-bottom ul{margin:0;padding-left:20px;line-height:1.95;font-weight:800;color:#2a6599}.level-bottom .badges{font-size:37px}
.mini-banner{min-height:80px;background:linear-gradient(110deg,#d8f1ff,#78cfff,#e8f7ff);display:flex;align-items:center;justify-content:space-between;padding:15px clamp(20px,5vw,80px);gap:12px;color:#0646a0}.mini-banner a{border:2px solid white;border-radius:25px;background:#ffffffc9;padding:10px 17px;font-weight:1000}.mini-title{font-size:24px;font-weight:1000}.game-board{min-height:650px;padding:24px 28px}.game-top{display:flex;justify-content:space-between;align-items:center;gap:15px}.game-top h2{font-size:29px;color:#0752b6;margin:0}.game-top p{color:#5d7aa1;margin:6px 0 0}.score-stats{display:flex;gap:9px}.score-stats span{border-radius:22px;background:#e9f7ff;padding:12px 18px;font-weight:1000;white-space:nowrap}.game-instruction{margin-top:22px;padding:13px 18px;background:#dff4ff;border-radius:28px;display:flex;align-items:center;justify-content:center;gap:14px;text-align:center;font-size:22px;font-weight:1000}.speak{border:0;background:linear-gradient(135deg,#19b5ff,#0871d9);color:white;border-radius:50%;width:47px;height:47px;font-size:23px;cursor:pointer;flex:none}.game-scene{margin:16px auto;max-width:900px;min-height:220px;border:3px solid #b5e1ff;border-radius:30px;background:linear-gradient(135deg,#e6f9ff,#f7fdff 60%,#ebfff0);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;gap:14px}.objects{max-width:720px;display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.object{font-size:clamp(34px,4.5vw,61px);filter:drop-shadow(0 5px 2px #1962a522)}.equation{font-size:clamp(40px,5vw,75px);color:#1453ab;font-weight:1000;letter-spacing:2px}.blocks{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap}.ten-rod{width:23px;height:120px;border:2px solid #b37308;border-radius:6px;background:repeating-linear-gradient(180deg,#ffcd38 0,#ffcd38 10px,#e59f13 11px,#e59f13 12px)}.one-cube{width:28px;height:28px;border-radius:7px;border:2px solid #087cc6;background:linear-gradient(135deg,#8ce6ff,#0b9ae7)}.problem-text{font-size:clamp(18px,2.2vw,29px);font-weight:1000;max-width:750px;text-align:center}.scene-label{font-size:17px;color:#3974a8}.answers{display:flex;gap:15px;justify-content:center;align-items:center;flex-wrap:wrap;margin:16px auto}.answer-btn{border:3px solid #a9d7ff;background:linear-gradient(145deg,#fff,#eaf6ff);color:#0e3f9b;border-radius:20px;min-width:102px;padding:13px 24px;font-size:clamp(30px,3.2vw,45px);font-weight:1000;cursor:pointer;box-shadow:0 5px 0 #a8cfe8}.answer-btn:hover{background:#fff6d0}.answer-btn:disabled{opacity:.55;cursor:default}.answer-btn.correct{border-color:#2bb738;background:linear-gradient(#8eff7a,#48e853);box-shadow:0 5px 0 #1f9b2b;color:#035127;opacity:1}.answer-btn.incorrect{border-color:#f08183;background:#ffdbde;opacity:1}.feedback{min-height:43px;text-align:center;font-size:23px;font-weight:1000}.feedback.yes{color:#13922d}.feedback.no{color:#c63c3c}.game-footer{display:flex;align-items:center;justify-content:space-between;gap:20px}.bar{height:19px;background:#c7e0f4;border-radius:25px;overflow:hidden;flex:1}.bar-fill{width:0;height:100%;background:linear-gradient(90deg,#37d74c,#15a94c);transition:width .3s}.primary-btn,.secondary-btn{border:0;border-radius:30px;padding:12px 23px;background:linear-gradient(145deg,#20acff,#0063d7);color:#fff;cursor:pointer;font-weight:1000;font-size:17px;display:inline-flex;align-items:center;justify-content:center;gap:6px;box-shadow:0 5px 0 #0050a6}.primary-btn:hover{filter:brightness(1.06)}.primary-btn[hidden]{display:none}.secondary-btn{color:#0651a8;background:linear-gradient(#fff,#e7f4ff);box-shadow:0 4px 0 #c4dfff;border:1px solid #b8dfff}.final-score{text-align:center}.final-score h2{font-size:38px}.big-score{font-size:82px;font-weight:1000;color:#06a844}
.sheet-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(310px,.7fr);gap:18px;width:100%;min-width:0}.sheet-preview iframe{width:100%;min-height:610px;border:1px solid #d1e3ff;border-radius:13px;background:white}.sheet-actions{text-align:center;padding:32px;display:flex;flex-direction:column;align-items:center;gap:14px}.sheet-actions h2{font-size:25px;margin:0}.sheet-actions p{color:#607da1}.sheet-bigicon{font-size:60px}.sheet-meta{display:grid;grid-template-columns:repeat(3,1fr);width:100%;gap:5px;padding:15px 6px;background:#f0f9ff;border-radius:14px;font-size:13px}.fill{width:100%;max-width:450px}.answer-details{width:100%;padding:15px;border-radius:15px;background:#e8f7ff}.answer-details summary{cursor:pointer}.answer-details a{display:block;color:#0069cc;margin-top:9px;text-decoration:underline}.section-page{max-width:1100px;display:grid;gap:18px;min-height:60vh;padding:34px 0}.section-page h1,.section-page h2{color:#0557bd}.achievement-list{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.achievement{padding:18px;border:2px solid #d4e7ff;border-radius:19px;text-align:center}.achievement span{font-size:55px}.achievement.muted{opacity:.45}.teacher-grade-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.text-link{color:#0764c9;text-decoration:underline}.footer{padding:18px 5%;display:flex;gap:10px;justify-content:space-between;background:linear-gradient(90deg,#0764d1,#0049ac);color:white;font-size:12px;font-weight:800}
@media(max-width:1200px){.topbar{gap:7px}.brand{min-width:175px;font-size:19px}.topnav a{padding:8px 5px;font-size:12px}.topnav span{display:none}.level-sections{grid-template-columns:1fr}.hero-figure{width:36%}.hero-words{width:49%}}
@media(max-width:850px){.topnav{position:fixed;bottom:0;left:0;right:0;z-index:20;background:#0756c9;padding:5px;justify-content:space-around;overflow-x:auto}.topnav a{display:flex;flex-direction:column;align-items:center;font-size:10px;padding:7px 5px;min-width:54px}.topnav span{display:block;font-size:17px;margin:0}.topbar{height:66px;padding:7px 16px}.footer{padding-bottom:90px}.hero-home{min-height:250px}.hero-words{width:62%}.hero-figure{width:33%;opacity:.7}.grade-grid,.level-bottom{gap:10px}.grade-tile{min-height:145px;padding:14px}.grade-tile img{max-width:55%}.feature-strip{grid-template-columns:repeat(2,1fr)}.home-dashboard{grid-template-columns:repeat(2,1fr)}.workspace{grid-template-columns:1fr}.sidebar{position:static;flex-direction:row;overflow:auto;white-space:nowrap}.sidebar a{font-size:12px;flex:0 0 auto}.sidebar .side-active{min-width:100px}.side-active small{display:none}.game-board{min-height:580px}.sheet-layout{grid-template-columns:1fr}}
@media(max-width:600px){.brand{font-size:18px;min-width:0}.brand-icon{width:38px;height:38px}.brand-icon b{font-size:16px}.hero-figure{opacity:.38;width:38%}.hero-words{width:88%;text-shadow:0 1px 0 #fff}.hero h1{font-size:39px}.hero p{background:#e9f7ffbd;border-radius:12px;padding:4px}.center-heading{font-size:22px}.grade-grid{grid-template-columns:1fr;gap:10px}.grade-tile{min-height:120px}.tile-number{font-size:43px}.tile-text{font-size:20px}.grade-tile img{height:150%;max-width:48%;right:5%;bottom:-28%}.feature-strip{gap:8px}.feature{min-height:55px;font-size:11px;padding:6px}.feature-emoji{font-size:23px}.home-dashboard{grid-template-columns:1fr}.level-bottom{grid-template-columns:1fr}.workspace{width:96vw}.content-panel{padding:13px}.cards-row{gap:7px}.activity-art{height:75px}.activity-icon{font-size:42px}.activity-info{padding:7px;min-height:138px}.activity-info h3{font-size:12px}.activity-info p{font-size:10px}.panel-title h2{font-size:20px}.mini-title{font-size:14px}.mini-banner{padding:11px;flex-wrap:wrap}.game-board{padding:15px}.game-top{flex-direction:column;align-items:start}.game-top h2{font-size:22px}.game-instruction{font-size:17px}.answer-btn{min-width:68px;padding:9px 14px;font-size:29px}.game-scene{min-height:180px}.object{font-size:33px}.sheet-meta{grid-template-columns:1fr}.teacher-grade-grid,.achievement-list{grid-template-columns:1fr}}

/* MATEMATICA_HOME_R04 — home comercial compacta, responsive, sin cambiar los motores */
.home-view{width:min(1180px,94vw)}
.hero-home{min-height:232px}
.hero-home .hero-words{padding:12px 4px}
.hero-home h1{font-size:clamp(32px,3.7vw,56px);margin:5px 0}
.hero-home .hero-slogan{font-size:clamp(14px,1.18vw,18px);padding:6px 13px}
.hero-home p{font-size:clamp(12px,1vw,15px);margin-top:9px}
.hero-home .eyebrow{font-size:11px}
.home-view .center-heading{font-size:clamp(21px,2vw,27px);margin:15px 0 12px}
.home-view .grade-grid{max-width:1080px;gap:14px}
.home-view .grade-tile{min-height:145px;border-width:4px;border-radius:22px;padding:15px}
.home-view .tile-number{font-size:50px}
.home-view .tile-text{font-size:21px}
.level-overview{padding:1px 0 23px}
.overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.overview-card{display:flex;flex-direction:column;min-width:0;min-height:250px;border:1px solid #c7e1ff;border-top:5px solid #2e9fea;border-radius:21px;background:#fff;box-shadow:0 5px 14px #0c47951c;padding:17px 18px}
.overview-card.overview-2{border-top-color:#28ba87}.overview-card.overview-3{border-top-color:#9e7be4}
.overview-head{display:flex;align-items:flex-start;gap:12px}
.overview-number{display:grid;place-items:center;width:49px;height:49px;border-radius:14px;flex:0 0 49px;background:#e0f4ff;color:#0065ba;font-size:28px;font-weight:1000}
.overview-2 .overview-number{background:#defbe9;color:#07825d}.overview-3 .overview-number{background:#efe7ff;color:#7247bc}
.overview-head h3{margin:1px 0 4px;font-size:17px;color:#0d4797}
.overview-intro{font-weight:700;color:#536e91;font-size:12px;line-height:1.35;display:block}
.overview-topics{list-style:none;margin:12px 0 13px;padding:0;display:grid;gap:6px}
.overview-topics li{font-size:13px;font-weight:800;display:flex;gap:8px;align-items:start}
.overview-topics li::before{content:'✓';color:#0ca36e;font-weight:1000}
.overview-bottom{margin-top:auto;border-top:1px solid #e1ecfb;padding-top:11px;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.overview-amount{font-size:11px;color:#32678f;font-weight:900}
.overview-link{display:inline-flex;gap:8px;align-items:center;justify-content:center;padding:9px 13px;background:#075ed0;color:#fff;border-radius:22px;font-weight:1000;font-size:12px}
.overview-link:hover{background:#064ba6}
.footer{justify-content:center;text-align:center;padding:14px 15px}
.back-to-top{position:fixed;z-index:31;right:19px;bottom:19px;width:46px;height:46px;display:grid;place-items:center;border:2px solid white;border-radius:50%;background:#075ed0;color:#fff;box-shadow:0 4px 16px #042b7890;font-size:26px;font-weight:1000;cursor:pointer}
.back-to-top:hover{background:#034baf}.back-to-top[hidden]{display:none}
@media(max-width:1050px){.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-card:last-child{grid-column:1/-1;min-height:0}.overview-card{min-height:230px}.home-view .grade-tile{min-height:138px}.hero-home{min-height:220px}}
@media(max-width:850px){.back-to-top{bottom:82px}.hero-home{min-height:210px}.home-view .grade-grid{gap:10px}.home-view .grade-tile{min-height:125px;padding:11px}.home-view .tile-number{font-size:42px}.home-view .tile-text{font-size:17px}.overview-card:last-child{grid-column:auto}.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.level-overview{padding-bottom:18px}.footer{padding-bottom:82px}}
@media(max-width:600px){.hero-home{min-height:195px}.hero-home h1{font-size:35px}.hero-home .hero-words{width:91%;padding:10px 4px}.home-view{width:min(480px,94vw)}.home-view .grade-grid{grid-template-columns:1fr;gap:10px}.home-view .grade-tile{min-height:100px;padding:11px}.home-view .grade-tile img{height:160%;bottom:-30%}.home-view .tile-number{font-size:39px}.home-view .tile-text{font-size:17px}.overview-grid{grid-template-columns:1fr;gap:11px}.overview-card{min-height:0;padding:13px 15px}.overview-head h3{font-size:16px}.overview-topics{gap:4px;margin:9px 0}.overview-bottom{padding-top:10px}.home-view .center-heading{margin:14px 0 10px}.back-to-top{right:12px;bottom:83px;width:42px;height:42px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* MATEMATICA_LEVEL_R05 — remove duplicate sidebar/empty rewards, compact grade/game/worksheet views */
.view-grade .hero-level{min-height:146px}
.view-grade .hero-level .hero-words{width:48%;padding:8px 4px}
.view-grade .level-pill{font-size:clamp(23px,2.2vw,34px);border-width:3px;border-radius:20px;padding:2px 25px}
.view-grade .hero h1.level-name{font-size:clamp(20px,1.8vw,28px);margin:4px 0 0}
.view-grade .hero-level p{font-size:clamp(12px,1vw,15px);margin:7px 0 0}
.grade-workspace{width:min(1440px,94vw);padding:12px 0 22px}
.grade-return{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:0 0 12px}
.grade-return .backlink{display:inline-flex;align-items:center;border:1px solid #c9e3fc;border-radius:22px;background:#fff;padding:9px 16px;font-size:13px;font-weight:1000;color:#1253ad;box-shadow:0 3px 10px #0756a516}
.grade-return .backlink:hover{background:#e8f6ff}
.grade-context{font-size:13px;color:#4d74a1}
.grade-workspace .level-sections{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.grade-workspace .content-panel{padding:12px;border-radius:20px}
.grade-workspace .panel-title{margin-bottom:11px}
.grade-workspace .panel-title h2{font-size:clamp(19px,1.4vw,23px)}
.grade-workspace .tag{font-size:12px;padding:5px 10px}
.grade-workspace .cards-row{gap:9px}
.grade-workspace .activity-art{height:88px}
.grade-workspace .activity-icon{font-size:49px}
.grade-workspace .activity-info{min-height:119px}
.grade-workspace .activity-info h3{font-size:14px;min-height:32px}
.grade-workspace .activity-info p{font-size:11px}
.grade-workspace #games,.grade-workspace #sheets{scroll-margin-top:17px}
.grade-workspace #games:target,.grade-workspace #sheets:target{outline:3px solid #1d99ef;outline-offset:2px;box-shadow:0 5px 19px #2186c038}
.view-game .mini-banner,.view-sheet .mini-banner{min-height:61px;padding:9px clamp(12px,3vw,45px)}
.view-game .mini-title,.view-sheet .mini-title{font-size:clamp(16px,1.6vw,22px)}
.view-game .game-workspace,.view-sheet .sheet-workspace{width:min(1340px,95vw);grid-template-columns:190px minmax(0,1fr);gap:13px;padding:13px 0 24px}
.view-game .sidebar,.view-sheet .sidebar{padding:10px;gap:6px;border-radius:20px}
.view-game .sidebar a,.view-sheet .sidebar a{padding:10px 9px;font-size:13px}
.view-game .game-board{min-height:540px;padding:17px 22px}
.view-game .game-top h2{font-size:clamp(21px,2vw,26px)}
.view-game .game-instruction{margin-top:12px;padding:10px;font-size:clamp(17px,1.6vw,21px)}
.view-game .game-scene{min-height:180px;margin:11px auto;padding:15px}
.view-game .objects{gap:6px}
.view-game .object{font-size:clamp(31px,3.6vw,50px)}
.view-game .equation{font-size:clamp(38px,4vw,61px)}
.view-game .answers{margin:12px auto}
.view-game .answer-btn{padding:10px 21px;min-width:88px;font-size:clamp(27px,2.7vw,39px)}
.view-game .feedback{min-height:35px;font-size:19px}
.view-sheet .sheet-preview iframe{min-height:520px}
.view-sheet .sheet-actions{padding:19px;gap:9px}
.view-sheet .sheet-bigicon{font-size:46px}
.view-sheet .sheet-actions h2{font-size:22px}
@media(max-width:900px){
 .grade-workspace .level-sections{grid-template-columns:1fr}
 .view-game .game-workspace,.view-sheet .sheet-workspace{grid-template-columns:1fr}
 .view-game .sidebar,.view-sheet .sidebar{position:static;flex-direction:row;overflow:auto;white-space:nowrap}
 .view-sheet .sheet-layout{grid-template-columns:1fr}
}
@media(max-width:600px){
 .view-grade .hero-level{min-height:124px}
 .view-grade .hero-level .hero-words{width:88%;padding:7px 5px}
 .view-grade .hero-level p{font-size:12px;margin:3px 0}
 .grade-workspace{width:94vw}
 .grade-context{display:none}
 .grade-workspace .cards-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .grade-workspace .activity-card:last-child{grid-column:1/-1}
 .grade-workspace .activity-art{height:90px}
 .grade-workspace .activity-info{min-height:111px}
 .view-game .game-board{padding:12px;min-height:0}
 .view-sheet .sheet-preview iframe{min-height:460px}
}
@media(max-width:380px){.grade-workspace .cards-row{grid-template-columns:1fr}.grade-workspace .activity-card:last-child{grid-column:auto}}


/* MATEMATICA_LAYOUT_R06 — simple header and compressed level hero, sticky footer */
.topbar{height:66px;gap:12px}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-left:auto;min-width:0}
.header-actions .teacher-link{color:#fff;display:inline-flex;align-items:center;gap:7px;border-radius:24px;padding:9px 13px;font-weight:900;white-space:nowrap;transition:background .15s}
.header-actions .teacher-link:hover{background:#ffffff2a}
.header-actions .teacher-link span{font-size:20px;line-height:1}
.header-actions .lang-picker{flex:0 0 108px}
body.view-grade{display:flex;flex-direction:column;min-height:100vh}
body.view-grade .grade-workspace{flex:1 0 auto}
body.view-grade .footer{margin-top:auto}
.view-grade .hero-level{min-height:104px}
.view-grade .hero-level .hero-words{min-height:104px;padding:4px 2px;width:51%}
.view-grade .level-pill{font-size:clamp(20px,1.7vw,27px);padding:1px 19px;border-width:2px;border-radius:17px}
.view-grade .hero h1.level-name{font-size:clamp(17px,1.45vw,22px);line-height:1.1;margin:2px 0 0}
.view-grade .hero-level p{font-size:clamp(11px,.82vw,13px);line-height:1.14;margin:4px 0 0}
@media(max-width:850px){
  .topbar{height:62px;padding:7px 14px}
  .footer{padding-bottom:14px}
  .back-to-top{bottom:18px}
  .header-actions{gap:6px}
  .header-actions .teacher-link{padding:8px;font-size:12px}
  .header-actions .teacher-link span{font-size:16px}
  .header-actions .lang-picker{flex-basis:97px}
  .view-grade .hero-level,.view-grade .hero-level .hero-words{min-height:102px}
}
@media(max-width:600px){
  .topbar{height:58px;gap:6px;padding:6px 10px}
  .brand{min-width:0;font-size:16px;gap:5px}
  .brand-icon{width:34px;height:34px;gap:2px}
  .brand-icon b{font-size:14px;border-radius:5px}
  .header-actions .teacher-link{font-size:11px;line-height:1.1;gap:3px;padding:6px 2px}
  .header-actions .teacher-link span{font-size:15px}
  .header-actions .lang-picker{flex-basis:85px;min-width:85px}
  .header-actions .lang-picker select{font-size:12px;padding:7px 3px}
  .view-grade .hero-level,.view-grade .hero-level .hero-words{min-height:92px}
  .view-grade .hero-level .hero-words{width:88%;padding:3px 0}
  .view-grade .level-pill{font-size:20px;padding:0 16px}
  .view-grade .hero h1.level-name{font-size:17px;margin:2px 0}
  .view-grade .hero-level p{font-size:10px;margin:2px 0}
}
@media(max-width:380px){
 .brand{font-size:14px}
 .header-actions .teacher-link{font-size:10px}
 .header-actions .lang-picker{flex-basis:72px;min-width:72px}
}


/* MATEMATICA_LAYOUT_R07 — vertical balance on desktop grade pages only.
   Restore a substantial illustrated hero; fill the viewport without a blank lower field.
   On mobile, retain the compact hero and natural scrolling. */
@media (min-width:901px) and (min-height:600px){
  body.view-grade .hero-level,
  body.view-grade .hero-level .hero-words{min-height:clamp(215px,32vh,350px)}
  body.view-grade .hero-level .hero-words{width:47%;padding:18px 5px}
  body.view-grade .level-pill{font-size:clamp(28px,2.55vw,40px);padding:3px 32px;border-width:3px;border-radius:25px}
  body.view-grade .hero h1.level-name{font-size:clamp(23px,2vw,32px);line-height:1.2;margin:8px 0 0}
  body.view-grade .hero-level p{font-size:clamp(13px,1.08vw,17px);line-height:1.3;margin:8px 0 0}
  body.view-grade .grade-workspace{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;padding:clamp(18px,2.7vh,32px) 0}
  body.view-grade .grade-return{margin-bottom:clamp(13px,2vh,21px)}
  body.view-grade .grade-workspace .activity-art{height:clamp(104px,12vh,136px)}
  body.view-grade .grade-workspace .activity-info{min-height:clamp(126px,14vh,160px)}
  body.view-grade .grade-workspace .activity-info p{font-size:clamp(11px,.7vw,13px)}
}
@media (min-width:901px) and (max-height:680px){
  body.view-grade .hero-level,body.view-grade .hero-level .hero-words{min-height:175px}
  body.view-grade .grade-workspace{padding:16px 0}
  body.view-grade .grade-workspace .activity-art{height:92px}
  body.view-grade .grade-workspace .activity-info{min-height:119px}
}


/* MATEMATICA_GAME_R08 — game-specific hero and balanced viewport, all 3 grades */
body.view-game{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body.view-game .footer{margin-top:auto;flex-shrink:0}
.view-game .hero-game{min-height:clamp(145px,18vh,192px);flex-shrink:0}
.view-game .hero-game .hero-words{min-height:inherit;width:min(51%,660px);padding:9px 5px}
.view-game .hero-game .level-pill{border-width:3px;border-radius:20px;font-size:clamp(24px,2vw,33px);padding:2px 27px}
.view-game .hero-game h1.level-name{font-size:clamp(21px,2.1vw,31px);margin:5px 0 0;letter-spacing:-.4px;line-height:1.1}
.view-game .hero-game p{font-size:clamp(12px,1vw,15px);line-height:1.25;margin:7px 0 0;max-width:530px}
.view-game .game-workspace{flex:1 0 auto;align-items:center;padding:clamp(16px,2.5vh,27px) 0;grid-template-columns:190px minmax(0,1fr)}
.view-game .game-workspace .sidebar{position:static;width:100%;align-self:start}
.view-game .game-board{width:100%;min-height:clamp(455px,55vh,570px);display:flex;flex-direction:column;justify-content:center}
.view-game .game-board .game-footer{margin-top:auto}
.view-game .game-board .feedback{min-height:36px}
@media(max-width:900px){
  .view-game .game-workspace{grid-template-columns:1fr;align-items:stretch}
  .view-game .game-workspace .sidebar{flex-direction:row;flex-wrap:wrap;white-space:normal;gap:5px}
  .view-game .game-workspace .sidebar a{flex:0 1 auto}
  .view-game .game-board{min-height:460px}
}
@media(max-width:600px){
  .view-game .hero-game{min-height:125px}
  .view-game .hero-game .hero-words{width:90%;padding:6px 3px}
  .view-game .hero-game .hero-figure{opacity:.26}
  .view-game .hero-game .level-pill{font-size:22px;padding:0 17px}
  .view-game .hero-game h1.level-name{font-size:21px;margin:4px 0 0}
  .view-game .hero-game p{font-size:11px;margin:4px 0 0}
  .view-game .game-workspace{padding:12px 0 20px}
  .view-game .game-workspace .sidebar{padding:8px;gap:3px}
  .view-game .game-workspace .sidebar .side-active{display:none}
  .view-game .game-workspace .sidebar a{padding:8px 9px;font-size:11px}
  .view-game .game-board{min-height:440px}
}
@media(max-width:375px){.view-game .hero-game p{display:none}}

/* MATEMATICA_R10_SHEETS — dedicated printable worksheet UX; remove duplicate teacher header. */
.header-actions{justify-content:flex-end}
.demo-note{display:flex;align-items:center;gap:10px;max-width:1440px;margin:4px auto 12px;padding:9px 14px;border:1px solid #bcdfff;background:#f3faff;border-radius:13px;font-size:12px;line-height:1.4;color:#275889}
.demo-note strong{white-space:nowrap;background:#dceeff;color:#0055b9;border:1px solid #9acbff;padding:4px 9px;border-radius:30px;font-size:11px}
.demo-home-note{margin:7px auto 17px;max-width:1160px}
.demo-grade-note{margin:0 0 14px}
.view-game .game-top{display:flex;align-items:start;justify-content:space-between;gap:9px}
.game-demo-description{font-size:12px;line-height:1.4;margin:0 0 10px;color:#46719f;font-weight:700}
.view-sheet{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.view-sheet .footer{margin-top:auto;flex-shrink:0}
.view-sheet .hero-sheet{min-height:clamp(145px,20vh,205px);flex-shrink:0}
.view-sheet .hero-sheet .hero-words{min-height:inherit;width:min(51%,670px);padding:12px 4px}
.view-sheet .hero-sheet .level-pill{font-size:clamp(22px,2vw,32px);border-width:3px;border-radius:18px;padding:2px 24px}
.view-sheet .sheet-hero-line{display:flex;gap:12px;align-items:center;justify-content:center}
.view-sheet .sheet-demo-badge{background:#fff;color:#0759bb;box-shadow:0 3px 12px #0053a133}
.view-sheet .hero-sheet h1.level-name{font-size:clamp(22px,2.1vw,32px);line-height:1.14;margin:7px 0 0}
.view-sheet .hero-sheet p{font-size:clamp(12px,1vw,15px);line-height:1.3;margin:5px 0 0}
.sheet-workspace-new{width:min(1370px,94vw);flex:1 0 auto;padding:17px 0 23px}
.sheet-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 13px}
.sheet-toolbar .backlink{display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#075bbd;border:1px solid #bbdbfc;border-radius:21px;padding:10px 17px;box-shadow:0 3px 13px #134ba214;font-size:13px;font-weight:1000}
.sheet-crumb{font-size:13px;color:#416b9c;font-weight:900;text-align:right}
.sheet-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:0 0 16px}
.sheet-tab{display:flex;align-items:center;gap:10px;min-height:64px;background:#fff;border:2px solid #d7e9ff;border-radius:17px;padding:11px 16px;box-shadow:0 3px 10px #0d4f8b17;transition:background .15s, border-color .15s}
.sheet-tab:hover{background:#e7f6ff;border-color:#65b7ff}.sheet-tab.is-active{background:#dff1ff;border-color:#239af4;box-shadow:0 4px 11px #1e8deb2e}
.sheet-tab-number{flex:0 0 auto;display:grid;place-content:center;border-radius:13px;background:#ddecff;color:#0752ab;padding:10px;font-size:12px;font-weight:1000}
.sheet-tab strong{font-size:14px;line-height:1.2;color:#103981}
.sheet-main-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(315px,.77fr);gap:16px;align-items:start}
.view-sheet .sheet-preview-new{padding:14px;min-width:0}
.view-sheet .sheet-preview-new .panel-title{margin-bottom:11px}
.view-sheet .sheet-preview-new .panel-title h2{font-size:20px}
.sheet-chips{display:flex;gap:7px}
.sheet-demo-tag{background:#e0f4ff}
.view-sheet .sheet-preview-new iframe{display:block;width:100%;height:clamp(445px,64vh,760px);min-height:0;border:1px solid #cce3fa;border-radius:13px;background:#fff}
.view-sheet .sheet-actions-new{padding:24px 19px;display:flex;flex-direction:column;gap:12px;text-align:center;align-items:stretch}
.view-sheet .sheet-actions-new .sheet-bigicon{font-size:40px;line-height:1}
.view-sheet .sheet-actions-new h2{font-size:clamp(20px,1.7vw,26px);margin:0;color:#0754ab}
.view-sheet .sheet-actions-new .sheet-desc{margin:0;color:#5879a1;font-size:14px}
.view-sheet .sheet-actions-new .sheet-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;background:#eef8ff;border-radius:14px;padding:11px}
.view-sheet .sheet-actions-new .sheet-meta span{background:#fff;border-radius:17px;padding:6px 9px;font-size:12px;white-space:nowrap;color:#2a6da7}
.view-sheet .sheet-actions-new .sheet-meta .sheet-status{color:#098257}
.view-sheet .sheet-actions-new .fill{width:100%;display:flex;align-items:center;justify-content:center;min-height:46px}
.view-sheet .sheet-actions-new .answer-details{width:100%;margin:0;text-align:left}
.view-sheet .sheet-actions-new .answer-details summary{cursor:pointer}
.view-sheet .sheet-context-note{border-top:1px solid #e1efff;padding-top:13px;color:#6483aa;font-size:12px;margin:0}
@media(max-width:930px){
 .sheet-main-grid{grid-template-columns:minmax(0,1fr) minmax(250px,.72fr)}
 .sheet-workspace-new{width:96vw}
 .sheet-tab{padding:9px;min-height:60px}
 .sheet-tab strong{font-size:12px}
 .view-sheet .hero-sheet .hero-words{width:67%}
}
@media(max-width:720px){
 .sheet-main-grid{grid-template-columns:1fr}
 .view-sheet .sheet-actions-new{gap:10px;padding:16px}
 .view-sheet .sheet-actions-new .sheet-bigicon{display:none}
 .sheet-tabs{gap:5px}
 .sheet-tab{display:block;text-align:center;min-height:70px;padding:9px 4px}
 .sheet-tab-number{padding:5px;font-size:10px;margin:0 0 6px}
 .sheet-tab strong{display:block;font-size:11px;line-height:1.15}
 .sheet-crumb{display:none}
 .view-sheet .hero-sheet{min-height:132px}
 .view-sheet .hero-sheet .hero-words{width:92%;padding:6px 3px}
 .view-sheet .hero-sheet .hero-figure{opacity:.27}
 .view-sheet .hero-sheet .level-pill{font-size:20px;padding:1px 14px}
 .view-sheet .hero-sheet h1.level-name{font-size:19px;margin:5px 0 0}
 .view-sheet .hero-sheet p{font-size:11px;line-height:1.2}
 .view-sheet .sheet-preview-new iframe{height:560px}
 .demo-note{flex-wrap:wrap;font-size:11px}
}
@media(max-width:420px){
 .view-sheet .sheet-preview-new iframe{height:470px}
 .sheet-workspace-new{width:95vw}
 .view-sheet .sheet-hero-line{gap:7px}
 .view-sheet .sheet-preview-new{padding:9px}
 .view-sheet .sheet-preview-new .panel-title h2{font-size:17px}
}
