Open History to see the last commit
1.bonus-toast {
2 position: fixed;
3 transform: translate(-50%, -100%);
4 padding: 6px 12px;
5 border-radius: 16px;
6 font-size: 0.875rem;
7 font-weight: 600;
8 color: white;
9 z-index: 1000;
10 pointer-events: none;
11 animation: bonus-float 1.5s ease-out forwards;
12 white-space: nowrap;
13}
14
15/* Team-colored bonus toasts */
16.bonus-toast-red {
17 background: var(--color-red);
18}
19
20.bonus-toast-blue {
21 background: var(--color-blue);
22}
23
24.bonus-toast-green {
25 background: var(--color-green);
26}
27
28.bonus-toast-yellow {
29 background: var(--color-yellow);
30 color: #333;
31}
32
33@keyframes bonus-float {
34 0% {
35 opacity: 1;
36 transform: translate(-50%, -100%) scale(0.8);
37 }
38 20% {
39 opacity: 1;
40 transform: translate(-50%, -100%) scale(1.1);
41 }
42 40% {
43 transform: translate(-50%, -100%) scale(1);
44 }
45 100% {
46 opacity: 0;
47 transform: translate(-50%, -150%) scale(1);
48 }
49}