/* Futoshiki play board with inequality channels */

.ft-board {
  display: inline-grid;
  gap: 0;
  margin: 0 auto;
  user-select: none;
}

.ft-cell {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--border-grid, #4a5568);
  background: var(--bg-cell, #1a2233);
  color: var(--text-primary, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
}

.ft-cell.is-given {
  background: rgba(255, 255, 255, 0.06);
  cursor: default;
  color: var(--accent, #6ec1ff);
}

.ft-cell.is-selected {
  outline: 2px solid var(--accent, #6ec1ff);
  outline-offset: -2px;
  z-index: 1;
}

.ft-cell.is-error {
  background: rgba(220, 53, 69, 0.25);
}

.ft-ineq-h,
.ft-ineq-v {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, #6ec1ff);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

.ft-ineq-h {
  width: 1.1rem;
  height: 2.6rem;
}

.ft-ineq-v {
  width: 2.6rem;
  height: 1.1rem;
}

.ft-gap {
  width: 1.1rem;
  height: 1.1rem;
}

.ft-numpad {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.ft-numpad button {
  min-width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.ft-numpad button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(110, 193, 255, 0.45);
}

.ft-numpad button:active {
  transform: scale(0.96);
}

/* Home hero SVG (matches sliding-tile / magic-square framing) */
.ft-hero-svg {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
}

.ft-print-table {
  border-collapse: collapse;
  margin: 0.5rem 0;
}

.ft-print-table td {
  width: 2rem;
  height: 2rem;
  border: 1px solid #333;
  text-align: center;
  font-weight: 700;
}

@media (min-width: 576px) {
  .ft-cell,
  .ft-ineq-h {
    height: 3rem;
  }
  .ft-cell {
    width: 3rem;
    font-size: 1.35rem;
  }
  .ft-ineq-v {
    width: 3rem;
  }
}
