#forge-wheel-screen {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 147, 42, 0.18), transparent 34%),
        radial-gradient(circle at 50% 78%, rgba(255, 213, 92, 0.10), transparent 38%),
        rgba(7, 8, 12, 0.86);
    backdrop-filter: blur(7px);
}

#forge-wheel-screen.wheel-hidden {
    display: none;
}

.forge-wheel-card {
    position: relative;
    width: min(94vw, 390px);
    max-height: 94vh;
    padding: 16px 14px 18px;
    box-sizing: border-box;
    border-radius: 24px;
    border: 2px solid rgba(255, 198, 92, 0.72);
    background:
        linear-gradient(180deg, rgba(42, 25, 15, 0.98), rgba(12, 12, 18, 0.98)),
        radial-gradient(circle at 50% 0%, rgba(255, 184, 74, 0.24), transparent 42%);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.72),
        inset 0 0 18px rgba(255, 184, 74, 0.10);
    color: #fff7d6;
    font-family: 'Nunito', sans-serif;
    overflow: hidden;
}

.forge-wheel-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 230, 150, 0.18);
    pointer-events: none;
}

.forge-wheel-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 216, 130, 0.55);
    border-radius: 50%;
    background: linear-gradient(180deg, #5a2418, #231016);
    color: #ffe7a0;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.forge-wheel-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 10px;
}

.forge-wheel-kicker {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.8px;
    color: #ffb14a;
    text-shadow: 1px 1px 0 #000;
}

.forge-wheel-title {
    margin-top: 2px;
    font-family: 'Graduate', 'Nunito', sans-serif;
    font-size: clamp(24px, 8vw, 34px);
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffe38a;
    text-shadow:
        2px 2px 0 #000,
        0 0 12px rgba(255, 160, 45, 0.55);
}

.forge-wheel-subtitle {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 247, 214, 0.78);
}

.forge-wheel-stage {
    position: relative;
    z-index: 2;
    width: min(78vw, 310px);
    height: min(78vw, 310px);
    max-width: 310px;
    max-height: 310px;
    margin: 8px auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forge-wheel-pointer {
    display: none;
}

.forge-wheel-pointer.is-ticking {
    animation: forgeWheelPointerTick 165ms cubic-bezier(0.16, 0.82, 0.22, 1);
}

@keyframes forgeWheelPointerTick {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }

    22% {
        transform: translateX(-50%) rotate(-17deg);
    }

    52% {
        transform: translateX(-50%) rotate(8deg);
    }

    78% {
        transform: translateX(-50%) rotate(-3deg);
    }

    100% {
        transform: translateX(-50%) rotate(0deg);
    }
}

.forge-wheel-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 56%, rgba(255, 231, 160, 0.22) 57%, transparent 63%),
        conic-gradient(from 0deg,
            rgba(255, 214, 111, 0.95),
            rgba(255, 116, 32, 0.95),
            rgba(255, 214, 111, 0.95),
            rgba(255, 116, 32, 0.95),
            rgba(255, 214, 111, 0.95));
    filter: drop-shadow(0 0 12px rgba(255, 140, 32, 0.35));
}

.forge-wheel {
    position: relative;
    z-index: 2;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    border-radius: 50%;
    overflow: hidden;
    background: #120806;
    border: 7px solid #32130d;
    box-shadow:
        inset 0 0 0 3px rgba(255, 230, 150, 0.72),
        inset 0 0 22px rgba(0, 0, 0, 0.55),
        0 10px 22px rgba(0, 0, 0, 0.48);
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    will-change: transform;
    backface-visibility: hidden;
}

.forge-wheel-svg {
    display: block;
    width: 100%;
    height: 100%;
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    overflow: visible;
}

.forge-wheel-spin-canvas {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    will-change: transform;
    backface-visibility: hidden;
}

.forge-wheel-selector {
    position: absolute;
    inset: 0;
    z-index: 5;
    opacity: 1;
    pointer-events: none;
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition: opacity 160ms ease;
}

.forge-wheel-selector::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 43%;
    transform: translate(-50%, -100%);
    transform-origin: 50% 100%;
    clip-path: polygon(50% 0%, 78% 100%, 50% 88%, 22% 100%);
    background:
        linear-gradient(to right,
            rgba(130, 45, 10, 0.95) 0%,
            #ff9f2f 24%,
            #fff4a8 50%,
            #ff9f2f 76%,
            rgba(130, 45, 10, 0.95) 100%);
    box-shadow:
        0 0 6px rgba(255, 232, 116, 0.72),
        0 0 14px rgba(255, 116, 32, 0.45);
}

