@font-face {
    font-family: 'Chekhov';
    src: url('fonts/Chekhov.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'MS Sans Serif', 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    overflow: hidden;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #1E1E1E;
    color: #1E1E1E;
    font-size: 11px;
}

body.explosion-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Экраны */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.screen.active {
    display: flex;
}

/* Экран загрузки */
.screen-boot {
    background: #ffffff;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-out;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

.boot-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.boot-notification {
    font-family: 'Chekhov', 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    font-size: 24px;
    color: #1E1E1E;
    text-align: center;
    letter-spacing: 2px;
    margin-top: 150px;
    min-height: 30px;
}

.boot-notification::after {
    content: '|';
    animation: blink-cursor 1s infinite;
    margin-left: 2px;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.vintage-computer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(90vw, 600px);
    height: auto;
    max-height: 90vh;
    margin: 0 auto;
}

.sims-image {
    position: absolute;
    top: min(30px, 6vh);
    left: 50%;
    transform: translateX(-50%);
    width: min(60px, 8vw);
    height: auto;
    z-index: 5;
    display: block;
}

.computer-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    position: relative;
    z-index: 1;
    display: block;
}

.btn-read {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    color: #ee89b3;
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    font-size: 20px;
    text-decoration: underline;
    text-decoration-color: #ee89b3;
    cursor: pointer;
    z-index: 20;
    padding: 8px 12px;
    text-transform: lowercase;
    transition: opacity 0.2s ease;
    animation: blinkButton 1s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes blinkButton {
    0%, 100% {
        color: #ee89b3;
        text-decoration-color: #ee89b3;
    }
    50% {
        color: #FF5FA2;
        text-decoration-color: #FF5FA2;
    }
}

.btn-read:hover {
    animation: none;
    color: #FF5FA2;
    text-decoration-color: #FF5FA2;
}

.btn-read:active {
    transform: translate(-50%, -50%);
}

.boom-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: none;
    pointer-events: none;
    background: transparent;
}

.boom-video-container.active {
    display: block;
}

.boom-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 33.33%;
    height: 33.33%;
    object-fit: contain;
}

/* Explosion Effect Layers */
#explosionLayer {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, #ff4500 0%, #ff6347 40%, #ff8c00 70%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
}

#blackLayer {
    position: fixed;
    inset: 0;
    background: #000000;
    opacity: 0;
    pointer-events: none;
    z-index: 10001;
}

/* Screen shake animation */
@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    5% { transform: translate(-10px, -5px) rotate(-1deg); }
    10% { transform: translate(10px, 5px) rotate(1deg); }
    15% { transform: translate(-8px, -3px) rotate(-0.5deg); }
    20% { transform: translate(8px, 3px) rotate(0.5deg); }
    25% { transform: translate(-6px, -2px) rotate(-0.3deg); }
    30% { transform: translate(6px, 2px) rotate(0.3deg); }
    35% { transform: translate(-4px, -1px) rotate(-0.2deg); }
    40% { transform: translate(4px, 1px) rotate(0.2deg); }
    45% { transform: translate(-2px, 0) rotate(-0.1deg); }
    50% { transform: translate(2px, 0) rotate(0.1deg); }
    55% { transform: translate(-2px, 0) rotate(-0.1deg); }
    60% { transform: translate(2px, 0) rotate(0.1deg); }
    65% { transform: translate(-1px, 0); }
    70% { transform: translate(1px, 0); }
    75% { transform: translate(-1px, 0); }
    80% { transform: translate(1px, 0); }
    85% { transform: translate(0, 0); }
    90%, 100% { transform: translate(0, 0); }
}

body.explosion-active {
    animation: screenShake 1s ease-out 0.8s;
}

/* Explosion flash animation */
.explosion-start #explosionLayer {
    animation: flash 1.2s ease-in-out forwards;
}

