:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #000;
  color: #fff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #000;
}

main {
  display: grid;
  min-height: 100vh;
  grid-template-rows: minmax(0, 1fr) auto;
}

.stage {
  position: relative;
  display: grid;
  min-height: 0;
  background: #000;
  place-items: center;
  overflow: hidden;
}

.scene {
  display: grid;
  width: min(100%, 1000px);
  height: 100%;
  padding: 20px;
  place-items: center;
}

.scene canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 90px);
  background: #000;
  aspect-ratio: 4 / 3;
  image-rendering: auto;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgb(45 88 35 / 45%), transparent 34rem),
    #000;
  text-align: center;
  align-content: center;
  justify-items: center;
}

.overlay[hidden] {
  display: none;
}

h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.8rem, 9vw, 6rem);
}

.overlay p {
  max-width: 620px;
  color: #bbc1b7;
}

.eyebrow {
  color: #e3a744 !important;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

button,
a,
label {
  color: #fff;
  font: inherit;
}

button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #7b865f;
  border-radius: 8px;
  background: #26301f;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.45;
}

.overlay button {
  margin-top: 20px;
  padding-inline: 26px;
  font-weight: 700;
}

.scene-label {
  position: absolute;
  right: 16px;
  bottom: 12px;
  margin: 0;
  color: rgb(255 255 255 / 38%);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid #202820;
  background: #101510;
}

.controls a {
  padding: 9px 8px;
}

.controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}

@media (max-width: 520px) {
  .controls {
    gap: 6px;
  }

  button,
  .controls a {
    font-size: 0.82rem;
  }
}
