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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.game-container {
    background: #000;
    border: 4px solid #FFD700;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    margin-bottom: 20px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 2.5em;
    color: #FFD700;
    text-shadow: 3px 3px 0px #FF6B35, 6px 6px 0px #000;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.header p {
    font-size: 1.1em;
    color: #E0E0E0;
    margin-bottom: 15px;
}

.score-display {
    display: flex;
    justify-content: space-between;
    background: #2C3E50;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
}

#gameCanvas {
    display: block;
    background: #5C94FC;
    border: 2px solid #333;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.controls {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    max-width: 800px;
}

.controls h3 {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.3em;
    text-align: center;
}

.control-section {
    margin-bottom: 15px;
}

.control-section h4 {
    color: #FF6B35;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.control-section p {
    color: #E0E0E0;
    line-height: 1.5;
    margin-bottom: 5px;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.telegram {
    background: linear-gradient(45deg, #0088cc, #00aaff);
    color: white;
}

.telegram:hover {
    background: linear-gradient(45deg, #006699, #0088cc);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.twitter {
    background: linear-gradient(45deg, #1da1f2, #0d8bd9);
    color: white;
}

.twitter:hover {
    background: linear-gradient(45deg, #0d8bd9, #0a7bc4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: #B0B0B0;
    font-size: 0.9em;
}

.game-status {
    position: relative;
}

.game-over, .game-win {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    z-index: 1000;
    min-width: 300px;
}

.game-over h2, .game-win h2 {
    margin-bottom: 15px;
    font-size: 1.8em;
}

.game-over button, .game-win button {
    background: #FF6B35;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

.game-over button:hover, .game-win button:hover {
    background: #E55A2B;
}

.hidden {
    display: none;
}

/* Social Media Styles */
.social-media {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.social-link.telegram {
    background: rgba(0, 136, 204, 0.9);
    color: white;
}

.social-link.telegram:hover {
    background: rgba(0, 136, 204, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}

.social-link.twitter {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

.social-link.twitter:hover {
    background: rgba(0, 0, 0, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .game-container {
        padding: 10px;
        border-width: 2px;
    }
    
    .controls {
        padding: 15px;
        margin: 15px 0;
    }
    
    .control-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
        letter-spacing: 1px;
    }
    
    .header p {
        font-size: 1em;
    }
    
    .controls h3 {
        font-size: 1.1em;
    }
    
    .control-section h4 {
        font-size: 1em;
    }
    
    .control-section p {
        font-size: 0.9em;
    }
}

/* Game animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.bounce {
    animation: bounce 0.6s;
}