/* FloodFill-specific styles */

.ff-wrap{ display:flex; flex-direction:column; gap:14px; }

/* Grid base now comes from /assets/square_grid.css via .sq-board/.sq-cell.
   Keep .ff-board/.ff-cell only for FloodFill-specific decoration. */

.ff-cell{
  border-radius: 0px;
  border: none;
  outline: none;
  position: relative; /* for the start marker */
}

.ff-cell.dead{
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}

.ff-cell.in-region{
  box-shadow: 0 0 0 2px rgba(230,237,246,0.25) inset;
}

.ff-cell.start{
  box-shadow: 0 0 0 2px rgba(255,255,255,0.25) inset, 0 0 0 1px rgba(0,0,0,0.2);
}
.ff-cell.start::after{
  content: '★';
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 6px rgba(0,0,0,0.65);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ff-palette{ display:flex; gap:10px; flex-wrap:wrap; }

.ff-colorbtn{
  min-height: var(--tap);
  min-width: var(--tap);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 700;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.ff-colorbtn[disabled]{
  opacity: 0.45;
  cursor: not-allowed;
}

.ff-colorbtn .lbl{
  font-family: var(--mono);
  font-size: 13px;
  mix-blend-mode: screen;
}
