:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #020204;
  color: #fff8fb;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background:
    radial-gradient(circle at 50% 62%, rgba(255, 143, 189, 0.22), transparent 20rem),
    radial-gradient(circle at 58% 43%, rgba(129, 239, 255, 0.11), transparent 18rem),
    linear-gradient(180deg, #000 0%, #07040b 55%, #020204 100%);
}

#scene {
  display: block;
  width: 100vw;
  height: 100vh;
}

.panel {
  position: fixed;
  top: clamp(16px, 3vw, 28px);
  left: clamp(16px, 3vw, 28px);
  width: min(286px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 5, 12, 0.58);
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ff8fbd;
  box-shadow:
    0 0 18px #ff8fbd,
    0 0 38px rgba(129, 239, 255, 0.6);
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0;
}

p {
  margin-top: 3px;
  color: rgba(255, 248, 251, 0.68);
  font-size: 12px;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.field.row {
  grid-template-columns: 1fr 54px;
  align-items: center;
}

label {
  color: rgba(255, 248, 251, 0.72);
  font-size: 12px;
}

button,
input[type="file"],
input[type="color"],
input[type="range"] {
  width: 100%;
}

button,
input[type="file"],
input[type="color"] {
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8fb;
}

input[type="file"] {
  height: 40px;
  padding: 8px 10px;
  font-size: 13px;
}

input[type="color"] {
  width: 54px;
  height: 38px;
  padding: 4px;
  cursor: pointer;
}

input[type="range"] {
  accent-color: #ff8fbd;
}

.meter {
  position: relative;
  height: 6px;
  margin: 18px 0 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #81efff, #fff2f8, #ff8fbd);
  transition: width 80ms linear;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

button {
  height: 40px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
}

audio {
  display: none;
}

@media (max-width: 720px) {
  .panel {
    top: 12px;
    left: 12px;
    padding: 14px;
  }
}
