:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #f5f2e8;
  background: #080e19;
  --muted: #a3aec4;
  --gold: #efd49b;
  --border: #283247;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: radial-gradient(ellipse at 46% 0, #17253a 0, #080e19 58%); }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid #f8da98; outline-offset: 3px; }
button[hidden], video[hidden], .symbols { display: none; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.page { max-width: 1420px; min-height: 100vh; margin: auto; padding: 28px clamp(22px, 4.2vw, 64px) 36px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 23px; margin-bottom: 24px; border-bottom: 1px solid #263044; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand strong, .brand div span { display: block; }
.brand strong { font-size: 1.08rem; letter-spacing: .13em; }
.brand div span { color: var(--muted); font-size: .77rem; margin-top: 3px; letter-spacing: .1em; }
.brand-mark, .camera-mark { display: grid; place-items: center; color: var(--gold); border: 1px solid #8d744766; background: #e8ba5a11; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; }
.brand-mark .icon { width: 22px; height: 22px; fill: #e9cb9040; }
.quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 13px 0 10px; border: 1px solid var(--border); border-radius: 30px; background: #101828; font-size: .82rem; white-space: nowrap; }
.quiet-button:hover { border-color: #9a8a67; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 318px); gap: 20px; align-items: start; }
.gallery { min-width: 0; }
.stage { position: relative; isolation: isolate; overflow: hidden; height: clamp(470px, 68svh, 690px); border: 1px solid #33435b; border-radius: 20px; background: #0b1528; }
#sky { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
#sky:active { cursor: grabbing; }
.scene-heading { position: absolute; top: 32px; left: 32px; right: 24px; pointer-events: none; }
.scene-heading p { color: var(--gold); font-family: Georgia, serif; letter-spacing: .23em; font-size: .75rem; margin: 0 0 11px; }
.scene-heading h1 { font-family: "Songti SC", SimSun, Georgia, serif; font-size: clamp(1.7rem, 3.15vw, 3.1rem); font-weight: 700; letter-spacing: .065em; margin: 0; text-shadow: 0 2px 18px #030812; }
.stage-status, .drag-hint { position: absolute; bottom: 18px; margin: 0; pointer-events: none; display: flex; align-items: center; gap: 7px; font-size: .79rem; color: #e4e8f2; text-shadow: 0 1px 5px #020409; }
.stage-status { left: 24px; background: #070e1dc9; border: 1px solid #b5c9ee32; border-radius: 32px; padding: 7px 11px; }
.stage-status::before { content: ""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 10px #efc37580; }
.drag-hint { right: 24px; }
.drag-hint .icon { width: 17px; height: 17px; }
.scene-picker { margin-top: 13px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scene-choice { --accent: #efd49b; --tint: #e9b8521d; min-height: 61px; padding: 8px 11px; display: flex; justify-content: center; align-items: center; gap: 9px; background: #111a2a; border: 1px solid var(--border); border-radius: 11px; font-size: .9rem; }
.scene-choice[data-scene="aurora"] { --accent: #8fe8c9; --tint: #50ddb725; }
.scene-choice[data-scene="galaxy"] { --accent: #c9b7ff; --tint: #b08eff29; }
.scene-choice[aria-pressed="true"], .scene-choice:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 60%, #182337); background: linear-gradient(130deg, var(--tint), #111a2a 76%); }
.scene-icon, .gesture-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; }
.scene-icon { background: var(--tint); color: var(--accent); }
.controls { border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(155deg, #172236, #0d1524 72%); padding: 23px; }
.camera-mark { width: 43px; height: 43px; border-radius: 11px; }
.controls h2 { font-size: 1.42rem; margin: 16px 0 6px; letter-spacing: .065em; }
.controls-intro { color: var(--muted); font-size: .91rem; line-height: 1.65; margin: 0 0 19px; }
.camera-button { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px; border: 1px solid #f9dc9e; border-radius: 10px; color: #211706; font-weight: 700; font-size: .95rem; background: linear-gradient(120deg, #f5dba2, #e5bc71); }
.camera-button:hover { background: #ffe6ad; }
.camera-button[aria-pressed="true"] { background: #27344a; color: #f8ecd1; border-color: #a28b5c; }
#preview { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: center; margin-top: 10px; border-radius: 9px; background: #070c16; transform: scaleX(-1); }
.camera-status { color: #bac5d8; margin: 10px 0 16px; font-size: .82rem; line-height: 1.5; min-height: 1.5em; }
.camera-status[data-state="active"] { color: #a3e6c5; }
.camera-status[data-state="error"] { color: #ffc2ad; }
.actions { display: grid; gap: 7px; border-top: 1px solid var(--border); padding-top: 14px; }
.gesture { min-height: 59px; display: flex; align-items: center; gap: 11px; text-align: left; border-radius: 10px; border: 1px solid transparent; padding: 7px 9px; background: #141e30; }
.gesture:hover, .gesture[aria-pressed="true"] { border-color: #76705d; background: #1c2638; }
.gesture-icon { background: #263041; color: var(--gold); }
.gesture strong, .gesture small { display: block; }
.gesture strong { font-weight: 600; font-size: .87rem; }
.gesture small { margin-top: 3px; font-size: .77rem; color: var(--muted); }
.privacy { margin: 16px 0 0; color: var(--muted); display: flex; align-items: start; gap: 5px; font-size: .75rem; line-height: 1.55; }
.privacy .icon { width: 15px; height: 15px; }
@media (max-width: 950px) {
  .layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; }
  .controls { padding: 17px; }
}
@media (max-width: 740px) {
  .page { padding: 15px 14px 26px; }
  .topbar { padding-bottom: 13px; margin-bottom: 13px; }
  .layout { grid-template-columns: 1fr; gap: 14px; }
  .stage { height: clamp(345px, 57svh, 565px); border-radius: 15px; }
  .scene-heading { top: 18px; left: 17px; }
  .scene-heading p { margin-bottom: 5px; font-size: .67rem; }
  .scene-heading h1 { font-size: 1.62rem; }
  .stage-status, .drag-hint { bottom: 12px; font-size: .72rem; }
  .stage-status { left: 12px; }
  .drag-hint { right: 12px; }
  .scene-picker { gap: 6px; margin-top: 8px; }
  .scene-choice { min-height: 48px; gap: 5px; padding: 5px; }
  .scene-choice .scene-icon { width: 26px; height: 26px; }
  .controls { padding: 17px; border-radius: 15px; }
  .camera-mark { display: none; }
  .controls h2 { margin-top: 0; }
  .controls-intro { margin-bottom: 13px; }
  .actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .gesture { flex-direction: column; text-align: center; padding: 7px 3px; gap: 5px; }
  .gesture strong { font-size: .76rem; }
  .gesture small { font-size: .7rem; }
}
