/* NetShow split shell: SET ME FREE (line 1880, split-shell-set-me-free-r1).
   Linked by layouts/netshow-stage.blade.php only while App\Support\SplitShellFree::config() answers,
   so a page with split_shell or stage_layer off never loads it. public/js/pages/netshow-stage-free.js
   sets .ns-free on the planes and moves the host's .ns-face into the one <netshow-stage>. */

/* the content plane takes the whole width (the host plane folds to nothing; the node is on the stage) */
.ns-planes.ns-free .ns-host { flex-basis: 0 !important; min-width: 0 !important; max-width: 0; overflow: hidden; }
.ns-planes.ns-free .ns-splitter { display: none; }
.ns-planes.ns-free-anim .ns-host { transition: flex-basis 420ms cubic-bezier(.2, .8, .2, 1), max-width 420ms cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 700px), (orientation: portrait) and (max-width: 1024px) {
    .ns-planes.ns-free .ns-host { max-width: none; min-height: 0 !important; max-height: 0; }
    .ns-planes.ns-free-anim .ns-host { transition: flex-basis 420ms cubic-bezier(.2, .8, .2, 1), max-height 420ms cubic-bezier(.2, .8, .2, 1); }
}
@media (prefers-reduced-motion: reduce) {
    .ns-planes.ns-free-anim .ns-host { transition: none; }
}

/* the tenth bar button: its two-word label may take two lines */
.ns-bar [data-ns-stage-btn="free"] { flex-grow: 1.3; }
.ns-bar [data-ns-stage-btn="free"] [data-ns-stage-label] { white-space: normal; text-align: center; }
/* the phone's living sliver keeps face, name and TALK (netshow-stage.css); SET ME FREE stays beside TALK */
@media (max-width: 700px), (orientation: portrait) and (max-width: 1024px) {
    .ns-planes.ns-host-sliver .ns-bar { gap: 8px; }
    .ns-planes.ns-host-sliver .ns-bar button[data-ns-stage-btn="free"] { display: flex; flex: none; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(245, 166, 35, .55); background: #1a1a2a; color: #ffcf73; }
    .ns-planes.ns-host-sliver .ns-bar button[data-ns-stage-btn="free"] [data-ns-stage-label] { font-size: 9px; letter-spacing: .02em; }
}

/* her face on the stage: the same node, filling the puppet box */
netshow-stage[data-ns-free] > .ns-face { display: block; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #0a0a14; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
netshow-stage[data-ns-free] > .ns-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
netshow-stage[data-ns-free] > .ns-face .ns-face-live { position: absolute; inset: 0; }
netshow-stage[data-ns-free][data-look="live"] > .ns-face img[data-ns-stage-face] { visibility: hidden; }
netshow-stage[data-ns-free] > .ns-face .ns-invite,
netshow-stage[data-ns-free] > .ns-face .ns-captions { display: none !important; }
netshow-stage[data-ns-free] > .ns-face .ns-backup { position: absolute; left: 8px; bottom: 8px; margin: 0; padding: 2px 8px; border-radius: 999px; background: rgba(10, 10, 20, .85); color: #ffcf73; font: 700 11px/1.6 'Nunito', system-ui, sans-serif; }
netshow-stage[data-ns-free] > .ns-face .ns-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
netshow-stage[data-ns-free][data-stage-state="POINT"] > .ns-face { box-shadow: 0 0 0 3px #f5a623, 0 24px 60px rgba(0, 0, 0, .45); }
netshow-stage[data-stage-suspended] { visibility: hidden !important; }
netshow-stage:not(:defined) { display: none; }

/* the one shoulder badge and its menu: the ten bar actions, folded */
netshow-stage .ns-free-shoulder { display: block; }
netshow-stage .ns-free-badge { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(245, 166, 35, .55); background: #12121e; color: #ffcf73; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); cursor: pointer; }
netshow-stage .ns-free-badge:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
netshow-stage > .ns-free-menu { display: grid; gap: 2px; padding: 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: #12121e; color: #f0f0f5; font: 600 14px/1.3 'Nunito', system-ui, sans-serif; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .85); }
netshow-stage > .ns-free-menu[hidden] { display: none; }
netshow-stage > .ns-free-menu .ns-free-menu-hd { margin: 0 0 6px; color: #f5a623; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
netshow-stage > .ns-free-menu button { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #f0f0f5; font: inherit; text-align: left; cursor: pointer; }
netshow-stage > .ns-free-menu button:hover, netshow-stage > .ns-free-menu button:focus-visible, netshow-stage > .ns-free-menu button[aria-pressed="true"] { background: #1a1a2a; color: #ffcf73; }
netshow-stage > .ns-free-menu button[data-ns-free-action="back"] { color: #ffcf73; }
netshow-stage > .ns-free-menu .ns-free-vol { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; color: #b4b4c8; }
netshow-stage > .ns-free-menu .ns-free-vol input { flex: 1 1 auto; accent-color: #f5a623; }
netshow-stage > .ns-free-menu .ns-pop { position: static; margin-top: 8px; max-height: none; box-shadow: none; }
netshow-stage > .ns-free-menu .ns-pop p { margin: 0 0 8px; }
netshow-stage > .ns-free-menu .ns-reach-list { list-style: none; margin: 0; padding: 0; }
netshow-stage > .ns-free-menu .ns-reach-list a { display: block; padding: 9px 10px; border-radius: 8px; color: #ffcf73; font-weight: 700; text-decoration: none; }
netshow-stage > .ns-free-caption { margin: 0; }

/* the always-visible state pill: the freedom layer's pill (public/js/ns-avatar-freedom.js :208-215),
   same class names and look, shown as a manual popover after the stage so it sits above her */
.ns-freedom-pill { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; min-height: 44px; max-width: calc(100vw - 24px); border-radius: 999px; border: 1px solid rgba(212, 168, 71, .55); background: #0a1628; color: #d6ab4a; box-shadow: 0 6px 16px rgba(0, 0, 0, .28); font: 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.ns-freedom-pill .ns-freedom-pill-off { appearance: none; min-height: 36px; min-width: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(212, 168, 71, .55); background: #132238; color: #ffd66b; font-size: 13px; line-height: 1; cursor: pointer; white-space: nowrap; }
.ns-freedom-pill .ns-freedom-pill-off:focus-visible { outline: 3px solid #ffd66b; outline-offset: 2px; }
.ns-free-pill { top: calc(var(--ns-tm-h, 64px) + 8px); z-index: 2147483001; }
.ns-free-pill[popover] { inset: auto; top: calc(var(--ns-tm-h, 64px) + 8px); left: 50%; right: auto; bottom: auto; margin: 0; overflow: visible; width: max-content; }
.ns-free-pill[data-stage-suspended] { visibility: hidden !important; }
@media (max-width: 480px) {
    .ns-freedom-pill .ns-freedom-pill-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
}

/* POINT: the ring around the section she shows */
.ns-free-ring { position: fixed; z-index: 60; pointer-events: none; border: 3px solid #f5a623; border-radius: 16px; box-shadow: 0 0 0 6px rgba(245, 166, 35, .25); animation: ns-free-ring 1.4s ease-in-out infinite; }
@keyframes ns-free-ring { 0%, 100% { box-shadow: 0 0 0 4px rgba(245, 166, 35, .2); } 50% { box-shadow: 0 0 0 10px rgba(245, 166, 35, .35); } }
@media (prefers-reduced-motion: reduce) { .ns-free-ring { animation: none; } }
