:root {
    --wheel-card: rgba(18, 22, 39, .9);
    --wheel-line: rgba(255, 255, 255, .075);
    --wheel-muted: rgba(222, 229, 255, .58);
    --wheel-blue: #5d7dff;
    --wheel-violet: #8a55f5;
}

.wheel-page-shell {
    width: 100%;
    margin: 0;
    padding: 0;
}

.wheel-live {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 44px;
    margin-top: 0;
    overflow: hidden;
    border: 1px solid rgba(110, 135, 255, .16);
    border-radius: 17px;
    background: linear-gradient(90deg, rgba(34, 42, 77, .96), rgba(18, 22, 40, .94));
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.wheel-live-label {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 8px;
    padding: 0 15px;
    border-right: 1px solid rgba(255, 255, 255, .07);
    color: #f4f6ff;
    background: rgba(82, 104, 229, .1);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.wheel-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #48e4a4;
    box-shadow: 0 0 0 4px rgba(72, 228, 164, .1), 0 0 14px rgba(72, 228, 164, .68);
    animation: wheel-live-pulse 1.8s ease-in-out infinite;
}

.wheel-live-viewport {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.wheel-live-viewport::before,
.wheel-live-viewport::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
}

.wheel-live-viewport::before { left: 0; background: linear-gradient(90deg, #202843, transparent); }
.wheel-live-viewport::after { right: 0; background: linear-gradient(270deg, #151a2f, transparent); }

.wheel-live-track {
    --wheel-live-duration: 40s;
    display: flex;
    width: max-content;
    min-width: 100%;
    animation: wheel-live-scroll var(--wheel-live-duration) linear infinite;
    will-change: transform;
}

.wheel-live-track.is-empty {
    width: 100%;
    animation: none;
}

.wheel-live-group {
    display: flex;
    flex: none;
    align-items: center;
    gap: 16px;
    padding: 0 0 0 16px;
}

.wheel-live-entry {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(221, 228, 252, .65);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.wheel-live-separator {
    flex: none;
    color: rgba(128, 148, 255, .42);
    font-size: 8px;
    line-height: 1;
}

.wheel-live-user {
    color: #5d7dff;
    background: linear-gradient(135deg, rgba(70, 126, 255, .98), rgba(116, 72, 232, .98));
    background-clip: text;
    font-weight: 900;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.wheel-live-copy { color: rgba(221, 228, 252, .65); }
.wheel-live-prize { color: #fff; font-weight: 900; }
.wheel-live-prize.is-premium { color:#f4cd79; }
.wheel-live-time { color: rgba(199, 210, 244, .38); font-size: 12px; font-weight: 750; }
.wheel-live-empty { width: 100%; padding: 0 18px; color: var(--wheel-muted); font-size: 12px; font-weight: 700; text-align: center; }

@keyframes wheel-live-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@keyframes wheel-live-pulse {
    0%, 100% { opacity: .6; transform: scale(.86); }
    50% { opacity: 1; transform: scale(1); }
}

.wheel-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.wheel-stage,
.wheel-side-card {
    border: 1px solid var(--wheel-line);
    background: var(--wheel-card);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .23), inset 0 1px 0 rgba(255, 255, 255, .035);
    backdrop-filter: blur(18px);
}

.wheel-stage {
    position: relative;
    isolation: isolate;
    min-height: 560px;
    padding: 24px 18px 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 0%, rgba(81, 117, 255, .2), transparent 34%),
        radial-gradient(circle at 90% 25%, rgba(145, 76, 242, .18), transparent 34%),
        linear-gradient(145deg, rgba(24, 29, 50, .96), rgba(12, 15, 29, .96));
    box-shadow: 0 28px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.wheel-stage-head { text-align: center; }

.wheel-stage-head strong {
    display: block;
    color: #fff;
    font-size: clamp(22px, 4.8vw, 28px);
    font-weight: 920;
    letter-spacing: -.035em;
}

.wheel-stage-head span {
    display: block;
    margin-top: 7px;
    color: var(--wheel-muted);
    font-size: 12px;
    font-weight: 750;
}

.wheel-machine {
    position: relative;
    width: min(100%, 430px);
    aspect-ratio: 1;
    margin: 22px auto 0;
    filter: drop-shadow(0 26px 38px rgba(0, 0, 0, .35));
}

.wheel-machine.is-initializing {
    visibility: hidden;
}

.wheel-machine.is-ready {
    visibility: visible;
}

.wheel-machine::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(115, 104, 255, .42) 0, rgba(70, 112, 255, .18) 44%, transparent 72%);
    filter: blur(24px);
    opacity: .68;
    animation: wheel-ambient-breathe 3.8s ease-in-out infinite;
    transition: filter 1.6s cubic-bezier(.22, .72, .22, 1);
    pointer-events: none;
}

.wheel-machine::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 1%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(91, 129, 255, .5), transparent 18%, transparent 52%, rgba(178, 100, 255, .48), transparent 70%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    filter: drop-shadow(0 0 9px rgba(111, 119, 255, .5));
    opacity: .72;
    animation: wheel-energy-orbit 13s linear infinite;
    pointer-events: none;
}

.wheel-orbit-lights {
    position: absolute;
    z-index: 7;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    animation: wheel-orbit-lights-rotate 11s linear infinite;
}

.wheel-orbit-light {
    --light-delay: 0s;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(157, 181, 255, .86);
    border-radius: 50%;
    background: #a9beff;
    box-shadow: 0 0 5px rgba(139, 169, 255, .96), 0 0 14px rgba(91, 124, 255, .9), 0 0 24px rgba(104, 83, 235, .58);
    opacity: 1;
    transform: translate(-50%, -50%);
    animation: wheel-orbit-color-shift 3.2s ease-in-out var(--light-delay) infinite;
}

.wheel-orbit-light:nth-child(1) { top: 2.7%; left: 50%; --light-delay: 0s; }
.wheel-orbit-light:nth-child(2) { top: 9%; left: 73.65%; --light-delay: -.2s; }
.wheel-orbit-light:nth-child(3) { top: 26.35%; left: 91%; --light-delay: -.4s; }
.wheel-orbit-light:nth-child(4) { top: 50%; left: 97.3%; --light-delay: -.6s; }
.wheel-orbit-light:nth-child(5) { top: 73.65%; left: 91%; --light-delay: -.8s; }
.wheel-orbit-light:nth-child(6) { top: 91%; left: 73.65%; --light-delay: -1s; }
.wheel-orbit-light:nth-child(7) { top: 97.3%; left: 50%; --light-delay: -1.2s; }
.wheel-orbit-light:nth-child(8) { top: 91%; left: 26.35%; --light-delay: -1.4s; }
.wheel-orbit-light:nth-child(9) { top: 73.65%; left: 9%; --light-delay: -1.6s; }
.wheel-orbit-light:nth-child(10) { top: 50%; left: 2.7%; --light-delay: -1.8s; }
.wheel-orbit-light:nth-child(11) { top: 26.35%; left: 9%; --light-delay: -2s; }
.wheel-orbit-light:nth-child(12) { top: 9%; left: 26.35%; --light-delay: -2.2s; }

.wheel-pointer {
    position: absolute;
    z-index: 8;
    top: -7px;
    left: 50%;
    width: 34px;
    height: 48px;
    transform: translateX(-50%);
    filter: drop-shadow(0 7px 9px rgba(4, 7, 24, .52));
}

.wheel-pointer::before {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 100%, 4% 18%, 18% 0, 82% 0, 96% 18%);
    background: linear-gradient(135deg, #f2f5ff 0%, #929fc8 42%, #dce3f8 68%, #7d89b2 100%);
}

.wheel-pointer::after {
    content: "";
    position: absolute;
    inset: 2px 3px 4px;
    clip-path: polygon(50% 100%, 4% 18%, 18% 0, 82% 0, 96% 18%);
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .14), transparent 38%),
        linear-gradient(180deg, #354176 0%, #202957 52%, #111833 100%);
}

.wheel-rim {
    position: absolute;
    z-index: 1;
    inset: 9px;
    padding: 11px;
    border-radius: 50%;
    background: linear-gradient(145deg, #7189ff, #333d8d 48%, #8c54ef);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, .4), inset 0 -8px 18px rgba(0, 0, 0, .35);
    animation: wheel-rim-breathe 3.8s ease-in-out infinite;
    transition: filter 1.6s cubic-bezier(.22, .72, .22, 1);
}

.wheel-disk {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, .78);
    border-radius: 50%;
    background: conic-gradient(from -90deg, #4568f2 0 50%, #7448e8 50% 100%);
    box-shadow: inset 0 0 32px rgba(8, 9, 25, .24);
    transition: transform 5.4s cubic-bezier(.12, .72, .12, 1);
    will-change: transform;
    animation: wheel-disk-grade 5.6s ease-in-out infinite;
}

.wheel-disk::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 38% 30%, rgba(255, 255, 255, .16), transparent 34%);
    pointer-events: none;
}

.wheel-disk::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: -22%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg 235deg, rgba(255, 255, 255, .03) 255deg, rgba(255, 255, 255, .3) 275deg, rgba(166, 204, 255, .06) 298deg, transparent 318deg 360deg);
    mix-blend-mode: screen;
    opacity: .58;
    animation: wheel-surface-sheen 7.5s linear infinite;
    pointer-events: none;
}

.wheel-label-layer {
    position: absolute;
    z-index: 2;
    inset: 11px;
    overflow: hidden;
    border-radius: 50%;
    pointer-events: none;
}

.wheel-segment-label {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: flex;
    width: var(--wheel-segment-label-width, 96px);
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: var(--wheel-segment-font-size, 10px);
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 2px 7px rgba(0, 0, 0, .48);
    transform: translate(-50%, -50%) rotate(calc(var(--segment-angle) + var(--wheel-label-rotation, 0deg))) translateY(calc(var(--wheel-label-radius) * -1)) rotate(calc(var(--segment-counter-angle) - var(--wheel-label-rotation, 0deg)));
    transform-origin: center;
    transition: transform 5.4s cubic-bezier(.12, .72, .12, 1);
    pointer-events: none;
}

.wheel-machine.is-spinning .wheel-segment-label { will-change: transform; }

.wheel-segment-icon {
    --wheel-icon-size: 52px;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: grid;
    width: var(--wheel-icon-size);
    height: var(--wheel-icon-size);
    flex: none;
    padding: 3px;
    place-items: center;
    border: 0;
    border-radius: 13px;
    background: none;
    color: #fff4a6;
    font-size: 24px;
    line-height: 1;
}

.wheel-segment-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(13, 22, 57, .25));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 3px 9px rgba(5, 8, 24, .12);
}

