.ppp-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,#b9ebef,#fff0d1 70%,#ffd29e)!important;background-image:linear-gradient(180deg,#b9ebef,#fff0d1 70%,#ffd29e)!important}.ppp-game *,.ppp-success *{text-shadow:none!important}.ppp-game button,.ppp-game svg,.ppp-success button,.ppp-success svg{filter:none!important}.ppp-page-heading{position:relative;z-index:2;width:min(1100px,100%);margin:0 auto 14px;padding:0;border:0!important;border-radius:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;text-align:center}.ppp-page-heading:after,.ppp-page-heading:before{display:none!important}.ppp-page-heading p{margin:0 0 4px;color:#087d88;font-size:12px;font-weight:950;letter-spacing:.16em}.ppp-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}.ppp-page-heading>span{display:block;max-width:760px;margin:7px auto 0;color:#526c76;font-size:clamp(14px,2vw,17px);line-height:1.35}.ppp-stage{position:relative;width:min(1180px,100%);min-width:0;min-height:clamp(780px,calc(100svh - 160px),840px);overflow:hidden;border:6px solid #fff;border-radius:38px;outline:none;isolation:isolate;box-shadow:0 18px 38px #62402745}.ppp-stage:focus-visible{outline:5px solid #fff16a;outline-offset:5px}.ppp-background{position:absolute;z-index:0;inset:0;background:linear-gradient(180deg,#0c6b7629,transparent 35%,#744a2a25),url(/games/grade-3/math/perimeter-pipeline-patrol/assets/backgrounds/pipeline-patrol-bg.webp) 50%/cover no-repeat}.ppp-water-glow{position:absolute;z-index:1;inset:0;pointer-events:none}.ppp-water-glow i{position:absolute;width:10px;aspect-ratio:1;border-radius:50%;background:#9effff;box-shadow:0 0 15px 7px #80f8ff80;animation:ppp-bubble 3s ease-in-out infinite}.ppp-water-glow i:first-child{top:32%;left:7%}.ppp-water-glow i:nth-child(2){top:55%;left:18%;width:6px;animation-delay:-1.2s}.ppp-water-glow i:nth-child(3){top:30%;right:9%;width:7px;animation-delay:-2s}.ppp-water-glow i:nth-child(4){top:65%;right:14%;width:11px;animation-delay:-.6s}@keyframes ppp-bubble{50%{transform:translateY(-10px) scale(1.25);opacity:.35}}.ppp-prompt{position:relative;z-index:28;display:grid;width:min(790px,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}.ppp-prompt>div{min-width:0}.ppp-prompt-icon,.ppp-prompt>button{display:grid;width:48px;height:48px;min-width:48px;place-items:center;border:0;border-radius:16px}.ppp-prompt-icon{color:#fff;background:linear-gradient(145deg,#3dd6ce,#078495)}.ppp-prompt-icon svg,.ppp-prompt>button svg{width:25px;height:25px}.ppp-prompt>div>span{display:block;margin-bottom:2px;color:#16838c;font-size:11px;font-weight:950;letter-spacing:.14em}.ppp-prompt h2{margin:0;color:#173f52;font-size:clamp(14px,2vw,20px);line-height:1.25}.ppp-prompt>button{cursor:pointer;color:#fff;background:linear-gradient(180deg,#ff9a77,#eb5a5f);box-shadow:inset 0 2px 0 #ffd4c4,0 4px 0 #b23e4e}.ppp-hud{position:relative;z-index:27;display:flex;width:min(760px,calc(100% - 260px));min-height:38px;margin:5px auto 0;align-items:center;justify-content:space-between;gap:10px;color:#fff;font-size:13px;font-weight:950}.ppp-hud span{display:inline-flex;align-items:center;gap:5px}.ppp-hud svg{width:18px;height:18px}.ppp-hud span:first-child svg{fill:#ffe36a;color:#f7c63c}.ppp-hud span:last-child svg{color:#ffdf75}.ppp-hud strong{font-size:18px}.ppp-order{position:absolute;z-index:23;top:145px;left:18px;display:grid;width:190px;padding:12px 14px;gap:2px;border:solid #fff;border-width:4px 4px 8px;border-radius:22px;color:#174c5b;background:linear-gradient(160deg,#fffdf3,#fff0cc);box-shadow:0 8px 18px #4d2d253b}.ppp-order>span{color:#996047;font-size:9px;font-weight:950;letter-spacing:.12em}.ppp-order>strong{font-size:34px;line-height:1}.ppp-order strong small{margin-left:3px;font-size:15px}.ppp-order>i{height:2px;margin:6px 0;background:#d8bb8e}.ppp-order>b{font-size:18px}.ppp-progress{position:absolute;z-index:23;top:146px;right:18px;display:flex;gap:6px;padding:7px;border:2px solid #fff9;border-radius:18px;background:#0d6575ce;box-shadow:0 5px 12px #18343b3d}.ppp-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}.ppp-progress span.is-current{outline:3px solid #ffdf65;outline-offset:2px}.ppp-progress span.is-done{color:#fff;background:linear-gradient(160deg,#52d9bd,#169b8d);animation:ppp-badge-pop .6s ease-out}@keyframes ppp-badge-pop{45%{transform:translateY(-6px) rotate(5deg) scale(1.13)}}.ppp-rig-position{position:absolute;z-index:8;top:155px;left:50%;width:min(700px,62%);aspect-ratio:3/2;transform:translateX(-50%);filter:drop-shadow(0 13px 12px #57362954)}.ppp-rig,.ppp-rig-motion{width:100%;height:100%}.ppp-rig{position:relative}.ppp-rig-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.ppp-board{position:absolute;z-index:3;top:17%;left:23.5%;width:53%;height:48%}.ppp-board svg{display:block;width:100%;height:100%;overflow:visible}.ppp-blueprint-grid{fill:none;stroke:#2f80901a;stroke-width:.6}.ppp-pipe-segment{stroke:#15536a;stroke-width:7;stroke-linecap:round}.ppp-pipe-segment:not(.is-missing){filter:drop-shadow(0 1px 0 #fff)}.ppp-pipe-segment.is-missing{stroke:#ef765f;stroke-width:4;stroke-dasharray:2.5 3}.ppp-pipe-segment.is-repaired{stroke:#29c98d;stroke-width:7;stroke-dasharray:none}.ppp-label-halo{fill:#fff!important;stroke:#fff!important;stroke-width:1.2!important}.ppp-length-label circle:not(.ppp-label-halo){fill:#fff8dd;stroke:#c8922b;stroke-width:1.15}.ppp-length-label text,.ppp-missing-label text{fill:#123f51;font-size:7.3px;font-weight:950;text-anchor:middle}.ppp-missing-label circle:not(.ppp-label-halo){fill:#fff;stroke:#ef765f;stroke-width:1.4;stroke-dasharray:2 1}.ppp-missing-label.has-selection circle:not(.ppp-label-halo){fill:#fff1bd;stroke:#df9a29;stroke-dasharray:none}.ppp-result-correct .ppp-missing-label circle:not(.ppp-label-halo){fill:#dfffea;stroke:#189c72;stroke-dasharray:none}.ppp-water-flow{fill:none;stroke:var(--pipe-color);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:3 5;opacity:.78;animation:ppp-water-run 1.1s linear infinite}@keyframes ppp-water-run{to{stroke-dashoffset:-16}}.ppp-patrol-bot circle{fill:#ffdf60;stroke:#126079;stroke-width:1.2}.ppp-patrol-bot text{font-size:6px}.ppp-patrol-bot{transform:translate(18px,18px)}.ppp-guide{position:absolute;z-index:24;right:4px;bottom:72px;width:clamp(145px,16vw,195px);aspect-ratio:1;pointer-events:none;transform-origin:50% 92%;animation:ppp-guide-float 3s ease-in-out infinite}.ppp-guide img{width:100%;height:100%;object-fit:contain;transform:scaleX(-1);transform-origin:center}.ppp-guide>span{position:absolute;z-index:2;top:3%;right:5%;opacity:0;font-size:30px}.ppp-guide.is-correct{animation:ppp-guide-cheer 1s cubic-bezier(.2,1.2,.3,1)}.ppp-guide.is-correct>span{animation:ppp-sparkle-pop .8s ease-out}.ppp-guide.is-wrong{animation:ppp-guide-wrong .55s ease-in-out}@keyframes ppp-guide-float{50%{transform:translateY(-6px) rotate(1deg)}}@keyframes ppp-guide-cheer{28%{transform:translateY(-24px) rotate(-7deg) scale(1.08)}58%{transform:translateY(0) rotate(5deg)}78%{transform:translateY(-10px) rotate(-3deg)}}@keyframes ppp-guide-wrong{35%{transform:rotate(-3deg)}70%{transform:rotate(3deg)}}@keyframes ppp-sparkle-pop{0%{opacity:0;transform:scale(.2)}45%{opacity:1;transform:translateY(-15px) scale(1.25)}to{opacity:0;transform:translateY(-28px)}}.ppp-controls{position:absolute;z-index:26;bottom:66px;left:50%;display:grid;width:min(700px,calc(100% - 300px));min-height:78px;grid-template-columns:1fr 190px 58px;align-items:stretch;gap:9px;transform:translateX(-50%)}.ppp-pipe-rack{display:grid;min-width:0;grid-template-columns:repeat(4,1fr);gap:7px}.ppp-clear,.ppp-connect,.ppp-pipe-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}.ppp-pipe-rack button{display:grid;padding:5px;grid-template-columns:1fr auto auto;align-items:center;color:#155367;background:linear-gradient(180deg,#eafff8,#7ee0d0)}.ppp-pipe-rack button i{position:relative;display:block;min-width:30px;height:16px;border:3px solid #b87931;border-radius:9px;background:linear-gradient(180deg,#ffe37e,#f4aa35)}.ppp-pipe-rack button i:after,.ppp-pipe-rack button i:before{content:"";position:absolute;top:-5px;width:7px;height:20px;border-radius:4px;background:#d68d2e}.ppp-pipe-rack button i:before{left:-4px}.ppp-pipe-rack button i:after{right:-4px}.ppp-pipe-rack button b{font-size:20px}.ppp-pipe-rack button small{font-size:10px}.ppp-pipe-rack button.is-selected{color:#7b4a0f;background:linear-gradient(180deg,#fff39b,#ffc64f);outline:4px solid #fff26f;outline-offset:2px;transform:translateY(-3px)}.ppp-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}.ppp-connect svg{width:24px;height:24px}.ppp-connect b{font-size:14px}.ppp-clear{display:grid;padding:0;place-items:center;color:#fff;background:linear-gradient(180deg,#43cbc8,#168998)}.ppp-clear svg{width:23px;height:23px}.ppp-controls button:disabled{cursor:default;opacity:.55}.ppp-feedback{position:absolute;z-index:27;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}.ppp-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}.ppp-feedback svg{width:18px;height:18px;color:#12908a;flex:0 0 auto}.ppp-result-correct .ppp-feedback{color:#08734f;background:#efffe9ed}.ppp-result-correct .ppp-feedback svg{color:#14956f}.ppp-result-wrong .ppp-feedback{color:#9d3c47;background:#fff3f3ed}.ppp-result-wrong .ppp-feedback svg{color:#d1525f}.ppp-game button:focus-visible{outline:4px solid #fff56d;outline-offset:4px}.ppp-success a,.ppp-success button,.ppp-success h2,.ppp-success p{text-shadow:none!important}@media (max-width:1100px){.ppp-guide{bottom:160px;width:110px}}@media (max-width:900px){.ppp-prompt{width:calc(100% - 170px);margin-top:66px}.ppp-hud{width:calc(100% - 190px)}.ppp-order{top:196px;width:165px}.ppp-progress{top:198px}.ppp-progress span{width:27px}.ppp-rig-position{top:230px;width:min(650px,72%)}.ppp-controls{width:calc(100% - 210px);grid-template-columns:1fr 170px 54px}.ppp-feedback{right:170px;left:170px}.ppp-guide{right:0;bottom:160px;width:100px}}@media (max-width:700px){.ppp-stage{min-height:930px}.ppp-prompt{width:calc(100% - 24px);margin-top:66px}.ppp-hud{width:calc(100% - 32px)}.ppp-order{top:196px;left:10px;width:145px;padding:9px 10px;border-width:3px 3px 6px}.ppp-order>strong{font-size:28px}.ppp-progress{top:198px;right:10px;gap:3px;padding:5px}.ppp-progress span{width:24px}.ppp-rig-position{top:300px;width:min(570px,86%)}.ppp-controls{bottom:68px;width:calc(100% - 28px);min-height:138px;grid-template-columns:1fr 58px;grid-template-rows:72px 58px;gap:8px}.ppp-pipe-rack{grid-column:1/-1;grid-row:1}.ppp-connect{grid-column:1}.ppp-clear,.ppp-connect{grid-row:2;min-height:58px}.ppp-clear{grid-column:2}.ppp-pipe-rack button{min-height:72px;border-radius:17px}.ppp-pipe-rack button i{min-width:24px}.ppp-guide{right:0;bottom:218px;width:80px}.ppp-feedback{right:10px;bottom:8px;left:10px;min-height:48px}}@media (max-width:560px){.ppp-game{padding:66px 5px 10px}.ppp-page-heading{margin-bottom:9px;padding:0 7px}.ppp-page-heading h1{font-size:clamp(26px,8.2vw,37px)}.ppp-page-heading>span{font-size:13px}.ppp-stage{min-height:950px;border-width:4px;border-radius:25px}.ppp-prompt{min-height:74px;padding:8px;grid-template-columns:42px 1fr 42px;gap:7px;border-radius:18px}.ppp-prompt-icon,.ppp-prompt>button{width:42px;height:42px;min-width:42px;border-radius:14px}.ppp-prompt h2{font-size:13px}.ppp-prompt>div>span{font-size:9px}.ppp-hud{min-height:32px;margin-top:3px;font-size:10px}.ppp-hud strong{font-size:15px}.ppp-order{width:137px;border-radius:18px}.ppp-order>span{font-size:8px}.ppp-progress{max-width:calc(100% - 169px)}.ppp-progress span{width:clamp(19px,6vw,24px);border-width:1px;font-size:9px}.ppp-rig-position{top:302px;width:108%}.ppp-board{top:17%}.ppp-guide{bottom:222px;width:78px}.ppp-pipe-rack{gap:4px}.ppp-pipe-rack button{min-height:70px;padding:3px;grid-template-columns:1fr auto}.ppp-pipe-rack button i{grid-column:1/-1;width:38px;margin:0 auto}.ppp-pipe-rack button b{font-size:17px}.ppp-pipe-rack button small{font-size:9px}.ppp-connect b{font-size:13px}.ppp-feedback p{padding-inline:9px;font-size:12px}}@media (max-height:560px) and (orientation:landscape){.ppp-game{padding-top:54px}.ppp-page-heading>span{display:none}.ppp-page-heading{margin-bottom:6px}.ppp-page-heading h1{font-size:26px}.ppp-stage{min-height:650px}.ppp-prompt{min-height:62px;margin-top:8px}.ppp-hud{min-height:28px}.ppp-order,.ppp-progress{top:116px}.ppp-rig-position{top:116px;width:min(560px,58%)}.ppp-controls{bottom:62px}.ppp-guide{right:0;bottom:176px;width:105px}}@media (prefers-reduced-motion:reduce){.ppp-guide,.ppp-guide>span,.ppp-progress span,.ppp-water-flow,.ppp-water-glow i{animation:none!important}.ppp-guide.is-correct>span{opacity:1}.ppp-game *,.ppp-game :after,.ppp-game :before{scroll-behavior:auto!important;transition-duration:.01ms!important}}