:root{color:#292b40;font-synthesis:none;--indigo:#5152b9;--line:#e4e6ef;--muted:#62677e;--lavender:#eef1ff;background:#f7f8fc;font-family:Avenir Next,Avenir,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,summary:focus-visible,input:focus-visible{outline-offset:4px;outline:3px solid #d4763d}main{max-width:1440px;margin:auto;padding:38px 46px 24px}.page-header{justify-content:space-between;align-items:center;gap:22px;margin-bottom:35px;display:flex}.brand{align-items:center;gap:15px;display:flex}.brand-symbol{width:52px;height:52px;color:var(--indigo);background:#e9e9fb;border-radius:18px;place-items:center;font-size:43px;line-height:1;display:grid}.brand h1{letter-spacing:-1px;margin:0;font-size:31px;font-weight:700}.brand p{color:var(--muted);margin:4px 0 0;font-size:14px}.local-note{color:#50675d;align-items:center;gap:7px;font-size:12px;display:flex}.local-note>span{background:#56866c;border-radius:50%;width:6px;height:6px}.workspace{grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:26px;display:grid}.game-panel,.camera-panel{min-width:0}.panel-heading{justify-content:space-between;align-items:center;gap:14px;min-height:48px;margin-bottom:12px;display:flex}.panel-heading h2{margin:0;font-size:16px;font-weight:600}.scores{color:var(--muted);gap:22px;font-size:12px;display:flex}.scores span{align-items:center;gap:8px;display:flex}.scores strong{color:#30324c;font-size:23px;font-weight:600}.game-stage{background:var(--lavender);border:1px solid #e1e5f6;border-radius:20px;min-height:280px;position:relative;overflow:hidden}.game-stage canvas{aspect-ratio:900/440;object-fit:contain;width:100%;height:auto;display:block}.game-overlay{text-align:center;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#eef1ffc9;flex-direction:column;justify-content:center;align-items:center;padding:24px;display:flex;position:absolute;inset:0}.game-overlay[hidden]{display:none}.overlay-icon{width:42px;height:42px;color:var(--indigo);background:#f8f9ff;border:1px solid #a6a9d7;border-radius:13px;place-items:center;margin-bottom:15px;font-size:25px;display:grid}.game-overlay h3{letter-spacing:-.8px;margin:0 0 10px;font-size:27px;font-weight:600}.game-overlay p{color:#555c79;max-width:340px;margin:0 0 20px;font-size:14px;line-height:1.55}.button{border:1px solid #0000;border-radius:9px;padding:10px 17px;font-size:13px;font-weight:600;transition:background .15s}.button.primary{background:var(--indigo);color:#fff;box-shadow:0 2px 2px #4545a719}.button.primary:hover{background:#41429d}.button.quiet{border-color:var(--line);color:#535872;background:0 0;padding:8px 13px}.button.quiet:hover{background:#eceef6}.game-toolbar{justify-content:space-between;align-items:center;gap:12px;margin-top:15px;display:flex}.game-toolbar p{color:var(--muted);margin:0;font-size:12px}.game-toolbar p>span{margin:0 7px}.game-toolbar>div{gap:7px;display:flex}kbd{background:#fff;border:1px solid #d8dce7;border-bottom-width:2px;border-radius:4px;padding:2px 6px;font-family:inherit;font-size:11px;display:inline-block}.instructions{border-top:1px solid var(--line);justify-content:space-between;gap:17px;margin:33px 0 0;padding:24px 0;display:flex}.instructions>div{flex:1;align-items:flex-start;gap:10px;display:flex}.instruction-number{color:#555ca0;background:#e8eaf8;border-radius:50%;place-items:center;min-width:25px;height:25px;font-size:12px;display:grid}.instructions p{margin:1px 0;font-size:12px;line-height:1.5}.instructions strong{margin-bottom:5px;font-weight:600;display:block}.instructions p>span{color:var(--muted);display:block}.camera-panel{border:1px solid var(--line);background:#fff;border-radius:16px;padding:18px}.camera-panel .panel-heading{min-height:24px;margin-bottom:15px}.camera-panel h2{font-size:14px}.status-badge{color:#697087;white-space:nowrap;background:#f0f1f5;border-radius:5px;padding:4px 7px;font-size:10px}.status-badge.active{color:#296446;background:#e6f4eb}.camera-viewport{aspect-ratio:4/3;background:#edf0f7;border-radius:10px;position:relative;overflow:hidden}.mirrored{background:#edf0f7;position:absolute;inset:0;transform:scaleX(-1)}.mirrored video,.mirrored canvas{object-fit:contain;width:100%;height:100%;position:absolute;inset:0}.camera-placeholder{text-align:center;color:#616983;flex-direction:column;justify-content:center;align-items:center;padding:13px;display:flex;position:absolute;inset:0}.camera-placeholder[hidden]{display:none}.camera-placeholder .hand-illustration{object-fit:contain;width:96px;height:108px;margin-bottom:10px;display:block}.camera-placeholder strong{margin-bottom:6px;font-size:13px;font-weight:600}.camera-placeholder>span{max-width:205px;font-size:11px;line-height:1.5}.camera-button{width:100%;margin-top:14px}.camera-status{color:var(--muted);min-height:33px;margin:9px 0 16px;font-size:11px;line-height:1.5}.error-message{color:#8a3e22;background:#fff0e9;border-radius:7px;padding:10px;font-size:12px;line-height:1.5}.control-mode{background:#f0f2f8;border-radius:8px;gap:3px;margin-bottom:17px;padding:3px;display:flex}.control-mode button{color:#667087;background:0 0;border:0;border-radius:6px;flex:1;padding:7px 4px;font-size:12px}.control-mode button[aria-pressed=true]{color:#3f4385;background:#fff;box-shadow:0 1px 4px #1e2a5010}.gesture-readout{color:var(--muted);align-items:center;gap:8px;margin:0 0 21px;font-size:11px;display:flex}.gesture-readout strong{color:#464a63;margin-left:auto;font-size:12px;font-weight:600}.gesture-light{background:#c8ccd7;border-radius:50%;width:7px;height:7px}.gesture-light.active{background:#438164}.gesture-light.pinched{background:#d87639}.slider-label{justify-content:space-between;font-size:12px;font-weight:500;display:flex}.slider-label output{color:#646a83;font-weight:400}input[type=range]{width:100%;accent-color:var(--indigo);height:16px;margin:12px 0 6px}.slider-help{color:var(--muted);justify-content:space-between;margin:0;font-size:10px;display:flex}.camera-stats{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;gap:12px;margin-top:18px;padding-top:14px;font-size:10px;display:flex}.camera-stats strong{color:#41485f;margin-left:5px;font-weight:500}code{background:#eef0f7;border-radius:3px;padding:2px 4px;font-size:11px}footer{color:#737a91;justify-content:space-between;gap:20px;margin-top:15px;font-size:10px;display:flex}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (width>=1500px){main{padding-top:48px}.workspace{grid-template-columns:minmax(0,1fr) 360px}}@media (width<=1050px){main{padding:28px}.workspace{grid-template-columns:minmax(0,1fr) 300px;gap:20px}.instructions{gap:10px}.instructions>div{display:block}.instruction-number{margin-bottom:8px}.panel-heading h2{font-size:14px}.scores{gap:10px}.game-overlay h3{font-size:24px}.game-toolbar{flex-direction:column;align-items:flex-start}}@media (width<=780px){main{padding:22px 18px}.workspace{grid-template-columns:1fr}.camera-panel{max-width:none}.camera-viewport{max-height:320px}.page-header{align-items:flex-start;margin-bottom:22px}.local-note{max-width:140px;margin-top:8px;font-size:10px;line-height:1.5}.brand h1{font-size:26px}.brand-symbol{width:43px;height:43px;font-size:35px}.brand p{font-size:12px}.game-toolbar{flex-direction:row;align-items:center}.instructions{margin-top:24px;padding:19px 0 0}.camera-stats,.gesture-readout{font-size:12px}.camera-placeholder .hand-illustration{width:104px;height:117px}footer{font-size:9px}}@media (width<=430px){.local-note{display:none}.panel-heading{align-items:flex-start}.panel-heading h2{max-width:155px}.game-overlay h3{font-size:23px}.game-overlay p{font-size:12px}.game-toolbar{flex-wrap:wrap}.instructions p{font-size:11px}.scores strong{font-size:20px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.demo-note{max-width:90ch;margin-top:24px;font-size:11px;line-height:1.65}.demo-note p{margin:0}.jump-button{touch-action:manipulation;min-width:64px;min-height:44px}
