.wheel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wheel-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
    justify-content:center;
}

@media (min-width: 968px) {
    .wheel-layout {
        grid-template-columns: 1fr 400px;
    }
}

.wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
}

.wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.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 #dc3545;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.3));
    z-index: 10;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #003366;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s;
}

.wheel-center:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.wheel-center:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.spin-button {
    margin-top: 20px;
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.spin-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

.spin-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.controls-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
}

.input-group input:focus {
    outline: none;
    border-color: #003366;
}

.input-group button {
    padding: 12px 25px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.input-group button:hover {
    background: #002244;
}

.names-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
}

.name-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    margin-bottom: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.name-item:hover {
    background: #e9ecef;
}

.name-item span {
    flex: 1;
    font-weight: 500;
}

.name-item button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.name-item button:hover {
    background: #c82333;
}

.winner-announcement {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    padding: 40px 60px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    z-index: 1000;
    text-align: center;
    transition: transform 0.3s;
}

.winner-announcement.show {
    transform: translate(-50%, -50%) scale(1);
}

.winner-announcement h2 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 28px;
}

.winner-announcement .winner-name {
    font-size: 36px;
    color: #28a745;
    font-weight: bold;
    margin: 20px 0;
}

.winner-announcement button {
    margin-top: 20px;
    padding: 12px 30px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    display: none;
}

.overlay.show {
    display: block;
}

.control-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.control-buttons button {
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.clear-btn {
    background: #dc3545;
    color: white;
}

.clear-btn:hover {
    background: #c82333;
}

.shuffle-btn {
    background: #ffc107;
    color: #000;
}

.shuffle-btn:hover {
    background: #e0a800;
}

/* Multiplayer Styles */
.room-setup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    z-index: 1001;
    min-width: 400px;
    text-align: center;
}

.room-setup h2 {
    color: #003366;
    margin-bottom: 20px;
}

.room-setup button {
    margin: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.create-room-btn {
    background: #28a745;
    color: white;
}

.create-room-btn:hover {
    background: #218838;
}

.join-room-btn {
    background: #007bff;
    color: white;
}

.join-room-btn:hover {
    background: #0056b3;
}

.solo-btn {
    background: #6c757d;
    color: white;
}

.solo-btn:hover {
    background: #5a6268;
}

.room-info {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.room-code {
    font-size: 24px;
    font-weight: bold;
    color: #003366;
    margin: 10px 0;
    letter-spacing: 2px;
}

.share-link {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    word-break: break-all;
    font-size: 14px;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 600;
}

.copy-btn:hover {
    background: #0056b3;
}

.participants-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.participant-item {
    display: flex;
    align-items: center;
    padding: 8px;
    margin: 5px 0;
    background: white;
    border-radius: 4px;
}

.participant-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28a745;
    margin-right: 10px;
}

.host-badge {
    background: #ffc107;
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
}

.spinning-indicator {
    background: #ff6b6b;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}