.wheel-segment-icon.is-fms_points {
    --wheel-default-icon: url("../img/wheel-rewards-v1/fms-points.webp");
}

.wheel-segment-icon.is-gift {
    --wheel-default-icon: url("../img/wheel-rewards-v1/bonus-gift.webp");
}

.wheel-segment-icon.is-bonuses {
    --wheel-default-icon: url("../img/wheel-rewards-v1/bonus-gift.webp");
}

.wheel-segment-icon:is(.is-fms_points, .is-gift, .is-bonuses):not(.has-custom-image)::before {
    content: '';
    width: 100%;
    height: 100%;
    background: var(--wheel-default-icon) center / var(--wheel-default-size, contain) no-repeat;
}

.wheel-segment-icon.is-none { color: rgba(255, 255, 255, .74); }
.wheel-segment-icon.is-topup_bonus:not(.has-custom-image)::before { content: '%'; font-weight: 950; }
.wheel-segment-icon.has-custom-image {
    width: var(--wheel-icon-size);
    height: var(--wheel-icon-size);
    border: 0;
    background: none;
    box-shadow: none;
}
.wheel-segment-icon.has-custom-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 7px rgba(4, 7, 22, .34));
}
.wheel-segment-text {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.wheel-segment-text.is-multiline {
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: normal !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wheel-center-emblem {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    padding: 18px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .2), transparent 25%),
        linear-gradient(145deg, #24346f, #10183c 54%, #352263);
    box-shadow:
        0 14px 32px rgba(5, 7, 26, .58),
        0 0 22px rgba(110, 129, 255, .25),
        inset 0 2px 3px rgba(255, 255, 255, .28),
        inset 0 -9px 18px rgba(2, 5, 20, .45);
    overflow: hidden;
    pointer-events: none;
}

.wheel-center-emblem::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: conic-gradient(from 0deg, #8caaff, #fff 12%, #9d70ff 28%, #557cff 50%, #fff 64%, #c86fff 82%, #8caaff);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    filter: drop-shadow(0 0 4px rgba(135, 153, 255, .68));
    animation: wheel-emblem-orbit 6.5s linear infinite;
}

.wheel-center-emblem::after {
    content: "";
    position: absolute;
    top: -35%;
    bottom: -35%;
    left: -62%;
    width: 34px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
    filter: blur(2px);
    transform: rotate(18deg) translateX(-180%);
    animation: wheel-emblem-sheen 4.6s ease-in-out infinite;
}

.wheel-center-logo {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: block;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 5px 9px rgba(4, 7, 28, .6)) drop-shadow(0 0 10px rgba(143, 168, 255, .36));
}

