/* Wheel Screen Styles */
.wheel-screen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 20px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.wheel-title {
    color: #fff;
    font-size: 28px;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    to { text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4); }
}

/* Wheel Container */
.wheel-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 20px auto;
}

/* Outer Ring */
.wheel-outer-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffd700, #ff8c00);
    box-shadow:
        0 0 0 8px #b8860b,
        0 0 0 12px #8b6914,
        0 0 40px rgba(255, 215, 0, 0.6),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    padding: 12px;
    box-sizing: border-box;
}

/* Lights around wheel */
.wheel-lights {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
}

.wheel-light {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px #ffd700;
    animation: blink 0.5s ease-in-out infinite alternate;
}

@keyframes blink {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Wheel itself */
.wheel-spin-container {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0s;
}

.wheel-spin-container.spinning {
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Center button */
.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #fff, #e0e0e0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.8);
    z-index: 10;
    border: 4px solid #ffd700;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wheel-center:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.8);
}

.wheel-center:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.wheel-center.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Pointer/Arrow */
.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #ff4444;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
    z-index: 20;
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: -38px;
    left: -15px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #ff6666;
}

/* Spin Button */
.spin-button {
    margin-top: 30px;
    padding: 18px 50px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow:
        0 6px 20px rgba(238, 90, 82, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.spin-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(238, 90, 82, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.spin-button:active {
    transform: translateY(0);
}

.spin-button:disabled {
    background: linear-gradient(145deg, #666, #555);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Prize Popup */
.prize-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.prize-popup-content {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 90%;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.prize-popup h2 {
    color: #ffd700;
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.prize-name {
    color: #fff;
    font-size: 24px;
    margin: 20px 0;
    padding: 15px 30px;
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    border-radius: 10px;
    display: inline-block;
}

.prize-popup p {
    color: #aaa;
    margin-top: 20px;
    font-size: 14px;
}

.prize-popup button {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 16px;
    background: linear-gradient(145deg, #ffd700, #ff8c00);
    color: #000;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.prize-popup button:hover {
    transform: scale(1.05);
}

/* Confetti */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 2001;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Back button for wheel screen */
.wheel-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    z-index: 100;
}

.wheel-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
