.pm-head{text-align:center;margin:16px auto}.pm-controls{margin:0 auto 12px}.pm-game{margin:0 auto;padding:16px;text-align:center;font-family:var(--display)}.pm-top{display:flex;justify-content:space-between;gap:12px;font-size:.8rem;font-weight:700}.pm-game progress{display:block;width:100%;height:8px;margin:8px 0 12px;accent-color:var(--brand-grape);border:0;border-radius:8px;overflow:hidden;background:var(--btn)}.pm-game progress::-webkit-progress-bar{background:var(--btn)}.pm-game progress::-webkit-progress-value{background:var(--brand-grape)}.pm-game h2{font-size:clamp(1.1rem,3vw,1.35rem);margin:0;color:var(--ink)}.pm-instruction{font-size:.8rem;margin:4px 0 12px;color:var(--ink-soft)}.pm-board{min-height:120px;display:flex;align-items:center;justify-content:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.pm-set{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px;width:100%;align-content:center;position:relative}.pm-piece{position:relative;display:block;min-width:0;aspect-ratio:1;border-radius:8px}.pm-piece img{width:100%;height:100%;object-fit:contain;display:block}.pm-piece.pm-taken:after,.pm-piece.pm-taken:before{content:"";position:absolute;left:10%;top:46%;width:80%;height:4px;border-radius:4px;background:var(--ink);transform:rotate(45deg)}.pm-piece.pm-taken:before{transform:rotate(-45deg)}.pm-addition .pm-set{grid-template-columns:repeat(5,minmax(0,1fr));flex:1}.pm-addition .pm-set+.pm-set:before{content:"+";position:absolute;left:-12px;top:50%;transform:translate(-50%,-50%);font-size:1.35rem;font-weight:800;color:var(--brand-grape)}.pm-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pm-groups .pm-set{padding:6px;border:2px solid var(--brand-grape);border-radius:12px;grid-template-columns:repeat(5,minmax(0,1fr));height:100%}.pm-groups .pm-set:nth-child(2n){border-color:var(--brand-sky)}.pm-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.pm-set{justify-content:center}.pm-piece{width:100%;max-width:56px;justify-self:center}.pm-groups .pm-piece{max-width:28px}.pm-fallback:before{content:"";position:absolute;inset:18%;border-radius:50%;background:var(--brand-grape)}.pm-set[data-columns="1"]{grid-template-columns:repeat(1,minmax(0,56px))}.pm-set[data-columns="2"]{grid-template-columns:repeat(2,minmax(0,56px))}.pm-set[data-columns="3"]{grid-template-columns:repeat(3,minmax(0,56px))}.pm-set[data-columns="4"]{grid-template-columns:repeat(4,minmax(0,56px))}.pm-set[data-columns="5"]{grid-template-columns:repeat(5,minmax(0,56px))}.pm-set[data-columns="6"]{grid-template-columns:repeat(6,minmax(0,56px))}.pm-set[data-columns="7"]{grid-template-columns:repeat(7,minmax(0,56px))}.pm-set[data-columns="8"]{grid-template-columns:repeat(8,minmax(0,56px))}.pm-set[data-columns="9"]{grid-template-columns:repeat(9,minmax(0,56px))}.pm-set[data-columns="10"]{grid-template-columns:repeat(10,minmax(0,56px))}.pm-piece.pm-counted{box-shadow:inset 0 0 0 3px var(--brand-mint);background:var(--btn)}.pm-game.pm-demonstrating .pm-taken{opacity:.3}.pm-equation{font-size:clamp(1.8rem,6vw,2.3rem);font-weight:800;line-height:1.4;margin:8px 0;color:var(--ink)}.pm-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.pm-game .pm-choice{min-height:52px;padding:8px;font-size:1.4rem;font-weight:800;color:var(--ink);background:var(--panel);border:2px solid var(--card-line)}.pm-game .pm-choice:disabled{opacity:1}.pm-game .pm-correct{border-color:var(--brand-mint);box-shadow:inset 0 0 0 2px var(--brand-mint)}.pm-game .pm-wrong{border-color:var(--brand-coral)}.pm-status{font-size:.85rem;line-height:1.4;min-height:3em;display:grid;place-items:center;margin:8px 0;color:var(--ink)}.pm-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.pm-actions .btn{min-height:44px;padding:8px 12px;font-size:.8rem}.pm-game .btn:focus-visible{outline:3px solid var(--brand-grape);outline-offset:3px}.pm-game.pm-paused .pm-board{opacity:.8}.pm-game.gm-immersive{display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:auto;padding:24px}.pm-game.gm-immersive>:not(.gmf){width:100%;max-width:560px}.pm-game.gm-immersive>.gmf{max-width:none}.pm-ready .pm-board,.pm-ready .pm-equation{opacity:.65}@media(max-width:360px){.pm-game{padding:12px}.pm-board{padding:8px;gap:8px;min-height:112px}.pm-groups{gap:6px}.pm-groups .pm-set{padding:4px}.pm-instruction{font-size:.75rem}.pm-actions{gap:6px}.pm-actions .btn{padding:8px}.pm-game .pm-choice{min-height:48px}}@media(max-height:700px){.pm-game{padding:12px}.pm-board{min-height:100px}.pm-equation{margin:4px 0}.pm-status{margin:6px 0}.pm-game progress{margin:6px 0}.pm-instruction{margin-bottom:8px}}@media(max-height:700px){.pm-piece{max-width:36px}.pm-groups .pm-piece{max-width:24px}}.pm-game h2{line-height:1.4}.pm-groups .pm-set{padding:4px}.pm-groups .pm-piece{max-width:24px}.pm-many-groups .pm-set:last-child{grid-column:1/-1;grid-template-columns:repeat(10,minmax(0,24px))}@media(max-height:700px){.pm-board{padding:8px}.pm-groups{gap:6px}.pm-status{min-height:2.4em}}@media(prefers-reduced-motion:reduce){.pm-game *{animation:none!important;transition:none!important}}
