.window:not(.hidden) {
    display: block;
    animation: windowOpen 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.window:not(.hidden) {
    animation: windowOpen 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.window-header {
    user-select: none;
}

.window-header {
    cursor: grab;
}

.window-header:active {
    cursor: grabbing; 
}

.window {
    user-select: none;
}

#taskbar-time {
    font-family: 'Courier New', Courier, monospace;
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
}

button[onclick="toggleStartMenu()"]:active {
    box-shadow: inset 2px 2px 0px black;
    transform: translate(1px, 1px);
}

#start-menu {
    animation: menuSlideUp 0.1s ease-out;
}

@keyframes menuSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #1a1a1a;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #7e22ce; 
    border: 2px solid #1a1a1a;
}
.window-content {
    scrollbar-gutter: stable;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    20% { transform: translateX(0%); } 
    100% { transform: translateX(-100%); }
}

.animate-marquee {
    animation: marquee 8s linear infinite;
}

.viz-bar {
    width: 100%;
    background: #DF2D63;
    animation: equalizer 0.5s ease-in-out infinite;
    box-shadow: 0 0 5px #DF2D63;
}

.viz-bar:nth-child(even) {
    background: #A221A2;
    box-shadow: 0 0 5px #A221A2;
}

@keyframes scanline-roll {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes crt-flicker {
    0% { opacity: 0.1; }
    5% { opacity: 0.15; }
    10% { opacity: 0.1; }
    15% { opacity: 0.12; }
    20% { opacity: 0.1; }
    100% { opacity: 0.08; }
}

.animate-scanline {
    animation: scanline-roll 8s linear infinite;
}

.animate-flicker {
    animation: crt-flicker 0.15s infinite;
}

@media (max-width: 1024px) {
    #win-notepad, #win-image-showcase {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .absolute.right-10.top-10.grid {
        right: 50%;
        transform: translateX(50%); 
        grid-template-cols: repeat(3, 1fr); 
        gap: 1rem;
    }
}


@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes equalizer {
    0% { height: 10%; }
    50% { height: 100%; }
    100% { height: 10%; }
}

.viz-bar {
    flex: 1;
    min-width: 2px;
}

#download-prompt {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2), 8px 8px 0px 0px rgba(0,0,0,1);
    animation: prompt-popup 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

#prompt-thumb {
    position: relative;
}
#prompt-thumb::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 255, 0, 0.05) 50%);
    background-size: 100% 2px;
    pointer-events: none;
}

body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(circle, rgba(15, 0, 26, 0) 50%, rgba(15, 0, 26, 0.4) 100%);
    pointer-events: none;
    z-index: 10001; 
}

#desktop {
    filter: brightness(1.1) contrast(1.1);
    backdrop-filter: blur(0.3px); 
}

.text-purple-300 {
    text-shadow: 1px 0px 1px rgba(255,0,0,0.2), -1px 0px 1px rgba(0,0,255,0.2);
}

#showcase-link:active img {
    filter: brightness(1.2) sepia(0.2) hue-rotate(20deg);
    transform: scale(0.98);
}

#artist-name-display {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fixed.inset-0.-z-10 img {
    filter: saturate(0.5) contrast(1.2) blur(1px);
    
    animation: bg-pulse 10s ease-in-out infinite;
}

@keyframes bg-pulse {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.05); }
}

#modal-progress-bar {
    transition: width 0.4s ease-out, background-color 0.3s ease;
}

.bg-success-green {
    background-color: #22c55e !important;
    box-shadow: 0 0 10px #22c55e;
}