/* Sudoku · stärkere Kontraste (18.10.2026)
   Wird NACH app.css geladen. Die hohe Spezifität + !important ist nötig,
   weil im Spiel noch Regeln des alten Designs mit !important stecken. */
html{
  --k-cell:#ffffff;--k-alt:#eef3f6;--k-thin:#a3b7c2;--k-box:#17212b;
  --k-given:#111a22;--k-user:#0b4ea8;--k-notes:#33434e;
  --k-peer:#9bd6e6;
  --k-sel:#0b6b7d;--k-sel-text:#ffffff;--k-sel-ring:#03323a;
  --k-same:#5b45cf;--k-same-text:#ffffff;
  --k-err:#c0284f;--k-err-text:#ffffff;
  --k-conf:#ffd9e2;--k-conf-text:#8d1739;
  --su-muted:#52646f;
}
html[data-theme="dark"]{
  --k-cell:#1b2a35;--k-alt:#21333f;--k-thin:#3c5563;--k-box:#e3eef3;
  --k-given:#f5fafc;--k-user:#9fe6ff;--k-notes:#c9d7de;
  --k-peer:#2f6276;
  --k-sel:#62d8e5;--k-sel-text:#062a33;--k-sel-ring:#e9fbfd;
  --k-same:#9b88ff;--k-same-text:#140b3f;
  --k-err:#ff7a96;--k-err-text:#2b0610;
  --k-conf:#5a1f30;--k-conf-text:#ffd3dd;
  --su-muted:#b8c9d2;
}

/* Spielfeld: klare Linien, 3×3-Blöcke dunkel abgesetzt */
html[data-theme] body .board{background:var(--k-thin)!important;border-color:var(--k-box)!important;border-width:3px!important}
html[data-theme] body .board .cell{
  background:var(--k-cell)!important;color:var(--k-user)!important;
  border-color:var(--k-thin)!important;box-shadow:none!important;text-shadow:none!important;
  transform:none!important;filter:none!important;font-weight:800;
}
html[data-theme] body .board .cell.block-dark{background:var(--k-alt)!important}
html[data-theme] body .board .cell[style*="border-left: 3px"]{border-left-color:var(--k-box)!important}
html[data-theme] body .board .cell[style*="border-top: 3px"]{border-top-color:var(--k-box)!important}
html[data-theme] body .board .cell.given{color:var(--k-given)!important;font-weight:1000}

/* Markierte Zeile, Spalte und Block: kräftige Fläche, Zahlen bleiben gut lesbar */
html[data-theme] body .board .cell.peer:not(.selected){background:var(--k-peer)!important}
html[data-theme] body .board .cell.same:not(.selected){background:var(--k-same)!important;color:var(--k-same-text)!important}
html[data-theme] body .board .cell.conflict:not(.error){background:var(--k-conf)!important;color:var(--k-conf-text)!important}
html[data-theme] body .board .cell.selected{
  z-index:3;background:var(--k-sel)!important;color:var(--k-sel-text)!important;
  box-shadow:inset 0 0 0 3px var(--k-sel-ring)!important;
}
html[data-theme] body .board .cell.error.error.error{background:var(--k-err)!important;color:var(--k-err-text)!important}
html[data-theme] body .board .cell .notes{color:var(--k-notes)!important}
html[data-theme] body .board .cell:is(.selected,.same,.error) .notes{color:inherit!important}

/* Knöpfe: aktive Notizen auch im Dunkelmodus lesbar */
html[data-theme="dark"] body .control-btn.active{color:#06352b!important;background:#75dfc0!important;border-color:#75dfc0!important}
html[data-theme="light"] body .control-btn.active{color:#ffffff!important;background:#0b6b5a!important;border-color:#0b6b5a!important}
