/* v0.1.72: interactive, rule-derived focus. Confined to six approved games, class mode only. */
/* Sudoku remains exactly as approved in v0.1.71 (row + column, never selected region). */
body[data-mode="class"][data-game="abc"][data-premium-appearance="colorful"] #abc-board .abc-cell.premium-current-pair {
 background:color-mix(in srgb,var(--abc-color) 34%,white)!important;
 box-shadow:inset 0 0 0 3px var(--abc-color),0 0 0 2px #fff!important;
}
body[data-mode="class"][data-game="abc"][data-premium-appearance="colorful"] #abc-board .abc-cell.premium-current-route {
 background:color-mix(in srgb,var(--abc-color) 26%,white)!important;
}
body[data-mode="class"][data-game="abc"][data-premium-appearance="colorful"] #abc-board .abc-cell.premium-completed-pair:not(.premium-current-pair){
 box-shadow:inset 0 0 0 3px var(--abc-color)!important;
}
/* Hitori: amber marks all still-repeating candidates; blue shows only same-number peers
   in the touched cell's row or column. Shaded cells always stay dark. */
body[data-mode="class"][data-game="hitori"][data-premium-appearance="colorful"] #hi-board .hi-cell.premium-linked-repeat:not(.shade){
 background:#b9e9ff!important;color:#164564!important;box-shadow:inset 0 0 0 2px #459bc7!important;
}
body[data-mode="class"][data-game="hitori"][data-premium-appearance="colorful"] #hi-board .hi-cell.premium-focus-cell:not(.shade){
 box-shadow:inset 0 0 0 3px #ef9b30!important;
}
/* Star Battle: neighbors of existing stars cannot contain another star. No automatic X. */
body[data-mode="class"][data-game="starbattle"][data-premium-appearance="colorful"] #sb-board .sb-cell.premium-star-neighbor:not(.star):not(.excluded){
 background:#e7eaf1!important;box-shadow:inset 0 0 0 2px #b8c7d3!important;
}
/* Takuzu: retain blue 0 / amber 1, use only a turquoise outline for chosen row/column. */
body[data-mode="class"][data-game="takuzu"][data-premium-appearance="colorful"] #tz-board .tz-cell.premium-focus-line:not(.selected){
 box-shadow:inset 0 0 0 2px #28a9ac!important;
}
/* Calcudoku: the chosen mathematical cage is one operation unit. Selected cell stays amber. */
body[data-mode="class"][data-game="calcudoku"][data-premium-appearance="colorful"] #cd-board .cd-cell.premium-focus-cage:not(.selected){
 background:#a3e9ee!important;color:#173a50!important;
}
body[data-mode="class"][data-game="calcudoku"][data-premium-appearance="colorful"] #cd-board .cd-cell.premium-focus-cage.selected{
 box-shadow:inset 0 0 0 3px #e39127!important;
}
/* Dark theme: avoid white-backed selected endpoints and washed-out clues. */
html[data-theme="dark"] body[data-mode="class"][data-game="abc"][data-premium-appearance="colorful"] #abc-board .abc-cell.premium-current-pair{
 background:color-mix(in srgb,var(--abc-color) 47%,#263448)!important;color:#fff!important;
 box-shadow:inset 0 0 0 3px var(--abc-color)!important;
}
html[data-theme="dark"] body[data-mode="class"][data-game="abc"][data-premium-appearance="colorful"] #abc-board .abc-cell.premium-current-route{
 background:color-mix(in srgb,var(--abc-color) 38%,#253548)!important;
}
html[data-theme="dark"] body[data-mode="class"][data-game="hitori"][data-premium-appearance="colorful"] #hi-board .hi-cell.premium-linked-repeat:not(.shade){background:#265773!important;color:#fff!important}
html[data-theme="dark"] body[data-mode="class"][data-game="starbattle"][data-premium-appearance="colorful"] #sb-board .sb-cell.premium-star-neighbor:not(.star):not(.excluded){background:#35485a!important;color:#e8f4ff!important}
html[data-theme="dark"] body[data-mode="class"][data-game="calcudoku"][data-premium-appearance="colorful"] #cd-board .cd-cell.premium-focus-cage:not(.selected){background:#216d79!important;color:#fff!important}
html[data-theme="dark"] body[data-mode="class"][data-game="calcudoku"][data-premium-appearance="colorful"] #cd-board .cd-cell.premium-focus-cage .cd-clue{color:inherit!important}
@media(forced-colors:active){body[data-mode="class"] .premium-focus-cage,body[data-mode="class"] .premium-linked-repeat,body[data-mode="class"] .premium-focus-line{outline:2px solid Highlight!important}}
