.connection-status-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6b7280;
}

.status-dot.connecting {
    background: #f59e0b;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: #10b981;
}

.status-dot.error {
    background: #ef4444;
}

.status-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.wheel-section {
    margin-bottom: 20px;
}

.wheel-container {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
}

.wheel-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.room-info {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
}

.info-item {
    text-align: center;
}

.info-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.info-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.wheel-actions {
    margin-bottom: 20px;
}

.wheel-actions .btn {
    margin-right: 12px;
    margin-bottom: 12px;
}

.wheel-info h3 {
    color: white;
    margin-bottom: 16px;
    font-size: 18px;
}

.wheel-info ul {
    list-style: none;
    padding: 0;
}

.wheel-info li {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wheel-info li:last-child {
    border-bottom: none;
}

.error-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.error-state .btn {
    margin-top: 16px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .wheel-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .wheel-actions .btn {
        margin: 0;
    }

    .room-info {
        flex-direction: column;
        gap: 16px;
    }
}

.room-info-unified {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.room-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 24px;
    width: 32px;
    text-align: center;
}

.info-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.info-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.info-value.status-waiting {
    color: #fbbf24;
}

.info-value.status-countdown {
    color: #f59e0b;
}

.info-value.status-spinning {
    color: #8b5cf6;
}

.info-value.status-finished {
    color: #10b981;
}

.hint-icon {
    font-size: 20px;
}

.hint-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.4;
}

.wheel-actions {
    text-align: center;
}

.btn.large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    min-height: 56px;
    width: 100%;
    max-width: 300px;
}

.btn.large .btn-icon {
    font-size: 24px;
}

.btn.enabled {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.btn.enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn.disabled {
    background: #4b5563;
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}

.secondary-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.secondary-actions .btn {
    min-width: 120px;
}

@media (max-width: 768px) {
    .room-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .info-item {
        padding: 10px;
    }

    .btn.large {
        font-size: 16px;
        padding: 14px 24px;
        min-height: 48px;
    }

    .secondary-actions {
        flex-direction: column;
        align-items: center;
    }

    .secondary-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .room-info-unified {
        padding: 16px;
    }

    .game-hint {
        padding: 10px 12px;
    }

    .hint-text {
        font-size: 13px;
    }
}

.wheel-ui-container {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(45, 55, 72, 0.1) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.wheel-ui-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.wheel-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.wheel-placeholder .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.wheel-placeholder p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.wheel-canvas {
    border-radius: 50%;
    box-shadow:
        0 0 20px rgba(99, 102, 241, 0.3),
        0 0 40px rgba(99, 102, 241, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.wheel-canvas:hover {
    transform: scale(1.02);
    box-shadow:
        0 0 30px rgba(99, 102, 241, 0.4),
        0 0 60px rgba(99, 102, 241, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.2);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .wheel-ui-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .wheel-ui-container {
        height: 200px;
    }

    .wheel-placeholder p {
        font-size: 13px;
    }
}