@font-face {
    font-family: 'SF Pro Rounded';
    src: url('https://raw.githubusercontent.com/chris-short/apple-san-francisco-pro-fonts/refs/heads/main/SF-Pro-Rounded-Black.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    display: swap;
}

#widget {
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

#widget.active {
    visibility: visible;
}

#prediction {
    position: relative;
    color: #513E80;
    margin-top: 70px;
    margin-left: 50px;
    padding: 20px 30px;
    width: 900px;
    border-radius: 50px;
    font-family: 'SF Pro Rounded';
    font-weight: bolder;
    letter-spacing: .1rem;
    background-color: transparent;
    transition: opacity 500ms ease-out;
    font-size: 40px;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, .55)) drop-shadow(0 0 8px rgba(0, 0, 0, .3));
}

#prediction::before {
    position: absolute;
    content: '';
    inset: 0;
    border-radius: inherit;
	background: linear-gradient(to right, #FEEDFE, #D3CBFE);
    z-index: -1;
}

#prediction::after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 75px;
    transform: translate(-50%, -50%);
    z-index: -3;
    aspect-ratio: 89 / 92;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='89' height='92' fill='none'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-width='4' d='M86.145 56.418S70.838 70.01 57.692 75.508c-11.473 4.8-28.311 11.993-28.311 11.993'/%3E%3Cpath fill='%23fff' d='M77.68 4.918s4.478 26.592 1.276 43.935c-3.202 17.344-15.394 21.552-25.381 35.393 0 0-6.983-7.52-9.358-13.515-3.254-8.214-4.643-11.614-2.382-20.143 4.98-18.783 35.845-45.67 35.845-45.67Z'/%3E%3Cpath fill='%23fff' d='M.58 68.138s17.822-4.301 32.316-4.866c5.471-.213 9.071 2.652 13.662 6.374 3.901 3.163 8.494 8.678 8.494 8.678s-9.933 8.055-16.627 8.617c-5.5.461-8.797-.924-13.766-3.202C14.48 79.073.58 68.139.58 68.139Z'/%3E%3C/svg%3E");
}

#prediction.active,
#prediction.ended
{
    opacity: 1;
}

#prediction.locked {
    opacity: 0!important;
}

#prediction .info {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-size: 25px;
    padding-block: 15px;
}

#prediction #title {
    word-wrap: break-word;
    word-break: break-all;
    text-align: center;
    padding-inline: 50px;
}

#prediction .info #points, #prediction .info #time {
    text-align: center;
    max-width: fit-content;
}

#prediction #outcomes {
    display: flex;
    flex-direction: column;
    padding-block: 15px;
    padding-bottom: 25px;
    font-size: 24px;
    gap: 25px;
}

#prediction #outcomes .outcome {
    transition: filter 300ms ease-out;
}

#prediction.ended #outcomes .outcome {
    filter: brightness(50%);
}

#prediction.ended #outcomes .outcome.winner {
    filter: brightness(125%);
}

#prediction #outcomes .outcome .title {
    font-size: 25px;
}

#prediction #outcomes .outcome .progressbar {
    position: relative;
    width: calc(100% - 130px);
    height: 18px;
    border-radius: 25px;
}

#prediction #outcomes .outcome .progressbar::before {
    position: absolute;
    content: '';
    inset: 0;
    border-radius: inherit;
    background-color: #513E80;
    opacity: 0.3;
}

#prediction #outcomes .outcome .progressbar::after {
    position: absolute;
    content: '';
    inset: 0;
    width: 100%;
    max-width: var(--progress);
    transition: max-width 1.5s ease-in-out;
    border-radius: inherit;
    background-color: #513E80;
}

#prediction #outcomes .outcome .progressbar .points {
    position: absolute;
    top: 0;
    right: -130px;
    transform: translateY(-20%);
}
