body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Фиолетовый градиентный фон */
    overflow: hidden;
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    position: relative;
}

#mainMenu h1 {
    font-size: 48px;
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#mainMenu button, #shopScreen button {
    padding: 15px 30px;
    font-size: 20px;
    margin: 10px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #87CEEB; /* Светлый синий цвет */
    color: #333; /* Темный текст для лучшей читаемости */
    transition: background-color 0.3s;
}

#mainMenu button:hover, #shopScreen button:hover {
    background-color: #5F9EA0; /* Более темный синий при наведении */
}

.holderamb-credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 14px;
    color: #777;
}

#shopScreen h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#totalPointsDisplay {
    font-size: 22px;
    margin-bottom: 30px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#skinsContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.skin-item {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    width: 150px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.skin-item img { 
    width: 100px; 
    height: 60px; 
    margin-bottom: 10px;
    border: 1px solid #eee;
    object-fit: contain;
}

.skin-item p {
    margin: 5px 0;
    font-size: 16px;
}

.skin-item button {
    padding: 8px 15px;
    font-size: 14px;
    margin-top: 10px;
    width: 100%;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.skin-item button.buy-button {
    background-color: #007bff;
}
.skin-item button.buy-button:hover:not(:disabled) {
    background-color: #0056b3;
}

.skin-item button.select-button {
    background-color: #28a745;
}
.skin-item button.select-button:hover {
    background-color: #1e7e34;
}

.skin-item button.equipped-button {
    background-color: #6c757d;
    cursor: default;
}
.skin-item button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

#gameContainer {
    flex-direction: column;
    align-items: center;
}

#gameArea {
    width: 800px;
    height: 600px;
    border: 2px solid black;
    position: relative;
    overflow: hidden;
    background-color: #8A2BE2; /* Фиолетовый цвет фона */
    margin-top: 10px;
}

#backgroundImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Красивый градиентный фон */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4; /* Прозрачность фонового изображения */
    z-index: 1;
}

#playerCloud {
    width: 120px; 
    height: 72px; 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    bottom: 10px;
    box-sizing: border-box;
    z-index: 10; /* Отображается поверх фонового изображения */
}

.fallingObject { 
    /* width и height будут задаваться через JS */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    box-sizing: border-box;
    z-index: 10; /* Отображается поверх фонового изображения */
}

#scoreBoard {
    margin-top: 10px;
    font-size: 24px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.leaderboard-btn {
    padding: 15px 30px;
    font-size: 20px;
    margin: 10px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #87CEEB; /* Светлый синий цвет */
    color: #333; /* Темный текст для лучшей читаемости */
    transition: background-color 0.3s;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
}
.leaderboard-btn:hover {
    background-color: #5F9EA0; /* Более темный синий при наведении */
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.leaderboard-item {
    display: flex;
    align-items: center;
    font-size: 20px;
    margin-bottom: 10px;
}
.leaderboard-rank {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    color: white;
    margin-right: 15px;
    font-size: 20px;
}
.leaderboard-rank.rank-1 {
    background: #2196F3;
    box-shadow: 0 0 8px #2196F3;
}
.leaderboard-rank.rank-2 {
    background: #C0C0C0;
    color: #333;
    box-shadow: 0 0 8px #C0C0C0;
}
.leaderboard-rank.rank-3 {
    background: #cd7f32;
    box-shadow: 0 0 8px #cd7f32;
}
.leaderboard-nick {
    flex: 1;
    text-align: left;
    font-weight: 500;
    color: #222;
}
.leaderboard-score {
    margin-left: 10px;
    font-weight: bold;
    color: #444;
}