/* Enjoy Playroom — lightweight, tactile CSS/SVG theme. */
:root{--ink:#343b60;--muted:#68718c;--blue:#5669c9;--paper:#f8f9ff;--line:#e1e5f4;--shadow:0 7px 0 #dce2f0,0 14px 24px #5967900c;--toy-edge:#c7d0e7}
body{background:radial-gradient(circle at 1px 1px,#98a8d020 1px,transparent 1.5px) 0 0/28px 28px,#f8f9ff}
header{height:96px;max-width:1212px;padding:0 28px;border-bottom:0;background:transparent}
.brand{font-size:21px;color:#394164;gap:13px}.brand b{color:#6074ce}.brand small{color:#75819b;font-size:11px;letter-spacing:.3px}
.brand-icon{width:48px;height:48px;border:2px solid #fff3bb;background:linear-gradient(145deg,#fff0a6,#ffce66);color:#a47929;border-radius:18px;box-shadow:inset 3px 3px 5px #ffffffe0,inset -3px -4px 6px #d89d3840,0 5px 0 #e8bd65,0 8px 12px #bfac7025}
nav{gap:5px;padding:6px;background:#ffffffb8;border:1px solid #fff;border-radius:22px;box-shadow:0 4px 0 #e4e8f3,0 7px 16px #56699109}
nav a{font-size:14px;border-radius:16px;padding:11px 17px}nav a.active{color:#4256a6;background:linear-gradient(#f1f4ff,#e3e9ff);box-shadow:inset 0 2px 1px white,0 2px 0 #d2dcf6}
.profile{gap:13px}#total-stars{display:inline-flex;align-items:center;min-height:40px;padding:10px 14px;background:#fff9e8;border:1px solid #fff;border-radius:16px;box-shadow:0 3px 0 #ede1bd;font-size:14px;color:#846723}
.avatar{background:linear-gradient(135deg,#b8cbf3,#8fa8df);color:white;border-width:3px;box-shadow:0 3px 0 #d9e0f2;font-size:17px}
main{padding-top:18px;padding-bottom:38px;min-height:calc(100vh - 200px)}
.hero{grid-template-columns:1.07fr 1fr;min-height:460px;border:3px solid #fff;border-radius:36px;background:linear-gradient(110deg,#fff8e8 5%,#fff8ee 42%,#eef4ff 78%,#e7f2fb);box-shadow:0 9px 0 #e1e4ed,0 20px 32px #7082a412;isolation:isolate}
.hero:before{content:'';position:absolute;right:-65px;top:-80px;width:500px;height:500px;border-radius:50%;border:48px solid #ffffff65;z-index:-1;pointer-events:none}
.hero-copy{padding:36px 0 30px 42px}.pill{border-color:#fff;background:#fffdf5;color:#9b7335;box-shadow:0 3px 0 #eadfc840;font-size:12px;padding:9px 15px}
.hero h1{font-size:clamp(35px,3.4vw,47px);line-height:1.5;letter-spacing:-1.1px;margin:17px 0 10px;color:#394163}.hero h1 span{color:#5c73ca}.hero h1 em:after{height:8px;background:#f4d184;bottom:-1px;z-index:-1}
.hero .tagline{font-size:19px;color:#665981;margin-top:12px}.tagline i{color:#d9b05c}.hero p{font-size:15px;line-height:1.85;color:#68718b;margin-bottom:21px}
.hero-art{position:relative;display:flex;align-items:center;justify-content:center;align-self:stretch;width:100%;height:auto;margin:0;background:none;transform:none!important;min-width:0;padding:12px 6px 22px 0}
.hero-art .playroom-mascot{display:block;width:100%;height:auto;max-height:440px;object-fit:contain;filter:none;animation:toy-arrive .6s ease-out both}
.hero-caption{position:absolute;left:50%;bottom:21px;transform:translateX(-50%) rotate(-3deg);background:#ffffffd9;color:#6d7896;font-size:11px;white-space:nowrap;padding:10px 17px;border:1px solid white;border-radius:14px;box-shadow:0 3px 0 #dce6f2}
.hero-note{display:flex;gap:18px;margin-top:24px;color:#6c7390;font-size:12px}.hero-note span{display:flex;align-items:center;gap:7px}.hero-note b{font-size:19px;color:#6e80b2;background:#ffffffbf;border-radius:10px;padding:3px 8px}
.button{background:linear-gradient(160deg,#7c8fe0,#596ecb);border:1px solid #566bc2;border-top-color:#b2c0f8;border-radius:18px;box-shadow:inset 0 2px 0 #a5b5ed,0 5px 0 #40549d,0 9px 14px #596bb51c;min-height:56px;transition:transform .16s,box-shadow .16s,background .16s;color:white}
.button:hover{background:linear-gradient(160deg,#7288df,#5368c3);transform:translateY(-2px);box-shadow:inset 0 2px 0 #a5b5ed,0 7px 0 #40549d,0 12px 16px #596bb51c}.button:active{transform:translateY(4px);box-shadow:inset 0 2px 2px #ffffff30,0 1px 0 #40549d}
.primary-cta{min-width:237px;min-height:59px;font-size:18px}.primary-cta span{margin-left:17px}.continue{font-size:13px;color:#536cb8}
.button.secondary{background:linear-gradient(#fff,#f0f3fc);color:#54688f;border-color:#d6deee;border-top-color:white;box-shadow:inset 0 2px 0 white,0 4px 0 #d3dced,0 7px 12px #74849b0c}
.button.secondary:hover{background:#eaf0ff;box-shadow:inset 0 2px 0 white,0 6px 0 #d3dced}.button.secondary:active{box-shadow:0 1px 0 #d3dced}
.section-title{margin:37px 3px 23px}.section-title h2{color:#424964;font-size:24px}.section-title a{background:#fff;padding:10px 15px;border:1px solid #e4e9f5;border-radius:14px;box-shadow:0 3px 0 #e3e8f3;color:#6275b0}.eyebrow{font-size:10px;letter-spacing:1.7px;color:#7a87a9}
.subject-grid{gap:18px}.subject-card{--card-tint:#edf2ff;--card-base:#d7e0f5;--card-ink:#5268aa;--icon-glow:#e6edff;display:flex;flex-direction:column;min-width:0;min-height:260px;padding:20px 19px 19px;border:2px solid #fff;background:linear-gradient(155deg,#ffffff 20%,var(--card-tint));border-radius:28px;box-shadow:inset 0 1px 0 white,0 7px 0 var(--card-base),0 14px 22px #61739e10;transition:transform .2s,box-shadow .2s}
.subject-card.red{--card-tint:#fff0e9;--card-base:#efd2c7;--card-ink:#aa6254}.subject-card.pink{--card-tint:#fff0f6;--card-base:#eacfe0;--card-ink:#ad6285}.subject-card.yellow{--card-tint:#fff8df;--card-base:#ecdfb2;--card-ink:#937232}.subject-card.mint{--card-tint:#eaf8f2;--card-base:#cce6d9;--card-ink:#407d69}
.subject-card .subject-icon{display:block;background:none!important;box-shadow:none;border:0;width:86px;height:86px;font-size:0;margin:6px 0 15px;transform:rotate(-3deg);transition:transform .25s}.subject-card:nth-child(2n) .subject-icon{transform:rotate(4deg)}.subject-toy{display:block;width:100%;height:100%;overflow:visible}
.subject-card .status{right:12px;left:auto;top:18px;padding:5px 7px;font-size:9px;color:#597962;background:#fffefa;border:1px solid #eef1e6;border-radius:9px}
.subject-card h2{font-size:20px;color:#3d4666;margin:1px 0 9px;line-height:1.5}.subject-card p{font-size:12px;color:#68708a;line-height:1.8;margin:0 0 17px;min-height:43px}
.subject-card .card-link{margin-top:auto;padding-top:12px;width:100%;border-top-color:#becae340;color:var(--card-ink);font-weight:bold;font-size:12px;align-items:center;min-height:42px}.subject-card .card-link>span{display:grid;place-items:center;width:28px;height:28px;border-radius:10px;background:#ffffffb8;box-shadow:0 2px 0 #b5c0dc30;font-size:17px}
.subject-card:hover{transform:translateY(-5px);box-shadow:inset 0 1px 0 white,0 11px 0 var(--card-base),0 20px 26px #61739e16}.subject-card:hover .subject-icon{transform:rotate(-7deg) translateY(-2px)}.subject-card:active{transform:translateY(4px);box-shadow:0 2px 0 var(--card-base)}
.page-heading{padding:21px 0 27px}.page-heading h1{color:#424767;font-size:33px}.page-heading p{color:#747d97}.page-heading>.eyebrow{display:inline-block;padding:7px 14px;background:#fff;border-radius:20px;box-shadow:0 3px 0 #e2e7f2}.subject-heading{border:0;margin-bottom:16px}
.progress-banner{border:2px solid white;background:linear-gradient(120deg,#ebefff,#f5f7ff);box-shadow:0 4px 0 #e0e5f4;border-radius:21px;color:#52658d;margin-bottom:28px}.chinese-progress{background:linear-gradient(120deg,#fff0eb,#fff8f4);box-shadow:0 4px 0 #eddcd4}
.mission-grid{gap:19px}.mission-card{background:linear-gradient(145deg,#fff 55%,#f2f6ff);border:2px solid white;border-radius:25px;padding:23px 21px;box-shadow:0 6px 0 #e0e5f1,0 13px 19px #667aa010;min-width:0}
.mission-card.pink{background:linear-gradient(145deg,#fff 55%,#fff0f5)}.mission-card.yellow{background:linear-gradient(145deg,#fff 55%,#fff8e5)}.mission-card.mint{background:linear-gradient(145deg,#fff 55%,#effbf5)}.mission-card.red{background:linear-gradient(145deg,#fff 55%,#fff1eb)}
.mission-icon{width:57px;height:57px;border:2px solid #fff;border-radius:19px;background:linear-gradient(145deg,#f3f7ff,#dce7fa)!important;box-shadow:inset 1px 2px 2px white,0 4px 0 #d4def0,0 7px 9px #7482a710;transform:rotate(-5deg);margin-bottom:18px!important}.pink .mission-icon{background:linear-gradient(145deg,#fff1f8,#f1d5e5)!important;box-shadow:inset 1px 2px 2px white,0 4px 0 #e5cbdc}.yellow .mission-icon{background:linear-gradient(145deg,#fff9e3,#f4df9e)!important;box-shadow:inset 1px 2px 2px white,0 4px 0 #e9d6a5}.mint .mission-icon{background:linear-gradient(145deg,#f1fff9,#c8e8d9)!important;box-shadow:inset 1px 2px 2px white,0 4px 0 #c8e1d5}.red .mission-icon{background:linear-gradient(145deg,#fff3ec,#ffd6c5)!important;box-shadow:inset 1px 2px 2px white,0 4px 0 #eccbbf}
.mission-card small{color:#7a849b}.mission-card h2{color:#48516d;font-size:19px}.mission-card .card-link{color:#6679a8;border-top-color:#e1e6f1}
.exam-banner{background:linear-gradient(115deg,#fff1cd,#fff8e8);border:2px solid white;border-radius:27px;box-shadow:0 5px 0 #ede0b9,0 12px 20px #9987460b;padding:26px 31px}.exam-banner h2{color:#826f42;font-size:25px}.exam-banner p{line-height:1.9}.mini-challenge-card{background:linear-gradient(115deg,#f0ebff,#faf7ff);box-shadow:0 5px 0 #e0d9f0}.mini-challenge-card h2{color:#716089}
.panel{background:linear-gradient(160deg,#ffffff,#fefeff);border:2px solid white;border-radius:30px;box-shadow:0 6px 0 #e2e7f2,0 14px 27px #5e739514}.question{border-top:5px solid #c1cff3;padding-top:26px}.lesson-panel{border-top:5px solid #c1cff3}.chinese-question{border-top-color:#efbfae}.intro h1,.question h1{color:#3b4566}.big-icon{text-shadow:0 5px 1px #ccd7e735}
.learn-card{background:linear-gradient(145deg,#fff,#f5f7ff);border:2px solid #fff;box-shadow:0 4px 0 #e0e7f3;border-radius:23px}.learn-visual{border-radius:18px}.learn-card .chinese-word b{color:#ab6659}
.choice,.field-key,.match-tile{background:linear-gradient(#fff,#f1f5ff);border:2px solid #dae3f4;border-top-color:#edf1fa;border-radius:20px;box-shadow:inset 0 2px 0 white,0 5px 0 #d8e1f2;transition:transform .15s,box-shadow .15s,border-color .15s;color:#4e6086}
.choice:hover,.field-key:hover,.match-tile:hover{background:#edf2ff;border-color:#b6c5ed;transform:translateY(-2px)}
.choice.selected,.field-key.selected,.match-tile.selected{background:linear-gradient(#eef1ff,#e1e8ff);color:#415bb1;border-color:#90a3dc;box-shadow:inset 0 2px 0 #fff,0 3px 0 #9cafd9;transform:translateY(2px)}
.choice:active,.field-key:active,.match-tile:active{transform:translateY(4px);box-shadow:0 1px 0 #b2c2df}.match-tile.matched{background:#edf9f0;border-color:#a6cdb3;box-shadow:0 3px 0 #c5dfcb;color:#408163}
input:not([type=range]),.written-answer textarea{background:#fbfcff!important;border:2px solid #dbe3f2!important;border-radius:18px;box-shadow:inset 0 3px 5px #7588ae0d;color:#41577f}
progress{height:11px;padding:2px;background:#e5eaf5;box-shadow:inset 0 2px 2px #bcc8dd55;border-radius:20px;overflow:hidden}progress::-webkit-progress-bar{background:#e5eaf5}progress::-webkit-progress-value{background:linear-gradient(90deg,#b8c9f6,#819bdc);border-radius:12px}
.success{background:linear-gradient(110deg,#eaf8ed,#f4fbef);border:1px solid #d5ead8;border-radius:18px;color:#3a7957}.retry-feedback{border:1px solid #eeddb4}.source-note{background:#f3f5fb;border:1px solid #e1e5f0;border-radius:18px!important;color:#65718e!important}.quiet{color:#747f98}
.math-example,.vertical-calculation,.science-scene,.pictograph,.thai-reference span,.vowel-houses>div{border-radius:22px;box-shadow:inset 0 2px 0 #ffffffb3,0 3px 0 #dbe3f055}.math-symbol{color:#4b659b}.field-key.selected .math-symbol{color:#415bb1}.ten-frame{box-shadow:inset 0 2px 3px #c3d3ea40}.number-bond{box-shadow:0 4px 0 #ecdfb5}
.science-examples article{border:2px solid #fff;box-shadow:0 4px 0 #d7e9dc;border-radius:24px;background:linear-gradient(145deg,#f4fff8,#e6f4eb)}.science-examples article>span{display:block;filter:drop-shadow(0 4px 1px #83ad941c)}
.thai-passage{background:#fffafb;border-color:#efdfeb;border-left-color:#d9acc3;box-shadow:0 4px 0 #eddfeb}.chinese-story,.chinese-lesson-note{background:#fffcf5;border-color:#eee0c9;box-shadow:0 4px 0 #ece0ce;border-radius:24px}
.score{color:#6278bd;text-shadow:0 4px 0 #e1e8fc}.stats b{color:#6c82bd}.stats>div{background:#f7f9ff;border:1px solid #ebeff8;border-radius:20px;padding:0 18px 18px;flex:1}.skill-results>div{background:#f8faff;border-radius:14px;border-bottom:2px solid #e5ebf5;margin-bottom:8px}.answer-review details{border-radius:19px;border:1px solid #e0e7f5;box-shadow:0 3px 0 #edf1f8;background:#fff}
dialog{border:3px solid white;border-radius:29px;box-shadow:0 8px 0 #cfd7eb,0 30px 65px #35446930;background:#fafbff}dialog::backdrop{background:#3c466966;backdrop-filter:blur(5px)}#notice{border:1px solid #ffffff55;box-shadow:0 5px 0 #303b5e;background:#4d5c87;border-radius:18px}
footer{border-color:#e2e7f2;color:#8290a7;font-size:11px;margin-top:5px}.text-button{color:#7184aa;border-radius:12px}.text-button:hover{background:#e9effb;color:#425f9f}.gentle-note{font-size:13px;color:#7c889d;margin-top:30px}
:where(button,a,input,textarea):focus-visible{outline:3px solid #637bc5;outline-offset:5px}
@keyframes toy-arrive{from{opacity:0;transform:translateY(12px) rotate(-2deg)}to{opacity:1;transform:translateY(0) rotate(0)}}
@media(min-width:1100px){.subject-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:601px) and (max-width:1099px){main{margin:0 26px}.hero-copy{padding:30px 0 30px 29px}.hero-art{padding:0;width:100%;min-height:340px}.hero h1{font-size:35px}.hero .tagline{font-size:16px}.hero p{font-size:14px}.hero-note{gap:11px;font-size:11px}.hero-note b{font-size:16px}.subject-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.subject-card{min-height:252px}.subject-card h2{font-size:19px}.subject-card .status{font-size:9px}.hero-caption{font-size:10px;bottom:32px}}
@media(max-width:600px){
 header{height:84px;padding:0 18px;gap:10px}.brand{font-size:18px;gap:10px}.brand small{font-size:10px}.brand-icon{width:41px;height:41px;font-size:32px;border-radius:15px}.profile{gap:0}#total-stars{padding:8px 11px;min-height:36px;font-size:12px;border-radius:13px}
 nav{height:78px;padding:7px 12px calc(7px + env(safe-area-inset-bottom));border:2px solid white;border-bottom:0;border-radius:24px 24px 0 0;box-shadow:0 -4px 18px #6a7aa318;background:#fdfdff;gap:7px}nav a{padding:6px 5px;font-size:20px;border-radius:16px;min-height:59px}nav a span{font-size:11px}nav a.active{box-shadow:inset 0 2px 0 white,0 2px 0 #d5def3}
 main{margin:0;padding:15px 18px 29px}.hero{border-width:2px;border-radius:29px;min-height:0;display:flex;flex-direction:column}.hero-copy{padding:25px 23px 0}.hero h1{font-size:34px;line-height:1.48;margin:17px 0 12px}.hero .tagline{font-size:15px;white-space:nowrap;letter-spacing:-.2px}.tagline i{margin:0 3px}.hero p{font-size:13px;margin-bottom:19px}.pill{font-size:10px;padding:7px 10px}.primary-cta{min-width:215px;min-height:54px;font-size:16px}.hero-note{margin-top:23px;gap:13px;font-size:11px}.hero-note b{font-size:16px;padding:2px 7px}
 .hero-art{width:100%;height:280px;min-height:0;margin:0;padding:0 0 18px;transform:none!important;align-self:center}.hero-art .playroom-mascot{width:100%;height:100%;max-height:280px;animation:none}.hero-caption{font-size:10px;bottom:10px;padding:8px 12px}.hero:before{width:340px;height:340px;right:-130px;top:auto;bottom:-60px;border-width:30px}
 .subject-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 13px}.subject-card{min-height:237px;padding:15px 13px 14px;border-radius:23px}.subject-card .subject-icon{width:76px;height:76px;margin:5px 0 10px}.subject-card .status{font-size:8px;top:12px;right:8px;padding:4px 5px}.subject-card h2{font-size:17px;margin-top:2px}.subject-card p{font-size:11px;line-height:1.85;margin-bottom:12px;min-height:40px}.subject-card .card-link{font-size:10px;padding-top:10px;min-height:38px}.subject-card .card-link>span{width:24px;height:24px;font-size:15px;border-radius:9px}
 .section-title{margin:29px 1px 20px;gap:10px}.section-title h2{font-size:19px;line-height:1.7}.section-title a{padding:8px 10px;font-size:10px}.eyebrow{font-size:9px;letter-spacing:1px}.page-heading{padding:13px 0 24px}.page-heading h1{font-size:26px}.page-heading p{font-size:13px}.page-heading>.eyebrow{font-size:9px}
 .mission-grid{gap:16px 12px}.mission-card{padding:18px 14px;border-radius:22px}.mission-card h2{font-size:16px}.mission-card p{font-size:11px}.mission-card .card-link{font-size:10px}.mission-icon{width:49px;height:49px;font-size:27px;margin-bottom:17px!important;border-radius:17px}.progress-banner{font-size:12px;padding:16px 15px;border-radius:18px;margin-bottom:24px}
 .panel{border-radius:25px;padding:23px 17px}.question{border-top-width:4px}.question h1,.practice-question h1{font-size:21px}.intro h1{font-size:25px}.lesson-copy p{font-size:17px}.game-top{font-size:12px;line-height:1.8}.game-top>.text-button{text-align:left}.button{font-size:15px;border-radius:16px;padding:14px 18px}.choice,.field-key,.match-tile{border-radius:17px}.exam-banner{padding:23px 21px;border-radius:24px}.exam-banner h2{font-size:22px}.exam-banner p{font-size:12px}
 .stats{gap:10px}.stats>div{padding:0 9px 14px;min-width:80px;border-radius:16px}.stats b{font-size:28px}.source-note{font-size:12px!important;padding:14px}.skill-results>div{padding:14px}.science-examples article{border-radius:20px}.hero-note,.hero p{max-width:100%}.gentle-note{font-size:11px;line-height:1.8}
 footer{margin:8px 18px 86px;padding:19px 0;gap:9px}#notice{bottom:95px}.practice-question .symbol-choices .choice{min-height:80px}
}
@media(max-width:359px){.hero-copy{padding-left:18px;padding-right:18px}.hero h1{font-size:30px}.hero .tagline{font-size:13px}.subject-card .status{font-size:7px}.subject-card h2{font-size:15px}.subject-card .card-link{font-size:9px}.subject-card .subject-icon{width:66px;height:66px}}
@media(hover:none){.subject-card:hover,.mission-card:hover,.button:hover,.choice:hover,.field-key:hover,.match-tile:hover{transform:none}.subject-card:hover .subject-icon{transform:rotate(-3deg)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep small Thai copy and white button labels comfortably legible. */
.button{background:linear-gradient(160deg,#586dc1,#4e61b5)}.button:hover{background:linear-gradient(160deg,#5267b9,#485aa9)}
.button.secondary{background:linear-gradient(#fff,#f0f3fc)}.button.secondary:hover{background:#eaf0ff}
.subject-card p{font-size:13px}.subject-card .status{font-size:10px}
@media(max-width:600px){.subject-card p{font-size:12px}.subject-card .status{font-size:9px}.subject-card h2{font-size:18px}.subject-card .card-link{font-size:11px}}
@media(max-width:359px){.subject-card h2{font-size:16px}.subject-card .status{font-size:8px}.subject-card .card-link{font-size:10px}}
