/* Подключение шрифта Pricedown */
@font-face {
    font-family: 'Pricedown';
    src: url('pricedown.ttf') format('truetype');
}

/* Основные стили для body */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: url('images/vice city.jpg') no-repeat center center/cover;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Стили для header */
header {
    background-color: rgba(0, 0, 0, 0.6);
    text-align: center;
    padding: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #ec6fae;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Основной контент */
.content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

/* КОНТЕЙНЕР ДЛЯ ВСЕХ КНОПОК */
.buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    margin-top: 20px;
}

/* Стили для кнопок - УЛУЧШЕННЫЕ И КРАСИВЫЕ */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #e9539d 0%, #c2185b 100%);
    color: white;
    font-size: 16px;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 40px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    min-width: 280px;
}

.btn:hover {
    background: linear-gradient(135deg, #ff66b5 0%, #e91e63 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* ОРИГИНАЛЬНЫЙ СТИЛЬ button-wrapper */
.button-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Стили для footer */
footer {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
}

/* Стили для часов */
.clock {
    font-family: 'Pricedown', sans-serif;
    font-size: 30px;
    color: #56b8f7;
    text-shadow: 2px 2px 5px black;
    position: absolute;
    top: 90px;
    right: 70px;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Стили для показателей (деньги, броня, здоровье) */
.stats {
    position: absolute;
    top: 150px;
    right: 48px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.stat {
    font-family: 'Pricedown', sans-serif;
    font-size: 24px;
    text-shadow: 1px 1px 5px black;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Стили для денег */
.money {
    color: #01ce87;
}

/* Стили для брони */
.armor {
    color: #b8b8b8;
}

/* Иконка брони в стиле Vice City */
.armor::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #a0a0a0 0%, #707070 50%, #909090 100%);
    clip-path: polygon(50% 0%, 85% 20%, 100% 50%, 85% 80%, 50% 100%, 15% 80%, 0% 50%, 15% 20%);
    border-radius: 5px 5px 8px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid #c0c0c0;
    vertical-align: middle;
}

/* Стили для здоровья */
.health {
    color: #ff92e8;
}

.health::before {
    content: '♥';
    font-size: 32px;
    color: #ff69b4;
    margin-right: 5px;
    text-shadow: 0 0 3px #ff1493;
}

/* Группа для брони и здоровья */
.stat-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Стили для звёзд */
.stars {
    position: absolute;
    top: 230px;
    right: 43px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    font-size: 50px;
    color: #65c4f6;
    z-index: 1000;
    opacity: 0;
    animation: showStars 1s forwards;
    cursor: pointer;
}

@keyframes showStars {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.star {
    font-family: 'Pricedown', sans-serif;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

/* Радио ссылка */
.radio-link {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.radio-btn {
    padding: 15px 30px;
    background-color: #ff33cc;
    color: white;
    font-size: 20px;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    border-radius: 30px;
    border: 2px solid #ff33cc;
    box-shadow: 0 0 20px rgba(255, 51, 204, 0.8);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.radio-btn:hover {
    background-color: #ff66cc;
    box-shadow: 0 0 30px rgba(255, 102, 204, 1);
}

.radio-btn:focus {
    outline: none;
    box-shadow: 0 0 30px rgba(255, 51, 204, 1), 0 0 10px rgba(255, 51, 204, 0.5);
}

/* ========== АНИМАЦИИ ДЛЯ ДЕНЕГ, БРОНИ И ЗДОРОВЬЯ ========== */

/* Анимация для денег */
.money-flash {
    animation: moneyPulse 0.3s ease-in-out;
}

@keyframes moneyPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0px #01ce87;
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 15px #01ce87;
        color: #00ffaa;
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 0px #01ce87;
    }
}

/* Анимация для брони и здоровья */
.stat-flash {
    animation: statPulse 0.3s ease-in-out;
}

@keyframes statPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Дополнительная анимация для денег при большом изменении */
.money-big-change {
    animation: moneyBigPulse 0.5s ease-in-out;
}

@keyframes moneyBigPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0px #01ce87;
    }
    30% {
        transform: scale(1.2);
        text-shadow: 0 0 20px #01ce87;
        color: #ff00aa;
    }
    60% {
        transform: scale(1.1);
        text-shadow: 0 0 10px #01ce87;
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 0px #01ce87;
    }
}

/* ========== АДАПТИВНЫЕ СТИЛИ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ========== */

@media (max-width: 576px) {
    header {
        font-size: 18px;
        padding: 10px;
    }

    .content {
        padding: 10px;
    }

    .clock {
        font-size: 20px;
        top: 70px;
        right: 10px;
        padding: 3px 6px;
    }

    .stats {
        top: 100px;
        right: 10px;
        gap: 5px;
    }

    .stat {
        font-size: 18px;
    }

    .armor::before {
        width: 20px;
        height: 20px;
    }

    .health::before {
        font-size: 24px;
    }

    .stat-group {
        gap: 10px;
    }

    .stars {
        top: 180px;
        right: 10px;
        font-size: 30px;
        gap: 5px;
    }

    .radio-link {
        margin-top: 15px;
    }

    .radio-btn {
        font-size: 16px;
        padding: 10px 20px;
    }

    footer {
        padding: 5px;
        font-size: 14px;
    }

    /* Адаптивные стили для кнопок */
    .btn {
        font-size: 13px;
        padding: 10px 20px;
        min-width: 240px;
    }
    
    .buttons-container {
        gap: 10px;
        padding: 15px;
    }
}