/* Copyright (c) 2026 Donnie Chamberlin. All rights reserved. Proprietary and confidential. Unauthorized copying, modification or distribution is prohibited. */
#host-reactions-panel { position:fixed; right:16px; bottom:var(--player-controls-clearance,110px); z-index:80; width:min(340px,calc(100vw - 24px)); max-height:calc(100dvh - var(--player-controls-clearance,110px) - 24px); overflow:auto; padding:16px; background:var(--panel); border:1px solid var(--line); border-radius:16px; box-shadow:0 8px 30px #0009; }
#host-reactions-panel h2 { margin:0; font-family:Bungee,sans-serif; font-size:20px; color:var(--neon); }
#host-reactions-panel .modal-h { position:sticky; top:0; z-index:1; background:var(--panel); }
#host-reactions-panel .x { width:44px; min-height:44px; }
#host-reactions-panel .reaction-buttons { gap:6px; margin-bottom:12px; }
#host-reactions-panel .reaction-buttons button { min-height:54px; padding:6px; font-size:28px; }
#host-reactions-panel .reaction-buttons img { width:42px; height:42px; object-fit:contain; }
#host-reactions-panel .lbl { margin-top:12px; }
#host-reactions-panel :focus-visible { outline:2px solid var(--neon); outline-offset:2px; }
#host-reactions-panel .reaction-position-reset { min-height:44px; padding:6px 10px; margin:4px 0 10px; font-size:12px; }
@media(min-width:761px){#host-reactions-title{cursor:grab;touch-action:none;user-select:none;min-height:44px;display:flex;align-items:center;}#host-reactions-panel.dragging #host-reactions-title{cursor:grabbing;}#host-reactions-panel.dragging{user-select:none;}}
body.bigscreen #host-reactions-panel,body.preview-display #host-reactions-panel { display:none!important; }
#reaction-promotion-qr { position:absolute; top:14px; right:14px; z-index:4; width:144px; max-width:38%; padding:10px; border:1px solid var(--line); background:#000c; border-radius:12px; text-align:center; color:var(--text); }
#reaction-promotion-image { background:white; border-radius:6px; padding:6px; width:fit-content; margin:0 auto 7px; }
#reaction-promotion-image img,#reaction-promotion-image canvas { width:clamp(64px,7vw,104px); height:clamp(64px,7vw,104px); display:block; }
#reaction-promotion-qr strong { display:block; font-size:13px; line-height:1.3; overflow-wrap:anywhere; }
#reaction-promotion-qr > span { display:block; font-size:11px; color:var(--muted); margin-top:4px; }
@media(max-width:760px){#host-reactions-panel{bottom:180px;max-height:calc(100dvh - 290px);right:12px;}#reaction-promotion-qr{padding:7px;top:10px;right:10px;}}
@media(min-width:761px){body:has(#host-reactions-panel:not([hidden])) #toasts{right:var(--reaction-toast-right,368px);max-width:var(--reaction-toast-width,min(340px,calc(100vw - 400px)));}}
@media(max-width:760px){body:has(#host-reactions-panel:not([hidden])) #toasts{top:12px;bottom:auto!important;}}

.reaction-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.reaction-search label{grid-column:1/-1}.reaction-search .input{min-width:0;width:100%}

#soundboard-reset { min-height:44px; padding:6px 10px; margin:4px 0 6px; font-size:12px; align-self:flex-start; }
@media(min-width:761px){#soundboard-title{cursor:grab;touch-action:none;user-select:none;min-height:44px;display:flex;align-items:center}#soundboard-panel.dragging #soundboard-title{cursor:grabbing}#soundboard-panel.dragging{user-select:none}}
/* Match the soundboard shell without trapping focus away from the live show. */
#host-reactions-panel.performance-panel{display:flex;flex-direction:column;overflow:hidden;width:min(400px,calc(100vw - 24px))}
#host-reactions-panel[hidden]{display:none}
#host-reactions-panel .modal-h{flex:none;position:static;min-width:0;gap:12px;margin:0;padding-bottom:10px;border-bottom:1px solid var(--line)}
#host-reactions-panel h2{font-size:18px;min-width:0}
#host-reactions-panel .performance-body{flex:1 1 auto;min-height:0;min-width:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:12px 4px 4px 0}
#host-reactions-panel .performance-footer{flex:none;border-top:1px solid var(--line);padding-top:10px;margin-top:8px}
#host-reactions-panel #host-reactions-status{margin:0;line-height:1.5;overflow-wrap:anywhere}
#host-reactions-panel .input{width:100%;min-width:0;min-height:44px}
#host-reactions-panel .btn,#host-reactions-panel a{min-height:44px}
#host-reactions-panel a{display:flex;align-items:center;line-height:1.5;overflow-wrap:anywhere}
#host-reactions-panel .row{display:flex;gap:8px;flex-wrap:wrap}
#host-reactions-panel .reaction-search{margin:12px 0 16px}
#host-reactions-panel .reaction-search label{font-weight:700;line-height:1.5}
#host-reactions-panel p{line-height:1.6;overflow-wrap:anywhere}
#host-reactions-panel .reaction-buttons{display:grid;grid-template-columns:repeat(auto-fill,minmax(54px,1fr));gap:8px}
#host-reactions-panel .reaction-buttons button{width:100%;min-width:0;min-height:54px}
@media(max-width:760px){#host-reactions-panel.performance-panel{bottom:calc(82px + env(safe-area-inset-bottom));right:10px;width:calc(100vw - 20px);max-height:calc(100dvh - 102px - env(safe-area-inset-bottom));padding:14px}}
@media(max-height:480px){#host-reactions-panel.performance-panel{padding:10px}#host-reactions-panel .modal-h{padding-bottom:6px}#host-reactions-panel .performance-footer{padding-top:6px;margin-top:4px}}
@media(max-height:480px){#host-reactions-panel.performance-panel{bottom:10px;max-height:calc(100dvh - 20px)}}