.wheel-logo-stop-start { animation: wheel-logo-stop-start 4.2s ease-in-out infinite; }
.wheel-logo-stop-end { animation: wheel-logo-stop-end 4.2s ease-in-out infinite; }

.wheel-spin-button {
    position: relative;
    display: flex;
    width: min(100%, 280px);
    min-height: 50px;
    margin: 19px auto 0;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    overflow: hidden;
    border: 1px solid rgba(190, 203, 255, .45);
    border-radius: 16px;
    outline: 0;
    background: linear-gradient(120deg, #4978ff 0%, #6964f5 46%, #9858e8 100%);
    background-size: 180% 100%;
    box-shadow: 0 12px 28px rgba(56, 72, 201, .32), inset 0 1px 0 rgba(255, 255, 255, .28);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: .025em;
    text-transform: none;
    cursor: pointer;
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
    animation: wheel-spin-button-glow 4.2s ease-in-out infinite;
}

.wheel-spin-button::before {
    content: "✦";
    color: #fff3ad;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(255, 225, 116, .78);
}

.wheel-spin-button::after {
    content: "";
    position: absolute;
    top: -70%;
    bottom: -70%;
    left: -24%;
    width: 34px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
    transform: translateX(-220%) rotate(18deg);
    animation: wheel-spin-button-sheen 4.2s ease-in-out infinite;
}

.wheel-spin-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 16px 34px rgba(70, 82, 218, .42), inset 0 1px 0 rgba(255, 255, 255, .32);
}

