.bottom-nav{grid-template-columns:repeat(4,1fr)}.bottom-nav label{font:inherit;cursor:pointer}
html[data-theme=dark]{--ink:#edf2f6;--muted:#a5b4c3;--blue:#81aaff;--line:#354657;--paper:#101923;color-scheme:dark}
html[data-theme=dark] body{background:var(--paper);color:var(--ink)}
html[data-theme=dark] button{background:#273748;color:#edf2f6}html[data-theme=dark] button.primary,html[data-theme=dark] .filters .selected{background:#9ac0ff;color:#102235}
html[data-theme=dark] .brand{background:transparent}html[data-theme=dark] a{color:#9ac0ff}
html[data-theme=dark] :is(input,select,dialog,.info-card,.riddle-card,.card,.clue-dock,.cell,.letter,.tile,.anagram-slot,.anagram-tile,.difference-label){background:#1c2937;color:#edf2f6;border-color:var(--line)}
html[data-theme=dark] :is(.intro,.section-kicker,.source,.puzzle-credit,.card small,.card-count,.anagram-kicker,.anagram-count,.anagram-credit,.anagram-type,.anagram-archive-note,.word-progress,.selection-count,.ex-best,.ex-merge-message){color:var(--muted)}
html[data-theme=dark] :is(.bottom-nav,.cross-keyboard,.riddle-actions,.ex-numbers){background:#14202ff5;border-color:var(--line)}
html[data-theme=dark] .bottom-nav button{background:transparent;color:#a5b4c3}html[data-theme=dark] .bottom-nav button.selected{background:#253b55;color:#b9d4ff}
html[data-theme=dark] :is(.continue-card,.riddle-answer,.anagram-source,.anagram-rack,.tutorial,.ex-handoff,.ladder-target,.solved){background:#253348;color:#edf2f6;border-color:var(--line)}
html[data-theme=dark] :is(.hint-card,.anagram-clue,.anagram-letter-hint){background:#3a3120;color:#f4e3bd}html[data-theme=dark] .hint-card b{color:#efc96e}
html[data-theme=dark] .anagram-tile{box-shadow:0 3px 0 #080d14}html[data-theme=dark] .anagram-solved .anagram-slot{background:#245a47;color:#e6fff1}
html[data-theme=dark] .cell.black{background:#080e15}html[data-theme=dark] .cell.void{background:transparent}html[data-theme=dark] .cell.word-active{background:#263f5b}html[data-theme=dark] .cell.cell-active{background:#775f25;color:#fff}
html[data-theme=dark] :is(.letter.green,.keyboard .green,.ex-found){background:#286a51;color:#fff}html[data-theme=dark] :is(.letter.yellow,.keyboard .yellow){background:#896726;color:#fff}html[data-theme=dark] :is(.letter.gray,.keyboard .gray){background:#374552;color:#c0cbd4}
html[data-theme=dark] .tiles .tile.selected{background:#aac5e5;color:#102235}html[data-theme=dark] .searchgrid button.found{background:#275847;color:#ecfff4}
html[data-theme=dark] .ex-sudoku button{background:#1c2937;color:#9ac0ff}html[data-theme=dark] .ex-sudoku .ex-given{background:#253448;color:#edf2f6}html[data-theme=dark] .ex-sudoku .ex-peer{background:#213f48}html[data-theme=dark] .ex-sudoku .ex-same{background:#324f70}html[data-theme=dark] .ex-sudoku .ex-selected{background:#785f25;color:#fff}
html[data-theme=dark] .ex-memory button{background:#243448;color:#edf2f6}html[data-theme=dark] .ex-memory .ex-found{background:#285747}
html[data-theme=dark] :is(.published-expanded,.published-game iframe){background:#101923;border-color:var(--line)}
html[data-theme=dark] .refresh-icon{background:#1c2937}html[data-theme=dark] .is-ready{color:#8fe1ba}
html[data-theme=dark] .handoff-card{background:#23364d;color:#fff}html[data-theme=dark] .handoff-card button{background:#f4c86b;color:#142c42}
html[data-theme=dark] .game-word .keyboard{background:var(--paper)}

html[data-theme=dark] .loop-board{background:linear-gradient(135deg,#1b3440,#293246);border-color:#42596a}html[data-theme=dark] .loop-side button{background:#273b4c;color:#edf2f6;border-color:#6a8ca1}html[data-theme=dark] .loop-side button.covered{background:#285847;border-color:#83c7aa}html[data-theme=dark] .loop-chain span{background:#253448}html[data-theme=dark] .loop-center{color:#a4c8b6}

html[data-theme=dark] .message{color:#b5d1ff}html[data-theme=dark] .inline-feedback{background:#25384d}
