body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
    color: #ffffff;

    background: linear-gradient(135deg, #0f172a, #020617);
    overflow: hidden;
}

.card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    text-align: center;
    width: 95%;
    max-width: 580px;
    /* Оптимальная ширина для пропорций */
    visibility: hidden;
}

h1 {
    font-size: 34px;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-seo {
    position: absolute;
    bottom: 5px; /* Совсем у края экрана */
    width: 100%;
    text-align: center;
    opacity: 0.02; /* Почти полная прозрачность (2%) */
    pointer-events: none; /* Нельзя нажать или выделить */
}

.seo-text {
    font-size: 10px;
    color: #ffffff;
    user-select: none; /* Защита от случайного выделения пользователем */
}

/* ОСНОВНОЙ ГРИД */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.unit {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value {
    font-size: clamp(32px, 5vw, 42px);
    /* Адаптивный размер */
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* ЛИНИЯ-РАЗДЕЛИТЕЛЬ */
.divider {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(-5deg);
    visibility: hidden;
}

/* НИЖНИЙ ТАЙМЕР */
.target-timer {
    border: none;
}

.target-label {
    font-size: 20px;
    opacity: 0.4;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.target-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 30px;
    /* Чуть меньше основного для иерархии */
    color: rgb(255, 255, 255);
    font-weight: 600;
    font-family: inherit;
}

.target-grid span {
    font-variant-numeric: tabular-nums;
}

/* Стили новой маленькой панели */
.dooms-container {
    background-color: rgba(255, 255, 255, 0.05);
    /* Полупрозрачный фон */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Тонкая рамка */
    border-radius: 12px;
    /* Скругление как на сайте */
    padding: 15px 25px;
    text-align: center;
    min-width: 300px;
    visibility: hidden;
}

.dooms-label {
    color: #888;
    /* Серый неброский цвет для подписи */
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    visibility: hidden;
}

.dooms-grid {
    color: #ffffff;
    /* Белые цифры */
    font-size: 24px;
    /* Размер чуть меньше основного таймера */
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    /* Моноширинный шрифт, чтобы цифры не дергались */
    visibility: hidden;
}

.static-row {
    font-size: 24px;
    visibility: hidden;
}

#dooms-display span {
    display: inline-block;
    min-width: 35px;
    /* Резервируем место под цифры */
    visibility: hidden;
}

.stats-wrap {
    margin-top: 25px;
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
    /* Элементы встают друг под друга */
    align-items: center;
    gap: 8px;
    /* Расстояние между заголовком и цифрами */
}

/* Стиль самого заголовка */
.stats-label {
    font-size: 24px;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
}

.stats-label1 {
    font-size: 20px;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Стиль строки с цифрами (оставляем как было, но убираем лишний margin) */
.stats-row {
    font-size: 1.3rem;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-weight: 400;
    font-family: 'Segoe UI', sans-serif;
    font-variant-numeric: tabular-nums;
}

.stats-divider {
    color: #444;
    /* Тусклый разделитель */
}

#percentage-count {
    color: #00ff88;
    /* Можно выделить процент зеленым или синим */
    font-weight: 600;
}

/* МОДАЛЬНОЕ ОКНО (без изменений размеров) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.modal-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
}

.modal-content {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 16px;
}

#modalAudio {
    width: 100%;
    max-width: 500px;
    filter: invert(100%);
    opacity: 0.8;
}

.close {
    position: absolute;
    top: -45px;
    right: 0;
    color: white;
    font-size: 36px;
    cursor: pointer;
}