/* Dots & Boxes */
.db-score { display: flex; justify-content: center; gap: 28px; margin: 0 0 10px; font-family: var(--font-display); font-size: 16px; }
.db-p1 b { color: var(--a1); } .db-p2 b { color: var(--a2); }
#db-msg[data-p="1"] { color: var(--a1); } #db-msg[data-p="2"] { color: var(--a2); }
.db-wrap { width: min(100%, 460px); margin: 0 auto; }
.db-svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
.db-dots circle { fill: var(--fg); }
.db-line { cursor: pointer; outline: none; }
.db-line .hit { stroke: transparent; stroke-width: 18; stroke-linecap: round; }
.db-line .ink { stroke: var(--line); stroke-width: 4; stroke-linecap: round; opacity: .35; stroke-dasharray: 2 8; }
.db-line:hover .ink, .db-line:focus-visible .ink { opacity: 1; stroke: var(--dim); stroke-dasharray: none; }
.db-line.on { pointer-events: none; }
.db-line.on .ink { opacity: 1; stroke-dasharray: none; stroke-width: 6; }
.db-line.p1 .ink { stroke: var(--a1); } .db-line.p2 .ink { stroke: var(--a2); }
.db-line.last .ink { animation: db-pop .3s ease; }
@keyframes db-pop { from { stroke-width: 12; } }
.db-box { fill: transparent; transition: fill .25s; }
.db-box.p1 { fill: color-mix(in srgb, var(--a1) 22%, transparent); } .db-box.p2 { fill: color-mix(in srgb, var(--a2) 22%, transparent); }
.db-init { font-family: var(--font-display); font-size: 13px; text-anchor: middle; dominant-baseline: central; fill: var(--fg); }

[data-theme="retro"] .db-line .ink { stroke-linecap: square; }
[data-theme="retro"] .db-line.on .ink { filter: drop-shadow(0 0 3px currentColor); }
[data-theme="retro"] .db-line.p1 .ink { color: var(--a1); } [data-theme="retro"] .db-line.p2 .ink { color: var(--a2); }
[data-theme="retro"] .db-dots circle { fill: var(--a3); }
[data-theme="retro"] .db-box { rx: 0; }
[data-theme="retro"] .db-init { font-size: 9px; }
[data-theme="retro"] .db-score { font-size: 11px; }

[data-theme="doodle"] .db-lines, [data-theme="doodle"] .db-boxes { filter: url(#sf-wobble); }
[data-theme="doodle"] .db-line.on .ink { stroke-width: 4.5; }
[data-theme="doodle"] .db-box.p1 { fill: color-mix(in srgb, var(--a1) 30%, transparent); }
[data-theme="doodle"] .db-init { font-size: 16px; }
[data-theme="doodle"] .db-dots circle { r: 4.5; }
