.fos-game{width:100%;padding:68px 12px 18px;overflow-x:clip;color:#163e56}.fos-game,.fos-game *,.fos-success *{box-sizing:border-box}.fos-game :where(p,span,small,strong,em,b,button,h2,i),.fos-success :where(p,span,strong,button,h2,a){text-shadow:none!important;-webkit-text-stroke:0!important}.fos-success :where(h2,p,span,button,a){filter:none!important}.fos-heading{width:min(1180px,100%);margin:0 auto 14px;text-align:center}.fos-heading p{margin:0;color:#0f8393;font-size:13px;font-weight:950;letter-spacing:.14em;text-transform:uppercase}.fos-heading h1{margin:4px 0 3px;color:#176c7e;font-size:clamp(30px,4vw,50px);font-weight:1000;letter-spacing:-.04em;line-height:1;text-shadow:0 3px 0 #fff,0 7px 16px #143d5930}.fos-heading span{color:#3b5c6b;font-size:clamp(14px,1.8vw,18px);font-weight:800}.fos-stage{position:relative;width:min(1180px,100%);min-height:clamp(590px,calc(100svh - 168px),790px);margin:0 auto;overflow:hidden;border:6px solid #fff;border-radius:38px;background:#d7f3f0;box-shadow:0 22px 52px #143d5938;isolation:isolate}.fos-background{z-index:0;object-fit:cover;object-position:center;image-rendering:auto;user-select:none}.fos-stage-wash{position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(180deg,#0b60701c 0 20%,transparent 43%,#1642600d 70%,#0d436521)}.fos-prompt{position:absolute;z-index:28;top:15px;left:18px;display:grid;width:min(680px,calc(100% - 350px));min-height:78px;grid-template-columns:52px 1fr 52px;align-items:center;gap:10px;padding:9px 12px;border-radius:23px;background:#fff9eaf2;box-shadow:0 7px 0 #ecb44d,0 14px 28px #173f5530}.fos-prompt>button,.fos-prompt>span{display:grid;width:48px;height:48px;place-items:center;border:0;border-radius:50%;color:#fff;background:#6758d7}.fos-prompt>button{cursor:pointer;touch-action:manipulation}.fos-prompt>button:disabled{cursor:not-allowed;opacity:.55}.fos-prompt svg{width:25px;height:25px}.fos-prompt small{display:block;color:#a15532;font-size:10px;font-weight:950;letter-spacing:.11em}.fos-prompt h2{margin:2px 0 0;color:#123c55;font-size:clamp(22px,2.6vw,34px);font-weight:1000;letter-spacing:-.025em;line-height:1.05}.fos-hud{position:absolute;z-index:27;top:20px;right:18px;display:flex;align-items:center;gap:15px;color:#153f56;font-size:15px;font-weight:950}.fos-hud span{display:inline-flex;align-items:center;gap:5px}.fos-hud svg{width:19px;height:19px;color:#6758d7}.fos-hud strong{font-size:20px}.fos-progress{position:absolute;z-index:27;top:58px;right:18px;display:flex;gap:7px}.fos-progress i{display:grid;width:34px;height:34px;place-items:center;border:3px solid #fff;border-radius:50%;color:#285e70;background:#fff8e5;font-size:13px;font-style:normal;font-weight:1000;box-shadow:0 4px 10px #24445b28}.fos-progress i.current{outline:4px solid #ffd64f;outline-offset:2px}.fos-progress i.done{color:#fff;background:#21a88b}.fos-progress i svg{width:18px;height:18px;stroke-width:4}.fos-workspace{position:absolute;z-index:8;top:118px;bottom:52px;left:48%;display:grid;width:min(850px,76%);grid-template-columns:minmax(330px,1.25fr) minmax(245px,.8fr);grid-template-rows:82px 1fr;align-items:center;gap:15px 18px;transform:translateX(-50%)}.fos-equation{grid-column:1/-1;display:flex;width:min(570px,82%);min-height:72px;margin:0 auto;align-items:center;justify-content:center;gap:17px;padding:8px 24px;border:4px solid #c2f8ff;border-radius:22px;color:#eafdff;background:#113e5bf2;box-shadow:inset 0 0 22px #39d7e84a,0 9px 22px #123c5535}.fos-equation>span:not(.fos-fraction){color:#ffe174;font-size:clamp(27px,3.3vw,40px);font-weight:1000}.fos-equation em{min-width:64px;color:#a4f3d8;font-size:clamp(29px,3.8vw,46px);font-style:normal;font-weight:1000;text-align:center}.fos-fraction{display:inline-grid;min-width:42px;grid-template-rows:1fr 3px 1fr;place-items:center;color:inherit;font-size:clamp(18px,2.4vw,28px);font-weight:1000;line-height:.9;vertical-align:middle}.fos-fraction b{font:inherit}.fos-fraction i{width:100%;height:3px;border-radius:5px;background:currentColor}.fos-studio-board{min-width:0;padding:14px 16px 17px;border:3px solid #ffffffd9;border-radius:27px;background:#effeffe8;box-shadow:0 8px 0 #2798a8,0 17px 32px #173f5535}.fos-legend{display:flex;justify-content:center;gap:12px;margin-bottom:9px;color:#295166;font-size:11px;font-weight:900}.fos-legend span{display:inline-flex;align-items:center;gap:4px}.fos-legend i{width:13px;height:13px;border-radius:4px;background:#34c5d7}.fos-legend span:nth-child(2) i{background:#ff806d}.fos-legend span:nth-child(3) i{background:#765bd8}.fos-grid-shell{display:grid;width:min(100%,430px);aspect-ratio:1.16;margin:auto;grid-template-columns:44px repeat(var(--cols),minmax(38px,1fr));grid-template-rows:42px repeat(var(--rows),minmax(38px,1fr));gap:4px}.fos-grid-corner{display:grid;grid-column:1;grid-row:1;place-items:center;color:#4c7790}.fos-grid-corner svg{width:28px;height:28px}.fos-column-tab,.fos-row-tab{display:grid;min-width:0;min-height:0;place-items:center;border:3px solid #fff;border-radius:12px;color:#165069;background:#c7f5f7;box-shadow:0 4px 0 #3296a1;font-size:14px;font-weight:1000}.fos-row-tab{background:#ffe1d8;box-shadow:0 4px 0 #d66d5e}.fos-column-tab.selected{color:#fff;background:#23b7cb;box-shadow:0 4px 0 #18798b}.fos-row-tab.selected{color:#fff;background:#f36f60;box-shadow:0 4px 0 #a9483f}.fos-cell{display:block;border:2px solid #ffffff;border-radius:7px;background:#ffffffbd;box-shadow:inset 0 0 0 1px #638ca456;transition:background .22s ease,transform .22s ease}.fos-cell.column-layer{background:#34c5d7d9}.fos-cell.row-layer{background:#ff806dd9}.fos-cell.overlap{background:linear-gradient(135deg,#765bd8 0 46%,#9577ef 46% 54%,#765bd8 54%);transform:scale(.96);box-shadow:inset 0 0 0 3px #fff8,0 3px 8px #5339a55c}.fos-action-panel,.fos-answer-panel{min-width:0;align-self:center}.fos-layer-chip{display:grid;min-height:78px;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:9px;margin-bottom:18px;padding:10px;border:3px solid #fff;border-radius:22px;color:#18465e;background:#f9ffffed;box-shadow:0 7px 0 #77bbc4;font-size:14px;font-weight:950;text-align:center}.fos-layer-count{display:flex;min-width:0;align-items:center;justify-content:center;gap:8px}.fos-layer-count>span{line-height:1.05}.fos-layer-step{display:grid;width:48px;height:48px;place-items:center;border:3px solid #fff;border-radius:15px;color:#fff;background:#23b7cb;box-shadow:0 5px 0 #18798b;cursor:pointer;font-size:30px;font-weight:1000;line-height:1;touch-action:manipulation}.fos-layer-chip.rows .fos-layer-step{background:#f36f60;box-shadow:0 5px 0 #a9483f}.fos-layer-step:disabled{cursor:not-allowed;opacity:.45}.fos-layer-chip .fos-fraction{color:#674fc9;font-size:22px}.fos-action{display:flex;width:100%;min-height:62px;align-items:center;justify-content:center;gap:9px;border:4px solid #fff;border-radius:20px;color:#fff;background:linear-gradient(#8c76eb,#6551ca);box-shadow:0 7px 0 #423296;cursor:pointer;touch-action:manipulation}.fos-action svg{width:25px;height:25px}.fos-action b{font-size:clamp(14px,1.8vw,19px);font-weight:1000}.fos-action:disabled,.fos-answer-grid button:disabled{cursor:not-allowed;opacity:.6}.fos-overlap-count{display:flex;min-height:76px;align-items:center;justify-content:center;gap:8px;margin-bottom:13px;padding:9px;border:3px solid #fff;border-radius:22px;color:#224e65;background:#fff9ebef;box-shadow:0 7px 0 #e2ac50;text-align:center}.fos-overlap-count strong{color:#684fca;font-size:30px;font-weight:1000}.fos-overlap-count span{font-size:12px;font-weight:900;line-height:1.1}.fos-answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fos-answer-grid button{min-width:0;min-height:62px;border:4px solid #fff;border-radius:18px;color:#173f55;background:linear-gradient(#e7fdff,#9ce8ec);box-shadow:0 6px 0 #278e9b;cursor:pointer;font-size:clamp(20px,2.5vw,30px);font-weight:1000;touch-action:manipulation}.fos-action:hover:not(:disabled),.fos-answer-grid button:hover:not(:disabled){transform:translateY(-3px)}.fos-answer-grid button.wrong-choice{color:#7c2634;background:#ffd1d5}.fos-answer-grid button.wrong-choice,.fos-wrong .fos-workspace{animation:fos-wiggle .42s ease-in-out}@keyframes fos-wiggle{30%{margin-left:-6px}70%{margin-left:6px}}.fos-action:focus-visible,.fos-answer-grid button:focus-visible,.fos-layer-step:focus-visible,.fos-prompt>button:focus-visible{outline:5px solid #ffda43;outline-offset:3px}.fos-mascot{position:absolute;z-index:13;right:.5%;bottom:34px;width:clamp(150px,18vw,220px);aspect-ratio:1;pointer-events:none}.fos-mascot .fos-mascot-art{width:100%}.fos-feedback{position:absolute;z-index:24;bottom:9px;left:50%;width:min(820px,80%);transform:translateX(-50%);color:#fff}.fos-feedback p{display:flex;min-height:38px;margin:0;align-items:center;justify-content:center;padding:5px 16px;border-radius:999px;background:#123f55e8;font-size:clamp(13px,1.5vw,17px);font-weight:950;text-align:center}@media (max-width:1000px){.fos-prompt{width:min(640px,calc(100% - 270px))}.fos-workspace{left:46%;width:82%;grid-template-columns:minmax(320px,1.2fr) minmax(220px,.8fr)}.fos-mascot{right:0;width:168px}}@media (max-width:760px){.fos-game{padding-inline:7px}.fos-stage{min-height:850px}.fos-prompt{top:12px;left:12px;width:calc(100% - 24px);min-height:76px;grid-template-columns:48px 1fr 48px;border-radius:20px}.fos-prompt>button,.fos-prompt>span{width:48px;height:48px}.fos-prompt h2{font-size:clamp(20px,4.6vw,28px)}.fos-hud{top:95px;left:16px;right:auto;width:calc(100% - 32px);justify-content:space-between}.fos-progress{top:128px;right:16px}.fos-workspace{top:174px;bottom:62px;left:50%;width:calc(100% - 28px);grid-template-columns:minmax(300px,1.15fr) minmax(205px,.85fr);grid-template-rows:76px 1fr}.fos-mascot{right:0;bottom:30px;width:142px}.fos-feedback{width:94%}}@media (max-width:590px){.fos-game{padding:66px 5px 10px}.fos-heading{margin-bottom:10px;padding-inline:8px}.fos-heading p{font-size:9px}.fos-heading h1{font-size:clamp(27px,8.7vw,38px)}.fos-heading span{font-size:12px}.fos-stage{min-height:max(900px,calc(100svh - 126px));border-width:4px;border-radius:25px}.fos-prompt{grid-template-columns:1fr 48px;padding-inline:9px}.fos-prompt>span{display:none}.fos-prompt h2{font-size:clamp(19px,5.6vw,25px)}.fos-progress{top:125px}.fos-progress i{width:30px;height:30px;border-width:2px}.fos-workspace{top:170px;bottom:110px;width:calc(100% - 18px);grid-template-columns:1fr;grid-template-rows:69px auto auto;align-content:center;gap:11px}.fos-equation{width:94%;min-height:64px;gap:10px;padding-inline:12px}.fos-equation .fos-fraction{font-size:21px}.fos-equation>span:not(.fos-fraction){font-size:25px}.fos-equation em{min-width:49px;font-size:29px}.fos-studio-board{width:min(440px,100%);margin:0 auto;padding:10px 11px 13px;border-radius:22px}.fos-legend{gap:8px;margin-bottom:7px;font-size:9px}.fos-grid-shell{width:min(100%,360px);max-height:382px;grid-template-columns:38px repeat(var(--cols),minmax(34px,1fr));grid-template-rows:38px repeat(var(--rows),minmax(34px,1fr));gap:3px}.fos-column-tab,.fos-row-tab{border-width:2px;border-radius:10px;font-size:12px}.fos-action-panel,.fos-answer-panel{width:min(390px,94%);margin:0 auto}.fos-layer-chip{min-height:58px;margin-bottom:10px;padding:6px 9px}.fos-layer-chip>i{height:38px}.fos-layer-chip.rows>i{width:42px;height:17px}.fos-action{min-height:54px}.fos-overlap-count{min-height:54px;margin-bottom:9px}.fos-answer-grid button{min-height:55px}.fos-mascot{right:0;bottom:29px;width:112px}.fos-feedback{bottom:3px}.fos-feedback p{min-height:40px;padding-right:106px;font-size:11px}}@media (max-width:390px){.fos-stage{min-height:880px}.fos-hud{font-size:13px}.fos-hud strong{font-size:17px}.fos-grid-shell{max-height:350px;grid-template-columns:35px repeat(var(--cols),minmax(29px,1fr));grid-template-rows:35px repeat(var(--rows),minmax(29px,1fr))}.fos-mascot{width:100px}.fos-feedback p{padding-right:94px}}@media (max-height:760px) and (min-width:591px){.fos-game{padding-top:60px}.fos-stage{min-height:640px}.fos-workspace{top:110px;bottom:48px}.fos-mascot{bottom:26px;width:145px}}@media (max-height:820px) and (min-width:761px){.fos-workspace{top:110px;bottom:48px}.fos-equation{min-height:64px}.fos-studio-board{padding:10px 12px 12px}.fos-grid-shell{width:min(100%,320px)}}@media (prefers-reduced-motion:reduce){.fos-stage *,.fos-stage :after,.fos-stage :before{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}