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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.game-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 20px;
    max-width: 1200px;
    width: 100%;
}

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

.music-toggle {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid #667eea;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #667eea;
}

.music-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.music-toggle.playing {
    background: #667eea;
    color: white;
}

.music-toggle.playing:hover {
    background: #5568d3;
}

h1 {
    color: #333;
    font-size: 2em;
    margin-bottom: 15px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat {
    background: #f0f0f0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.1em;
}

.stat .label {
    color: #666;
    margin-right: 8px;
}

.stat .value {
    color: #333;
    font-weight: bold;
}

.delay-stat {
    background: #ffebee;
    border: 2px solid #d32f2f;
}

.delay-value {
    color: #d32f2f !important;
}

.header-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
}

.header-button:hover {
    background: #5568d3;
}

.header-button:active {
    transform: scale(0.98);
}

#gameCanvas {
    display: block;
    margin: 0 auto;
    background: #87CEEB;
    border-radius: 10px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.instructions {
    text-align: center;
    margin-top: 20px;
    color: #555;
}

.instructions p {
    margin-bottom: 15px;
    line-height: 1.6;
}

button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    margin: 5px;
}

button:hover {
    background: #5568d3;
}

button:active {
    transform: scale(0.98);
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 1000;
}

.game-over h2 {
    color: #d32f2f;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.game-over p {
    font-size: 1.3em;
    margin: 10px 0;
    color: #555;
}

.news-section {
    margin-top: 40px;
    padding: 30px;
    background: #fff8e1;
    border-radius: 10px;
    border-left: 4px solid #ffa726;
}

.news-section h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #ffa726;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-date {
    color: #ff8f00;
    font-weight: bold;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.news-content {
    color: #555;
    line-height: 1.6;
}

.news-content strong {
    color: #333;
}

.about-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.about-section h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.about-section h3 {
    color: #555;
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.about-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.articles-list {
    list-style: none;
    padding-left: 0;
}

.articles-list li {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    transition: transform 0.2s, box-shadow 0.2s;
}

.articles-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.articles-list a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    display: block;
    margin-bottom: 5px;
}

.articles-list a:hover {
    color: #5568d3;
    text-decoration: underline;
}

.article-date {
    color: #888;
    font-size: 0.9em;
    font-style: italic;
}

footer {
    text-align: center;
    color: white;
    margin-top: 20px;
    padding: 15px;
    font-size: 0.9em;
}

footer a {
    color: #ffd54a;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5em;
    }

    .stats {
        gap: 15px;
    }

    .stat {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}
