.pg-header{color:#17394f;align-items:center;gap:10px;min-height:44px;margin:0 0 8px;display:flex}.pg-header .pg-back{align-items:center;gap:5px;min-height:44px;font-size:12px;font-weight:800;text-decoration:none;display:inline-flex}.pg-title{flex:1;font-size:16px;font-weight:900}.pg-header button{color:#17394f;min-width:64px;min-height:44px;font:inherit;background:#fffaf0;border:1px solid #b9c9ca;border-radius:10px;justify-content:center;align-items:center;gap:5px;font-size:12px;font-weight:800;display:inline-flex}.pg-header button>span:first-child{font-size:23px;line-height:1}.pg-mode-note{text-align:center;color:#62757b;margin:0 0 5px;font-size:10px;display:block}:-webkit-any(.pg-game:-webkit-full-screen,.pg-game.pg-immersive){z-index:1000;width:100%;height:100%;overscroll-behavior:contain;box-sizing:border-box;max-width:none;height:100dvh;padding:max(6px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:#fff9ef;margin:0;position:fixed;inset:0;overflow:auto}:is(.pg-game:fullscreen,.pg-game.pg-immersive){z-index:1000;width:100%;height:100%;overscroll-behavior:contain;box-sizing:border-box;max-width:none;height:100dvh;padding:max(6px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:#fff9ef;margin:0;position:fixed;inset:0;overflow:auto}.pg-game.pg-immersive>:not(dialog):not(.ss-drag-ghost):not(.pb-ghost){max-width:720px;margin-left:auto;margin-right:auto}.pg-immersive.pb-game>:not(dialog):not(.pb-ghost){max-width:480px}.pg-immersive .ss-heading,.pg-immersive .pb-heading,.pg-immersive .ss-tip,.pg-immersive .pb-tip,.pg-immersive .ss-level-title>strong,.pg-immersive .ss-save,.pg-immersive .pb-save{display:none}.pg-immersive .ss-level-title{justify-content:flex-end;margin:3px 0}.pg-immersive .ss-toolbar{margin-bottom:5px}.pg-immersive .ss-board{margin-top:7px}.pg-immersive .ss-help,.pg-immersive .pb-help{margin-top:4px}.pg-immersive .ss-status{min-height:28px;padding:7px 0 3px}.pg-immersive .pb-original-rascal{display:none}.pg-immersive .pb-chest-v2{width:100%;margin-top:5px;margin-left:auto;padding-top:0;overflow:hidden}.pg-immersive .pb-chest-assembly{aspect-ratio:1145/1060;width:120%;margin-left:-10%;overflow:hidden}.pg-immersive .pb-hinged-art{height:auto}.pg-immersive .pb-chest-v2 .pb-board{top:7.54%}.pg-immersive .pb-tray{margin-top:4px}.pg-immersive .pb-piece{height:85px}.pg-immersive .pb-feedback{min-height:26px;margin-top:5px}.pg-immersive .pb-scores{padding:5px 12px}.pg-immersive .pb-scores strong{font-size:22px}@media (max-width:649px){.pg-game{padding:4px 10px max(14px,env(safe-area-inset-bottom))}.pg-header{margin-bottom:3px}.pg-game .ss-heading,.pg-game .pb-heading,.pg-game .ss-tip,.pg-game .pb-tip,.pg-game .ss-level-title>strong{display:none}.pg-game .ss-level-title{justify-content:flex-end;margin:3px 0}.pg-game .ss-board{margin-top:6px}.pg-game .ss-toolbar{gap:6px}.ss-current-level{margin-right:auto;font-size:13px;font-weight:900}.pg-game .ss-toolbar button{min-height:44px;padding:5px 12px}.pg-game .ss-status{min-height:28px;padding:7px 0 3px}.pg-game .pb-scores{gap:24px;padding:5px 12px}.pg-game .pb-scores strong{font-size:22px}.pg-game .pb-original-rascal{display:none}.pg-game .pb-chest-v2{width:100%;margin-top:5px;margin-left:0;padding-top:0;overflow:hidden}.pg-game .pb-chest-assembly{aspect-ratio:1145/1060;width:120%;margin-left:-10%;overflow:hidden}.pg-game .pb-hinged-art{height:auto}.pg-game .pb-chest-v2 .pb-board{top:7.54%}.pg-game .pb-tray{margin-top:4px;padding:7px}.pg-game .pb-piece{height:85px}.pg-game .pb-feedback{min-height:26px;margin-top:6px}.pg-game .ss-save,.pg-game .pb-save{margin:5px 0;font-size:9px}}@media (min-width:650px){.pg-game:not(.pg-immersive) .pg-title{visibility:hidden}.ss-current-level{margin-right:auto;font-size:14px;font-weight:800}}@media (max-height:560px){.pg-immersive .ss-victory-scene,.pg-immersive .pb-over-cast{display:none}.pg-immersive .ss-victory,.pg-immersive .pb-over{padding:14px}}.pg-game.pg-fit:is(.pb-game,.pp-game,.ss-game){--pb-width:720px;z-index:1000;box-sizing:border-box;overscroll-behavior:none;width:100%;max-width:none;height:100dvh;padding:max(2px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));background:#fff9ef;margin:0;position:fixed;inset:0;overflow:hidden}.pg-game.pg-fit:is(.pb-game,.pp-game,.ss-game)>:where(:not(dialog):not(.ss-drag-ghost):not(.pb-ghost)){box-sizing:border-box;width:100%;max-width:720px;margin-left:auto;margin-right:auto}.pg-fit .pg-header{gap:6px;min-height:44px;margin-bottom:0}.pg-fit .pg-title{visibility:visible;font-size:14px}.pg-fit .pg-header button{min-width:44px}.pg-fit .pg-header button>span:last-child,.pg-fit .pg-mode-note,.pg-fit .ss-heading,.pg-fit .pb-heading,.pg-fit .ss-tip,.pg-fit .pb-tip,.pg-fit .ss-save,.pg-fit .pb-save,.pg-fit .ss-practice-link,.pg-fit .pp-lab-intro{display:none}.pg-fit .ss-level-title{justify-content:flex-end;margin:2px 0}.pg-fit .ss-level-title>strong{display:none}.pg-fit .ss-toolbar{gap:6px;margin:0}.pg-fit .ss-toolbar button{min-height:44px}.pg-game.pg-fit:is(.pb-game,.pp-game,.ss-game) .ss-board{height:var(--pg-board-height,calc(100dvh - 195px));grid-template-rows:repeat(6,minmax(0,1fr));min-height:0;margin-top:4px}.pg-fit .ss-shelf,.pg-fit .ss-spots,.pg-fit .ss-spot,.pg-fit .ss-back-position{min-height:0}.pg-fit .ss-spots{box-sizing:border-box;height:100%}.pg-fit .ss-spot,.pg-fit .ss-back-position{height:100%}.pg-fit .ss-spot img,.pg-fit .ss-back-position img{object-position:bottom;max-height:100%}.pg-fit .ss-status{min-height:26px;padding:7px 0 2px;font-size:11px;line-height:1.35}.pg-fit .ss-help,.pg-fit .pb-help{bottom:max(4px,env(safe-area-inset-bottom));z-index:30;border:0;max-width:720px;padding:0;font-size:12px;position:absolute;left:6px;right:6px;width:auto!important;margin:0 auto!important}.pg-fit .ss-help summary,.pg-fit .pb-help summary{cursor:pointer;justify-content:center;align-items:center;min-height:44px;display:flex}.pg-fit .ss-help[open],.pg-fit .pb-help[open]{background:#fff5df;border:2px solid #17394f;border-radius:14px;max-height:75dvh;padding:0 14px 12px;overflow:auto;box-shadow:0 -8px 30px #17394f40}.pg-game.pg-fit:is(.pb-game,.pp-game,.ss-game) .pb-arcane-board{width:var(--pg-board-width,100%);max-width:100%;margin:0 auto}.pg-game.pg-fit:is(.pb-game,.pp-game,.ss-game) .pb-attunement{padding:3px 2px;font-size:9px}.pg-game.pg-fit:is(.pb-game,.pp-game,.ss-game) .pb-scores{padding:2px 10px}.pg-game.pg-fit:is(.pb-game,.pp-game,.ss-game) .pb-scores strong{font-size:22px}.pg-game.pg-fit:is(.pb-game,.pp-game,.ss-game) .pb-tray{margin-top:2px;padding:4px}.pg-game.pg-fit:is(.pb-game,.pp-game,.ss-game) .pb-piece{height:66px;padding:2px}.pg-fit .pb-mini{width:calc(var(--w)*14px);height:calc(var(--h)*14px)}.pg-game.pg-fit:is(.pb-game,.pp-game,.ss-game) .pb-feedback{min-height:18px;margin:3px 0 0;font-size:11px;line-height:1.3}.pg-fit .pb-streak{height:17px;font-size:10px}.pg-game.pg-fit:is(.pb-game,.pp-game,.ss-game) .pp-play{width:100%;max-width:720px;margin:auto;padding-top:0}.pg-fit .pp-status{border-radius:10px;gap:12px;padding:2px 8px}.pg-fit .pp-menu-button{min-width:44px;min-height:44px;padding:0}.pg-fit .pp-score strong,.pg-fit .pp-moves strong{font-size:22px}.pg-fit .pp-star-track{gap:6px;margin:2px 2px 4px}.pg-fit .pp-stars{font-size:17px}.pg-fit .pp-workbench{gap:4px}.pg-fit .pp-workbench .pp-recipe{gap:4px;margin:0;padding:3px 6px;transform:none}.pg-fit .pp-workbench .pp-recipe h2,.pg-fit .pp-nail{display:none}.pg-fit .pp-workbench .pp-recipe-items{flex-wrap:nowrap;gap:4px}.pg-fit .pp-recipe-items>div{align-items:center;gap:2px;display:flex}.pg-fit .pp-workbench .pp-recipe-items img{width:28px;height:28px}.pg-fit .pp-recipe-items b{font-size:11px}.pg-fit .pp-board-column{width:100%;max-width:100%}.pg-fit .pp-board-wrap{width:var(--pg-board-width,100%);max-width:100%;margin:auto}.pg-fit .pp-board{height:calc(var(--pp-cell-size)*var(--rows) + 8px);box-sizing:border-box;aspect-ratio:auto!important}.pg-fit .pp-machine-rail{height:calc(var(--pp-cell-size)*.8);width:calc(100% - 8px);margin-inline:4px;aspect-ratio:auto!important}.pg-fit .pp-workbench .pp-cauldron{width:150px;max-width:45%;height:38px;margin:0 auto}.pg-fit .pp-mechanic-goals{gap:3px;margin:0 0 3px;font-size:9px}.pg-fit .pp-mechanic-goals>span{padding:1px 3px}.pg-fit .pp-mechanic-goals .pp-mechanic-art{width:18px;height:18px}.pg-fit .pp-tools{margin-top:2px}.pg-fit .pp-tools-row{gap:5px}.pg-fit .pp-tools-row button{border-radius:10px;gap:4px}.pg-fit .pp-tools>small,.pg-fit .pp-controls-note{display:none}.pg-fit .pp-message{min-height:28px;margin:4px 0 0;font-size:10px;line-height:1.3}.pg-fit .pp-tool-confirm{z-index:35;background:#fff5df;border:2px solid #17394f;border-radius:12px;padding:8px;position:absolute;bottom:48px;left:6px;right:6px;box-shadow:0 4px 14px #17394f40}.pg-fit .pp-mechanics-picker{flex-wrap:nowrap;gap:4px;margin:0 0 3px}.pg-fit .pp-mechanics-picker select{min-width:0;height:44px;padding:4px}.pg-fit .pp-mechanics-picker button{min-height:44px;padding:4px}.pg-fit .pp-mechanics-guide{margin-bottom:3px;padding:0 8px;font-size:11px}.pg-fit .pp-mechanics-guide summary{align-items:center;min-height:32px;display:flex}.pg-fit .pp-mechanics-guide[open]{z-index:40;max-height:65dvh;position:absolute;inset:92px 6px auto;overflow:auto;box-shadow:0 8px 30px #17394f40;width:auto!important}.pg-fit .ss-drag-ghost{z-index:1100}.pg-fit .pp-mechanics-guide[open]{max-height:none;box-shadow:none;position:relative;inset:auto;overflow:visible;width:100%!important}.pg-fit .pp-mechanics-guide>div{z-index:40;background:#f8ebd3;border:1px solid #dac09a;border-radius:0 0 12px 12px;max-height:65dvh;padding:6px 12px;position:absolute;top:100%;left:-1px;right:-1px;overflow:auto;box-shadow:0 8px 30px #17394f40}.pg-fit .pp-board-stage{height:var(--pp-stage-height);box-sizing:border-box;padding-top:44px;position:relative}.pg-fit .pp-board-slot{justify-content:center;align-items:center;height:100%;display:flex}.pg-fit .pp-board-stage>.pp-mechanic-goals{height:44px;margin:0;position:absolute;top:0;left:0;right:0}.pg-fit .pp-board-stage>p[role=status]{text-align:center;position:absolute;inset:44px 0 auto}.pg-fit .pp-workbench .pp-recipe{box-sizing:border-box;height:40px}@media (min-width:650px) and (max-height:550px){.pg-game.pg-fit.pp-game .pp-play{grid-template-rows:54px minmax(0,1fr);grid-template-columns:minmax(130px,1fr) minmax(0,2fr) minmax(130px,1fr);align-items:start;gap:0 8px;max-width:none;height:100%;display:grid}.pg-fit .pp-playbar{grid-area:1/1/auto/-1}.pg-fit .pp-play>.pp-star-track{width:23%;margin:0;position:absolute;top:58px;left:0}.pg-fit .pp-play>small{font-size:10px;position:absolute;bottom:2px;left:4px}.pg-fit .pp-workbench{display:contents}.pg-fit .pp-workbench .pp-recipe{grid-area:2/1;height:auto;min-height:40px;margin-top:34px;display:block}.pg-fit .pp-workbench .pp-recipe-items{flex-wrap:wrap;gap:8px;padding:8px 0}.pg-fit .pp-board-column{grid-area:2/2;align-self:start}.pg-fit .pp-tools{grid-area:2/3;align-self:start;width:100%;margin:10px 0 0}.pg-fit .pp-tools-row{flex-direction:column;align-items:stretch}.pg-fit .pp-tools-row button{flex:none;max-width:none}.pg-fit .pp-message{width:23%;margin:0;font-size:11px;position:absolute;bottom:6px;right:0}.pg-fit .pp-tool-confirm{box-sizing:border-box;width:24%;bottom:50px;left:auto;right:0}}
