.avst-fab {
position: fixed;
right: max(16px, env(safe-area-inset-right));
bottom: max(18px, env(safe-area-inset-bottom));
z-index: 2147483000;
display: grid;
width: 150px;
justify-items: center;
color: #fff;
font-family: Arial, "Noto Sans Thai", sans-serif;
text-decoration: none !important;
isolation: isolate;
visibility: visible;
opacity: 1;
transform: none;
transition: opacity .35s ease, transform .35s cubic-bezier(.2,.85,.25,1.25), filter .2s ease;
filter: drop-shadow(0 10px 15px rgba(0,0,0,.58));
-webkit-tap-highlight-color: transparent;
}
.avst-fab.is-ready {
opacity: 1;
transform: translate3d(0, 0, 0) scale(1);
animation: avst-fab-float 3.2s ease-in-out 1s infinite;
}
.avst-fab:hover,
.avst-fab:focus-visible {
color: #fff;
transform: translate3d(0, -5px, 0) scale(1.06);
filter: drop-shadow(0 14px 22px rgba(221,0,38,.48));
outline: none;
}
.avst-fab:focus-visible .avst-fab__portrait {
outline: 3px solid #fff;
outline-offset: 3px;
}
.avst-fab__halo {
position: absolute;
top: 2px;
left: 50%;
z-index: -1;
width: 136px;
height: 136px;
border-radius: 50%;
background: conic-gradient(from 30deg, #6c0013, #ff2b51, #ffcc72, #810018, #ff2b51, #6c0013);
transform: translateX(-50%);
box-shadow: 0 0 0 5px rgba(255,255,255,.09), 0 0 26px rgba(255,0,54,.58);
animation: avst-fab-spin 7s linear infinite, avst-fab-halo-blink 2.2s ease-in-out infinite;
will-change: filter, box-shadow, opacity;
}
.avst-fab__portrait {
position: relative;
display: block;
width: 126px;
height: 126px;
margin-top: 7px;
overflow: hidden;
border: 2px solid rgba(255,228,185,.9);
border-radius: 50%;
background: radial-gradient(circle at 50% 35%, #4b0815 0, #120006 72%);
box-shadow: inset 0 0 16px rgba(255,255,255,.12);
animation: avst-fab-frame-blink 2.2s ease-in-out infinite;
will-change: border-color, box-shadow;
}
.avst-fab__portrait img {
display: block;
width: 100%;
height: 100%;
margin: 0;
object-fit: cover;
border: 0;
}
.avst-fab__image-copy {
position: absolute;
right: 1px;
bottom: 4px;
left: 1px;
z-index: 2;
display: block;
padding: 6px 4px 5px;
border: 3px solid #ffd36f;
border-radius: 11px;
background: linear-gradient(180deg, rgba(214,0,42,.97), rgba(72,0,12,.98));
box-shadow: 0 3px 9px rgba(0,0,0,.86), 0 0 11px rgba(255,45,77,.65), inset 0 1px 0 rgba(255,255,255,.35);
color: #fff;
font-family: Tahoma, "Noto Sans Thai", Arial, sans-serif;
font-style: normal;
font-weight: 900;
line-height: .9;
text-align: center;
text-shadow: 0 2px 2px rgba(0,0,0,.95), 0 0 4px rgba(0,0,0,.9);
animation: avst-fab-copy-pulse 2.2s ease-in-out infinite;
will-change: filter, box-shadow;
}
.avst-fab__image-copy strong,
.avst-fab__image-copy span {
display: block;
}
.avst-fab__image-copy strong {
color: #fffdf4;
font-size: 20px;
letter-spacing: -.35px;
-webkit-text-stroke: .35px #5d0011;
}
.avst-fab__image-copy span {
margin-top: 3px;
color: #ffe066;
font-size: 15px;
letter-spacing: .15px;
text-shadow: 0 2px 2px rgba(0,0,0,.95), 0 0 6px rgba(255,216,82,.72);
-webkit-text-stroke: .3px #5d0011;
}
.avst-fab__age {
position: absolute;
top: 2px;
right: 1px;
min-width: 38px;
padding: 5px 6px 4px;
border: 2px solid #fff;
border-radius: 999px;
background: linear-gradient(180deg, #fa123f, #9f001d);
box-shadow: 0 3px 9px rgba(0,0,0,.5);
color: #fff;
font-size: 14px;
font-weight: 900;
line-height: 1;
text-align: center;
}
.avst-fab__label {
position: relative;
min-width: 108px;
margin-top: -8px;
padding: 9px 13px 8px;
border: 1px solid rgba(255,211,138,.9);
border-radius: 999px;
background: linear-gradient(180deg, #ef123c 0%, #a00020 55%, #650012 100%);
box-shadow: 0 5px 13px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.35);
color: #fff;
font-size: 15px;
font-weight: 800;
line-height: 1;
text-align: center;
text-shadow: 0 1px 2px rgba(0,0,0,.55);
white-space: nowrap;
}
.avst-fab__label span {
color: #ffd676;
} @media (min-width: 641px) {
html body .avst-fab {
display: grid !important;
visibility: visible !important;
opacity: 1 !important;
pointer-events: auto;
}
}
@keyframes avst-fab-float {
0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
50% { transform: translate3d(0, -7px, 0) scale(1); }
}
@keyframes avst-fab-spin {
to { transform: translateX(-50%) rotate(360deg); }
}
@keyframes avst-fab-halo-blink {
0%, 20%, 40%, 100% {
opacity: .82;
filter: brightness(1) saturate(1);
box-shadow: 0 0 0 5px rgba(255,255,255,.09), 0 0 24px rgba(255,0,54,.54);
}
10%, 30% {
opacity: 1;
filter: brightness(1.55) saturate(1.3);
box-shadow: 0 0 0 7px rgba(255,226,151,.7), 0 0 42px 14px rgba(255,0,54,.86);
}
}
@keyframes avst-fab-frame-blink {
0%, 20%, 40%, 100% {
border-color: rgba(255,228,185,.9);
box-shadow: inset 0 0 16px rgba(255,255,255,.12), 0 0 0 rgba(255,0,54,0);
}
10%, 30% {
border-color: #fff8d9;
box-shadow: inset 0 0 18px rgba(255,255,255,.24), 0 0 0 3px rgba(255,215,122,.88), 0 0 22px 8px rgba(255,0,54,.72);
}
}
@keyframes avst-fab-copy-pulse {
0%, 20%, 40%, 100% {
filter: brightness(1);
box-shadow: 0 3px 9px rgba(0,0,0,.86), 0 0 10px rgba(255,45,77,.55), inset 0 1px 0 rgba(255,255,255,.35);
}
10%, 30% {
filter: brightness(1.32) saturate(1.15);
box-shadow: 0 3px 9px rgba(0,0,0,.86), 0 0 16px 3px rgba(255,212,94,.82), inset 0 1px 0 rgba(255,255,255,.48);
}
}
@media (max-width: 640px) {
.avst-fab {
right: max(8px, env(safe-area-inset-right));
bottom: max(10px, env(safe-area-inset-bottom));
width: 104px;
}
.avst-fab__halo {
width: 94px;
height: 94px;
}
.avst-fab__portrait {
width: 86px;
height: 86px;
}
.avst-fab__age {
right: -1px;
min-width: 34px;
font-size: 11px;
}
.avst-fab__label {
min-width: 84px;
padding: 7px 10px 6px;
font-size: 12px;
}
.avst-fab__image-copy {
right: 1px;
bottom: 2px;
left: 1px;
padding: 4px 2px 3px;
border-width: 2px;
border-radius: 7px;
}
.avst-fab__image-copy strong {
font-size: 14px;
}
.avst-fab__image-copy span {
margin-top: 2px;
font-size: 11px;
}
}
@media (prefers-reduced-motion: reduce) {
.avst-fab,
.avst-fab.is-ready,
.avst-fab__halo,
.avst-fab__portrait,
.avst-fab__image-copy {
animation: none;
transition: none;
}
.avst-fab {
opacity: 1;
transform: none;
}
}