.wheel-page {
    min-height: calc(100vh - var(--header-height) - var(--menu-height));
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    overflow-y: auto;
}

.wheel-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.wheel-title {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-sm);
}

.wheel-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

.connection-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-color);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.status-indicator.connecting {
    background: var(--color-warning);
    animation: pulse 1.5s ease-in-out infinite;
}

.status-indicator.connected {
    background: var(--color-success);
}

.status-indicator.disconnected {
    background: var(--color-error);
}

.status-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.wheel-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 600px;
    margin: 0 auto;
}

.wheel-room-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.wheel-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.action-btn.primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.action-btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.action-btn.secondary {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.action-btn.secondary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    font-size: 1.125rem;
}

.btn-text {
    font-weight: 600;
}

.wheel-info-panel {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

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

.info-card li {
    color: var(--text-secondary);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: var(--spacing-lg);
}

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

.info-card li::before {
    content: '•';
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@media (max-width: 768px) {
    .wheel-page {
        padding: var(--spacing-md);
    }

    .wheel-title {
        font-size: 1.75rem;
    }

    .wheel-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .info-card {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .wheel-page {
        padding: var(--spacing-sm);
    }

    .wheel-title {
        font-size: 1.5rem;
    }

    .wheel-content {
        gap: var(--spacing-md);
    }
}

.wheel-top-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 20px;
}

.pot-info, .players-info {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 20px;
    min-width: 120px;
}

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

.pot-value {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
}

.players-value {
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
}

.wheel-container {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(45, 55, 72, 0.1) 100%);
    border-radius: 50%;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(59, 130, 246, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.wheel-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 #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.wheel-bottom-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-add-gift {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-add-gift:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-add-gift .btn-icon {
    font-size: 18px;
    font-weight: bold;
}

.wheel-canvas {
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.room-info-unified {
    display: none !important;
}

.game-hint {
    display: none !important;
}

.wheel-actions {
    text-align: center;
    margin-top: 20px;
}

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

.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;
}

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

@media (max-width: 768px) {
    .wheel-top-info {
        padding: 0 10px;
    }

    .pot-info, .players-info {
        min-width: 100px;
        padding: 10px 16px;
    }

    .wheel-container {
        height: 250px;
        margin: 15px auto;
    }

    .btn-add-gift {
        padding: 10px 20px;
        font-size: 14px;
    }
}

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

    .pot-value, .players-value {
        font-size: 16px;
    }

    .pot-label, .players-label {
        font-size: 11px;
    }
}

.wheel-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

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

.wheel-placeholder p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.wheel-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.wheel-error .error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.wheel-error p {
    margin: 0 0 20px 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.wheel-error .retry-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wheel-error .retry-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.wheel-container:has(.wheel-canvas) .wheel-placeholder,
.wheel-container:has(.wheel-canvas) .wheel-error {
    display: none;
}

.wheel-canvas {
    opacity: 0;
    animation: fadeInWheel 0.5s ease-out forwards;
}

@keyframes fadeInWheel {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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