.forge-wheel-selector::after {
    display: none;
}

.forge-wheel-rotor {
    transform-box: view-box;
    transform-origin: 150px 150px;
}

.forge-wheel.is-spinning {
    pointer-events: none;
}

.forge-wheel.is-spinning .forge-wheel-slice-text {
    text-rendering: geometricPrecision;
}

.forge-wheel-slice {
    stroke: rgba(255, 224, 110, 0.95);
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
}

.forge-wheel-slice-divider {
    stroke: rgb(255, 170, 0);
    stroke-width: 1.25;
    vector-effect: non-scaling-stroke;
}

.forge-wheel-jackpot-divider-glow-line {
    stroke: #ff0000;
    stroke-width: 1;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    opacity: 0.58;
    filter: blur(0.55px);
    animation: forgeWheelJackpotDividerGlow 1.05s ease-in-out infinite;
}

.forge-wheel-slice-divider.is-jackpot-divider {
    stroke: #ff0000;
    stroke-width: 1.2;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    opacity: 1;
    filter:
        drop-shadow(0 0 1px rgb(255, 0, 0)) drop-shadow(0 0 1px rgba(255, 64, 64, 0.95)) drop-shadow(0 0 1px rgba(255, 119, 31, 0.72));
    animation: forgeWheelJackpotDividerCore 1.05s ease-in-out infinite;
}

@keyframes forgeWheelJackpotDividerGlow {

    0%,
    100% {
        opacity: 0.38;
        stroke-width: 1;
    }

    50% {
        opacity: 0.95;
        stroke-width: 1;
    }
}

@keyframes forgeWheelJackpotDividerCore {

    0%,
    100% {
        stroke: #ffe45c;
        stroke-width: 1.6;
        opacity: 0.88;
    }

    50% {
        stroke: #fffef0;
        stroke-width: 3.2;
        opacity: 1;
    }
}

.forge-wheel-slice-reward {
    pointer-events: none;
    user-select: none;
}

.forge-wheel-slice-text {
    fill: #fffdf7;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: 0.15px;
    paint-order: stroke fill;
    stroke: rgba(29, 10, 7, 0.92);
    stroke-width: 2.8px;
    stroke-linejoin: round;
    stroke-linecap: round;
    user-select: none;
}

.forge-wheel-slice-text.is-long-amount {
    font-size: 11.5px;
    letter-spacing: 0;
}

.forge-wheel-slice-icon {
    pointer-events: none;
    filter:
        drop-shadow(0 1px 1px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.22));
}

.forge-wheel-slice-text.is-dark {
    fill: #2b1808;
    stroke: rgba(255, 251, 238, 0.82);
    stroke-width: 2.4px;
}

.forge-wheel::after {
    content: "";
    position: absolute;
    inset: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 34%, #fff4bd, #ffc24f 45%, #8c351c 100%);
    border: 4px solid #2b100b;
    box-shadow:
        0 0 0 3px rgba(255, 235, 158, 0.58),
        0 0 16px rgba(255, 167, 48, 0.8);
}

