.match-demo{width:min(640px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;box-sizing:border-box;padding:22px;border:1px solid #46747b;border-radius:18px;background:#102832;color:#f4fafb;font:15px/1.45 system-ui,sans-serif;box-shadow:0 20px 80px #0008}
.match-demo::backdrop{background:#041319df}.match-demo [hidden]{display:none!important}.match-demo header{display:flex;justify-content:space-between;align-items:center;gap:12px}.match-demo h2{margin:4px 0;font-size:25px}.match-demo small{color:#87d8cf;font-size:10px;letter-spacing:.08em}.match-demo p{margin:10px 0}.match-demo button,.match-demo select{min-height:44px;border:1px solid #58777d;border-radius:8px;background:#243e49;color:#fff;padding:7px 12px;font:600 14px system-ui;cursor:pointer}.match-demo button:focus-visible,.match-demo select:focus-visible{outline:3px solid #f6d46e;outline-offset:2px}.match-demo button[aria-pressed=true],.match-demo #demoSubmit{background:#087e74;border-color:#5bd6c7}.match-demo .demo-tabs{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.demo-tabs label{margin-left:auto}.match-demo svg{display:block;width:100%;height:clamp(140px,25dvh,230px);background:#07171e;border:1px solid #39525a;border-radius:10px;margin:8px 0}.demo-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px}.demo-legend span:first-child{color:#54e0cf}.demo-legend span:last-child{color:#e19aff}.match-demo .demo-pose{font-size:11px;font-variant-numeric:tabular-nums;color:#b9d1d6}.demo-directions{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin-top:8px}.demo-directions button{padding:6px 3px;font-size:12px}.match-demo .demo-axis-hint{color:#b9d1d6;font-size:12px}.match-demo footer{display:flex;flex-wrap:wrap;gap:7px}.match-demo footer button{flex:1 1 auto}.match-demo #demoDone{background:#e0f2ef;color:#123d3b}.match-demo #demoFeedback{min-height:42px;font-size:13px}@media(max-width:430px){.match-demo{padding:14px}.demo-directions{grid-template-columns:repeat(3,1fr)}.match-demo h2{font-size:22px}.match-demo svg{height:155px}}@media(max-height:500px) and (min-width:600px){.match-demo svg{float:right;width:43%;height:170px;margin-left:12px}.match-demo footer{clear:both}}
@media(max-width:430px){.match-demo #demoRotateButtons{grid-template-columns:repeat(2,1fr)}}
