.pfr-page{min-height:100svh;padding:68px 12px 20px;background:linear-gradient(#def4ec,#fff1db);color:#19494b}.pfr-page,.pfr-page *,.pfr-success *{text-shadow:none!important;filter:none!important}.pfr-heading{width:min(1180px,100%);margin:0 auto 15px;text-align:center}.pfr-heading p{margin:0;color:#23866e;font-size:.82rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.pfr-heading h1{margin:3px 0;color:#aa563e;font-size:clamp(2rem,4vw,3.5rem);line-height:1.04;font-weight:1000;letter-spacing:-.04em}.pfr-heading span{display:block;font-size:clamp(.95rem,1.5vw,1.1rem);font-weight:750}.pfr-stage{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;width:min(1180px,100%);min-height:780px;margin:auto;overflow:hidden;border:6px solid white;border-radius:38px;background:#efcf9d;box-shadow:0 22px 45px #1f53683d;padding:133px 22px 24px}.pfr-background{position:absolute;z-index:-2;inset:0;background:url(/games/grade-4/math/perimeter-fence-rescue/assets/backgrounds/fence-garden.webp) 50%/cover no-repeat;pointer-events:none}.pfr-top{position:absolute;z-index:5;top:15px;left:145px;right:18px;display:flex;align-items:flex-start;justify-content:center;gap:14px}.pfr-prompt{display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(650px,100%);min-height:66px;padding:9px 9px 9px 17px;border-radius:19px;background:#fffaf0f5;box-shadow:0 7px 18px #22515b35}.pfr-prompt p{margin:0;font-size:clamp(1rem,1.6vw,1.2rem);font-weight:850;line-height:1.2}.pfr-prompt strong{color:#9f4f39}.pfr-prompt button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:92px;min-height:50px;border:2px solid white;border-radius:14px;background:#188175;color:white;font-weight:900;cursor:pointer;touch-action:manipulation}.pfr-prompt button svg{width:19px;height:19px}.pfr-prompt button:disabled{opacity:.55;cursor:default}.pfr-hud{display:flex;flex:0 0 auto;align-items:center;gap:6px;min-height:52px;font-size:.92rem;font-weight:950}.pfr-hud span{padding:6px 8px;border-radius:999px;background:#fff9e9e8;white-space:nowrap}.pfr-garden-wrap{position:relative;z-index:2;width:min(500px,100%);margin:0 auto}.pfr-map-heading{display:flex;justify-content:space-between;gap:8px;padding:5px 13px;border-radius:14px;background:#fff9e6e8;color:#27544b;font-size:.9rem;font-weight:1000}.pfr-map{display:block;width:100%;height:auto;overflow:visible}.pfr-garden-fill{fill:#9ed486;stroke:#428b66;stroke-width:6;stroke-linejoin:round}.pfr-grid line{stroke:#fff8d3;stroke-width:2;opacity:.78}.pfr-map-edge line{stroke:#f5ead4;stroke-width:8;stroke-dasharray:12 7;stroke-linecap:round}.pfr-map-edge.fenced line{stroke:#d59b42;stroke-width:12;stroke-dasharray:none}.pfr-map-edge.wrong line{stroke:#d86b62;stroke-width:11;stroke-dasharray:none}.pfr-map-edge circle{fill:#fff7e6;stroke:#467e69;stroke-width:2}.pfr-map-edge.fenced circle{fill:#ffe0a1;stroke:#b57735}.pfr-map-edge.wrong circle{fill:#ffddd7;stroke:#bb5c55}.pfr-map-edge text{fill:#244b4b;font-size:17px;font-weight:1000;pointer-events:none}.pfr-action{position:relative;z-index:3;width:min(640px,100%);min-height:116px;margin:1px auto 0}.pfr-edge-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;width:100%}.pfr-edge-choices button,.pfr-total-choices button{min-width:0;min-height:52px;border:2px solid white;border-bottom:5px solid #ab704c;border-radius:12px;background:linear-gradient(#fff9df,#fbd5aa);box-shadow:0 4px 8px #6d593d36;color:#214c51;font-weight:1000;cursor:pointer;touch-action:manipulation}.pfr-edge-choices button span,.pfr-edge-choices button strong{display:block;line-height:1.07}.pfr-edge-choices button strong{font-size:1rem}.pfr-edge-choices button span{font-size:.82rem}.pfr-edge-choices button:hover:not(:disabled),.pfr-total-choices button:hover:not(:disabled){background:#e1f7dc}.pfr-edge-choices button:disabled,.pfr-total-choices button:disabled{cursor:default}.pfr-edge-choices button.fenced{background:#d5f2cf;border-bottom-color:#6a9c6b}.pfr-edge-choices button.wrong,.pfr-total-choices button.wrong{background:#ffdfd8;border-bottom-color:#b75e58;color:#863f38}.pfr-total-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;padding-top:18px}.pfr-total-choices button{min-height:70px;font-size:1.35rem}.pfr-rescued{display:grid;place-items:center;min-height:80px;border:3px solid white;border-radius:17px;background:#dcf3d6;color:#286143;font-size:1.25rem;font-weight:1000}.pfr-feedback{position:relative;z-index:3;max-width:min(660px,100%);min-height:44px;margin:9px 0 0;padding:8px 15px;border-radius:12px;background:#fff9edec;color:#19514d;text-align:center;font-size:.98rem;font-weight:850;line-height:1.25}.pfr-cherry{position:absolute;z-index:3;left:-240px;bottom:0;width:220px;height:200px;pointer-events:none}.pfr-cherry img{object-fit:contain;object-position:bottom left}.pfr-status{position:relative;z-index:3;display:flex;align-items:center;justify-content:flex-end;gap:8px;width:100%;min-height:38px;margin-top:8px}.pfr-edge-count{color:#245853;font-size:.98rem;font-weight:1000;white-space:nowrap}.pfr-checkpoints,.pfr-edge-count{padding:7px 11px;border-radius:999px;background:#fff8e8ed}.pfr-checkpoints{display:flex;gap:6px;color:#568389;font-size:1.6rem;line-height:1}.pfr-checkpoints .lit{color:#f0a62d}.pfr-stage button:focus-visible{outline:4px solid #163d85;outline-offset:3px}.pfr-page .how-to-panel{animation:none}.pfr-page .how-to-panel button,.pfr-page .how-to-trigger{min-width:48px;min-height:48px}.pfr-success #success-title{color:#a54836;-webkit-text-stroke:0!important;text-shadow:none!important}@media(max-width:900px){.pfr-top{left:125px;gap:6px}.pfr-hud{flex-wrap:wrap;justify-content:center;max-width:150px;gap:0}.pfr-hud span{padding:2px 4px}.pfr-action{width:min(520px,calc(100% - 205px));margin-left:auto;margin-right:0}.pfr-cherry{left:-198px;width:190px;height:175px}}@media(max-width:700px){.pfr-stage{min-height:0;padding:175px 12px 24px}.pfr-top{top:70px;left:12px;right:12px;flex-direction:column;align-items:stretch}.pfr-prompt{margin-left:80px;width:calc(100% - 80px);min-height:58px}.pfr-hud{align-self:flex-end;max-width:none;min-height:26px;flex-wrap:nowrap}.pfr-action{width:calc(100% - 175px)}.pfr-cherry{left:-173px;width:165px;height:150px}}@media(max-width:560px){.pfr-page{padding:66px 5px 10px}.pfr-heading{margin-bottom:8px}.pfr-heading h1{font-size:clamp(1.62rem,6.5vw,2.4rem)}.pfr-heading span{font-size:.88rem}.pfr-stage{padding:185px 9px 24px;border-width:4px;border-radius:25px}.pfr-top{top:70px;left:9px;right:9px}.pfr-prompt{margin-left:58px;width:calc(100% - 58px);min-height:64px;padding:7px;gap:5px}.pfr-prompt p{font-size:.82rem}.pfr-prompt button{min-width:50px;min-height:50px;padding:4px}.pfr-prompt button span{display:none}.pfr-map-heading{font-size:.7rem;padding:4px 7px}.pfr-action{width:calc(100% - 130px);min-height:108px}.pfr-edge-choices{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.pfr-edge-choices button{min-height:50px;padding:2px 0;border-radius:8px}.pfr-edge-choices button strong{font-size:.84rem}.pfr-edge-choices button span{font-size:.7rem}.pfr-total-choices{gap:5px;padding-top:8px}.pfr-total-choices button{min-height:58px;font-size:1rem}.pfr-feedback{font-size:.82rem}.pfr-cherry{left:-130px;width:125px;height:135px}.pfr-edge-count{font-size:.82rem}.pfr-checkpoints{font-size:1.3rem}}@media(max-width:360px){.pfr-prompt p{font-size:.76rem}.pfr-action{width:calc(100% - 115px)}.pfr-edge-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.pfr-cherry{left:-113px;width:110px;height:123px}.pfr-edge-choices button span{font-size:.64rem}}@media(prefers-reduced-motion:reduce){.pfr-edge-choices button,.pfr-total-choices button{transition:none!important}}