:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#262448;background:#f7f5ff;font-size:16px;--violet:#6e50d8;--muted:#706d89}*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer;border:0;touch-action:manipulation;color:inherit}button:focus-visible{outline:3px solid #4338ca;outline-offset:3px}button:disabled{cursor:default;opacity:.55}#app{max-width:750px;margin:auto;min-height:100dvh;padding: max(16px,env(safe-area-inset-top)) 18px max(96px,calc(82px + env(safe-area-inset-bottom)))}header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.logo{font-weight:950;font-size:24px;letter-spacing:-1.5px;color:#583cb9}.logo span{color:#f18a51}.pill{font-size:13px;border-radius:99px;background:#fff;padding:9px 13px;font-weight:800;box-shadow:0 3px 12px #352b8510}.hero{background:linear-gradient(125deg,#7458df,#9b7bea);color:white;border-radius:26px;position:relative;overflow:hidden;padding:24px;display:flex;gap:10px;align-items:center;min-height:183px;box-shadow:0 12px 30px #6e50d82a}.hero h1{font-size:26px;line-height:1.13;letter-spacing:-.8px;margin:5px 0 9px}.hero p{font-size:14px;color:#f2eaff;margin:0 0 15px;line-height:1.4}.hero>div:first-child{flex:1;z-index:1}.mascot{width:112px;height:130px;flex:none;filter:drop-shadow(0 7px 0 #4e35a22e)}.primary{background:var(--violet);color:white;border-radius:17px;padding:14px 19px;font-weight:850;box-shadow:0 5px 0 #5035b2;min-height:50px}.primary:active{transform:translateY(3px);box-shadow:0 2px 0 #5035b2}.hero .primary{background:white;color:#5b40c3;box-shadow:0 4px 0 #d1c2ff;padding:11px 16px;min-height:44px}.section{font-size:20px;margin:25px 0 12px;letter-spacing:-.6px}.sub{color:var(--muted);font-size:14px;line-height:1.5}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tile{border-radius:22px;text-align:left;padding:14px 12px;min-height:141px;display:flex;flex-direction:column;gap:6px;overflow:hidden;border:2px solid #ffffff9c;box-shadow:0 4px 0 #312b6010}.tile .art{font-size:38px;line-height:1;min-height:50px;display:flex;align-items:center}.tile strong{font-size:16px}.tile small{font-size:12px;color:#44435d;line-height:1.25}.tile:active{transform:translateY(2px)}.nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,750px);display:flex;gap:4px;justify-content:space-around;background:#fff;border-top:1px solid #e9e4f8;padding:10px 10px max(10px,env(safe-area-inset-bottom));z-index:10}.nav button{background:none;color:#77738b;min-width:75px;font-size:12px;font-weight:750;padding:5px 6px;display:grid;justify-items:center;gap:4px;border-radius:12px}.nav button.active{background:#f0eaff;color:#5c42be}.nav b{font-size:22px;line-height:1}.back{background:white;border-radius:13px;padding:11px 14px;font-weight:800}.bar{height:10px;border-radius:20px;background:#e8e1f7;overflow:hidden}.bar i{height:100%;background:#8063e5;display:block;border-radius:20px;transition:width .2s}.panel{background:white;padding:20px;border-radius:24px;box-shadow:0 4px 18px #3327680c;margin:14px 0}.panel h1{font-size:25px;line-height:1.2;margin:0 0 9px;letter-spacing:-.7px}.panel h2{font-size:20px;margin:0 0 10px}.panel p{line-height:1.45}.gamehead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;font-weight:850}.board{display:grid;gap:10px;margin:20px 0;justify-content:center}.choice{background:#f4f0ff;border:2px solid #e7dfff;border-radius:17px;min-height:76px;display:grid;place-items:center;font-size:38px;font-weight:800;aspect-ratio:1}.choice.good{border-color:#269a6d;background:#dcfce7}.choice.bad{border-color:#d97744;background:#fff0e8}.choice:disabled{opacity:1}.feedback{min-height:28px;font-weight:800;font-size:16px;margin:12px 0;color:#5b477a}.pattern{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:22px 0}.pattern span{display:grid;place-items:center;background:#f6f3ff;border-radius:14px;width:clamp(39px,12vw,64px);height:65px;font-size:34px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.space{justify-content:space-between}.age{background:#f0eaff;border:2px solid transparent;padding:12px 15px;border-radius:15px;font-weight:750}.age.selected{border-color:var(--violet);color:#4a32b7;background:#e8dfff}.word{font-size:54px;text-align:center;margin:14px 0 5px}.center{text-align:center}.stat{padding:12px 0;border-bottom:1px solid #eeeaf8}.stat:last-child{border:0}.trace{width:100%;max-width:440px;display:block;margin:auto;touch-action:none;background:#f6f2ff;border-radius:18px;user-select:none}.trace path{fill:none;stroke:#d8c9ff;stroke-width:40;stroke-linecap:round;stroke-linejoin:round}.trace circle{fill:white;stroke:#ad96f0;stroke-width:3}.trace circle.hit{fill:#64d5a1;stroke:#24966d}.trace circle.current{fill:#8a70ea;stroke:#6248cd}.trace text{pointer-events:none;font-size:16px;font-weight:900;fill:#4d388d}.note{font-size:13px;background:#fff5df;color:#6c5425;border-radius:15px;padding:12px;line-height:1.5}.finish{font-size:60px;text-align:center}.full{width:100%}.mutedbtn{background:#f1edf9;border-radius:15px;padding:13px 16px;font-weight:750}.hidden{display:none}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:600px){.grid{grid-template-columns:repeat(3,1fr)}.tile{min-height:160px;padding:18px}.hero{padding:30px}.mascot{width:155px;height:155px}.hero h1{font-size:32px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
