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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.game-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1 {
    margin-bottom: 20px;
    font-size: 2em;
}

.score {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #FFD700;
    text-align: center;
    font-weight: bold;
    margin: 15px 0;
}

#gameCanvas {
    border: 3px solid #fff;
    border-radius: 10px;
    background: #000;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    cursor: crosshair;
}

.controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

button {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border: none;
    color: white;
    padding: 12px 24px;
    margin: 5px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

.send-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    font-size: 18px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.send-btn:hover {
    transform: translateY(-2px);
}

/* Стили для информации о пользователе */
.user-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.user-info h3 {
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 1.2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.user-item:last-child {
    border-bottom: none;
}

.user-item .label {
    font-weight: bold;
    opacity: 0.9;
}

.user-item .value {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
}

.user-item .value.premium {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    font-weight: bold;
}

.user-item .value.regular {
    background: rgba(255, 255, 255, 0.3);
}

.error {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-style: italic;
}

/* Стили для демо режима и информации о платформе */
.demo-warning {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
}

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

.platform-info h4 {
    margin: 0 0 15px 0;
    color: #667eea;
}

.platform-note {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9em;
    line-height: 1.4;
}

.platform-note strong {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Адаптивность */
@media (max-width: 480px) {
    .game-container {
        padding: 15px;
        margin: 10px;
    }
    
    #gameCanvas {
        width: 100%;
        max-width: 350px;
        height: auto;
    }
    
    .user-info {
        margin: 10px;
        padding: 15px;
    }
    
    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .user-item .value {
        align-self: stretch;
        text-align: center;
    }
}
