:root{font-family:ui-rounded,PingFang SC,Microsoft Yahei,system-ui,sans-serif;color:#293c31;background:#f8f5eb;font-synthesis:none;--green:#3d6247;--lime:#dfecb8;--muted:#788275;--line:#e7e6d9;--orange:#d77a43}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d67b40;outline-offset:4px}a{color:var(--green)}button{border:0}.shell{max-width:1380px;margin:auto;padding:0 48px}header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 0;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none}.brand-icon{font-family:Georgia,serif;font-size:34px;background:var(--lime);width:49px;height:49px;display:grid;place-items:center;border-radius:15px}.brand-name{font-size:19px;font-weight:800;letter-spacing:.6px}.brand-sub{display:block;font-size:10px;letter-spacing:2px;color:#83917a;margin-top:4px}nav{display:flex;gap:9px;align-items:center}.nav-btn{background:transparent;color:#7b857b;padding:12px 16px;border-radius:12px;font-size:14px}.nav-btn.active{background:#e8eddc;color:var(--green);font-weight:700}.nav-btn .badge{background:#fff;font-size:11px;border-radius:20px;padding:2px 6px;margin-left:5px}.parent-nav{margin-left:22px;border:1px solid #dddccd}.hero{display:grid;grid-template-columns:1.5fr 1fr;gap:30px;padding:48px 0 34px;align-items:center}.eyebrow{font-size:11px;letter-spacing:2.5px;color:#87966f;font-weight:700}.hero h1{font-size:clamp(30px,3.4vw,47px);line-height:1.35;font-weight:800;letter-spacing:1px;margin:14px 0}.hero h1 span{color:#69894c}.hero p{color:var(--muted);font-size:15px;line-height:1.9;margin:0}.hero-art{display:flex;justify-content:center;align-items:center;height:200px;position:relative}.art-circle{width:182px;height:182px;border-radius:50%;background:#e9edda;position:absolute}.art-horse{font-family:Georgia,serif;font-size:150px;line-height:1;color:#3b5941;z-index:1;transform:rotate(-8deg);text-shadow:4px 6px 0 #d8dfc8}.art-spark{font-size:32px;color:#b8c88f;position:absolute;right:17%;top:9px}.art-tag{position:absolute;bottom:8px;right:7%;background:#fffef9;border:1px solid #e4e7d8;padding:10px 17px;border-radius:13px;box-shadow:0 6px 20px #273c3108;transform:rotate(-5deg);font-size:12px;color:#738163;z-index:2}.welcome-bar{display:flex;align-items:center;justify-content:space-between;background:#eaf0db;border:1px solid #e0e7cd;border-radius:18px;padding:18px 24px;margin:8px 0 34px;gap:15px}.welcome-copy{display:flex;gap:15px;align-items:center}.welcome-symbol{font-size:28px}.welcome-copy strong{display:block;font-size:15px}.welcome-copy small{display:block;color:#859071;margin-top:5px;font-size:12px}.primary{background:var(--green);color:#fffdf5;padding:14px 23px;border-radius:12px;font-weight:700;font-size:14px;min-height:48px}.primary:hover{background:#2c4e36}.secondary{background:#fffdf6;border:1px solid #dddfd0;padding:12px 18px;border-radius:12px;color:var(--green);min-height:46px}.text-btn{background:none;padding:10px 0;color:var(--muted);font-size:13px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:26px 0 20px}.section-head h2{font-size:20px;margin:0}.section-head p{font-size:12px;color:var(--muted);margin:7px 0 0}.section-note{font-size:12px;color:#8d967e}.chapter-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.chapter-card{background:#fffef9;border:1px solid var(--line);border-radius:19px;overflow:hidden;display:flex;flex-direction:column;min-height:244px;transition:transform .16s,box-shadow .16s}.chapter-card:hover{transform:translateY(-3px);box-shadow:0 10px 28px #34472f09}.card-art{height:88px;position:relative;display:flex;align-items:center;justify-content:center;background:#eaf0dc;font-size:40px}.chapter-card:nth-child(4n+2) .card-art{background:#f5e9d8}.chapter-card:nth-child(4n+3) .card-art{background:#e5edee}.chapter-card:nth-child(4n+4) .card-art{background:#ece7f0}.chapter-num{position:absolute;left:16px;top:15px;font-size:10px;letter-spacing:1.8px;color:#869278}.chapter-card button.card-link{padding:0;text-align:left;background:none;color:inherit;display:flex;flex-direction:column;flex:1}.card-copy{padding:18px 20px 12px;flex:1}.card-copy h3{font-size:17px;margin:0 0 7px}.card-copy p{font-size:12px;color:#93998a;margin:0}.card-bottom{display:flex;justify-content:space-between;align-items:center;padding:0 20px 18px;font-size:11px;color:#879277;width:100%;gap:5px}.dots{display:flex;gap:4px}.dots i{height:5px;width:13px;background:#e9eddf;border-radius:4px}.dots i.done{background:#91ad67}.card-arrow{font-size:19px}.empty-tag{font-size:10px;color:#939988}.tip-strip{margin:34px 0 28px;padding:18px 22px;border:1px dashed #d6ddc8;border-radius:15px;display:flex;gap:13px;font-size:13px;color:#788366;line-height:1.7}.tip-strip strong{color:#546646}footer{border-top:1px solid var(--line);padding:23px 0 28px;color:#929a88;font-size:11px;display:flex;justify-content:space-between;gap:20px;line-height:1.8}footer a{color:#78836b}.page-intro{padding:32px 0}.page-intro h1{font-size:29px;margin:12px 0}.page-intro p{color:var(--muted);line-height:1.8;font-size:14px}.lesson-layout{display:grid;grid-template-columns:1fr .9fr;gap:26px;margin-bottom:36px}.story-card,.panel{background:#fffef9;border:1px solid var(--line);border-radius:22px;padding:28px}.story-icon{font-size:64px;display:block;margin:6px 0 20px}.story-card h2{font-size:25px;margin:0 0 18px}.story-text{font-size:19px;line-height:2;color:#586951}.motto{background:#edf2df;border-radius:13px;padding:15px 18px;margin:22px 0;color:#4c6b42;font-size:16px;font-weight:700}.lesson-actions{display:flex;gap:10px;flex-wrap:wrap}.exercise-list{display:grid;gap:10px}.exercise-item{border:1px solid var(--line);background:#f9f8f0;border-radius:12px;padding:16px;display:flex;justify-content:space-between;align-items:center;text-align:left;color:var(--green);gap:10px}.exercise-item small{display:block;font-size:11px;color:#919987;margin-top:4px}.stars{color:#bf9451;letter-spacing:2px;font-size:14px}.panel h3{margin-top:0}.panel p{line-height:1.8;color:var(--muted);font-size:14px}.play-top{display:flex;align-items:center;justify-content:space-between;padding:22px 0}.play-top h1{font-size:18px;margin:0}.play-top small{display:block;color:#8a947c;font-size:11px;margin-top:5px}.play-layout{display:grid;grid-template-columns:minmax(300px,590px) minmax(280px,1fr);gap:34px;align-items:start;margin-bottom:36px}.board-wrap{background:#fffdf5;border:1px solid #e5e2cf;border-radius:20px;padding:15px;box-shadow:0 8px 24px #31433108}.chessboard{display:grid;grid-template-columns:repeat(8,1fr);width:100%;aspect-ratio:1;overflow:hidden;border-radius:9px}.square{padding:0;aspect-ratio:1;display:flex;align-items:center;justify-content:center;position:relative;min-width:0;border-radius:0}.square.light{background:#eeeed4}.square.dark{background:#8da477}.square.selected{background:#e2cb69}.square.marked{box-shadow:inset 0 0 0 5px #e4a94a}.square.last:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:#f4df7c55}.piece{font-family:Georgia,Times New Roman,Apple Symbols,serif;font-size:clamp(25px,4.5vw,65px);line-height:1;position:relative;z-index:1;pointer-events:none}.white-piece{color:#fffef1;-webkit-text-stroke:1.4px #34432d;text-shadow:0 2px 2px #253b2520}.black-piece{color:#293e31;text-shadow:0 1px 1px #fff9}.square small{position:absolute;font-size:10px;z-index:2;font-weight:600;line-height:1}.rank{left:4px;top:4px}.file{right:4px;bottom:3px}.light small{color:#6b805a}.dark small{color:#f5f5e4}.move-dot{width:25%;height:25%;border-radius:50%;background:#31482d45;position:absolute}.capture-dot{position:absolute;top:4px;right:4px;bottom:4px;left:4px;border:5px solid #31482d45;border-radius:50%}.board-caption{display:flex;justify-content:space-between;padding:13px 3px 0;color:#8d947e;font-size:11px}.coach{padding:28px;background:#fffef9;border:1px solid var(--line);border-radius:20px}.step-label{font-size:11px;letter-spacing:1px;color:#9a9f87}.coach h2{font-size:25px;line-height:1.55;margin:17px 0}.coach .instruction{font-size:17px;line-height:1.9;color:#6a795f;min-height:70px}.coach-mascot{display:flex;align-items:center;gap:12px;margin-bottom:24px}.mini-horse{font-family:Georgia,serif;font-size:33px;width:53px;height:53px;border-radius:50%;display:grid;place-items:center;background:#eaf0da}.coach-mascot strong{font-size:14px}.coach-mascot small{display:block;color:#9aa18b;font-size:11px;margin-top:4px}.feedback{border-radius:12px;padding:14px 16px;background:#eef2df;margin:20px 0;line-height:1.8;min-height:56px;font-size:14px}.feedback.retry{background:#fcf0dd;color:#9a6c37}.hint-box{background:#f5f2e4;border-radius:12px;padding:15px;margin:15px 0;line-height:1.8;font-size:14px}.coach-actions{display:flex;flex-wrap:wrap;gap:10px}.little-note{font-size:11px;color:#9aa18a;line-height:1.8;margin-top:18px}.win-stars{font-size:46px;letter-spacing:10px;color:#d2a24b;margin:18px 0}.parent-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:30px}.panel label{display:block;font-size:13px;color:#6a795f;margin:16px 0 7px}input,textarea,select{border:1px solid #dce1ce;border-radius:10px;background:#fffef9;color:#354b35;padding:12px;max-width:100%;width:100%;font-size:14px}textarea{resize:vertical;line-height:1.7;min-height:110px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.notice{font-size:13px;line-height:1.8;color:#78886a;background:#f0f3e6;padding:15px;border-radius:12px;margin:16px 0}.error-notice{background:#fff0df;color:#8f6334}.file-control{padding:14px;background:#f5f5eb;border-radius:12px;margin:12px 0}.file-control input{padding:5px;font-size:12px}.editor-layout{display:grid;grid-template-columns:minmax(300px,520px) 1fr;gap:25px}.piece-palette{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin:14px 0}.palette-piece{font-family:Georgia,serif;font-size:28px;border:1px solid #dce1d0;background:#fffef8;border-radius:8px;min-height:44px;color:#34482f}.palette-piece.chosen{background:#dfeaaf;outline:2px solid #78965b}.editor-controls{display:flex;gap:8px;margin:10px 0;flex-wrap:wrap}.move-list{font-size:14px;padding:14px;background:#f4f4e8;border-radius:10px;line-height:1.9;min-height:52px;word-break:break-word}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#21372870;display:grid;place-items:center;z-index:10;padding:20px}.dialog{background:#fffef5;border-radius:22px;padding:28px;max-width:460px;width:100%;box-shadow:0 20px 100px #10281533}.dialog h2{font-size:22px}.promotion-options{display:flex;gap:12px;margin:25px 0}.promotion-options button{background:#eaf0da;border-radius:12px;min-width:64px;min-height:68px;font-size:42px;font-family:Georgia}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%);background:#34563c;color:#fff;padding:15px 24px;border-radius:13px;box-shadow:0 4px 24px #0002;z-index:20;font-size:14px;max-width:90vw}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.review-empty{text-align:center;padding:50px 25px}.review-empty .story-icon{font-size:70px}.book-label{font-size:11px;border:1px solid #dfdfcd;border-radius:6px;padding:3px 6px;color:#879176}.simple-links{display:flex;gap:15px;flex-wrap:wrap}@media(min-width:1400px){.piece{font-size:64px}}@media(max-width:1050px){.shell{padding:0 25px}.chapter-grid{grid-template-columns:repeat(3,1fr)}.hero-art{height:180px}.play-layout{gap:20px;grid-template-columns:1.2fr 1fr}.coach{padding:22px}.coach h2{font-size:21px}.nav-btn{padding:10px}.parent-nav{margin-left:0}.editor-layout{grid-template-columns:1fr 1fr}.piece{font-size:clamp(25px,5vw,60px)}}@media(max-width:760px){.shell{padding:0 18px}header{padding:17px 0;flex-wrap:wrap;gap:16px}.brand-name{font-size:17px}.brand-icon{width:42px;height:42px;font-size:30px}nav{justify-content:space-between;width:100%;gap:4px}.nav-btn{font-size:12px;padding:10px 12px}.hero{padding:30px 0 20px;grid-template-columns:1fr .5fr;gap:8px}.hero h1{font-size:29px}.hero p{font-size:12px}.hero-art{height:150px}.art-circle{width:110px;height:110px}.art-horse{font-size:105px}.art-tag{font-size:9px;padding:8px;right:0;bottom:0}.art-spark{right:0;font-size:22px}.welcome-bar{padding:16px;margin:12px 0 27px;align-items:start}.welcome-copy{gap:8px}.welcome-copy strong{font-size:13px}.welcome-copy small{font-size:10px;line-height:1.6}.welcome-bar .primary{font-size:12px;padding:12px 14px;white-space:nowrap}.chapter-grid{grid-template-columns:repeat(2,1fr);gap:12px}.card-art{height:88px;font-size:34px;padding-top:18px}.chapter-num{top:10px;left:10px;font-size:8px}.chapter-card{min-height:224px}.card-copy{padding:15px 14px}.card-copy h3{font-size:16px}.card-copy p{font-size:11px}.card-bottom{padding:0 14px 15px;font-size:10px}.dots i{width:9px}.section-note{font-size:10px}.section-head h2{font-size:18px}.tip-strip{font-size:11px;padding:15px}footer{flex-direction:column;gap:7px}.lesson-layout,.parent-grid,.editor-layout,.play-layout{grid-template-columns:1fr}.play-layout{gap:16px}.board-wrap{padding:10px;border-radius:15px}.piece{font-size:clamp(27px,9.4vw,62px)}.coach{padding:23px}.coach .instruction{min-height:0}.coach-mascot{margin-bottom:15px}.page-intro{padding:23px 0}.page-intro h1{font-size:26px}.story-text{font-size:18px}.story-card,.panel{padding:23px}.section-head{gap:8px}.play-top h1{font-size:15px}.form-row{grid-template-columns:1fr}.card-arrow{display:none}.rank,.file{font-size:9px!important}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}.chapter-external{display:flex;align-items:center;justify-content:space-between;margin:0 18px 15px;padding:11px 3px 0;border-top:1px solid var(--line);font-size:12px;text-decoration:none;min-height:40px;color:var(--green)}.chapter-external:hover{text-decoration:underline}.lichess-practice{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.lichess-practice h3{font-size:16px;margin:0 0 10px}.lichess-practice p{font-size:14px;line-height:1.8;color:#6a795f;margin:0 0 14px}.lichess-links{display:flex;gap:10px;flex-wrap:wrap}.lichess-links a{display:inline-flex;align-items:center;text-decoration:none}.lichess-links a:hover{background:#edf2df}.lichess-practice small{display:block;font-size:11px;line-height:1.8;color:#879176;margin-top:14px}
