/* Numberline — these two are NOT in common/theme.css; every app declares them
   locally (confirmed: `grep game-head common/theme.css` is empty). */
.game-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.head-btns { display: flex; gap: 6px; }

.nl-target-row { display: flex; align-items: baseline; gap: 10px; margin: var(--space-2) 0 4px; }
.nl-make { font-weight: 700; color: var(--text-dim); }
.nl-target { font-size: 2rem; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; }
.nl-instr { margin: 0 0 var(--space-3); }

/* Tiles: 4-across grid, min-height comfortably clears the 24x24 a11y floor. */
.nl-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: var(--space-3) 0;
}
.nl-tile {
  min-height: 64px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 120ms var(--ease), border-color 120ms var(--ease), transform 90ms var(--ease);
}
.nl-tile:active { transform: scale(0.96); }
.nl-tile:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.nl-tile.sel { background: var(--accent); border-color: var(--accent); color: #0b0d14; }
.nl-tile:disabled { opacity: 0.55; cursor: default; }

/* Purely decorative flourish, not the information carrier (the toast text
   is) — common/theme.css's global prefers-reduced-motion override already
   neutralizes this for anyone who needs it, no local override needed. */
@keyframes nlShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.nl-tile.nl-shake { animation: nlShake 320ms var(--ease); }

.nl-ops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: var(--space-3);
}
.nl-op {
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 120ms var(--ease), border-color 120ms var(--ease);
}
.nl-op.armed { background: var(--accent); border-color: var(--accent); color: #0b0d14; }
.nl-op:disabled { opacity: 0.4; cursor: default; }

.nl-bar { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-2); }
#nl-attempts { margin-left: auto; }

.nl-end-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 8px; }
.nl-steps { display: grid; gap: 6px; margin-bottom: 8px; }
.nl-step {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.nl-end-actions { display: grid; gap: 8px; margin-top: 10px; }
