html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #eef4ff;
}

#stage {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.controls {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid rgba(11, 27, 77, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #0b1b4d;
  font: 12px/1.3 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.controls:hover,
.controls:focus-within {
  opacity: 1;
}

.controls label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
}

.controls input {
  grid-column: 1 / -1;
  width: 120px;
  margin: 0;
  accent-color: #1677ff;
}

.replay {
  padding: 7px 14px;
  border: 0;
  border-radius: 6px;
  background: #1677ff;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.replay:hover {
  background: #0f64de;
}

.replay:focus-visible,
.controls input:focus-visible {
  outline: 2px solid #0b1b4d;
  outline-offset: 2px;
}

.hero,
.hero body {
  background: transparent;
}

.hero .controls {
  display: none;
}
