*{box-sizing:border-box}
:root{font-family:'Arial Rounded MT Bold','Malgun Gothic','Apple SD Gothic Neo',sans-serif;color:#5c3d2e;background:#f9f4e9;font-synthesis:none;--ink:#5c3d2e;--muted:#90745b;--paper:#fffef9;--line:#e6d7bd;--gold:#f1cc70}
body{margin:0}h1,h2,p{margin:0}p{line-height:1.7}a{color:inherit}button,a.button{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button,.button{min-height:48px;border:1px solid var(--line);border-radius:16px;background:var(--paper);padding:12px 20px;color:var(--ink);font-size:16px;font-weight:700;line-height:1.5;text-decoration:none}
.button{display:inline-flex;align-items:center;justify-content:center;text-align:center}button:hover,.button:hover{box-shadow:0 4px 12px #6d451318}button:active{filter:brightness(.97)}button:focus-visible,a:focus-visible{outline:3px solid #387e94;outline-offset:4px}.primary{color:#fff9e9;background:var(--ink);border-color:var(--ink)}.gold{background:var(--gold);border-color:#bb8c35}.ghost{background:transparent}img{display:block;max-width:100%;user-select:none;-webkit-user-drag:none}
.skip-link{position:fixed;top:8px;left:8px;z-index:20;transform:translateY(-150%);background:var(--paper);border-radius:12px;padding:12px 18px}.skip-link:focus{transform:none}
.topbar{max-width:1360px;margin:auto;padding:10px 36px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:inline-flex;align-items:center;max-width:100%;min-height:48px;text-decoration:none}.brand img{display:block;width:144px;max-width:100%;height:auto;object-fit:contain;mix-blend-mode:darken;filter:brightness(1.021)}.preview-label{flex-shrink:0;border-radius:20px;padding:7px 13px;color:#81581d;background:#f4e5be;font-size:13px;font-weight:700}
.home{max-width:1280px;margin:auto;padding:0 36px 36px}.hero{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:26px;min-height:385px;border-top:1px solid var(--line)}.hero>div{min-width:0}.hero-title{font-size:clamp(28px,4vw,48px);line-height:1.25;letter-spacing:-1px;margin-bottom:12px;word-break:keep-all}.hero-step{font-size:clamp(16px,1.7vw,18px);color:var(--muted);margin-bottom:18px;word-break:keep-all}.hero-description{font-size:15px;color:var(--muted);margin-bottom:18px;word-break:keep-all}.hero-art{max-height:370px;width:100%;object-fit:contain;mix-blend-mode:multiply}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero-actions button{max-width:100%;word-break:keep-all}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:25px 0 18px}.section-title h2{font-size:23px;line-height:1.4;letter-spacing:-.6px}.section-title p{font-size:13px;color:var(--muted);word-break:keep-all}.activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.activity-card{display:grid;grid-template-columns:minmax(0,1fr) 68px;align-items:center;gap:10px;text-align:left;padding:20px;min-width:0;min-height:156px;border-radius:20px;box-shadow:0 8px 28px #6342200a}.activity-card:hover{border-color:#c99e59}.activity-card.free{border-color:#c6ac6e;background:#fffdf3}.card-copy{min-width:0}.number{display:block;font-size:12px;color:var(--muted);font-weight:500;margin-bottom:9px}.activity-card strong{display:block;max-width:100%;font-size:19px;line-height:1.45;letter-spacing:-.5px;word-break:keep-all;overflow-wrap:anywhere}.activity-card img{width:68px;height:78px;object-fit:contain;mix-blend-mode:multiply}.access-label{display:inline-flex;align-items:center;gap:5px;margin-top:13px;padding:4px 9px;border-radius:8px;font-size:12px;font-weight:700;line-height:1.5;color:#53714a;background:#edf3e5}.locked .access-label{color:#7c6a54;background:#f1eadc}.home-foot{margin-top:28px;text-align:center;color:var(--muted);font-size:13px}.home-foot p+p{margin-top:6px}.home-foot a{display:inline-block;min-height:48px;padding:10px 4px;text-underline-offset:4px}
.lesson{max-width:1240px;margin:auto;padding:0 30px 28px}.lesson-top{display:flex;align-items:center;gap:22px;padding:10px 0 18px}.lesson-title{min-width:0}.eyebrow{font-size:12px;font-weight:700;letter-spacing:1px;color:#956022;margin-bottom:7px}.lesson-title h1{font-size:clamp(25px,3vw,36px);line-height:1.35;letter-spacing:-1px;word-break:keep-all;overflow-wrap:anywhere}.paper{background:var(--paper);border:1px solid var(--line);border-radius:25px;padding:25px 30px;box-shadow:0 8px 28px #6342200a}.practice-heading{margin-bottom:24px}.activity-instruction{font-size:18px}.activity-detail{font-size:15px;color:var(--muted);margin-top:5px;word-break:keep-all}.board{position:relative;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));max-width:780px;margin:auto;height:190px;isolation:isolate}.board-row+.board-row{margin-top:22px}.white-key{min-width:0;min-height:48px;height:100%;padding:0;border:2px solid #6a5847;border-radius:0 0 12px 12px;background:linear-gradient(#fffefa,#fffdf5);box-shadow:inset 0 -8px 0 #eee9dd}.black-key{position:absolute;top:0;z-index:2;min-width:48px;width:8.6%;height:60%;min-height:48px;padding:0;transform:translateX(-50%);border:2px solid #3e352e;border-radius:0 0 9px 9px;background:linear-gradient(#4b4540,#292622);box-shadow:inset 0 -7px 0 #1e1a17}.black-key[data-position="1"]{left:calc(100% / 7)}.black-key[data-position="2"]{left:calc(200% / 7)}.black-key[data-position="4"]{left:calc(400% / 7)}.black-key[data-position="5"]{left:calc(500% / 7)}.black-key[data-position="6"]{left:calc(600% / 7)}.black-key.unpainted{background:#dedbd3;border-color:#797168;box-shadow:inset 0 -6px 0 #cbc6bd}.black-key.answer-correct{border-color:#34824c;box-shadow:inset 0 0 0 3px #67b77a,0 0 0 3px #77bd8b55,0 0 17px #5cae7370}.white-key.answer-wrong{border-color:#b73833;box-shadow:inset 0 0 0 3px #e7756b,0 0 0 3px #e8786a66,0 0 17px #d75d5670}.board button:hover{filter:brightness(1.05)}.board button:focus-visible{outline:3px solid #387e94;outline-offset:-6px}.progress{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 18px;margin-top:26px;font-size:14px;color:var(--muted)}.progress strong{margin-left:7px;color:var(--ink)}progress{width:180px;max-width:100%;height:12px;accent-color:#6d945d}.feedback{border-radius:15px;background:#f6efdf;padding:13px 18px;margin-top:20px;min-height:52px;font-size:16px;line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}.feedback.success{background:#e4f4dc;color:#28683c;border:1px solid #a3c895}.feedback.retry{background:#fff0ec;color:#a4362e;border:1px solid #e7a59c}.member-nudge{margin-top:15px;text-align:center;font-size:16px;color:#53714a;word-break:keep-all}.lesson-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:20px}.lesson-bottom button{max-width:100%;font-size:15px;word-break:keep-all}.memory-note{margin-top:18px;color:var(--muted);font-size:12px;text-align:center}.next-cue{animation:next-glow 1.2s ease-in-out infinite;color:#4a2d16;border-color:#704416;box-shadow:0 0 0 2px #704416,0 0 0 5px #f0bd4b66}
@keyframes next-glow{0%,100%{background:#efbd47;box-shadow:0 0 0 2px #704416,0 0 0 5px #f0bd4b66}50%{background:#fffef5;box-shadow:0 0 0 2px #704416,0 0 0 9px #f0bd4b88}}
dialog{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:25px;border:1px solid #d7c8b2;border-radius:24px;background:var(--paper);color:var(--ink);box-shadow:0 20px 80px #3b291a40}dialog::backdrop{background:#3b291a66}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.dialog-label{font-size:12px;color:var(--muted);word-break:keep-all}.dialog-close{flex-shrink:0;font-size:14px;padding:10px 14px}dialog h2{font-size:27px;line-height:1.4;letter-spacing:-.8px;word-break:keep-all;overflow-wrap:anywhere}#member-description{margin-top:16px;font-size:16px;word-break:keep-all;overflow-wrap:anywhere}.dialog-actions{display:grid;gap:11px;margin-top:23px}.dialog-actions .button,.dialog-actions button{width:100%;word-break:keep-all;overflow-wrap:anywhere}.answer-flash{position:fixed;inset:0;z-index:100;display:grid;place-items:center;pointer-events:none}.answer-flash[hidden]{display:none}.result-symbol{display:grid;place-items:center;width:clamp(180px,24vw,240px);height:clamp(180px,24vw,240px);border-radius:50%;background:#fffef9ee;box-shadow:0 10px 40px #5c3d2e26;font-size:clamp(200px,26vw,240px);line-height:1;font-weight:800;animation:answer-pop 650ms ease-out both}.answer-flash.success{color:#2f8446}.answer-flash.retry{color:#c4483f}@keyframes answer-pop{0%{opacity:0;transform:scale(.9)}15%,72%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.noscript{padding:30px;text-align:center}
@media(max-width:1000px){.topbar{padding:10px 24px}.home{padding:0 24px 28px}.hero{min-height:330px}.activity-card{grid-template-columns:minmax(0,1fr) 55px;padding:18px}.activity-card strong{font-size:17px}.activity-card img{width:55px}.lesson{padding:0 20px 25px}.paper{padding:22px}.board{height:165px}}
@media(max-width:700px){.topbar{padding:10px 15px;gap:10px}.brand img{width:114px}.preview-label{padding:6px 10px;font-size:12px}.home{padding:0 16px 25px}.hero{grid-template-columns:minmax(0,1fr) minmax(0,.7fr);gap:8px;min-height:300px}.hero-title{font-size:28px}.hero-step{font-size:16px;line-height:1.6;margin-bottom:12px}.hero-description{font-size:14px;margin-bottom:15px}.hero-actions button{font-size:14px;padding:11px 13px}.hero-art{max-height:230px}.section-title{align-items:flex-start;flex-direction:column;gap:7px}.section-title h2{font-size:21px}.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.activity-card{grid-template-columns:minmax(0,1fr);padding:15px;min-height:157px}.activity-card img{display:none}.activity-card strong{font-size:17px}.access-label{font-size:11px;margin-top:12px}.lesson{padding:0 12px 25px}.lesson-top{align-items:flex-start;gap:12px;flex-wrap:wrap}.lesson-top>button{font-size:14px;padding:10px 13px}.lesson-title{flex-basis:100%}.lesson-title h1{font-size:25px}.paper{padding:18px 10px;border-radius:20px}.activity-instruction{font-size:17px}.activity-detail{font-size:14px}.board{height:175px}.lesson-bottom{gap:14px}.lesson-bottom button{font-size:14px;padding:12px 15px}.feedback{font-size:15px;padding:12px 14px}.member-nudge{font-size:15px}.home-foot{font-size:12px}dialog{padding:20px}dialog h2{font-size:24px}.dialog-label{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.next-cue{background:#fff3b2;box-shadow:0 0 0 2px #704416,0 0 0 7px #f0bd4b88}}
