/* Sliding puzzle (P0171) */
.sp-row { margin: 8px 0; }
.sp-lab { font-weight: bold; margin-right: 6px; }
.sp-check { display: inline-block; margin-left: 12px; min-height: 32px; }
.sp-check input { width: 22px; height: 22px; vertical-align: middle; margin-right: 6px; }
.sp-bar { margin: 0 0 10px; font-weight: bold; }
.sp-bar > span { display: inline-block; margin-right: 18px; }
.sp-num { font-size: 1.3em; font-variant-numeric: tabular-nums; margin-left: 4px; }
.sp-wrap { max-width: 440px; }
.sp-board { display: grid; gap: 4px; padding: 4px; background: #24334B; border-radius: 12px; aspect-ratio: 1 / 1; }
.sp-n3 { grid-template-columns: repeat(3, 1fr); }
.sp-n4 { grid-template-columns: repeat(4, 1fr); }
.sp-n5 { grid-template-columns: repeat(5, 1fr); }
.sp-n6 { grid-template-columns: repeat(6, 1fr); }
.sp-tile { position: relative; min-width: 0; min-height: 44px; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: #F7F5F0; color: #24334B; font-family: inherit; font-weight: bold; font-size: 1.6em; line-height: 1; cursor: pointer; }
.sp-n5 .sp-tile { font-size: 1.3em; }
.sp-n6 .sp-tile { font-size: 1.1em; }
.sp-tile:hover { background: #FFFFFF; }
.sp-tile.sp-home { background: #EEF4F3; color: #3B6970; }
.sp-tile.sp-gap { background: transparent; cursor: default; }
.sp-tile:focus { outline: 3px solid #C38B4A; outline-offset: -3px; }
.sp-pic { display: block; width: 100%; height: 100%; }
.sp-badge { position: absolute; left: 4px; top: 4px; padding: 1px 6px; border-radius: 6px; background: #24334B; color: #FFFFFF; font-size: .55em; }
.sp-best { color: #4A5568; margin: 6px 0 0; }
