.as-roulette-page {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 80px;
    color: #ffffff;
}

.as-roulette-hero {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 0 26px;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/*
.as-roulette-hero::before {
    content: '';
    position: absolute;
    width: 430px;
    height: 430px;
    right: -190px;
    bottom: -260px;
    border-radius: 999px;
    background: rgba(14, 165, 233, .16);
    filter: blur(75px);
    pointer-events: none;
} */

.as-roulette-hero__content {
    width: min(860px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.as-roulette-hero h1 {
    max-width: 780px;
    margin: 0 auto 12px;
    color: #ffffff;
    font-size: clamp(34px, 6vw, 72px);
    line-height: .94;
    font-weight: 1000;
    letter-spacing: -.06em;
}

.as-roulette-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(226, 232, 240, .50);
    font-size: 15px;
    line-height: 1.75;
    font-weight: 650;
}

.as-roulette-shell {
    padding: 28px 0 0;
    display: grid;
    gap: 18px;
}

.as-roulette-options {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

.as-roulette-mode {
    min-width: 210px;
    min-height: 70px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 20px;
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .74);
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.as-roulette-mode:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(14, 165, 233, .34);
    background: rgba(14, 165, 233, .08);
    color: #ffffff;
}

.as-roulette-mode.is-active {
    border-color: rgba(14, 165, 233, .48);
    background: rgba(14, 165, 233, .13);
    color: #ffffff;
}

.as-roulette-mode:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.as-roulette-mode i {
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .065);
    display: grid;
    place-items: center;
    color: #38bdf8;
}

.as-roulette-mode span {
    font-size: 14px;
    font-weight: 1000;
}

.as-roulette-mode small {
    color: rgba(255, 255, 255, .48);
    font-size: 11px;
    font-weight: 800;
}

.as-roulette-taste {
    width: fit-content;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    font-weight: 800;
}

.as-roulette-taste i {
    color: #38bdf8;
}

.as-roulette-taste b {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .065);
    color: rgba(255, 255, 255, .84);
    font-size: 11px;
    font-weight: 900;
}

.as-roulette-machine {
    min-height: 330px;
    border-top: 1px solid rgba(148, 163, 184, .12);
    border-bottom: 1px solid rgba(148, 163, 184, .12);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.as-roulette-orb {
    width: min(300px, 74vw);
    aspect-ratio: 1;
    border-radius: 999px;
    position: relative;
    display: grid;
    place-items: center;
    opacity: .8;
}

.as-roulette-orb::before,
.as-roulette-orb::after,
.as-roulette-orb span {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(14, 165, 233, .22);
}

.as-roulette-orb::before {
    inset: 18px;
    border-top-color: rgba(255, 255, 255, .58);
    animation: asRouletteRotate 10s linear infinite;
}

.as-roulette-orb::after {
    inset: 54px;
    border-right-color: rgba(56, 189, 248, .58);
    animation: asRouletteRotate 7s linear infinite reverse;
}

.as-roulette-orb span:nth-child(1) {
    inset: 88px;
    background: rgba(14, 165, 233, .12);
    filter: blur(2px);
}

.as-roulette-orb span:nth-child(2) {
    inset: 132px;
    background: #38bdf8;
    box-shadow: 0 0 70px rgba(56, 189, 248, .42);
}

.as-roulette-orb span:nth-child(3) {
    inset: -30px;
    border-color: rgba(255, 255, 255, .05);
}

.as-roulette-machine.is-loading .as-roulette-orb::before {
    animation-duration: 1.2s;
}

.as-roulette-machine.is-loading .as-roulette-orb::after {
    animation-duration: 1.8s;
}

.as-roulette-loader {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
    pointer-events: none;
}

.as-roulette-loader strong {
    color: #ffffff;
    font-size: clamp(38px, 8vw, 76px);
    line-height: 1;
    font-weight: 1000;
    letter-spacing: -.06em;
    text-shadow: 0 18px 60px rgba(0, 0, 0, .55);
}

.as-roulette-loader span {
    color: rgba(255, 255, 255, .64);
    min-height: 22px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.as-roulette-progress {
    width: min(420px, 86vw);
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}

.as-roulette-progress i {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, .48);
    transition: width .14s linear;
}

.as-roulette-actions {
    display: flex;
    justify-content: center;
}

.as-roulette-spin,
.as-roulette-result__actions a,
.as-roulette-result__actions button {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 1000;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
}

.as-roulette-spin {
    min-width: 210px;
    background: #ffffff;
    color: #020617;
}

.as-roulette-spin:hover:not(:disabled),
.as-roulette-result__actions a:hover,
.as-roulette-result__actions button:hover {
    transform: translateY(-1px);
}

.as-roulette-spin:disabled {
    opacity: .55;
    cursor: wait;
}

.as-roulette-error {
    margin: 0;
    padding: 11px 13px;
    border-radius: 14px;
    background: rgba(127, 29, 29, .26);
    border: 1px solid rgba(248, 113, 113, .28);
    color: #fecaca;
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

.as-roulette-result {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    border-top: 1px solid rgba(148, 163, 184, .14);
    padding-top: 24px;
}

.as-roulette-result[hidden] {
    display: none !important;
}

.as-roulette-result__image {
    min-height: 220px;
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255, 255, 255, .05);
}

.as-roulette-result__image img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

.as-roulette-result__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.as-roulette-result__top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.as-roulette-result__top span,
.as-roulette-result__top small {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, .74);
    background: rgba(255, 255, 255, .065);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.as-roulette-result h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1;
    font-weight: 1000;
    letter-spacing: -.045em;
}

.as-roulette-alt {
    margin: -4px 0 0;
    color: rgba(255, 255, 255, .48);
    font-size: 13px;
    font-weight: 800;
}

.as-roulette-desc {
    max-width: 720px;
    margin: 0;
    color: rgba(226, 232, 240, .70);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 650;
}

.as-roulette-genres {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.as-roulette-genres span {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(14, 165, 233, .10);
    border: 1px solid rgba(14, 165, 233, .17);
    color: rgba(255, 255, 255, .78);
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 900;
}

.as-roulette-result__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.as-roulette-result__actions a {
    background: #ffffff;
    color: #020617;
}

.as-roulette-result__actions button {
    background: rgba(255, 255, 255, .075);
    color: #ffffff;
}

@keyframes asRouletteRotate {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 860px) {
    .as-roulette-hero {
        min-height: auto;
        padding-top: 22px;
    }

    .as-roulette-result {
        grid-template-columns: 1fr;
    }

    .as-roulette-result__image img {
        min-height: 210px;
        max-height: 300px;
    }
}

@media (max-width: 620px) {
    .as-roulette-page {
        width: min(100% - 22px, 1180px);
        padding-top: 18px;
    }

    .as-roulette-options,
    .as-roulette-mode {
        width: 100%;
    }

    .as-roulette-mode {
        min-width: 0;
    }

    .as-roulette-machine {
        min-height: 290px;
    }

    .as-roulette-result__actions a,
    .as-roulette-result__actions button,
    .as-roulette-spin {
        width: 100%;
    }
}