:root {
  color-scheme: light;
  --bg: #f3eee6;
  --ink: #1b1916;
  --muted: #6e675e;
  --line: #e3d9cc;
  --card: #fffdf8;
  --green: #0f6e56;
  --mark: #d7f26a;
  font-family: "Avenir Next", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(880px 380px at 100% -8%, rgba(215, 242, 106, 0.5), transparent 60%),
    var(--bg);
}

a { color: inherit; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}

.brand {
  font-family: Palatino, "Iowan Old Style", "Songti SC", serif;
  font-size: 30px;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.brand span { background: var(--mark); padding: 0 0.18em; }

header p { margin: 0; color: var(--muted); font-size: 14px; }

.hero { padding: 18px 0 8px; }

h1 {
  margin: 0;
  max-width: 16ch;
  font-family: Palatino, "Songti SC", serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p { max-width: 40rem; color: var(--muted); font-size: 17px; line-height: 1.7; }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
  gap: 18px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.stage canvas {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #14120f;
}

.panel { display: grid; align-content: start; gap: 12px; }

.panel h2 { margin: 0; font-size: 26px; }

.panel p { margin: 0; color: var(--muted); line-height: 1.6; }

label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }

select, input[type="range"] { width: 100%; accent-color: var(--green); }

select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--mark);
  color: #23170f;
  font: inherit;
  cursor: pointer;
}

button.solid { background: var(--green); color: white; }

button:disabled { opacity: 0.55; cursor: wait; }

.note { color: var(--muted); font-size: 13px; }

footer { padding: 4px 0 40px; color: var(--muted); font-size: 13px; }

@media (max-width: 800px) {
  .stage { grid-template-columns: 1fr; }
  header { flex-direction: column; }
}
