/* Anoor Stack's own small additions on top of the shared /games/
   style.css tokens and .game-* classes - just the board+panel layout
   and touch-control row, nothing this game doesn't need. */

.stack-layout {
  display: inline-flex;
  gap: 18px;
  align-items: flex-start;
}

.stack-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 88px;
  text-align: left;
}

.stack-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stack-stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.stack-stat-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stack-next canvas {
  display: block;
  margin-top: 4px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

/* Touch controls only add value on a device without a keyboard -
   hidden by default, shown for coarse pointers (touch) so a desktop
   player relying on arrow keys never sees redundant on-screen
   buttons. */
.stack-touch {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.stack-touch button {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: 16px;
  cursor: pointer;
  touch-action: manipulation;
}

.stack-touch button:active {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-soft-border);
}

@media (pointer: coarse) {
  .stack-touch {
    display: flex;
  }
}

@media (max-width: 480px) {
  .stack-layout {
    display: flex;
  }
}
