html,
body {
  height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111;
}

.loading {
  font-size: 1.2rem;
  color: #666;
}

.app-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 10px;
  box-sizing: border-box;
}

.description {
  padding: 8px;
  text-align: center;
  max-width: 600px;
  color: #444;
}

.description a {
  color: #6db3f2;
}

.button-container {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.button-container button {
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  background: #f5f5f5;
  color: #111;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.button-container button:hover {
  background: #ebebeb;
}

.button-container button:active {
  background: #ddd;
}

.button-container button.selected {
  background: #dbeafe;
  border-color: #2563eb;
  box-shadow: inset 0 0 0 1px #2563eb;
  font-weight: 600;
}

.button-container button.selected:hover {
  background: #bfdbfe;
}

.timing {
  padding: 8px;
  font-size: 1.1rem;
  color: #15803d;
  min-height: 1.5em;
}

.canvas-container {
  flex-grow: 1;
  display: flex;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  position: relative;
  width: min(700px, 100%);
  aspect-ratio: 1 / 1;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.render-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  pointer-events: none;
}

.render-canvas.active {
  visibility: visible;
  pointer-events: auto;
}
