.frd-page{min-height:100svh;padding:68px 12px 20px;background:linear-gradient(#d9f4f4,#ffeacb);color:#183f49}.frd-page,.frd-page *,.frd-success *{text-shadow:none!important;filter:none!important}.frd-heading{width:min(1180px,100%);margin:0 auto 15px;text-align:center}.frd-heading p{margin:0;color:#167e83;font-size:.82rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.frd-heading h1{margin:3px 0;color:#a9503e;font-size:clamp(2rem,4vw,3.5rem);line-height:1.04;font-weight:1000;letter-spacing:-.04em}.frd-heading span{display:block;font-size:clamp(.95rem,1.5vw,1.1rem);font-weight:750}.frd-stage{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;width:min(1180px,100%);min-height:clamp(540px,calc(100svh - 168px),790px);margin:auto;overflow:hidden;border:6px solid #fff;border-radius:38px;background:#9ee0ed;box-shadow:0 22px 45px #1f53683d;padding:108px 24px 48px}.frd-background{position:absolute;z-index:-2;inset:0;background:url(/games/grade-4/math/fraction-ruler-dock/assets/background-far.webp) 50%/cover no-repeat;pointer-events:none}.frd-top{position:absolute;z-index:3;top:15px;left:145px;right:18px;align-items:flex-start;justify-content:center}.frd-prompt,.frd-top{display:flex;gap:12px}.frd-prompt{align-items:center;justify-content:space-between;width:min(680px,100%);min-height:66px;padding:9px 9px 9px 17px;border-radius:19px;background:#fffaf1f5;box-shadow:0 7px 18px #22515b35}.frd-prompt p{margin:0;font-size:clamp(1rem,1.6vw,1.17rem);font-weight:850;line-height:1.2}.frd-prompt strong{color:#aa4b39}.frd-prompt button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:95px;min-height:50px;border:2px solid #fff;border-radius:14px;background:#117e89;color:#fff;font-weight:900;cursor:pointer;touch-action:manipulation}.frd-prompt button svg{width:19px;height:19px}.frd-hud{display:flex;flex:0 0 auto;align-items:center;gap:6px;min-height:52px;font-size:.92rem;font-weight:950}.frd-hud span{padding:6px 9px;border-radius:999px;background:#fff9e9e8;white-space:nowrap}.frd-machine{position:relative;z-index:1;flex:0 0 auto;width:155px;height:113px;margin:-5px 0 -8px}.frd-machine img{object-fit:contain;pointer-events:none}.frd-measure-scene{position:relative;z-index:2;width:min(720px,100%);padding:11px 12px 8px;border:5px solid #fff;border-bottom:10px solid #b56e4f;border-radius:23px;background:#fff9e9ef;box-shadow:0 12px 25px #15434d3d}.frd-meter-labels{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#154b55;font-size:clamp(.86rem,1.4vw,1rem);font-weight:950}.frd-meter-labels span{padding:5px 8px;border-radius:8px;background:#ddf5ea}.frd-ruler-window{width:100%;max-width:675px;margin:0 auto;overflow:hidden;touch-action:none;cursor:grab;outline-offset:3px}.frd-ruler-window:active{cursor:grabbing}.frd-ruler-window:focus-visible{outline:4px solid #163d85}.frd-ruler-window svg{display:block;width:100%;height:auto}.frd-task{z-index:2;width:min(700px,100%);min-height:47px;display:grid;place-items:center;margin-top:10px;padding:7px 14px;border-radius:14px;background:#145664f0;color:#fff;text-align:center;font-size:clamp(1rem,1.7vw,1.17rem);font-weight:950}.frd-controls{position:relative;z-index:2;width:min(940px,100%);min-height:105px;margin-top:9px}.frd-align-controls,.frd-choices,.frd-controls{display:flex;justify-content:center;align-items:center}.frd-align-controls,.frd-choices{flex-wrap:wrap;gap:9px;width:min(680px,calc(100% - 210px));margin:0 0 0 160px;padding:0;border:0}.frd-controls button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:58px;min-width:145px;padding:8px 14px;border:3px solid #fff;border-bottom:7px solid #a86749;border-radius:16px;background:linear-gradient(#fff8ca,#ffc997);box-shadow:0 7px 13px #56402c35;color:#493931;font-size:1.06rem;font-weight:1000;cursor:pointer;touch-action:manipulation}.frd-controls button svg{width:19px;height:19px}.frd-controls button:hover:not(:disabled){transform:translateY(-2px)}.frd-controls button:disabled{opacity:.55;cursor:default}.frd-controls button.frd-lock{background:linear-gradient(#d9faed,#6fd3ba);border-bottom-color:#318879;color:#14524b}.frd-controls button.is-wrong{background:#ffe1d7;border-bottom-color:#a94d49;color:#913d3a}.frd-controls button.is-correct{background:#d6f8da;border-bottom-color:#38a279;color:#216a4e}.frd-choices legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.frd-cherry{position:absolute;left:0;bottom:0;width:155px;height:150px;pointer-events:none}.frd-cherry img{object-fit:contain;object-position:bottom left}.frd-feedback{z-index:2;max-width:min(700px,calc(100% - 200px));min-height:28px;margin:4px 0 0;padding:4px 10px;border-radius:9px;background:#fff8e9ee;color:#164b53;text-align:center;font-size:.97rem;font-weight:850}.frd-checkpoints{position:absolute;z-index:2;right:23px;bottom:9px;display:flex;gap:6px;padding:7px 11px;border-radius:999px;background:#fff8e8ed;color:#568389;font-size:1.5rem;line-height:1}.frd-checkpoints .is-lit{color:#eea229}.frd-stage button:focus-visible{outline:4px solid #163d85;outline-offset:4px}.frd-page .how-to-panel{animation:none}.frd-page .how-to-panel button,.frd-page .how-to-trigger{min-width:48px;min-height:48px}.frd-success #success-title{color:#a54836;-webkit-text-stroke:0!important;text-shadow:none!important}@media(max-width:900px){.frd-top{left:125px;gap:6px}.frd-hud{flex-wrap:wrap;justify-content:center;max-width:150px;gap:0}.frd-hud span{padding:2px 4px}.frd-align-controls,.frd-choices{width:calc(100% - 160px);margin-left:145px}.frd-controls button{min-width:120px}.frd-cherry{width:140px;height:140px}.frd-feedback{max-width:calc(100% - 160px)}}@media(max-width:700px){.frd-stage{min-height:calc(100svh - 126px);padding:152px 14px 55px}.frd-top{top:70px;left:12px;right:12px;flex-direction:column;align-items:stretch}.frd-prompt{margin-left:80px;width:calc(100% - 80px);min-height:58px}.frd-hud{align-self:flex-end;max-width:none;min-height:26px;flex-wrap:nowrap}.frd-machine{width:125px;height:90px}.frd-measure-scene{margin-top:5px}.frd-align-controls,.frd-choices{width:calc(100% - 130px);margin-left:125px}.frd-controls button{min-height:48px}.frd-feedback{max-width:100%}.frd-checkpoints{right:13px;bottom:9px}}@media(max-width:560px){.frd-page{padding:66px 5px 10px}.frd-heading{margin-bottom:8px}.frd-heading h1{font-size:clamp(1.8rem,7vw,2.5rem)}.frd-heading span{font-size:.88rem}.frd-stage{padding:183px 9px 55px;border-width:4px;border-radius:25px}.frd-top{top:70px;left:9px;right:9px}.frd-prompt{margin-left:58px;width:calc(100% - 58px);min-height:67px;padding:7px;gap:5px}.frd-prompt p{font-size:.82rem}.frd-prompt button{min-width:50px;min-height:50px;padding:4px}.frd-prompt button span{display:none}.frd-machine{width:110px;height:76px;margin-top:-3px}.frd-measure-scene{padding:8px 6px 4px;border-width:3px 3px 8px;border-radius:15px}.frd-meter-labels{font-size:.68rem;gap:4px}.frd-meter-labels span{padding:4px}.frd-task{font-size:.88rem;min-height:44px}.frd-controls{min-height:150px}.frd-align-controls,.frd-choices{width:calc(100% - 105px);margin-left:100px;gap:4px}.frd-controls button{width:100%;min-width:0;min-height:48px;padding:3px 5px;font-size:.84rem;border-bottom-width:5px}.frd-controls button svg{width:15px;height:15px}.frd-cherry{width:100px;height:120px}.frd-feedback{font-size:.81rem}.frd-checkpoints{right:8px;bottom:9px;font-size:1.25rem}}@media(max-width:360px){.frd-prompt p{font-size:.76rem}.frd-cherry{width:88px;height:105px}.frd-align-controls,.frd-choices{width:calc(100% - 93px);margin-left:88px}.frd-meter-labels{font-size:.62rem}}@media(prefers-reduced-motion:reduce){.frd-controls button{transition:none!important;transform:none!important}}