New overlay modules (taped-paper look, shared with the polaroid alerts): - cassette.js: redeems as a cassette tape; rarity = shell colour (Ultra Rare gold with glow, foil and sparkles), reels spin for the sound's length, sticker corner. - fx.js: Gigantify (viewer's emote grows giant), On-Screen Celebration (emote copies bounce around the screen), highlight / Message Effect (tall taped note). - poll.js: live poll card with bars, countdown and a WINNER stamp. - hypebar.js: persistent Hype Train strip (level, progress, time left). - raidcard.js: silent raid send-off card that stays during the raid countdown. - nowplaying.js: Feishin now-playing slip (not loaded yet, see overlay). polaroid.js: shared queue now also drives cassettes/effects; test alerts replace only other tests and never cut off real alerts; alerts stay up for the animation + 3 s or the sound's length; sound lengths measured in the browser for UI-picked sounds; tip and Hype Train alerts; optional ALERTS_BASE for offline test pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
2.9 KiB
CSS
41 lines
2.9 KiB
CSS
/* Polaroid alerts (see polaroid.js). Fonts: Caveat (loaded by overlay.ejs). */
|
|
#polaroid-alert { --red:#b74347; --ink:#3a2a20;
|
|
position:fixed; left:85px; top:90px; width:340px; visibility:hidden; z-index:50; }
|
|
|
|
#polaroid-alert .photo { position:absolute; left:0; top:0; width:340px; padding:18px 18px 0; background:#fffdf7;
|
|
box-shadow:0 14px 30px rgba(0,0,0,.45); transform-origin:50% 40%; box-sizing:content-box; }
|
|
#polaroid-alert .photo.main { position:relative; }
|
|
#polaroid-alert .ph { height:290px; background:var(--phbg, linear-gradient(#ffd9e0,#f8c3cf)); position:relative; overflow:hidden; }
|
|
#polaroid-alert .ph img { position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:300px; display:block; }
|
|
#polaroid-alert .back .blank { height:70px; }
|
|
|
|
#polaroid-alert .cap { font:700 34px/1.05 'Caveat', cursive; color:var(--ink); text-align:center; padding:14px 34px 20px; }
|
|
#polaroid-alert .cap .u { color:var(--red); display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
|
#polaroid-alert .cap .msg { font-size:24px; line-height:1.1; color:#7a6656; margin-top:6px;
|
|
overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
|
|
|
|
#polaroid-alert .tape { position:absolute; z-index:3; width:130px; height:36px; top:-16px; opacity:0;
|
|
background-color:var(--tape, rgba(201,182,228,.85));
|
|
background-image:repeating-linear-gradient(45deg,#fff6 0 8px,#0000 8px 16px);
|
|
box-shadow:0 1px 2px rgba(0,0,0,.15); }
|
|
#polaroid-alert .t1 { left:-30px; }
|
|
#polaroid-alert .t2 { right:-30px; }
|
|
|
|
#polaroid-alert .sticker { filter:drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff)
|
|
drop-shadow(0 -4px 0 #fff) drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
|
|
#polaroid-alert .heart { position:absolute; z-index:4; right:-66px; bottom:-34px; width:104px; opacity:0; }
|
|
#polaroid-alert .heart.extra { width:70px; bottom:30px; }
|
|
|
|
#polaroid-alert .badge { position:absolute; z-index:5; right:-34px; top:40px; width:96px; height:96px; border-radius:50%;
|
|
background:var(--badge, #f6c75b); border:5px solid #fff; box-shadow:0 6px 10px rgba(0,0,0,.35); box-sizing:content-box;
|
|
display:flex; flex-direction:column; align-items:center; justify-content:center; opacity:0;
|
|
font:700 40px/0.9 'Caveat', cursive; color:#fff; text-shadow:0 2px 0 rgba(0,0,0,.25); }
|
|
#polaroid-alert .badge small { font-size:19px; line-height:1; }
|
|
|
|
/* variation name on a paper label (redeems) */
|
|
#polaroid-alert .tag { position:absolute; left:10px; bottom:10px; max-width:85%; padding:2px 12px; background:#fffdf7;
|
|
font:700 26px/1.2 'Caveat', cursive; color:var(--ink); transform:rotate(-3deg); box-shadow:0 2px 4px rgba(0,0,0,.25);
|
|
white-space:nowrap; overflow:hidden; text-overflow:ellipsis; box-sizing:border-box; }
|
|
|
|
/* raid send-off: square Twitch avatar fills the photo instead of standing on the bottom edge */
|
|
#polaroid-alert .ph.avatar img { width:100%; height:100%; bottom:0; object-fit:cover; }
|