

.spin-page {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding-bottom: 16px;
}

.spin-page::before {
    content: "";
    position: absolute;
    inset: -20px -60px 0 -60px;
    background:
        radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255, 140, 40, 0.12), transparent 55%),
        radial-gradient(ellipse 80% 50% at 30% 40%, rgba(180, 80, 255, 0.06), transparent 50%),
        radial-gradient(ellipse 80% 50% at 70% 60%, rgba(255, 80, 120, 0.05), transparent 50%);
    z-index: -2;
}

.spin-page::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.04), transparent 65%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.3), transparent 75%),
        linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

.daily-bonus-spin-card {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 140, 0, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px;
}

.daily-bonus-spin-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.daily-bonus-spin-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.daily-bonus-spin-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.daily-bonus-spin-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.daily-bonus-spin-amount {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.daily-bonus-spin-btn {
    padding: 10px 20px;
    min-width: 100px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #000;
    border: none;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.35);
    transition: all 0.2s ease;
}

.daily-bonus-spin-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.45);
}

.daily-bonus-spin-btn:disabled,
.daily-bonus-spin-btn.disabled {
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.4), rgba(96, 96, 96, 0.4));
    color: rgba(255, 255, 255, 0.45);
    cursor: not-allowed;
    box-shadow: none;
}

.daily-bonus-spin-timer {
    font-family: var(--font-accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}


.wheel-frame {
    position: relative;
    background:
        radial-gradient(ellipse 140% 80% at 50% 0%, rgba(255, 140, 40, 0.08), transparent 70%),
        radial-gradient(ellipse 120% 60% at 50% 100%, rgba(180, 80, 255, 0.06), transparent 65%),
        linear-gradient(180deg, rgba(10, 12, 18, 0.92), rgba(8, 10, 15, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 68px 0 68px;
    box-shadow:
        0 55px 140px rgba(0, 0, 0, 0.85),
        inset 0 -40px 80px rgba(0, 0, 0, 0.65),
        inset 0 2px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    min-height: 320px;
    overflow: visible;
    margin-bottom: 24px;
}

.wheel-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 2px,
            transparent 80px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 2px,
            transparent 80px
        ),
        radial-gradient(ellipse 140% 80% at 50% 0%, rgba(255, 140, 40, 0.12), transparent 60%),
        radial-gradient(ellipse 120% 60% at 50% 100%, rgba(180, 80, 255, 0.08), transparent 55%),
        radial-gradient(circle at 30% 40%, rgba(255, 140, 40, 0.06), transparent 35%),
        radial-gradient(circle at 70% 60%, rgba(180, 80, 255, 0.05), transparent 35%),
        linear-gradient(180deg, rgba(15, 17, 23, 0.4), rgba(12, 14, 20, 0.6));
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}


.wheel-pointer {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.wheel-pointer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 28px solid transparent;
    border-right: 28px solid transparent;
    border-top: 40px solid #ff2e00;
    filter: drop-shadow(0 8px 20px rgba(255, 85, 0, 0.5))
            drop-shadow(0 0 16px rgba(255, 165, 0, 0.7))
            blur(1px);
    opacity: 0.6;
}

.wheel-pointer::after {
    content: "▼";
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    line-height: 1;
    font-weight: bold;
    background: linear-gradient(180deg, #fff9c4 0%, #ffeb3b 15%, #ffa726 45%, #ff5722 70%, #d32f2f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(255, 235, 59, 0.9))
            drop-shadow(0 2px 6px rgba(255, 87, 34, 0.8))
            drop-shadow(0 0 20px rgba(255, 152, 0, 0.6));
    animation: phoenixPulse 2s ease-in-out infinite;
}

@keyframes phoenixPulse {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(255, 235, 59, 0.9))
                drop-shadow(0 2px 6px rgba(255, 87, 34, 0.8))
                drop-shadow(0 0 20px rgba(255, 152, 0, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 235, 59, 1))
                drop-shadow(0 2px 10px rgba(255, 87, 34, 1))
                drop-shadow(0 0 32px rgba(255, 152, 0, 0.9));
    }
}


.reel-container {
    position: relative;
    overflow: visible;
    z-index: 2;
    
    padding: 48px 0 20px;
    margin: 0 auto;
    min-width: 100%;
}


.reel {
    display: flex;
    flex-direction: row;
    gap: 12px;
    position: relative;
    transition: transform 2400ms cubic-bezier(0.18, 0.72, 0.21, 1);
    will-change: transform;
    
}

.reel.instant {
    transition: none !important;
}

.reel.instant .prize-item {
    transition: none !important;
}

.reel.animating {
    transition: transform 2400ms cubic-bezier(0.18, 0.72, 0.21, 1);
}


