/* Shape Sudoku (owner 2026-11-17), the 4th brain daily: one black board (field design: see .sd-board below), flat shapes in the
   owner's colors, the six shapes to pick below as Logic tiles. The board is #pl-stem and the pick row #pl-opts of the shared
   quiz.js page (js/sudoku.js draws them), so these rules also undo the shared .pl-stem / .pl-opts grid gaps. */
/* owner 2026-11-17, field design 5 of mockups/sudoku-field.html ("soft rainbow lines + shine"): square corners, very dark
   hairlines, box lines in the six shape colors fading out at the ends, a soft rainbow shine behind the board. The shape colors
   come in as --p0..--p5 (set by sudoku.js from its COLORS). The shine is ONE blurred layer kept on its own compositing layer
   (will-change), so placing shapes does not redraw it (an earlier blur redrawn on every tap felt laggy on phones). */
.sd-board { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; background: #000; border-radius: 0; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
/* the shine (z-index -1) sits behind the board inside these; never isolate the board itself, or the shine paints over it */
.sd-wrap, .pl-recap-inner { isolation: isolate; }
.sd-board::after { content: ""; position: absolute; inset: -5px; z-index: -1; pointer-events: none; will-change: transform;
  background: conic-gradient(from 210deg, var(--p0), var(--p1), var(--p2), var(--p3), var(--p4), var(--p5), var(--p0)); filter: blur(9px); opacity: 0.55; }
.sd-c { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; border-right: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a; -webkit-tap-highlight-color: transparent; }
.sd-c:nth-child(6n) { border-right: 0; }
.sd-c:nth-last-child(-n+6) { border-bottom: 0; }
.sd-line { position: absolute; z-index: 2; pointer-events: none; }
.sd-v { top: 0; bottom: 0; width: 1.5px; margin-left: -0.75px; background: linear-gradient(180deg, transparent, var(--p0) 18%, var(--p2) 50%, var(--p5) 82%, transparent); }
.sd-h { left: 0; right: 0; height: 1.5px; margin-top: -0.75px; background: linear-gradient(90deg, transparent, var(--p0) 12%, var(--p1) 30%, var(--p2) 50%, var(--p3) 66%, var(--p4) 82%, transparent); }
.sd-c.given { cursor: default; }
.sd-c svg { display: block; width: 74%; height: 74%; pointer-events: none; }
.sd-c.sel { box-shadow: inset 0 0 0 2px #e7e7e7; border-radius: 6px; }
.sd-c.bad { box-shadow: inset 0 0 0 2px var(--bad); border-radius: 6px; }
.sd-board.done { box-shadow: 0 0 0 2px var(--accent); }
/* owner 2026-11-17: more room between the grid and the shapes to pick, with a thin line in the middle of it */
.sd-pick { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 26px; isolation: isolate; }
.sd-pick::after { content: ""; position: absolute; left: 6%; right: 6%; top: -13px; height: 1px; background: rgba(231, 231, 231, 0.28); }
.sd-pick button { position: relative; aspect-ratio: 1; padding: 0; background: #000; border: 1px solid #262626; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sd-pick svg { display: block; width: 84%; height: 84%; pointer-events: none; }
/* the shape picked first (the pen): lit until it is tapped again */
.sd-pick button.armed { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 8px 1px rgba(var(--accent-rgb), 0.45); }
.sd-pick button:disabled { opacity: 0.35; cursor: default; }
/* the clock counts up top right, where the other brain games show "1 of 3" */
.sd-time { font-variant-numeric: tabular-nums; text-transform: none; }
/* the verdict over the grid (as in the other brain games), square like the board */
.sd-wrap { margin-top: 12px; }
.sd-wrap .mh-end { background: rgba(0, 0, 0, 0.78); border-radius: 0; z-index: 6; }
.sd-mini { pointer-events: none; }
