/* Pathfinder — daily maze styles. Each cell draws its own N/E/S/W walls as
   borders; a wall is the only information a cell carries, so light/dark
   theme and colour vision both work unmodified — nothing here depends on
   hue the way a colour-coded puzzle would. */

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

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

#board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  width: 100%;
  max-width: 320px;
  margin: 0 auto var(--space-3);
}

.pf-cell {
  aspect-ratio: 1;
  min-height: 24px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 0;
  transition: background 120ms var(--ease);
}
.pf-cell.wall-top { border-top: 3px solid var(--text-dim); }
.pf-cell.wall-right { border-right: 3px solid var(--text-dim); }
.pf-cell.wall-bottom { border-bottom: 3px solid var(--text-dim); }
.pf-cell.wall-left { border-left: 3px solid var(--text-dim); }
.pf-cell.movable { background: var(--accent-soft); cursor: pointer; }
.pf-cell.movable:active { transform: scale(0.94); }
.pf-cell.current { background: var(--accent); }
.pf-cell:focus-visible { outline: 3px solid var(--text); outline-offset: -3px; position: relative; z-index: 1; }

.pf-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); }
