:root{--yellow:#ffeb3c;--blue:#0063f2;--sky:#26b7ff;--toki:#ffbe1b;--ink:#183e72;--secondary:#547392;--green:#159b6b;--line:#daebf7;--cream:#fffefa;--shadow:0 15px 35px #185b9f14}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:16px/1.5 Nunito,Inter,Arial,sans-serif;color:var(--ink);background:radial-gradient(circle at 95% 15%,#d4effd 0%,transparent 30%),radial-gradient(circle at 5% 70%,#fff6c8 0%,transparent 33%),#fffdf5;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}a{text-decoration:none;color:var(--blue)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #ff9700;outline-offset:3px}.app-shell{position:relative;max-width:1290px;margin:0 auto;padding:0 24px 30px}.site-head{min-height:91px;display:flex;align-items:center;gap:18px}.brand{display:inline-flex;align-items:center;padding:9px 11px 9px 0;flex-shrink:0}.brand img{display:block;width:161px;height:auto}.brand-project{font-size:14px;font-weight:900;white-space:nowrap;background:white;padding:11px 15px;border-radius:999px;border:1px solid #dbe9f6}.headnav{margin-left:auto;display:flex;gap:5px;align-items:center}.headnav button{border:0;background:transparent;color:#396aa3;font-weight:850;border-radius:11px;padding:10px 13px}.headnav button:hover{background:#e7f5ff}.site-footer{font-size:12px;color:#738caa;margin:25px 0 5px;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.back-deco{position:fixed;pointer-events:none;z-index:-1;width:280px;height:280px;border-radius:50%;background:linear-gradient(25deg,#fff7b8,#fffbea80)}.back-deco.one{left:-170px;top:270px}.back-deco.two{right:-150px;bottom:-100px;background:#d5f1ff80}
.hero{position:relative;overflow:hidden;min-height:365px;border-radius:32px;background:linear-gradient(113deg,#f3fbff 0%,#d4f3ff 70%,#b3e8fe);border:3px solid white;box-shadow:var(--shadow);padding:35px 43px}.hero.small{min-height:270px;padding:31px 38px}.hero::after{content:"";position:absolute;right:-10%;bottom:-145px;width:65%;height:265px;border-radius:50%;background:#9adaaa65}.hero-content{position:relative;z-index:2;max-width:65%}.hero h1{font-size:clamp(30px,4.4vw,58px);line-height:1.07;color:var(--blue);font-weight:1000;letter-spacing:-1.4px;margin:16px 0}.hero h1 em{color:#ee9400;font-style:normal}.hero p{max-width:570px;color:#587a9d;font-size:18px;margin:12px 0 20px}.hero-toki{position:absolute;z-index:1;object-fit:contain;object-position:center bottom;right:5%;bottom:-1px;height:95%;max-width:37%;pointer-events:none}.hero.small .hero-toki{height:100%;right:5%;max-width:34%}.pill{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:30px;background:var(--yellow);font-weight:900;color:#9b6913;font-size:12px}.pill.qa{background:#f0ebff;color:#7854bb}.pill.green{background:#e0f8ef;color:#087d52}.pill.gold{background:#fff5cc;color:#86601b}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:15px;background:var(--blue);color:white;padding:13px 22px;font-weight:950;box-shadow:0 5px 0 #004ba8;min-height:45px}.btn:hover{filter:brightness(1.06)}.btn:active{transform:translateY(3px);box-shadow:0 2px 0 #004ba8}.btn.yellow{background:var(--yellow);color:#164f9c;box-shadow:0 5px 0 #d8b917}.btn.ghost{background:white;color:var(--blue);border:1px solid #cce4fc;box-shadow:none}.btn.small{font-size:13px;padding:9px 16px;min-height:37px}.btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}.btn-row{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.section-line{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:27px 0 15px}.section-line h2{font-weight:1000;font-size:25px;margin:0;letter-spacing:-.7px}.muted{color:var(--secondary)}.section-line span{font-size:13px;color:#8197ae}.grade-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.tile{position:relative;overflow:hidden;background:white;border-radius:25px;padding:25px;border:1px solid #e6eefb;box-shadow:var(--shadow)}.grade-tile{display:flex;gap:22px;align-items:center;min-height:212px}.grade-mark{flex:0 0 92px;width:92px;height:112px;display:grid;place-items:center;background:#e5f2ff;border-radius:22px;font-size:69px;font-weight:1000;color:var(--blue)}.grade-mark.four{background:#f1e9ff;color:#985ed5}.tile h3{margin:0 0 4px;font-size:24px}.tile p{color:#617e9b;margin:0 0 14px;font-size:14px;max-width:315px}.tile .mini-toki{position:absolute;right:12px;bottom:8px;height:128px;max-width:26%;object-fit:contain;pointer-events:none}.tile .tile-body{z-index:1;position:relative;padding-right:95px}.lower-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:18px;margin-top:20px}.lower-grid .tile{min-height:183px}.referral{display:flex;gap:17px;align-items:center}.referral img.qr{width:118px;height:118px;object-fit:contain;background:white;border-radius:12px;padding:6px;border:1px solid #e4e8f0;flex-shrink:0}.referral p{margin:5px 0 8px}.referral h3{font-size:18px;margin:0;color:#0861ca}.referral small{font-size:12px;color:#7e94a9}.referral .mini-toki{height:90px;max-width:80px;object-fit:contain}.world-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.world{border:2px solid white;text-align:left;position:relative;overflow:hidden;min-height:210px;border-radius:23px;padding:21px 22px;background:linear-gradient(145deg,var(--bg),#fff);box-shadow:var(--shadow);color:var(--ink);cursor:pointer}.world::before{content:"";position:absolute;right:-55px;top:-50px;width:145px;height:145px;border-radius:50%;background:var(--corner);opacity:.6}.world h3{position:relative;font-size:21px;margin:18px 0 7px}.world p{font-size:13px;color:#63809e;line-height:1.5;min-height:20px;margin:0 0 13px}.world .world-emoji{font-size:37px}.world .world-count{display:inline-flex;position:relative;background:#fff9;border-radius:22px;padding:7px 10px;font-size:12px;color:#396ca8;font-weight:900}.world:hover:not(:disabled){transform:translateY(-3px)}.world.locked{filter:saturate(.62);opacity:.78;cursor:not-allowed}.world .arrow{position:absolute;right:21px;bottom:17px;border-radius:50%;width:39px;height:39px;display:grid;place-items:center;background:var(--blue);color:white;font-size:20px}.section-note{border:1px solid #cbe3f8;border-radius:16px;padding:15px 18px;background:#f1faff;color:#4b7195;margin:17px 0;line-height:1.55;font-size:14px}.chapter-actions{margin:18px 0;display:flex;gap:10px;flex-wrap:wrap;align-items:center}.form-field{display:flex;flex-direction:column;gap:7px;font-weight:800;color:#52749c;font-size:13px}.form-field input,.form-field select{border-radius:12px;border:1px solid #d2e5fa;padding:12px 14px;background:white;font-size:15px;min-width:210px;color:#1a426c}.quote-card{background:white;border-radius:20px;padding:18px;box-shadow:var(--shadow);display:flex;align-items:center;gap:12px}.quote-card img{height:100px;max-width:105px;object-fit:contain}
.quiz-wrap{max-width:925px;margin:12px auto}.quiz-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.progress{background:#e2ebf6;border-radius:20px;height:13px;overflow:hidden;border:2px solid white}.progress > div{background:#24bdac;height:100%;transition:width .2s}.quiz-card{border-radius:30px;background:#fff;box-shadow:var(--shadow);padding:27px 29px;margin:17px 0;position:relative;border:2px solid white}.quiz-card .badge-row{display:flex;gap:12px;align-items:center;justify-content:space-between}.quiz-card .badge-row img{height:70px;max-width:86px;object-fit:contain}.quiz-card h2{font-size:clamp(21px,3vw,30px);margin:19px 0;color:#154c91;line-height:1.4;white-space:pre-wrap}.context{padding:16px 17px;border-left:5px solid #ffcb33;border-radius:13px;background:#fff9df;white-space:pre-wrap;color:#455f79;line-height:1.7}.options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.option{display:flex;align-items:center;gap:11px;text-align:left;min-height:68px;padding:12px 13px;border:2px solid #dce9f9;background:#f9fcff;border-radius:16px;color:#29547a;font-size:16px;font-weight:850}.option.selected{border-color:var(--blue);background:#eaf3ff}.option.correct{border-color:#32c59b;background:#e9fff3}.option.bad{border-color:#f2878e;background:#fff0f3}.option:disabled{cursor:default}.letter{flex-shrink:0;width:33px;height:33px;display:grid;place-items:center;background:white;border-radius:9px;color:var(--blue);font-weight:900}.option img{display:block;max-width:120px;max-height:87px;object-fit:contain}.option.has-picture{flex-direction:column;text-align:center}.input-answer{width:100%;border:2px solid #cfe3f6;border-radius:13px;font-size:19px;padding:16px;color:#1e4b7f}.token-zone{border:1px dashed #b3cee6;background:#f8fbff;border-radius:15px;padding:14px;margin:11px 0;display:flex;gap:8px;flex-wrap:wrap;min-height:65px}.token{padding:9px 13px;background:#fff;border:1px solid #c6d8f0;border-radius:12px;font-weight:850;color:#2e6298}.token.used{opacity:.35}.audio-panel{border:2px dashed #cce2fc;background:#f2f7ff;border-radius:15px;padding:16px;margin-bottom:13px;display:flex;align-items:center;gap:12px}.audio-panel small{color:#6682a3;display:block}.feedback{border:1px solid #abebd2;border-radius:16px;padding:16px 18px;background:#effff6;margin:18px 0;color:#277b60}.feedback.wrong{background:#fff5ed;border-color:#ffd4c5;color:#8f5b39}.feedback b{display:block;font-size:17px}.feedback p{margin:7px 0 0;color:#4e6c87}.quiz-controls{display:flex;gap:9px;justify-content:space-between;flex-wrap:wrap;margin-top:22px}
.results-head{border-radius:28px;padding:25px;background:linear-gradient(115deg,#fff4ba,#dbf3ff);box-shadow:var(--shadow);display:flex;align-items:center;gap:28px;min-height:245px}.results-head img{height:206px;max-width:33%;object-fit:contain;flex-shrink:0}.score{font-size:65px;line-height:1;font-weight:1000;color:#0063f2}.score small{font-size:19px;font-weight:800;color:#5a7897}.results-head h1{font-size:33px;margin:10px 0;color:#164c91}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-top:20px}.stat{background:white;border-radius:18px;padding:17px;text-align:center;box-shadow:var(--shadow)}.stat strong{display:block;color:var(--blue);font-size:30px}.skill-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.skill{padding:15px;background:white;border:1px solid var(--line);border-radius:16px}.skill strong{display:flex;justify-content:space-between;gap:8px}.track{height:9px;margin:10px 0 0;background:#e8eef7;border-radius:12px;overflow:hidden}.track>div{background:linear-gradient(90deg,#2bc49a,#68dcb4);height:100%}.explanation{border:1px solid #e1eafa;background:white;border-radius:17px;margin:9px 0;padding:16px}.explanation summary{cursor:pointer;font-weight:900;color:#255789}.explanation .detail{margin-top:12px;font-size:14px;color:#416588}.bad-text{color:#d25369}.good-text{color:#087e57}.tips{background:#fffaf0;border:1px solid #ffedbf;border-radius:17px;padding:19px;margin:18px 0}.tags{display:flex;gap:7px;flex-wrap:wrap}.tag{padding:7px 10px;border-radius:15px;background:#ecf7ff;color:#2862a3;font-weight:800;font-size:12px}.live-note{font-size:12px;color:#7c91a6;margin-top:9px}.section-title{font-size:22px;margin:24px 0 10px}.status-strip{background:#fff8e3;padding:13px 16px;border:1px solid #f6e4b0;border-radius:14px;font-size:13px;color:#80601f;margin-bottom:20px}
@media(max-width:850px){.site-head{flex-wrap:wrap;padding:10px 0;justify-content:space-between}.headnav{margin-left:0;order:3;flex-basis:100%;justify-content:space-between}.hero-content{max-width:66%}.hero-toki{max-width:40%}.tile .mini-toki{opacity:.9}.world-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lower-grid{grid-template-columns:1fr}}
@media(max-width:600px){body{font-size:14px}.app-shell{padding:0 14px 20px}.site-head{min-height:64px}.brand img{width:115px}.brand-project{font-size:10px;padding:9px}.headnav button{font-size:12px;padding:7px 8px}.hero{padding:20px 20px 182px;min-height:400px;border-radius:24px}.hero-content{max-width:100%}.hero h1{font-size:37px}.hero p{font-size:14px}.hero-toki{max-width:none;width:200px;height:195px;right:12px;bottom:0}.hero.small{min-height:315px;padding:20px 20px 118px}.hero.small .hero-toki{height:145px;width:150px;max-width:none;right:3px}.section-line h2{font-size:21px}.section-line span{display:none}.grade-grid{grid-template-columns:1fr}.grade-tile{min-height:154px;padding:16px;gap:13px}.grade-mark{width:73px;flex-basis:73px;height:90px;font-size:49px}.tile .tile-body{padding-right:75px}.tile h3{font-size:20px}.tile p{font-size:12px}.tile .mini-toki{height:100px;max-width:24%}.world-grid{grid-template-columns:1fr 1fr;gap:10px}.world{min-height:180px;padding:15px}.world h3{font-size:16px;margin-top:12px}.world .world-emoji{font-size:30px}.world p{font-size:12px}.world-count{font-size:10px!important}.world .arrow{width:30px;height:30px;right:10px;bottom:10px}.lower-grid{gap:12px}.lower-grid .tile .mini-toki{display:none}.referral img.qr{width:91px;height:91px}.referral .mini-toki{display:none}.referral h3{font-size:15px}.referral p{font-size:12px}.quiz-card{padding:19px 14px}.quiz-card h2{font-size:23px}.options{grid-template-columns:1fr}.option{min-height:55px}.options.images{grid-template-columns:repeat(2,1fr)}.results-head{gap:7px;padding:15px;min-height:180px}.results-head img{height:138px}.results-head h1{font-size:23px}.score{font-size:44px}.score small{font-size:13px}.stats{gap:7px}.stat{padding:11px 4px}.stat strong{font-size:21px}.stat span{font-size:11px}.skill-stats{grid-template-columns:1fr}.section-title{font-size:20px}.btn{padding:11px 16px;font-size:13px}.quote-card img{height:70px}.site-footer{justify-content:center;text-align:center}}
@media print{.headnav,.quiz-controls,.site-footer,.btn-row,.site-head,.referral,#downloadResult,.back-deco{display:none!important}body{background:white}.app-shell{max-width:100%}.explanation{break-inside:avoid}}

/* Grade 4 five-set exam chooser */
.exam-box{margin-top:24px!important;background:linear-gradient(125deg,#fff,#f9fcff);border:2px solid #ffdf80!important}.exam-box-intro{display:flex;align-items:center;gap:14px;justify-content:space-between}.exam-box-intro h3{font-size:26px;margin:12px 0 5px}.exam-box-intro p{max-width:610px}.exam-toki{width:95px;height:100px;object-fit:contain;flex-shrink:0}.exam-test-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin-top:20px}.exam-test-card{display:flex;flex-direction:column;align-items:flex-start;min-height:156px;gap:9px;background:#f0f7ff;border:2px solid #daebff;border-radius:17px;padding:14px;cursor:pointer;color:#134781;text-align:left}.exam-test-card:nth-child(2n){background:#fffbeb;border-color:#ffecbd}.exam-test-card:hover{border-color:#0063f2;transform:translateY(-2px)}.exam-number{font-size:30px;font-weight:1000;color:#0063f2;line-height:1}.exam-test-card strong{font-size:14px}.exam-test-card small{font-size:12px;line-height:1.4;color:#617b99}.exam-test-card span:last-child{margin-top:auto;font-size:12px;color:#0063f2;font-weight:900}.exam-info{margin-top:16px;background:#fff8df;border:1px solid #ffde8a;border-radius:14px;padding:13px;font-size:13px;color:#795b19}.exam-section-tag{padding:8px 12px;background:#f1f7ff;border-radius:10px;margin-bottom:12px;color:#225e9c;font-size:13px;font-weight:900}.option .letter{min-width:33px}@media(max-width:850px){.exam-test-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:520px){.exam-test-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-test-card{min-height:125px}.exam-toki{width:68px}.exam-box-intro h3{font-size:22px}}

/* Grade 2 layout */
@media(min-width:1050px){.grade-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.grade-tile{padding:17px;gap:10px}.grade-mark{width:69px;flex-basis:69px;height:89px;font-size:51px}.tile .tile-body{padding-right:65px}.tile .mini-toki{height:108px;max-width:27%}.grade-tile h3{font-size:21px}.grade-tile p{font-size:12px}}.grade-mark.two{background:#fff4cc;color:#d99006}
