/* GamiPress Wheel Spinner Styles */

.gpws-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px 20px;
    background: radial-gradient(circle at top, #1f2a3c 0%, #0b1119 60%, #05070c 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    max-width: 640px;
    margin: 0 auto;
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gpws-container::before,
.gpws-container::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.18), transparent 70%);
    filter: blur(2px);
    z-index: 0;
    pointer-events: none;
}

.gpws-container::before {
    top: -120px;
    left: -150px;
}

.gpws-container::after {
    bottom: -160px;
    right: -120px;
}

.gpws-wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.gpws-wheel-wrapper canvas#gpws-wheel {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    display: block;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.05),
        0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Pointer arrow */
.gpws-pointer {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 48px solid #ff6b6b;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    z-index: 5;
    animation: pointer-bounce 2s ease-in-out infinite;
}

.gpws-pointer::before {
    content: "";
    position: absolute;
    top: -44px;
    left: -24px;
    width: 0;
    height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 44px solid #ff5252;
}

/* Spin button */
.gpws-spin-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow:
        0 12px 30px rgba(86, 102, 231, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition:
        transform 0.15s ease-out,
        box-shadow 0.15s ease-out,
        background 0.2s ease-out;
}

.gpws-spin-button .button-icon {
    font-size: 20px;
}

.gpws-spin-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.3), transparent 60%);
    opacity: 0.0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

.gpws-spin-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 40px rgba(86, 102, 231, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.gpws-spin-button:hover::before {
    opacity: 1;
}

.gpws-spin-button:active {
    transform: translateY(0);
    box-shadow:
        0 8px 20px rgba(86, 102, 231, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

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

/* Winner display overlay (always flex, hidden via opacity) */
.gpws-winner-display {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
}

.gpws-winner-display.show {
    opacity: 1;
    pointer-events: auto;
}

.gpws-winner-display .winner-content {
    background: linear-gradient(145deg, #131b28, #0c1420);
    border-radius: 18px;
    padding: 28px 32px;
    margin: 0 20px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    text-align: center;
    position: relative;
    max-width: 1024px;
    color: #ffffff;
}

.winner-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.16);
    color: #ffd700;
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.winner-name {
    display: block;
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 4px;
    word-break: break-word;
}

.close-winner {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
	background-image: none !important;
	padding: 10px !important;
    color: #ffffff;
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.15s ease-out,
        transform 0.12s ease-out;
}

.close-winner:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Animations */
@keyframes pointer-bounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(4px);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .gpws-container {
        padding: 28px 16px;
        gap: 18px;
    }

    .gpws-wheel-wrapper {
        max-width: 360px;
    }

    .winner-name {
        font-size: 20px;
    }

    .gpws-winner-display .winner-content {
        padding: 22px 24px;
    }
}

/* Elementor compatibility */
.elementor-widget .gpws-container {
    width: 100%;
    max-width: 100%;
}