.forge-wheel-label {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 68px;
    min-height: 44px;
    margin-left: -34px;
    margin-top: -22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.forge-wheel-label-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 3px 4px;
    border-radius: 10px;
    color: #fff7d6;
    text-shadow:
        1px 1px 0 #000,
        0 0 4px rgba(0, 0, 0, 0.85);
    font-size: 9px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.1px;
    transform-origin: center center;
    transition: transform 4.2s cubic-bezier(0.12, 0.72, 0.12, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.forge-wheel-icon {
    font-size: 18px;
    line-height: 1;
}

.forge-wheel-amount {
    color: #ffe38a;
    font-size: 8px;
    font-weight: 900;
}

.forge-wheel-footer {
    position: relative;
    z-index: 2;
    text-align: center;
}

.forge-wheel-result {
    min-height: 36px;
    margin: 2px auto 10px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 216, 130, 0.24);
    background: rgba(0, 0, 0, 0.24);
    color: #fff2bd;
    font-size: 13px;
    font-weight: 900;
    text-shadow: 1px 1px 0 #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forge-wheel-result.reward-hot {
    color: #ffe38a;
    box-shadow:
        inset 0 0 12px rgba(255, 184, 74, 0.16),
        0 0 12px rgba(255, 149, 42, 0.22);
}

.forge-wheel-spin-btn {
    width: min(72vw, 240px);
    height: 48px;
    border: 2px solid #ffe38a;
    border-radius: 999px;
    background:
        linear-gradient(180deg, #ffd76b 0%, #e98a2d 42%, #8f2f18 100%);
    color: #241006;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 1000;
    letter-spacing: 1px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    box-shadow:
        0 5px 0 #3b140c,
        0 0 14px rgba(255, 160, 48, 0.42);
    cursor: pointer;
}

.forge-wheel-spin-btn:active {
    transform: translateY(3px);
    box-shadow:
        0 2px 0 #3b140c,
        0 0 10px rgba(255, 160, 48, 0.38);
}

.forge-wheel-spin-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.forge-wheel-spin-btn.is-claimed,
.forge-wheel-spin-btn.is-claimed:disabled {
    border-color: rgba(190, 190, 190, 0.62);
    background:
        linear-gradient(180deg, #8b8b8b 0%, #5d5d5d 48%, #323232 100%);
    color: #d9d9d9;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
    box-shadow:
        0 5px 0 #181818,
        inset 0 0 12px rgba(255, 255, 255, 0.08);
    opacity: 0.82;
    cursor: not-allowed;
}

.forge-wheel-spin-btn.is-claimed:active {
    transform: none;
    box-shadow:
        0 5px 0 #181818,
        inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.forge-wheel-test-note {
    margin-top: 9px;
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 247, 214, 0.58);
}

@media (max-height: 650px) {
    .forge-wheel-card {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .forge-wheel-stage {
        width: min(66vw, 255px);
        height: min(66vw, 255px);
        margin-top: 4px;
        margin-bottom: 8px;
    }

    .forge-wheel-title {
        font-size: 24px;
    }

    .forge-wheel-subtitle,
    .forge-wheel-test-note {
        display: none;
    }
}

.reward-feedback-overlay.forge-wheel-reward-claim-mode {
    z-index: 31000;
    cursor: default;
}

.reward-feedback-overlay.forge-wheel-reward-claim-mode .reward-feedback-reward-row {
    margin-bottom: 18px;
}

.reward-feedback-overlay.forge-wheel-reward-claim-mode .reward-feedback-part {
    font-size: 22px;
    color: #fff2bd;
    text-shadow:
        2px 2px 0 #000,
        0 0 9px rgba(255, 199, 75, 0.45);
}

.reward-feedback-overlay.forge-wheel-reward-claim-mode .reward-feedback-part.ton {
    color: #7fe7ff;
}

.reward-feedback-overlay.forge-wheel-reward-claim-mode .reward-feedback-part.dust {
    color: #7eeeff;
    text-shadow:
        2px 2px 0 #00121a,
        0 0 8px rgba(72, 219, 255, 0.72),
        0 0 14px rgba(25, 143, 255, 0.42);
}

.reward-feedback-overlay.forge-wheel-reward-claim-mode .reward-feedback-icon-row {
    position: relative;
    isolation: isolate;
    width: min(82vw, 280px);
    margin-bottom: 18px;
}

.reward-feedback-overlay.forge-wheel-reward-claim-mode .reward-feedback-icon {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    object-fit: contain;
    filter:
        drop-shadow(0 3px 3px rgba(0, 0, 0, 0.78)) drop-shadow(0 0 12px rgba(255, 245, 180, 0.42));
}

.forge-wheel-reward-claim-button {
    position: relative;
    z-index: 3;
    width: min(62vw, 190px);
    height: 46px;
    margin-top: 4px;
    border: 2px solid #ffe38a;
    border-radius: 999px;
    background:
        linear-gradient(180deg, #fff0a8 0%, #ffc24f 38%, #e77c29 100%);
    color: #241006;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 1000;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    box-shadow:
        0 5px 0 #3b140c,
        0 0 16px rgba(255, 170, 48, 0.45);
    cursor: pointer;
}

.forge-wheel-reward-claim-button:active {
    transform: translateY(3px);
    box-shadow:
        0 2px 0 #3b140c,
        0 0 10px rgba(255, 170, 48, 0.38);
}

.forge-wheel-close.is-hidden {
    display: none;
}

.forge-wheel-spin-btn.is-ask-friend {
    border-color: #8fffe7;
    background:
        linear-gradient(180deg, #bffff2 0%, #32d7bb 42%, #107464 100%);
    color: #061b18;
    box-shadow:
        0 5px 0 #06362f,
        0 0 16px rgba(65, 255, 216, 0.38);
}

.forge-wheel-spin-btn.is-bonus-ready {
    border-color: #fff6a8;
    background:
        linear-gradient(180deg, #fff7b8 0%, #ffcc48 42%, #c85b1d 100%);
    color: #241006;
    box-shadow:
        0 5px 0 #4a180b,
        0 0 18px rgba(255, 221, 87, 0.48);
}