section[data-game=fraction-gear-forge]{min-height:clamp(560px,calc(100svh - 168px),790px);aspect-ratio:auto;background:#d9a35f}section[data-game=fraction-gear-forge] .game-stage-prompt{top:12px;width:min(620px,calc(100% - 430px));min-height:64px;border-radius:20px;background:rgb(60 48 79/.86);box-shadow:0 7px 18px rgb(41 31 57/.24)}section[data-game=fraction-gear-forge] .game-stage-prompt h2{color:#fff9e8;text-shadow:none!important;-webkit-text-stroke:0!important}body:has(.fgf-game) .how-to button,section[data-game=fraction-gear-forge] .game-stage-prompt button{filter:none!important;text-shadow:none!important}body:has(.fgf-game) .how-to,body:has(.fgf-game) .how-to-panel,body:has(.fgf-game) [role=dialog],body:has(.fgf-game) [role=dialog] *{text-shadow:none!important}body:has(.fgf-game) [role=dialog] h2{filter:none!important;-webkit-text-stroke:0!important}.fgf-game,.fgf-game *{text-shadow:none!important}.fgf-game{position:absolute;inset:0;overflow:hidden;color:#302b48;font-variant-numeric:tabular-nums}.fgf-game button{min-width:48px;min-height:48px;touch-action:manipulation;filter:none!important;-webkit-tap-highlight-color:transparent}.fgf-game button:focus-visible{outline:4px solid #fff45a;outline-offset:3px}.fgf-game button:disabled{cursor:default;opacity:.82}.fgf-hud{position:absolute;z-index:28;top:14px;right:14px;display:grid;grid-template-columns:auto minmax(74px,1fr) auto;align-items:center;gap:8px;width:min(246px,calc(100% - 28px));min-height:48px;padding:7px 11px;border:2px solid rgb(255 255 255/.92);border-radius:18px;background:rgb(255 250 235/.94);box-shadow:0 7px 18px rgb(48 35 58/.2);font-size:13px;font-weight:900}.fgf-hud>span{display:flex;align-items:center;gap:5px;white-space:nowrap}.fgf-hud svg{width:18px;height:18px;color:#cb6a39}.fgf-hud>strong{color:#6b43ba}.fgf-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:3px}.fgf-progress i{height:8px;border-radius:99px;background:#d8d2ce}.fgf-progress i.current{background:#35b7c4;outline:2px solid #fff}.fgf-progress i.done{background:#ffb93e}.fgf-heat{position:absolute;z-index:27;top:17px;left:18px;display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;align-items:center;column-gap:7px;color:#352c46}.fgf-heat>svg{grid-row:1/-1;width:33px;height:33px;color:#ff7a35;fill:#ffd14d}.fgf-heat>span{font-size:10px;font-weight:950;letter-spacing:.12em}.fgf-heat>div{display:flex;gap:3px}.fgf-heat i{width:12px;height:7px;border-radius:99px;background:rgb(255 255 255/.7)}.fgf-heat i.hot{background:#ff8a3d}.fgf-machine{container-type:inline-size;position:absolute;z-index:10;top:88px;left:46%;width:min(396px,37.2vw);transform:translateX(-50%)}.fgf-machine>img{position:relative;z-index:3;display:block;width:100%;height:auto;user-select:none;filter:drop-shadow(0 15px 12px rgb(55 36 50/.28))}.fgf-gear-overlay{position:absolute;z-index:4;left:50%;width:37%;height:auto;color:rgb(255 246 179/.22);stroke-width:1.1;transform:translate(-50%,-50%)}.fgf-gear-top{top:28.5%}.fgf-gear-bottom{top:61.8%;transform:translate(-50%,-50%) rotate(12deg)}.fgf-machine.is-turning .fgf-gear-top{animation:fgf-gear-clockwise .72s ease-in-out}.fgf-machine.is-turning .fgf-gear-bottom{animation:fgf-gear-counter .72s ease-in-out}.fgf-input-plate,.fgf-output-plate{position:absolute;z-index:6;left:50%;display:flex;width:40%;height:6.3%;box-sizing:border-box;align-items:center;justify-content:center;overflow:hidden;border:0;background:transparent;box-shadow:none;transform:translate(-50%,-50%)}.fgf-input-plate{top:27.3%}.fgf-output-plate{top:59.5%}.fgf-input-plate small,.fgf-output-plate small{position:absolute;top:50%;left:5%;color:#7a5362;font-size:clamp(5px,1.7cqw,7px);font-weight:950;letter-spacing:.08em;transform:translateY(-50%)}.fgf-fraction{display:grid;width:34%;min-width:30px;grid-template-rows:1fr 2px 1fr;align-items:center;gap:1px;color:#223d55;font-size:clamp(12px,4.4cqw,16px);font-weight:1000;line-height:.68;text-align:center}.fgf-fraction i{width:100%;height:2px;border-radius:99px;background:#223d55}.fgf-multiplier-core{position:absolute;z-index:7;top:47.4%;left:50%;display:grid;width:19%;aspect-ratio:1;place-items:center;border:2px solid #fff3a5;border-radius:50%;color:#fff;background:#e1743e;font-size:clamp(13px,5.5cqw,22px);font-weight:1000;transform:translate(-50%,-50%)}.fgf-sparks{pointer-events:none;position:absolute;z-index:9;top:84%;left:50%;width:1px;height:1px}.fgf-sparks i{--spark-x:0px;--spark-y:0px;position:absolute;width:8px;height:8px;border-radius:50%;background:#ffe052;opacity:0}.fgf-sparks i:first-child{--spark-x:-62px;--spark-y:-44px}.fgf-sparks i:nth-child(2){--spark-x:-46px;--spark-y:-72px;background:#ff8b3d}.fgf-sparks i:nth-child(3){--spark-x:-20px;--spark-y:-88px}.fgf-sparks i:nth-child(4){--spark-x:12px;--spark-y:-92px;background:#fff6b5}.fgf-sparks i:nth-child(5){--spark-x:42px;--spark-y:-74px;background:#ff8b3d}.fgf-sparks i:nth-child(6){--spark-x:64px;--spark-y:-46px}.fgf-sparks i:nth-child(7){--spark-x:-74px;--spark-y:-18px;background:#fff6b5}.fgf-sparks i:nth-child(8){--spark-x:76px;--spark-y:-18px;background:#ff8b3d}.fgf-sparks i:nth-child(9){--spark-x:-34px;--spark-y:-106px}.fgf-sparks i:nth-child(10){--spark-x:34px;--spark-y:-106px;background:#fff6b5}.fgf-game.is-forged .fgf-sparks i{animation:fgf-spark-burst .9s ease-out both}.fgf-actions{position:absolute;z-index:22;top:175px;right:24px;display:grid;width:min(330px,29vw);min-height:300px;align-content:center;gap:16px;padding:18px 17px;border:3px solid rgb(255 255 255/.9);border-radius:28px;background:rgb(255 249 230/.92);box-shadow:0 12px 30px rgb(53 37 62/.24)}.fgf-actions>p{display:grid;gap:5px;margin:0;text-align:center}.fgf-actions>p span{color:#a15336;font-size:12px;font-weight:950;letter-spacing:.1em;text-transform:uppercase}.fgf-actions>p strong{color:#2c4058;font-size:clamp(21px,2.25vw,30px);line-height:1.05}.fgf-multiplier-choices,.fgf-numerator-choices{display:flex;align-items:center;justify-content:center;gap:10px}.fgf-multiplier-choices button{position:relative;display:grid;width:68px;height:68px;place-items:center;border:3px solid #fff;border-radius:50%;color:#fff;background:linear-gradient(180deg,#35c5c7,#168a9a);box-shadow:0 6px 0 #0c6573}.fgf-multiplier-choices button svg{position:absolute;inset:5px;width:52px;height:52px;opacity:.38}.fgf-multiplier-choices button b{position:relative;z-index:2;color:#15364c;font-size:22px;font-weight:1000;line-height:1}.fgf-multiplier-choices button.correct,.fgf-numerator-choices button.correct{background:#2eb978;box-shadow:0 6px 0 #14764f}.fgf-multiplier-choices button.wrong,.fgf-numerator-choices button.wrong{background:#e97870;box-shadow:0 6px 0 #a74245}.fgf-numerator-choices button{width:58px;height:58px;border:3px solid #fff;border-radius:18px;color:#fff;background:linear-gradient(180deg,#9275e9,#6546bd);box-shadow:0 6px 0 #49328e;font-size:24px;font-weight:1000}.fgf-forged-equation{display:flex;min-height:62px;align-items:center;justify-content:center;gap:8px;color:#16764f;font-size:17px;font-weight:950;text-align:center}.fgf-forged-equation svg{width:24px;height:24px;color:#e69528}.fgf-feedback{display:flex;min-height:42px;align-items:center;justify-content:center;color:#5b5261;font-size:14px;font-weight:850;line-height:1.25;text-align:center}.fgf-feedback.correct{color:#16764f}.fgf-feedback.wrong{color:#a33c45}@keyframes fgf-gear-clockwise{to{transform:translate(-50%,-50%) rotate(180deg)}}@keyframes fgf-gear-counter{to{transform:translate(-50%,-50%) rotate(-168deg)}}@keyframes fgf-spark-burst{0%{opacity:0;transform:translate(0) scale(.4)}18%{opacity:1}to{opacity:0;transform:translate(var(--spark-x),var(--spark-y)) scale(.1)}}@media (max-width:1100px){section[data-game=fraction-gear-forge]{min-height:760px}section[data-game=fraction-gear-forge] .game-stage-prompt{width:min(580px,calc(100% - 270px))}.fgf-hud{top:96px}.fgf-heat{top:102px}.fgf-machine{top:158px;left:34%;width:372px}.fgf-actions{top:218px;right:18px;width:min(300px,36vw);min-height:290px}}@media (max-width:700px){section[data-game=fraction-gear-forge]{min-height:900px}section[data-game=fraction-gear-forge] .game-stage-prompt{top:10px;width:calc(100% - 20px);min-height:62px;padding:7px 70px 7px 10px}section[data-game=fraction-gear-forge] .game-stage-prompt h2{font-size:clamp(17px,4.65vw,24px)}section[data-game=fraction-gear-forge] .game-stage-prompt button{position:absolute;right:10px}.fgf-hud{top:82px;right:9px;width:218px}.fgf-heat{top:88px;left:10px}.fgf-machine{top:132px;left:50%;width:min(294px,76.8vw)}.fgf-actions{top:590px;right:auto;left:50%;width:calc(100% - 18px);min-height:278px;gap:12px;padding:14px 12px;transform:translateX(-50%)}.fgf-actions>p strong{font-size:22px}.fgf-feedback{min-height:36px;font-size:13px}.fraction-gear-forge-mascot{bottom:320px!important;left:-19px!important;width:108px!important}}@media (max-width:390px){section[data-game=fraction-gear-forge]{min-height:880px}.fgf-hud{grid-template-columns:auto minmax(62px,1fr) auto;width:205px;padding-inline:8px;font-size:12px}.fgf-heat i{width:9px}.fgf-machine{top:145px;width:270px}.fgf-actions{top:565px;min-height:286px}.fgf-multiplier-choices button{width:62px;height:62px}.fgf-numerator-choices{gap:7px}.fgf-numerator-choices button{width:53px;height:53px}.fraction-gear-forge-mascot{bottom:330px!important;width:94px!important}}@media (max-height:760px) and (min-width:701px){section[data-game=fraction-gear-forge]{min-height:640px}.fgf-machine{top:128px;width:326.4px}.fgf-actions{top:174px;min-height:270px}}@media (prefers-reduced-motion:reduce){.fgf-gear-overlay,.fgf-machine>img,.fgf-sparks i{animation:none!important;transition:none!important}.fgf-game.is-forged .fgf-sparks i{opacity:.88;transform:translate(calc(var(--spark-x) * .42),calc(var(--spark-y) * .42))}}