/* Learning materials and game actions supply the visual character. */
:root{--wash:#f8f9f6;--ink:#28445a;--line:#dfe5e5;--blue:#3f6c87;--ochre:#b58b43;--coral:#b7796a;--sage:#638066;--lilac:#82719b}.app-bar{border-bottom-color:#e2e6e4}.app-main:has(.game-grid){padding-top:18px}.intro h1{font-family:var(--sans);font-weight:650}.intro img{display:none}.intro{min-height:52px}.intro p{font-size:14px;margin-top:5px}.game-scope{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;padding:12px 18px;background:#edf3f4;border:1px solid #dae5e7;border-radius:10px;flex:none}.game-scope>div:first-child{display:flex;align-items:center;gap:14px;min-width:0}.game-scope-label{font-size:12px;color:#70818a;white-space:nowrap}.game-scope strong{font-size:14px;font-weight:500}.game-scope-tools{display:flex;gap:14px;flex:none}.game-scope-tools .text-link{font-size:13px}.game-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(var(--game-columns,4),minmax(0,1fr));grid-auto-rows:minmax(175px,1fr);gap:16px;overflow:auto;padding:3px 3px 6px}.game-card{--game-color:var(--blue);--game-wash:#edf4f8;min-height:0;background:white;border:1px solid #dfe5e7;border-bottom:4px solid #cfdee5;border-radius:16px;padding:16px 12px 12px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:4px;transition:transform .16s,box-shadow .16s,border-color .16s;position:relative}.game-card.color-ochre{--game-color:var(--ochre);--game-wash:#faf5e9;border-bottom-color:#e8d8b6}.game-card.color-coral{--game-color:var(--coral);--game-wash:#fbf0ec;border-bottom-color:#e8cec5}.game-card.color-sage{--game-color:var(--sage);--game-wash:#f0f5ed;border-bottom-color:#d2dfc9}.game-card.color-lilac{--game-color:var(--lilac);--game-wash:#f4f0f8;border-bottom-color:#dfd3e9}.game-card:hover:not(:disabled){background:var(--game-wash);border-color:var(--game-color);transform:translateY(-2px);box-shadow:0 5px 12px #28445a09}.game-card:active:not(:disabled){transform:translateY(1px)}.game-card h2{font:25px/1.5 SchoolKai,SchoolKaiExtra,KaiTi,serif;color:#304c5f;margin-top:1px;letter-spacing:.025em}.game-card p{font-size:12px;line-height:1.5;color:#75818a;margin-top:1px}.game-card-action{font-size:12px;color:var(--game-color);margin-top:5px}.game-card-action span{padding-left:3px}.game-art{display:block;position:relative;flex:none;width:96px;height:96px;background-image:url('/sync-reading/shared/assets/foundation-games/language-game-atlas-20261124-v2.png');background-size:300% 300%;background-repeat:no-repeat;isolation:isolate}.art-0{background-position:0 0}.art-1{background-position:50% 0}.art-2{background-position:100% 0}.art-3{background-position:0 50%}.art-4{background-position:50% 50%}.art-5{background-position:100% 50%}.art-6{background-position:0 100%}.art-7{background-position:50% 100%}.art-8{background-position:100% 100%}.game-art-glyph{position:absolute;left:18%;right:18%;top:39%;font:21px/1.15 SchoolKai,SchoolKaiExtra,KaiTi,serif;color:#395e70;white-space:nowrap;text-align:center;letter-spacing:0;transform:rotate(-3deg)}.art-0 .game-art-glyph{font-size:17px;top:40%;left:15%;right:15%}.art-1 .game-art-glyph{left:13%;right:40%;top:45%;font-size:25px;transform:rotate(-10deg)}.art-2 .game-art-glyph{left:22%;right:25%;top:34%;font-size:28px}.art-3 .game-art-glyph{font-size:27px;top:43%;left:25%;right:25%;transform:none}.art-4 .game-art-glyph{top:43%;left:8%;right:8%;font:18px/1.2 SchoolPinyin,var(--sans);transform:none;letter-spacing:1px}.art-5 .game-art-glyph{left:12%;right:40%;top:40%;font-size:31px;transform:none}.art-6 .game-art-glyph{top:37%;font-size:20px;left:6%;right:6%;transform:none}.art-7 .game-art-glyph{font-size:13px;top:43%;left:5%;right:5%;transform:none}.art-8 .game-art-glyph{font-size:17px;top:43%;left:5%;right:5%;transform:none}.game-art.mini{width:54px;height:54px}.game-art.mini .game-art-glyph{font-size:12px}.game-title{display:flex;align-items:center;gap:12px}.game-title h1{font:27px/1.35 SchoolKai,SchoolKaiExtra,KaiTi,serif}.game-title small{font-size:12px}.practice-bar{margin-bottom:14px}.question-panel{border:1px solid #dddccf;border-radius:18px;background:#fff;box-shadow:0 2px 0 #e9e4d433}.question-kind{background:#f4f4ec;border-radius:20px;padding:5px 12px;color:#6f7d6d;font-size:13px}.question-body h2,.memory-instruction h2,.missing-heading h2{font:27px/1.5 SchoolKai,SchoolKaiExtra,KaiTi,serif}.answer{border:1px solid #d6e2e8;border-bottom:4px solid #cfdee5;border-radius:13px;background:#f7fbfd;transition:background .15s,transform .15s}.answer:hover:not(:disabled){background:#edf5f9;transform:translateY(-1px)}.answer .letter{background:white;color:#8293a0}.answer.is-correct{border-bottom-color:#7ca88e!important;animation:found-card .35s ease}.answer.is-wrong{animation:try-card .25s ease}.progress{height:7px;background:#e9edf0}.progress i{background:#6387a0}.feedback{font-family:SchoolKai,SchoolKaiExtra,KaiTi,serif;font-size:21px;line-height:1.4;min-height:30px}.feedback.correct{color:#557b61}.feedback.wrong{color:#b0795e}.result-mark{background:#edf5ef;border-color:#8dab94;color:#5f866d}.result h2{font:36px/1.5 SchoolKai,SchoolKaiExtra,KaiTi,serif}.result p{font-family:var(--sans);font-size:15px}.result .primary{background:#527d6b;border-color:#527d6b}.sound-tile{border-bottom-width:3px}.example-card{background:#fbfaf3;border-color:#e7e2d4;border-bottom-width:3px}.example-card:hover:not(:disabled){background:#f5f1e3}.side-panel{background:#f0f4f4}.learning-panel .panel-top h2{font-family:SchoolKai,KaiTi,serif;font-size:25px}.scope-button{background:transparent}.tone-card:nth-child(1){border-bottom:4px solid #d6a2a2;background:#fdf7f5}.tone-card:nth-child(2){border-bottom:4px solid #aac1d8;background:#f5f9fc}.tone-card:nth-child(3){border-bottom:4px solid #b3c8b2;background:#f5f9f2}.tone-card:nth-child(4){border-bottom:4px solid #c7b6d8;background:#f9f5fc}.tone-card:nth-child(5){border-bottom:4px solid #dccb9c;background:#fcfaf0}.tone-card b{font-family:SchoolPinyin,var(--sans)}.stroke-card{border-bottom-width:3px;background:#fcfcf8}.stroke-card:hover:not(:disabled){background:#f4f6ed}.stroke-card strong{font:24px/1.4 SchoolKai,KaiTi,serif}.stroke-grid{gap:14px}.stroke-workspace-panel{border-color:#e2dbc9}.writing-board{background-color:#fffdf7}.primary{box-shadow:0 3px 0 #254c6230}.primary:active{transform:translateY(1px);box-shadow:0 1px 0 #254c6230}.mode-card{background:#fbfcfa}.setup-layout .panel{border-radius:14px}.summary-panel{background:#f0f4ed;border:1px solid #dce5d5}.summary-panel h2{font:27px/1.4 SchoolKai,KaiTi,serif}
.listening-game{flex:1;min-height:0;display:grid;grid-template-columns:minmax(230px,.85fr) minmax(0,1fr);gap:36px;align-items:center;padding:20px 0}.listening-prompt{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;min-height:0}.listening-art{width:190px;height:190px}.listening-art .game-art-glyph{font-size:53px}.listen-picture{width:min(100%,260px);min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #e2dfd2;border-radius:14px;background:#fffdf7;padding:16px}.listen-picture img{width:190px;height:160px;object-fit:contain;mix-blend-mode:multiply}.listen-picture strong{font:64px SchoolKai,KaiTi,serif}.listen-button{display:flex;gap:12px;align-items:center;justify-content:center;border-radius:25px;padding:10px 24px;background:#edf4f7;border-color:#cddde6;min-height:52px}.listen-button svg{width:25px;height:25px}.listen-button span{font:22px SchoolKai,KaiTi,serif}.listening-prompt p{font:24px SchoolKai,KaiTi,serif}.listening-game .answers{height:100%;max-height:420px;min-height:250px;flex:none;grid-auto-rows:1fr;align-self:center}.listen-choice{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;padding:12px;background:#fcfcf8}.listen-choice img{width:min(100%,160px);height:110px;object-fit:contain;mix-blend-mode:multiply}.listen-choice strong{font:34px/1.3 SchoolKai,KaiTi,serif}.tone-answer{display:flex;justify-content:center;align-items:center;gap:22px;font:27px SchoolKai,KaiTi,serif;background:#fff}.tone-1{--tone:#bb7b7b;background:#fff9f7;border-color:#e8cfd0}.tone-2{--tone:#6b8daa;background:#f6fafc;border-color:#cadce7}.tone-3{--tone:#71917a;background:#f6faf4;border-color:#d2e0cf}.tone-4{--tone:#9481ac;background:#faf7fd;border-color:#dfd3eb}.tone-line{display:block;width:52px;height:32px;position:relative;color:var(--tone)}.tone-line:before,.tone-line-3:after{content:'';position:absolute;height:5px;border-radius:4px;background:currentColor;width:50px;left:0;top:15px}.tone-line-2:before{transform:rotate(-25deg)}.tone-line-4:before{transform:rotate(25deg)}.tone-line-3:before{width:28px;left:1px;top:17px;transform:rotate(40deg)}.tone-line-3:after{width:28px;left:21px;top:17px;transform:rotate(-40deg)}
.memory-instruction{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:24px 0 18px}.memory-count{font-size:14px;color:#7d8790;white-space:nowrap}.memory-board{flex:1;min-height:250px;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:1fr 1fr;gap:16px;max-height:520px;padding:2px}.memory-card{position:relative;border:1px solid #d1dce4;border-bottom:5px solid #b7cbd8;background:#edf3f7;border-radius:15px;min-height:110px;display:flex;align-items:center;justify-content:center;transition:transform .2s,background .2s}.memory-card:hover:not(:disabled){background:#e5eff6;transform:translateY(-2px)}.memory-back{display:flex;align-items:center;justify-content:center;position:absolute;inset:12px;border:1px solid #d1dfe7;border-radius:10px}.memory-back .card-art{width:94px;height:94px;opacity:.7}.memory-back .game-art-glyph{display:none}.memory-front{display:none;font:clamp(30px,5vh,54px)/1.4 SchoolKai,KaiTi,serif}.memory-front.py{font-family:SchoolPinyin,var(--sans);font-size:clamp(22px,3.5vh,35px)}.memory-card.is-open{background:#fffdf6;border-color:#ddceb0;border-bottom-color:#cfb889;transform:none}.memory-card.is-open .memory-back{display:none}.memory-card.is-open .memory-front{display:block}.memory-card.is-matched{background:#f2f7ef;border-color:#9db79e;border-bottom-color:#7c9e7c;opacity:1}.memory-card.is-matched:after{content:'✓';font:16px var(--sans);position:absolute;top:10px;right:12px;color:#729471}.missing-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 22px;min-height:45px}.missing-heading h2{font-size:25px}.missing-heading button{background:#f8f1df;border-color:#dfcfaa;white-space:nowrap}.missing-board{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;flex:1;min-height:150px;max-height:300px;align-items:stretch}.remember-card{border:1px solid #dddccc;border-bottom:4px solid #d7cfb6;background:#fffdf7;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:16px}.remember-card img{width:min(100%,150px);height:100px;object-fit:contain;mix-blend-mode:multiply}.remember-card strong{font:46px SchoolKai,KaiTi,serif}.remember-card.is-missing{border-style:dashed;background:#f8f9f6}.missing-sign{font:60px SchoolKai,KaiTi,serif;color:#a4afb4}.missing-choice-area{flex:none;margin-top:20px}.missing-choice-area h3{font:23px SchoolKai,KaiTi,serif;text-align:center;margin-bottom:12px}.missing-answers{grid-template-columns:repeat(4,1fr);grid-template-rows:1fr;flex:none;gap:12px}.missing-answers .answer{justify-content:center;min-height:68px}.question-panel:has(.memory-board),.question-panel:has(.missing-board){padding-top:20px}.question-panel .pair-column button{background:#fffdf7;border-bottom:3px solid #ded8c6;border-radius:11px;font-size:32px}.question-panel .pair-column:last-child button{font-size:28px}.pair-cards button{background:#fffdf7;border-bottom:3px solid #d6d6c5;border-radius:12px}.order-bank{background:#fcfcf7}.order-bank button{background:#fffdf4;border-bottom:3px solid #e1d2ac}.order-answer{border-color:#d4e1e6;background:#f2f7f9}.game-title+.practice-tools button{font-size:14px;border-radius:22px;background:white}.question-panel .game-art-glyph{pointer-events:none}.tone-game-answers .answer.is-correct{animation:found-card .4s ease}
@keyframes found-card{0%,100%{transform:translateY(0)}45%{transform:translateY(-5px)}}@keyframes try-card{0%,100%{transform:translateX(0)}30%{transform:translateX(-4px)}70%{transform:translateX(4px)}}
@media(min-width:1600px){.game-art{width:128px;height:128px}.game-card h2{font-size:31px}.game-card p{font-size:14px}.game-card-action{font-size:14px}.game-art-glyph{font-size:28px}.art-4 .game-art-glyph{font-size:25px}.art-5 .game-art-glyph{font-size:41px}.art-6 .game-art-glyph{font-size:27px}.art-8 .game-art-glyph{font-size:22px}.game-grid{gap:22px}.game-scope{padding:14px 22px}.listening-art{width:240px;height:240px}.memory-back .card-art{width:125px;height:125px}}
@media(max-width:1000px){.game-grid{gap:12px}.game-card{padding:12px 8px}.game-card h2{font-size:23px}.game-card p{font-size:11px}.game-art{width:82px;height:82px}.listening-game{gap:20px}.tone-answer{gap:13px}.tone-line{width:42px}.tone-line:before{width:42px}.tone-line-3:before{width:25px}.tone-line-3:after{left:17px;width:25px}.memory-board{gap:12px}}
@media(max-width:650px){.app-main:has(.game-grid){padding-top:12px}.intro{min-height:49px;margin-bottom:10px}.intro p{font-size:12px}.game-scope{padding:9px 12px;margin-bottom:10px;gap:6px}.game-scope>div:first-child{display:block}.game-scope-label{font-size:10px;display:block;margin-bottom:2px}.game-scope strong{font-size:12px}.game-scope-tools{gap:6px;flex-direction:column;align-items:flex-end}.game-scope-tools .text-link{font-size:11px;min-height:22px;padding:0}.game-grid{grid-template-columns:1fr 1fr;grid-auto-rows:minmax(155px,1fr);gap:10px;padding-bottom:4px}.game-card{padding:10px 7px 8px;border-radius:12px;border-bottom-width:3px;gap:2px}.game-card h2{font-size:23px}.game-card p{font-size:10px;max-width:160px}.game-card-action{font-size:11px;margin-top:3px}.game-art{width:76px;height:76px}.game-art-glyph{font-size:17px}.art-0 .game-art-glyph{font-size:15px}.art-1 .game-art-glyph{font-size:23px}.art-2 .game-art-glyph{font-size:24px}.art-3 .game-art-glyph{font-size:22px}.art-4 .game-art-glyph{font-size:14px}.art-5 .game-art-glyph{font-size:27px}.art-6 .game-art-glyph{font-size:16px}.art-7 .game-art-glyph{font-size:11px}.art-8 .game-art-glyph{font-size:14px}.game-title{gap:8px}.game-title h1{font-size:24px}.game-title small{font-size:11px;max-width:205px}.game-art.mini{width:39px;height:39px}.game-art.mini .game-art-glyph{font-size:10px}.practice-bar{gap:6px}.game-title+.practice-tools button{font-size:12px;padding:7px 10px;min-height:36px}.question-kind{font-size:11px;padding:4px 9px}.question-body h2{font-size:24px}.feedback{font-size:19px;min-height:26px}.listening-game{display:flex;flex-direction:column;gap:14px;overflow:auto;padding:12px 0}.listening-prompt{gap:10px;flex:1;width:100%;min-height:140px}.listening-art{width:110px;height:110px}.listening-art .game-art-glyph{font-size:31px}.listen-button{min-height:43px;padding:8px 18px;gap:8px}.listen-button span{font-size:21px}.listen-button svg{width:22px;height:22px}.listening-prompt p{font-size:21px}.listen-picture{width:145px;min-height:115px;padding:8px}.listen-picture img{width:120px;height:90px}.listen-picture strong{font-size:48px}.listening-game .answers{flex:0 0 220px;width:100%;max-height:260px;min-height:190px;gap:10px}.listen-choice{padding:9px;gap:3px}.listen-choice img{height:66px;width:94px}.listen-choice strong{font-size:28px}.tone-answer{gap:15px;font-size:23px}.tone-line{width:42px;height:28px}.memory-instruction{flex-direction:column;align-items:flex-start;gap:7px;margin:16px 0 12px}.memory-instruction h2{font-size:24px}.memory-count{font-size:12px}.memory-board{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(4,1fr);gap:9px;min-height:360px;max-height:none}.memory-card{min-height:76px;border-radius:11px;border-bottom-width:3px}.memory-back{inset:7px;border-radius:7px}.memory-back .card-art{width:62px;height:62px}.memory-front{font-size:37px}.memory-front.py{font-size:23px}.missing-heading{flex-direction:column;align-items:flex-start;gap:8px;margin:15px 0 14px}.missing-heading h2{font-size:24px}.missing-heading button{font-size:13px;padding:6px 12px;min-height:34px;align-self:flex-end}.missing-board{grid-template-columns:1fr 1fr;gap:10px;min-height:230px;max-height:350px}.remember-card{padding:10px;gap:5px}.remember-card img{height:68px;width:100px}.remember-card strong{font-size:35px}.missing-sign{font-size:47px}.missing-choice-area{margin-top:13px}.missing-choice-area h3{font-size:22px;margin-bottom:10px}.missing-answers{gap:7px}.missing-answers .answer{padding:9px 5px;min-height:55px;font-size:30px}.question-panel .pair-column button{font-size:30px}.question-panel .pair-column:last-child button{font-size:23px}.result h2{font-size:30px}.result p{font-size:14px}.question-panel:has(.memory-board){overflow:auto}.app-main>.content-nav{flex:none}}
@media(max-height:700px) and (min-width:651px){.game-grid{grid-auto-rows:minmax(145px,1fr);gap:10px}.game-art{width:72px;height:72px}.game-card{padding:8px}.game-card h2{font-size:23px}.game-card p{font-size:11px}.game-card-action{margin-top:2px}.game-scope{padding:8px 14px;margin-bottom:10px}.app-main:has(.game-grid)>.intro{min-height:42px;margin-bottom:9px}.game-art-glyph{font-size:17px}.listening-game{padding:12px 0}.listening-art{width:140px;height:140px}.memory-instruction{margin:13px 0}.memory-card{min-height:95px}.missing-board{max-height:210px}.remember-card img{height:75px}}
@media(prefers-reduced-motion:reduce){.answer,.game-card,.memory-card{animation:none!important;transition:none!important;transform:none!important}}

.memory-front,.remember-card strong{max-width:100%;overflow-wrap:anywhere}.memory-front{padding:8px}.question-prompt{max-width:100%;overflow-wrap:anywhere}

.game-art.art-keyboard{background-image:none;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:5px 0}.keyboard-input{display:block;background:#fffdf5;border:1.5px solid #9caaaf;border-radius:5px;font:18px/1.6 SchoolPinyin,var(--sans);color:#3d677d;box-shadow:0 2px 0 #e7dfce}.keyboard-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;background:#eee9dc;border:1.5px solid #b9ad95;border-bottom-width:4px;border-radius:6px;padding:5px;transform:rotate(-3deg)}.keyboard-keys i{font:13px/1.4 SchoolPinyin,var(--sans);font-style:normal;background:#fffdf6;border:1px solid #c9c4b7;border-radius:3px;color:#3d677d}.mini .keyboard-input{font-size:10px}.mini .keyboard-keys{gap:1px;padding:2px}.mini .keyboard-keys i{font-size:7px}.game-art.mini.art-keyboard{gap:4px}@media(max-width:650px){.keyboard-input{font-size:15px}.keyboard-keys{padding:4px;gap:2px}.keyboard-keys i{font-size:11px}}

.game-art-glyph{font-family:SchoolPinyin,SchoolKai,SchoolKaiExtra,KaiTi,serif}
