.ffpg-game{box-sizing:border-box;position:relative;display:flex;width:100%;min-width:0;min-height:100svh;overflow-x:hidden;flex-direction:column;align-items:center;padding:68px 12px 18px;color:#123f51;background:linear-gradient(180deg,#b9eef1,#fff0cc 72%,#ffd49d)!important;background-image:linear-gradient(180deg,#b9eef1,#fff0cc 72%,#ffd49d)!important}.ffpg-game *,.ffpg-success *{text-shadow:none!important}.ffpg-game button,.ffpg-game svg,.ffpg-success button,.ffpg-success svg{filter:none!important}.ffpg-page-heading{position:relative;z-index:2;width:min(1100px,100%);margin:0 auto 14px;padding:0;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;text-align:center}.ffpg-page-heading:after,.ffpg-page-heading:before{display:none!important}.ffpg-page-heading p{margin:0 0 4px;color:#087d88;font-size:12px;font-weight:950;letter-spacing:.16em}.ffpg-page-heading h1{margin:0;color:#11556b;font-size:clamp(29px,4.8vw,49px);line-height:1.02;letter-spacing:-.045em;text-shadow:0 2px 0 #fff!important}.ffpg-page-heading>span{display:block;max-width:790px;margin:7px auto 0;color:#526c76;font-size:clamp(14px,2vw,17px);line-height:1.35}.ffpg-stage{position:relative;width:min(1180px,100%);min-width:0;min-height:clamp(850px,calc(100svh - 130px),920px);overflow:hidden;border:6px solid #fff;border-radius:38px;outline:none;isolation:isolate;box-shadow:0 18px 38px #62402745}.ffpg-stage:focus-visible{outline:5px solid #fff16a;outline-offset:5px}.ffpg-background{position:absolute;z-index:0;inset:0;background:linear-gradient(180deg,#07586a20,transparent 38%,#855a2d24),url(/games/grade-3/math/fact-family-power-grid/assets/backgrounds/power-grid-bg.webp) 50%/cover no-repeat}.ffpg-ambient{position:absolute;z-index:1;inset:0;pointer-events:none}.ffpg-ambient i{position:absolute;width:12px;aspect-ratio:1;border-radius:50%;background:#c8ffff;box-shadow:0 0 18px 8px #51f5ff8c;animation:ffpg-pulse 3.2s ease-in-out infinite}.ffpg-ambient i:first-child{top:28%;left:8%}.ffpg-ambient i:nth-child(2){top:60%;left:13%;width:7px;animation-delay:-1.4s}.ffpg-ambient i:nth-child(3){top:30%;right:8%;width:8px;animation-delay:-2.2s}.ffpg-ambient i:nth-child(4){top:67%;right:12%;width:11px;animation-delay:-.7s}@keyframes ffpg-pulse{50%{transform:scale(1.5);opacity:.35}}.ffpg-prompt{position:relative;z-index:30;display:grid;width:min(800px,calc(100% - 250px));min-height:80px;margin:16px auto 0;padding:10px 12px;grid-template-columns:50px 1fr 50px;align-items:center;gap:10px;border:2px solid #ffffffdf;border-radius:22px;background:#fffaf0ef;box-shadow:0 7px 18px #4f2e2536}.ffpg-prompt>div{min-width:0}.ffpg-prompt-icon,.ffpg-prompt>button{display:grid;width:48px;height:48px;min-width:48px;place-items:center;border:0;border-radius:16px}.ffpg-prompt-icon{color:#fff;background:linear-gradient(145deg,#3ddbd2,#078897)}.ffpg-prompt-icon svg,.ffpg-prompt>button svg{width:25px;height:25px}.ffpg-prompt>div>span{display:block;margin-bottom:2px;color:#16838c;font-size:11px;font-weight:950;letter-spacing:.14em}.ffpg-prompt h2{margin:0;color:#173f52;font-size:clamp(14px,2vw,20px);line-height:1.25}.ffpg-prompt>button{cursor:pointer;color:#fff;background:linear-gradient(180deg,#ff9a77,#eb5a5f);box-shadow:inset 0 2px 0 #ffd4c4,0 4px 0 #b23e4e}.ffpg-hud{position:relative;z-index:29;display:flex;width:min(650px,calc(100% - 430px));min-height:38px;margin:5px auto 0;align-items:center;justify-content:space-between;gap:10px;color:#fff;font-size:13px;font-weight:950}.ffpg-hud span{display:inline-flex;align-items:center;gap:5px}.ffpg-hud svg{width:18px;height:18px}.ffpg-hud span:first-child svg{fill:#ffe36a;color:#f7c63c}.ffpg-hud span:last-child svg{color:#ffdf75}.ffpg-hud strong{font-size:18px}.ffpg-zone-progress{position:absolute;z-index:27;top:118px;right:18px;display:flex;gap:6px;padding:7px;border:2px solid #fff9;border-radius:18px;background:#0d6575ce;box-shadow:0 5px 12px #18343b3d}.ffpg-zone-progress span{display:grid;width:31px;aspect-ratio:.82;place-items:center;border:2px solid #f4ddbd;border-radius:7px 7px 10px 10px;color:#2a6e79;background:#fff6df;font-size:12px;font-weight:950;box-shadow:inset 0 -3px 0 #e6c390}.ffpg-zone-progress span.is-current{outline:3px solid #ffdf65;outline-offset:2px}.ffpg-zone-progress span.is-done{color:#fff;background:linear-gradient(160deg,#52d9bd,#169b8d);animation:ffpg-badge-pop .6s ease-out}@keyframes ffpg-badge-pop{45%{transform:translateY(-6px) rotate(5deg) scale(1.13)}}.ffpg-console-wrap{position:absolute;z-index:9;top:180px;left:50%;width:min(770px,67%);aspect-ratio:3/2;transform:translateX(-50%);filter:drop-shadow(0 14px 13px #5736294d)}.ffpg-console-art{width:100%;height:100%;object-fit:contain;user-select:none}.ffpg-console-art,.ffpg-core-display{position:absolute;inset:0;pointer-events:none}.ffpg-core-display{z-index:3}.ffpg-core-display span{position:absolute;display:grid;width:14.4%;aspect-ratio:1;place-items:center;border-radius:50%;color:#10465b;font-size:clamp(26px,3.2vw,44px);font-weight:950;line-height:1}.ffpg-core-display span:first-child{top:15.5%;left:42.6%}.ffpg-core-display span:nth-child(2){top:35.6%;left:28.2%}.ffpg-core-display span:nth-child(3){top:35.6%;right:28.4%}.ffpg-facts{position:absolute;z-index:4;inset:0}.ffpg-fact{position:absolute;display:grid;width:30.2%;height:12.7%;padding:0 5.5%;grid-template-columns:repeat(5,minmax(0,auto));align-items:center;justify-content:center;gap:clamp(3px,.6vw,8px);border-radius:999px;color:#6d7f83;opacity:.7;transition:opacity .2s ease,transform .2s ease}.ffpg-fact:first-child{top:59%;left:15.8%}.ffpg-fact:nth-child(2){top:59%;right:15.8%}.ffpg-fact:nth-child(3){top:75.1%;left:15.8%}.ffpg-fact:nth-child(4){top:75.1%;right:15.8%}.ffpg-fact span{display:inline-grid;min-width:.65em;place-items:center;color:inherit;font-size:clamp(19px,2.25vw,31px);font-weight:950;line-height:1}.ffpg-fact .is-symbol{font-size:clamp(16px,1.8vw,25px)}.ffpg-fact .is-blank{min-width:1.25em;min-height:1.25em;border:3px dashed #e06658;border-radius:10px;color:#15566a;background:#fff7c9}.ffpg-fact>svg{position:absolute;right:5%;width:18px;height:18px;color:#0b9b69}.ffpg-fact.is-active{color:#123f51;opacity:1;transform:scale(1.04)}.ffpg-fact.is-active:after{content:"";position:absolute;inset:2px;border-radius:999px;pointer-events:none;background:linear-gradient(90deg,#6ffff100,#6ffff14f 50%,#6ffff100);box-shadow:inset 0 0 22px #65fff0b8,0 0 20px 5px #35e9e4a8;animation:ffpg-circuit-glow 1.25s ease-in-out infinite}.ffpg-fact.is-solved{color:#087650;opacity:1}.ffpg-fact.is-solved .is-blank{border-style:solid;border-color:#23a97b;background:#dcffe8}@keyframes ffpg-circuit-glow{50%{opacity:.48;box-shadow:inset 0 0 13px #65fff082,0 0 12px 2px #35e9e47a}}.ffpg-charge{position:absolute;z-index:5;top:88.5%;left:50%;display:grid;width:45%;height:38px;grid-template-columns:28px 1fr 32px;align-items:center;gap:8px;transform:translateX(-50%);color:#fff}.ffpg-charge>svg{width:25px;height:25px}.ffpg-charge>div{height:13px;overflow:hidden;border:2px solid #fff;border-radius:999px;background:#104b61}.ffpg-charge i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#41e6ce,#fff260);transition:width .45s ease}.ffpg-charge b{font-size:13px}.ffpg-guide{position:absolute;z-index:25;right:-12px;bottom:165px;width:clamp(180px,16.5vw,210px);aspect-ratio:1;pointer-events:none;transform-origin:50% 92%;animation:ffpg-guide-float 3s ease-in-out infinite}.ffpg-guide img{width:100%;height:100%;object-fit:contain;transform:scaleX(-1);transform-origin:center}.ffpg-guide>span{position:absolute;z-index:2;top:2%;right:4%;opacity:0;font-size:34px}.ffpg-guide.is-correct{animation:ffpg-guide-cheer 1s cubic-bezier(.2,1.2,.3,1)}.ffpg-guide.is-correct>span{animation:ffpg-sparkle-pop .8s ease-out}.ffpg-guide.is-wrong{animation:ffpg-guide-wrong .55s ease-in-out}@keyframes ffpg-guide-float{50%{transform:translateY(-6px) rotate(1deg)}}@keyframes ffpg-guide-cheer{28%{transform:translateY(-24px) rotate(-7deg) scale(1.08)}58%{transform:translateY(0) rotate(5deg)}78%{transform:translateY(-10px) rotate(-3deg)}}@keyframes ffpg-guide-wrong{35%{transform:rotate(-3deg)}70%{transform:rotate(3deg)}}@keyframes ffpg-sparkle-pop{0%{opacity:0;transform:scale(.2)}45%{opacity:1;transform:translateY(-15px) scale(1.25)}to{opacity:0;transform:translateY(-28px)}}.ffpg-controls{position:absolute;z-index:28;bottom:70px;left:50%;display:grid;width:min(760px,calc(100% - 300px));min-height:78px;grid-template-columns:1fr 190px 58px;align-items:stretch;gap:9px;transform:translateX(-50%)}.ffpg-core-rack{display:grid;min-width:0;grid-template-columns:repeat(3,1fr);gap:8px}.ffpg-clear,.ffpg-connect,.ffpg-core-rack button{min-width:0;min-height:70px;cursor:pointer;border:solid #fff;border-width:4px 4px 8px;border-radius:20px;box-shadow:0 7px 12px #49312840,inset 0 3px 0 #a8f4ec}.ffpg-core-rack button{display:flex;padding:5px 10px;align-items:center;justify-content:center;gap:8px;color:#155367;background:linear-gradient(180deg,#eafff8,#7ee0d0)}.ffpg-core-rack button svg{width:22px;height:22px;color:#f3ac26;fill:#fff064}.ffpg-core-rack button b{font-size:clamp(22px,2.5vw,31px)}.ffpg-core-rack button.is-selected{color:#7b4a0f;background:linear-gradient(180deg,#fff39b,#ffc64f);outline:4px solid #fff26f;outline-offset:2px;transform:translateY(-3px)}.ffpg-connect{display:flex;padding:7px 12px;align-items:center;justify-content:center;gap:7px;color:#fff;background:linear-gradient(180deg,#ff9476,#e8535d);box-shadow:0 7px 12px #49312840,inset 0 3px 0 #ffd2c0}.ffpg-connect svg{width:24px;height:24px}.ffpg-connect b{font-size:14px}.ffpg-clear{display:grid;padding:0;place-items:center;color:#fff;background:linear-gradient(180deg,#43cbc8,#168998)}.ffpg-clear svg{width:23px;height:23px}.ffpg-controls button:disabled{cursor:default;opacity:.55}.ffpg-feedback{position:absolute;z-index:29;right:250px;bottom:10px;left:250px;display:grid;min-height:45px;place-items:center;border-radius:18px;color:#174a58;background:#fffaf0ed;box-shadow:0 5px 13px #49312834}.ffpg-feedback p{display:flex;margin:0;padding:8px 14px;align-items:center;justify-content:center;gap:7px;text-align:center;font-size:clamp(13px,1.6vw,16px);font-weight:850;line-height:1.25}.ffpg-feedback svg{width:18px;height:18px;color:#12908a;flex:0 0 auto}.ffpg-result-correct .ffpg-feedback{color:#08734f;background:#efffe9ed}.ffpg-result-correct .ffpg-feedback svg{color:#14956f}.ffpg-result-wrong .ffpg-feedback{color:#9d3c47;background:#fff3f3ed}.ffpg-result-wrong .ffpg-feedback svg{color:#d1525f}.ffpg-game button:focus-visible{outline:4px solid #fff56d;outline-offset:4px}.ffpg-success a,.ffpg-success button,.ffpg-success h2,.ffpg-success p{text-shadow:none!important}@media (max-width:1100px){.ffpg-guide{right:-6px;bottom:160px;width:156px}}@media (max-width:900px){.ffpg-prompt{width:calc(100% - 170px);margin-top:66px}.ffpg-hud{width:calc(100% - 400px)}.ffpg-zone-progress{top:158px}.ffpg-zone-progress span{width:27px}.ffpg-console-wrap{top:225px;left:45%;width:min(700px,70%)}.ffpg-controls{width:calc(100% - 210px);grid-template-columns:1fr 170px 54px}.ffpg-feedback{right:170px;left:170px}.ffpg-guide{right:-6px;bottom:160px;width:144px}}@media (max-width:700px){.ffpg-stage{min-height:950px}.ffpg-prompt{width:calc(100% - 24px);margin-top:66px}.ffpg-hud{width:calc(100% - 32px)}.ffpg-zone-progress{top:198px;right:10px;gap:3px;padding:5px}.ffpg-zone-progress span{width:24px}.ffpg-console-wrap{top:285px;left:43%;width:min(520px,74%)}.ffpg-controls{bottom:68px;width:calc(100% - 28px);min-height:138px;grid-template-columns:1fr 58px;grid-template-rows:72px 58px;gap:8px}.ffpg-core-rack{grid-column:1/-1;grid-row:1}.ffpg-connect{grid-column:1}.ffpg-clear,.ffpg-connect{grid-row:2;min-height:58px}.ffpg-clear{grid-column:2}.ffpg-core-rack button{min-height:72px;border-radius:17px}.ffpg-guide{right:4px;bottom:218px;width:105px}.ffpg-feedback{right:10px;bottom:8px;left:10px;min-height:48px}}@media (max-width:560px){.ffpg-game{padding:66px 5px 10px}.ffpg-page-heading{margin-bottom:9px;padding:0 7px}.ffpg-page-heading h1{font-size:clamp(26px,8.2vw,37px)}.ffpg-page-heading>span{font-size:13px}.ffpg-stage{min-height:970px;border-width:4px;border-radius:25px}.ffpg-prompt{min-height:74px;padding:8px;grid-template-columns:42px 1fr 42px;gap:7px;border-radius:18px}.ffpg-prompt-icon,.ffpg-prompt>button{width:42px;height:42px;min-width:42px;border-radius:14px}.ffpg-prompt h2{font-size:13px}.ffpg-prompt>div>span{font-size:9px}.ffpg-hud{min-height:32px;margin-top:3px;font-size:10px}.ffpg-hud strong{font-size:15px}.ffpg-zone-progress{max-width:calc(100% - 20px)}.ffpg-zone-progress span{width:clamp(20px,7vw,26px);border-width:1px;font-size:9px}.ffpg-console-wrap{top:298px;left:50%;width:116%}.ffpg-core-display span{font-size:clamp(21px,7vw,31px)}.ffpg-fact{padding-inline:4.8%;gap:2px}.ffpg-fact span{font-size:clamp(15px,5vw,23px)}.ffpg-fact .is-symbol{font-size:clamp(13px,4vw,19px)}.ffpg-fact .is-blank{border-width:2px;border-radius:7px}.ffpg-fact>svg{right:2%;width:13px;height:13px}.ffpg-fact.is-active:after{inset:2px}.ffpg-charge{top:88%;width:42%;grid-template-columns:20px 1fr 25px;gap:4px}.ffpg-charge>svg{width:19px;height:19px}.ffpg-charge b{font-size:10px}.ffpg-guide{bottom:222px;width:117px}.ffpg-core-rack{gap:5px}.ffpg-core-rack button{min-height:70px;padding:3px 6px}.ffpg-core-rack button svg{width:17px;height:17px}.ffpg-core-rack button b{font-size:21px}.ffpg-connect b{font-size:13px}.ffpg-feedback p{padding-inline:9px;font-size:12px}}@media (max-height:560px) and (orientation:landscape){.ffpg-game{padding-top:54px}.ffpg-page-heading>span{display:none}.ffpg-page-heading{margin-bottom:6px}.ffpg-page-heading h1{font-size:26px}.ffpg-stage{min-height:760px}.ffpg-prompt{min-height:62px;margin-top:8px}.ffpg-hud{min-height:28px}.ffpg-zone-progress{top:118px}.ffpg-console-wrap{top:122px;left:46%;width:min(600px,55%)}.ffpg-controls{bottom:62px}.ffpg-guide{right:0;bottom:176px;width:158px}}@media (prefers-reduced-motion:reduce){.ffpg-ambient i,.ffpg-fact.is-active:after,.ffpg-guide,.ffpg-guide>span,.ffpg-zone-progress span{animation:none!important}.ffpg-guide.is-correct>span{opacity:1}.ffpg-game *,.ffpg-game :after,.ffpg-game :before{scroll-behavior:auto!important;transition-duration:.01ms!important}}