* {
  box-sizing: border-box;
}
:root {
  --panel: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e7ecff;
  --muted: #a9b2d9;
  --accent: #50b3ff;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(
      1000px 600px at 10% 10%,
      rgba(80, 179, 255, 0.25),
      transparent 40%
    ),
    radial-gradient(
      900px 800px at 90% 30%,
      rgba(152, 80, 255, 0.18),
      transparent 45%
    ),
    linear-gradient(160deg, #0b0c1a 0%, #0b1128 60%, #0a0f24 100%);
}
.app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}
.topbar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.3px;
  text-shadow: 0 0 24px rgba(80, 179, 255, 0.35);
}
.subtitle {
  margin: 0;
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.controls {
  max-height: 72vh;
  overflow: auto;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.field.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label {
  font-size: 12px;
  color: var(--muted);
}
input,
select,
button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(16, 20, 45, 0.6);
  color: var(--text);
  outline: none;
}
input[type="color"] {
  padding: 0;
  height: 40px;
}
input[type="range"] {
  accent-color: var(--accent);
}
button {
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease;
}
button:hover {
  transform: translateY(-1px);
}
button.primary {
  background: linear-gradient(
    180deg,
    rgba(80, 179, 255, 0.2),
    rgba(80, 179, 255, 0.05)
  );
  box-shadow: 0 0 32px rgba(80, 179, 255, 0.25) inset,
    0 0 24px rgba(80, 179, 255, 0.25);
}
button.ghost {
  background: transparent;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}
.stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
#stage {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 0 80px rgba(80, 179, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.35);
}
.stage-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.stage-controls label {
  min-width: 100px;
}
.videolink {
  display: inline-block;
  margin-left: auto;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
}

.foot {
  margin-top: 16px;
  color: var(--muted);
  text-align: center;
}
.hint {
  color: var(--muted);
  font-size: 12px;
}
