/* Killer Sudoku : la grille partage les jetons et la mise en page de style.css.
   Ce fichier ne décrit que les cases, cages et sommes propres au Killer. */

.killer-cell {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
  background: var(--cell-bg);
  color: var(--cell-entry);
  font-size: clamp(1rem, 5vw, 1.8rem);
  font-size: calc(100cqi * .052);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.killer-cell:disabled { color: var(--cell-entry); opacity: 1; }

/* Contour pointillé des cages, discret pour ne pas concurrencer les blocs. */
.killer-outline {
  position: absolute;
  inset: 3px;
  pointer-events: none;
  border: 0 dashed var(--cage-line);
}
.killer-top { border-top-width: 1px; }
.killer-bottom { border-bottom-width: 1px; }
.killer-left { border-left-width: 1px; }
.killer-right { border-right-width: 1px; }

.killer-sum {
  position: absolute;
  top: 1px;
  left: 2px;
  z-index: 1;
  padding: 0 2px;
  background: inherit;
  color: var(--ink);
  font-size: max(.55rem, calc(100cqi * .021));
  font-weight: 700;
  line-height: 1.1;
}

.killer-value { position: absolute; inset: 14% 0 0; display: grid; place-items: center; }

.killer-notes {
  position: absolute;
  inset: 26% 8% 6%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: var(--cell-note);
  font-size: max(.45rem, calc(100cqi * .019));
  line-height: 1;
}
.killer-notes span { display: grid; place-items: center; }

.killer-related { background: var(--cell-related); }
.killer-selected { background: var(--cell-selected); box-shadow: inset 0 0 0 2px var(--accent); }
.killer-error { color: var(--cell-error-ink) !important; background: var(--cell-error-bg); }
.killer-hint { background: var(--cell-hint-bg); box-shadow: inset 0 0 0 3px var(--cell-hint); }
