:root{--second-ink:#a02937}
:root[data-pen-style=azul]{--second-ink:#194f99}
:root[data-pen-style=og]{--second-ink:#202020}
.scorebook{--paper:#fffdf7;box-sizing:border-box;color-scheme:light;color:#20201f;background:var(--paper);border-radius:5px;padding:clamp(12px,3vw,23px);margin:12px 0 16px;box-shadow:0 2px 6px #0002;text-align:left}
.bookHeading,.bookPlayer,.bookPair,.bookEntry{display:flex;align-items:center}
.bookHeading{justify-content:space-between;gap:8px;border-bottom:1px solid #a9a79d;padding-bottom:8px}
.scorebook .bookTitle{margin:0;color:#242321;font:italic 600 clamp(1.25rem,4vw,1.7rem)/1.2 Georgia,serif;letter-spacing:-.035em}
.bookStyle{font:600 .81rem system-ui;color:#242321;background:#fff;border:1px solid #817f78;border-radius:5px;min-height:44px;padding:4px 6px;max-width:58%}
.bookLegend{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 16px}
.bookPlayer{min-width:0;gap:5px;align-items:flex-start;flex-wrap:wrap}
.ink0{color:#202020}.ink1{color:var(--second-ink)}
.bookMarker,.seatInk{font:700 1.22rem/1 Georgia,serif}
.bookIdentity{flex:1;min-width:4em}.bookIdentity strong,.bookIdentity small{display:block;overflow-wrap:anywhere;line-height:1.2}
.bookIdentity strong{font-size:.9rem}.bookIdentity small,.bookCategory{font:650 .7rem/1.25 system-ui,sans-serif}
.bookTotal{font:italic bold .95rem Georgia,serif;white-space:nowrap}
.nineSquares{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.scorebook .bookSquare{box-sizing:border-box;min-width:0;margin:0;min-height:60px;padding:5px 3px 7px;border:none;border-radius:0;background:transparent;text-align:center;color:#232321;box-shadow:none}
.nineSquares>.bookSquare:not(:nth-child(3n)){border-right:1.5px solid #202020}
.nineSquares>.bookSquare:nth-child(n+4){border-top:1.5px solid #202020}
.bookCategory{display:block;color:#494740}.bookPair{justify-content:center;gap:clamp(5px,2vw,18px);margin-top:4px}
.bookEntry{gap:2px}.bookSign{font:700 .65rem Georgia,serif}.bookNumber{font:italic 650 clamp(1.25rem,4.8vw,1.75rem)/1 Georgia,serif;font-variant-numeric:tabular-nums}
.bookEntry.empty{opacity:.52}
.bookGrandes{display:flex;justify-content:center;gap:16px;border-top:1px dashed #aaa79b;margin-top:10px;padding-top:3px}
.bookGrandes .bookSquare{min-width:30%}
.scorebook button.available{cursor:pointer;background:#e4eddc;outline:1px dashed #4c6b4e;outline-offset:-4px}
.scorebook :focus-visible{outline:3px solid #326294;outline-offset:-3px}
.seatInk{display:inline-block;min-width:1.1em;text-align:center;border-radius:50%;background:#fffdf7;margin-right:4px;vertical-align:baseline}
[data-pen-style=og] .scorebook{--paper:white}.cameraFocus #bookArea{display:none}
@media(prefers-reduced-motion:no-preference){.freshInk .bookNumber{animation:inkDown .55s ease-out}@keyframes inkDown{from{opacity:.25;transform:translateY(-3px) rotate(-7deg)}to{opacity:1;transform:none}}}
@media(max-width:390px){.bookLegend{column-gap:7px}.bookTotal{flex-basis:100%;padding-left:18px}}
.scorebook .jugadaArt{display:flex;margin:0 auto 3px}.scorebook .bookSquare{scroll-margin:6rem}
html[data-motion=off] .freshInk .bookNumber,body:has(#motion:not(:checked)) .freshInk .bookNumber{animation:none}
