.q-board {
  --n: 8;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  grid-template-rows: repeat(var(--n), 1fr);
  border: 3px solid #1c1b1f;
  border-radius: 8px;
  overflow: hidden;
  background: #1c1b1f;
}
.q-cell {
  position: relative; display: flex; align-items: center; justify-content: center;
  border-style: solid; border-color: #1c1b1f; cursor: pointer; color: #1c1b1f;
}
.q-cell:hover { filter: brightness(1.06); }
.q-x { font-size: clamp(10px, calc(min(600px, 100vw) / var(--n) * .3), 22px); opacity: .55; font-weight: 700; }
.q-queen { width: 62%; height: 62%; }
.q-cell.conflict::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(196, 55, 42, .55) 0 4px, transparent 4px 10px);
}
.q-cell.hint-target { z-index: 1; box-shadow: inset 0 0 0 3px #3b5bdb, 0 0 0 2px #3b5bdb; animation: q-pulse 1.1s ease-in-out infinite; }
.q-cell.hint-focus { outline: 2px dashed #1c1b1f; outline-offset: -5px; }
@keyframes q-pulse { 50% { box-shadow: inset 0 0 0 3px #3b5bdb, 0 0 0 5px rgba(59, 91, 219, .35); } }
