:root { color-scheme: light; --ink:#282923; --accent:#55491c; --line:#d9d7cf; --paper:#fffdf5; font-family:"DM Sans",system-ui,sans-serif; color:var(--ink); background:#f1efe7 }
* {box-sizing:border-box} [hidden] {display:none!important}
body {margin:0}
a {color:var(--accent)}
main h1,main h2 {font-family:"Baskervville",Georgia,serif}
#game-header .pp-game-header-top {flex-wrap:wrap;row-gap:8px}
#game-header .pp-game-brand-wordmark {gap:0}
#game-header .pp-game-brand-wordmark,#game-header .pp-game-header-home {--pp-accent:#6c5814}
main {margin:clamp(8px,3vh,32px) auto;background:var(--paper);padding:clamp(15px,4vw,36px);border:1px solid var(--line);border-radius:12px}
main h1 {font-size:clamp(2rem,6vw,3.4rem);line-height:1.05;margin:.2em 0;letter-spacing:-.035em} main h2 {font-size:1.5rem;margin:.8em 0 .35em}
p {line-height:1.5}.dateline {font-size:.78rem;color:#5d5951;font-weight:650;letter-spacing:.04em;margin:0}.intro {margin-bottom:1.4rem}
button,select,input {font:inherit} button {cursor:pointer;color:var(--ink);background:#fff;border:1px solid var(--line);padding:9px 13px;border-radius:6px;font-weight:600}button:hover:enabled {background:#f7edbe}button:disabled {opacity:.5;cursor:default} :focus-visible {outline:3px solid #bd783a;outline-offset:1px} .primary,button.primary:hover {background:var(--accent);color:white}
#choices,#unfinished {display:grid;gap:9px} #choices button,#unfinished button {display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;padding:16px} #choices strong {font:600 1.5rem Georgia,serif} #choices small {display:block;font-weight:450;margin-top:2px;color:#605947} #unfinished:empty {display:none}
.game-heading,.clock,.mode,.filters,.tools,footer {display:flex;align-items:center;gap:10px}.game-heading,.mode {justify-content:space-between}.game-heading {margin-bottom:12px}.game-heading h1 {font-size:2rem}.clock output {font-variant-numeric:tabular-nums}.clock {flex-wrap:wrap;justify-content:flex-end}
#grid {display:grid;grid-template:repeat(9,minmax(0,1fr))/repeat(9,minmax(0,1fr));aspect-ratio:1;border:2px solid var(--ink);width:min(100%,max(310px,55svh));margin:auto;background:white}
.square {min-width:0;min-height:0;border:0;border-radius:0;border-right:1px solid #c2bfb4;border-bottom:1px solid #c2bfb4;padding:0;color:#514935;font-weight:500;font-size:clamp(19px,4vw,30px);position:relative}
.square:nth-child(3n) {border-right:2px solid var(--ink)}.square:nth-child(9n) {border-right:0}.square:nth-child(n+19):nth-child(-n+27),.square:nth-child(n+46):nth-child(-n+54) {border-bottom:2px solid var(--ink)}.square:nth-child(n+73) {border-bottom:0}
.square.given {font-weight:750;color:var(--ink)}.square.match {background:#fff0a9}.square.chosen,.square.chosen:hover {background:#f4cf62;box-shadow:inset 0 0 0 2px var(--accent)}.square.conflict {color:#9c342e;text-decoration:underline}
.marks {height:100%;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);font-size:clamp(8px,1.6vw,13px);line-height:1;font-weight:500;color:#555047}.marks i {align-self:center;font-style:normal}
.mode {margin:12px 0 6px;color:#544d3f;font-size:.85rem}#notes[aria-pressed=true] {background:var(--accent);color:white}#digits {display:grid;grid-template-columns:repeat(9,1fr);gap:3px}#digits button {padding:8px 0;min-height:42px;font-size:1.2rem}#digits.notes button {font-size:.96rem;background:#fff2b1}.tools {flex-wrap:wrap;gap:5px;margin-top:8px}.tools button {font-size:.85rem;padding:8px}
.cover,#finished {text-align:center;background:#f5efda;border-radius:8px;padding:32px 12px}.cover button,#finished button {margin:4px}#feedback,#streak {font-size:.9rem}.filters {flex-wrap:wrap;margin:1rem 0}label {display:grid;gap:5px;font-size:.85rem}select,input {border:1px solid var(--line);border-radius:5px;padding:8px;background:#fff;color:var(--ink)}
table {width:100%;border-collapse:collapse}th,td {padding:12px 6px;text-align:left;border-bottom:1px solid var(--line)}th:last-child,td:last-child {text-align:right;font-variant-numeric:tabular-nums}#message {color:#97382d}footer {flex-wrap:wrap;margin-top:20px;border-top:1px solid var(--line);padding-top:14px;gap:18px;font-size:.85rem}
@media(max-width:600px){main{border:0;border-radius:0;margin:0;padding:12px}#grid {width:min(100%,max(285px,55svh))}.game-heading{margin-bottom:6px}.game-heading h1{font-size:1.65rem}.square:hover:enabled{background-color:inherit}.square.chosen:hover{background:#f4cf62}.square.match:hover{background:#fff0a9}}
