/* Dedicated screen-only control, scoped to Abyss. */
html body .ar-library-player[data-player-app="abyss"] #ar-player-controls.ar-library-player-top{right:max(24px,env(safe-area-inset-right))!important;top:max(20px,env(safe-area-inset-top))!important;bottom:auto!important;left:auto!important}
html body .ar-library-player[data-player-app="abyss"] [data-player-fullscreen],html body .ar-library-player[data-player-app="abyss"] [data-player-sheep-exclusive]{display:none!important}
html body .ar-library-player[data-player-app="abyss"] [data-abyss-fullscreen194]{display:grid!important;place-items:center!important}
html body .ar-library-player[data-player-app="abyss"] [data-abyss-fullscreen194]::after{content:none!important}
html body .ar-library-player[data-player-app="abyss"] [data-abyss-fullscreen194] svg{display:block;width:18px;height:18px;fill:none;stroke:#f36262;stroke-width:1.5;position:relative;z-index:1}
html body .ar-library-player[data-player-app="abyss"].abyss-screen-only194 #ar-player-controls.ar-library-player-top{top:max(2px,env(safe-area-inset-top))!important;right:max(4px,env(safe-area-inset-right))!important}
html body .ar-library-player[data-player-app="abyss"].abyss-screen-only194 .ar-library-loading::after,html body .ar-library-player[data-player-app="abyss"].abyss-screen-only194 .ar-library-loading::before{display:none!important}
.abyss-fullscreen-note194{position:absolute;z-index:100;bottom:12px;left:50%;transform:translateX(-50%);max-width:80%;padding:8px 12px;background:#130909f2;color:#e8c4c4;font:12px/1.4 monospace;border:1px solid #642020;pointer-events:none}
@media(orientation:portrait) and (max-width:900px){html body .ar-library-player[data-player-app="abyss"] #ar-player-controls.ar-library-player-top{top:auto!important;bottom:24px!important;right:20px!important;transform:rotate(90deg)!important}html body .ar-library-player[data-player-app="abyss"].abyss-screen-only194 #ar-player-controls.ar-library-player-top{top:auto!important;bottom:4px!important;right:2px!important}}
@media(orientation:portrait) and (max-width:900px){html body .ar-library-player[data-player-app="abyss"] #ar-player-controls.ar-library-player-top{bottom:48px!important}html body .ar-library-player[data-player-app="abyss"].abyss-screen-only194 #ar-player-controls.ar-library-player-top{bottom:max(28px,env(safe-area-inset-bottom))!important}}

.ar-library-player[data-loading-theme='abyss'] .ar-library-loading::after{background-image:url('/embedded/abyss/media/laptop-chassis197.png')!important}.ar-library-player[data-loading-theme='abyss'] .ar-library-loading::before{mask-image:linear-gradient(#000,#000),url('/embedded/abyss/media/laptop-chassis197.png')!important}
/* R199: normal desktop controls sit in the recessed top strip marked by the owner. */
@media(min-width:1000px) and (min-height:601px){html body .ar-library-player[data-player-app="abyss"]:not(.abyss-screen-only194) #ar-player-controls.ar-library-player-top{right:clamp(100px,8.3vw,170px)!important;top:clamp(20px,2.2vh,26px)!important}}
@media(min-width:1000px) and (min-height:601px){html body .ar-library-player[data-player-app="abyss"]:not(.abyss-screen-only194) #ar-player-controls.ar-library-player-top{--control-unit199:max(calc(108vw / 1672),calc(108vh / 941));right:max(12px,calc(50vw - var(--control-unit199)*554 - 22px))!important;top:max(12px,calc(50vh - var(--control-unit199)*400.5 - 16px))!important}}

/* R204: physical controls join the live screen header. */
@media(min-width:1000px) and (min-height:601px){html body .ar-library-player[data-player-app="abyss"]:not(.abyss-screen-only194) #ar-player-controls.ar-library-player-top{--control-unit204:max(calc(108vw / 1672),calc(108vh / 941));top:calc(max(18px,calc(50vh - var(--control-unit204)*312)) + 8px)!important;right:calc(max(18px,calc(50vw - var(--control-unit204)*658)) + 12px)!important}}

/* R206: match the adjacent console buttons rather than pink floating chrome. */
html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button[data-abyss-fullscreen194],html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button[data-player-close]{display:grid!important;place-items:center!important;width:36px!important;height:34px!important;min-height:34px!important;padding:0!important;border-radius:0!important;color:#ffadad!important;border:1px solid #a91515!important;background:linear-gradient(118deg,#3b0909,#130303 39%,#200505)!important;box-shadow:inset 0 1px #9c1313a1,inset 0 -1px #0a0209,0 0 9px #8e15152a!important;clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px)!important}
html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button svg{stroke:#ffadad!important;width:18px!important;height:18px!important;stroke-width:1.8!important}
html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button[data-player-close]{font-size:23px!important;line-height:1!important;font-weight:normal!important}
html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button:hover{filter:brightness(1.25)}
@media(min-width:1000px) and (min-height:601px){html body .ar-library-player[data-player-app="abyss"]:not(.abyss-screen-only194) #ar-player-controls.ar-library-player-top{top:calc(max(18px,calc(50vh - var(--control-unit204)*312)) + 8px)!important}}
html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button[data-player-close],html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button[data-abyss-fullscreen194]{position:relative!important;overflow:hidden!important;font-size:0!important;background-image:linear-gradient(118deg,#3b0909,#130303 39%,#200505)!important}
html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button[data-player-close]>*{display:none!important}
html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button::before{content:none!important;display:none!important}
html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button::after{content:none!important;display:none!important}
html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button[data-player-close]::after{content:'×'!important;display:grid!important;place-items:center;position:absolute!important;inset:0!important;font:25px/1 Arial,sans-serif!important;color:#ffadad!important;background:none!important;transform:none!important;z-index:1!important}
html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button[data-abyss-fullscreen194] svg{position:static!important;inset:auto!important;transform:none!important;margin:0!important;padding:0!important;display:block!important}

/* Responsive control surfaces share the console's restrained red motion. */
html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button{transition:transform .18s ease,filter .18s ease,box-shadow .18s ease!important;transform-origin:center}
html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button:hover,html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button:focus-visible{transform:translateY(-2px)!important;filter:brightness(1.2)!important;box-shadow:inset 0 1px #bd2948,0 3px 12px #a3002d55!important}
html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button:active{transform:translateY(1px)!important}
@media(prefers-reduced-motion:reduce){html body .ar-library-player[data-player-app="abyss"] #ar-player-controls button{transition:none!important;transform:none!important}}

/* Dark loading chassis is ready before the actual frame replaces it. */
html body .ar-library-player[data-player-app=abyss]{background:#000!important}html body .ar-library-player[data-player-app=abyss] .ar-library-frame-slot,html body .ar-library-player[data-player-app=abyss] iframe{background:#000!important}html body .ar-library-player[data-loading-theme=abyss] .ar-library-loading{background:#000!important}html body .ar-library-player[data-loading-theme=abyss] .ar-library-loading::after{filter:brightness(.7) saturate(.8) hue-rotate(-10deg)!important}html body .ar-library-player[data-loading-theme=abyss] .ar-launch-art{filter:brightness(.5)!important}