.prize-item {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.6),
        inset 0 2px 8px rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: scale(0.88);
    transition: all 300ms ease;
    backdrop-filter: blur(8px);
}

.prize-item.active {
    transform: scale(1.0);
    border-color: currentColor;
    border-width: 1.5px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.7),
        0 0 36px currentColor,
        inset 0 2px 10px rgba(255, 255, 255, 0.07);
}

.prize-item.active::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 12px;
    box-shadow: 0 0 28px currentColor, inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    opacity: 0.5;
}

.prize-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
}

.prize-icon {
    font-size: 52px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prize-item.active .prize-icon {
    font-size: 64px;
}


.prize-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 8px;
}

.prize-item.active .prize-image {
    width: 110px;
    height: 110px;
}


.prize-image.paused {
    animation: freeze 1s steps(1, end) infinite;
}

@keyframes freeze {
    0%, 100% { opacity: 1; }
}

.prize-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: inherit;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin-top: -4px;
}

.prize-item.active .prize-label {
    font-size: 16px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 12px currentColor;
}

.prize-title {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    display: none; 
}


.spin-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.spin-info {
    text-align: center;
    padding: 12px;
    background: rgba(178, 255, 90, 0.05);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--color-text-secondary);
}

.multiplier-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.multiplier-btn {
    flex: 1;
    max-width: 100px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

.multiplier-btn.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg);
    box-shadow: var(--shadow-glow);
}

