:root {
  color-scheme: dark;
  font-family: "Space Grotesk Variable", sans-serif;
  color: #e1f7ee;
  background: #07151f;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
  touch-action: none;
  image-rendering: pixelated;
}
header {
  position: fixed;
  top: max(24px, env(safe-area-inset-top));
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.eyebrow,
.badge {
  font:
    11px "JetBrains Mono Variable",
    monospace;
  letter-spacing: 0.16em;
  color: #92c6ba;
}
h1 {
  margin: 7px 0 0;
  font-size: 24px;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.badge {
  border: 1px solid #77a89555;
  padding: 12px;
}
.scene-note {
  position: fixed;
  left: 28px;
  top: 108px;
  font-size: 12px;
  line-height: 1.7;
  color: #adcbc4;
  pointer-events: none;
}
.scene-note span {
  color: #729c98;
}
footer {
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 28px;
  right: 28px;
  background: #06141fe8;
  border: 1px solid #698e8159;
  padding: 12px 16px;
  backdrop-filter: blur(14px);
}
.scrub {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 10px;
  font:
    12px "JetBrains Mono Variable",
    monospace;
}
.scrub #phase {
  min-width: 110px;
  color: #b0f7d7;
}
.scrub output {
  white-space: nowrap;
  color: #abcac0;
}
input[type="range"] {
  accent-color: #92f6bf;
  width: 100%;
  height: 44px;
}
.transport {
  display: flex;
  align-items: center;
  gap: 8px;
}
.transport .keys {
  margin-left: 12px;
  font:
    11px "JetBrains Mono Variable",
    monospace;
  color: #8eaaa6;
}
button,
select {
  font:
    12px "Space Grotesk Variable",
    sans-serif;
  min-height: 44px;
  border: 1px solid #6d94825e;
  background: #173a3d;
  color: #e8fff2;
  padding: 0 16px;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background: #24524d;
}
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid #e2ffad;
  outline-offset: 3px;
}
#pause {
  background: #bdf4b6;
  color: #153a32;
  border-color: #bdf4b6;
  min-width: 76px;
}
#settings {
  margin-left: auto;
}
#drawer {
  position: fixed;
  bottom: 152px;
  right: 28px;
  width: 404px;
  background: #091d27f5;
  border: 1px solid #638e7a66;
  padding: 18px;
  backdrop-filter: blur(20px);
}
[hidden] {
  display: none !important;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: #b2cfc8;
}
select {
  width: 100%;
  padding: 0 8px;
}
.exports {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.exports button {
  min-height: 44px;
  padding: 0 8px;
}
#notice {
  font-size: 11px;
  color: #a6c4b9;
  margin: 12px 0 0;
}
.studio-open .scrub {
  display: none;
}
.studio-open #drawer {
  bottom: 102px;
}
.studio-open .scene-note {
  display: none;
}
@media (max-width: 600px) {
  header {
    left: 18px;
    right: 18px;
    top: 18px;
  }
  h1 {
    font-size: 21px;
  }
  .badge {
    display: none;
  }
  .scene-note {
    left: 18px;
    top: auto;
    bottom: 150px;
    font-size: 11px;
  }
  footer {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
  }
  .scrub {
    gap: 8px;
    padding-bottom: 3px;
  }
  .scrub #phase {
    min-width: 88px;
    font-size: 11px;
  }
  .scrub output {
    font-size: 11px;
  }
  .keys {
    display: none;
  }
  button {
    padding: 0 12px;
  }
  .transport {
    gap: 7px;
  }
  #drawer {
    left: 12px;
    right: 12px;
    width: auto;
    padding: 12px;
  }
  .studio-open #drawer {
    bottom: 82px;
  }
  .fields {
    gap: 8px;
  }
  .exports {
    gap: 5px;
  }
  .exports button {
    min-height: 44px;
  }
  #notice {
    margin-top: 8px;
    font-size: 11px;
  }
  .studio-open footer {
    padding: 7px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
