.gestures { max-width: 1200px; padding: 20px; margin: auto; }
.gestures [hidden] { display: none !important; }
.gestures-entry { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--color-line); border-radius: 24px; overflow: hidden; background: var(--color-surface); }
.gestures-entry > img { width: 100%; height: 100%; object-fit: contain; background: #142143; }
.gestures-settings { padding: clamp(16px, 3vw, 35px); display: grid; gap: 12px; }
.gestures h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.gestures p { margin: 0; }
.gestures-eyebrow { color: var(--color-primary); font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.gestures label { display: grid; gap: 4px; }
.gestures fieldset { border: 0; margin: 0; padding: 0; }
.gestures legend { font-weight: 700; margin-bottom: 5px; }
.gestures select, .gestures input[type=file] { max-width: 100%; padding: 8px; border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-surface); color: var(--color-ink); font: inherit; }
.gestures-options { display: flex; flex-wrap: wrap; gap: 6px; }
.gestures-options label { display: flex; gap: 5px; border: 1px solid var(--color-line); padding: 6px 9px; border-radius: 20px; cursor: pointer; }
.gestures-options label:has(:checked) { background: #245bc2; color: white; }
.gestures-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gestures-levels label { border-radius: 12px; align-items: flex-start; padding: 10px; }
.gestures-levels input { margin-top: 4px; flex-shrink: 0; }
.gestures-levels strong, .gestures-levels small { display: block; }
.gestures-levels strong { font-size: .85rem; }
.gestures-levels label:has(:checked) small { color: #e5edff; }
.gestures-sequence-picker { border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-surface); }
.gestures-sequence-picker summary { cursor: pointer; padding: 10px 12px; color: var(--color-ink); }
.gestures-sequence-picker summary:focus-visible { outline: 3px solid #f7bb56; outline-offset: 2px; border-radius: 8px; }
.gestures-sequence-list { display: grid; gap: 6px; padding: 6px 10px 10px; border-top: 1px solid var(--color-line); }
.gestures-sequence-list label { display: flex; align-items: flex-start; gap: 10px; padding: 9px; margin: 0; border-radius: 6px; cursor: pointer; }
.gestures-sequence-list label:has(:checked) { background: color-mix(in srgb, var(--color-primary) 12%, transparent); }
.gestures-sequence-list input { flex-shrink: 0; margin-top: 4px; }
.gestures-sequence-list small { display: block; }
.gestures-note, .gestures small { font-size: .8rem; color: var(--color-muted); }
.gestures-actions, .gestures-play header, .gestures-play footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0; }
.gestures-actions { justify-content: space-between; }
.gestures button { cursor: pointer; padding: 9px 14px; border: 1px solid #4776bf; border-radius: 10px; background: #245bc2; color: white; font: inherit; }
.gestures-back-button { display: inline-flex; justify-content: center; align-items: center; padding: 9px 14px; border: 1px solid var(--color-primary); border-radius: 10px; color: var(--color-primary); background: var(--color-surface); font: inherit; text-decoration: none; }
.gestures-back-button:hover { color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface)); text-decoration: none; }
.gestures button:focus-visible, .gestures a:focus-visible { outline: 3px solid #f7bb56; outline-offset: 3px; }
.gestures-play { padding: 12px; border-radius: 20px; background: #101b37; color: #eef6ff; }
.gestures-play header > strong { flex: 1; min-width: 150px; }
.gestures-play a { color: #c0e2ff; }
.gestures-play .gestures-exit { display: inline-flex; align-items: center; padding: 9px 14px; border: 1px solid #789bc9; border-radius: 10px; background: #243552; color: #fff; font-weight: 600; text-decoration: none; }
.gestures-play .gestures-exit:hover { background: #354c71; }
.gestures-play [data-time] { font-variant-numeric: tabular-nums; color: #fbd68b; font-size: 1.2rem; }
.gestures-stage { position: relative; border-radius: 16px; background: radial-gradient(ellipse at 30% 50%, #25335d, #10182f); overflow: hidden; }
.gestures-stage svg { display: block; width: 100%; max-height: 72dvh; aspect-ratio: 1000/550; }
.gesture-track { fill: none; stroke: #b5c9f038; stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.gesture-fill { fill: none; stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.gesture-guide { fill: #eefaff; stroke: #fff9; stroke-width: 5; }
.gesture-mascot { pointer-events: none; }
.gesture-waypoint { stroke: #fff9; stroke-width: 2; }
.gesture-connector { fill: none; stroke-width: 4; stroke-dasharray: 3 12; stroke-linecap: round; opacity: .45; }
.gestures-pitch-key { display: flex; justify-content: space-between; gap: 12px; padding: 0 12px 10px; font-size: .78rem; color: #c0d8ff; }
.gestures-pitch-key span { color: #fff; text-align: center; }
.gestures-hands-key { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 24px; padding: 0 8px 12px; font-size: .85rem; font-weight: 700; }
.gestures-hands-key span:first-child { color: #8ce7f2; }
.gestures-hands-key span:last-child { color: #ffadce; }
.gestures-play footer > span { flex: 1; }
.gestures-result { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 15px; background: #101b37ed; text-align: center; padding: 20px; }
.gestures-result h2 { color: white; }
.gestures-play:fullscreen { display: flex; flex-direction: column; justify-content: center; width: 100%; height: 100%; border-radius: 0; }
.gestures-play:fullscreen .gestures-stage { width: min(100%, 150vh); margin-inline: auto; }
@media(max-width: 760px) { .gestures-entry { grid-template-columns: 1fr; } .gestures-entry > img { max-height: 260px; object-fit: contain; background: #142143; } .gestures { padding: 10px; } .gestures-play footer > span { flex: 1 0 100%; } }