.spin-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.spin-btn {
    flex: 1;
    font-size: 16px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ffd66a 0%, #ff9f2b 45%, #ff6d2e 100%);
    color: #1a0f08;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-weight: 800;
    letter-spacing: 0.4px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spin-btn .coin-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.spin-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spin-btn.spinning {
    animation: pulse 1.5s ease-in-out infinite;
}


.spin-settings {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 13px;
}

.spin-switch {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
}

.spin-switch-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.spin-switch-track {
    position: relative;
    width: 100px;
    height: 36px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.spin-switch-label {
    text-align: center;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.spin-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 46px;
    height: 29px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffd97a 0%, #ffab44 50%, #ff7a30 100%);
    box-shadow:
        0 6px 16px rgba(255, 136, 59, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 12px rgba(255, 152, 0, 0.4);
    transition: transform var(--transition-normal);
    z-index: 0;
}

.spin-switch-input:checked + .spin-switch-track .spin-switch-thumb {
    transform: translateX(0);
}

.spin-switch-input:not(:checked) + .spin-switch-track .spin-switch-thumb {
    transform: translateX(46px);
}

.spin-switch-caption {
    display: none;
}


/* Mobile adaptation for spin wheel */
@media (max-width: 480px) {
    .wheel-frame {
        min-height: 260px;
        padding: 48px 0 52px;
        margin-bottom: 16px;
    }

    .prize-item {
        flex: 0 0 100px;
        width: 100px;
        height: 100px;
    }

    .prize-icon {
        font-size: 40px;
    }

    .prize-item.active .prize-icon {
        font-size: 44px;
    }

    .prize-image {
        width: 55px;
        height: 55px;
    }

    .prize-item.active .prize-image {
        width: 65px;
        height: 65px;
    }

    .spin-btn-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .spin-btn {
        width: 100%;
    }

    .spin-settings {
        width: 100%;
        justify-content: center;
    }

    .daily-bonus-spin-card {
        padding: 10px 12px;
        margin-top: 10%;
    }

    .daily-bonus-spin-btn {
        padding: 8px 16px;
        min-width: 90px;
        font-size: 12px;
    }
}

/* Small devices (iPhone 6/7/8, 375px) */
@media (max-width: 375px) {
    .wheel-frame {
        min-height: 240px;
        padding: 40px 0 48px;
        border-radius: 12px;
    }

    .wheel-pointer {
        width: 48px;
        height: 40px;
    }

    .wheel-pointer::before {
        border-left: 24px solid transparent;
        border-right: 24px solid transparent;
        border-top: 36px solid #ff2e00;
    }

    .wheel-pointer::after {
        font-size: 28px;
    }

    .prize-item {
        flex: 0 0 85px;
        width: 85px;
        height: 85px;
        border-radius: 14px;
    }

    .reel {
        gap: 10px;
    }

    .prize-icon {
        font-size: 36px;
    }

    .prize-item.active .prize-icon {
        font-size: 40px;
    }

    .prize-image {
        width: 48px;
        height: 48px;
    }

    .prize-item.active .prize-image {
        width: 56px;
        height: 56px;
    }

    .prize-label {
        font-size: 9px;
    }

    .result-prize {
        width: 200px !important;
        height: 200px !important;
    }

    .result-prize-icon {
        font-size: 85px;
    }

    .result-prize-image {
        width: 135px;
        height: 135px;
    }

    .result-title {
        font-size: 24px;
    }

    .result-congrats-title {
        font-size: 20px;
    }
}

/* Very small devices (iPhone SE, 320px) */
@media (max-width: 320px) {
    .spin-page {
        padding-bottom: 12px;
    }

    .wheel-frame {
        min-height: 220px;
        padding: 32px 0 40px;
        margin-bottom: 12px;
    }

    .wheel-pointer {
        width: 40px;
        height: 36px;
        top: 8px;
    }

    .wheel-pointer::before {
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-top: 32px solid #ff2e00;
    }

    .wheel-pointer::after {
        font-size: 24px;
    }

    .reel-container {
        padding: 40px 0 16px;
    }

    .prize-item {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
        border-radius: 12px;
    }

    .reel {
        gap: 8px;
    }

    .prize-icon {
        font-size: 30px;
    }

    .prize-item.active .prize-icon {
        font-size: 34px;
    }

    .prize-image {
        width: 40px;
        height: 40px;
    }

    .prize-item.active .prize-image {
        width: 46px;
        height: 46px;
    }

    .prize-label {
        font-size: 8px;
    }

    .prize-content {
        padding: 8px 4px;
    }

    .daily-bonus-spin-card {
        padding: 8px 10px;
        margin-bottom: 12px;
    }

    .daily-bonus-spin-icon {
        font-size: 28px;
    }

    .daily-bonus-spin-title {
        font-size: 12px;
    }

    .daily-bonus-spin-amount {
        font-size: 11px;
    }

    .daily-bonus-spin-btn {
        padding: 8px 14px;
        min-width: 80px;
        font-size: 11px;
    }

    .result-dialog-phoenix {
        padding: 16px;
    }

    .result-prize {
        width: 175px !important;
        height: 175px !important;
    }

    .result-prize-icon {
        font-size: 75px;
    }

    .result-prize-image {
        width: 115px;
        height: 115px;
    }

    .result-title {
        font-size: 20px;
    }

    .result-congrats-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .result-amount {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .result-stat-label {
        font-size: 12px;
    }

    .result-stat-value {
        font-size: 16px;
    }

    .result-close-btn {
        font-size: 14px;
        padding: 14px;
    }
}

/* Landscape mode - compact vertical layout */
@media (max-height: 500px) and (orientation: landscape) {
    .wheel-frame {
        min-height: 200px;
        padding: 30px 0 36px;
        margin-bottom: 12px;
    }

    .wheel-pointer {
        width: 40px;
        height: 36px;
        top: 6px;
    }

    .wheel-pointer::after {
        font-size: 24px;
    }

    .reel-container {
        padding: 36px 0 16px;
    }

    .prize-item {
        flex: 0 0 80px;
        width: 80px;
        height: 80px;
    }

    .prize-icon {
        font-size: 32px;
    }

    .prize-label {
        font-size: 8px;
    }

    .daily-bonus-spin-card {
        padding: 8px 12px;
        margin-bottom: 12px;
    }

    .spin-btn-wrapper {
        gap: 8px;
    }

    .result-dialog-phoenix {
        padding: 16px;
    }

    .result-prize {
        width: 160px !important;
        height: 160px !important;
    }

    .result-prize-icon {
        font-size: 70px;
    }

    .result-prize-image {
        width: 105px;
        height: 105px;
    }

    .result-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .result-congrats-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .result-amount {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .result-stats {
        gap: 10px;
        margin-bottom: 16px;
    }
}



.result-dialog-phoenix {
    position: relative;
    padding: 24px 24px 24px;
    text-align: center;
}

.result-congrats-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 20px;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.result-glow {
    position: absolute;
    inset: -40px;
    pointer-events: none;
    z-index: 0;
}

.result-prize-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    z-index: 1;
}

.result-prize {
    width: 200px !important;
    height: 200px !important;
    border-radius: 12px !important;
    background: radial-gradient(square at 50% 50%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
    border: 2px solid currentColor;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 40px currentColor,
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.result-prize::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.result-prize-icon {
    font-size: 80px;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.result-prize-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.result-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
    text-shadow: 0 2px 12px currentColor, 0 4px 20px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.result-amount {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px;
    font-weight: 600;
}

.result-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.result-stat {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.result-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.result-stat-value {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-reward-value {
    color: #ffa726;
    text-shadow: 0 0 12px rgba(255, 167, 38, 0.6);
}

.result-coin-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.result-close-btn {
    background: linear-gradient(135deg, #ffd66a 0%, #ff9f2b 45%, #ff6d2e 100%);
    color: #1a0f08;
    box-shadow: 0 12px 28px rgba(255, 146, 59, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-weight: 800;
    font-size: 16px;
    padding: 16px;
    border-radius: 12px;
}

.result-close-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 36px rgba(255, 146, 59, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
