#game-sudoku { scroll-margin-top: 180px; }
.sudoku-daily {
  --sudoku-ink: #142e28;
  --sudoku-green: #125a47;
  --sudoku-line: #bac6bd;
  --sudoku-cream: #fcfaf2;
  --sudoku-accent: #efd065;
  color: var(--sudoku-ink);
  background: #fff;
  border: 1px solid #cbd5cc;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgb(20 46 40 / 7%);
  scroll-margin-top: 180px;
}
.sudoku-daily *, .sudoku-daily *::before, .sudoku-daily *::after { box-sizing: border-box; }
.sudoku-daily [hidden] { display: none !important; }
.sudoku-daily p, .sudoku-daily h2, .sudoku-daily h3, .sudoku-daily dl, .sudoku-daily dd { margin: 0; }
.sudoku-daily__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  color: #fff;
  background: #133e33;
  border-top: 5px solid var(--sudoku-accent);
}
.sudoku-daily__eyebrow { color: #f5da7e; font: 800 11px/1.3 Arial, sans-serif; letter-spacing: .09em; }
.sudoku-daily h2 { margin-top: 7px; color: #fff; font: 700 clamp(28px, 3vw, 42px)/1.1 Georgia, 'Times New Roman', serif; text-wrap: balance; }
.sudoku-daily__intro { margin-top: 10px !important; color: #e3ede6; font: 15px/1.55 Arial, sans-serif; }
.sudoku-daily__difficulty { flex: 0 0 184px; }
.sudoku-daily__difficulty label { display: block; margin-bottom: 8px; color: #e3ede6; font: 700 12px/1.4 Arial, sans-serif; }
.sudoku-daily__difficulty select { width: 100%; min-height: 46px; padding: 10px 34px 10px 14px; color: var(--sudoku-ink); background: var(--sudoku-cream); border: 1px solid #f5da7e; border-radius: 7px; font: 700 15px/1.3 Arial, sans-serif; cursor: pointer; }
.sudoku-daily__newday { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 32px; background: #fff7de; border-bottom: 1px solid #e6d7aa; }
.sudoku-daily__newday p { color: #5b4d28; font: 13px/1.5 Arial, sans-serif; }
.sudoku-daily__newday button { flex: 0 0 auto; min-height: 44px; padding: 10px 14px; }
.sudoku-daily__body { display: grid; grid-template-columns: minmax(0, 560px) minmax(210px, 280px); justify-content: center; align-items: start; gap: clamp(22px, 4vw, 48px); padding: 28px 32px 24px; }
.sudoku-daily__play { min-width: 0; }
.sudoku-daily__stats { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 14px !important; font-family: Arial, sans-serif; }
.sudoku-daily__stats dt { color: #647569; font-size: 10px; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .04em; }
.sudoku-daily__stats dd { margin-top: 4px; color: var(--sudoku-ink); font-size: 15px; font-weight: 800; line-height: 1.4; font-variant-numeric: tabular-nums; }
.sudoku-daily__stats > div:not(:first-child) { flex: 0 0 auto; text-align: right; }
.sudoku-daily__date { min-width: 0; }
.sudoku-daily__board-shell { width: 100%; padding: 5px; border: 1px solid #e3e3d5; border-radius: 7px; background: #eeeddf; }
.sudoku-daily__board { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); grid-template-rows: repeat(9, minmax(0, 1fr)); width: 100%; aspect-ratio: 1; border: 3px solid #29473b; background: var(--sudoku-cream); }
.sudoku-daily .sudoku-row { display: contents; }
.sudoku-daily .sudoku-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: var(--sudoku-green);
  background: var(--sudoku-cream);
  border: 0;
  border-right: 1px solid var(--sudoku-line);
  border-bottom: 1px solid var(--sudoku-line);
  border-radius: 0;
  font: 600 clamp(22px, 2.8vw, 34px)/1 Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.sudoku-daily .sudoku-cell.box-right { border-right: 3px solid #29473b; }
.sudoku-daily .sudoku-cell:nth-child(9n) { border-right: 0; }
.sudoku-daily .sudoku-cell.box-bottom { border-bottom: 3px solid #29473b; }
.sudoku-daily .sudoku-row:last-child .sudoku-cell { border-bottom: 0; }
.sudoku-daily .sudoku-cell.is-given { color: #192c24; background: #f3f2e9; font-weight: 800; }
.sudoku-daily .sudoku-cell.is-peer { background: #eaf1e9; }
.sudoku-daily .sudoku-cell.is-same { background: #d9e9dc; font-weight: 800; }
.sudoku-daily .sudoku-cell.is-selected { z-index: 1; color: #083f2f; background: #f5de87; box-shadow: inset 0 0 0 2px #8d6713; }
.sudoku-daily .sudoku-cell.is-conflict, .sudoku-daily .sudoku-cell.is-checked-error { color: #a01924; background: #ffe8e5; }
.sudoku-daily .sudoku-cell.is-conflict::after, .sudoku-daily .sudoku-cell.is-checked-error::after { content: ''; position: absolute; right: 4px; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: #a01924; }
.sudoku-daily .sudoku-cell.is-selected.is-conflict, .sudoku-daily .sudoku-cell.is-selected.is-checked-error { box-shadow: inset 0 0 0 2px #a01924; }
.sudoku-daily .sudoku-cell:focus-visible { z-index: 2; outline: 3px solid #176a98; outline-offset: -4px; }
.sudoku-daily .sudoku-cell.is-complete { color: #075938; background: #e0eee1; }
.sudoku-daily .sudoku-cell-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, 1fr); width: 100%; height: 100%; padding: 3px; color: #506957; font: 500 clamp(9px, 1vw, 13px)/1 Arial, sans-serif; }
.sudoku-daily .sudoku-cell-notes > span { display: flex; align-items: center; justify-content: center; min-width: 0; }
.sudoku-daily .sudoku-cell-value { line-height: 1; }
.sudoku-daily__status { min-height: 48px; padding: 14px 1px 0; color: var(--sudoku-green); font: 700 14px/1.5 Arial, sans-serif; overflow-wrap: anywhere; }
.sudoku-daily__status.is-error { color: #a01924; }
.sudoku-daily__status.is-success { padding: 13px 15px; margin-top: 12px !important; color: #075938; background: #edf5e9; border-left: 4px solid #168156; border-radius: 4px; }
.sudoku-daily__controls { padding-top: 1px; font-family: Arial, sans-serif; }
.sudoku-daily__control-label { margin-bottom: 12px !important; color: #4b6558; font-size: 12px; font-weight: 700; line-height: 1.5; }
.sudoku-daily button:not(.sudoku-cell) { color: var(--sudoku-ink); background: #fff; border: 1px solid #becfc1; border-radius: 7px; font: 700 13px/1.35 Arial, sans-serif; cursor: pointer; touch-action: manipulation; }
.sudoku-daily button:not(.sudoku-cell):hover { background: #f1f5ed; border-color: #6a9179; }
.sudoku-daily button:focus-visible, .sudoku-daily select:focus-visible { outline: 3px solid #19749f; outline-offset: 3px; }
.sudoku-daily button:disabled { color: #819086; background: #f4f5f2; border-color: #e1e5df; cursor: not-allowed; }
.sudoku-daily__keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sudoku-daily .sudoku-daily__keypad button { min-height: 56px; padding: 10px 4px; background: #faf9f2; font-size: 26px; font-weight: 700; }
.sudoku-daily .sudoku-daily__keypad button.is-exhausted { color: #87988c; background: #f0f3ed; }
.sudoku-daily__edit-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.sudoku-daily__edit-tools button, .sudoku-daily__assist-tools button { min-height: 44px; padding: 10px 8px; }
.sudoku-daily__edit-tools button:last-child { grid-column: 1 / -1; }
.sudoku-daily [data-sudoku-notes] { display: flex; align-items: center; justify-content: center; gap: 7px; }
.sudoku-daily__toggle { position: relative; flex: 0 0 23px; width: 23px; height: 13px; border-radius: 10px; background: #d1dad2; }
.sudoku-daily__toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.sudoku-daily [data-sudoku-notes][aria-pressed="true"] { color: #fff; background: var(--sudoku-green); border-color: var(--sudoku-green); }
.sudoku-daily [data-sudoku-notes][aria-pressed="true"] .sudoku-daily__toggle { background: #91c2a2; }
.sudoku-daily [data-sudoku-notes][aria-pressed="true"] .sudoku-daily__toggle::after { left: 12px; }
.sudoku-daily__assist-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #dce3d9; }
.sudoku-daily .sudoku-daily__check { color: #fff; background: var(--sudoku-green); border-color: var(--sudoku-green); }
.sudoku-daily .sudoku-daily__check:hover { background: #0c4637; }
.sudoku-daily .sudoku-daily__restart { display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 10px; color: #5d6e62; background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.sudoku-daily__reset-dialog { margin-top: 9px; padding: 13px; background: #fff6df; border: 1px solid #e2ce99; border-radius: 7px; }
.sudoku-daily__reset-dialog p { margin-bottom: 10px !important; color: #574622; font-size: 13px; line-height: 1.5; }
.sudoku-daily__reset-dialog > div { display: flex; flex-wrap: wrap; gap: 7px; }
.sudoku-daily__reset-dialog button { min-height: 44px; flex: 1 1 90px; padding: 8px; }
.sudoku-daily .sudoku-daily__reset-dialog [data-sudoku-reset-confirm] { color: #fff; background: #795514; border-color: #795514; }
.sudoku-daily__storage { margin-top: 15px !important; color: #68766a; font-size: 11px; line-height: 1.6; }
.sudoku-daily__rules { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; padding: 22px 32px; background: #f4f6ef; border-top: 1px solid #dce3d9; font-family: Arial, sans-serif; }
.sudoku-daily__rules h3 { margin-bottom: 6px; color: #24483a; font-size: 13px; font-weight: 800; line-height: 1.4; }
.sudoku-daily__rules p { color: #58705f; font-size: 12px; line-height: 1.65; }
.sudoku-daily__keyboard-help { align-self: center; padding-left: 23px; border-left: 1px solid #d7dfd3; }
.games-sudoku-promo { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; margin: 20px 0; color: #fff; background: #133e33; border-left: 5px solid #efd065; border-radius: 7px; }
.games-sudoku-promo h2, .games-sudoku-promo h3 { margin: 0 0 5px; color: #fff; font: 700 25px/1.2 Georgia, 'Times New Roman', serif; }
.games-sudoku-promo p { margin: 0; color: #e3ede6; font: 13px/1.5 Arial, sans-serif; }
.games-sudoku-promo a, .games-sudoku-promo button { flex: 0 0 auto; padding: 12px 16px; color: #173f31; background: #f5da7e; border: 1px solid #f5da7e; border-radius: 6px; font: 800 13px/1.3 Arial, sans-serif; text-decoration: none; }
.games-sudoku-promo a:focus-visible, .games-sudoku-promo button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 850px) {
  .sudoku-daily__header { padding: 23px; }
  .sudoku-daily__body { grid-template-columns: minmax(0, 520px) minmax(180px, 220px); gap: 22px; padding: 24px 23px 20px; }
  .sudoku-daily__rules { padding: 20px 23px; gap: 20px; }
  .sudoku-daily .sudoku-daily__keypad button { min-height: 48px; }
}
@media (max-width: 660px) {
  .sudoku-daily__header { align-items: flex-start; gap: 15px; padding: 21px 18px; }
  .sudoku-daily__difficulty { flex-basis: 132px; }
  .sudoku-daily__difficulty select { font-size: 14px; padding-left: 10px; }
  .sudoku-daily h2 { font-size: 30px; }
  .sudoku-daily__intro { font-size: 13px; }
  .sudoku-daily__body { grid-template-columns: minmax(0, 520px); gap: 6px; padding: 20px 18px; }
  .sudoku-daily__controls { padding-top: 0; }
  .sudoku-daily__control-label { text-align: center; }
  .sudoku-daily__keypad { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 5px; }
  .sudoku-daily .sudoku-daily__keypad button { min-height: 45px; padding: 7px 0; font-size: 23px; }
  .sudoku-daily__edit-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sudoku-daily__edit-tools button:last-child { grid-column: auto; }
  .sudoku-daily__assist-tools { margin-top: 12px; padding-top: 12px; }
  .sudoku-daily__rules { grid-template-columns: 1fr; gap: 12px; padding: 19px 18px; }
  .sudoku-daily__keyboard-help { padding-left: 0; padding-top: 12px; border-left: 0; border-top: 1px solid #d7dfd3; }
  .sudoku-daily .sudoku-cell { font-size: clamp(21px, 5.4vw, 30px); }
  .sudoku-daily .sudoku-cell-notes { font-size: clamp(9px, 2.2vw, 12px); }
  .sudoku-daily__newday { align-items: stretch; flex-direction: column; gap: 10px; padding: 13px 18px; }
  .games-sudoku-promo { padding: 17px; }
}
@media (max-width: 420px) {
  .sudoku-daily { border-radius: 10px; }
  .sudoku-daily__header { flex-direction: column; gap: 16px; padding: 20px 13px; }
  .sudoku-daily__difficulty { display: flex; align-items: center; gap: 12px; width: 100%; flex: 0 0 auto; }
  .sudoku-daily__difficulty label { flex: 1 1 auto; margin: 0; }
  .sudoku-daily__difficulty select { flex: 0 1 160px; width: 160px; min-height: 44px; }
  .sudoku-daily__body { padding: 17px 10px; }
  .sudoku-daily__stats { gap: 8px; }
  .sudoku-daily__stats dt { font-size: 9px; letter-spacing: 0; }
  .sudoku-daily__stats dd { font-size: 13px; }
  .sudoku-daily__board-shell { padding: 3px; }
  .sudoku-daily__keypad { gap: 3px; }
  .sudoku-daily .sudoku-daily__keypad button { font-size: 21px; border-radius: 5px; }
  .sudoku-daily button:not(.sudoku-cell) { font-size: 12px; }
  .sudoku-daily .sudoku-daily__keypad button { font-size: 21px; }
  .sudoku-daily__edit-tools { gap: 5px; }
  .sudoku-daily__edit-tools button { padding: 10px 3px; }
  .sudoku-daily__toggle { flex-basis: 21px; width: 21px; }
  .sudoku-daily [data-sudoku-notes][aria-pressed="true"] .sudoku-daily__toggle::after { left: 10px; }
  .sudoku-daily__rules { padding: 18px 13px; }
  .games-sudoku-promo { flex-direction: column; align-items: stretch; }
  .games-sudoku-promo a, .games-sudoku-promo button { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .sudoku-daily *, .sudoku-daily *::before, .sudoku-daily *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
