/* Стили для экрана окончания игры (победа и поражение) */
.game-end-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 2000;
    color: white;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    padding: 0;
}

/* Фон для экрана поражения */
.game-over-background {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Фон для экрана победы */
.win-background {
    background-color: rgba(30, 30, 80, 0.9);
}

/* Хедер экрана окончания игры */
.game-end-header {
    width: 100%;
    padding: 8px;
    text-align: center;
    background-color: rgba(10, 10, 42, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.game-end-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    text-align: center;
    text-shadow: 0 0 10px #5050ff;
}

.game-end-message {
    font-size: 16px;
    text-align: center;
    margin: 8px;
}

/* Основной контент - область скриншота */
.game-end-content {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    background-color: rgba(10, 10, 42, 0.8);
}

.screenshot-container {
    width: 100%;
    max-width: 500px;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(10, 10, 42, 0.8);
}

.screenshot-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Футер с кнопками */
.game-end-footer {
    width: 100%;
    background-color: rgba(10, 10, 42, 0.8);
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 12px;
    padding-bottom: 40px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
}

.game-end-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
}

.game-end-button {
    padding: 10px 10px;
    background-color: #5050ff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: normal;
    box-shadow: 0 4px 6px rgba(80, 100, 255, 0.4);
    transition: background-color 0.2s, transform 0.1s;
    width: 100%;
    text-align: center;
    margin-top: 0px;
}

.game-end-button:hover {
    background-color: #6060ff;
}

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

.share-button, .restart-button, .continue-button {
    background-color: #5050ff;
}

/* Анимация появления экрана */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

