.fsar-app { margin: 0 auto 1.5em; width: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #222; --fsar-aspect: 1.3333; }
.fsar-app * { box-sizing: border-box; }

.fsar-stage { position: relative; width: min(100%, calc(80vh * var(--fsar-aspect))); aspect-ratio: var(--fsar-aspect); margin: 0 auto; background: #111; border-radius: 12px; overflow: hidden; color: #fff; }
.fsar-video, .fsar-gl, .fsar-ov { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform: scaleX(-1); }
.fsar-video { object-fit: fill; background: #111; }
.fsar-ov { pointer-events: none; }

.fsar-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; background: rgba(0,0,0,.55); z-index: 5; }
.fsar-start p { margin: 0; font-size: 12px; opacity: .8; max-width: 360px; }
.fsar-start[hidden] { display: none; }
.fsar-btn-primary { appearance: none; border: 0; border-radius: 999px; padding: 12px 26px; font-size: 16px; font-weight: 600; background: #4a9eff; color: #fff; cursor: pointer; }
.fsar-btn-primary:hover { background: #2f8af5; }

.fsar-status { position: absolute; left: 10px; top: 10px; z-index: 6; padding: 5px 10px; border-radius: 10px; font-size: 12px; background: rgba(0,0,0,.65); max-width: 60%; }
.fsar-status[hidden] { display: none; }

.fsar-toolbar { position: absolute; top: 10px; right: 10px; z-index: 7; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 70%; }
.fsar-toolbar button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: rgba(0,0,0,.45); color: #fff; font-size: 14px; cursor: pointer; padding: 0; line-height: 1; }
.fsar-toolbar button.active { border-color: #4a9eff; background: rgba(74,158,255,.35); }

.fsar-popover { position: absolute; right: 10px; top: 58px; z-index: 8; background: rgba(0,0,0,.88); border-radius: 12px; padding: 10px; font-size: 11px; max-width: calc(100% - 20px); width: 260px; max-height: calc(100% - 70px); overflow: auto; }
.fsar-popover[hidden] { display: none; }
.fsar-popover h4 { margin: 0 0 8px; font-size: 12px; color: #4a9eff; }
.fsar-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.fsar-chip { padding: 4px 9px; border-radius: 8px; border: 1px solid #555; background: rgba(30,30,30,.9); color: #ccc; font-size: 11px; cursor: pointer; }
.fsar-chip.active { border-color: #4a9eff; color: #fff; }
.fsar-popover .fsar-row { color: #ddd; }
.fsar-popover button.fsar-small { padding: 5px 10px; border-radius: 6px; border: 1px solid #4a9eff; background: rgba(74,158,255,.2); color: #4a9eff; cursor: pointer; font-size: 11px; margin-right: 6px; }
.fsar-popover .fsar-note { color: #8a8a8a; margin-top: 6px; font-size: 10px; min-height: 12px; }

.fsar-controls { max-width: 100%; margin: 10px auto 0; width: min(100%, calc(80vh * var(--fsar-aspect))); }
.fsar-colors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.fsar-color { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; background: none; border: 0; padding: 0; }
.fsar-color i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(0,0,0,.15); display: block; }
.fsar-color.active i { border-color: #222; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4a9eff; }
.fsar-color span { font-size: 10px; color: #666; }

.fsar-row { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12px; }
.fsar-row .fsar-lbl { min-width: 46px; text-transform: uppercase; font-size: 10px; letter-spacing: .4px; opacity: .7; }
.fsar-row input[type=range] { flex: 1; accent-color: #4a9eff; min-width: 0; }
.fsar-row .fsar-val { min-width: 42px; text-align: right; font-family: monospace; font-size: 11px; }
.fsar-controls .fsar-row { color: #222; }
