﻿/* Ken's test journey: sky, sunshine, paper, leaf. */
.test-level{--test-ink:#103e86;--test-sky:#e7f5ff;--test-sun:#ffd43e;--test-leaf:#168044;color:var(--test-ink);background:radial-gradient(ellipse at top,#fff9d9 0,transparent 55%),#e7f5ff;border-radius:28px;padding:28px;min-height:65vh;font-family:Nunito,system-ui,sans-serif;box-sizing:border-box}
.test-level *{box-sizing:border-box}.test-level [hidden]{display:none!important}.test-level h1,.test-level h2,.test-level h3{color:var(--test-ink);text-wrap:balance;margin:0 0 12px}.test-level h1{font-size:32px;font-weight:900}.test-level p{line-height:1.6;margin:8px 0 18px}.test-heading{margin-bottom:24px}.test-heading p{color:#506982}.test-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:30px 36px;background:#fff;border:3px solid var(--test-sun);border-radius:30px;box-shadow:0 7px 0 #edd382;overflow:hidden}.test-hero h2{font-size:34px;line-height:1.2;margin-top:14px}.test-tag{display:inline-block;background:#fff1ad;border-radius:20px;padding:6px 14px;font-size:14px;font-weight:800}.test-hero img{width:36%;height:240px;object-fit:contain;filter:drop-shadow(0 14px 12px #145e8c18)}
.test-level .nut{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:12px 25px;border:0;border-radius:18px;background:var(--test-leaf);box-shadow:0 4px 0 #0c5b2d;color:white;font:800 19px Nunito,system-ui,sans-serif;text-decoration:none;cursor:pointer;touch-action:manipulation}.test-level .nut:hover{background:#106d38}.test-level .nut:active{transform:translateY(2px);box-shadow:0 2px 0 #0c5b2d}.test-level .nut.trang{background:white;border:2px solid #b7d6f0;color:var(--test-ink);box-shadow:0 3px 0 #c5ddeb}.test-level .nut:disabled{opacity:.6;cursor:wait}.test-level :focus-visible{outline:3px solid #1369cc;outline-offset:5px}.test-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:32px 0 14px}.test-section-head h2{font-size:23px}.test-section-head span{font-size:14px;color:#506982}.test-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.test-card{display:flex;flex-direction:column;align-items:flex-start;background:white;border:2px solid #cbe2f5;border-radius:24px;padding:24px;color:var(--test-ink);text-decoration:none;min-width:0;overflow-wrap:anywhere}.test-card h3{font-size:21px}.test-card p{font-size:15px;color:#506982}.test-card-icon{font-size:36px;margin-bottom:14px}.test-status{display:inline-block;border-radius:12px;padding:6px 12px;background:#eef7ff;color:#355777;font-size:14px;font-weight:800;margin-top:auto}.test-card .nut{margin-top:16px;width:100%}.test-locked{background:#f4f8fc;border-style:dashed}.test-practice:hover{border-color:#196ac1}.test-history-title{margin-top:30px!important;font-size:23px}.test-history .the{margin:0;padding:20px;border:2px solid #cbe2f5;border-radius:22px;background:white}.test-history .test-result{text-align:left}.test-history .test-result p{color:#168044;font-weight:800}
.test-stage{max-width:680px;margin:0 auto}.test-back{display:inline-flex;align-items:center;min-height:44px;color:var(--test-ink);font-weight:800;text-decoration:none}.test-step-label{text-align:center;font-weight:800;color:#506982}.test-dots{display:flex;gap:8px;justify-content:center;margin:16px auto 25px;max-width:440px}.test-dots span{height:10px;flex:1;max-width:70px;border-radius:20px;background:#c9deee}.test-dots .filled{background:#168044}.test-profile{text-align:center;background:white;border:3px solid var(--test-sun);border-radius:30px;padding:22px 30px;box-shadow:0 6px 0 #edd382}.test-friend{object-fit:contain;width:112px;height:112px}.test-profile h1{font-size:29px}.test-profile>p{color:#506982}.test-choices{display:grid;gap:12px;margin:24px 0}.test-choice-grid{grid-template-columns:repeat(4,1fr)}.test-choice{font:800 18px Nunito,system-ui,sans-serif;color:var(--test-ink);background:#f5faff;border:2px solid #cee1f2;border-radius:18px;min-height:62px;padding:12px;cursor:pointer;touch-action:manipulation;transition:transform .12s,border-color .12s,background-color .12s}.test-choice:hover{border-color:#3988ca}.test-choice[aria-pressed=true]{background:#e4f6e7;border:3px solid #168044;transform:translateY(-2px)}.test-actions{display:flex;gap:14px;justify-content:space-between}.test-actions .nut{flex:1}.test-validation{min-height:24px;font-size:15px}.test-error{padding:18px;background:#fff0cc;border-radius:18px;margin-top:16px;color:#693d06}
.test-level .tieu-de-trang{max-width:720px;margin:0 auto 16px}.test-level .tieu-de-trang h2{font-size:22px}.test-level .tieu-de-trang small{display:block;font-size:16px}.test-level .dong-ho-thi{text-align:center}.test-level .exam-count{text-align:center;font-weight:800;font-size:15px}.test-level .bo-cau-hoi{max-width:680px;margin:0 auto;padding:24px;background:#fff;border:3px solid var(--test-sun);border-radius:28px;box-shadow:0 6px 0 #edd382}.test-level .cau{border:0;padding:0;overflow-wrap:anywhere}.test-level .cau .gian{font-size:25px;line-height:1.5}.test-level .cau .hang{gap:12px;align-items:center}.test-level .cau .gian>b{display:none}.test-level .tra-loi{display:grid;gap:12px;margin:24px 0}.test-level .lua-chon{display:flex;align-items:center;gap:14px;min-height:64px;border:2px solid #cbe2f5;border-radius:18px;background:#f5faff;padding:14px;font-size:21px;cursor:pointer;transition:transform .12s,border-color .12s}.test-level .lua-chon:has(input:checked){border-color:#168044;background:#e4f6e7;transform:translateY(-2px)}.test-level input[type=radio]{width:22px;height:22px;flex-shrink:0;accent-color:#168044;margin:0}.test-level input:not([type=radio]),.test-level textarea,.test-level select{font:inherit;min-height:56px;width:100%;border:2px solid #b8d3e9;border-radius:14px;padding:12px}.test-level audio{max-width:100%}.test-level .exam-controls{display:flex;justify-content:space-between;gap:12px;margin:22px 0}.test-level .bo-cau-hoi>.nut{width:100%;margin:12px 0}.test-level .nut-loa{min-width:52px;min-height:52px;border-radius:50%;border:2px solid #b7d6f0;background:#edf6ff}.test-level .test-result{max-width:680px;margin:24px auto;padding:32px;background:white;text-align:center;border:3px solid var(--test-sun);border-radius:30px;overflow:hidden}.test-result-art{position:relative}.test-result-art img{max-width:100%;object-fit:contain}.test-level .test-result h2{font-size:48px;color:#168044}.test-level .test-result p{font-size:20px;max-width:460px;margin:16px auto 24px}.test-level .test-result .test-retry{font-size:15px;color:#506982}.test-celebrate .test-result-art:before{content:'✦  •  ✧  •  ✦';position:absolute;inset:0;color:#e7a400;font-size:35px;letter-spacing:12px;animation:ken-confetti 1.2s ease-out both;pointer-events:none}@keyframes ken-confetti{from{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(15px)}}
.level-review{color:#143e68}.level-review h2{font-size:30px}.level-review .bang-cuon{background:white;border:1px solid #cbe2f5;border-radius:20px;padding:12px}.level-review th{background:#eaf5ff;text-align:left}.level-review td,.level-review th{padding:16px;vertical-align:top}.level-review .the{background:#fff;border:1px solid #cbe2f5;border-radius:18px;padding:20px;margin:16px 0}.level-review select,.level-review input{min-height:44px;border:1px solid #aac6dc;border-radius:10px;font:inherit;padding:8px;max-width:100%}.level-review label{display:block;margin-bottom:12px}.level-review button{min-height:44px;margin:4px}.level-review :focus-visible{outline:3px solid #1369cc;outline-offset:3px}
@media(min-width:1000px){.test-level{padding:36px 44px}.test-hero{min-height:290px}.test-hero img{height:270px}.test-level .test-result{margin:40px auto}}
@media(max-width:600px){.test-level{padding:18px 12px;border-radius:22px}.test-level h1{font-size:27px}.test-heading{margin-bottom:18px}.test-heading p{font-size:14px}.test-hero{padding:22px 18px;gap:0;position:relative;min-height:270px;align-items:flex-start}.test-hero>div{position:relative;z-index:1;width:100%}.test-hero h2{font-size:26px;max-width:240px}.test-hero p{font-size:15px;max-width:180px}.test-hero img{position:absolute;width:130px;height:150px;right:-6px;bottom:54px}.test-hero .nut{min-width:155px;margin-top:8px}.test-tag{font-size:12px}.test-section-head{display:block;margin-top:28px}.test-section-head h2{font-size:22px;margin-bottom:4px}.test-grid{grid-template-columns:1fr}.test-card{padding:20px}.test-profile{padding:20px 14px}.test-friend{width:96px;height:96px}.test-profile h1{font-size:26px}.test-profile>p{font-size:15px}.test-choice-grid{grid-template-columns:repeat(3,1fr);gap:9px}.test-choice{font-size:17px;padding:10px 5px;min-height:56px}.test-actions{gap:10px}.test-actions .nut{font-size:17px;padding:10px}.test-level .bo-cau-hoi{padding:20px 14px}.test-level .cau .gian{font-size:23px}.test-level .test-result{padding:24px 18px}.test-result-art img{width:210px;height:190px}.test-level .test-result h2{font-size:40px}.test-level .test-result p{font-size:18px}.level-review table,.level-review tbody,.level-review tr,.level-review td{display:block}.level-review thead{display:none}.level-review tr{border-bottom:2px solid #cbe2f5;padding:12px 0}.level-review td{padding:8px}}
@media(prefers-reduced-motion:reduce){.test-level *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Scope above legacy student/theme selectors. */
body #noi-dung.test-level .test-exam-head{max-width:680px;margin:0 auto 16px}body #noi-dung.test-level .test-exam-head h1{font-size:26px;margin:8px 0}body #noi-dung.test-level .test-exam-head p{color:#506982;font-size:15px;margin:8px 0}body #noi-dung.test-level .exam-count{display:block;float:none;width:100%;max-width:680px;border:0;background:none;box-shadow:none;border-radius:0;padding:0;margin:12px auto}body #noi-dung.test-level .cau{background:none;box-shadow:none;margin:0;border-radius:0}body #noi-dung.test-level .cau .hang{display:flex;align-items:center}body #noi-dung.test-level .test-result{border:3px solid #ffd43e;box-shadow:0 6px 0 #edd382}body #noi-dung.test-level .test-history .test-result{text-align:left;padding:20px;border:2px solid #cbe2f5;box-shadow:none;margin:0}body #noi-dung.test-level .test-history .test-result p{font-size:16px;margin:8px 0 16px}body #noi-dung.test-level .test-history .test-result h3{font-size:18px}body #noi-dung.test-level .test-history .nut{font-size:15px;min-height:44px}body .level-review button[data-duyet=da_duyet]{background:#168044;color:white;box-shadow:0 3px 0 #0c5b2d}body .level-review button[data-duyet=tu_choi]{background:#edf1f5;color:#43586c;box-shadow:none;border:1px solid #c1cdda}
@media(max-width:600px){body #noi-dung.test-level .test-hero h2{font-size:24px;max-width:260px;line-height:1.2}body #noi-dung.test-level .test-exam-head h1{font-size:23px}body #noi-dung.test-level .test-profile{padding-top:14px;padding-bottom:14px}body #noi-dung.test-level .test-friend{height:76px;width:76px}body #noi-dung.test-level .test-profile>p{margin-bottom:12px}body #noi-dung.test-level .test-choices{margin:18px 0}body #noi-dung.test-level .test-validation{min-height:18px;margin:10px 0 0}}
body .level-review form.the{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 20px;max-width:900px}body .level-review form.the h3{flex:0 0 100%;margin-bottom:0}body .level-review form.the label{flex:1;min-width:180px;margin:0}body .level-review form.the .tb{flex:0 0 100%;margin:0}body .level-review form.the input,body .level-review form.the select{display:block;width:100%;margin-top:6px}body .level-review form.the button{margin:0}body .level-review form.the .tb:empty{display:none}
@media(max-width:600px){body #noi-dung.test-level .test-hero img{width:110px;height:135px;bottom:40px}body .level-review form.the label{min-width:100%}}
body.test-in-progress #thanh-duoi{display:none!important}body.co-thanh-duoi.test-in-progress{padding-bottom:20px!important;padding-left:0!important}body.test-in-progress .thanh-tren{position:relative}body .level-review .level-settings{max-width:900px;margin:18px 0}body .level-review summary{min-height:48px;padding:12px 16px;border-radius:14px;background:#e7f2fc;font-weight:800;cursor:pointer}body .level-review summary:focus-visible{outline:3px solid #1369cc;outline-offset:3px}
@media(max-width:600px){body.test-in-progress #noi-dung.test-level{padding-top:8px}body.test-in-progress .test-back{min-height:40px}body.test-in-progress .test-step-label{margin:4px 0}body.test-in-progress .test-dots{margin-top:10px;margin-bottom:16px}body.test-in-progress .test-profile{padding-top:10px}body.test-in-progress .test-choices{gap:8px}body.test-in-progress .test-profile .test-choice{min-height:56px}body.test-in-progress .test-friend{width:64px;height:64px}}
.test-celebrate .test-result-art img{animation:ken-flight .9s cubic-bezier(.2,.7,.2,1) both}@keyframes ken-flight{from{opacity:0;transform:translate(-24px,36px) rotate(-10deg)}to{opacity:1;transform:translate(0,0) rotate(0)}}@media(prefers-reduced-motion:reduce){.test-celebrate .test-result-art img{animation:none}}
@media(max-width:1099px){body.co-thanh-duoi:not(.test-in-progress) #noi-dung.test-level{margin-bottom:110px}}
