.pgs-shell{position:absolute;inset:0;overflow:hidden;container-type:size}[data-game=product-grid-shipyard]{min-height:clamp(660px,72vw,780px);aspect-ratio:auto}.pgs-hud{position:absolute;z-index:30;top:14px;right:14px;display:grid;grid-template-columns:auto minmax(4.2rem,1fr) auto;align-items:center;gap:.35rem;width:min(15rem,calc(100% - 28px));min-height:2.4rem;padding:.35rem .55rem;border:2px solid rgb(255 255 255/.9);border-radius:1rem;color:#163f58;background:rgb(248 253 255/.95);box-shadow:0 7px 18px rgb(21 70 92/.25);font-size:.7rem;font-weight:950}.pgs-hud>span:first-child,.pgs-hud>strong{display:flex;align-items:center;gap:.25rem;white-space:nowrap}.pgs-hud svg{width:1rem;height:1rem;color:#0789a0}.pgs-hud>strong{color:#875217}.pgs-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:.18rem}.pgs-progress i{height:.45rem;border-radius:999px;background:#cbdde0}.pgs-progress i.current{background:#29c9d5;box-shadow:0 0 0 2px #fff}.pgs-progress i.done{background:#ffd84f}.pgs-equation{position:absolute;z-index:9;top:-2%;left:50%;display:flex;min-height:58px;align-items:center;gap:.48rem;padding:.45rem .8rem;isolation:isolate;border:4px solid #ffd64f;border-radius:1rem;color:#f2feff;background:linear-gradient(180deg,#245c72,#163d55);box-shadow:0 0 0 4px #ef705b,inset 0 3px rgb(255 255 255/.18),0 11px 20px rgb(20 64 78/.32);transform:translate(-50%,-50%)}.pgs-equation:after,.pgs-equation:before{position:absolute;z-index:-1;bottom:-22px;width:15px;height:24px;border:3px solid #ef705b;border-radius:0 0 6px 6px;background:#ffd64f;content:""}.pgs-equation:before{left:20%}.pgs-equation:after{right:20%}.pgs-equation svg{width:1.5rem;height:1.5rem;color:#55e6e4}.pgs-equation em,.pgs-equation strong{min-width:2.2rem;font-size:clamp(1.55rem,2.6vw,2.2rem);font-style:normal;font-weight:1000;line-height:1;text-align:center}.pgs-equation em{display:grid;min-height:2.5rem;place-items:center;border-radius:.75rem;color:#fff;background:#ef705b}.pgs-equation span{color:#ffe16a;font-size:1.35rem;font-weight:1000}.pgs-workzone{position:absolute;z-index:10;top:22%;left:50%;width:min(500px,54cqw);height:52%;transform:translateX(-50%)}.pgs-crane{z-index:2;height:auto;filter:drop-shadow(0 14px 11px rgb(21 66 76/.24));animation:none}.pgs-crane,.pgs-grid{position:absolute;top:50%;left:50%;width:min(430px,46cqw);transform:translate(-50%,-48%)}.pgs-grid{z-index:6;aspect-ratio:1}.pgs-column-label,.pgs-row-label{position:absolute;z-index:3;display:grid;place-items:center;border:0;border-radius:.55rem;color:#17405b;background:linear-gradient(180deg,#fff3a8,#ffd956);box-shadow:inset 0 0 0 2px #ef705b,inset 0 3px rgb(255 255 255/.38);font-size:1rem;font-weight:1000}.pgs-column-label{top:40.5%;width:18%;height:7%;transform:translate(-50%,-50%)}.pgs-column-label-tens{left:36.5%}.pgs-column-label-ones{left:65%}.pgs-row-label{left:18.5%;width:8.5%;height:12%;transform:translate(-50%,-50%)}.pgs-row-label-tens{top:50.5%}.pgs-row-label-ones{top:64%}.pgs-bay{position:absolute;z-index:1;display:grid;width:22.5%;height:10%;place-items:center;overflow:hidden;border:0;border-radius:.7rem;clip-path:inset(0 round .7rem);color:#eafcff;background:rgb(25 55 70/.48);box-shadow:inset 0 4px 8px rgb(17 37 50/.28);transform:translate(-50%,-50%)}.pgs-bay-tens-tens{top:50.5%;left:36.5%}.pgs-bay-tens-ones{top:50.5%;left:65%}.pgs-bay-ones-tens{top:64%;left:36.5%;width:24%;height:10.5%}.pgs-bay-ones-ones{top:64%;left:65%;width:24%;height:10.5%}.pgs-bay small{position:absolute;z-index:2;top:.18rem;left:0;width:100%;color:#d9f8ff;font-size:.62rem;font-weight:900;text-align:center}.pgs-bay strong{position:relative;z-index:2;margin-top:.55rem;font-size:clamp(1.05rem,2.2vw,1.55rem);font-weight:1000}.pgs-bay svg{position:absolute;z-index:2;right:.3rem;bottom:.25rem;width:1rem;height:1rem;color:#155d55}.pgs-bay.active{background:rgb(38 91 105/.64);box-shadow:inset 0 0 0 4px #fff36a,inset 0 5px 9px rgb(17 37 50/.28);animation:pgs-active-bay 1.1s ease-in-out infinite}.pgs-bay.loaded{color:#194d57;background:rgb(116 244 213/.78);box-shadow:inset 0 0 0 3px rgb(255 255 255/.42),inset 0 4px rgb(255 255 255/.34)}.pgs-bay.loaded small{color:#27596b}.pgs-cargo-dock{position:absolute;z-index:26;top:45%;right:1.5%;bottom:auto;width:min(350px,34cqw);isolation:isolate}.pgs-cargo-dock>p{width:fit-content;margin:0 auto .35rem;padding:.28rem .65rem;border-radius:999px;color:#17405b;background:rgb(250 254 255/.94);font-size:.74rem;font-weight:950}.pgs-choices{display:grid;grid-template-columns:repeat(2,minmax(74px,1fr));gap:.55rem}.pgs-choices button{display:flex;min-height:58px;align-items:center;justify-content:center;gap:.42rem;touch-action:manipulation;border:3px solid #fff;border-bottom:6px solid #2d8998;border-radius:999px;color:#17405b;background:linear-gradient(180deg,#f5feff,#a9edf0);box-shadow:inset 0 3px rgb(255 255 255/.65),0 7px 15px rgb(19 68 82/.24);font-size:1.15rem;font-weight:1000;transition:transform .15s ease,background .15s ease}.pgs-choices button svg{width:1.35rem;height:1.35rem;color:#168598}.pgs-choices button:hover:not(:disabled){transform:translateY(-3px)}.pgs-choices button:active:not(:disabled){border-bottom-width:3px;transform:translateY(3px)}.pgs-choices button:focus-visible{outline:5px solid #fff35b;outline-offset:3px}.pgs-choices button:disabled{cursor:default}.pgs-choices button.wrong-choice{border-bottom-color:#a53d50;background:#ff98a0;animation:pgs-wrong .38s ease-out}.pgs-cargo-dock.total-mode .pgs-choices button{border-bottom-color:#c48a28;background:linear-gradient(180deg,#fff9ca,#ffd968)}.pgs-cargo-dock.total-mode .pgs-choices button svg{color:#3278a1}.pgs-feedback{position:absolute;z-index:25;bottom:5px;left:50%;width:min(580px,calc(100% - 320px));min-height:2.2rem;padding:.42rem .8rem;border:2px solid rgb(255 255 255/.82);border-radius:999px;color:#fff;background:rgb(25 92 108/.86);box-shadow:0 6px 16px rgb(17 64 76/.28);text-align:center;transform:translateX(-50%)}.pgs-feedback p{display:flex;align-items:center;justify-content:center;gap:.35rem;margin:0;font-size:clamp(.74rem,1.35vw,.94rem);font-weight:950}.pgs-feedback svg{width:1rem;height:1rem;color:#fff36a}[data-game=product-grid-shipyard] .game-stage-prompt{justify-content:space-between;width:min(700px,calc(100% - 500px));min-height:84px;padding:8px 11px 8px 18px;border:3px solid #fff;border-radius:1.25rem;background:rgb(248 253 255/.95);box-shadow:0 7px 0 #45a4b7,0 14px 24px rgb(20 74 90/.25)}[data-game=product-grid-shipyard] .game-stage-prompt h2{color:#17405b;font-size:clamp(16px,1.9vw,23px);paint-order:normal;text-shadow:none;-webkit-text-stroke:0}[data-game=product-grid-shipyard] .game-stage-prompt button[aria-label="Listen to the instruction"]{border:3px solid #fff!important}[data-game=product-grid-shipyard] .pgs-shell :is(.pgs-hud,.pgs-equation,.pgs-grid,.pgs-cargo-dock,.pgs-feedback,strong,span,small,p,button,em){text-shadow:none;-webkit-text-stroke:0}[data-game=product-grid-shipyard] .product-grid-shipyard-mascot{z-index:22;left:-4px!important;bottom:clamp(74px,11%,95px)!important;width:clamp(196px,22.1vw,277px)!important;pointer-events:none}@keyframes pgs-active-bay{0%,to{scale:1}50%{scale:1.025}}@keyframes pgs-wrong{25%{transform:translateX(-6px)}55%{transform:translateX(6px)}80%{transform:translateX(-3px)}}@media (max-width:900px){.pgs-workzone{top:22%;width:min(480px,68cqw);height:50%}.pgs-crane,.pgs-grid{width:min(400px,58cqw)}.pgs-cargo-dock{top:66%;right:3%;bottom:auto;width:min(330px,42cqw)}.pgs-feedback{width:min(520px,calc(100% - 250px))}}@media (max-width:680px){[data-game=product-grid-shipyard]{min-height:720px}[data-game=product-grid-shipyard] .game-stage-prompt{top:66px;width:calc(100% - 18px);min-height:70px}.pgs-hud{top:144px;right:8px;width:calc(100% - 16px)}.pgs-equation{top:-7%;min-height:50px;padding:.35rem .65rem}.pgs-equation svg{display:none}.pgs-workzone{top:244px;width:100%;height:285px}.pgs-crane,.pgs-grid{width:330px;max-width:88vw}.pgs-bay{border-radius:.65rem}.pgs-bay small{font-size:.56rem}.pgs-cargo-dock{top:510px;right:auto;bottom:auto;left:50%;width:min(390px,calc(100% - 22px));transform:translateX(-50%)}.pgs-cargo-dock>p{margin-bottom:.22rem}.pgs-choices{grid-template-columns:repeat(4,minmax(58px,1fr));gap:.35rem}.pgs-choices button{min-height:54px;padding:.25rem;border-bottom-width:5px;font-size:1rem}.pgs-choices button svg{display:none}.pgs-feedback{bottom:5px;width:calc(100% - 18px)}[data-game=product-grid-shipyard] .product-grid-shipyard-mascot{z-index:8;left:-55px!important;bottom:190px!important;width:186px!important;opacity:.95}}@media (max-width:390px){.pgs-hud{font-size:.64rem}.pgs-equation{top:-7%}.pgs-workzone{top:246px;height:270px}.pgs-crane,.pgs-grid{width:300px}.pgs-cargo-dock{top:510px;bottom:auto}.pgs-cargo-dock>p{font-size:.67rem}.pgs-choices button{min-height:52px;font-size:.92rem}}@media (max-height:760px) and (orientation:landscape){[data-game=product-grid-shipyard]{min-height:560px}.pgs-workzone{top:24%;height:50%}.pgs-crane,.pgs-grid{width:min(360px,43cqw)}.pgs-cargo-dock{top:44%;right:1%;bottom:auto;width:260px}}@media (prefers-reduced-motion:reduce){.pgs-bay.active,.pgs-choices button.wrong-choice{animation:none!important;transition:none!important}}