:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#26384b;background:#f4f8f9;font-synthesis:none;--ink:#26384b;--muted:#7e929c;--blue:#367ddd;--line:#e2ebee}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{transition:background .15s,transform .15s}button:hover:not(:disabled){filter:brightness(.97)}button:active:not(:disabled){transform:translateY(1px)}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #3b91df;outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.header{max-width:1080px;margin:auto;padding:24px 32px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:10px;align-items:center;font-size:18px;font-weight:800;letter-spacing:1px}.brand-mark{background:#2f5569;color:#fff;width:35px;height:35px;display:grid;place-items:center;border-radius:12px;font-size:23px}.wallet{display:flex;align-items:center;gap:9px;padding:10px 17px;border:1px solid var(--line);border-radius:22px;background:#fff;font-size:11px;color:#6d8490}.wallet>span:first-child{color:#f2b941;font-size:20px}.wallet strong{font-size:22px;color:var(--ink);font-variant-numeric:tabular-nums}.home{max-width:1020px;margin:0 auto;padding:14px 32px 0}.welcome{display:flex;align-items:center;justify-content:space-between;margin:12px 0 27px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.6px;color:#8398a2;margin:0 0 9px}h1{font-size:30px;letter-spacing:-.7px;margin:0}h2{font-size:22px;margin:0}.icon-button{border:1px solid var(--line);background:#fff;width:42px;height:42px;border-radius:14px;font-size:22px;color:#72909b;display:grid;place-items:center}.game-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(290px,.85fr);gap:24px;align-items:stretch}.pet-card{background:#fff;border:1px solid #dce9e8;border-radius:27px;overflow:hidden;display:flex;flex-direction:column}.pet-heading{padding:25px 27px 0;display:flex;justify-content:space-between;align-items:start;position:relative;z-index:2;background:linear-gradient(#eefaf5,#effaf8)}.pet-heading .eyebrow{display:block;margin-bottom:7px;color:#7b9d91}.pet-heading h2{font-size:27px}.pet-heading p{font-size:11px;color:#7a998e;margin:6px 0 0}.level{font-size:12px;font-weight:800;background:#fff;border:1px solid #cfe2db;padding:8px 12px;border-radius:13px}.pet-scene{position:relative;flex:1;min-height:315px;background:linear-gradient(#effaf8,#e6f4f3);isolation:isolate;overflow:hidden;display:flex;align-items:end}.speech{position:absolute;top:20px;left:25px;z-index:3;max-width:190px;border:1px solid #d7e8e2;background:#fffffff0;border-radius:13px 13px 13px 3px;padding:10px 13px;color:#608576;font-size:11px;line-height:1.8;margin:0}.halo{position:absolute;width:250px;height:250px;border:1px dashed #b3d8cf8c;border-radius:50%;left:50%;top:20%;transform:translateX(-50%);z-index:0}.halo:after{content:'';position:absolute;inset:17px;border:1px solid #c9e5dd;border-radius:50%}.hill{position:absolute;bottom:-24%;left:-20%;width:120%;height:43%;border-radius:50%;transform:rotate(-10deg);background:#cae6db66}.hill-two{left:20%;bottom:-30%;background:#b9dfd455;transform:rotate(13deg)}#pet-host{position:relative;width:100%;z-index:2;padding-top:15px}#pet-host wukong-game-pet{width:100%}.touch-hint{position:absolute;bottom:15px;left:0;width:100%;text-align:center;font-size:9px;letter-spacing:1px;color:#6a928780;pointer-events:none;z-index:3}.growth{padding:21px 27px 20px;background:#fff;position:relative;z-index:3}.growth-label{display:flex;justify-content:space-between;font-size:11px;margin-bottom:11px}.growth-label strong{font-weight:600}.growth-label span{color:#91a3aa;font-variant-numeric:tabular-nums}progress{display:block;width:100%;height:9px;border:0;border-radius:8px;background:#edf2f3;overflow:hidden;appearance:none}progress::-webkit-progress-bar{background:#edf2f3;border-radius:8px}progress::-webkit-progress-value{background:#68bca0;border-radius:8px;transition:width .4s}progress::-moz-progress-bar{background:#68bca0;border-radius:8px}.growth p{font-size:10px;color:#8da39c;margin:10px 0 0}.play-panel{display:flex;flex-direction:column;gap:17px}.practice-card{background:white;border:1px solid var(--line);border-radius:24px;padding:28px;position:relative;overflow:hidden}.card-icon{position:absolute;right:20px;top:12px;font-weight:300;color:#e9f1fc;font-size:65px;transform:rotate(-10deg);line-height:1}.practice-card>.eyebrow{color:#83a1c0;margin-bottom:17px}.practice-card h2{font-size:25px}.card-copy{font-size:12px;color:#7b909c;line-height:1.9;margin:13px 0 23px}.card-copy strong{color:#5987b7;font-weight:600}.practice-meta{display:flex;gap:7px;font-size:10px;margin-bottom:17px}.practice-meta span{padding:6px 8px;border-radius:7px;background:#f2f6fa;color:#8297ad}.primary{border:0;border-bottom:3px solid #2866b6;background:var(--blue);color:white;border-radius:13px;padding:15px 18px;font-size:15px;font-weight:650;width:100%;display:flex;align-items:center;justify-content:center;gap:18px;min-height:51px}.practice-card .primary{justify-content:space-between}.feed-card{display:grid;grid-template-columns:42px 1fr;gap:8px 13px;border:1px solid #f0e2de;background:#fff8f5;border-radius:22px;padding:23px}.food-illustration{font-size:36px;align-self:center}.feed-card .eyebrow{color:#bc9186;font-size:9px;margin:0 0 7px}.feed-card h2{font-size:16px}.feed-card p{font-size:10px;color:#b48d84;margin:7px 0 5px}.feed-button{grid-column:1/-1;margin-top:10px;display:flex;justify-content:space-between;align-items:center;min-height:49px;padding:12px 16px;border-radius:12px;border:1px solid #ebbcab;background:#fffaf7;font-size:13px;font-weight:650;color:#b9674c}.feed-button>span{font-size:12px;color:#c7835d}.feed-card>#feed-hint{grid-column:1/-1;text-align:center;font-size:9px;margin:2px 0 0;color:#b8a19a}.small-note{display:flex;gap:12px;align-items:center;padding:0 9px;color:#90a3af}.small-note>span{font-size:24px;color:#a9bcc9}.small-note p{font-size:11px;line-height:1.8;margin:0}.home footer{display:flex;justify-content:space-between;color:#a4b2b7;font-size:10px;padding:24px 3px 30px}.toast{position:fixed;z-index:20;bottom:26px;left:50%;transform:translateX(-50%);padding:14px 22px;border-radius:16px;background:#284354;color:#fff;box-shadow:0 6px 25px #26485d25;font-size:13px;line-height:1.6;max-width:calc(100% - 32px);width:max-content;text-align:center}
dialog{border:1px solid #dfe9ee;border-radius:25px;padding:25px 28px;width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;color:var(--ink);background:#fcfefe;box-shadow:0 28px 110px #203e553b}dialog::backdrop{background:#273e5966;backdrop-filter:blur(5px)}.quiz-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.quiz-top .eyebrow{margin:0}.quiz-top .icon-button{font-size:26px;background:transparent;border:0}.quiz-top h2{font-size:22px}.quiz-status{display:flex;justify-content:space-between;font-size:12px;color:#7290a2}.round-coins{color:#bf933d}.question-dots{display:flex;gap:5px;margin:12px 0 26px}.question-dots i{flex:1;height:5px;border-radius:4px;background:#e9eff3}.question-dots i.done{background:#6ab5a0}.question-dots i.current{background:#659add}.quiz-guidance{text-align:center;font-size:11px;color:#97aab5;margin:0 0 20px}.equation{display:flex;align-items:center;justify-content:center;gap:12px;white-space:nowrap;font-size:36px;font-weight:700;letter-spacing:-1px;font-variant-numeric:tabular-nums}.equation input{width:94px;border:2px solid #bbd6ee;background:#eef6ff;border-radius:14px;text-align:center;font-size:34px;font-weight:700;color:#3676ba;padding:9px 4px;min-width:0}.equation input:disabled{opacity:1;-webkit-text-fill-color:#4e977c;background:#f1faf5;border-color:#b0d9c8}.answer-feedback{min-height:70px;padding:16px 1px 12px;text-align:center;font-size:12px;line-height:1.7;color:#7a93a3}.answer-feedback.correct{color:#3a9478;font-weight:600}.answer-feedback.wrong{color:#b58246}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 18px}.keypad button{border:1px solid #e0e8ed;background:#f5f9fb;min-height:49px;border-radius:12px;font-size:21px;color:#486379}.keypad .secondary-key{font-size:13px;color:#8ca0ae;background:transparent}.quiz-bottom{font-size:10px;color:#a1b0b8;text-align:center;margin:18px 0 0}#result-view{text-align:center;padding:0 0 8px}.result-star{width:86px;height:86px;border-radius:28px;background:#fff5d8;color:#eabd53;font-size:54px;display:grid;place-items:center;margin:4px auto 27px;transform:rotate(-8deg)}#result-view h2{font-size:25px}#result-view p:not(.eyebrow){color:#8a9fab;font-size:12px;line-height:1.8}.result-reward{margin:28px 0 5px;color:#d7a442}.result-reward strong{font-size:58px;letter-spacing:-3px}.result-reward span{font-size:13px;padding-left:8px}#result-detail{margin-bottom:26px}.text-button{border:0;background:none;color:#899fae;padding:15px;font-size:12px;min-height:44px;margin-top:6px}.setting-description{color:#869ca9;font-size:12px;line-height:1.8}fieldset{padding:0;border:0;margin:22px 0}legend{font-size:11px;color:#859ba8;margin-bottom:12px}fieldset label{display:flex;gap:12px;align-items:center;padding:15px;border:1px solid #e1e9ef;border-radius:12px;margin-bottom:9px;cursor:pointer}fieldset label:has(input:checked){border-color:#9cbddf;background:#f1f7fd}fieldset input{accent-color:#367ddd;width:17px;height:17px}fieldset strong{display:block;font-size:13px;font-weight:600}fieldset small{display:block;font-size:10px;color:#90a4b3;margin-top:5px}.setting-footnote{color:#92a5b1;font-size:11px;line-height:1.9;margin:18px 0}
@media(min-width:1100px){.pet-scene{min-height:345px}}@media(max-width:720px){.header{padding:19px 20px}.brand{font-size:17px}.wallet{padding:7px 13px}.wallet strong{font-size:20px}.home{padding:7px 18px 0}.welcome{margin:8px 0 22px}h1{font-size:25px}.welcome .eyebrow{font-size:9px;letter-spacing:1px}.game-layout{grid-template-columns:1fr;gap:17px}.pet-heading{padding:21px 22px 0}.pet-heading h2{font-size:25px}.pet-scene{min-height:270px;max-height:400px}#pet-host{max-width:540px;margin:auto;padding-top:25px}.speech{left:20px;top:17px;max-width:175px;font-size:10px}.halo{width:220px;height:220px;top:14%}.growth{padding:18px 22px}.play-panel{display:grid;grid-template-columns:1fr;gap:15px}.practice-card{padding:22px}.practice-card>.eyebrow{margin-bottom:10px}.practice-card h2{font-size:22px}.card-copy{margin:9px 0 14px;font-size:12px}.card-copy br{display:none}.practice-meta{margin-bottom:14px}.feed-card{padding:21px}.small-note{padding:2px 6px}.small-note p br{display:none}.home footer{font-size:9px;padding-top:22px;gap:10px}.pet-card{border-radius:23px}}
@media(max-width:380px){.equation{font-size:30px;gap:8px}.equation input{width:80px;font-size:28px}.welcome h1{font-size:23px}dialog{padding:19px}.keypad{gap:6px}.keypad button{min-height:44px}.quiz-top{margin-bottom:12px}.question-dots{margin-bottom:17px}.quiz-guidance{margin-bottom:14px}.answer-feedback{min-height:63px}}
@media(max-height:720px){dialog{padding-top:16px;padding-bottom:16px}.quiz-top{margin-bottom:9px}.question-dots{margin:9px 0 15px}.quiz-guidance{margin-bottom:13px}.answer-feedback{min-height:62px;padding-top:12px}.keypad button{min-height:43px}.keypad{gap:6px;margin-bottom:12px}.quiz-bottom{margin-top:12px}}
#pet-host wukong-game-pet{transform:scale(var(--pet-zoom,1));transform-origin:50% 88%}
.pet-select{margin-left:auto;margin-right:10px;background:white;border:1px solid var(--line);border-radius:12px;padding:11px;color:var(--ink);max-width:210px}.pet-select option:disabled{color:#9aa8b4}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.is-test-build .pet-scene{min-height:390px}
@media(max-width:720px){
  .is-test-build .header{padding:15px 18px}
  .is-test-build .home{padding:3px 14px 0}
  .is-test-build .welcome{margin:5px 0 12px}
  .is-test-build .game-layout{gap:12px}
  .is-test-build .pet-heading{padding:17px 18px 0}
  .is-test-build .pet-heading h2{font-size:27px}
  .is-test-build .pet-scene{min-height:410px;max-height:none}
  .is-test-build #pet-host{width:120%;max-width:none;margin-left:-10%;padding-top:38px}
  .is-test-build #pet-host wukong-game-pet,.is-test-build #pet-host>nezha-game-pet,.is-test-build #pet-host>yutu-game-pet,.is-test-build #pet-host>ragdoll-game-pet,.is-test-build #pet-host>corgi-game-pet,.is-test-build #pet-host>samoyed-game-pet,.is-test-build #pet-host>siamese-game-pet,.is-test-build #pet-host>bichon-game-pet{transform:scale(calc(var(--pet-zoom,1) + .25));transform-origin:50% 88%}
  .is-test-build .speech{top:15px;left:18px}
  .is-test-build .touch-hint{bottom:12px}
  .is-test-build .growth{padding:15px 18px 16px}
  .is-test-build .play-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:stretch}
  .is-test-build .feed-card,.is-test-build .practice-card{padding:14px 12px;border-radius:18px}
  .is-test-build .feed-card{grid-template-columns:28px 1fr;gap:4px 8px}
  .is-test-build .food-illustration{font-size:25px}
  .is-test-build .feed-card .eyebrow{font-size:8px;margin-bottom:3px}
  .is-test-build .feed-card h2{font-size:13px;line-height:1.35}
  .is-test-build .feed-card p{font-size:9px;margin:4px 0 3px;line-height:1.45}
  .is-test-build .feed-button{min-height:43px;margin-top:7px;padding:8px 9px;font-size:11px}
  .is-test-build .feed-button>span{font-size:10px}
  .is-test-build .feed-card>#feed-hint{font-size:8px;line-height:1.35}
  .is-test-build .practice-card>.eyebrow{margin-bottom:6px;font-size:8px}
  .is-test-build .practice-card h2{font-size:18px;line-height:1.35}
  .is-test-build .card-copy{margin:6px 0 9px;font-size:9px;line-height:1.55}
  .is-test-build .practice-meta{gap:4px;margin-bottom:8px;font-size:8px}
  .is-test-build .practice-meta span{padding:5px 5px}
  .is-test-build .practice-card .primary{min-height:43px;padding:9px 8px;font-size:11px;gap:4px}
  .is-test-build .small-note{display:none}
  .is-test-build .home footer{padding-top:15px}
}
/* Feeding feedback belongs to the pet, clear of the action buttons. */
.feed-notice{position:absolute;z-index:4;bottom:10px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);padding:7px 14px;border:1px solid var(--pet-sceneLine,#cfe2db);border-radius:999px;background:var(--pet-surface,#fff);color:var(--pet-primaryDark,#28765f);box-shadow:0 3px 12px #26485d14;font-size:12px;font-weight:600;line-height:1.5;text-align:center;pointer-events:none}
.feed-notice:not([hidden])~.touch-hint{visibility:hidden}
.toast{pointer-events:none}
/* First companion selection uses the same art and has its own scrollable dialog. */
#starter-dialog{width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:24px;border-radius:26px;overflow:auto}
#starter-dialog h2{margin:6px 0 10px;font-size:clamp(23px,4vw,32px)}
#starter-title:focus{outline:none}
#starter-dialog::backdrop{background:rgba(20,35,60,.68);backdrop-filter:blur(6px)}
.starter-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.starter-option{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:8px;border:2px solid #dbe4ee;border-radius:18px;background:#f8fbff;color:#29435f;cursor:pointer}
.starter-option img{width:100%;height:106px;object-fit:contain}.starter-option strong{font-size:16px}.starter-option span{font-size:12px;color:#718399}
.starter-option[aria-pressed="true"]{border-color:#398c75;background:#e9f7f0;box-shadow:0 0 0 2px #398c7522}.starter-option:focus-visible{outline:3px solid #398c75;outline-offset:2px}
.starter-confirm{position:sticky;bottom:-24px;background:#fff;padding:12px 0 16px;box-shadow:0 -12px 18px #ffffffea}.starter-confirm p{margin:0 0 10px;text-align:center;color:#667e91;font-size:13px;line-height:1.6}.starter-confirm button{width:100%}
@media(max-width:600px){#starter-dialog{padding:18px}.starter-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.starter-option img{height:60px}.starter-option{padding:6px}.starter-option strong{font-size:15px}.starter-confirm{bottom:-18px}.starter-confirm p{font-size:12px}}
