.pmr-page{min-height:100svh;padding:68px 12px 20px;background:linear-gradient(#d7f4f3,#fff0e2);color:#153f49}.pmr-page,.pmr-page *,.pmr-success *{text-shadow:none!important;filter:none!important}.pmr-heading{width:min(1180px,100%);margin:0 auto 15px;text-align:center}.pmr-heading p{margin:0;color:#187a80;font-size:.82rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.pmr-heading h1{margin:3px 0;color:#a94840;font-size:clamp(2rem,4vw,3.5rem);line-height:1.04;font-weight:1000;letter-spacing:-.04em}.pmr-heading span{display:block;font-size:clamp(.95rem,1.5vw,1.1rem);font-weight:750}.pmr-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 white;border-radius:38px;background:#f6ba9e;box-shadow:0 22px 45px #1f53683d;padding:166px 24px 50px}.pmr-background{position:absolute;z-index:-2;inset:0;background:url(/games/grade-4/math/parity-maze-relay/assets/backgrounds/parity-maze.webp) 50%/cover no-repeat;pointer-events:none}.pmr-top{position:absolute;z-index:5;top:15px;left:145px;right:18px;display:flex;align-items:flex-start;justify-content:center;gap:14px}.pmr-prompt{display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(620px,100%);min-height:66px;padding:9px 9px 9px 17px;border-radius:19px;background:#fffaf0f5;box-shadow:0 7px 18px #22515b35}.pmr-prompt p{margin:0;font-size:clamp(1rem,1.6vw,1.2rem);font-weight:850;line-height:1.2}.pmr-prompt p strong{color:#a94840;font-size:1.2em}.pmr-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:#117e89;color:white;font-weight:900;cursor:pointer;touch-action:manipulation}.pmr-prompt button svg{width:19px;height:19px}.pmr-hud{display:flex;flex:0 0 auto;align-items:center;gap:6px;min-height:52px;font-size:.92rem;font-weight:950}.pmr-hud span{padding:6px 8px;border-radius:999px;background:#fff9e9e0;white-space:nowrap}.pmr-phase{z-index:2;padding:5px 15px;border-radius:999px;background:#185e65;color:white;font-size:.87rem;font-weight:1000;letter-spacing:.08em}.pmr-expression{z-index:2;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;max-width:95%;min-height:76px;margin:11px auto 0;padding:9px 20px;border-radius:20px;background:#fff9eaeF;color:#1c4e59;font-size:clamp(1.55rem,4vw,2.8rem);font-weight:1000;line-height:1.1;box-shadow:0 7px 18px #5e4f4033}.pmr-operator{color:#a74a3c}.pmr-unknown{color:#16888b}.pmr-gate-row{position:relative;z-index:2;width:min(100%,820px);margin-top:-2px}.pmr-gate{position:relative;flex:0 0 auto;width:min(480px,72vw);aspect-ratio:1;margin:0 auto}.pmr-gate img{object-fit:contain;pointer-events:none}.pmr-door{position:absolute;z-index:3;top:61%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:24%;min-height:72px;transform:translate(-50%,-50%);border:3px solid #fff;border-bottom:6px solid #96644c;border-radius:16px;background:linear-gradient(#fff6c9,#ffc995);box-shadow:0 7px 12px #553e3a4d;color:#304652;font-weight:1000;cursor:pointer;touch-action:manipulation;transition:background .2s,scale .2s}.pmr-door.odd{left:29%}.pmr-door.even{left:71%}.pmr-door span{font-size:1.22rem}.pmr-door small{font-size:.72rem;font-weight:850}.pmr-door:hover:not(:disabled){scale:1.06}.pmr-door:disabled{cursor:default}.pmr-door.wrong{background:#ffdbd9;border-bottom-color:#b9514d;color:#953c36}.pmr-door.open{background:#b6f4ce;border-bottom-color:#2e9e79;color:#175e4a;box-shadow:0 0 0 5px #ffedb6,0 8px 18px #1b8e7459}.pmr-feedback{position:relative;z-index:2;max-width:min(610px,100%);min-height:39px;margin:1px 0 0;padding:7px 13px;border-radius:12px;background:#fff9edec;color:#194d56;text-align:center;font-size:.98rem;font-weight:850;line-height:1.25}.pmr-cherry{position:absolute;z-index:3;left:0;top:calc(61% - 80px);width:160px;height:160px;pointer-events:none}.pmr-cherry img{object-fit:contain;object-position:bottom left}.pmr-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.6rem;line-height:1}.pmr-checkpoints .lit{color:#f0a62d}.pmr-stage button:focus-visible{outline:4px solid #173e87;outline-offset:4px}.pmr-page .how-to-panel{animation:none}.pmr-page .how-to-panel button,.pmr-page .how-to-trigger{min-width:48px;min-height:48px}.pmr-success #success-title{color:#a54836;-webkit-text-stroke:0!important;text-shadow:none!important}@media(max-width:900px){.pmr-top{left:125px;gap:6px}.pmr-hud{flex-wrap:wrap;justify-content:center;max-width:150px;gap:0}.pmr-hud span{padding:2px 4px}.pmr-gate{width:min(450px,72vw)}.pmr-cherry{width:110px;height:120px;top:calc(61% - 60px)}}@media(max-width:700px){.pmr-stage{min-height:clamp(650px,calc(100svh - 300px),760px);padding:180px 12px 55px}.pmr-top{top:70px;left:12px;right:12px;flex-direction:column;align-items:stretch}.pmr-prompt{margin-left:80px;width:calc(100% - 80px);min-height:58px}.pmr-hud{align-self:flex-end;max-width:none;min-height:26px;flex-wrap:nowrap}.pmr-gate{width:min(400px,calc(100% - 50px));margin-right:0}.pmr-cherry{width:100px;height:110px;top:calc(61% - 55px)}.pmr-checkpoints{right:13px;bottom:9px}}@media(max-width:560px){.pmr-page{padding:66px 5px 10px}.pmr-heading{margin-bottom:8px}.pmr-heading h1{font-size:clamp(1.8rem,7vw,2.5rem)}.pmr-heading span{font-size:.88rem}.pmr-stage{padding:192px 9px 50px;border-width:4px;border-radius:25px}.pmr-top{top:70px;left:9px;right:9px}.pmr-prompt{margin-left:58px;width:calc(100% - 58px);min-height:64px;padding:7px;gap:5px}.pmr-prompt p{font-size:.82rem}.pmr-prompt button{min-width:50px;min-height:50px;padding:4px}.pmr-prompt button span{display:none}.pmr-phase{font-size:.76rem}.pmr-expression{gap:5px;min-height:63px;margin-top:8px;padding:8px 10px;font-size:clamp(1.35rem,6vw,1.8rem)}.pmr-gate-row{margin-top:2px}.pmr-gate{width:min(350px,calc(100% - 50px))}.pmr-door{min-height:55px;border-width:2px 2px 4px;border-radius:10px}.pmr-door span{font-size:.91rem}.pmr-door small{font-size:.59rem}.pmr-feedback{font-size:.82rem}.pmr-cherry{width:95px;height:105px;top:calc(61% - 52px)}.pmr-checkpoints{right:8px;bottom:9px;font-size:1.3rem}}@media(max-width:360px){.pmr-stage{min-height:clamp(620px,calc(100svh - 350px),710px)}.pmr-prompt p{font-size:.76rem}.pmr-cherry{width:84px;height:100px;top:calc(61% - 50px)}}@media(prefers-reduced-motion:reduce){.pmr-door{transition:none!important}.pmr-door:hover:not(:disabled){scale:1}}