:root {
  color-scheme: dark;
  font-family: "Space Grotesk Variable", sans-serif;
  color: #fff4dd;
  background: #170c26;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
canvas {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  touch-action: none;
  outline: none;
}
canvas:focus-visible {
  box-shadow: inset 0 0 0 2px #ff6bba;
}
header {
  position: fixed;
  top: max(24px, env(safe-area-inset-top));
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
h1 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.05em;
  font-weight: 500;
}
header span {
  font:
    11px "JetBrains Mono Variable",
    monospace;
  letter-spacing: 0.13em;
  color: #e0b5d2;
}
.scene-note {
  position: fixed;
  bottom: 123px;
  left: 32px;
  pointer-events: none;
}
.scene-note span {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #ffd7e6;
}
.scene-note p {
  margin: 7px 0 0;
  font-size: 11px;
  color: #ae89ab;
}
footer {
  position: fixed;
  left: 28px;
  right: 28px;
  bottom: max(24px, env(safe-area-inset-bottom));
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #8b63865e;
  background: #1b1028e8;
  backdrop-filter: blur(18px);
}
button,
select,
input {
  font:
    12px "Space Grotesk Variable",
    sans-serif;
  min-height: 44px;
  border: 1px solid #9c719c66;
  border-radius: 4px;
  background: #35203f;
  color: #fff4dd;
  padding: 0 14px;
}
button {
  cursor: pointer;
}
button:hover {
  background: #503052;
}
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid #d7f88c;
  outline-offset: 3px;
}
#freeze {
  background: #ff91c8;
  color: #32162d;
  border-color: #ff91c8;
}
#state-label {
  font:
    11px "JetBrains Mono Variable",
    monospace;
  color: #bd91b2;
  margin-left: 15px;
}
#settings {
  margin-left: auto;
}
#drawer {
  position: fixed;
  bottom: 110px;
  right: 28px;
  width: 380px;
  padding: 14px;
  background: #23132fed;
  border: 1px solid #93608180;
  backdrop-filter: blur(20px);
}
[hidden] {
  display: none !important;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
label {
  font-size: 11px;
  color: #dfc2d3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
select,
input {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
}
input[type="color"] {
  padding: 5px;
  width: 100%;
}
input:disabled {
  opacity: 0.5;
}
.exports {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.exports button {
  flex: 1;
}
#notice {
  font-size: 11px;
  line-height: 1.3;
  color: #d8b9d0;
  margin: 9px 0 0;
}
.studio-open .scene-note {
  display: none;
}
.frozen canvas {
  cursor: grab;
}
.frozen canvas:active {
  cursor: grabbing;
}
@media (max-width: 600px) {
  header {
    left: 18px;
    right: 18px;
    top: 20px;
  }
  h1 {
    font-size: 22px;
  }
  header span {
    max-width: 130px;
    font-size: 11px;
    line-height: 1.5;
    text-align: right;
  }
  .scene-note {
    left: 18px;
    bottom: 100px;
  }
  footer {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 7px;
    gap: 6px;
  }
  button {
    padding: 0 10px;
  }
  #state-label {
    display: none;
  }
  #drawer {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 82px;
    padding: 12px;
  }
  .fields {
    gap: 7px;
  }
  .exports {
    margin-top: 8px;
  }
  #notice {
    margin-top: 7px;
    font-size: 11px;
  }
}
