body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(ellipse at top, #1a2332 0%, #0f1419 40%, #080a0e 100%);
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(64, 224, 208, 0.08) 0%, transparent 70%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 170, 0.06) 0%, transparent 70%),
        radial-gradient(circle at 50% 50%, rgba(32, 178, 170, 0.04) 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
    animation: ambientGlow 12s ease-in-out infinite alternate;
}

@keyframes ambientGlow {
    0% { opacity: 0.6; }
    100% { opacity: 0.8; }
}

.header {
    text-align: center;
    padding: 25px 20px 20px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(209, 213, 219, 0.3);
    border-radius: 0 0 32px 32px;
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(64, 224, 208, 0.08);
    z-index: 1000;
    position: relative;
}

.title {
    font-size: 28px;
    font-weight: 600;
    color: #e1f5fe;
    margin: 0 0 20px 0;
    text-shadow: 
        0 0 8px rgba(64, 224, 208, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.week-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.week-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.week-btn {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 18px;
    border: 1px solid rgba(209, 213, 219, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: #e1f5fe;
    height: 44px;
    border-radius: 50px;
    min-width: 44px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 10px rgba(64, 224, 208, 0.05);
}

.week-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(64, 224, 208, 0.4);
    box-shadow: 
        0 12px 40px rgba(31, 38, 135, 0.3),
        0 0 15px rgba(64, 224, 208, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.week-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.week-selector {
    padding: 12px;
    border: 1px solid rgba(209, 213, 219, 0.3);
    width: 90px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: #e1f5fe;
    cursor: default;
    text-align: center;
    height: 44px;
    box-sizing: border-box;
    font-size: 18px;
    border-radius: 50px;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.week-label {
    font-size: 16px;
    color: #b3e5d1;
    font-weight: 500;
    text-shadow: 0 0 4px rgba(64, 224, 208, 0.15);
}

#wheelView {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
}

#wheelData {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: none;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wheelSvg {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 50%;
    border: 1px solid rgba(209, 213, 219, 0.2);
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.1),
        0 16px 28px rgba(0, 0, 0, 0.22),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.05),
        0 0 60px rgba(64, 224, 208, 0.15);
    transition: all 0.3s ease;
}

#wheelSvg:hover {
    box-shadow: 
        0 35px 60px rgba(0, 0, 0, 0.15),
        0 20px 35px rgba(0, 0, 0, 0.25),
        inset 0 3px 0 rgba(255, 255, 255, 0.15),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1),
        0 0 80px rgba(64, 224, 208, 0.25);
}

/* Desktop - controls in corners */
@media (min-width: 769px) {
    #wheelSvg {
        width: min(98vw, 98vh);
        height: min(98vw, 98vh);
    }
    .header {
        height: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }
    
    .title {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 20px;
        margin: 0;
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(209, 213, 219, 0.3);
        border-radius: 25px;
        box-shadow: 
            0 25px 45px rgba(0, 0, 0, 0.1),
            0 16px 28px rgba(0, 0, 0, 0.22),
            inset 0 2px 0 rgba(255, 255, 255, 0.2),
            0 0 40px rgba(64, 224, 208, 0.15);
    }
    
    .week-controls {
        position: absolute;
        top: 20px;
        left: 20px;
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(209, 213, 219, 0.3);
        border-radius: 25px;
        box-shadow: 
            0 25px 45px rgba(0, 0, 0, 0.1),
            0 16px 28px rgba(0, 0, 0, 0.22),
            inset 0 2px 0 rgba(255, 255, 255, 0.2),
            0 0 40px rgba(64, 224, 208, 0.15);
    }
    
    #wheelView {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
    }
}

/* Mobile - smaller text, bigger wheel */
@media (max-width: 768px) {
    .title {
        font-size: 20px;
        text-shadow: 
            0 0 10px rgba(64, 224, 208, 0.3),
            0 3px 6px rgba(0, 0, 0, 0.4);
    }
    
    .week-btn {
        font-size: 16px;
        padding: 8px 12px;
        height: 36px;
        min-width: 36px;
        border-radius: 36px;
    }
    
    .week-selector {
        font-size: 16px;
        height: 36px;
        width: 70px;
        padding: 8px;
        border-radius: 36px;
    }
    
    .week-label {
        font-size: 14px;
        text-shadow: 0 0 6px rgba(64, 224, 208, 0.2);
    }
    
    .header {
        padding: 15px 10px 12px 10px;
        flex-shrink: 0;
        border-radius: 0 0 35px 35px;
    }
    
    #wheelView {
        flex: 1;
        min-height: 0;
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
    }
    
    #wheelSvg {
        width: min(98vw, 95vh);
        height: min(98vw, 95vh);
        transition: transform 0.3s ease;
        aspect-ratio: 1 / 1;
        max-width: 95vh;
        max-height: 95vh;
    }
    
    #wheelSvg:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 18px;
    }
    
    .header {
        padding: 5px 3px 3px 3px;
    }
    
    .week-btn {
        padding: 6px 10px;
        height: 32px;
        min-width: 32px;
        font-size: 15px;
    }
    
    .week-selector {
        height: 32px;
        width: 65px;
        padding: 6px;
        font-size: 15px;
    }
    
    #wheelView {
        margin: 0;
        padding: 0;
    }
    
    #wheelSvg {
        width: min(95vw, 90vh);
        height: min(95vw, 90vh);
        aspect-ratio: 1 / 1;
        max-width: 90vh;
        max-height: 90vh;
    }
}  