/* Shape Builder online (assets/play/shapes.js): peg board, crayon rubber band, beads */
.sh-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.sh-info { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 4px; }
.sh-info b { font: 800 1.1rem/1.2 var(--display, sans-serif); color: var(--navy); }
.sh-info span { font: 700 .9rem var(--body, sans-serif); color: var(--muted); }
.sh-board { border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 3px var(--navy), 0 6px 0 var(--navy); background: #fff8e7; margin-bottom: 6px; }
.sh-svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 330px); min-height: 220px; }
@supports (height: 100svh) { .sh-svg { max-height: calc(100svh - 330px); } }
.game:fullscreen .sh-svg { max-height: calc(100vh - 220px); }
.sh-paper { fill: #fff8e7; }
.sh-peg { fill: #9aa8bb; }
/* the dotted shape to copy */
.sh-ghost { fill: rgba(22, 38, 74, .05); stroke: var(--navy); stroke-width: .07; stroke-dasharray: .2 .16; stroke-linejoin: round; opacity: .55; }
.sh-gdot { fill: #fff; stroke: var(--navy); stroke-width: .06; stroke-dasharray: .12 .09; opacity: .8; transition: opacity .2s; }
.sh-gdot.sh-taken { opacity: 0; }
.sh-gdot.sh-glow, .sh-bead.sh-glow .sh-ball { animation: sh-glow 1s ease-in-out 4; }
@keyframes sh-glow { 50% { fill: var(--yellow); stroke: #e0a800; stroke-width: .12; } }
/* the rubber band and the beads (color per level from --sh-col) */
.sh-fill { fill: var(--sh-col); fill-opacity: 0; transition: fill-opacity .6s; pointer-events: none; }
.sh-band { fill: none; stroke: var(--sh-col); stroke-width: .16; stroke-linejoin: round; pointer-events: none; }
.sh-bead { cursor: grab; touch-action: none; transition: transform .14s ease-out; }
.sh-bead.sh-drag { cursor: grabbing; transition: none; }
.sh-hit { fill: transparent; }
.sh-ball { fill: var(--sh-col); stroke: var(--navy); stroke-width: .07; transition: r .12s; }
.sh-shine { fill: #fff; opacity: .8; pointer-events: none; }
.sh-bead.sh-drag .sh-ball, .sh-bead.sh-sel .sh-ball { r: .34; }
.sh-bead.sh-sel .sh-ball { stroke: #e0a800; stroke-width: .11; }
.sh-bead.sh-on .sh-ball { stroke-width: .09; }
/* done: the shape fills with its crayon color and the corners are counted */
.sh-svg.sh-won .sh-fill { fill-opacity: .35; }
.sh-svg.sh-won .sh-ghost, .sh-svg.sh-won .sh-gdot { opacity: 0; }
.sh-svg.sh-won .sh-bead { cursor: default; }
.sh-num { font: 800 .5px var(--display, sans-serif); font-size: .5px; fill: var(--navy); paint-order: stroke; stroke: #fff8e7; stroke-width: .12;
  animation: pop .3s ease-out; }
.sh-ctrl { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sh-check { min-width: 220px; }
/* owner 2026-12-04 12:05: Hint and Check sit under the board on every screen, like the other games (no right column) */
@media (min-width: 860px) {
  .sh-svg { max-height: calc(100vh - 300px); }
}
/* the board must not jump when Arco's sentence gets longer or shorter (ChatGPT review 2026-12-04): room for 3 lines */
.game[data-game="shapes"] .g-say { min-height: 84px; }
@media (max-width: 600px) { .game[data-game="shapes"] .g-say { min-height: 104px; } }
