.sm-game{width:min(100%,35rem);margin:auto;display:grid;gap:.6rem;color:#eefcf5}
.sm-status,.sm-counter,.sm-guide{margin:0}
.sm-status{font-weight:750;color:#ffe9a5;min-height:1.6em}
.sm-counter{font-weight:700;font-variant-numeric:tabular-nums}
.sm-guide{color:#c9ddd8}
.sm-grid{position:relative;box-sizing:border-box;background:#0c242c;aspect-ratio:1;border:3px solid #3c5f61;border-radius:12px;overflow:hidden;isolation:isolate}
.sm-piece{position:absolute;inset:0 auto auto 0;width:calc(100% / var(--sm-size));height:calc(100% / var(--sm-size));margin:0;padding:0;appearance:none;background:transparent;color:inherit;border:0;cursor:pointer;touch-action:manipulation;transition:transform .2s cubic-bezier(.2,.7,.25,1);border-radius:0}
.sm-piece:disabled{cursor:default;opacity:1}
.sm-art{display:block;box-sizing:border-box;inset:1px;position:absolute;border-radius:4px;background-size:calc(var(--sm-size) * 100%) calc(var(--sm-size) * 100%);background-repeat:no-repeat;pointer-events:none}
.sm-highlight .sm-art,.sm-piece:focus-visible .sm-art{outline:3px solid #ffed9f;outline-offset:-3px}
.sm-highlight,.sm-piece:focus-visible{z-index:1}
.sm-won .sm-grid{outline:2px solid #79e6aa;outline-offset:2px}
.sm-lost .sm-grid{outline:2px solid #fba281;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.sm-piece{transition:none}}
.sm-pointer{position:absolute;left:15%;bottom:3%;z-index:2;color:#fff3b5;font-size:clamp(1.6rem,6vw,2.8rem);line-height:1;filter:drop-shadow(0 2px 2px #081e28);pointer-events:none}
.sm-completed-art{display:block;width:100%;height:100%;object-fit:contain}
