.app .header {
  align-items: center;
}

/* Score display */
.scores {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-sep {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 300;
}

.score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  min-width: 52px;
  box-shadow: var(--shadow-sm);
}

.score-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.score-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.1;
}

/* Board */
.pong-board {
  position: relative;
  width: min(90vw, 520px);
  aspect-ratio: 4 / 3;
  background: #1a1a2e;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

body.dark .pong-board {
  background: #0d0d1a;
}

#canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  animation: fadein 0.3s ease-in-out;
}

.overlay[hidden] { display: none; }

.overlay-text {
  font-size: clamp(28px, 7vmin, 48px);
  font-weight: 800;
  color: var(--text-strong);
  text-align: center;
}

@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Pause hint */
.pause-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Difficulty select hidden in human mode */
#difficulty.hidden {
  visibility: hidden;
  pointer-events: none;
}

/* Toolbar wrapping on small screens */
.toolbar {
  flex-wrap: wrap;
}
