.jg-board {
  position: relative; width: 100%;
  border-radius: 16px; overflow: hidden;
  background: radial-gradient(ellipse 90% 70% at 50% 0%, #3b4a5e, #222b38);
  touch-action: none; -webkit-user-select: none; user-select: none;
}
.jg-frame {
  position: absolute; border-radius: 4px;
  background: rgb(0 0 0 / .28);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / .18);
}
.jg-frame canvas { width: 100%; height: 100%; display: block; opacity: .22; transition: opacity .3s; }
.jg-board.no-guide .jg-frame canvas { opacity: 0; }
.jg-piece {
  position: absolute; left: 0; top: 0; cursor: grab; touch-action: none;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / .45));
  transition: filter .15s;
}
.jg-piece.drag { cursor: grabbing; filter: drop-shadow(0 10px 14px rgb(0 0 0 / .5)); }
.jg-piece.locked { cursor: default; filter: none; pointer-events: none; }
.jg-piece.snap { animation: jg-snap .3s ease; }
@keyframes jg-snap { 50% { filter: brightness(1.35); } }

.jg-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 8px; }
.jg-pics button { padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.jg-pics button[aria-pressed="true"] { border-color: var(--accent); }
.jg-pics canvas { display: block; width: 100%; aspect-ratio: 3 / 2; }
.jg-pics span { display: block; font-size: 12px; padding: 4px; color: var(--muted); }
@media (max-width: 560px) { .jg-board { border-radius: 0; margin: 0 -16px; width: calc(100% + 32px); } }
