* {
    box-sizing: border-box;
}
:root {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    color: #111827;
}
.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 13, 0.48);
    backdrop-filter: blur(7px);
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 999;
}
.intro {
    width: min(820px, 90vw);
    height: 565px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: grid;
    place-items: center;
    color: white;
    text-align: center;
}
.intro:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 25%, rgba(255, 202, 77, 0.09) 26% 37%, transparent 38%);
    opacity: 0.8;
}
.intro-content {
    position: relative;
    margin-top: 90px;
}
.eyebrow {
    color: #ffbf20;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 15px;
}
.intro p {
    font-size: 20px;
    color: #d6d9df;
    margin: 18px 0 20px;
}
.draw {
    border: 0;
    background: #ffbf28;
    color: #11151b;
    font-size: 46px;
    font-weight: 900;
    padding: 27px 88px;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 13px 32px #ffc2245c;
    transition: 0.2s;
}
.draw:hover {
    transform: translateY(-2px);
    background: #ffc942;
}
.draw:active {
    transform: scale(0.98);
}
.wheel-modal {
    width: min(560px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    overflow: hidden;
    border-radius: 18px;
    background: #101a2b;
    color: #f7f8fc;
    box-shadow: 0 25px 80px #0009;
}
.modal-head {
    text-align: center;
    padding: 26px 55px 22px;
    border-bottom: 1px solid #263044;
    position: relative;
}
.modal-head h2 {
    font-size: 25px;
    margin: 8px 0 4px;
}
.modal-head p {
    margin: 0;
    color: #929aaa;
}
.close {
    position: absolute;
    right: 22px;
    top: 20px;
    border: 0;
    background: none;
    color: #98a1b0;
    font-size: 28px;
    cursor: pointer;
}
.wheel-area {
    padding: 40px 30px 25px;
}
.wheel-wrap {
    width: min(390px, 72vw);
    aspect-ratio: 1;
    margin: auto;
    position: relative;
    filter: drop-shadow(0 0 18px #ffbd29a6);
}
.pointer {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: -4px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 29px solid #ffc12c;
}
.wheel {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 5px solid #ffc12c;
    background: conic-gradient(
        #4382ef 0 14.285%,
        #2d66e9 0 28.57%,
        #2756d7 0 42.855%,
        #607de0 0 57.14%,
        #4f42e4 0 71.425%,
        #ff9414 0 85.71%,
        #596476 0
    );
    transition: transform 4.8s cubic-bezier(0.12, 0.7, 0.08, 1);
}
.labels {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}
.label {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42%;
    height: 28px;
    margin-top: -14px;
    transform-origin: 0 50%;
    transform: rotate(var(--a)) translateX(25%);
    text-align: center;
    color: white;
    font-size: 13px;
    font-weight: 800;
}
.label span {
    display: inline-block;
    transform: rotate(90deg);
}
.hub {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 78px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid #ffc12c;
    background: #080b11;
    display: grid;
    place-items: center;
    color: #ffb71b;
    font-size: 27px;
}
.hub:after {
    content: "↻";
}
.spin {
    display: none;
}
.reveal {
    position: absolute;
    z-index: 6;
    inset: -5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(9, 17, 31, 0.68);
    backdrop-filter: blur(3px);
    text-align: center;
}
.reveal.hidden {
    display: none;
}
.percent {
    font-size: 54px;
    font-weight: 900;
    color: #ffbd23;
    text-shadow: 0 3px 22px #000;
    margin-bottom: 8px;
}
.loading-copy {
    font-size: 17px;
    color: #e4e7ed;
}
.progress {
    width: 78%;
    height: 7px;
    border-radius: 20px;
    background: #354052;
    overflow: hidden;
    margin: 24px 0 13px;
}
.progress i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ffc52e, #ff9814);
    border-radius: inherit;
    transition: width 0.12s linear;
}
.estimate {
    font-size: 13px;
    color: #7d8797;
}
.result {
    display: none;
    margin: 5px 30px 20px;
    border: 1px solid #b88b18;
    border-radius: 14px;
    background: #242625;
    text-align: center;
    padding: 20px;
}
.result.show {
    display: block;
    animation: rise 0.4s ease;
}
.result .won {
    color: #ffbd22;
    letter-spacing: 0.12em;
}
.result strong {
    display: block;
    font-size: 31px;
    margin: 7px;
}
.result p {
    color: #aab0bb;
    margin: 0;
}
.result small {
    display: block;
    color: #aab0bb;
    margin-top: 13px;
}
.return-modal {
    width: min(385px, calc(100vw - 32px));
    position: relative;
    padding: 28px 24px 24px;
    border: 1px solid #2c3a50;
    border-radius: 15px;
    background: #101a2b;
    color: #f7f8fc;
    text-align: center;
    box-shadow: 0 25px 80px #0009;
}
.return-modal .close { top: 10px; right: 14px; }
.return-title { color: #8995a8; font-size: 12px; letter-spacing: .15em; }
.return-copy { color: #808b9e; margin: 18px 0; }
.return-prize { border: 1px solid #9d781a; border-radius: 13px; background: #242625; padding: 18px; }
.return-prize .won { color: #ffbd22; font-size: 13px; letter-spacing: .1em; }
.return-prize strong { display: block; font-size: 25px; margin: 6px 0; }
.return-prize p { margin: 0; color: #c1c6cf; }
.return-prize small { display: block; margin-top: 12px; color: #aab0bb; }
.continue { width: 100%; margin-top: 15px; padding: 13px; border: 1px solid #334056; border-radius: 11px; background: transparent; color: #e6eaf1; font-size: 15px; cursor: pointer; }
.continue:hover { background: #18243a; }
.foot {
    text-align: center;
    color: #737c8b;
    font-size: 14px;
    padding: 0 20px 28px;
}
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}
.hidden {
    display: none;
}
@media (max-width: 800px) {
    main {
        grid-template-columns: 1fr;
    }
    .side,
    .right {
        display: none;
    }
    .intro {
        height: 480px;
    }
    .draw {
        font-size: 36px;
        padding: 22px 65px;
    }
    .modal-head {
        padding-top: 20px;
    }
    .wheel-area {
        padding-top: 30px;
    }
}