/* Grid Detective — two 5x5 grids side by side. Cells stay at the 24px tap
   minimum even on a 320px viewport (2 * 5 columns + one gap comfortably
   clears it), the same floor apps/pathfinder's maze cells use. */

.game-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.head-btns { display: flex; gap: 6px; }

.gd-stats { margin-bottom: var(--space-3); }

.gd-boards {
  display: flex;
  gap: 14px;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto var(--space-3);
}

.gd-panel { flex: 1 1 0; min-width: 0; }

.gd-panel-label {
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0 0 6px;
}

.gd-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}

.gd-cell {
  aspect-ratio: 1;
  min-height: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elev);
  font: inherit;
  font-size: 1.05rem;
  padding: 0;
  cursor: pointer;
  transition: transform 90ms var(--ease), border-color 120ms var(--ease), opacity 120ms var(--ease);
}
.gd-cell:not(:disabled):active { transform: scale(0.92); }
.gd-cell:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.gd-cell.found { border-color: var(--accent); border-width: 3px; opacity: 0.5; cursor: default; }
.gd-cell:disabled { cursor: default; }

.gd-end-emoji { font-size: 2.2rem; margin-bottom: 4px; }
#endgame { text-align: center; }
#end-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 6px; }
#end-stats { margin: 0 0 4px; }
#endgame .btn { margin-top: var(--space-2); }
