.game-area {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.board {
  position: relative;
  width: min(60vmin, 300px);
  height: min(120vmin, 600px);
  background: var(--board-bg);
  border-radius: 8px;
  touch-action: none;
  user-select: none;
  overflow: hidden;
}

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

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.panel-label {
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

#next-canvas,
#hold-canvas {
  width: 100px;
  height: 100px;
  background: var(--board-bg);
  border-radius: 4px;
}
.overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  animation: fadein .3s ease-in-out;
}
.overlay[hidden] { display: none; }
.overlay-text {
  font-size: clamp(36px, 8vmin, 56px);
  font-weight: 800;
  color: var(--text);
  text-align: center;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* Joystick / arcade-button styles are in shared/joystick.css. */

.app {
  padding-bottom: max(40px, calc(40px + env(safe-area-inset-bottom)));
}
