/* Jigsaw: a cork table under a warm lamp. The frame is a recessed tray; pieces cast a small shadow while loose. */
:root { --page: #e8e1d3; --card: #f6f1e7; --ink: #241e16; --soft: #6c6252; --line: #d5cab6; --cork: #c9a77c; --act: #7a4b20; --on-act: #ffffff; --stop: #b3261e; --wide: 760px; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --page: #15120e; --card: #1f1a14; --ink: #f0e8db; --soft: #ae9f8a; --line: #3a3128; --cork: #7a6040; --act: #e8b27e; --on-act: #2a1502; --stop: #ff8a80; color-scheme: dark; }
}
.between { justify-content: space-between; align-items: center; } .scores { display: flex; gap: 12px; color: var(--soft); font-variant-numeric: tabular-nums; } .scores b { color: var(--ink); }
.bar { gap: 8px; margin-bottom: 10px; } .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
label.button { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0 22px; border-radius: 999px; background: var(--act); color: var(--on-act); font-weight: 700; min-height: 48px; box-sizing: border-box; white-space: nowrap; }
label.button:focus-within { outline: 3px solid var(--act); outline-offset: 2px; }
.table { position: relative; border-radius: 14px; touch-action: none; user-select: none; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 60%), repeating-radial-gradient(circle at 40% 60%, rgba(0,0,0,.05) 0 2px, transparent 2px 5px), var(--cork); }
.frame { position: absolute; background: rgba(0,0,0,.18) center / 100% 100% no-repeat; box-shadow: inset 0 2px 8px rgba(0,0,0,.35); border-radius: 4px; }
.frame.ghost { background-color: rgba(0,0,0,.1); } .frame:not(.ghost) { background-image: none !important; }
.frame.ghost::after { content: ""; position: absolute; inset: 0; background: var(--cork); opacity: .72; }
.pc { position: absolute; filter: drop-shadow(1px 3px 3px rgba(0,0,0,.4)); cursor: grab; }
.pc.home { filter: none; cursor: default; } .pc.drag { filter: drop-shadow(3px 8px 6px rgba(0,0,0,.45)); cursor: grabbing; }
.msg { text-align: center; font-weight: 700; min-height: 1.5em; }
