@media(max-width:650px){.right-label{top:61%;left:8%}#board{max-height:none}}
/* A quiet paper silhouette: no target seams or positional guide lines. */
.mat{fill:#f1ede3;stroke:none}.target,.target.filled{fill:#c7c0b2;fill-opacity:1;stroke:#c7c0b2;stroke-width:1.5;stroke-linejoin:round;stroke-dasharray:none}.selection{display:none}
.piece{transform-box:fill-box;transform-origin:center;transition:filter .2s ease}.piece.selected{filter:drop-shadow(0 5px 6px #aa6f4b77)}.piece.dragging{filter:drop-shadow(0 10px 8px #57453666)}
.piece-controls{position:absolute;z-index:4;display:flex;gap:3px;align-items:center;padding:5px;background:#fbf8ef;border:1px solid #dcd0be;border-radius:10px;box-shadow:0 8px 22px #56432a33;animation:control-in .2s ease;white-space:nowrap}.piece-controls[hidden]{display:none}.piece-controls button{height:40px;min-width:44px;border:0;border-radius:6px;background:transparent;color:#d66341;font:700 21px 'DM Sans',sans-serif;cursor:pointer;touch-action:manipulation}.piece-controls button small{font-size:10px;color:#62594e}.piece-controls button:hover,.piece-controls button:focus-visible{outline:none;background:#f1e5d3}.piece-controls button:active{transform:scale(.92)}
.toolbar{background:#fbf9f3}.tip{display:block;white-space:normal;text-align:right;line-height:1.5;color:#8a7866;font-size:11px}.win>span{animation:celebrate 1.2s ease-in-out infinite alternate}.win strong{animation:win-pop .55s cubic-bezier(.2,1.5,.5,1) both}
@keyframes control-in{from{opacity:0;transform:translateY(5px) scale(.95)}to{opacity:1;transform:none}}@keyframes celebrate{from{transform:rotate(-12deg) scale(.85)}to{transform:rotate(18deg) scale(1.1)}}@keyframes win-pop{from{opacity:0;transform:translateY(15px) scale(.8)}to{opacity:1;transform:none}}
@media(max-width:650px){.toolbar{align-items:flex-start;flex-wrap:wrap}.tip{width:100%;text-align:left;min-height:1.5em}.piece-controls button{height:44px;min-width:46px}}
@media(prefers-reduced-motion:reduce){.piece,.piece-controls,.win,.win>span,.win strong{animation:none!important;transition:none!important}}
