:root{font-family:'PingFang SC','Microsoft YaHei',system-ui,sans-serif;color:#223f42;background:#eef6f3}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button{cursor:pointer;background:#e8f1ee;border:1px solid #c8dbd5;border-radius:13px;padding:12px 17px;font-weight:700;color:#254b46;min-height:46px}button:hover{background:#d7e9e2}button:disabled{opacity:.55;cursor:default}button:focus-visible,input:focus,select:focus{outline:3px solid #e6a33d;outline-offset:3px}.primary,button.active{background:#ba4537;color:white;border-color:#ba4537}.primary:hover{background:#9e382e}header{padding:18px 5%;background:white;border-bottom:1px solid #d8e5df;display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}.brand{font-size:23px;font-weight:900;text-decoration:none;color:#214b43}.brand small{display:block;font-size:12px;letter-spacing:2px;padding-left:35px;color:#6a8279}.tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap}select,input[type=time]{padding:10px;border:1px solid #b6cec3;border-radius:10px;background:white;max-width:100%}main{max-width:1120px;padding:25px 22px;margin:auto}.hero{display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:20px;margin:12px 0 22px}h1{font-size:clamp(30px,5vw,46px);margin:8px 0;letter-spacing:1px}h2{font-size:25px;margin-top:8px}p{line-height:1.8}.eyebrow{font-size:14px;color:#9b4535;font-weight:800;letter-spacing:2px}.english,.small{font-size:14px;color:#607970}#wallScene svg{width:100%;height:auto}nav,.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}nav{margin:22px 0}.card{background:white;border:1px solid #d3e3da;border-radius:22px;padding:25px;margin-bottom:18px;box-shadow:0 8px 25px #254b4605}.daygrid{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;margin:22px 0}.day{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:white;padding:15px 12px;min-height:116px}.day strong{font-size:23px}.day small{font-size:13px;font-weight:400;margin-top:7px}.day.done{background:#dcf1df;border-color:#78b18b}.day.current{box-shadow:0 0 0 3px #dc9d4a}.pill{display:inline-block;padding:7px 13px;background:#dfece6;border-radius:20px;font-size:14px;margin:4px}.notice{background:#fff3d9;padding:15px;border-radius:12px;line-height:1.7}.study{text-align:center}.equation{font-size:clamp(38px,8vw,62px);font-weight:900;margin:12px}.chant{font-size:clamp(28px,6vw,42px);font-weight:850;letter-spacing:4px;color:#b23d36;margin:15px 0}.dots{display:grid;gap:5px;width:max-content;margin:20px auto}.dot{width:16px;height:16px;border-radius:50%;background:#3b8d78}.answer{font-size:32px;width:140px;padding:12px;text-align:center;border:2px solid #8ab5a3;border-radius:14px}.feedback{padding:15px;margin-top:20px;border-radius:12px;background:#eef5f1;line-height:1.8}.success{background:#dcf1df;color:#205636}.toolbar{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}.clock{font-variant-numeric:tabular-nums;font-weight:bold}.phasebar{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.phasebar span{font-size:13px;padding:7px;border-radius:8px;background:#edf3f0}.phasebar .active{background:#ba4537;color:white}.tablewrap{overflow:auto}table{border-spacing:4px;min-width:530px;margin:auto}th{padding:7px}td button{padding:9px;min-width:44px;font-size:18px}.factlist{display:flex;gap:10px;flex-wrap:wrap}.parent{margin-top:25px;font-size:14px;line-height:1.8}.parent summary{font-size:16px;cursor:pointer;font-weight:bold}progress{accent-color:#3b8d78;width:100%;height:12px}.route{font-size:14px;color:#607970}.stat{font-size:38px;font-weight:bold}.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}@media(max-width:750px){header{padding:15px}.hero{grid-template-columns:1fr;gap:0}#wallScene{max-width:460px;margin:auto}.daygrid{grid-template-columns:repeat(3,1fr)}main{padding:15px}.card{padding:20px}.two{grid-template-columns:1fr}nav button{flex:1;padding:10px 8px}.tools{font-size:14px}.dot{width:14px;height:14px}.chant{letter-spacing:2px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

button small{display:block;font-size:13px;line-height:1.5;font-weight:500;margin-top:3px}h2 .english{display:block;margin-top:6px}.day small[lang=en]{color:#486a5d}.phasebar span{line-height:1.5}

.themed-row{background:var(--row-bg);border-left:6px solid var(--row-ink);border-radius:16px;padding:18px;margin:16px 0;color:var(--row-ink)}.row-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.row-heading h3{font-size:23px;margin:0}.row-heading p{margin:5px 0;font-size:14px}.theme-number{display:inline-grid;place-items:center;width:36px;height:36px;background:var(--row-ink);color:white;border-radius:50%;margin-right:5px}.row-listen{background:white;color:var(--row-ink);border:1px solid var(--row-ink)}.chant-lines{list-style:none;padding:0;margin:12px 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:0}.chant-line{padding:12px 14px;border-top:1px solid color-mix(in srgb,var(--row-ink) 20%,transparent);display:flex;flex-direction:column;gap:5px}.chant-line>span:first-child{font-size:23px;font-weight:750;letter-spacing:2px}.fact-number{font-size:16px;color:#354c48}.audio-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:14px}.reading-row{outline:3px solid var(--row-ink);outline-offset:3px}.daily-theme{padding:8px 12px;border-radius:10px;font-size:15px}.chant-reference h2 .english{display:block;font-weight:400;margin-top:7px}@media(max-width:480px){.themed-row{padding:14px 10px}.chant-lines{grid-template-columns:repeat(2,minmax(0,1fr))}.chant-line{padding:12px 7px}.chant-line>span:first-child{font-size:20px;letter-spacing:1px}.row-heading h3{font-size:21px}.row-listen{padding:9px 12px}}

.playful-table{border-spacing:7px;min-width:660px;width:100%}.playful-table .number-row th{color:var(--tile-ink);font-size:22px;min-width:40px}.row-mascot{display:block;font-size:20px}.playful-table td button{position:relative;isolation:isolate;overflow:hidden;min-width:55px;width:100%;height:70px;border:2px solid color-mix(in srgb,var(--tile-ink) 35%,white);background:var(--tile-bg);color:var(--tile-ink);border-radius:15px;box-shadow:0 3px 0 color-mix(in srgb,var(--tile-ink) 20%,white);transition:transform .15s,box-shadow .15s}.tile-decoration{position:absolute;right:-2px;bottom:-4px;font-size:37px;opacity:.19;z-index:-1;transform:rotate(-12deg)}.tile-product{display:inline-block;position:relative;font-size:24px;font-weight:900;text-shadow:0 1px 1px white}.playful-table .row-9 td button{background-color:#ffeedc;background-image:linear-gradient(#fff7e9aa,#fff7e9bb),url('china-adventure.webp');background-size:auto,auto 100%;background-position:center,var(--scene-x) center;color:#742b30;border-color:#d8a561}.playful-table .row-9 .tile-decoration{opacity:.27;font-size:32px}.playful-table .row-9 .tile-product{background:#fffaf0e8;border-radius:8px;padding:2px 6px}.playful-table td button:hover{transform:translateY(-3px);filter:brightness(1.02)}.playful-table td button.tile-selected{outline:3px solid var(--tile-ink);outline-offset:2px;transform:translateY(-3px);box-shadow:0 5px 0 color-mix(in srgb,var(--tile-ink) 25%,white)}@media(max-width:480px){.playful-table{border-spacing:5px;min-width:625px}.playful-table td button{height:64px;min-width:53px}.tile-product{font-size:23px}}@media(prefers-reduced-motion:reduce){.playful-table td button{transition:none}}

/* Compact equation board: selection never changes its position. */
.tap-card h2{margin-bottom:8px}.tap-card h2 .english{font-weight:400}.tap-help{font-size:14px;margin:0 0 12px}.tap-help .english{margin-left:8px}.compact-answer{height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#f1f5fa;border:1px solid #c9d5e2;border-radius:12px;margin-bottom:10px;overflow:hidden;padding:6px;text-align:center;color:#293e56}.compact-answer strong{font-size:25px;line-height:1.2}.compact-answer span{font-size:19px;line-height:1.3}.compact-answer span:not([lang]){font-size:13px}.equation-table{table-layout:fixed;min-width:0;width:100%;border-spacing:5px;margin:0}.equation-table caption{font-size:12px;padding:5px}.equation-table th:first-child{width:24px}.equation-table th{padding:3px;font-size:15px}.equation-table .number-row th{min-width:0;font-size:17px}.playful-table.equation-table td button,.playful-table.equation-table .row-9 td button{min-width:0;width:100%;height:62px;padding:0;border-radius:10px;background-color:var(--tile-bg);background-image:linear-gradient(135deg,#ffffff55,var(--tile-bg)),url('china-adventure.webp');background-size:auto,360px auto;background-position:center,var(--scene-x) var(--scene-y);border:1px solid color-mix(in srgb,var(--tile-ink) 45%,white);color:#302c36;box-shadow:0 2px 0 color-mix(in srgb,var(--tile-ink) 18%,white);transform:none}.tile-expression{display:inline-block;font-size:20px;font-weight:850;background:#fffdf2e8;border-radius:5px;padding:2px 3px;white-space:nowrap;line-height:1.3}.playful-table.equation-table td button:hover{transform:none;filter:brightness(1.04)}.playful-table.equation-table td button.tile-selected{outline:3px solid var(--tile-ink);outline-offset:0;transform:none}.playful-table.equation-table td button:focus-visible{outline:3px solid #212f46;outline-offset:0}@media(max-width:600px){.tap-card{padding:12px 6px}.tap-card h2,.tap-help{padding-left:5px;padding-right:5px}.tap-card h2{font-size:22px}.tap-card h2 .english{display:block;font-size:13px}.compact-answer{height:68px;margin:8px 3px}.compact-answer strong{font-size:23px}.compact-answer span{font-size:19px}.equation-table{min-width:0;border-spacing:2px}.equation-table th:first-child{width:18px}.equation-table th{padding:2px;font-size:12px}.equation-table .number-row th{font-size:14px}.playful-table.equation-table td button,.playful-table.equation-table .row-9 td button{height:48px;border-radius:6px;background-size:auto,220px auto}.tile-expression{font-size:clamp(11px,3.1vw,16px);padding:2px 0;background:#fffdf2e6;letter-spacing:-.4px}.tap-help .english{display:block;margin-left:0}}

/* Three quiet Chinese landscape palettes; solid surfaces protect readability. */
body{--page-wash:#edf3f8;--page-accent:#355c75;background-color:var(--page-wash);background-image:linear-gradient(180deg,#f7fbff8c 0%,#edf3f8dd 500px,var(--page-wash) 950px),url('china-adventure.webp');background-size:100% 1050px,auto 680px;background-position:top center,top center;background-repeat:no-repeat;color:#263e49}
body[data-view="table"]{--page-wash:#fbf3e8;--page-accent:#955337;background-image:linear-gradient(180deg,#fff9ee99 0%,#fbf3e8df 500px,var(--page-wash) 950px),url('china-adventure.webp');background-position:top center,65% top}
body[data-view="review"]{--page-wash:#f1edf8;--page-accent:#6a4b89;background-image:linear-gradient(180deg,#f8f1ff99 0%,#f1edf8df 500px,var(--page-wash) 950px),url('china-adventure.webp');background-position:top center,25% top}
body[data-view="session"]{--page-wash:#f8f1e7;--page-accent:#92503a}
header{background:#ffffffed;backdrop-filter:blur(8px)}.hero{background:#ffffffdc;border:1px solid #ffffff;border-radius:24px;padding:22px;box-shadow:0 10px 35px #263e4908}.card{background:#fffffffa;border-color:#d9dfe5}.parent{background:#fffffff0;border:1px solid #dee1e7;padding:17px;border-radius:16px}nav{gap:12px}nav button{flex:1;min-height:78px;border-radius:17px;border:1px solid #bdcdd8;box-shadow:0 4px 12px #23384b0b;font-size:18px;background-size:cover;background-repeat:no-repeat;color:#22465a}#homeTab{background-image:linear-gradient(110deg,#e4f3f9ed,#dcebf8bf),url('china-adventure.webp');background-position:center,15% 65%;border-color:#9fbdcb;color:#234f65}#tableTab{background-image:linear-gradient(110deg,#fff2d9ed,#ffe4c4bf),url('china-adventure.webp');background-position:center,85% 20%;border-color:#d8b780;color:#85502d}#reviewTab{background-image:linear-gradient(110deg,#f3e9fbed,#e6d8f6bf),url('china-adventure.webp');background-position:center,55% 35%;border-color:#c4addb;color:#64427e}nav button.active{outline:3px solid var(--page-accent);outline-offset:1px;border-color:var(--page-accent);box-shadow:0 5px 14px #263e4915}nav button:hover{filter:brightness(1.03)}@media(max-width:600px){.hero{padding:16px;border-radius:18px}nav{gap:7px}nav button{min-height:72px;padding:10px 5px;font-size:15px}nav button small{font-size:12px}body{background-size:100% 900px,auto 540px}}
