.tally-board{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));justify-content:center;gap:18px;width:100%;min-height:0;max-height:calc(100svh - 470px);padding:10px 6px 14px;display:grid;overflow:auto}.tally-board[data-count="1"],.tally-board[data-count="2"]{grid-template-columns:repeat(auto-fit,minmax(170px,230px))}.tally-clicker{display:grid;position:relative}.tally-hit{color:#1d2328;cursor:pointer;min-height:150px;font:inherit;background:linear-gradient(160deg,#f4f6f8,#b8c0c7 45%,#e6eaee 70%,#9aa3ab);border:0;border-radius:28px 28px 22px 22px;align-content:center;justify-items:center;gap:10px;padding:16px 12px 18px;transition:transform 80ms,box-shadow 80ms;display:grid;position:relative;box-shadow:inset 0 1px #ffffffe6,inset 0 -3px #0000002e,0 6px #6f777e,0 14px 22px #3c320a4d}.tally-hit:active{transform:translateY(4px);box-shadow:inset 0 1px #ffffffe6,inset 0 -3px #0000002e,0 2px #6f777e,0 8px 14px #3c320a4d}.tally-hit:focus-visible{outline-offset:3px;outline:3px solid #2b2410}.tally-name{overflow-wrap:anywhere;text-align:center;max-width:100%;padding-inline:26px;font-weight:700;line-height:1.2}.tally-count{color:#f2f4f5;font-variant-numeric:tabular-nums;text-align:center;direction:ltr;background:linear-gradient(#1b1f23,#2c3238 50%,#1b1f23);border-radius:8px;min-width:4.2ch;padding:8px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:clamp(1.8rem,4vw,2.6rem);line-height:1;box-shadow:inset 0 2px 4px #0009,0 0 0 3px #7c858c}.tally-clicker[data-last=true] .tally-count{box-shadow:inset 0 2px 4px #0009,0 0 0 3px #d6a515}.tally-key{top:10px;color:#1d2328b3;background:#ffffffb3;border-radius:6px;padding:1px 6px;font-family:inherit;font-size:.72rem;font-weight:700;position:absolute;inset-inline-start:12px}.tally-minus{top:8px;color:#1d2328;cursor:pointer;background:#ffffffd9;border:1px solid #1d232840;border-radius:50%;place-items:center;width:34px;height:34px;display:grid;position:absolute;inset-inline-end:8px}.tally-minus:focus-visible{outline-offset:2px;outline:2px solid #2b2410}.tally-names{border:0;gap:8px;margin:0;padding:0;display:grid}.tally-names legend{margin-block-end:8px;padding:0;font-size:.92rem;font-weight:500}.tally-name-row{grid-template-columns:minmax(0,1fr) 40px;gap:6px;display:grid}.tally-remove{border:1px solid var(--line);border-radius:var(--radius);color:var(--ink);cursor:pointer;background:0 0;place-items:center;display:grid}.tally-remove:disabled{cursor:not-allowed;opacity:.4}.table-page[data-product=tally-counter] .tally-total{white-space:nowrap;font-size:clamp(1.6rem,3vw,2.4rem)}@media (max-width:600px){.tally-board{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tally-hit{min-height:124px}}@media (max-width:960px){.tally-board{max-height:none}}.tally-float{color:var(--product-accent);font-family:var(--font-display), var(--font-ui), sans-serif;pointer-events:none;font-size:1.4rem;font-weight:900;position:absolute;top:18%;left:50%;translate:-50%}html body .table-page.table-page .tally-clicker{--key:linear-gradient(165deg, #8f9aff, #3d4bff 55%, #2a33c9);--key-edge:#1b22a8}html body .table-page.table-page .tally-clicker:nth-child(5n+2){--key:linear-gradient(165deg, #ffb3a8, #ff6f5e 55%, #e8442f);--key-edge:#b8301f}html body .table-page.table-page .tally-clicker:nth-child(5n+3){--key:linear-gradient(165deg, #8ff0d0, #36dcae 55%, #1fb68b);--key-edge:#158a69}html body .table-page.table-page .tally-clicker:nth-child(5n+4){--key:linear-gradient(165deg, #ffe27a, #ffc21a 55%, #f0a800);--key-edge:#b88200}html body .table-page.table-page .tally-clicker:nth-child(5n){--key:linear-gradient(165deg, #d6caff, #a693ff 55%, #7d66e0);--key-edge:#5a45b8}html body .table-page.table-page .tally-hit{background:radial-gradient(70% 45% at 30% 10%, #ffffff8c, transparent 70%), var(--key);box-shadow:inset 0 1px 0 #fff9, inset 0 -10px 20px #0000001f, 0 6px 0 var(--key-edge), 0 18px 30px -12px #0e103073;color:#fff;border-radius:30px}html body .table-page.table-page .tally-hit:active{box-shadow:inset 0 1px 0 #fff9, inset 0 -10px 20px #0000001f, 0 2px 0 var(--key-edge), 0 10px 18px -10px #0e103073}html body .table-page.table-page .tally-hit:focus-visible{outline-color:#3d4bff}html body .table-page.table-page .tally-name{text-shadow:0 1px #00000026}html body .table-page.table-page .tally-count{color:#fff;font-family:var(--font-display), var(--font-ui), sans-serif;text-shadow:0 2px #00000026;background:#fff3;border-radius:16px;font-weight:700;box-shadow:inset 0 1px #ffffff80,inset 0 -2px 6px #0000001f}html body .table-page.table-page .tally-clicker[data-last=true] .tally-count{box-shadow:inset 0 1px #ffffff80,0 0 0 3px #ffd03d,0 0 18px #ffd03db3}html body .table-page.table-page .tally-clicker:nth-child(5n+4) :is(.tally-hit,.tally-count){color:#3a2a00;text-shadow:none}html body .table-page.table-page .tally-key{color:inherit;background:#ffffff4d}html body .table-page.table-page .tally-clicker:nth-child(5n+4) .tally-key{color:#3a2a00}html body .table-page.table-page .tally-clicker:not(:nth-child(5n+4)) .tally-key{color:#fff}html body .table-page.table-page .tally-minus{color:#0e1030;background:linear-gradient(160deg,#fff,#eef0ff);border:1px solid #fffc;box-shadow:0 4px 10px -4px #0e103080}html body .table-page.table-page .tally-float{color:#3d4bff;font-family:var(--font-display), var(--font-ui), sans-serif;text-shadow:0 2px #fff}
