* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #1a1b20;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    max-width: 1500px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 40px;
    font-size: 3em;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.right-panel {
    flex: 1;
}

.wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin-bottom: 30px;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 12px solid #333;
    background: #f0f0f0;
}

.pointer {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%) rotate(90deg);
    width: 40px;
    height: 40px;
    background: #ff4757;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.result {
    font-size: 1.5em;
    font-weight: bold;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 3px solid #e9ecef;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.spin-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    width: 100%;
}

.spin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 107, 107, 0.6);
}

.spin-btn:active {
    transform: translateY(0);
}

.spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Стили для чата */
.chat-container {
    background: #f8f9fa;
    border-radius: 20px;
    border: 3px solid #e9ecef;
    height: 650px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: white;
    padding: 20px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
}

.user-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.typing-indicator {
    color: #666;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.typing-indicator.visible {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: messageAppear 0.3s ease;
}

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

.bot-message {
    align-self: flex-start;
}

.message-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.message-content {
    background: white;
    padding: 15px 20px;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 80%;
    line-height: 1.4;
}

.bot-message .message-content {
    background: #667eea;
    color: white;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 5px;
}