@import url('/assets/css/filyx-overlay-theme.css?v=20260801');
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: transparent; }
body { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #fff; }
.overlay-root { width: 100%; height: 100%; padding: 3vh 3vw; box-sizing: border-box; display: grid; place-items: center; }
.alert-custom-frame { position:absolute; inset:0; display:block; width:100%; height:100%; border:0; background:transparent; pointer-events:none; }
.alert-custom-frame[hidden] { display:none; }
.overlay-card { --alert-primary:#f27622; --alert-secondary:#ffad55; --alert-text:#fff; --alert-font-size:36px; --alert-image-size:34vw; --alert-container:transparent; --alert-text-delay:0ms; width:min(92vw,1500px); min-height:240px; padding:28px 34px; display:grid; grid-template-columns:minmax(220px,min(var(--alert-image-size),720px)) minmax(0,1fr); align-items:center; gap:clamp(25px,3vw,54px); border:0; border-radius:24px; background:var(--alert-container); box-shadow:none; transform:translateY(30px) scale(.96); opacity:0; font-family:inherit; }
.overlay-card.is-alert-text-only { width:min(78vw,760px); min-height:0; grid-template-columns:1fr; text-align:center; }.overlay-card.is-alert-image-only { width:min(96vw,1600px); min-height:0; grid-template-columns:1fr; justify-items:center; padding:22px; }.overlay-card.is-alert-image-only img,.overlay-card.is-alert-image-only video { width:min(var(--alert-image-size),92vw,1500px); max-width:none; max-height:90vh; }
.overlay-card.is-points-shop-alert { width:min(86vw,780px); min-height:0; grid-template-columns:1fr; gap:0; padding:20px 26px; border:1px solid color-mix(in srgb,var(--alert-primary),transparent 35%); border-radius:18px; background:linear-gradient(145deg,rgba(18,18,21,.96),rgba(8,8,10,.91)); box-shadow:0 22px 60px rgba(0,0,0,.45),0 0 38px color-mix(in srgb,var(--alert-primary),transparent 78%); }
.overlay-card.is-points-shop-alert:not(.has-points-shop-image) img { display:none; }
.overlay-card.is-points-shop-alert [data-overlay-kicker] { color:var(--alert-primary); font-size:.74rem; }
.overlay-card.is-points-shop-alert h1 { font-size:clamp(1.5rem,3vw,2.1rem); text-transform:none; }
.overlay-card.is-points-shop-alert p { color:#bbb; font-size:clamp(1rem,1.8vw,1.35rem); }
.overlay-card.show { animation: overlay-in 5s cubic-bezier(.2,.8,.2,1) both; }
.overlay-card img,.overlay-card video { display:block; width:min(100%,var(--alert-image-size),720px); height:auto; max-height:78vh; object-fit:contain; image-rendering:auto; filter:drop-shadow(0 16px 24px rgba(0,0,0,.45)); }
.overlay-card span { color: var(--alert-primary); font-size: .82rem; letter-spacing: .2em; font-weight: 900; }
.overlay-card h1 { margin: 8px 0 4px; color:var(--alert-text); font-size:clamp(1.5rem,var(--alert-font-size),4.5rem); line-height: 1; text-transform: uppercase; }
.overlay-card p { margin: 0; color: #c6c5c9; font-size: clamp(1rem,2vw,1.4rem); }
.overlay-card .overlay-secondary { margin-top:9px; color:var(--alert-secondary); font-size:clamp(.85rem,1.5vw,1.15rem); font-weight:750; }
.overlay-card.has-alert-text-shadow [data-overlay-kicker],.overlay-card.has-alert-text-shadow h1,.overlay-card.has-alert-text-shadow p { text-shadow:0 3px 12px #000d; }
.overlay-card.is-alert-text-effect [data-overlay-kicker],.overlay-card.is-alert-text-effect h1,.overlay-card.is-alert-text-effect p { animation:alert-text-reveal .52s cubic-bezier(.16,.82,.28,1) both; animation-delay:var(--alert-text-delay); }
@keyframes alert-text-reveal { from { opacity:0; transform:translateY(18px); letter-spacing:.15em; filter:blur(5px); } to { opacity:1; transform:none; letter-spacing:normal; filter:none; } }
.overlay-debug { position: fixed; left: 10px; bottom: 10px; padding: 8px; background: rgba(0,0,0,.8); color: #f27622; font: 12px monospace; }
.chat-widget,.leaderboard-widget { width:min(92vw,560px); max-height:88vh; align-self:center; justify-self:center; overflow:hidden; border:1px solid rgba(242,118,34,.65); border-radius:26px; background:linear-gradient(150deg,rgba(10,10,12,.96),rgba(28,18,12,.93)); box-shadow:0 28px 90px rgba(0,0,0,.48),0 0 45px rgba(242,118,34,.18); }
/* The chat source is designed on the actual 16:9 OBS canvas: a stable
   bottom-left panel, never a narrow page centred inside 1920×1080. */
body[data-widget="chat"] { --chat-edge-y:clamp(6px,4vh,54px); --chat-edge-x:clamp(8px,4vw,78px); --chat-feed-pad:clamp(4px,3vh,16px); }
body[data-widget="chat"] .overlay-root { display:grid; grid-template-columns:minmax(0,1fr); align-items:end; justify-items:start; padding:var(--chat-edge-y) var(--chat-edge-x); }
body[data-widget="chat"] .chat-widget { width:clamp(360px,32vw,660px); max-width:calc(100vw - 2 * var(--chat-edge-x)); max-height:calc(100vh - 2 * var(--chat-edge-y)); min-height:0; height:auto; margin:0; }
body[data-widget="chat"] .chat-widget:not([hidden]) { display:flex; flex-direction:column; }
.chat-widget { --chat-accent:#f27622; --chat-background:rgba(17,17,20,.92); --chat-text:#fff; --chat-username:#ffad55; --chat-font:Inter; --chat-font-size:18px; --chat-radius:18px; border:0; border-radius:var(--chat-radius); background:var(--chat-background); font-family:var(--chat-font),Inter,ui-sans-serif,system-ui,sans-serif; box-shadow:0 28px 90px rgba(0,0,0,.48); }
.chat-widget header,.leaderboard-widget header { display:flex; align-items:center; gap:13px; padding:18px 22px; border-bottom:1px solid rgba(255,255,255,.09); }
.chat-widget header img { filter:drop-shadow(0 8px 12px rgba(0,0,0,.4)); }
.chat-widget small,.leaderboard-widget small,.goal-widget small { display:block; color:#f27622; font-size:.7rem; letter-spacing:.18em; font-weight:900; }
.chat-widget small { color:var(--chat-accent); }
.chat-platform-badge { display:inline-flex; align-items:center; min-height:17px; margin-right:6px; padding:0 5px; border:1px solid currentColor; border-radius:4px; font:900 8px/1 system-ui,sans-serif; letter-spacing:.045em; vertical-align:1px; color:#59e856; }
.chat-platform-badge.is-twitch { color:#c19bff; }.chat-platform-badge.is-youtube { color:#ff7878; }.chat-platform-badge.is-tiktok { color:#78f7f2; }
.chat-widget strong,.leaderboard-widget strong { display:block; margin-top:3px; font-size:1.05rem; }
.chat-feed { display:flex; flex-direction:column-reverse; gap:10px; padding:var(--chat-feed-pad,16px) 16px; min-height:0; overflow:hidden; overflow-anchor:none; }
.chat-message { box-sizing:border-box; flex:0 0 auto; min-width:0; max-height:calc(100vh - 2 * var(--chat-edge-y,6px) - 2 * var(--chat-feed-pad,16px)); overflow:hidden; padding:12px 14px; border-radius:calc(var(--chat-radius) - 3px); background:rgba(255,255,255,.075); animation:message-in .35s ease both; font-size:var(--chat-font-size); line-height:1.4; }
.chat-author { display:inline-flex; align-items:center; gap:5px; margin-right:8px; vertical-align:baseline; }
.chat-message b { margin-right:8px; color:var(--chat-message-username,var(--chat-username)); }
.chat-author b { margin-right:0; }
.chat-message span { color:var(--chat-text); overflow-wrap:anywhere; }
.chat-badges { display:inline-flex; align-items:center; gap:3px; vertical-align:middle; }
.chat-badge { display:inline-grid; width:1.55em; height:1.55em; padding:0; place-items:center; border:1px solid rgba(255,255,255,.22); border-radius:.38em; color:#fff; background:#4b76d5; font-size:.82em; font-style:normal; line-height:1; text-shadow:none; box-shadow:0 2px 7px rgba(0,0,0,.24); }
.chat-badge svg { width:1.12em; height:1.12em; overflow:visible; fill:currentColor; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.chat-badge.is-streamer { border-color:#ffca82; color:#211003; background:linear-gradient(135deg,#ffb14f,#f27622); }
.chat-badge.is-mod { border-color:#b2ffb9; color:#061b0b; background:linear-gradient(135deg,#8de892,#31a965); }
.chat-badge.is-vip { border-color:#ffc1ef; color:#260416; background:linear-gradient(135deg,#ff91d5,#cc438f); }
.chat-badge.is-sub { border-color:#ffe4a2; color:#231804; background:linear-gradient(135deg,#ffd86a,#d49021); }
.chat-badge.is-verified { border-color:#bde6ff; color:#061927; background:linear-gradient(135deg,#65c9ff,#3178c9); }
.chat-badge.is-og { border-color:#ddc5ff; color:#170d2f; background:linear-gradient(135deg,#ba88ff,#7045bd); }
.chat-badge-image { display:inline-block; width:1.55em; height:1.55em; object-fit:contain; vertical-align:-.35em; filter:drop-shadow(0 2px 5px rgba(0,0,0,.28)); }
.chat-emote { display:inline-block; width:auto; height:1.55em; max-width:2.35em; margin:0 .09em; vertical-align:-.34em; object-fit:contain; }
.chat-widget[data-layout="bubbles"] { background:transparent; border:0; box-shadow:none; overflow:visible; }
.chat-widget[data-layout="bubbles"] header { display:none; }
.chat-widget[data-layout="bubbles"] .chat-feed { padding:0; }
.chat-widget[data-layout="bubbles"] .chat-message { border:1px solid color-mix(in srgb,var(--chat-accent) 44%,transparent); border-radius:var(--chat-radius); background:var(--chat-background); box-shadow:0 8px 25px rgba(0,0,0,.25); }
.chat-widget[data-layout="minimal"] { width:min(92vw,720px); border:0; border-radius:0; background:transparent; box-shadow:none; }
.chat-widget[data-layout="minimal"] header { padding:0 0 10px; }
.chat-widget[data-layout="minimal"] .chat-feed { padding:7px 0; gap:5px; }
.chat-widget[data-layout="minimal"] .chat-message { padding:7px 0; border-radius:0; background:transparent; }
.goal-widget { width:min(88vw,1000px); padding:24px 30px 20px; border-radius:24px; border:1px solid rgba(242,118,34,.75); background:linear-gradient(110deg,rgba(9,9,10,.97),rgba(29,18,10,.94)); box-shadow:0 28px 90px rgba(0,0,0,.48),0 0 50px rgba(242,118,34,.2); }
.goal-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; }
.goal-heading strong { display:block; margin-top:5px; font-size:clamp(1.3rem,3vw,2rem); }
.goal-heading b { font-size:clamp(1.3rem,3vw,2.1rem); color:#ff9a4f; }
.goal-track { height:22px; margin-top:18px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.09); box-shadow:inset 0 2px 5px rgba(0,0,0,.45); }
.goal-track i { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#ef5f00,#ffac60); box-shadow:0 0 25px rgba(255,126,40,.65); transition:width .8s cubic-bezier(.2,.8,.2,1); }
.goal-widget p { margin:9px 0 0; text-align:right; color:#c8c5cb; font-weight:800; }
.leaderboard-widget { width:min(90vw,700px); }
.leaderboard-widget header { display:block; }
.leaderboard-widget ol { list-style:none; display:grid; gap:8px; margin:0; padding:16px; counter-reset:rank; }
.leaderboard-widget li { counter-increment:rank; display:grid; grid-template-columns:44px 1fr auto; align-items:center; gap:12px; padding:11px 15px; border-radius:14px; background:rgba(255,255,255,.055); }
.leaderboard-widget li::before { content:counter(rank); display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:#25170f; color:#ff8836; font-weight:1000; }
.leaderboard-widget li:first-child { background:linear-gradient(90deg,rgba(242,118,34,.25),rgba(255,255,255,.055)); }
.leaderboard-widget li b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.leaderboard-widget li span { color:#ff9a50; font-weight:900; }
@keyframes overlay-in { 0% { opacity:0; transform:translateY(30px) scale(.96); } 10%,82% { opacity:1; transform:none; } 100% { opacity:0; transform:translateY(-20px) scale(.98); } }
@keyframes message-in { from { opacity:0; transform:translateX(16px) } to { opacity:1; transform:none } }
@media (prefers-reduced-motion: reduce) { .overlay-card.show { animation: overlay-fade 5s linear both; } @keyframes overlay-fade { 0%,100%{opacity:0} 10%,85%{opacity:1} } }
