:root{--ink:#2c4037;--green:#416b54;--muted:#879180;--line:#e1e5d9;--yellow:#f4d368}*{box-sizing:border-box}body{margin:0;background:#f5f6ef;color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif}button,input,textarea{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer;color:inherit;touch-action:manipulation}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #b49541;outline-offset:4px}[hidden]{display:none!important}.page{max-width:1040px;padding:0 28px;margin:auto}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.topbar{display:flex;align-items:center;gap:20px;height:68px;font-size:12px;border-bottom:1px solid var(--line)}.top-adventure{margin-left:auto;color:#a5843f}.topbar #tgma-lang-switcher{position:relative;top:auto;right:auto;z-index:20;flex:none}.topbar #tgma-lang-switcher .tgma-lang-btn{font-size:11px;padding:8px 11px;box-shadow:none;background:#fbfcf7}.hero{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(120deg,#f7d96d,#f1db8d);border:1px solid #e1c467;border-radius:17px;padding:30px 35px;margin:26px 0 18px}.eyebrow{font-size:11px;letter-spacing:2px;color:#8e824f;margin:0 0 12px}h1{font-size:31px;margin:0 0 14px;letter-spacing:2px}.hero p:not(.eyebrow){font-size:12px;color:#7a784b;line-height:1.8;margin:0}.hero-art{height:145px;width:145px;transform:rotate(-6deg);flex:none;margin:0 30px}.personal-bests{display:flex;gap:22px;margin-top:22px;font-size:12px;color:#67704a}.quick-test{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 23px;background:#fffef8;border:1px solid var(--line);border-radius:12px}.quick-test b{display:block;font-size:14px;margin-bottom:6px}.quick-test span{font-size:10px;color:var(--muted)}.quick-test>div:last-child{display:flex;gap:10px}.test-button{border:1px solid #dfc45f;background:#f8dc78;border-radius:8px;padding:10px 17px;font-size:12px}.test-button.secondary{background:#eef3e8;border-color:#d9e2cb;color:#6c7d5d}.library{margin-top:30px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-title h2,.history h2{font-size:18px;margin:0;font-weight:700;letter-spacing:1px}.section-title span{font-size:10px;color:#99a08c}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.category-card{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:8px;min-height:105px;padding:19px 18px;border:1px solid #e3e7dc;border-radius:12px;transition:transform .16s,box-shadow .16s}.category-card:hover{transform:translateY(-2px);box-shadow:0 7px 18px #354b3810}.category-card strong{display:block;font-size:14px;white-space:nowrap;letter-spacing:1px}.category-card small{display:block;font-size:9px;color:#939982;margin-top:9px}.category-card svg{height:56px;width:56px;flex:none}.tone-0{background:#f7eee6}.tone-1{background:#faf5e2}.tone-2{background:#edf5eb}.tone-3{background:#edf2f7}.game-links{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:31px}.game-links a{display:flex;align-items:center;gap:18px;border:1px solid #dce2d2;background:#eaf0e1;border-radius:12px;padding:18px 23px}.game-links img{height:94px;width:94px;object-fit:contain;flex:none}.game-links svg{width:82px;height:82px;flex:none}.game-links b{font-size:13px}.game-links p{font-size:10px;color:#8a937a;line-height:1.8;margin:8px 0}.game-links span{font-size:11px;color:#6b8159}.game-links a.mole-link{background:#faf5e5;border-color:#e6dcc0}.history{margin-top:28px}.history>div{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.history-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:9px;background:#fffef7;padding:12px;font-size:10px;color:#8c947f}.history-row b{color:#5f7559;font-size:11px}.history-row small{display:block;margin-top:4px;font-size:9px}.lesson-picker{padding:26px 0;min-height:70vh}.text-button{border:0;background:none;color:#78886b;font-size:12px;padding:8px 0}.lesson-picker .eyebrow{margin-top:30px}.lesson-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}.lesson-card{text-align:left;border:1px solid var(--line);border-radius:12px;background:#fffef7;padding:24px;display:block;color:#3f5b46}.lesson-card h3{font-size:17px;margin:0 0 12px}.lesson-card p{font-size:12px;line-height:1.8;color:#8a967f;margin:0 0 16px}.lesson-card span{font-size:10px;color:#aa9458}.practice{position:relative;background:#fffef8;border:1px solid var(--line);border-radius:16px;margin:26px 0 0;overflow:hidden}.practice-title{display:flex;align-items:center;gap:20px;padding:20px 26px}.practice-title h2{font-size:17px;text-align:center;flex:1;margin:0;letter-spacing:1px}.practice-title>span{font-size:10px;color:#98a08c}.progress-track{height:4px;background:#eef1e7}.progress-track i{display:block;width:0;height:100%;background:#92b471;transition:width .2s}.practice-stats{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:23px 30px;border-bottom:1px solid #eef0e6}.practice-stats>div:not(.controls){text-align:center;min-width:95px}.practice-stats small{display:block;font-size:10px;color:#929b88;margin-bottom:7px}.practice-stats b{font-size:25px;font-weight:600;color:#4c6747;white-space:nowrap}.practice-stats em,.practice-stats b span{font-size:11px;font-style:normal;font-weight:400;margin-left:4px}.controls{display:flex;gap:10px;flex:1}.round-button{display:grid;place-items:center;width:38px;height:38px;border:1px solid #dce3d1;background:#f4f7ed;border-radius:50%;font-size:21px;line-height:1;color:#7d9470}.lesson-body{padding:18px 30px;max-height:360px;overflow:auto;scroll-behavior:smooth}.line{padding:17px 18px;border-bottom:1px solid #eff0e6;color:#a9afa0;line-height:1.9;letter-spacing:3px;font-size:20px;position:relative}.line:last-child{border-bottom:0}.line.active{background:#f0f4e9;border-radius:9px;border-bottom-color:transparent;color:#415b45}.line.completed{color:#82a267}.line .right{color:#82a267}.line .wrong{color:#bd6a50;background:#f7e7de;border-radius:3px}.line .cursor{border-bottom:2px solid #b7a353}.line .typed-line{letter-spacing:3px;font-size:17px;line-height:1.6;margin-top:6px;min-height:27px;overflow-wrap:anywhere}.pinyin-line{font-size:11px;letter-spacing:1px;color:#a5a583;line-height:1.8;margin:0 0 7px}.line.english{font-family:Georgia,serif;letter-spacing:1px;font-size:19px}.line.english .typed-line{letter-spacing:1px;font-family:system-ui,sans-serif;font-size:16px}.input-area{padding:4px 30px 14px}.input-area label{display:block;font-size:10px;color:#949c87;line-height:1.8;margin:0 0 9px}textarea{display:block;resize:vertical;width:100%;min-height:85px;border:1px solid #dce2cf;outline:none;border-radius:9px;padding:13px 15px;color:#4c6947;font-size:18px;line-height:1.8;background:#fbfcf5}textarea::placeholder{font-size:13px;color:#b0b59f}textarea:focus{border-color:#a7bc8e;box-shadow:0 0 0 3px #829d6b10}.input-area p{font-size:10px;color:#95a181;line-height:1.8;min-height:18px;margin:8px 0 0}.input-area p.error{color:#b17154}.assist-row{display:flex;align-items:center;justify-content:space-between;padding:16px 30px 20px;border-top:1px solid #eef0e6;font-size:11px;color:#8b967d}.assist-row label{display:flex;align-items:center;gap:7px;cursor:pointer}.assist-row input{accent-color:#7f9b65}.assist-row>div{display:flex;gap:9px}.assist-button{border:1px solid #e2cf81;background:#f9e4a4;border-radius:18px;font-size:11px;padding:8px 18px}.pause-layer{position:absolute;inset:0;display:grid;place-items:center;background:#f5f7eee8;backdrop-filter:blur(4px);text-align:center}.pause-layer>div{padding:20px}.pause-layer span{font-size:40px}.pause-layer h2{font-size:23px;margin:16px 0}.pause-layer p{font-size:12px;color:#90997f;line-height:1.8}.primary-button{background:#4a7058;border:1px solid #365a44;color:#fff8e3;padding:12px 27px;border-radius:8px;font-size:13px;box-shadow:0 3px 0 #36513d}.result{text-align:center;min-height:65vh;border:1px solid var(--line);border-radius:16px;background:#fffdf4;padding:52px 25px;margin-top:28px}.result>p{font-size:12px;color:#9a9b81;margin:20px 0}.result-metrics{display:grid;grid-template-columns:repeat(4,1fr);max-width:600px;margin:34px auto;gap:15px}.result-metrics b{display:block;font-size:30px;color:#6b8959;font-family:Georgia,serif;margin-bottom:11px}.result-metrics span{font-size:11px;color:#9d9e87}.result-actions{display:flex;justify-content:center;gap:25px}.result-adventure{display:block;font-size:12px;color:#9d8745;margin-top:30px}footer{display:flex;justify-content:center;gap:24px;padding:25px 0;font-size:9px;color:#a2aa94}main{min-height:75vh}
@media(max-width:800px){.category-grid{grid-template-columns:repeat(2,1fr)}.category-card{min-height:100px}.category-card svg{width:65px;height:65px}.hero-art{margin-right:5px}.game-links a{padding:15px;gap:10px}.game-links img{height:75px;width:75px}.game-links svg{height:60px;width:60px}}
@media(max-width:600px){.page{padding:0 14px}.topbar{height:58px;gap:12px;font-size:11px}.top-adventure{font-size:10px}.topbar #tgma-lang-switcher .tgma-lang-btn{font-size:10px;padding:8px}.hero{padding:23px 19px;margin-top:19px}.hero h1{font-size:27px}.eyebrow{font-size:9px;letter-spacing:1px}.hero p:not(.eyebrow){font-size:10px}.hero-art{width:83px;height:100px;margin:0;align-self:flex-start;margin-top:12px}.personal-bests{gap:14px;font-size:10px;margin-top:20px}.quick-test{display:block;padding:17px 19px}.quick-test>div:last-child{margin-top:14px;gap:12px}.test-button{flex:1;font-size:11px;padding:10px 8px}.section-title h2{font-size:17px}.section-title span{font-size:8px}.library{margin-top:25px}.category-grid{gap:10px}.category-card{min-height:92px;padding:16px 12px;gap:0}.category-card strong{font-size:13px;letter-spacing:0}.category-card small{font-size:8px;margin-top:8px}.category-card svg{width:46px;height:46px}.game-links{grid-template-columns:1fr;margin-top:24px;gap:11px}.game-links a{padding:15px 17px;gap:16px}.game-links img{width:74px;height:74px}.game-links svg{width:65px;height:65px}.history>div{grid-template-columns:1fr}.lesson-grid{grid-template-columns:1fr;gap:13px}.lesson-card{padding:20px}.practice{margin-top:18px}.practice-title{padding:14px 13px;gap:10px;flex-wrap:wrap}.practice-title h2{font-size:14px}.practice-title>span{width:100%;text-align:center;font-size:9px}.practice-title>span:empty{display:none}.practice-title .text-button{font-size:10px}.practice-stats{padding:17px 13px;gap:10px}.practice-stats>div:not(.controls){min-width:59px}.practice-stats b{font-size:21px}.practice-stats em,.practice-stats b span{font-size:9px}.practice-stats small{font-size:9px}.round-button{width:28px;height:28px;font-size:17px}.controls{gap:7px}.lesson-body{padding:13px;max-height:310px}.line{padding:13px 11px;font-size:18px;letter-spacing:2px}.line.english{font-size:17px;letter-spacing:.5px}.line .typed-line{font-size:15px;letter-spacing:2px;min-height:23px}.pinyin-line{font-size:10px;letter-spacing:.3px}.input-area{padding:3px 14px 13px}textarea{font-size:16px;padding:12px;min-height:78px}.input-area label,.input-area p{font-size:9px}.assist-row{padding:14px;font-size:10px}.assist-button{font-size:10px;padding:8px 14px}.result{padding:35px 15px}.result h1{font-size:24px}.result-metrics{gap:10px;grid-template-columns:1fr 1fr;margin:27px auto;row-gap:22px}.result-metrics b{font-size:28px}.result-metrics span{font-size:10px}.result-adventure{font-size:11px}footer{gap:14px;font-size:8px;padding:22px 0}}
@media(max-width:360px){.topbar{gap:8px}.topbar #tgma-lang-switcher .tgma-lang-btn{padding:8px 7px}.category-card svg{width:40px;height:40px}.category-card strong{font-size:12px}.hero-art{width:70px}.practice-stats{gap:6px;padding:15px 10px}.controls{gap:4px}.round-button{width:25px;height:27px}.practice-stats b{font-size:18px}.practice-stats>div:not(.controls){min-width:56px}.hero{padding:21px 15px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.category-card strong{white-space:normal;line-height:1.5}.category-card div{min-width:0}
