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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(160, 146, 115, 0.1), transparent 34%),
    linear-gradient(145deg, #010101 0%, #050504 52%, #090806 100%);
}

.app {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.74);
}

.brand {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.brand span {
  font-size: 25px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand small,
label span,
.hud,
textarea {
  color: rgba(244, 240, 229, 0.56);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

label {
  display: grid;
  gap: 8px;
}

select,
input,
textarea,
button {
  width: 100%;
  border: 1px solid rgba(244, 240, 229, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: #f4f0e5;
  font: inherit;
}

select,
input {
  height: 38px;
  padding: 0 11px;
}

input[type="range"] {
  padding: 0;
  accent-color: #d7c28f;
}

textarea {
  min-height: 150px;
  padding: 12px;
  resize: none;
  line-height: 1.55;
  text-transform: none;
}

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

button {
  height: 38px;
  cursor: pointer;
  background: rgba(244, 240, 229, 0.1);
}

button:hover {
  background: rgba(244, 240, 229, 0.18);
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 32px;
}

canvas {
  width: min(82vh, calc(100vw - 400px));
  aspect-ratio: 1 / 1;
  height: auto;
  max-width: 100%;
  background: #030303;
  box-shadow: 0 0 70px rgba(255, 238, 190, 0.055);
}

.hud {
  position: absolute;
  top: 28px;
  right: 32px;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(244, 240, 229, 0.12);
  background: rgba(0, 0, 0, 0.24);
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .panel {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .stage {
    padding: 22px;
  }

  canvas {
    width: min(100%, 86vh);
  }
}
