:root { font-family:Inter,system-ui,sans-serif; color:#11151B; background:transparent; }
* { box-sizing:border-box; letter-spacing:0; }
body { margin:0; }
[hidden] { display:none !important; }
button { font:inherit; }
button:focus-visible, [tabindex="0"]:focus-visible, summary:focus-visible { outline:3px solid #0A4FE0; outline-offset:4px; }
.demo-player { display:grid; grid-template-columns:minmax(0,1fr) 360px; grid-template-rows:auto 1fr; grid-template-areas:"stages scene" "info scene"; align-items:start; gap:1.25rem 3rem; max-width:800px; margin:0 auto; padding:4px; }
.demo-stages { grid-area:stages; display:grid; gap:5px; padding-top:1rem; }
.demo-stages button { position:relative; display:flex; align-items:center; gap:10px; min-height:50px; padding:8px 10px 10px; border:0; border-bottom:2px solid #D8DEE8; background:transparent; color:#596270; font-size:14px; font-weight:550; text-align:left; cursor:pointer; }
.demo-stages button:hover { background:#F3F6FA; color:#073AA9; }
.demo-stages button[aria-selected="true"] { color:#073AA9; }
.stage-number { display:grid; place-items:center; width:25px; height:25px; flex:0 0 25px; border:1px solid #C4CCD9; border-radius:50%; font-size:12px; }
[aria-selected="true"] .stage-number { background:#0A4FE0; color:white; border-color:#0A4FE0; }
.stage-progress { position:absolute; height:2px; bottom:-2px; left:0; width:100%; background:#0A4FE0; transform:scaleX(var(--progress,0)); transform-origin:left; }
.demo-stage-info { grid-area:info; min-width:0; }
#demo-caption { font-size:15px; line-height:1.5; margin:0; }
.demo-transcript { margin:2px 0 6px; color:#596270; font-size:13px; line-height:1.6; }
.demo-transcript summary { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.demo-transcript p { font-size:13px; margin:6px 0 12px; }
.transport { display:flex; align-items:center; gap:22px; margin-top:8px; }
.transport-button { position:relative; display:grid; place-items:center; width:28px; height:28px; padding:0; border:1px solid #C4CCD9; border-radius:4px; background:#FFF; color:#16334F; cursor:pointer; }
.transport-button::after { content:""; position:absolute; inset:-8px; }
.transport-button svg { width:14px; height:14px; }
.transport-button:hover { color:#0A4FE0; border-color:#0A4FE0; }
.transport-button:active { transform:scale(.97); }
.demo-time { color:#596270; font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
#mobile-scene { grid-area:scene; min-width:0; }
.phone-frame { position:relative; width:100%; aspect-ratio:9/17; overflow:hidden; border:1px solid #343A43; border-radius:8px; background:#000; box-shadow:0 12px 28px rgb(0 0 0 / 10%); }
.browser-bar { height:34px; display:flex; align-items:center; justify-content:center; gap:7px; border-bottom:1px solid #282828; background:#161616; color:#AAA; font:11px "Segoe UI",sans-serif; }
.browser-bar svg { width:12px; height:12px; }
.mobile-cursor { position:absolute; z-index:10; left:0; top:0; width:24px; height:24px; pointer-events:none; }
.mobile-cursor>svg { width:24px; height:24px; filter:drop-shadow(0 2px 2px rgb(0 0 0 / 40%)); }
.mobile-cursor span { position:absolute; top:-10px; left:-10px; width:28px; height:28px; border:2px solid #8AB4FF; border-radius:50%; opacity:0; }
.mobile-cursor[data-click="true"] span { opacity:.9; }
@media (max-width:700px) {
  .demo-player { grid-template-columns:minmax(0,1fr); grid-template-rows:auto; grid-template-areas:"stages" "info" "scene"; gap:12px; max-width:440px; }
  .demo-stages { grid-template-columns:repeat(2,minmax(0,1fr)); padding-top:0; }
  .demo-stages button { padding-inline:6px; font-size:13px; }
  #demo-caption { font-size:14px; }
  #mobile-scene { width:min(100%,360px); margin:8px auto 0; }
  .transport { margin:0 0 4px; }
}
@media (prefers-reduced-motion:reduce) { .mobile-cursor { display:none !important; } .transport-button:active { transform:none; } }
