@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 {
    color: white;
    margin-top: 70px;
    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;
    opacity: .7;
    border-radius: inherit;
	background: #D4A8B9;
    z-index: -1;
}

#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: #D9D9D9;
    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: #E18E85;
}

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