.wheel-spin-button:active { transform: translateY(0) scale(.985); }
.wheel-spin-button:disabled {
    cursor: default;
    filter: grayscale(.25) brightness(.7);
    box-shadow: 0 8px 18px rgba(20, 24, 62, .24), inset 0 1px 0 rgba(255, 255, 255, .16);
    animation: wheel-spin-button-glow 4.2s ease-in-out infinite;
}

.wheel-spin-button:disabled::after {
    animation: wheel-spin-button-sheen 4.2s ease-in-out infinite;
}

.wheel-machine.is-spinning::before {
    filter: blur(26px) saturate(1.28);
}

.wheel-machine.is-spinning .wheel-rim {
    filter: brightness(1.08) drop-shadow(0 0 14px rgba(117, 102, 255, .48));
}

@keyframes wheel-ambient-breathe {
    0%, 100% { opacity: .48; transform: scale(.94); }
    50% { opacity: .82; transform: scale(1.05); }
}

@keyframes wheel-energy-orbit {
    to { transform: rotate(-360deg); }
}

@keyframes wheel-orbit-color-shift {
    0%, 100% {
        border-color: rgba(165, 190, 255, .88);
        background: #abc1ff;
        box-shadow: 0 0 5px rgba(139, 172, 255, .96), 0 0 14px rgba(91, 127, 255, .9), 0 0 22px rgba(82, 104, 232, .52);
    }
    36% {
        border-color: rgba(122, 151, 255, .9);
        background: #718cff;
        box-shadow: 0 0 5px rgba(102, 137, 255, .96), 0 0 15px rgba(72, 105, 244, .92), 0 0 23px rgba(67, 78, 207, .58);
    }
    70% {
        border-color: rgba(191, 157, 247, .9);
        background: #a077ed;
        box-shadow: 0 0 5px rgba(177, 129, 244, .96), 0 0 15px rgba(145, 92, 226, .9), 0 0 23px rgba(103, 70, 199, .58);
    }
}

@keyframes wheel-orbit-lights-rotate {
    to { transform: rotate(360deg); }
}

@keyframes wheel-rim-breathe {
    0%, 100% { box-shadow: inset 0 2px 4px rgba(255, 255, 255, .4), inset 0 -8px 18px rgba(0, 0, 0, .35), 0 0 18px rgba(91, 112, 255, .18); }
    50% { box-shadow: inset 0 2px 5px rgba(255, 255, 255, .52), inset 0 -8px 18px rgba(0, 0, 0, .3), 0 0 32px rgba(123, 102, 255, .42); }
}

@keyframes wheel-surface-sheen {
    to { transform: rotate(360deg); }
}

@keyframes wheel-disk-grade {
    0%, 100% { filter: saturate(1) brightness(1); }
    50% { filter: saturate(1.13) brightness(1.055); }
}

@keyframes wheel-emblem-orbit { to { transform: rotate(360deg); } }

@keyframes wheel-emblem-sheen {
    0%, 48% { transform: rotate(18deg) translateX(-180%); opacity: 0; }
    58% { opacity: .9; }
    76%, 100% { transform: rotate(18deg) translateX(520%); opacity: 0; }
}

