:root { color-scheme: dark; --ink: #edf0e4; --muted: #a0afa6; --accent: #e3c27d; --line: #52645a; }
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; color: var(--ink); background: #1a282b; font-family: Outfit, "Noto Sans KR", sans-serif; }
canvas { position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; }
header { position: fixed; top: 0; left: 0; right: 0; padding: 25px 32px; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .1em; pointer-events: none; }
a { color: var(--ink); text-decoration: none; pointer-events: auto; }
header span { color: var(--accent); }
main { position: relative; width: 345px; max-height: calc(100vh - 145px); overflow-y: auto; scrollbar-width: thin; margin: 84px 0 64px 32px; padding: 24px; background: linear-gradient(130deg, #18272aef, #18272acb); border: 1px solid #687b6940; border-radius: 4px; backdrop-filter: blur(14px); }
.eyebrow { color: var(--accent); letter-spacing: .15em; font-size: 10px; margin: 0 0 12px; }
h1 { font-size: 32px; font-weight: 600; letter-spacing: -.06em; line-height: 1.4; margin: 0 0 12px; }
.intro { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 0 0 22px; }
nav { display: flex; gap: 6px; margin-bottom: 21px; }
button, select { font: inherit; font-size: 12px; color: var(--ink); border: 1px solid #52645a; background: #263738; border-radius: 3px; padding: 9px 10px; cursor: pointer; }
button:hover { border-color: var(--accent); }
button[aria-pressed="true"] { background: var(--accent); color: #172629; border-color: var(--accent); }
nav button { flex: 1; }
label, legend { display: block; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
select { display: block; width: 100%; margin-bottom: 15px; }
fieldset { border: 0; padding: 0; margin: 20px 0; }
#poses { display: flex; flex-wrap: wrap; gap: 5px; }
#poses button { font-size: 11px; padding: 7px 9px; }
.toggles { display: flex; gap: 8px; }
.toggles button { font-size: 11px; }
#gaitControls { border-top: 1px solid var(--line); padding-top: 12px; }
#gaitControls label { margin-top: 12px; }
#gaitPhase { width: 100%; accent-color: var(--accent); cursor: pointer; }
#gaitStages { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
#gaitStages button { font-size: 10px; padding: 6px 8px; }
#gaitReadout { display: block; white-space: pre-line; color: var(--accent); font-size: 11px; line-height: 1.9; font-variant-numeric: tabular-nums; min-height: 63px; }
#stats { font-size: 11px; color: var(--muted); line-height: 1.9; margin: 16px 0 0; }
footer { position: fixed; bottom: 18px; left: 32px; right: 32px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; pointer-events: none; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 700px) {
  body { overflow: auto; }
  canvas { position: absolute; width: 100% !important; height: 52vh !important; }
  header { position: absolute; padding: 18px; } header span { font-size: 10px; }
  main { width: auto; max-height: none; overflow: visible; margin: 54vh 12px 65px; padding: 17px; }
  h1 { font-size: 25px; } h1 br, .intro { display: none; }
  nav { margin: 12px 0; } fieldset { margin: 12px 0; }
  footer { left: 18px; right: 18px; background: #18272adb; padding: 8px; bottom: 8px; }
}
