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

body {
    font-family: 'MS Sans Serif', 'Comic Sans MS', Arial, sans-serif;
    background: #c0c0c0 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"><rect width="2" height="2" fill="%23d4d0c8"/><rect x="2" y="2" width="2" height="2" fill="%23d4d0c8"/></svg>');
    color: #000;
    min-height: 100vh;
    padding: 16px;
    position: relative;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Верхняя навигация */
.top-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-btn {
    padding: 4px 12px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.1s;
    white-space: nowrap;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    text-align: center;
    min-width: 80px;
}

.nav-btn:active {
    border: 2px inset #c0c0c0;
    padding: 5px 11px 3px 13px; /* Смещение текста при нажатии */
}

.nav-btn:hover {
    background: #d4d0c8;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Заголовок в стиле Windows 95 */
.window-titlebar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px outset #c0c0c0;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.window-controls {
    display: flex;
    gap: 4px;
}

.window-control {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.window-content {
    background: #ffffff;
    border: 2px outset #c0c0c0;
    padding: 16px;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Таймер до конца ивента */
.timer-section {
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
    position: relative;
}

.timer-titlebar {
    margin-bottom: 0;
}

.timer-window {
    text-align: center;
    padding: 24px 16px !important;
    background: transparent !important;
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.timer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('timergif_v1.gif'); /* Путь к вашему изображению */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.4; /* Уменьшили прозрачность, чтобы фон был светлее */
}

.timer-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000080; /* Темно-синий цвет вместо зеленого */
    font-family: 'MS Sans Serif', 'Courier New', monospace;
    font-size: 48px;
    font-weight: bold;
    padding: 20px 40px;
    border: 4px outset #c0c0c0;
    box-shadow: 
        inset 2px 2px 0px #ffffff,
        inset -2px -2px 0px #808080,
        0px 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 320px;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0px #ffffff;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95); /* Почти белый полупрозрачный фон */
    backdrop-filter: blur(1px);
    border-radius: 4px;
}

.timer-days,
.timer-hours,
.timer-minutes,
.timer-seconds {
    display: inline-block;
    min-width: 60px;
    text-align: center;
    font-family: 'Courier New', monospace;
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0); /* Светлый градиент */
    padding: 6px 10px;
    border-radius: 3px;
    box-shadow: 
        inset 1px 1px 0px #ffffff,
        inset -1px -1px 0px #a0a0a0,
        0 2px 3px rgba(0, 0, 0, 0.1);
    margin: 0 2px;
    border: 1px solid #c0c0c0;
    color: #000080; /* Темно-синий цвет цифр */
    font-weight: bold;
}

.timer-separator {
    color: #000080; /* Темно-синий цвет двоеточий */
    margin: 0 10px;
    font-weight: bold;
    text-shadow: 1px 1px 0px #ffffff;
    position: relative;
    top: -2px; /* Немного поднимаем двоеточия для выравнивания */
}

/* Анимация для двоеточий */
@keyframes colonBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Применяем анимацию только к последнему двоеточию (между минутами и секундами) */
.timer-separator:last-child {
    animation: colonBlink 1s infinite;
}

/* Эффект для низких значений времени */
.timer-days.low,
.timer-hours.low,
.timer-minutes.low,
.timer-seconds.low {
    color: #ff0000; /* Красный цвет для предупреждения */
    background: linear-gradient(to bottom, #ffe0e0, #ffc0c0); /* Светло-красный градиент */
    text-shadow: 1px 1px 0px #ffffff;
    animation: pulseWarning 1s infinite;
}

@keyframes pulseWarning {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
    }
    50% { 
        opacity: 0.9;
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    }
}

/* Стили для состояния ивента (если завершен) */
.timer-completed .timer-display {
    color: #008000; /* Зеленый цвет для завершенного ивента */
    background: rgba(240, 255, 240, 0.95);
    border-color: #008000;
}

.timer-completed .timer-days,
.timer-completed .timer-hours,
.timer-completed .timer-minutes,
.timer-completed .timer-seconds {
    color: #008000;
    background: linear-gradient(to bottom, #e8f5e8, #d0f0d0);
    border-color: #008000;
}

.timer-completed .timer-separator {
    color: #008000;
}

/* Адаптивность для таймера */
@media (max-width: 992px) {
    .timer-display {
        font-size: 40px;
        min-width: 280px;
        padding: 18px 32px;
    }
    
    .timer-days,
    .timer-hours,
    .timer-minutes,
    .timer-seconds {
        min-width: 50px;
        padding: 5px 8px;
    }
    
    .timer-separator {
        margin: 0 8px;
    }
}

@media (max-width: 768px) {
    .timer-window {
        min-height: 120px;
        padding: 16px 12px !important;
    }
    
    .timer-display {
        font-size: 32px;
        min-width: 240px;
        padding: 14px 24px;
    }
    
    .timer-days,
    .timer-hours,
    .timer-minutes,
    .timer-seconds {
        min-width: 40px;
        padding: 4px 6px;
        margin: 0 1px;
    }
    
    .timer-separator {
        margin: 0 5px;
        top: -1px;
    }
}

@media (max-width: 480px) {
    .timer-window {
        min-height: 100px;
        padding: 12px 8px !important;
    }
    
    .timer-display {
        font-size: 24px;
        min-width: 200px;
        padding: 10px 16px;
        border-width: 3px;
    }
    
    .timer-days,
    .timer-hours,
    .timer-minutes,
    .timer-seconds {
        min-width: 30px;
        padding: 3px 4px;
    }
    
    .timer-separator {
        margin: 0 3px;
    }
}

@media (max-width: 360px) {
    .timer-display {
        font-size: 20px;
        min-width: 180px;
        padding: 8px 12px;
    }
    
    .timer-days,
    .timer-hours,
    .timer-minutes,
    .timer-seconds {
        min-width: 26px;
        padding: 2px 3px;
    }
}

/* Блок с елкой */
.tree-container {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.tree-image-wrapper {
    display: inline-block;
    position: relative;
    border: 2px outset #c0c0c0;
    padding: 4px;
    background: #ffffff;
    box-shadow: inset 1px 1px 0px #ffffff, inset -1px -1px 0px #808080;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.tree-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    border: 1px solid #808080;
}

/* Прогресс */
.progress-section {
    padding: 16px;
    background: #ffffff;
    border: 2px inset #c0c0c0;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-title {
    font-size: 14px;
    font-weight: bold;
    color: #000;
}

.progress-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-count {
    font-size: 20px;
    font-weight: bold;
    color: #000080;
}

.progress-bar-container {
    height: 20px;
    background: #c0c0c0;
    border: 2px inset #c0c0c0;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: #008000;
    transition: width 0.5s;
}

.progress-milestones {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 4px;
}

.milestone {
    font-size: 12px;
    color: #000;
    font-weight: bold;
}

.milestone.active {
    color: #ff0000;
}

/* Кнопки действий */
.actions-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 20px 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.action-btn {
    padding: 12px 16px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    font-family: 'MS Sans Serif', Arial, sans-serif;
}

.action-btn:active {
    border: 2px inset #c0c0c0;
    padding: 13px 15px 11px 17px; /* Смещение текста при нажатии */
}

.action-btn:hover {
    background: #d4d0c8;
}

.btn-icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.upload-icon {
    background-image: url('icons/downloading.png');
}

.post-icon {
    background-image: url('icons/add.png');
}

.like-icon {
    background-image: url('icons/like-button.png');
}

/* Награды */
.rewards-section {
    margin-top: 30px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #000080;
    text-shadow: 1px 1px 0px #ffffff;
}

.section-subtitle {
    font-size: 14px;
    color: #000;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.reward-card {
    background: #ffffff;
    border: 2px outset #c0c0c0;
    padding: 16px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.reward-card:hover {
    background: #f0f0f0;
}

.reward-card.locked {
    opacity: 0.7;
    background: #e0e0e0;
}

.reward-card.claimed {
    background: #e8f5e9;
    border-color: #4caf50;
}

.reward-card.claimed::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="%234CAF50" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.reward-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.reward-icon {
    width: 70px; /* Увеличиваем ширину */
    height: 70px; /* Увеличиваем высоту */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    background-size: contain; /* Изменяем с 70% на contain для полного отображения */
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0; /* Запрещаем сжатие */
    box-shadow: inset 1px 1px 0px #ffffff, inset -1px -1px 0px #808080;
}

.reward-card.locked .reward-icon {
    background: #a0a0a0 !important;
    filter: grayscale(1) !important;
    background-image: url('prizes/locked.png') !important;
    background-size: 100% !important;
    background-repeat: no-repeat;
    border: 2px inset #a0a0a0 !important;
}

.reward-card.claimed .reward-icon {
    background: #4caf50;
    border-color: #388e3c;
    background-size: contain; /* Для полученных наград тоже contain */
}

.reward-icon-1 {
    background-image: url('prizes/first_of_December.png');
}

.reward-icon-2 {
    background-image: url('prizes/northern_moss.png');
}

.reward-icon-3 {
    background-image: url('prizes/new_year_mood.png');
}

.reward-icon-4 {
    background-image: url('prizes/snowy_veil.png');
}

.reward-icon-5 {
    background-image: url('prizes/midnight_fir.png');
}

.reward-icon-6 {
    background-image: url('prizes/secret_santa.png');
}

.reward-icon-7 {
    background-image: url('prizes/lavender_ice.png');
}

.reward-icon-8 {
    background-image: url('prizes/irony_of_fate.png');
}

.reward-icon-9 {
    background-image: url('prizes/northern_breath.png');
}

.reward-icon-10 {
    background-image: url('prizes/chime.png');
}

.reward-icon-11 {
    background-image: url('prizes/quiet_snowy_field.png');
}

.reward-icon-12 {
    background-image: url('prizes/blueberries_in_the_snow.png');
}

.reward-icon-13 {
    background-image: url('prizes/glintwein_red.png');
}

.reward-icon-14 {
    background-image: url('prizes/legend_2025.png');
}

.reward-icon-15 {
    background-image: url('prizes/garland_glitter.png');
}

.reward-icon-16 {
    background-image: url('prizes/holly_red.png');
}

.reward-icon-17 {
    background-image: url('prizes/bethlehem_star.png');
}

.reward-icon-18 {
    background-image: url('prizes/sleepy_deer.png');
}

.reward-icon-19 {
    background-image: url('prizes/olive_champion.png');
}

.reward-icon-20 {
    background-image: url('prizes/christmas_tree.png');
}

.reward-icon-21 {
    background-image: url('prizes/holiday_lights.png');
}

.reward-icon-22 {
    background-image: url('prizes/winter_ice.png');
}

.reward-icon-23 {
    background-image: url('prizes/citrus_gourmet.png');
}

.reward-icon-24 {
    background-image: url('prizes/chronicler_of_the_moment.png');
}

.reward-card.claimed .reward-icon-1 {
    background-image: url('prizes/first_of_December.png');
}

.reward-card.claimed .reward-icon-2 {
    background-image: url('prizes/northern_moss.png');
}

.reward-card.claimed .reward-icon-3 {
    background-image: url('prizes/new_year_mood.png');
}

.reward-card.claimed .reward-icon-4 {
    background-image: url('prizes/snowy_veil.png');
}

.reward-card.claimed .reward-icon-5 {
    background-image: url('prizes/midnight_fir.png');
}

.reward-card.claimed .reward-icon-6 {
    background-image: url('prizes/secret_santa.png');
}

.reward-card.claimed .reward-icon-7 {
    background-image: url('prizes/lavender_ice.png');
}

.reward-card.claimed .reward-icon-8 {
    background-image: url('prizes/irony_of_fate.png');
}

.reward-card.claimed .reward-icon-9 {
    background-image: url('prizes/northern_breath.png');
}

.reward-card.claimed .reward-icon-10 {
    background-image: url('prizes/chime.png');
}

.reward-card.claimed .reward-icon-11 {
    background-image: url('prizes/quiet_snowy_field.png');
}

.reward-card.claimed .reward-icon-12 {
    background-image: url('prizes/blueberries_in_the_snow.png');
}

.reward-card.claimed .reward-icon-13 {
    background-image: url('prizes/glintwein_red.png');
}

.reward-card.claimed .reward-icon-14 {
    background-image: url('prizes/legend_2025.png');
}

.reward-card.claimed .reward-icon-15 {
    background-image: url('prizes/garland_glitter.png');
}

.reward-card.claimed .reward-icon-16 {
    background-image: url('prizes/holly_red.png');
}

.reward-card.claimed .reward-icon-17 {
    background-image: url('prizes/bethlehem_star.png');
}

.reward-card.claimed .reward-icon-18 {
    background-image: url('prizes/sleepy_deer.png');
}

.reward-card.claimed .reward-icon-19 {
    background-image: url('prizes/olive_champion.png');
}

.reward-card.claimed .reward-icon-20 {
    background-image: url('prizes/christmas_tree.png');
}

.reward-card.claimed .reward-icon-21 {
    background-image: url('prizes/holiday_lights.png');
}

.reward-card.claimed .reward-icon-22 {
    background-image: url('prizes/winter_ice.png');
}

.reward-card.claimed .reward-icon-23 {
    background-image: url('prizes/citrus_gourmet.png');
}

.reward-card.claimed .reward-icon-24 {
    background-image: url('prizes/chronicler_of_the_moment.png');
}

.reward-info {
    flex: 1;
    min-width: 0; /* Позволяет тексту обрезаться при нехватке места */
}

.reward-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #000;
}

.reward-requirement {
    font-size: 12px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reward-requirement.unlocked {
    color: #008000;
}

.reward-card.claimed .reward-requirement {
    color: #4caf50;
    font-weight: bold;
}

.requirement-icon {
    width: 12px;
    height: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Адаптивность для увеличенных иконок */
@media (max-width: 768px) {
    .reward-icon {
        width: 60px;
        height: 60px;
    }
    
    .reward-header {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .reward-icon {
        width: 50px;
        height: 50px;
    }
    
    .reward-header {
        gap: 10px;
    }
    
    .reward-name {
        font-size: 14px;
    }
}

.target-icon {
    background-image: url('icons/target.png');
}

.check-icon {
    background-image: url('icons/check.png');
}

.reward-description {
    color: #000;
    line-height: 1.4;
    margin-bottom: 16px;
    font-size: 12px;
}

.reward-btn {
    width: 100%;
    padding: 8px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s;
}

.reward-btn:active {
    border: 2px inset #c0c0c0;
    padding: 9px 7px 7px 9px;
}

.reward-btn:hover {
    background: #d4d0c8;
}

.reward-btn:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
    color: #808080;
}

.reward-card.claimed .reward-btn {
    background: #4caf50;
    color: white;
    border-color: #388e3c;
}

.reward-card.claimed .reward-btn:hover {
    background: #66bb6a;
}

.reward-card.claimed .reward-btn:active {
    border: 2px inset #388e3c;
}

/* НОВАЯ Анимация получения награды в стиле Windows 95 */
.reward-card.claimed-animation {
    animation: none !important;
}

@keyframes win95Obtained {
    0% {
        border-style: outset;
        border-color: #c0c0c0;
        background-color: #ffffff;
    }
    10% {
        border-style: inset;
        border-color: #808080;
        background-color: #e0e0e0;
        transform: translateY(1px);
    }
    20% {
        border-style: outset;
        border-color: #4caf50;
        background-color: #c8e6c9;
        transform: translateY(0);
    }
    30% {
        border-style: inset;
        border-color: #388e3c;
        background-color: #a5d6a7;
        transform: translateY(1px);
    }
    40% {
        border-style: outset;
        border-color: #4caf50;
        background-color: #e8f5e9;
        transform: translateY(0);
    }
    50% {
        border-style: inset;
        border-color: #388e3c;
        background-color: #c8e6c9;
        transform: translateY(1px);
    }
    60% {
        border-style: outset;
        border-color: #4caf50;
        background-color: #e8f5e9;
        transform: translateY(0);
    }
    100% {
        border-style: outset;
        border-color: #4caf50;
        background-color: #e8f5e9;
    }
}

@keyframes win95IconGlow {
    0% {
        background-color: #c0c0c0;
        border-color: #c0c0c0;
        box-shadow: none;
    }
    20%, 60%, 100% {
        background-color: #4caf50;
        border-color: #388e3c;
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
    }
    40%, 80% {
        background-color: #81c784;
        border-color: #4caf50;
        box-shadow: 0 0 12px rgba(76, 175, 80, 0.8);
    }
}

@keyframes win95TextAppear {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    20% {
        opacity: 1;
        transform: translateX(0);
        color: #4caf50;
    }
    40% {
        color: #000000;
    }
    60% {
        color: #4caf50;
    }
    80% {
        color: #000000;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        color: #4caf50;
    }
}

@keyframes win95ButtonTransition {
    0% {
        background: #c0c0c0;
        border-color: #c0c0c0;
        color: #000;
    }
    30% {
        background: #a5d6a7;
        border-color: #4caf50;
        color: #000;
    }
    60% {
        background: #4caf50;
        border-color: #388e3c;
        color: white;
    }
    100% {
        background: #4caf50;
        border-color: #388e3c;
        color: white;
    }
}

@keyframes win95Checkmark {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-15deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(5deg);
    }
    70% {
        transform: scale(0.95) rotate(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* Применение новых анимаций */
.reward-card.claimed-animation {
    animation: win95Obtained 1.2s ease-out forwards;
}

.reward-card.claimed-animation .reward-icon {
    animation: win95IconGlow 1.2s ease-out forwards;
}

.reward-card.claimed-animation .reward-requirement.unlocked {
    animation: win95TextAppear 1.2s ease-out forwards;
}

.reward-card.claimed-animation .reward-btn {
    animation: win95ButtonTransition 1.2s ease-out forwards;
    border-style: outset !important;
}

/* Стиль для полученной награды с добавлением характерного для Windows 95 эффекта */
.reward-card.claimed {
    position: relative;
    overflow: hidden;
}

.reward-card.claimed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 100%
    );
    background-size: 200% 200%;
    animation: win95Scanline 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes win95Scanline {
    0% {
        background-position: 200% 200%;
    }
    100% {
        background-position: -200% -200%;
    }
}

.reward-card.claimed::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="%234CAF50" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: win95Checkmark 0.8s ease-out 0.4s forwards;
    opacity: 0;
    z-index: 2;
}

/* Легкий эффект "интерактивности" для полученных карточек */
.reward-card.claimed:hover {
    background: #e0f2e1 !important;
    border-color: #66bb6a !important;
}

.reward-card.claimed:hover::before {
    animation-duration: 4s;
}

/* ТОП АКТИВНЫХ */
.top-section {
    margin: 20px 0;
    padding: 16px;
    background: #ffffff;
    border: 2px inset #c0c0c0;
}

.top-title {
    font-size: 16px;
    font-weight: bold;
    color: #000080;
    margin-bottom: 12px;
    text-align: center;
}

.top-users {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: #f0f0f0;
    border: 1px solid #808080;
    font-size: 13px;
}

.top-user.rank-1 { background: #fff8e1; border-color: #ff9800; }
.top-user.rank-2 { background: #e3f2fd; border-color: #2196f3; }
.top-user.rank-3 { background: #f1f8e9; border-color: #8bc34a; }

.top-rank {
    width: 28px;
    height: 28px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.top-user.rank-1 .top-rank { background: gold; color: #000; }
.top-user.rank-2 .top-rank { background: silver; color: #000; }
.top-user.rank-3 .top-rank { background: #cd7f32; color: #fff; }

.top-username {
    font-weight: bold;
    min-width: 120px;
}

.top-points {
    margin-left: auto;
    font-weight: bold;
    color: #000080;
}

/* Адаптивность для анимаций */
@media (max-width: 768px) {
    body {
        padding: 8px 8px 8px; /* Обновленный отступ для мобильных */
    }
    
    .top-nav {
        padding: 8px 8px;
        gap: 6px;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-btn {
        font-size: 10px;
        padding: 3px 8px;
        min-width: 70px;
        flex: 0 0 auto;
        font-size: 14px;
    }
    
    .window-content {
        padding: 12px;
    }
    
    .tree-image {
        max-width: 280px;
    }
    
    .progress-section {
        padding: 12px;
    }
    
    .progress-title {
        font-size: 12px;
    }
    
    .progress-count {
        font-size: 16px;
    }
    
    .progress-stats {
        gap: 8px;
    }
    
    .actions-section {
        grid-template-columns: 1fr;
    }
    
    .rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .reward-card {
        padding: 12px;
    }
    
    .reward-card.claimed::after {
        width: 20px;
        height: 20px;
    }
    
    @keyframes win95Obtained {
        0% {
            border-style: outset;
            border-color: #c0c0c0;
            background-color: #ffffff;
        }
        15% {
            border-style: inset;
            border-color: #808080;
            background-color: #e0e0e0;
            transform: translateY(1px);
        }
        30% {
            border-style: outset;
            border-color: #4caf50;
            background-color: #c8e6c9;
            transform: translateY(0);
        }
        45% {
            border-style: inset;
            border-color: #388e3c;
            background-color: #a5d6a7;
            transform: translateY(1px);
        }
        60% {
            border-style: outset;
            border-color: #4caf50;
            background-color: #e8f5e9;
            transform: translateY(0);
        }
        100% {
            border-style: outset;
            border-color: #4caf50;
            background-color: #e8f5e9;
        }
    }
}

@media (max-width: 480px) {
    .top-nav {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        top: 4px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-btn {
        width: auto;
        max-width: none;
        padding: 2px 8px;
        font-size: 9px;
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 14px;
    }
    
    .tree-image {
        max-width: 240px;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .section-title {
        font-size: 16px;
    }
}

/* Блок с пасхалкой (секретное сообщение) */
.easter-egg-section {
    margin-top: 30px;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-out 1s both;
    opacity: 0;
}

.easter-egg-content {
    padding: 30px !important;
    text-align: center;
    background: linear-gradient(135deg, #f9f9f9, #f0f0f0) !important;
    border: 2px outset #c0c0c0 !important;
}

.easter-egg-text {
    font-size: 16px;
    line-height: 1.6;
    color: #000080;
    margin-bottom: 20px;
    font-style: italic;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    border: 1px inset #c0c0c0;
    box-shadow: inset 1px 1px 0px #ffffff, inset -1px -1px 0px #808080;
}

.easter-egg-text::before {
    content: ':3';
    position: absolute;
    top: -15px;
    left: -15px;
    font-size: 24px;
    opacity: 0.7;
}

.easter-egg-text::after {
    content: '=)';
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-size: 24px;
    opacity: 0.7;
}

.easter-egg-signature {
    font-size: 14px;
    color: #000;
    font-weight: bold;
    font-style: normal;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #808080;
    text-align: right;
    padding-right: 20px;
}

/* Анимация появления пасхалки при прокрутке */
@keyframes fadeInUpSlow {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Для маленьких экранов */
@media (max-width: 768px) {
    .easter-egg-content {
        padding: 20px !important;
    }
    
    .easter-egg-text {
        font-size: 14px;
        padding: 15px;
    }
    
    .easter-egg-text::before,
    .easter-egg-text::after {
        font-size: 18px;
    }
    
    .easter-egg-text::before {
        top: -10px;
        left: -10px;
    }
    
    .easter-egg-text::after {
        bottom: -10px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .easter-egg-content {
        padding: 15px !important;
    }
    
    .easter-egg-text {
        font-size: 13px;
        padding: 12px;
    }
    
    .easter-egg-signature {
        font-size: 12px;
        padding-right: 10px;
    }
}

/* Модальное окно Windows 95 */
.win95-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out forwards;
}

.modal-window {
    width: 420px;
    background: #c0c0c0;
    border: 3px outset #c0c0c0;
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.2),
        inset 2px 2px 0px #ffffff,
        inset -2px -2px 0px #808080;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-titlebar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    padding: 6px 10px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px outset #c0c0c0;
}

.modal-controls {
    display: flex;
    gap: 4px;
}

.modal-close-icon {
    width: 12px;
    height: 12px;
    background-image: url('icons/close.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
}

.modal-content {
    padding: 24px;
    background: #ffffff;
    text-align: center;
}

.modal-icon {
    margin-bottom: 16px;
}

.modal-lock-icon {
    width: 48px;
    height: 48px;
    background-image: url('icons/lock.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.modal-message {
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    margin-bottom: 24px;
    font-weight: bold;
    text-shadow: 1px 1px 0px #ffffff;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-btn {
    padding: 12px 20px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    width: 100%;
}

.modal-btn:active {
    border: 2px inset #c0c0c0;
}

.modal-btn:hover {
    background: #d4d0c8;
}

.modal-btn.primary-btn {
    background: linear-gradient(to bottom, #c0c0c0, #a0a0a0);
    color: #000080;
    border-color: #000080;
}

.modal-btn.primary-btn:hover {
    background: linear-gradient(to bottom, #d4d0c8, #b4b0a8);
}

.modal-btn.secondary-btn {
    background: linear-gradient(to bottom, #e0e0e0, #c0c0c0);
    color: #008000;
    border-color: #008000;
}

.modal-btn.secondary-btn:hover {
    background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
}

.modal-btn.cancel-btn {
    background: linear-gradient(to bottom, #e0e0e0, #c0c0c0);
    color: #800000;
    border-color: #800000;
}

.modal-btn.cancel-btn:hover {
    background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
}

/* Иконки для кнопок модального окна */
.modal-key-icon {
    width: 16px;
    height: 16px;
    background-image: url('icons/key.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.modal-pen-icon {
    width: 16px;
    height: 16px;
    background-image: url('icons/disk.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.modal-cancel-icon {
    width: 16px;
    height: 16px;
    background-image: url('icons/close.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.modal-footer {
    font-size: 12px;
    color: #666;
    padding-top: 16px;
    border-top: 1px dashed #c0c0c0;
    font-style: italic;
}

.modal-hint {
    display: inline-block;
    animation: textGlow 2s infinite;
}

@keyframes textGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Адаптивность для модального окна */
@media (max-width: 480px) {
    .modal-window {
        width: 90%;
        max-width: 320px;
    }
    
    .modal-content {
        padding: 16px;
    }
    
    .modal-lock-icon {
        width: 36px;
        height: 36px;
    }
    
    .modal-message {
        font-size: 14px;
    }
    
    .modal-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}