﻿:root {
  color-scheme: dark;
  --bg: #08111f;
  --panel: rgba(13, 24, 43, 0.82);
  --panel-2: rgba(21, 35, 60, 0.72);
  --text: #e8f1ff;
  --muted: #9fb0c8;
  --line: rgba(148, 163, 184, 0.26);
  --accent: #5eead4;
  --accent-2: #60a5fa;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(94, 234, 212, 0.18), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(96, 165, 250, 0.20), transparent 32%),
    linear-gradient(135deg, #050914 0%, var(--bg) 55%, #101827 100%);
}
.shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
}
.panel, .stage {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}
.panel { padding: 20px; overflow: auto; }
h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -0.03em; }
.lead { margin: 0 0 20px; color: var(--muted); line-height: 1.55; }
.card {
  padding: 14px;
  margin: 14px 0;
  border-radius: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.card h2 { margin: 0 0 12px; font-size: 16px; }
label { display: grid; gap: 7px; margin: 12px 0; color: var(--muted); font-size: 13px; }
select, input[type="range"] { width: 100%; }
select, button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 17, 31, 0.9);
  color: var(--text);
  padding: 10px 12px;
}
button { cursor: pointer; font-weight: 700; transition: transform 0.15s ease, border-color 0.15s ease; }
button:hover { transform: translateY(-1px); border-color: rgba(94, 234, 212, 0.7); }
button.primary { background: linear-gradient(135deg, #0f766e, #2563eb); border: 0; }
button.ghost { background: rgba(15, 23, 42, 0.72); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.value-row { display: flex; justify-content: space-between; gap: 10px; }
.value-row output { color: var(--text); font-variant-numeric: tabular-nums; }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hint { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.stage { position: relative; min-height: calc(100vh - 36px); overflow: hidden; }
canvas { display: block; width: 100%; height: 100%; min-height: calc(100vh - 36px); }
.hud {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  pointer-events: none;
}
.metric {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 17, 31, 0.72);
}
.metric strong { display: block; font-size: 20px; }
.metric span { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .stage, canvas { min-height: 62vh; }
  .hud { grid-template-columns: repeat(2, 1fr); }
}
