* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.main-container {
    text-align: center;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    margin-bottom: 5px;
}

#counter {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 600;
}

.wheel-box {
    position: relative;
    display: inline-block;
    width: 500px;
    height: 500px;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
}

.pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #D32F2F;
    z-index: 10;
}

#spinBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 3px solid #fff;
    background-color: #2196F3;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 5;
    transition: transform 0.1s, background-color 0.2s;
}

#spinBtn:hover {
    background-color: #1976D2;
    transform: translate(-50%, -50%) scale(1.05);
}

#spinBtn:disabled {
    background-color: #9E9E9E;
    cursor: not-allowed;
    transform: translate(-50%, -50%);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.modal-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.modal-content h2 {
    color: #333;
    margin-bottom: 15px;
}

#winnerName {
    font-size: 24px;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 20px;
}

#closeModal {
    padding: 10px 25px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#closeModal:hover {
    background: #388E3C;
}