@keyframes flash {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    30% {
        opacity: 0.3;
        transform: scale(0.98);
    }
    60% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.02);
    }
}

/* Black overlay animation */
.black-start #blackLayer {
    animation: toBlack 0.8s ease-in forwards;
}

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

/* Desktop Wallpaper */
#desktopWallpaper {
    position: fixed;
    inset: 0;
    background: url('photos/wind_xp_pink.webp') center center no-repeat;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 10002;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

#desktopWallpaper.active {
    pointer-events: all;
}

/* Desktop Icons */
.desktop-icons {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 180px; /* Под логотипом */
    z-index: 10003;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.desktop-icons.visible {
    opacity: 1;
    pointer-events: all;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    cursor: pointer;
    padding: 4px;
    border-radius: 2px;
    transition: background 0.2s ease;
    user-select: none;
    pointer-events: auto;
    position: relative;
    z-index: 10004;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.desktop-icon.selected {
    background: rgba(0, 120, 215, 0.3);
}

.icon-image {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 4px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.icon-folder {
    color: #ff99cc;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.icon-file {
    color: #4169E1;
}

.icon-recycle {
    color: #808080;
}

.icon-label {
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    font-size: 11px;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 80px;
    min-width: 60px;
    line-height: 1.3;
    padding: 3px 5px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.4);
    display: block;
    hyphens: auto;
}

/* Windows XP Logo */
.windows-logo {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10003;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.windows-logo.active {
    opacity: 1;
}

.windows-logo img {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Mobile Responsive for Logo */
@media (max-width: 768px) {
    .windows-logo img {
        max-width: 280px;
    }
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20000;
    pointer-events: none;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* System Warning Popup */
.system-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: min(90vw, 500px);
    max-height: 90vh;
    background: linear-gradient(to bottom, #f8d7e8 0%, #f0b8d0 100%);
    border: 2px solid #d485a8;
    border-top: 3px solid #ffb3d9;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    opacity: 0;
    visibility: hidden;
    z-index: 20001;
    pointer-events: none;
    font-family: 'MS Sans Serif', 'Segoe UI', sans-serif;
    font-size: 12px;
    user-select: none;
    overflow-y: auto;
}

.system-popup.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    animation: popupAppear 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes popupAppear {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Popup Titlebar */
.popup-titlebar {
    background: linear-gradient(to bottom, #ffb3d9 0%, #ff99cc 50%, #ff80bf 100%);
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d485a8;
    cursor: default;
}

.popup-title {
    font-weight: bold;
    color: #8b0043;
    font-size: 11px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.popup-close {
    background: transparent;
    border: none;
    color: #8b0043;
    font-size: 16px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.popup-close:active {
    background: rgba(0, 0, 0, 0.1);
}

/* Popup Content */
.popup-content {
    padding: 20px;
    background: #f8d7e8;
}

.popup-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.warning-icon {
    font-size: 32px;
    color: #ff0066;
    flex-shrink: 0;
    animation: warningBlink 1.5s ease-in-out infinite;
}

@keyframes warningBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.message-text {
    flex: 1;
    color: #5a0033;
    line-height: 1.6;
    min-height: 80px;
    white-space: pre-wrap;
}

.message-text strong {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: #8b0043;
}

.message-text p {
    margin: 6px 0;
    font-size: 11px;
}

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #5a0033;
    margin-left: 2px;
    vertical-align: baseline;
    animation: blinkCursor 1s infinite;
}

.message-text.typing-complete .typing-cursor {
    display: none;
}

@keyframes blinkCursor {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* Popup Buttons */
.popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
    position: relative;
    min-height: 40px;
}

.popup-btn {
    min-width: 80px;
    padding: 6px 16px;
    border: 2px outset #d485a8;
    background: linear-gradient(to bottom, #ffe6f2 0%, #ffb3d9 100%);
    color: #5a0033;
    font-family: 'MS Sans Serif', 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: all 0.1s ease;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.popup-btn:active {
    border-style: inset;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
    transform: translateY(1px);
}

.popup-btn-yes {
    background: linear-gradient(to bottom, #ff99cc 0%, #ff66b3 100%);
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    border-color: #ff3399;
}

.popup-btn-yes:hover {
    background: linear-gradient(to bottom, #ff80bf 0%, #ff4da6 100%);
}

.popup-btn-no {
    position: relative;
}

.popup-btn-no.moving {
    transition: transform 0.2s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Базовый стиль для всех окон на мобильных */
    .window,
    .xp-window,
    .virus-window,
    .system-popup,
    .image-preview-window,
    .text-viewer-window {
        width: 95vw;
        max-height: 90vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 16px;
    }
    
    /* Запрещаем отрицательные позиции */
    .window,
    .xp-window,
    .virus-window,
    .system-popup,
    .image-preview-window,
    .text-viewer-window {
        left: 50% !important;
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    .system-popup {
        width: 95vw;
        max-width: 95vw;
        font-size: 11px;
    }
    
    .popup-content {
        padding: 16px;
    }
    
    .warning-icon {
        font-size: 28px;
    }
    
    .message-text strong {
        font-size: 12px;
    }
    
    .message-text p {
        font-size: 10px;
    }
    
    .popup-btn {
        min-width: 70px;
        padding: 5px 12px;
        font-size: 10px;
    }
    
    /* Кнопки закрытия */
    .window-close,
    .xp-window-close,
    .virus-close,
    .popup-close,
    .close-button {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 10;
    }
    
    /* Текстовые блоки */
    .window-content,
    .xp-window-content,
    .text-viewer-content,
    .virus-content,
    .popup-content {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}

/* Loading screen */
.loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: none;
    z-index: 10002;
}

@keyframes showLoading {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.loading-text {
    font-family: 'Menlo', 'Monaco', 'Consolas', 'Courier New', 'Lucida Console', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
    font-size: 28px;
    color: #00FF41;
    text-align: center;
    letter-spacing: 2px;
    min-height: 40px;
    text-shadow: 
        0 0 5px rgba(0, 255, 65, 0.5),
        0 0 10px rgba(0, 255, 65, 0.3);
    font-weight: 400;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0;
}

.loading-text.typing::after {
    content: '|';
    animation: blinkCursor 1s infinite;
    margin-left: 2px;
}

/* Loading spinner (dots) */
.loading-spinner {
    display: none;
    margin-top: 30px;
    text-align: center;
}

.loading-spinner span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #00FF41;
    margin: 0 6px;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loading-spinner span:nth-child(1) {
    animation-delay: 0s;
}

.loading-spinner span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-spinner span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.loading-text.fade-out {
    animation: fadeOutText 0.5s ease-out forwards;
}

@keyframes blinkCursor {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes fadeOutText {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Стрелки */
.arrow {
    position: absolute;
    z-index: 10;
    opacity: 0.8;
    animation: arrowMove 1.5s ease-in-out infinite;
    width: clamp(40px, 8vw, 120px);
}

.arrow-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Размеры стрелок - теперь через классы для вариативности */
.arrow-size-1 {
    width: clamp(35px, 7vw, 100px);
}

.arrow-size-2 {
    width: clamp(40px, 8vw, 120px);
}

.arrow-size-3 {
    width: clamp(45px, 9vw, 140px);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .screen-boot {
        padding: 10px;
        overflow-x: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .boot-content-wrapper {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .vintage-computer {
        width: min(95vw, 500px);
        max-height: 85vh;
        position: relative;
        margin: 0 auto; /* Центрируем на мобильных */
        margin-left: calc(50% - 4px); /* Сдвигаем немного влево */
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .computer-image {
        margin: 0 auto; /* Центрируем изображение компьютера */
        display: block;
    }
    
    .sims-image {
        top: min(20px, 4vh);
        width: min(40px, 6vw);
    }
    
    .computer-image {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 70vh;
    }
    
    .btn-read {
        font-size: min(16px, 4vw);
        padding: 6px 10px;
        top: 35%;
    }
    
    /* Скрываем стрелки на мобильных */
    .arrow {
        display: none;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .vintage-computer {
        width: 98vw;
    }
    
    .sims-image {
        top: min(8px, 1.5vh);
        width: min(30px, 5vw);
    }
    
    .computer-image {
        max-height: 60vh;
    }
    
    .btn-read {
        font-size: min(14px, 3.5vw);
        padding: 4px 8px;
        top: 32%;
    }
    
    /* Еще больше уменьшаем стрелки */
    .arrow {
        width: 12%;
        max-width: 50px;
        opacity: 0.6;
    }
    
    .arrow-size-1 {
        width: 10%;
        max-width: 40px;
    }
    
    .arrow-size-2 {
        width: 12%;
        max-width: 50px;
    }
    
    .arrow-size-3 {
        width: 15%;
        max-width: 60px;
    }
    
    /* Скрываем некоторые стрелки на очень маленьких экранах */
    .arrow-pos-2,
    .arrow-pos-4 {
        display: none;
    }
    
    .arrow-left {
        left: -5%;
    }
    
    .arrow-right {
        right: -5%;
    }
    
    .arrow-pos-1 {
        left: -4%;
    }
    
    .arrow-pos-3 {
        left: -3%;
    }
}

/* Адаптивность для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .vintage-computer {
        width: min(85vw, 550px);
    }
    
    .computer-image {
        max-width: 100%;
        max-height: 75vh;
    }
    
    .arrow {
        width: 12%;
        max-width: 100px;
    }
    
    .arrow-size-1 {
        width: 10%;
        max-width: 80px;
    }
    
    .arrow-size-2 {
        width: 12%;
        max-width: 100px;
    }
    
    .arrow-size-3 {
        width: 15%;
        max-width: 120px;
    }
    
    .arrow-left {
        left: -10%;
    }
    
    .arrow-right {
        right: -10%;
    }
}

/* Основные позиции */
.arrow-left {
    left: -12%;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    animation-name: arrowMoveLeft;
}

.arrow-right {
    right: -12%;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    animation-name: arrowMoveRight;
    animation-delay: 0.75s;
}


/* Дополнительные хаотичные позиции */
.arrow-pos-1 {
    left: -10%;
    top: 30%;
    transform: rotate(15deg);
    animation-name: arrowMoveDiagonal1;
    animation-delay: 0.2s;
}

.arrow-pos-2 {
    right: -10%;
    top: 20%;
    transform: rotate(160deg);
    animation-name: arrowMoveDiagonal2;
    animation-delay: 0.9s;
}

.arrow-pos-3 {
    left: -8%;
    bottom: 30%;
    transform: rotate(-15deg);
    animation-name: arrowMoveDiagonal3;
    animation-delay: 0.5s;
}

.arrow-pos-4 {
    right: -12%;
    bottom: 30%;
    transform: rotate(200deg);
    animation-name: arrowMoveDiagonal4;
    animation-delay: 1.2s;
}


@keyframes arrowMoveLeft {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg) translateX(0);
    }
    50% {
        transform: translateY(-50%) rotate(0deg) translateX(25px);
    }
}

@keyframes arrowMoveRight {
    0%, 100% {
        transform: translateY(-50%) rotate(180deg) translateX(0);
    }
    50% {
        transform: translateY(-50%) rotate(180deg) translateX(-25px);
    }
}

@keyframes arrowMoveDiagonal1 {
    0%, 100% {
        transform: rotate(15deg) translate(0, 0);
    }
    50% {
        transform: rotate(15deg) translate(20px, -15px);
    }
}

@keyframes arrowMoveDiagonal2 {
    0%, 100% {
        transform: rotate(160deg) translate(0, 0);
    }
    50% {
        transform: rotate(160deg) translate(-20px, -15px);
    }
}

@keyframes arrowMoveDiagonal3 {
    0%, 100% {
        transform: rotate(-15deg) translate(0, 0);
    }
    50% {
        transform: rotate(-15deg) translate(20px, 15px);
    }
}

@keyframes arrowMoveDiagonal4 {
    0%, 100% {
        transform: rotate(200deg) translate(0, 0);
    }
    50% {
        transform: rotate(200deg) translate(-20px, 15px);
    }
}


.monitor-screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.monitor-screen-overlay .btn-power {
    pointer-events: all;
}

/* Позиционирование кнопки на экране монитора */
.vintage-computer .monitor-screen-overlay {
    /* Примерные координаты для позиционирования кнопки на экране монитора */
    /* Нужно будет подкорректировать в зависимости от изображения */
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 20%;
}

.btn-power {
    padding: 12px 24px;
    background: linear-gradient(180deg, #FF5FA2 0%, #FF4F8B 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.btn-power:hover {
    transform: translateY(-2px) scale(1.05);
}

.btn-power:active {
    transform: translateY(0) scale(1);
}

/* Рабочий стол */
.screen-desktop,
.screen-final {
    background: #F6F4F2;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
}

.desktop-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    background: linear-gradient(135deg, #F8EFEF 0%, #F6F4F2 100%);
    z-index: 0;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

/* Иконки рабочего стола */
.desktop-icons {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    gap: 30px;
    padding: 20px;
    width: 100%;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.desktop-icon:hover {
    background: rgba(255, 95, 162, 0.1);
    transform: translateY(-2px);
}

.desktop-icon:active {
    transform: translateY(0);
}

.icon-folder {
    font-size: 48px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.icon-label {
    font-size: 11px;
    color: #1E1E1E;
    text-align: center;
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Окна - базовый стиль для всех окон */
.window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 600px);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    background: #F6F4F2;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
}

.window.active {
    display: block;
    animation: windowAppear 0.3s ease-out;
}

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

.window-header {
    background: linear-gradient(180deg, #FF5FA2 0%, #FF4F8B 100%);
    color: white;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 11px;
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
}

.window-title {
    flex: 1;
}

.window-close,
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.window-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.window-body,
.window-content {
    padding: 16px;
    background: #F6F4F2;
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    font-size: 11px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.window-auth {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.window-badge {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 360px);
}

.badge-card {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.badge-clip {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: #E6E6E6;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-name {
    font-size: 28px;
    font-weight: bold;
    color: #FF5FA2;
    margin-bottom: 12px;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

.badge-title {
    font-size: 12px;
    color: #1E1E1E;
    margin-bottom: 24px;
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
}

/* Кнопки */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.2s ease;
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(180deg, #FF5FA2 0%, #FF4F8B 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 95, 162, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-heart {
    width: 100%;
    margin-top: 16px;
}

.btn-yes {
    background: linear-gradient(180deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 10px 20px;
    margin-right: 12px;
}

.btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-no {
    background: linear-gradient(180deg, #f44336 0%, #da190b 100%);
    color: white;
    padding: 10px 20px;
    position: relative;
    transition: all 0.3s ease;
}

.btn-no:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* Уведомление */
.notification {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 0 0 3px #FF5FA2;
    z-index: 20;
    min-width: 320px;
    display: none;
    animation: notificationSlide 0.4s ease-out;
}

.notification.active {
    display: block;
}

@keyframes notificationSlide {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-content {
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
}

.notification-title {
    font-size: 13px;
    font-weight: bold;
    color: #1E1E1E;
    margin-bottom: 8px;
}

.notification-text {
    font-size: 11px;
    color: #1E1E1E;
    margin-bottom: 16px;
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
}

.notification-buttons {
    display: flex;
    gap: 8px;
}

/* Windows XP Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, #245EDB 0%, #1941A5 100%);
    border-top: 1px solid #4A7BC8;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 4px;
    z-index: 10003;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    user-select: none;
}

/* Start Button */
.taskbar-start {
    background: linear-gradient(to bottom, #4A7BC8 0%, #245EDB 50%, #1941A5 100%);
    color: white;
    border: 1px outset #4A7BC8;
    padding: 4px 20px 4px 24px;
    font-weight: bold;
    cursor: pointer;
    font-size: 11px;
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

.taskbar-start::before {
    content: '';
    position: absolute;
    left: 6px;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect fill="white" x="2" y="2" width="12" height="12" rx="1"/><rect fill="%23245EDB" x="4" y="4" width="8" height="8" rx="1"/></svg>') no-repeat center;
    background-size: contain;
}

.taskbar-start:hover {
    background: linear-gradient(to bottom, #5A8BD8 0%, #2D6EDB 50%, #1D51B5 100%);
    border-color: #5A8BD8;
}

.taskbar-start:active {
    border-style: inset;
    background: linear-gradient(to bottom, #1941A5 0%, #245EDB 50%, #4A7BC8 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.start-text {
    margin-left: 20px;
}

/* Taskbar Tray (Clock Area) */
.taskbar-tray {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 2px 8px;
    background: linear-gradient(to bottom, #1941A5 0%, #245EDB 100%);
    border: 1px inset #4A7BC8;
    height: 32px;
    min-width: 120px;
    justify-content: center;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.taskbar-time {
    font-size: 11px;
    color: white;
    font-weight: normal;
    line-height: 1.2;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.taskbar-date {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .taskbar {
        height: 36px;
        padding: 0 2px;
    }
    
    .taskbar-start {
        padding: 3px 12px 3px 20px;
        height: 26px;
        font-size: 10px;
    }
    
    .taskbar-tray {
        min-width: 100px;
        padding: 2px 6px;
        height: 28px;
    }
    
    .taskbar-time {
        font-size: 10px;
    }
    
    .taskbar-date {
        font-size: 8px;
    }
}

/* Virus Windows Container */
#virusContainer {
    position: fixed;
    inset: 0;
    z-index: 10004;
    pointer-events: none;
}

#virusContainer.active {
    pointer-events: all;
}

/* Virus Window - Windows XP Style */
.virus-window {
    position: absolute;
    width: min(90vw, 320px);
    min-height: 150px;
    max-height: 90vh;
    background: #ECE9D8;
    border: 2px outset #C0C0C0;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    animation: popIn 0.2s ease-out;
    z-index: 10005;
    user-select: none;
    overflow-y: auto;
}

.virus-window.final {
    position: fixed;
    width: min(90vw, 600px);
    min-height: 300px;
    max-height: 90vh;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    z-index: 10010;
}

.virus-window.final .virus-title {
    background: linear-gradient(to bottom, #ffb3d9 0%, #ff99cc 50%, #ff80bf 100%);
    border-bottom: 1px solid #ff99cc;
}

.virus-title {
    background: linear-gradient(to bottom, #245EDB 0%, #1941A5 100%);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-bottom: 1px solid #4A7BC8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.virus-title-text {
    flex: 1;
}

.virus-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s ease;
}

.virus-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.virus-close-disabled {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.virus-content {
    padding: 20px;
    font-size: 13px;
    color: #000;
    line-height: 1.5;
    background: #ECE9D8;
}

.virus-window.final .virus-content {
    padding: 30px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.virus-window.final .virus-content {
    padding: 30px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.virus-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px;
    background: #ECE9D8;
    border-top: 1px solid #C0C0C0;
    position: relative; /* Для правильного позиционирования кнопок */
    overflow: visible; /* Чтобы убегающая кнопка была видна */
}

.virus-buttons button {
    padding: 4px 16px;
    font-size: 11px;
    cursor: pointer;
    border: 1px outset #C0C0C0;
    background: linear-gradient(to bottom, #ECE9D8 0%, #D4D0C8 100%);
    color: #000;
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    min-width: 60px;
    transition: all 0.1s ease;
}

.virus-buttons button:hover {
    background: linear-gradient(to bottom, #F0F0F0 0%, #E0E0E0 100%);
}

.virus-buttons button:active {
    border-style: inset;
    background: linear-gradient(to bottom, #D4D0C8 0%, #ECE9D8 100%);
}

.virus-buttons button.disabled {
    cursor: default;
    opacity: 0.6;
    pointer-events: auto;
}

.virus-buttons button.disabled:hover {
    background: linear-gradient(to bottom, #ECE9D8 0%, #D4D0C8 100%);
}

.virus-buttons button.disabled:active {
    transform: scale(0.95);
}

.virus-buttons .yes-btn {
    background: linear-gradient(to bottom, #4A7BC8 0%, #245EDB 100%);
    color: white;
    border-color: #4A7BC8;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.virus-buttons .yes-btn:hover {
    background: linear-gradient(to bottom, #5A8BD8 0%, #2D6EDB 100%);
}

.virus-buttons .yes-btn.disabled {
    background: linear-gradient(to bottom, #D4D0C8 0%, #ECE9D8 100%);
    color: #666;
    border-color: #C0C0C0;
    text-shadow: none;
}

.virus-buttons .yes-btn.disabled:hover {
    background: linear-gradient(to bottom, #ECE9D8 0%, #D4D0C8 100%);
}

.virus-buttons .no-btn {
    position: relative;
}

.virus-buttons .no-btn.escaping {
    transition: all 0.15s ease-out;
}

/* Мобильная адаптация для кнопки "Нет" */
@media (max-width: 768px) {
    .virus-buttons .no-btn {
        /* Убеждаемся что кнопка видна на мобильных */
        min-width: 60px;
        padding: 6px 12px;
        font-size: 12px;
        /* Увеличиваем область нажатия для мобильных */
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }
    
    .virus-buttons button {
        /* Увеличиваем размер кнопок на мобильных для удобства */
        min-width: 70px;
        padding: 8px 16px;
        font-size: 12px;
    }
}

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

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive for Desktop Icons */
@media (max-width: 768px) {
    .desktop-icons {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 140px;
        gap: 20px;
    }
    
    .desktop-icon {
        width: 70px;
    }
    
    .icon-image {
        width: 40px;
        height: 40px;
        font-size: 40px;
    }
    
    .icon-label {
        font-size: 10px;
        max-width: 70px;
        min-width: 50px;
        padding: 2px 4px;
    }
    
    .xp-window-body {
        padding: 16px;
    }
    
    .virus-window {
        width: 95vw;
        max-height: 90vh;
    }
    
    .virus-window.final {
        width: 95vw;
        max-height: 90vh;
    }
    
    .virus-window.final .virus-content {
        padding: 20px;
        font-size: 16px;
    }
    
    .virus-content {
        padding: 12px;
        font-size: 12px;
    }
    
    /* Убираем отрицательные позиции для вирусных окон */
    .virus-window:not(.final) {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
    }
}

/* Mobile Responsive for Virus Windows - уже включено в общий медиа-запрос выше */

/* Windows XP Window Component */
.xp-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 600px);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    background: #ECE9D8;
    border: 2px outset #C0C0C0;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    z-index: 20000;
    display: none;
    animation: windowAppear 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    user-select: none;
}

.xp-window.active {
    display: block;
}

.xp-window-header {
    background: linear-gradient(to bottom, #245EDB 0%, #1941A5 100%);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-bottom: 1px solid #4A7BC8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Отключаем draggable на мобильных устройствах */
@media (max-width: 768px) {
    .xp-window-header {
        cursor: default !important;
    }
}

.xp-window-title {
    flex: 1;
}

.xp-window-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s ease;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.xp-window-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.xp-window-body {
    padding: 15px;
    background: #ECE9D8;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

.xp-window-content {
    font-size: 12px;
    color: #000;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Image Preview Window */
.image-preview-window {
    width: min(90vw, 500px);
    max-height: 90vh;
}

.image-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.image-preview-content img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 60vh;
    border: 2px inset #C0C0C0;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

/* Back Button */
.xp-back-button {
    padding: 6px 16px;
    font-size: 11px;
    cursor: pointer;
    border: 1px outset #C0C0C0;
    background: linear-gradient(to bottom, #ECE9D8 0%, #D4D0C8 100%);
    color: #000;
    font-family: 'MS Sans Serif', 'Tahoma', 'Arial', sans-serif;
    min-width: 80px;
    transition: all 0.1s ease;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.xp-back-button:hover {
    background: linear-gradient(to bottom, #F0F0F0 0%, #E0E0E0 100%);
}

.xp-back-button:active {
    border-style: inset;
    background: linear-gradient(to bottom, #D4D0C8 0%, #ECE9D8 100%);
    transform: translateY(1px);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.image-grid-item {
    cursor: pointer;
    border: 2px outset #C0C0C0;
    padding: 5px;
    background: white;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.image-grid-item:hover,
.image-grid-item:active {
    border-color: #4A7BC8;
    transform: scale(1.05);
}

.image-grid-item img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px inset #C0C0C0;
    max-width: 100%;
}

/* Адаптивные изображения во всех окнах */
.window img,
.xp-window img,
.virus-window img,
.system-popup img,
.image-preview-content img,
.xp-window-content img {
    max-width: 100%;
    height: auto;
}

/* Text Viewer */
.text-viewer-window {
    width: min(90vw, 500px);
    max-height: 90vh;
}

.text-viewer-content {
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 13px;
    white-space: pre-wrap;
    background: white;
    padding: 15px;
    border: 2px inset #C0C0C0;
    min-height: 200px;
    overflow-y: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Recycle Bin Content */
.recycle-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recycle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px outset #C0C0C0;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.recycle-item:hover,
.recycle-item:active {
    background: #E6F3FF;
    border-color: #4A7BC8;
}

.recycle-item-icon {
    width: 32px;
    height: 32px;
    font-size: 32px;
}

.recycle-item-name {
    flex: 1;
    font-size: 12px;
}

@keyframes windowAppear {
    from {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Экран успеха */
.screen-success {
    background: linear-gradient(135deg, #FF5FA2 0%, #FF4F8B 100%);
    z-index: 2000;
}

.success-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.success-content {
    text-align: center;
    z-index: 1;
}

.success-title {
    font-size: 48px;
    color: white;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: successPulse 1s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.floating-hearts {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.floating-hearts span {
    font-size: 32px;
    animation: floatHeart 2s ease-in-out infinite;
}

.floating-hearts span:nth-child(1) { animation-delay: 0s; }
.floating-hearts span:nth-child(2) { animation-delay: 0.2s; }
.floating-hearts span:nth-child(3) { animation-delay: 0.4s; }
.floating-hearts span:nth-child(4) { animation-delay: 0.6s; }
.floating-hearts span:nth-child(5) { animation-delay: 0.8s; }

@keyframes floatHeart {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Состояния кнопки NO */

.btn-no.state-2 {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.btn-no.state-3 {
    position: absolute;
    left: 20px;
    bottom: 20px;
}

.btn-no.state-4 {
    opacity: 0;
    pointer-events: none;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .desktop-icons {
        grid-template-columns: repeat(auto-fill, 80px);
        gap: 20px;
    }
    
    .window {
        width: 95vw;
        max-width: 95vw;
    }
    
    .notification {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
    
    .success-title {
        font-size: 48px;
    }
    
    .crt-monitor {
        width: 90%;
        max-width: 500px;
    }
}
