.stp-app{max-width:1350px;margin:auto;padding:18px;color:#183650}.stp-app header{display:flex;justify-content:space-between;gap:20px;margin-bottom:14px}.stp-app h1{font-size:clamp(27px,3vw,38px);margin:6px 0}.stp-app header p{margin:0}.stp-name,.stp-score>div{display:flex;flex-direction:column;gap:4px}.stp-name{text-align:right}.stp-name strong{font-size:27px;color:#653d91}.stp-card{background:white;border:2px solid #d1deeb;border-radius:22px;padding:20px}.stp-card h2{font-size:27px;line-height:1.25;margin:0 0 14px}.stp-card p{font-size:18px;line-height:1.4}.stp-app button{min-height:44px;border:1px solid #9eafc5;border-bottom:4px solid #8fa2bc;background:#f0f4fb;color:#183650;font-size:18px;font-weight:750;padding:9px 16px;border-radius:11px;touch-action:manipulation;cursor:pointer}.stp-app button:active:not(:disabled){transform:translateY(3px);border-bottom-width:1px}.stp-app button:focus-visible{outline:3px solid #db9c23;outline-offset:3px}.stp-app button:disabled{opacity:.6;cursor:default}.stp-app .stp-primary{background:#255bca;color:white;border-color:#19469e;padding:12px 22px}.stp-fields{display:grid;grid-template-columns:1fr 1fr 150px;gap:16px;margin:22px 0}.stp-fields label{display:flex;flex-direction:column;font-weight:700;gap:8px}.stp-fields input,.stp-fields select,.stp-welcome details input{font-size:20px;padding:12px;border:1px solid #a7bbcf;border-radius:9px;background:#fffdf5;width:100%;box-sizing:border-box}.stp-welcome details{margin-top:20px}.stp-welcome summary{padding:10px;font-size:20px;cursor:pointer}.stp-welcome details input{max-width:600px;display:block;margin:10px 0}.stp-score{position:sticky;top:37px;z-index:4;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;background:#173957;color:white;border-radius:15px;padding:10px 16px;margin:12px 0}.stp-score strong{font-size:24px}.stp-score small{font-size:12px}.stp-score button{min-height:38px;font-size:14px;padding:6px 10px}.stp-stars{font-size:28px;color:#ffda71;letter-spacing:3px}.stp-goal{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;background:#fff1c9;border-radius:12px;padding:12px 16px;margin-bottom:14px;font-size:17px}.stp-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:20px;align-items:start}.stp-points{display:flex;justify-content:center;gap:22px;flex-wrap:wrap;padding:12px;background:#edf4fb;border-radius:15px}.stp-points>div{gap:8px;font-size:35px}.stp-points>div,.stp-quantity{display:flex;align-items:center}.stp-quantity{flex-direction:column;gap:4px;font-size:21px}.stp-quantity button{width:64px;min-height:57px;padding:8px;font-size:28px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.stp-quantity button[aria-pressed=true]{outline:3px solid #e8af32;outline-offset:3px}.stp-x{color:#16723f!important;background:#e7f5eb!important;border-color:#25804e!important}.stp-y{color:#b72c43!important;background:#fcebf0!important;border-color:#bd3d55!important}.stp-quantity.stp-x,.stp-quantity.stp-y{background:transparent!important}.stp-quantity.stp-x button{background:#e7f5eb;border-color:#25804e;color:#16723f}.stp-quantity.stp-y button{background:#fcebf0;border-color:#bd3d55;color:#b72c43}.stp-setup{justify-content:center;gap:14px;font-size:32px;margin:16px 0}.stp-fraction>div,.stp-setup{display:flex;align-items:center}.stp-fraction>div{gap:10px;padding:8px}.stp-fraction>div:first-child{border-bottom:3px solid #173957}.stp-slot{width:68px;min-height:55px!important;font-size:28px!important;border-style:dashed!important;padding:5px!important;background:#fffdf5!important}.stp-question>.math-display{font-size:25px}.stp-independent-points{padding:25px 12px;background:#edf4fb;border-radius:14px;font-size:32px;margin:20px 0}.stp-answer{display:flex;align-items:center;gap:10px;justify-content:center;margin:18px 0;font-size:32px}.stp-answer input{width:min(270px,75%);font-size:29px;padding:10px 14px;border:2px solid #557ea9;border-radius:10px;background:#fffdf5}.stp-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;max-width:400px;margin:12px auto}.stp-keypad button{font-size:26px;min-height:45px;padding:5px}.stp-keypad button[data-key="-"],.stp-keypad button[data-key="/"]{background:#edddc7}.stp-keypad button[data-key=back]{background:#f4d6d6;font-size:31px}.stp-keypad button[data-key=clear]{background:#efbab9;font-size:18px}.stp-keypad .stp-undefined{grid-column:1/-1;background:#e6e1f6;font-size:19px}.stp-feedback{border-radius:12px;padding:10px 14px;margin:12px 0;min-height:55px}.stp-feedback h3{font-size:25px;margin:5px 0}.stp-feedback p{font-size:20px;margin:8px 0}.stp-feedback.right{background:#e2f5e9;border:2px solid #369466}.stp-feedback.retry{background:#fff3d7;border:2px solid #d6a23c}.stp-feedback .math-display{font-size:25px;overflow-x:auto}.stp-scratch{position:sticky;top:130px}.stp-scratch .scratch-tools{display:flex;gap:7px;flex-wrap:wrap}.stp-scratch .scratch-tools button{font-size:14px;padding:7px 10px;min-height:36px}.stp-scratch .scratch-surface{width:100%;height:430px;display:block;border:1px solid #c0d0df;border-radius:10px;touch-action:none;user-select:none;-webkit-user-select:none;margin-top:10px}.stp-scratch .slope-small{font-size:13px}.stp-celebrate{text-align:center;padding:35px}.stp-celebrate>span{font-size:55px;color:#d69e1c;letter-spacing:5px}.stp-celebrate>strong{display:block;font:48px Snell Roundhand,Apple Chancery,cursive;color:#653d91}.stp-celebrate h2{font-size:38px;color:#087249}.stp-report>h2{color:#653d91;font-size:34px}.stp-report>h3{font-size:38px;color:#087366}.stp-result-image{display:block;max-width:700px;width:100%;margin-top:20px}.stp-ghost{transform:translate(-50%,-50%);z-index:1000;padding:12px 20px;border:3px solid;border-radius:12px;font-size:30px;box-shadow:0 5px 20px #17395755}.stp-ghost,.stp-star-flight{position:fixed;pointer-events:none}.stp-star-flight{inset:0;z-index:10;overflow:hidden}.stp-star-flight span{position:absolute;top:60%;font-size:65px;color:#e7b021;animation:stp-star 1.2s ease-out both}@keyframes stp-star{0%{opacity:0;transform:scale(.1) rotate(-100deg)}35%{opacity:1;transform:scale(1.2)}to{opacity:0;transform:translateY(-280px) rotate(120deg)}}@media(min-width:850px) and (orientation:landscape){.stp-app{padding:12px 20px}.stp-card{padding:16px}.stp-points{padding:8px}.stp-quantity button{min-height:46px;width:58px;font-size:26px}.stp-quantity{font-size:18px}.stp-keypad{max-width:340px}.stp-keypad button{min-height:42px}.stp-scratch .scratch-surface{height:390px}.stp-question h2{font-size:25px}.stp-setup{margin:8px 0}.stp-feedback p{font-size:19px}}@media(max-width:760px){.stp-layout{grid-template-columns:1fr}.stp-scratch{position:static}.stp-app header{flex-direction:column}.stp-name{text-align:left}.stp-fields{grid-template-columns:1fr}.stp-points{gap:12px}.stp-independent-points{font-size:25px}.stp-score{font-size:15px}.stp-score strong{font-size:21px}.stp-stars{font-size:23px}.stp-quantity button{width:54px}.stp-points>div{gap:5px}}@media(prefers-reduced-motion:reduce){.stp-star-flight span{animation:none;opacity:.25}.stp-app button:active:not(:disabled){transform:none}}.stp-setup-confirmed{background:#e4f5e9;border:2px solid #399368;border-radius:12px;padding:8px 14px;margin-top:12px}.stp-setup-confirmed>strong{font-size:19px;color:#087046}.stp-setup-confirmed .math-display{font-size:25px;margin:7px 0}