.game-dots-and-boxes{--db-p1:var(--lake);--db-p2:var(--canyon);--db-p3:var(--meadow);--db-p4:var(--twilight)}.game-dots-and-boxes .db-play{width:max(min(100%, 350px), min(100%, 540px, calc(100dvh / var(--page-zoom) - 370px)));gap:14px;margin:0 auto;display:grid}.game-dots-and-boxes .db-meta{color:var(--muted);margin:0;font-size:14px;font-weight:700;line-height:1.5}.game-dots-and-boxes .db-meta b{color:var(--ink)}.game-dots-and-boxes .db-swatch{border:2px solid var(--ink);background:#fff;border-radius:8px;flex:none;width:26px;height:26px;display:block}.game-dots-and-boxes .db-texture{fill:#ffffff80}.game-dots-and-boxes .db-texture-line{fill:none;stroke:#ffffff80;stroke-width:.06px;stroke-linejoin:miter}.game-dots-and-boxes .db-looks{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:20px 24px;display:grid}.game-dots-and-boxes .db-looks[data-n="4"]{max-width:600px}.game-dots-and-boxes .db-look{align-content:start;gap:8px;display:grid}.game-dots-and-boxes .db-look-head{align-items:center;gap:8px;display:flex}.game-dots-and-boxes .db-look-head .dt-field-label{margin:0}.game-dots-and-boxes .db-look-row{flex-wrap:wrap;gap:8px;display:flex}.game-dots-and-boxes .db-look-opt{cursor:pointer;background:#fff;border:2px solid #0000;border-radius:12px;place-items:center;width:44px;height:44px;padding:0;display:grid}.game-dots-and-boxes .db-look-opt[aria-pressed=true]{border-color:var(--ink);box-shadow:0 0 0 3px var(--signpost)}.game-dots-and-boxes .db-look-opt:focus-visible{outline:3px solid var(--lake);outline-offset:3px}.game-dots-and-boxes .db-look-opt[data-taken]{opacity:.4;cursor:not-allowed;position:relative}.game-dots-and-boxes .db-look-opt[data-taken]:after{content:"";background:linear-gradient(to top right, transparent calc(50% - 1.5px), var(--ink) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px));position:absolute;inset:6px}.game-dots-and-boxes .db-look-opt:disabled:not([data-taken]){cursor:default}.game-dots-and-boxes .db-look-color{border:2px solid var(--ink);border-radius:50%;width:26px;height:26px;display:block}.game-dots-and-boxes .db-scoreboard{justify-items:center;gap:8px;display:grid}.game-dots-and-boxes .db-scores{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;margin:0;padding:0;list-style:none;display:grid}.game-dots-and-boxes .db-scores[data-n="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.game-dots-and-boxes .db-scores[data-n="4"]{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.game-dots-and-boxes .db-score{border:2px solid var(--sky-deep);background:#fff;border-radius:14px;grid-template-columns:auto auto;grid-template-areas:"fill count""name name";justify-content:center;align-items:center;gap:4px 8px;min-width:0;padding:6px 8px;display:grid}.game-dots-and-boxes .db-score .db-swatch{grid-area:fill}.game-dots-and-boxes .db-score[data-turn]{border-color:var(--ink);background:var(--sunbeam-tint)}.game-dots-and-boxes .db-score[data-turn] .db-swatch{box-shadow:0 0 0 3px var(--signpost)}.game-dots-and-boxes .db-score[data-out]{opacity:.6;border-style:dashed}.game-dots-and-boxes .db-score-name{max-width:100%;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;grid-area:name;justify-self:center;font-size:13px;font-weight:800;line-height:1.2;overflow:hidden}.game-dots-and-boxes .db-score-count{font-family:var(--font-display);font-variant-numeric:tabular-nums;grid-area:count;font-size:26px;font-weight:600;line-height:1}.game-dots-and-boxes .db-scores-left{letter-spacing:1px;text-transform:uppercase;color:var(--muted);font-size:11.5px;font-weight:800;line-height:26px}@media (width<=480px){.game-dots-and-boxes .db-scores[data-n="4"] .db-score{column-gap:5px;padding:5px 4px}.game-dots-and-boxes .db-scores[data-n="4"] .db-score .db-swatch{border-radius:6px;width:20px;height:20px}.game-dots-and-boxes .db-scores[data-n="4"] .db-score .db-score-count{font-size:21px}.game-dots-and-boxes .db-scores[data-n="4"] .db-score .db-score-name{font-size:12px}}.game-dots-and-boxes .db-again{background:var(--sunbeam-tint);border:2px solid var(--ink);font-family:var(--font-display);color:var(--ink);white-space:nowrap;border-radius:999px;flex:none;padding:4px 12px;font-size:15px;font-weight:600;line-height:1.2}.game-dots-and-boxes .db-frame{border:2px solid var(--ink);border-radius:var(--radius-card);box-shadow:var(--shadow-card);background:#fff;grid-template-columns:minmax(0,1fr);padding:4px;display:grid}.game-dots-and-boxes .db-frame>*{grid-area:1/1}.game-dots-and-boxes .db-board{touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;width:100%;display:block}.game-dots-and-boxes .db-dot{fill:var(--ink);pointer-events:none}.game-dots-and-boxes .db-guide{stroke:#c9d4e5;stroke-width:.04px;stroke-linecap:round;stroke-dasharray:.06 .1;pointer-events:none}.game-dots-and-boxes .db-line{stroke:var(--ink);stroke-width:.1px;stroke-linecap:round;pointer-events:none}.game-dots-and-boxes .db-line[data-player="1"]{stroke:var(--db-p1)}.game-dots-and-boxes .db-line[data-player="2"]{stroke:var(--db-p2)}.game-dots-and-boxes .db-line[data-player="3"]{stroke:var(--db-p3)}.game-dots-and-boxes .db-line[data-player="4"]{stroke:var(--db-p4)}.game-dots-and-boxes .db-line[data-last]{stroke-width:.13px}.game-dots-and-boxes .db-box{stroke:var(--ink);stroke-width:.03px;pointer-events:none;transform-box:fill-box;transform-origin:50%}.game-dots-and-boxes .db-hit{fill:#0000;stroke:none;pointer-events:fill}.game-dots-and-boxes .db-edge{outline:none}.game-dots-and-boxes .db-edge[data-live]{cursor:pointer}.game-dots-and-boxes .db-preview{stroke:var(--ink);stroke-width:.1px;stroke-linecap:round;opacity:0;pointer-events:none;transition:opacity .12s}.game-dots-and-boxes .db-board[data-turn="1"] .db-preview{stroke:var(--db-p1)}.game-dots-and-boxes .db-board[data-turn="2"] .db-preview{stroke:var(--db-p2)}.game-dots-and-boxes .db-board[data-turn="3"] .db-preview{stroke:var(--db-p3)}.game-dots-and-boxes .db-board[data-turn="4"] .db-preview{stroke:var(--db-p4)}@media (hover:hover){.game-dots-and-boxes .db-edge[data-live]:hover .db-preview{opacity:.45}}.game-dots-and-boxes .db-edge[data-live]:focus-visible .db-preview{opacity:.45}.game-dots-and-boxes .db-focus{stroke:var(--lake);stroke-width:.26px;stroke-linecap:round;opacity:0;pointer-events:none}.game-dots-and-boxes .db-edge:focus-visible .db-focus{opacity:.4}.game-dots-and-boxes .db-board[data-animate] .db-box-new{animation:.22s ease-out both db-reveal}@media (prefers-reduced-motion:no-preference){.game-dots-and-boxes .db-board[data-animate] .db-box-new{animation:.38s cubic-bezier(.2,.9,.3,1.2) 90ms both db-claim}.game-dots-and-boxes .db-board[data-animate] .db-line[data-last]{stroke-dasharray:1;animation:.17s ease-out both db-draw}.game-dots-and-boxes .db-again{animation:.36s cubic-bezier(.2,.9,.3,1.3) both db-pop}}.game-dots-and-boxes .db-result-layer{z-index:10;border-radius:var(--radius-card);background:#cde2f78c;justify-content:center;align-items:center;margin:-4px;padding:12px;display:flex;position:relative;overflow-x:clip}.game-dots-and-boxes .db-result-layer .dt-result{width:min(360px,100%)}.game-dots-and-boxes .db-standings{text-align:left;margin:14px 0 2px}.game-dots-and-boxes .db-standings-title{font-family:var(--font-display);justify-content:space-between;align-items:baseline;gap:8px;margin:0 0 6px;font-size:15px;font-weight:600;display:flex}.game-dots-and-boxes .db-standings-of{font-family:var(--font-body);color:var(--muted);font-size:12.5px;font-weight:700}.game-dots-and-boxes .db-standings-list{gap:5px;margin:0;padding:0;list-style:none;display:grid}.game-dots-and-boxes .db-standing{border:1.5px solid var(--sky-deep);background:#fff;border-radius:12px;grid-template-columns:16px auto minmax(0,1fr) auto;align-items:center;column-gap:8px;padding:4px 10px;font-size:14px;font-weight:700;line-height:1.25;display:grid}.game-dots-and-boxes .db-standing .db-swatch{border-radius:6px;width:22px;height:22px}.game-dots-and-boxes .db-standing[data-won]{border:2px solid var(--ink);background:var(--sunbeam-tint)}.game-dots-and-boxes .db-standing[data-out]{color:var(--muted);border-style:dashed}.game-dots-and-boxes .db-standing-place{font-family:var(--font-display);text-align:center;font-variant-numeric:tabular-nums;font-size:16px;font-weight:600}.game-dots-and-boxes .db-standing-who{min-width:0;display:grid}.game-dots-and-boxes .db-standing-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.game-dots-and-boxes .db-standing-boxes{font-family:var(--font-display);font-variant-numeric:tabular-nums;font-size:20px;font-weight:700}.game-dots-and-boxes .db-standing-status{align-items:center;gap:4px;font-size:12px;font-weight:800;display:inline-flex}.game-dots-and-boxes .db-standing-status svg{stroke-width:3px;flex:none;width:12px;height:12px}.game-dots-and-boxes .db-foot{flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 14px;display:flex}.game-dots-and-boxes .db-lead{border-radius:10px;width:38px;height:38px}.game-dots-and-boxes .db-modes{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:6px;display:grid}.game-dots-and-boxes .db-mode{text-align:left;color:var(--ink);border:2px solid var(--ink);border-radius:var(--radius-card);box-shadow:var(--shadow-card);cursor:pointer;font:inherit;background:#fff;flex-direction:column;gap:6px;padding:18px;transition:box-shadow .14s;display:flex}.game-dots-and-boxes .db-mode p{color:var(--muted);margin:0;font-size:14.5px;font-weight:600;line-height:1.45}.game-dots-and-boxes .db-mode:hover{box-shadow:var(--shadow-card-hover)}.game-dots-and-boxes .db-mode:focus-visible{outline:3px solid var(--lake);outline-offset:3px}.game-dots-and-boxes .db-mode-title{font-family:var(--font-display);align-items:center;gap:10px;font-size:20px;font-weight:600;display:flex}.game-dots-and-boxes .db-mode-title svg{width:22px;height:22px}.game-dots-and-boxes .db-code{font-family:var(--font-display);font-weight:700;font-size:clamp(36px, 10vw / var(--page-zoom), 52px);letter-spacing:.25em;text-align:center;border:2px dashed var(--sky-deep);border-radius:var(--radius-card);font-variant-numeric:tabular-nums;padding-left:.25em;margin:12px 0 16px;padding-block:10px}.game-dots-and-boxes .db-code-input{font-family:var(--font-display);letter-spacing:.3em;text-transform:uppercase;width:11ch;font-weight:600}.game-dots-and-boxes .db-seats{gap:10px;margin:0;padding:0;list-style:none;display:grid}.game-dots-and-boxes .db-seats li{align-items:center;gap:10px;font-size:15px;font-weight:700;display:flex}.game-dots-and-boxes .db-seats li[data-taken=false]{color:var(--muted)}.game-dots-and-boxes .db-seats li[data-taken=false] .db-swatch{opacity:.35}.game-dots-and-boxes .db-help{gap:14px;margin:0;padding:0;list-style:none;display:grid}.game-dots-and-boxes .db-help-step{grid-template-columns:84px minmax(0,1fr);align-items:center;gap:14px;display:grid}.game-dots-and-boxes .db-help-step h3{font-family:var(--font-display);margin:0 0 2px;font-size:17px;font-weight:600;line-height:1.2}.game-dots-and-boxes .db-help-step p{margin:0;font-size:14.5px;font-weight:600;line-height:1.4}.game-dots-and-boxes .db-help-art{justify-content:center;display:flex}.game-dots-and-boxes .db-help-art .db-board{border:2px solid var(--ink);background:#fff;border-radius:8px}.game-dots-and-boxes .db-help-foot{justify-content:flex-end;margin-top:18px;display:flex}@media (width<=420px){.game-dots-and-boxes .db-help{gap:12px}.game-dots-and-boxes .db-help-step{grid-template-columns:72px minmax(0,1fr);gap:12px}.game-dots-and-boxes .db-help-step h3{font-size:16px}.game-dots-and-boxes .db-help-step p{font-size:14px;line-height:1.35}}@media (width<=359px),(height<=600px){.game-dots-and-boxes .db-help{gap:10px}.game-dots-and-boxes .db-help-step{grid-template-columns:56px minmax(0,1fr);gap:10px}.game-dots-and-boxes .db-help-step h3{font-size:15px}.game-dots-and-boxes .db-help-step p{font-size:13px;line-height:1.3}.game-dots-and-boxes .db-help-foot{margin-top:12px}.dt-modal:has(.db-help){padding:10px 14px 14px}.dt-modal:has(.db-help) .dt-modal-title{margin:6px 0 0;font-size:18px}.dt-modal:has(.db-help) .dt-icon-btn{width:38px;height:38px}}@keyframes db-reveal{0%{opacity:0}to{opacity:1}}@keyframes db-claim{0%{opacity:0;transform:scale(.6)}40%{opacity:1}65%{transform:scale(1.08)}to{opacity:1;transform:scale(1)}}@keyframes db-draw{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}@keyframes db-pop{0%{transform:scale(.7)}60%{transform:scale(1.1)}to{transform:scale(1)}}
