/* ============================================================================
 * GAME OF WHEEL - STYLESHEET
 * ============================================================================ */

body {
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0f172a 60%, #020617 100%);
    min-height: 100vh;
    color: #f8fafc;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.8);
}

/* 3D Arcade Spin Button */
.spin-btn-3d {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
    box-shadow: 0 8px 0 #991b1b, 0 15px 25px rgba(239, 68, 68, 0.4);
    transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}
.spin-btn-3d:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 0 #991b1b, 0 20px 30px rgba(239, 68, 68, 0.55);
    filter: brightness(1.08);
}
.spin-btn-3d:active:not(:disabled) {
    transform: translateY(6px);
    box-shadow: 0 2px 0 #991b1b, 0 5px 10px rgba(239, 68, 68, 0.4);
}
.spin-btn-3d:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

/* Glassmorphism Cards */
.glass-panel {
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* Wheel Container Glow */
.wheel-glow {
    filter: drop-shadow(0 0 35px rgba(139, 92, 246, 0.35));
}

/* Winner Modal Pop & Jackpot Celebrations */
@keyframes modalPop {
    0% { transform: scale(0.65) translateY(25px); opacity: 0; }
    65% { transform: scale(1.05) translateY(-4px); opacity: 1; }
    85% { transform: scale(0.98) translateY(0); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.animate-modal-pop {
    animation: modalPop 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Rotating Golden Sunburst Rays Behind Winner Card */
@keyframes spinSunburst {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.winner-sunburst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 820px;
    height: 820px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(251, 191, 36, 0.22) 0deg 12deg,
        transparent 12deg 24deg
    );
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 15%, rgba(0,0,0,0) 68%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 15%, rgba(0,0,0,0) 68%);
    animation: spinSunburst 22s linear infinite;
    pointer-events: none;
}

/* Animated Shimmer Sweep Across Winner Banner */
@keyframes bannerShimmer {
    0% { transform: translateX(-140%) skewX(-22deg); }
    100% { transform: translateX(240%) skewX(-22deg); }
}
.winner-banner-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: bannerShimmer 2.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

/* Trophy Float & Glow Pulse */
@keyframes trophyFloat {
    0%, 100% { transform: translateY(0) rotate(3deg) scale(1); }
    50% { transform: translateY(-7px) rotate(-3deg) scale(1.07); }
}
.animate-trophy-float {
    animation: trophyFloat 2.4s ease-in-out infinite;
}

/* Pulsing Golden Ring Around Trophy */
@keyframes ringPulse {
    0% { transform: scale(0.95); opacity: 0.85; }
    100% { transform: scale(1.65); opacity: 0; }
}
.trophy-ring-pulse::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 1.5rem;
    border: 2px solid #fbbf24;
    animation: ringPulse 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
}

/* Winner Name Pop-Bounce */
@keyframes winnerTextPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
.animate-winner-text {
    animation: winnerTextPulse 1.8s ease-in-out infinite;
}

/* Stage / Big Screen Presentation Mode */
body.stage-mode #rightSidebarSection,
body.stage-mode #spinControlsCard {
    display: none !important;
}
body.stage-mode #mainGrid {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: calc(100vh - 4rem);
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}
body.stage-mode #wheelSection {
    width: 100%;
    max-width: 100%;
}
body.stage-mode #wheelWrapper {
    max-width: min(74vh, 88vw) !important;
}
body.stage-mode #centerHubBtn {
    width: 6.25rem;
    height: 6.25rem;
}
body.stage-mode #stageWinnersDock {
    display: flex !important;
}

