:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: #080913;
  color: #f3efdd;
  font-synthesis: none;
  --green: #baf4ae;
  --muted: #99aca1;
  --line: rgba(203, 241, 209, .16);
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, .scene:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.experience { min-height: 660px; height: 100svh; position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr; padding-bottom: 48px; }
.scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; touch-action: none; cursor: grab; }
.scene:active { cursor: grabbing; }
.scene canvas { width: 100%; height: 100%; display: block; }
.masthead { display: flex; align-items: center; justify-content: space-between; margin: 0 4%; pointer-events: none; }
.masthead { height: 83px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.brand > span:last-child { color: #a6b9ad; font-weight: 450; }
.brand-mark { color: var(--green); border: 1px solid #507b60; width: 32px; height: 32px; display: grid; place-items: center; margin-right: 6px; }
.brand-mark svg { width: 19px; height: 19px; }
.scene-status { display: flex; align-items: center; gap: 9px; color: #bdcbbd; font-size: 11px; }
.scene-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px #9be9a9; }
.animation-main { position: relative; pointer-events: none; display: grid; align-items: center; grid-template-columns: 1fr 1fr; padding: 0 6%; }
.setup { max-width: 680px; margin-inline: auto; padding: 48px 24px; }
.setup header, .setup-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.setup h1 { font-size: 34px; }
.setup h2 { font-size: 16px; }
.setup section { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.setup-enter { padding: 9px 15px; border-radius: 4px; background: var(--green); color: #102c1a; font-size: 14px; font-weight: 700; text-decoration: none; }
.setup-enter:hover { background: #dcffd2; }
.setup button { background: #15271c; border: 1px solid var(--line); border-radius: 4px; min-height: 32px; padding: 4px 8px; }
.setup button:hover { background: #22402e; }
.setup button svg { vertical-align: middle; }
.title { align-self: center; justify-self: start; margin-bottom: 6vh; }
h1 { font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif; font-size: 79px; line-height: 1.07; font-weight: 550; margin: 0; }
.style-picker { display: flex; width: max-content; max-width: 100%; margin-top: 26px; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 6px; background: #0c101aeb; pointer-events: auto; }
.style-picker button { --swatch: #64d8ff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 60px; min-height: 35px; padding: 4px 7px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #bbc2c9; font-size: 12px; white-space: nowrap; }
.style-picker button::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--swatch); }
.style-picker [data-style=galaxy] { --swatch: #ffbf72; }
.style-picker [data-style=aurora] { --swatch: #6aefcf; }
.style-picker button:hover { background: #ffffff0d; }
.style-picker button[aria-pressed=true] { border-color: #ffffff28; background: #ffffff12; color: #fff; }
.style-picker button[aria-pressed=true]::before { box-shadow: 0 0 8px var(--swatch); }
.controls { pointer-events: auto; justify-self: end; width: 237px; display: grid; gap: 13px; background: rgba(9, 23, 17, .9); border: 1px solid rgba(160, 210, 170, .23); padding: 15px; border-radius: 7px; }
.panel-heading { display: flex; align-items: center; gap: 8px; }
.panel-heading > svg { color: var(--green); }
h2 { font-weight: 620; font-size: 13px; margin: 0; }
.camera-state { margin-left: auto; color: var(--muted); font-size: 10px; }
.camera-state.active { color: var(--green); }
.viewfinder { height: 138px; border: 1px solid var(--line); border-radius: 4px; background: #081712; overflow: hidden; position: relative; display: grid; place-items: center; }
.viewfinder-guide { position: absolute; inset: 0; background-image: linear-gradient(#9ae4af0d 1px, transparent 1px), linear-gradient(90deg, #9ae4af0d 1px, transparent 1px); background-position: center; background-size: 15px 15px; }
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); visibility: hidden; }
.viewfinder.live video { visibility: visible; }
.viewfinder.live .viewfinder-hand { visibility: hidden; }
.viewfinder-hand { width: 31px; height: 31px; color: #75a786; }
.viewfinder-light { position: absolute; top: 10px; left: 10px; width: 5px; height: 5px; border-radius: 50%; background: #567564; }
.viewfinder.live .viewfinder-light { background: var(--green); box-shadow: 0 0 10px var(--green); }
.camera-button { display: flex; align-items: center; justify-content: center; gap: 7px; position: relative; min-height: 36px; padding: 5px 22px; border: 0; border-radius: 4px; background: var(--green); color: #102c1a; font-weight: 720; font-size: 12px; }
.camera-button:hover { background: #dcffd2; }
.camera-button[aria-pressed=true] { background: #22402e; color: #d3f7cd; }
.camera-button svg { width: 15px; height: 15px; }
.camera-button .camera-chevron { position: absolute; right: 8px; width: 12px; }
.camera-message { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; min-height: 30px; text-align: center; }
.hand-results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px; color: var(--green); font-size: 10px; }
.hand-results span { border: 1px solid var(--line); border-radius: 4px; padding: 4px; }
#photo-preview { display: block; width: 100%; max-height: 42dvh; object-fit: contain; margin-top: 10px; }
.gesture-photo { position: fixed; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.gesture-photo button { display: block; padding: 0; border: 0; background: none; pointer-events: auto; }
.gesture-photo img { display: block; max-width: min(39vw, 480px); max-height: min(42dvh, 360px); }
.photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; list-style: none; margin: 12px 0; padding: 0; }
.photo-list li { display: flex; min-width: 0; align-items: center; gap: 4px; }
.photo-list button:first-child { display: block; flex: 1; min-width: 0; padding: 3px; }
.photo-list img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
#photo-status { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.photo-share { display: grid; gap: 7px; margin-top: 16px; font-size: 13px; }
.photo-share > div { display: flex; gap: 8px; }
.photo-share input { flex: 1; min-width: 0; min-height: 36px; color: inherit; background: #0e1620; border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; }
.photo-share button { flex: none; }
#photo-share-status { margin: 0; color: var(--muted); }
.shared-photo-notice { position: absolute; top: 82px; left: 0; right: 0; z-index: 1; text-align: center; pointer-events: none; }
.gesture-debug { border-top: 1px solid var(--line); padding-top: 9px; min-width: 0; font-size: 11px; }
.gesture-debug summary { cursor: pointer; color: #d0ddcd; }
.gesture-settings label { display: flex; justify-content: space-between; gap: 5px; margin-top: 14px; font-size: 14px; }
.gesture-settings output { color: var(--green); font-variant-numeric: tabular-nums; }
.gesture-settings input { display: block; width: 100%; min-height: 28px; margin: 0; accent-color: var(--green); }
.gesture-readout { margin: 7px 0; color: var(--muted); }
.gesture-readout div { display: flex; justify-content: space-between; gap: 6px; }
.gesture-readout dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#gesture-reset { border: 1px solid var(--line); background: transparent; border-radius: 4px; min-height: 26px; padding-inline: 7px; }
.tools { pointer-events: auto; display: flex; gap: 7px; position: absolute; right: 4.2%; bottom: 20px; }
.tools button { width: 36px; height: 36px; display: grid; place-items: center; background: #091612; border: 1px solid var(--line); border-radius: 4px; color: #d0ddcd; }
.tools button:hover { background: #1c3326; color: var(--green); }
.scene-error { position: absolute; inset: auto 0 50%; text-align: center; }
@media (max-width: 1050px) {
  .animation-main { padding: 0 4%; }
  .controls { width: 203px; padding: 12px; }
  h1 { font-size: 62px; }
}
@media (max-width: 750px) {
  .gesture-photo { position: absolute; bottom: auto; height: 550px; }
  .gesture-photo img { max-width: min(72vw, 420px); max-height: 245px; }
  .experience { min-height: 100svh; height: auto; grid-template-rows: 60px 1fr; padding-bottom: 0; }
  .masthead { margin-inline: 5%; }
  .masthead { height: 60px; }
  .scene { bottom: auto; height: 550px; }
  .animation-main { display: block; padding: 455px 5% 19px; }
  .title { position: absolute; inset: 20px auto auto 5%; width: 90%; margin: 0; height: 421px; }
  h1 { font-size: 31px; line-height: 1.08; }
  .style-picker { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); margin: 0; }
  .style-picker button { min-height: 32px; }
  .controls { width: 100%; gap: 8px; }
  .camera-message { min-height: 15px; }
  .viewfinder { height: 96px; }
  .tools { top: 25px; bottom: auto; right: 5%; }
  .tools button { width: 32px; height: 32px; }
}
@media (max-width: 340px) {
  .brand { font-size: 11px; }
  .controls { gap: 7px; padding: 9px; }
}
