Reward / Power-up icon as a top-left sticker on the cassette and the video box

Twitch icons of channel point rewards (custom images) and Custom Power-ups are cached
(10 min, refreshed on unknown triggers, never holding an alert more than 2 s) and
attached as alert.icon; cassette.js and video.js show it as a white-outlined sticker
on the top-left corner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Bashy 2026-11-22 16:14:39 +02:00
parent b3caac7a31
commit 8ac8fe024c
6 changed files with 63 additions and 7 deletions

View file

@ -20,7 +20,7 @@
radial-gradient(ellipse at 50% 45%, #43361a 0%, var(--screen) 70%) #241e12;
font-family:'VT323', monospace; color:#fff; text-align:center;
}
#vfx-box .rec { position:absolute; left:24px; top:16px; font-size:26px; color:#ff3b4e; text-shadow:0 0 6px rgba(255,59,78,.7);
#vfx-box .rec { position:absolute; left:58px; top:16px; font-size:26px; color:#ff3b4e; text-shadow:0 0 6px rgba(255,59,78,.7);
animation:vfx-blink 1s steps(1) infinite; }
#vfx-box .tc { position:absolute; right:24px; top:16px; font-size:24px; opacity:.85; }
#vfx-box .title { font-size:36px; line-height:1; text-transform:uppercase; overflow-wrap:anywhere;
@ -33,3 +33,8 @@
#vfx-box .brand { position:absolute; right:46px; bottom:14px; font:900 13px/1 'Nunito', sans-serif; letter-spacing:1.5px;
color:var(--yellow); opacity:.8; }
@keyframes vfx-blink { 0% { opacity:1; } 50% { opacity:0; } }
/* the Power-up's / reward's Twitch icon as a sticker on the box's top-left corner */
#vfx-box .ico { position:absolute; left:-30px; top:-30px; width:72px; height:72px; object-fit:contain; transform:rotate(-10deg); z-index:2;
filter:drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 5px 8px rgba(0,0,0,.35)); }
#vfx-box .ico[hidden] { display:none; }