:root {
  --board-w: min(90vmin, 480px);
}

.board-wrapper {
  display: flex;
  justify-content: center;
}

.board {
  position: relative;
  width: var(--board-w);
  height: var(--board-w);
  border-radius: var(--radius-md);
  overflow: hidden;
  touch-action: none;
  user-select: none;
  background: #111;
}

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

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  animation: fadein .25s ease;
}
.overlay[hidden] { display: none; }
.overlay-text {
  font-size: clamp(28px, 7vmin, 48px);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
  text-align: center;
  padding: 0 16px;
}

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

/* D-pad / joystick styles live in shared/joystick.css now. */