@keyframes wheel-logo-stop-start {
    0%, 100% { stop-color: #ffffff; }
    50% { stop-color: #b9c9ff; }
}

@keyframes wheel-logo-stop-end {
    0%, 100% { stop-color: #7f9eff; }
    50% { stop-color: #d58dff; }
}

@keyframes wheel-spin-button-glow {
    0%, 100% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes wheel-spin-button-sheen {
    0%, 52% { transform: translateX(-220%) rotate(18deg); opacity: 0; }
    62% { opacity: .75; }
    82%, 100% { transform: translateX(940%) rotate(18deg); opacity: 0; }
}

.wheel-state-line {
    min-height: 20px;
    margin-top: 10px;
    color: #b8c5ff;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.wheel-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 16px;
}

.wheel-side > .giveaway-prize-section {
    margin-bottom: 0;
}

.wheel-side-card {
    padding: 20px;
    border-radius: 23px;
}

.wheel-side-card h2,
.wheel-history h2 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.wheel-side-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wheel-awarded-total {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 5px 9px;
    border: 1px solid rgba(111, 139, 255, .2);
    border-radius: 9px;
    color: rgba(202, 212, 241, .66);
    background: rgba(78, 99, 188, .08);
    font-size: 9.5px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.wheel-awarded-total strong {
    margin-left: 4px;
    color: #aab9ff;
    font-size: 10px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.wheel-side-card > p {
    margin: 8px 0 0;
    color: var(--wheel-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.55;
}

.wheel-prize-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 15px;
}

.wheel-prize-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 36px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
}

.wheel-prize-thumbnail {
    --wheel-icon-size: 22px;
    padding: 1px;
    border-radius: 6px;
    font-size: 12px;
}

.wheel-prize-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 12px currentColor;
}

.wheel-prize-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(248, 250, 255, .9);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 360px) {
    .wheel-prize-item { gap: 4px; padding-inline: 6px; }
    .wheel-prize-item strong { font-size: 11px; letter-spacing: -.1px; }
}

.wheel-rule-list {
    display: grid;
    gap: 12px;
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.wheel-rule-list li {
    display: grid;
    grid-template-columns: 25px 1fr;
    align-items: start;
    gap: 9px;
    color: rgba(225, 231, 252, .68);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
}

.wheel-rule-list span {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    color: #aebeff;
    background: rgba(95, 119, 255, .12);
    font-size: 9px;
    font-weight: 900;
}

.wheel-history {
    margin-top: 16px;
    padding: 0 0 22px;
}

.wheel-history h2 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 850;
}

.wheel-history-table { overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; background: rgba(20, 30, 54, .4); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.wheel-history-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 78px; align-items: center; column-gap: 10px; min-height: 49px; padding: 14px 12px; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.wheel-history-row:last-child { border-bottom: 0; }
.wheel-history-row.is-head { min-height: 0; padding-top: 11px; padding-bottom: 11px; color: #8fa3c7; background: rgba(0, 0, 0, .2); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.wheel-history-id { color: #8fa3c7; font-size: 12px; font-weight: 850; }
.wheel-history-reward { overflow: hidden; color: #fff; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.wheel-history-date { color: rgba(255, 255, 255, .48); font-size: 10px; font-weight: 800; line-height: 1.2; text-align: right; }
.wheel-history-empty { padding: 24px 18px; border: 1px dashed rgba(255, 255, 255, .1); border-radius: 20px; background: rgba(20, 30, 54, .24); text-align: center; }
.wheel-history-empty-title { color: #fff; font-size: 14px; font-weight: 850; }
.wheel-history-empty-desc { margin-top: 5px; color: rgba(143, 163, 199, .62); font-size: 12px; font-weight: 750; line-height: 1.35; }

.wheel-disabled-note {
    max-width: 440px;
    margin: 90px auto;
    color: var(--wheel-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}

.wheel-result-overlay {
    position: fixed;
    z-index: 10020;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(4, 6, 16, .76);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.wheel-result-overlay.is-open { opacity: 1; visibility: visible; }

.wheel-result-card {
    width: min(100%, 380px);
    padding: 30px 24px 24px;
    transform: translateY(16px) scale(.96);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 27px;
    background: radial-gradient(circle at 50% 0, rgba(107, 129, 255, .24), transparent 45%), #11162a;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .55);
    text-align: center;
    transition: transform .3s ease;
}

.wheel-result-overlay.is-open .wheel-result-card { transform: translateY(0) scale(1); }
.wheel-result-icon { display: grid; width: 62px; height: 62px; margin: 0 auto 16px; place-items: center; border-radius: 20px; color: #fff; background: linear-gradient(145deg, var(--wheel-blue), var(--wheel-violet)); box-shadow: 0 14px 30px rgba(89, 93, 235, .32); font-size: 26px; }
.wheel-result-card small { color: #8ea5ff; font-size: 9px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.wheel-result-card h2 { margin: 9px 0 0; color: #fff; font-size: 23px; font-weight: 920; letter-spacing: -.03em; }
.wheel-result-card p { margin: 10px auto 0; color: var(--wheel-muted); font-size: 11px; font-weight: 650; line-height: 1.55; }
.wheel-result-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 22px; }
.wheel-result-actions a, .wheel-result-actions button { min-height: 45px; padding: 10px 16px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--wheel-blue), var(--wheel-violet)); font-family: inherit; font-size: 11px; font-weight: 900; text-decoration: none; cursor: pointer; }
.wheel-result-actions button {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(190, 203, 255, .45);
    background: linear-gradient(120deg, #4978ff 0%, #6964f5 46%, #9858e8 100%);
    background-size: 180% 100%;
    box-shadow: 0 12px 28px rgba(56, 72, 201, .32), inset 0 1px 0 rgba(255, 255, 255, .28);
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
    animation: wheel-spin-button-glow 4.2s ease-in-out infinite;
}
.wheel-result-actions button::after {
    content: '';
    position: absolute;
    top: -70%;
    bottom: -70%;
    left: -24%;
    width: 34px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
    transform: translateX(-220%) rotate(18deg);
    animation: wheel-spin-button-sheen 4.2s ease-in-out infinite;
    pointer-events: none;
}
.wheel-result-actions button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 16px 34px rgba(70, 82, 218, .42), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.wheel-result-actions button:active { transform: translateY(0) scale(.985); }

/* iOS WebKit can rasterize the filtered wheel as its rectangular layer. */
@supports (-webkit-touch-callout: none) {
    .wheel-machine {
        filter: none;
    }

    .wheel-disk,
    .wheel-label-layer {
        -webkit-clip-path: circle(50% at 50% 50%);
        clip-path: circle(50% at 50% 50%);
    }

    .wheel-disk {
        animation: none;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

@media (max-width: 560px) {
    .wheel-live { grid-template-columns: 110px minmax(0, 1fr); min-height: 44px; border-radius: 15px; }
    .wheel-live-label { justify-content: center; gap: 8px; padding: 0 7px; font-size: 11px; letter-spacing: -.035em; }
    .wheel-live-dot { width: 6px; height: 6px; }
    .wheel-live-viewport::before,
    .wheel-live-viewport::after { width: 18px; }
    .wheel-live-group { gap: 14px; padding: 0 0 0 14px; }
    .wheel-live-entry,
    .wheel-live-time { font-size: 11px; }
    .wheel-stage { min-height: 0; padding: 20px 8px; border-radius: 22px; }
    .wheel-machine { width: min(100%, 354px); }
    .wheel-center-emblem { width: 78px; height: 78px; padding: 14px; }
    .wheel-center-logo { width: 42px; height: 42px; }
    .wheel-spin-button { width: min(100%, 252px); min-height: 48px; margin-top: 17px; border-radius: 15px; font-size: 12px; }
    .wheel-segment-label { gap: 3px; }
    .wheel-segment-icon { --wheel-icon-size: clamp(40px, 13vw, 48px); border-radius: 12px; font-size: 22px; }
    .wheel-side { grid-template-columns: 1fr; }
    .wheel-side-card { border-radius: 20px; }
    .wheel-awarded-total strong {
        display: inline-flex;
        align-items: center;
        line-height: 1;
        transform: translateY(1px);
    }
    .wheel-history { margin-top: 14px; }
    .wheel-history-row { grid-template-columns: 50px minmax(0, 1fr) 58px; column-gap: 8px; padding: 14px 10px; }
    .wheel-history-row.is-head { padding: 10px; font-size: 8.5px; }
    .wheel-history-id { font-size: 11px; }
    .wheel-history-reward { display: -webkit-box; font-size: 12.5px; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .wheel-history-date { font-size: 9px; }
}

.wheel-actions {
    --wheel-action-height:50px;
    display:flex; align-items:center; justify-content:center; gap:10px;
    width:min(100%,340px); margin:19px auto 0;
}
.wheel-prize-item .wheel-prize-thumbnail { --wheel-icon-size: 22px; border-radius: 6px; font-size: 12px; }
.wheel-actions .wheel-spin-button { flex:1; width:auto; min-width:0; max-width:280px; margin:0; padding-inline:14px; }
.wheel-sound-button {
    display:grid; place-items:center; flex:0 0 var(--wheel-action-height);
    width:var(--wheel-action-height); height:var(--wheel-action-height); padding:0; border:1px solid rgba(143,163,199,.2);
    border-radius:12px; background:rgba(255,255,255,.04); color:#b7c6df; cursor:pointer;
}
.wheel-sound-button[hidden] { display:none; }
.wheel-sound-button:hover { background:rgba(255,255,255,.08); border-color:#8fa3c7; }
.wheel-sound-button:focus-visible { outline:2px solid #8fa3c7; outline-offset:3px; }
.wheel-sound-slash { display:none; }
.wheel-sound-button.is-muted .wheel-sound-slash { display:block; }
@media (max-width:560px) {
    .wheel-actions { --wheel-action-height:48px; width:min(100%,310px); margin-top:17px; }
    .wheel-actions .wheel-spin-button { max-width:252px; }
}
a.wheel-spin-button { display:flex; align-items:center; justify-content:center; text-decoration:none; }
.wheel-segment-label.is-premium .wheel-segment-text { color:#fff4cf; text-shadow:0 1px 3px #50320c; }
.wheel-segment-label.is-premium .wheel-segment-icon { filter:drop-shadow(0 0 8px rgba(255,219,128,.6)); }
.wheel-segment-label.is-premium .wheel-segment-icon::after,
.wheel-prize-item.is-premium .wheel-prize-thumbnail::after,
.is-premium-spin .wheel-segment-icon::after { border-color:rgba(255,226,162,.55); background:linear-gradient(145deg,rgba(255,231,171,.24),rgba(89,58,16,.22)); }
.wheel-prize-item.is-premium strong { color:#ffe2a2; }
.wheel-prize-item.is-premium { color:#ffe2a2; background:linear-gradient(100deg,rgba(212,164,61,.13),transparent); border-radius:10px; }
.wheel-prize-item.is-premium .wheel-prize-dot { background:#f4c96e !important; color:#f4c96e !important; }
.wheel-machine.is-premium-win .wheel-rim { box-shadow:0 0 30px rgba(255,210,109,.55),inset 0 0 20px rgba(255,215,123,.3); }
.wheel-stage.is-premium-spin {
    border-color:#bd9245;
    background:radial-gradient(ellipse at 50% 42%,rgba(183,129,36,.25),transparent 64%),linear-gradient(145deg,#28251d,#11151d);
    box-shadow:0 0 55px rgba(214,160,51,.2),inset 0 1px 0 rgba(255,231,171,.15);
}
.wheel-stage.is-premium-spin::after {
    content:""; position:absolute; inset:0; z-index:20; border-radius:inherit; pointer-events:none;
    background:radial-gradient(circle at 50% 45%,rgba(255,235,176,.72),rgba(255,202,84,.2) 40%,transparent 75%);
    animation:wheel-premium-flash .85s ease-out both;
}
.is-premium-spin .wheel-stage-head strong { color:#ffe3a6; text-shadow:0 0 24px rgba(255,205,97,.35); }
.is-premium-spin .wheel-stage-head span,
.is-premium-spin .wheel-state-line { color:#d5bc8b; }
.is-premium-spin .wheel-machine::before { background:radial-gradient(circle,rgba(255,201,83,.55),rgba(181,115,21,.2) 48%,transparent 72%); }
.is-premium-spin .wheel-machine::after {
    background:conic-gradient(transparent,rgba(255,224,139,.8),transparent 18%,transparent 52%,rgba(255,188,66,.65),transparent 70%);
    filter:drop-shadow(0 0 9px rgba(255,205,97,.65));
}
.is-premium-spin .wheel-rim {
    background:linear-gradient(145deg,#fff0af,#a66e24 48%,#f4ce72);
    animation-name:wheel-premium-rim-breathe;
    filter:brightness(1.08) drop-shadow(0 0 18px rgba(255,205,97,.5));
}
.is-premium-spin .wheel-disk { background:var(--wheel-premium-background) !important; border-color:#ffe9b5; }
.is-premium-spin .wheel-orbit-light { animation-name:wheel-premium-light; }
.is-premium-spin .wheel-pointer::before { background:linear-gradient(135deg,#fff5cf,#c49a47 45%,#ffdf8f 70%,#906523); }
.is-premium-spin .wheel-pointer::after { background:linear-gradient(180deg,#bd8a36,#553913); }
.is-premium-spin .wheel-center-emblem {
    background:radial-gradient(circle at 35% 28%,rgba(255,239,188,.25),transparent 30%),linear-gradient(145deg,#8b632a,#332715 54%,#5b421e);
    box-shadow:0 14px 32px rgba(35,20,3,.5),0 0 32px rgba(255,205,97,.3),inset 0 2px 3px rgba(255,231,171,.5);
}
.is-premium-spin .wheel-center-emblem::before {
    background:conic-gradient(#b47a25,#fff0b3 14%,#e7b750 32%,#9b661d 50%,#ffe7a0 67%,#d4a13a 84%,#b47a25);
    filter:drop-shadow(0 0 5px rgba(255,202,87,.7));
}
.is-premium-spin .wheel-center-emblem::after { background:linear-gradient(90deg,transparent,rgba(255,224,140,.7),transparent); }
.is-premium-spin .wheel-center-logo { filter:drop-shadow(0 5px 9px rgba(43,25,3,.6)) drop-shadow(0 0 10px rgba(255,197,68,.4)); }
.is-premium-spin .wheel-logo-stop-start { animation-name:wheel-logo-gold-start; }
.is-premium-spin .wheel-logo-stop-end { animation-name:wheel-logo-gold-end; }
@keyframes wheel-logo-gold-start { 0%,100% { stop-color:#fff0b9; } 50% { stop-color:#f8cb68; } }
@keyframes wheel-logo-gold-end { 0%,100% { stop-color:#ba7b20; } 50% { stop-color:#ffe3a0; } }
.is-premium-spin .wheel-segment-text { text-shadow:0 1px 3px #50320c; }
.is-premium-spin .wheel-segment-label.is-premium .wheel-segment-text { color:#49300c; text-shadow:none; }
.is-premium-spin .wheel-spin-button {
    opacity:1; filter:none; color:#35230c; background:linear-gradient(110deg,#bd8938,#f3cf7a);
    border-color:#f4d48b; box-shadow:0 10px 32px rgba(220,164,48,.25),inset 0 1px rgba(255,244,203,.5);
}
.is-premium-spin .wheel-sound-button { color:#f4d48b; border-color:rgba(237,194,110,.4); background:rgba(214,160,51,.08); }
@keyframes wheel-premium-flash { 0% { opacity:0; } 15% { opacity:.8; } 100% { opacity:0; } }
@keyframes wheel-premium-light {
    0%,100% { background:#ffebad; border-color:#fff3cc; box-shadow:0 0 6px #ffd275,0 0 17px rgba(255,191,61,.9); }
    50% { background:#edb344; border-color:#ffdd8a; box-shadow:0 0 9px #ffdd8a,0 0 25px rgba(235,164,39,.8); }
}
@keyframes wheel-premium-rim-breathe {
    0%,100% { box-shadow:inset 0 2px 4px rgba(255,242,196,.6),0 0 22px rgba(238,179,63,.3); }
    50% { box-shadow:inset 0 2px 5px rgba(255,242,196,.8),0 0 40px rgba(238,179,63,.55); }
}
.wheel-result-overlay.is-premium { background:radial-gradient(ellipse at 50% 40%,rgba(177,123,34,.3),rgba(3,8,18,.86) 70%); }
.wheel-result-overlay.is-premium .wheel-result-card {
    border-color:#d7af5b; background:radial-gradient(ellipse at top,#403627,#141b27 75%);
    box-shadow:0 0 90px rgba(238,183,65,.3),inset 0 1px rgba(255,240,191,.2);
}
.wheel-result-overlay.is-premium .wheel-result-icon,
.wheel-result-overlay.is-premium small { color:#ffdc8a; }
.wheel-result-overlay.is-premium .wheel-result-icon { background:linear-gradient(135deg,#8f6325,#d6ac53); box-shadow:0 0 30px rgba(237,191,91,.25); }
.wheel-result-overlay.is-premium .wheel-result-actions button { background:linear-gradient(110deg,#b98434,#f4d180); color:#2d200b; }
.wheel-celebration { position:fixed; inset:0; z-index:10030; overflow:hidden; pointer-events:none; }
.wheel-celebration i {
    position:absolute; left:var(--x); top:-24px; width:8px; height:14px;
    background:#f5d282; animation:wheel-confetti-fall var(--fall) var(--delay) ease-out both;
}
.wheel-celebration i:nth-child(3n) { background:#fff1c1; width:5px; height:9px; }
.wheel-celebration i:nth-child(3n + 1) { background:#b68130; }
@keyframes wheel-confetti-fall {
    0% { transform:translate3d(0,-3vh,0) rotate(0); opacity:0; }
    8% { opacity:1; }
    78% { opacity:1; }
    100% { transform:translate3d(var(--drift),110vh,0) rotate(var(--turn)); opacity:0; }
}
@media (prefers-reduced-motion: reduce) {
    .wheel-celebration { display:none; }
    .wheel-stage.is-premium-spin::after { display:none; }
    .wheel-disk,
    .wheel-segment-label { transition-duration: .01ms; }
    .wheel-machine::before,
    .wheel-machine::after,
    .wheel-orbit-lights,
    .wheel-orbit-light,
    .wheel-pointer,
    .wheel-rim,
    .wheel-disk::before,
    .wheel-disk,
    .wheel-center-emblem,
    .wheel-center-emblem::before,
    .wheel-center-emblem::after,
    .wheel-center-logo,
    .wheel-logo-stop,
    .wheel-spin-button,
    .wheel-spin-button::after,
    .wheel-result-actions button,
    .wheel-result-actions button::after { animation: none; }
    .wheel-live-dot { animation: none; }
    .wheel-live-viewport { overflow-x: auto; }
    .wheel-live-track { animation: none; }
    .wheel-live-group[aria-hidden="true"] { display: none; }
}

/* Колесо без зума: только прокрутка, без щипка и двойного тапа. Специфичность тегов — перекрывает
   общий `a, button {manipulation}` из styles.css, но правила с классами важнее.
   Жест Safari на iPhone отменяет скрипт в wheel.php. */
html, body, body * {
    touch-action: pan-x pan-y;
}
