/* Pinyin cards keep the same soft garden palette and support every card size. */
.pinyin-art{display:grid;place-items:center;position:relative;isolation:isolate;background:#f5f0fb;color:#76529b;border-radius:24px;width:100%;aspect-ratio:1;font-family:"Comic Sans MS","Chalkboard SE","Trebuchet MS",sans-serif;font-weight:500;font-size:clamp(2rem,5vw,4rem);line-height:1.2;letter-spacing:.025em;}
.pinyin-art::before{content:"";position:absolute;inset:20% 8%;z-index:-1;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(33.333% - 1px),#dccfe9 calc(33.333% - 1px),#dccfe9 33.333%);border-top:1px solid #dccfe9;opacity:.75;}
.featured-art .pinyin-art{width:270px;height:250px;font-size:clamp(4rem,9vw,7rem);}
.learning-art .pinyin-art{width:min(100%,380px);height:280px;aspect-ratio:auto;font-size:clamp(4.5rem,12vw,8rem);}
.pinyin-picker{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 24px;padding:24px 28px;background:#f8f4fc;border:1px solid #e8dcf2;border-radius:24px;}
.pinyin-picker h2{margin:5px 0 8px;font-size:1.25rem;}.pinyin-picker p{margin:0;color:var(--muted);font-size:.85rem;}
.pinyin-tabs{display:flex;gap:10px;}.pinyin-tab{display:flex;flex-direction:column;align-items:flex-start;gap:10px;background:white;border:1px solid #e6ddeb;border-radius:16px;padding:14px 20px;color:#716578;min-width:100px;}
.pinyin-tab.selected{background:#eee4f8;border-color:#a587bb;color:#65418b;box-shadow:0 0 0 1px #a587bb;}.pinyin-tab span{font-weight:600;}.pinyin-tab b{font-size:1.5rem;}.pinyin-tab small{font-weight:400;font-size:.75rem;}
.friend-row.vegetable-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:14px;}.vegetable-grid .friend-tile{min-width:0;}.vegetable-grid .friend-tile img{max-width:100%;}@media(max-width:720px){.friend-row.vegetable-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}}
.friend-row.pinyin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:14px;}.pinyin-grid .friend-tile{min-width:0;}.friend-tile .pinyin-art{border-radius:14px;}.collection-card .pinyin-art{margin-bottom:10px;}.admin-card .pinyin-art{width:70px;height:70px;flex-shrink:0;font-size:1.8rem;border-radius:12px;}.pinyin-art.edit-preview{width:130px;font-size:3rem;}
.pinyin-tab:focus-visible,.friend-tile:focus-visible{outline:3px solid #8b68a7;outline-offset:4px;}[hidden]{display:none!important;}
@media(max-width:900px){.pinyin-picker{align-items:stretch;flex-direction:column;gap:18px;}.pinyin-tabs{width:100%;}.pinyin-tab{flex:1;}}
@media(max-width:720px){.pinyin-picker{padding:20px;}.pinyin-tabs{gap:8px;}.pinyin-tab{padding:12px 8px;min-width:0;}.pinyin-tab span{font-size:.78rem;white-space:nowrap;}.featured-art .pinyin-art{width:220px;height:210px;}.learning-art .pinyin-art{height:230px;}.friend-row.pinyin-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}.category-bar{flex-wrap:wrap;}}
:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#263f36;background:#f6f8f5;font-synthesis:none;--green:#236b51;--deep:#205740;--line:#e1e8df;--muted:#718076;--yellow:#ffcf58;--soft:#e8f1e6;--radius:26px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}button{border:0;color:inherit;background:none}button,a,input,select,summary{outline-offset:5px}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #d99616}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.75rem,3vw,2.35rem);line-height:1.4;font-weight:750;letter-spacing:.025em;margin-bottom:14px}h2{font-size:1.5rem;line-height:1.45;margin-bottom:16px}h3{font-size:1.125rem}p{line-height:1.8}small{font-size:.875rem}.icon{flex-shrink:0;vertical-align:middle}.site-header{height:98px;max-width:1344px;padding:0 52px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}.brand{display:flex;align-items:center;gap:12px;text-align:left;padding:0;white-space:nowrap;font-size:1.4rem;font-weight:800;letter-spacing:.04em}.brand-mark{height:48px;width:48px;border-radius:16px;background:var(--green);display:grid;place-items:center;color:white;transform:rotate(-7deg)}.brand-mark .icon{width:29px;height:29px;fill:currentColor;stroke:none;transform:rotate(7deg)}.brand small{display:block;font-size:.65rem;color:var(--muted);letter-spacing:.19em;margin-top:5px}.site-header nav{display:flex;align-self:stretch;gap:34px}.nav-item{display:flex;gap:8px;align-items:center;position:relative;color:var(--muted);font-size:1rem;font-weight:600;white-space:nowrap}.nav-item.active{color:var(--green)}.nav-item.active:after{content:"";height:3px;left:8px;right:8px;bottom:0;background:var(--green);position:absolute;border-radius:3px}.nav-item .icon{width:20px}.header-end{display:flex;gap:25px;align-items:center}.star-count{display:flex;align-items:center;gap:5px;font-size:.875rem;white-space:nowrap}.star-count .icon{fill:#ffd46c;color:#d49516;width:21px}.star-count b{font-size:1.15rem}.star-count span{color:var(--muted)}.parent-button{display:flex;gap:6px;align-items:center;border:1px solid #dce3d9;padding:10px 12px;border-radius:12px;color:#5e7264;font-size:.875rem;white-space:nowrap}.parent-button .icon{width:16px;height:18px}main{max-width:1240px;padding:40px 30px 20px;margin:auto}.welcome{display:flex;justify-content:space-between;align-items:center;margin:0 0 30px}.eyebrow{font-size:.8rem;color:var(--green);letter-spacing:.16em;font-weight:600;margin-bottom:12px}.welcome p{color:var(--muted);margin:0;font-size:1rem;letter-spacing:.09em}.accent{color:#d29d33}.age-badge{display:flex;gap:14px;align-items:center;padding:18px 22px;border:1px dashed #cfdcc9;border-radius:17px;font-size:.9rem;color:#5f755e;background:#eff4e9}.age-badge>.icon{height:34px;width:34px;color:#b58826}.age-badge small{display:block;font-size:.75rem;margin-top:5px;color:#788572}.category-bar{display:flex;gap:12px;margin-bottom:24px}.category{min-width:160px;padding:15px 22px;display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);border-radius:15px}.category.selected{background:#e4eee4;border-color:#71967b;color:var(--deep)}.category b{font-size:1rem}.category span{font-size:.75rem;color:var(--muted);margin-left:4px}.category:not(.selected):disabled{opacity:.65}.category.orange .icon{color:#bd8941}.category.purple .icon{color:#8f75ad}.category.blue .icon{color:#648ca0}.explore-layout{display:grid;grid-template-columns:1.17fr 1fr;gap:28px}.showcase{background:#e4efe3;border:1px solid #d3e3d1;border-radius:var(--radius);padding:24px 28px 0;position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:455px}.showcase-top{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:1}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:20px;background:#fff9;padding:7px 12px;color:#436a45;font-size:.8rem;font-weight:600}.pill .icon{width:16px;height:16px}.collection-count{font-size:.8rem;color:#617b61}.featured-art{height:272px;display:flex;align-items:center;justify-content:center;position:relative;margin:3px 0}.featured-art img{width:275px;height:275px;object-fit:contain;border-radius:50%;mix-blend-mode:multiply}.art-spark{position:absolute;color:#9bb58b;font-size:2rem}.spark-a{left:14%;top:22%;transform:rotate(15deg)}.spark-b{right:13%;bottom:20%;font-size:2.6rem;color:#c0a75c}.featured-label{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 6px 23px}.featured-label .eyebrow{font-size:.65rem;color:#71866b;letter-spacing:.18em;margin-bottom:5px}.featured-label h2{font-size:1.45rem;margin:4px 0 0}.round-button{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:white;color:var(--green);box-shadow:0 3px 0 #c9d9c3;flex-shrink:0}.round-button:hover{transform:translateY(-2px)}.showcase-bottom{border-top:1px solid #cddfc9;display:flex;align-items:center;justify-content:space-between;padding:13px 5px;margin-top:auto;color:#7a8b71;font-size:.75rem}.tiny-dots{display:flex;gap:5px}.tiny-dots i{width:5px;height:5px;background:#abbda0;border-radius:50%}.tiny-dots i:first-child{width:17px;border-radius:4px;background:#749769}.start-panel{border:1px solid var(--line);background:white;border-radius:var(--radius);padding:26px 30px}.start-panel .eyebrow{font-size:.75rem;letter-spacing:.1em;margin-bottom:8px}.start-panel h2{font-size:1.5rem;margin-bottom:20px}.mode-list{display:flex;flex-direction:column;gap:10px}.mode-option{display:flex;align-items:center;text-align:left;gap:13px;padding:13px 14px;border:1px solid #e6ebe4;border-radius:16px;width:100%;min-height:77px;background:#fff;transition:background .15s}.mode-option.selected{background:#f1f7ee;border-color:#86a576}.mode-icon{display:grid;place-items:center;width:43px;height:43px;flex-shrink:0;border-radius:13px;background:#e5efdf;color:#698e4a}.mode-icon.quiz{background:#fff2d5;color:#bd902b}.mode-icon.review{background:#eeeaf8;color:#8c7daf}.mode-option b{display:block;font-size:1rem;margin-bottom:5px}.mode-option small{display:block;font-size:.8rem;color:var(--muted);line-height:1.5}.radio-mark{width:20px;height:20px;border-radius:50%;border:1.5px solid #cdd7c8;display:grid;place-items:center;margin-left:auto;flex-shrink:0}.selected .radio-mark{background:#639051;border-color:#639051;color:#fff}.radio-mark .icon{width:13px;height:13px}.round-note{display:flex;justify-content:space-between;margin:18px 0 13px;font-size:.75rem;color:var(--muted)}.round-note b{color:#43593f}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:50px;border-radius:14px;padding:12px 22px;font-weight:650;font-size:1rem;transition:transform .15s,background .15s}.primary{background:var(--green);color:white;box-shadow:0 3px 0 #1a523e}.primary:hover:not(:disabled){background:#195b42;transform:translateY(-1px)}.secondary{border:1px solid #d5dfd0;background:#fff;color:var(--green)}.secondary:hover:not(:disabled){background:#edf5e9}.start-button{width:100%;min-height:54px}.start-button .icon{width:22px}.little-progress{margin-top:18px;font-size:.75rem;color:var(--muted);text-align:center}.track{height:5px;background:#edf1e8;margin-top:9px;border-radius:5px;overflow:hidden}.track i{display:block;height:100%;background:#9ab67f;border-radius:5px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:30px 0 17px}.section-heading h2{font-size:1.2rem;margin:0}.section-heading>span{color:var(--muted);font-size:.8rem}.section-heading p{margin:5px 0}.friend-row{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.friend-tile{border:1px solid var(--line);background:white;border-radius:19px;padding:10px 15px 15px;display:flex;align-items:center;gap:10px;text-align:left;position:relative;min-width:0}.friend-tile img{width:70px;height:70px;object-fit:contain;flex-shrink:0}.friend-tile>span{font-weight:600;white-space:nowrap}.friend-tile:hover{border-color:#8daa7b;transform:translateY(-2px)}.friend-tile i{position:absolute;top:8px;right:8px;color:var(--green)}.friend-tile i .icon{width:13px;height:13px}footer{max-width:1180px;border-top:1px solid var(--line);margin:22px auto 0;padding:24px 0 28px;display:flex;justify-content:space-between;color:#899280;font-size:.75rem;gap:20px}footer>span{display:flex;align-items:center;gap:7px}footer .icon{height:16px;width:16px}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:12px 6px;color:#62795c;font-size:.9rem}.text-button .icon{width:19px}.session-main{padding-top:25px}.session-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:.9rem}.session-stars{display:flex;align-items:center;gap:6px;color:#997114}.session-stars .icon{fill:#ffdf83;stroke:#c8a44c;width:20px}.session-progress{height:7px;border-radius:10px;background:#e4ebdd;margin:15px 0 28px;overflow:hidden}.session-progress i{display:block;height:100%;background:#8daf70;transition:width .3s}.play-layout{display:grid;grid-template-columns:1.35fr 1fr;gap:40px;align-items:start}.learning-card{background:white;border-radius:28px;border:1px solid var(--line);padding:23px 28px;text-align:center;box-shadow:0 9px 25px #2d503208}.card-topline{display:flex;justify-content:space-between;align-items:center;font-size:.75rem;color:var(--muted)}.card-topline .pill{background:#edf3e6}.learning-art{height:300px;display:grid;place-items:center}.learning-art img{width:100%;height:100%;max-height:300px;object-fit:contain}.answer-area{min-height:132px;display:flex;align-items:center;flex-direction:column;justify-content:center}.answer-area h1{font-size:2.1rem;margin-bottom:8px}.answer-area p{font-size:.9rem;color:var(--muted);margin:0 0 8px}.answer-area .pinyin{letter-spacing:.17em;color:#7b8c62;font-size:1rem}.listen-button{background:#f1f6ec;padding:12px 20px;color:var(--green);border-radius:22px;display:inline-flex;align-items:center;gap:8px;font-size:.875rem;min-height:45px}.play-controls{padding:30px 5px}.play-controls h2{font-size:1.7rem}.play-controls>p{color:var(--muted);font-size:.95rem}.play-controls>.primary,.play-controls>.secondary{display:flex;width:100%;margin:15px 0}.play-controls>.text-button{width:100%}.voice-status{text-align:center;font-size:.8rem!important;min-height:24px}.mic-button{min-height:66px}.recording{background:#aa4e39;animation:pulse 1.2s infinite}.feedback{display:flex;gap:12px;align-items:flex-start;padding:18px;border-radius:15px;margin:18px 0;background:#fff3d6;color:#795c24}.feedback.success{background:#e8f2df;color:#456c31}.feedback p{font-size:.875rem;margin:7px 0 0}.feedback b{font-size:1rem}.manual{margin:22px 0;font-size:.875rem;color:var(--muted)}summary{cursor:pointer;padding:8px 0}.manual p{font-size:.8rem;margin-top:8px}.small{min-height:40px;font-size:.875rem;padding:9px 14px}.next-area{border-top:1px solid var(--line);margin-top:25px;padding-top:22px;text-align:center}.next-area button{width:100%}.next-area>span{display:block;font-size:.75rem;color:var(--muted);margin-top:13px}.completion{text-align:center;min-height:70vh;padding-top:60px}.reward-star{width:110px;height:110px;background:#fff0c7;border-radius:40px;display:grid;place-items:center;transform:rotate(-8deg);margin:0 auto 30px}.reward-star svg{width:67px;height:67px;color:#b88624;fill:#ffce56}.completion h1{font-size:2.4rem}.completion>p{color:var(--muted)}.reward-stats{display:flex;justify-content:center;gap:65px;margin:35px 0}.reward-stats strong{display:block;font-size:2.4rem;color:var(--green);margin-bottom:7px}.reward-stats span{color:var(--muted)}.completion-actions{display:flex;justify-content:center;gap:16px}.page-heading{margin-bottom:30px}.page-heading p{color:var(--muted)}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:35px}.stats-grid>div{padding:24px;display:flex;align-items:center;flex-direction:column;border:1px solid var(--line);background:white;border-radius:20px}.stats-grid .icon{color:#8caa62}.stats-grid strong{font-size:2.1rem;margin:13px 0 6px;color:var(--green)}.stats-grid span{color:var(--muted);font-size:.875rem}.collection-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.collection-card{border:1px solid var(--line);background:white;border-radius:20px;padding:16px;text-align:center}.collection-card img{width:100%;aspect-ratio:1;object-fit:contain}.collection-card h3{margin:4px 0 10px}.status{display:inline-block;padding:5px 9px;border-radius:20px;font-size:.75rem;background:#f0f1ed;color:#7a8071;white-space:nowrap}.status.known{background:#eaf4e3;color:#537743}.status.practice{background:#fff2d4;color:#906921}.history{margin-top:40px}.history h2{font-size:1.3rem}.history-row{display:flex;justify-content:space-between;padding:18px 2px;border-bottom:1px solid var(--line);gap:14px;font-size:.875rem}.history-row>span{color:var(--muted)}.tabs{display:flex;gap:10px;border-bottom:1px solid var(--line);margin-bottom:28px}.tabs button{padding:14px 22px;color:var(--muted);border-bottom:3px solid transparent}.tabs .selected{color:var(--green);border-bottom-color:var(--green);font-weight:700}.settings-panel{background:white;border:1px solid var(--line);border-radius:24px;padding:30px}.setting-row{display:flex;align-items:center;justify-content:space-between;padding:23px 0;border-bottom:1px solid var(--line);gap:24px}.setting-row span{display:flex;flex-direction:column;gap:9px}.setting-row small{color:var(--muted);line-height:1.7}.setting-row input{width:23px;height:23px;accent-color:var(--green);flex-shrink:0}.setting-row select{width:100px;flex-shrink:0}select,input:not([type=checkbox]):not([type=file]),textarea{background:#fafcf8;border:1px solid #cdd9c7;border-radius:10px;padding:12px;font-size:1rem;min-width:0;color:var(--deep)}.notice{padding:18px 20px;background:#eff5e9;border-radius:14px;margin:24px 0;display:flex;gap:13px;align-items:flex-start;color:#647b55}.notice p{margin:0;font-size:.875rem;line-height:1.8}.muted{color:var(--muted);font-size:.875rem;line-height:1.8}.category-admin{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.category-admin label{display:flex;align-items:center;gap:8px;padding:12px 16px;border-radius:12px;background:white;border:1px solid var(--line)}.category-admin input,.check-label input{width:18px;height:18px;accent-color:var(--green)}.category-admin small{font-size:.75rem;color:var(--muted)}.admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.admin-card{display:flex;align-items:center;gap:12px;background:white;border:1px solid var(--line);border-radius:18px;padding:14px}.admin-card img{width:70px;height:70px;object-fit:contain}.admin-card h3{margin:0 0 7px}.admin-card small{display:block;color:var(--muted);margin-top:5px}.admin-card button{margin-left:auto}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.875rem;text-align:left}th,td{padding:17px 12px;border-bottom:1px solid var(--line);white-space:nowrap}th{color:var(--muted);font-weight:500}dialog{border:1px solid var(--line);border-radius:24px;padding:30px;max-width:560px;width:calc(100% - 32px);max-height:90vh;color:#263f36;box-shadow:0 30px 100px #18302240}dialog::backdrop{background:#16372a66;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.dialog-heading h2{margin:0;font-size:1.4rem}.icon-button{width:40px;height:40px;border-radius:50%;background:#f0f4eb;display:grid;place-items:center}.field{display:flex;flex-direction:column;gap:9px;margin:17px 0;font-size:.9rem;line-height:1.5}.field small{color:var(--muted);font-size:.75rem}.field input[type=file]{width:100%;font-size:.875rem}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-pair .field{min-width:0}.upload-box{display:flex;align-items:center;gap:16px;padding:14px;background:#f5f8f1;border-radius:12px}.upload-box>.field{flex:1;min-width:0;margin:0}.edit-preview{width:80px;height:80px;object-fit:contain}.check-label{display:flex;gap:9px;align-items:center;font-size:.875rem;margin:18px 0}.form-error{color:#a34134;line-height:1.7;font-size:.875rem}form>.primary{width:100%;margin-bottom:16px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px}.prompt-fallback{width:100%;min-height:130px;margin-top:10px;font-size:.8rem}.empty-state{display:grid;place-content:center;text-align:center;flex:1;gap:12px;padding:50px 20px}.image-error{font-size:.875rem;color:#936f3e;padding:20px}.image-error[hidden]{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;transition:all .2s;background:#244d39;color:white;padding:14px 22px;border-radius:14px;max-width:calc(100% - 32px);width:max-content;font-size:.875rem;line-height:1.7;z-index:100;box-shadow:0 5px 20px #19392320}#toast.show{opacity:1;transform:translate(-50%,0)}@keyframes pulse{50%{box-shadow:0 0 0 8px #aa4e3920}}@media(min-width:1440px){main{padding-top:48px}.featured-art{height:288px}.featured-art img{width:295px;height:295px}.showcase{min-height:475px}}@media(max-width:1050px){.site-header{padding:0 24px;gap:12px}.site-header nav{gap:16px}.header-end{gap:12px}.age-badge{display:none}.start-panel{padding:24px}.showcase{padding:24px 22px 0}.friend-tile{flex-direction:column;gap:4px;text-align:center}.category{min-width:0;flex:1;padding:14px 16px;justify-content:center}.category span{display:none}.admin-grid{grid-template-columns:repeat(2,1fr)}footer{margin-left:30px;margin-right:30px}.play-layout{gap:25px}}@media(max-width:720px){.site-header{height:auto;min-height:82px;padding:16px 20px;flex-wrap:wrap;gap:18px}.brand{font-size:1.2rem;gap:10px}.brand-mark{width:40px;height:40px;border-radius:13px}.brand small{font-size:.6rem}.site-header nav{order:3;width:100%;justify-content:center;gap:50px;height:42px;margin-bottom:-16px}.nav-item{padding-bottom:12px;font-size:.9rem}.header-end{margin-left:auto;gap:12px}.star-count span{display:none}.parent-button{padding:9px}.parent-button span{display:none}.star-count{font-size:.8rem}.star-count b{font-size:1rem}main{padding:26px 18px 15px}.welcome{margin-bottom:22px}.welcome h1{font-size:1.7rem}.welcome p{font-size:.875rem}.welcome .eyebrow{font-size:.75rem}.category-bar{gap:7px;margin-bottom:18px}.category{padding:12px 8px;border-radius:12px;gap:7px}.category b{font-size:.875rem}.category .icon{height:19px;width:19px}.explore-layout{grid-template-columns:1fr;gap:20px}.showcase{min-height:360px;padding:18px 22px 0}.featured-art{height:220px;margin:0}.featured-art img{height:235px;width:235px}.featured-label{padding-bottom:15px}.featured-label h2{font-size:1.25rem}.showcase-top .pill{font-size:.75rem}.collection-count{font-size:.75rem}.start-panel{padding:24px}.start-panel h2{font-size:1.4rem}.mode-option{padding:12px}.section-heading{align-items:flex-start;gap:12px}.section-heading>span{font-size:.75rem}.section-heading h2{font-size:1.125rem}.friend-row{grid-template-columns:repeat(5,1fr);gap:7px}.friend-tile{padding:8px 3px 10px;border-radius:13px;font-size:.8rem}.friend-tile img{width:100%;height:auto;aspect-ratio:1}.friend-tile i{top:3px;right:3px}footer{margin:18px 20px 0;padding:20px 0;gap:8px;flex-direction:column;align-items:center;font-size:.7rem}.play-layout{grid-template-columns:1fr;gap:8px}.session-top{font-size:.75rem;gap:6px}.session-top .text-button{font-size:.8rem}.session-stars{font-size:.75rem}.session-top .icon{width:16px}.learning-card{padding:19px}.learning-art{height:250px}.learning-art img{max-height:250px}.answer-area{min-height:115px}.answer-area h1{font-size:1.7rem}.play-controls{padding:20px 4px}.play-controls h2{font-size:1.5rem}.stats-grid{grid-template-columns:repeat(2,1fr);gap:12px}.stats-grid>div{padding:20px}.collection-grid{grid-template-columns:repeat(3,1fr);gap:10px}.collection-card{padding:9px;border-radius:15px}.collection-card h3{font-size:1rem}.collection-card .status{font-size:.7rem;padding:5px 7px}.history-row{flex-wrap:wrap;font-size:.8rem}.history-row b{order:-1;width:100%}.tabs{gap:0}.tabs button{padding:13px 18px;font-size:.9rem}.settings-panel{padding:22px 18px}.setting-row{gap:14px}.setting-row small{font-size:.8rem}.admin-grid{grid-template-columns:1fr}.section-heading .primary{white-space:nowrap}.category-admin{gap:8px}.category-admin label{padding:10px;font-size:.875rem}.page-heading h1{font-size:1.8rem}.completion{padding:40px 18px}.completion h1{font-size:2rem}.completion-actions{flex-direction:column;padding:0 24px}.completion>p{font-size:.9rem}.reward-stats{gap:50px}.form-pair{grid-template-columns:1fr;gap:0}.form-pair .field{margin:10px 0}dialog{padding:24px 20px}.dialog-actions{flex-wrap:wrap}.notice{padding:15px}.category-bar{flex-wrap:wrap}.category{flex:1 1 20%}}/* Unified recognition tiles: images above labels at every viewport size. */
.category-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;}.category{min-width:0;flex-wrap:wrap;justify-content:center;padding:14px 8px;gap:7px;}.category b{white-space:normal;overflow-wrap:anywhere;}.category span{display:block;width:100%;margin:0;text-align:center;}
.friend-row.recognition-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:18px;align-items:stretch;}.recognition-grid .friend-tile{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;padding:16px 12px;min-width:0;text-align:center;border-radius:20px;}.recognition-grid .friend-tile img{display:block;width:100%;height:auto;aspect-ratio:1;max-width:170px;object-fit:contain;flex-shrink:1;border-radius:12px;}.recognition-grid .friend-tile>span{display:block;width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5;min-height:3em;font-size:1rem;font-weight:600;}.recognition-grid .friend-tile .pinyin-art{width:100%;height:auto;aspect-ratio:1;max-width:170px;font-size:clamp(2rem,4vw,3.2rem);}.friends-section .section-heading{align-items:baseline;flex-wrap:wrap;gap:10px;}.featured-art img[src*="assets/colors/"],.learning-art img[src*="assets/colors/"]{mix-blend-mode:normal;}
@media(max-width:900px){.category-bar{grid-template-columns:repeat(3,minmax(0,1fr));}.friend-row.recognition-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}}
@media(max-width:600px){.category-bar{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}.category{padding:12px 6px;}.category b{font-size:.8rem;}.category span{font-size:.65rem;}.friend-row.recognition-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}.recognition-grid .friend-tile{padding:12px 6px;gap:8px;border-radius:15px;}.recognition-grid .friend-tile>span{font-size:.85rem;}.recognition-grid .friend-tile .pinyin-art{font-size:1.85rem;}}
@media(max-width:360px){.friend-row.recognition-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.category-note{margin:-4px 0 22px;padding:14px 18px;border:1px solid #d7e3d1;border-radius:14px;background:#edf4e8;color:#4c6942;font-size:.9rem;line-height:1.8}

.card-surface{touch-action:pan-y;user-select:none;min-height:300px;display:grid;align-items:center}.swipe-hint{display:block;margin:16px auto 8px;padding:10px 14px;border-radius:18px;background:#edf4e8;color:var(--green);font-size:.875rem;min-height:44px}.card-details{padding:30px 12px}.card-details h1{margin:12px 0}.card-details p{color:var(--muted);margin:10px 0}.card-details .pinyin{color:var(--green);font-size:1.5rem;letter-spacing:.12em}.learning-card .listen-button{margin-top:14px;min-width:150px}.listen-button:disabled{opacity:1;background:#e4eee1;color:#526e4d}@media(max-width:720px){.card-surface{min-height:250px}.swipe-hint{font-size:.8rem}}

.age-picker{display:flex;gap:12px;margin:0 0 22px}.age-tab{flex:1;text-align:left;padding:16px;border:1px solid var(--line);border-radius:16px;background:white}.age-tab.selected{border-color:var(--green);background:#e4eee4}.age-tab small{display:block;color:var(--muted);margin-top:7px}.answer-options{display:grid;gap:12px}.answer-options button{width:100%;min-height:52px}.knowledge-question{font-size:1.15rem!important;color:var(--deep)!important;font-weight:650}.knowledge-answer{font-weight:650;color:var(--green)!important}@media(max-width:600px){.age-picker{gap:6px}.age-tab{padding:12px 8px}.age-tab small{font-size:.7rem}}

.quiet-mode *, .quiet-mode *:before,.quiet-mode *:after{animation:none!important;transition:none!important}.quiet-mode .art-spark,.quiet-mode .eyebrow,.quiet-mode .star-count,.quiet-mode .session-stars{display:none}.picture-options{display:grid;grid-template-columns:repeat(var(--choice-count),minmax(0,1fr));gap:14px}.picture-choice{border:2px solid var(--line);border-radius:18px;background:white;padding:12px;min-height:150px}.picture-choice img{width:100%;height:140px;object-fit:contain}.picture-choice span{display:block;margin-top:8px}.picture-choice.tried{border-style:dashed}.picture-choice:disabled{opacity:1}.find-instruction{font-size:1.4rem;color:var(--green);line-height:1.8}.find-instruction small{font-size:1rem}.category-bar{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}@media(max-width:600px){.category-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.picture-choice{padding:8px}.picture-choice img{height:110px}}
img[data-media="assets/cars/byd.png"]{background:#263f36;padding:18px;border-radius:14px;mix-blend-mode:normal!important}img[data-media^="assets/countries/"]{mix-blend-mode:normal!important;border-radius:0}.quiet-mode .showcase{background:#f4f7f1}.quiet-mode .featured-art img{mix-blend-mode:normal}.expand-library{display:flex;margin:18px auto}.picture-choice:focus-visible{outline:3px solid var(--green)}
.request-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:22px 0}.request-card{border:2px solid var(--line);border-radius:22px;background:white;padding:18px;text-align:center;min-height:210px}.request-card.selected{border-color:var(--green);background:#eff5ea}.request-card img{width:100%;height:150px;object-fit:contain}.request-card b{display:block;margin:14px 0 0;font-size:1.25rem}.request-selection{border:1px solid var(--line);border-radius:20px;padding:22px;background:white}.request-selection h2{margin:0 0 10px}.request-selection p{margin:0 0 12px}.routine-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:32px}.routine-steps{list-style:none;padding:0;display:grid;gap:10px}.routine-steps button{width:100%;text-align:left;padding:14px;border:1px solid var(--line);border-radius:14px;background:white;display:flex;gap:12px}.routine-steps .selected{background:#e6f0e2;border-color:var(--green)}.routine-steps button span{flex-shrink:0}.completion-support{border-top:1px solid var(--line);margin-top:22px;padding-top:14px;font-size:.85rem;color:var(--muted)}.completion-support label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.completion-support select{max-width:180px}.completion-support small{display:block;line-height:1.7}.routine-step-edit{padding:14px;border:1px solid var(--line);border-radius:14px;margin:12px 0;background:#f7faf3}.variant-button{display:block;margin:8px auto}@media(max-width:720px){.request-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.request-card{padding:12px;min-height:180px}.request-card img{height:125px}.request-card b{font-size:1.1rem}.routine-layout{grid-template-columns:1fr;gap:12px}.routine-layout .play-controls{padding-top:4px}}

/* Explicit t shape keeps its lower hook visible across device fonts. */
.pinyin-letter-t{display:block;width:1em;height:1.2em;overflow:visible}.pinyin-art>span:has(.pinyin-letter-t){display:flex;align-items:center;justify-content:center}

.expression-output{position:sticky;top:0;z-index:2;background:#eef4ec;border:1px solid var(--line);border-radius:20px;padding:22px;margin:20px 0}.expression-output h2{overflow-wrap:anywhere}.expression-frames{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:26px}.expression-frames .selected{background:var(--green);color:white}

.expression-output{max-height:45vh;overflow:auto}

.creative-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px}.creative-tile{background:white;border:1px solid var(--line);border-radius:16px;padding:12px;text-align:center}.creative-tile img{width:100%;aspect-ratio:1;display:block}.creative-tile small{display:block;color:var(--muted)}.creative-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.creative-tools .selected{background:var(--green);color:white}.creative-palette{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.creative-palette button{width:44px;height:44px;border:2px solid #b8c4b9;border-radius:50%}.creative-palette button.selected{outline:3px solid var(--green);outline-offset:3px}.creative-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;max-width:1000px}.creative-workspace.with-reference{grid-template-columns:minmax(0,2fr) minmax(180px,1fr)}.drawing-scroll{overflow:auto;border:1px solid var(--line);border-radius:14px;background:white}.drawing-sheet{position:relative;width:100%;aspect-ratio:1;background:white;max-width:900px}.drawing-sheet.zoomed{width:1200px;max-width:none}.drawing-sheet canvas{position:absolute;width:100%;height:100%;top:0;left:0;touch-action:none;cursor:crosshair}.drawing-outline{position:absolute;width:100%;height:100%;top:0;left:0;pointer-events:none}.color-reference{background:white;padding:16px;border-radius:14px;align-self:start}.color-reference img{width:100%;background:white}.color-reference p{font-size:.85rem}.drawing-scroll{max-height:80vh}@media(max-width:650px){.creative-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.creative-workspace.with-reference{grid-template-columns:1fr}.color-reference img{max-width:260px}.creative-tools button{padding:10px 12px}}

.creative-print-buttons{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:18px 0}.creative-print-buttons small{flex-basis:100%;color:var(--muted)}
