.sgs-page{min-height:100svh;padding:68px 12px 18px;background:linear-gradient(#dff8fa,#fff0e3);color:#173e48}.sgs-page,.sgs-page *,.sgs-success *{text-shadow:none!important;filter:none!important}.sgs-heading{width:min(1180px,100%);margin:0 auto 14px;text-align:center}.sgs-heading p{margin:0;color:#177882;font-size:.82rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.sgs-heading h1{margin:3px 0;color:#b84e4d;font-size:clamp(2rem,4vw,3.5rem);line-height:1.03;font-weight:1000;letter-spacing:-.04em}.sgs-heading span{display:block;font-size:clamp(.95rem,1.6vw,1.12rem);font-weight:750}.sgs-stage{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;width:min(1180px,100%);min-height:clamp(610px,calc(100svh - 168px),790px);margin:auto;overflow:hidden;border:6px solid #fff;border-radius:38px;background:#d5eef4;box-shadow:0 22px 45px #1f53683d;padding:120px 24px 20px}.sgs-background{position:absolute;z-index:-2;inset:0;background:url(/games/grade-4/math/sum-grouping-starship/assets/backgrounds/starship-hangar.webp) 50%/cover no-repeat;pointer-events:none}.sgs-top{position:absolute;z-index:4;top:15px;left:17px;right:17px;display:flex;align-items:flex-start;justify-content:center;gap:16px;padding-left:150px}.sgs-prompt{display:flex;align-items:center;gap:12px;max-width:620px;min-height:64px;padding:8px 9px 8px 16px;border-radius:19px;background:#fffcf3f2;box-shadow:0 7px 18px #2b576138}.sgs-prompt p{margin:0;font-size:clamp(.88rem,1.35vw,1.05rem);font-weight:850;line-height:1.25}.sgs-prompt button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:92px;min-height:50px;border:2px solid #fff;border-radius:14px;background:#117e89;color:#fff;font-weight:900;cursor:pointer;touch-action:manipulation}.sgs-prompt button svg{width:19px;height:19px}.sgs-hud{display:flex;flex:0 0 auto;align-items:center;gap:8px;min-height:52px;color:#163d46;font-weight:1000;font-size:.93rem}.sgs-hud>span{padding:7px 5px;white-space:nowrap;background:#fff9e6d9;border-radius:999px}.sgs-console{position:relative;width:min(960px,100%);height:auto;aspect-ratio:1259/600;flex:0 0 auto;margin:auto 0 0}.sgs-console-art{position:absolute;inset:0;pointer-events:none}.sgs-console-art img{object-fit:contain;object-position:center bottom}.sgs-numbers{position:absolute;inset:0}.sgs-stage .sgs-numbers button{position:absolute;top:8%;display:grid;place-items:center;width:20%;min-width:52px;aspect-ratio:1;border:0!important;border-radius:50%!important;background:transparent;color:#164b5a;font-size:clamp(1.2rem,3vw,2.15rem);font-weight:1000;cursor:pointer;touch-action:manipulation;box-shadow:none}.sgs-numbers button:first-child{left:11.7%}.sgs-numbers button:nth-child(2){left:40%}.sgs-numbers button:nth-child(3){left:68.3%}.sgs-stage .sgs-numbers button.selected,.sgs-stage .sgs-numbers button:hover:not(:disabled){background:radial-gradient(circle,#fff3baec 0,#ffe5a5a8 65%,transparent 74%);box-shadow:0 0 23px #ffe9a8}.sgs-numbers button:disabled{opacity:1;cursor:default}.sgs-console-readout{position:absolute;left:22%;right:22%;top:51%;height:22%;display:grid;place-items:center;color:#174f58;font-size:clamp(1rem,2.2vw,1.48rem);font-weight:1000;text-align:center}.sgs-task{z-index:3;display:flex;align-self:flex-end;align-items:center;justify-content:center;gap:9px;width:min(740px,calc(100% - 310px));min-height:48px;margin-top:-18px;padding:8px 12px;border-radius:16px;background:#145463f0;color:white;text-align:center}.sgs-task svg{width:19px;height:19px;flex:none;color:#ffdd83}.sgs-task strong{font-size:clamp(.9rem,1.65vw,1.1rem);line-height:1.25}.sgs-choices{z-index:3;display:grid;align-self:flex-end;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:min(680px,calc(100% - 330px));margin:12px 0 0;padding:0;border:0}.sgs-choices legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.sgs-choices button{min-height:61px;border:3px solid white;border-bottom:6px solid #a86149;border-radius:17px;background:linear-gradient(#fff8cc,#ffc99b);color:#513e31;font-size:clamp(1.1rem,2vw,1.4rem);font-weight:1000;cursor:pointer;touch-action:manipulation;box-shadow:0 8px 15px #4d492b35}.sgs-choices button:hover:not(:disabled){transform:translateY(-2px)}.sgs-choices button:disabled{cursor:default}.sgs-choices button.wrong{background:#ffe2d9;border-bottom-color:#b24e4a;color:#863b39}.sgs-choices button.correct{background:#c9f9d7;border-bottom-color:#3c9d6c;color:#1e684a}.sgs-steps{z-index:3;display:flex;justify-content:center;gap:12px;margin:15px 0 0;color:#124957;font-size:.9rem;font-weight:900}.sgs-steps span{padding:8px 13px;border-radius:999px;background:#fff9e6dd}.sgs-steps span.active{background:#ffdd90}.sgs-bottom{z-index:3;display:flex;align-self:flex-end;align-items:center;justify-content:center;width:min(740px,calc(100% - 310px));min-height:70px}.sgs-bottom p{margin:0;max-width:620px;padding:6px 10px;border-radius:12px;background:#fff9e6ed;color:#174750;font-size:clamp(.9rem,1.4vw,1.05rem);font-weight:850;text-align:center}.sgs-cherry{position:absolute;left:8px;bottom:8px;width:293px;height:238px;pointer-events:none}.sgs-cherry img{object-fit:contain;object-position:bottom center}.sgs-route{position:absolute;z-index:2;right:18px;bottom:13px;display:flex;gap:7px;align-items:center;padding:5px 9px;border-radius:999px;background:#fff9e9d9;color:#387d86;font-size:1.15rem}.sgs-route .done{color:#c8574b}.sgs-stage button:focus-visible{outline:4px solid #173d85;outline-offset:4px}.sgs-page .how-to-panel button,.sgs-page .how-to-trigger{min-width:48px;min-height:48px}.sgs-success #success-title{color:#a54836;-webkit-text-stroke:0!important;text-shadow:none!important}@media(max-width:900px){.sgs-top{padding-left:120px;gap:6px}.sgs-prompt{max-width:560px}.sgs-hud{flex-wrap:wrap;justify-content:center;max-width:150px;gap:0}.sgs-hud>span{padding:2px 4px}}@media(max-width:700px){.sgs-stage{padding:150px 14px 16px}.sgs-top{left:12px;right:12px;flex-direction:column;align-items:stretch;padding-left:0}.sgs-prompt{max-width:none;min-height:66px;margin-left:85px}.sgs-hud{align-self:flex-end;max-width:none;min-height:32px}.sgs-console{width:100%;margin:18px 0 5px}.sgs-task{align-self:center;width:min(740px,100%);margin-top:0}.sgs-choices{align-self:center;width:min(680px,100%)}.sgs-bottom{align-self:center;align-items:flex-start;width:100%;min-height:245px;justify-content:center}.sgs-bottom p{width:100%;max-width:none;margin-top:5px}.sgs-cherry{left:4px;bottom:8px;width:205px;height:183px}.sgs-route{top:135px;right:12px;bottom:auto}}@media(max-width:560px){.sgs-page{padding:66px 5px 10px}.sgs-heading{margin-bottom:8px}.sgs-heading h1{font-size:clamp(1.8rem,7vw,2.5rem)}.sgs-heading span{font-size:.89rem}.sgs-stage{min-height:calc(100svh - 126px);padding:165px 10px 12px;border-width:4px;border-radius:25px}.sgs-background{background-image:url(/games/grade-4/math/sum-grouping-starship/assets/backgrounds/starship-mobile.webp)}.sgs-top{top:12px;left:9px;right:9px}.sgs-prompt{margin-left:56px;min-height:72px;padding:7px;gap:5px}.sgs-prompt p{font-size:.78rem}.sgs-prompt button{min-width:50px;min-height:50px;padding:4px}.sgs-prompt button span{display:none}.sgs-stage .sgs-numbers button{font-size:clamp(.84rem,4vw,1.3rem)}.sgs-console-readout{left:15%;right:15%;font-size:.92rem}.sgs-task{min-height:48px;padding:7px}.sgs-task strong{font-size:.86rem}.sgs-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}.sgs-choices button{min-height:52px}.sgs-bottom p{font-size:.78rem}.sgs-steps{gap:4px;font-size:.75rem}.sgs-steps span{padding:6px 8px}}@media(max-width:390px){.sgs-prompt p{font-size:.73rem}.sgs-stage .sgs-numbers button{font-size:.83rem}.sgs-bottom p{font-size:.73rem}.sgs-route{right:9px}}@media(min-width:561px) and (max-width:700px){.sgs-route{top:128px}}@media(max-width:360px){.sgs-stage{padding-top:210px}.sgs-top{top:68px}.sgs-route{top:185px}}@media(prefers-reduced-motion:reduce){.sgs-choices button,.sgs-numbers button{transition:none!important;transform:none!important}}