/* Turn the Gears: the machine fills the space between the top bar and the buttons. */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem 0;
}

.play-area {
  position: relative;
  flex: 1;
  min-height: max(340px, 55vh);
  border: 3px solid var(--panel-border);
  border-radius: 20px;
  overflow: hidden;
  background: #1E3646;
}

:root[data-theme="contrast"] .play-area {
  background: #000000;
}

.play-area canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: pointer;
}

.play-area canvas:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: -6px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0 0.25rem;
}
