body {
    font-family: 'VT323', 'Press Start 2P', monospace;
    background: #39393b;
    color: #ececec;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    position: relative;
}
.description {
    z-index: -9999999;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.scanlines {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.01) 1px,
        transparent 2px,
        transparent 4px
    );
    z-index: 0;
}
.desktop {
    width: 100vw;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(auto-fit, 76px);
    justify-content: start;
    gap: 36px 28px;
    padding: 40px 30px 90px 30px;
    height: calc(100vh - 64px);
    background: linear-gradient(120deg, #3f3f40 0%, #545254 100%);
    align-content: flex-start;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}
.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 76px;
    user-select: none;
    cursor: pointer;
    transition: transform 0.1s;
}
.icon-img {
    width: 56px;
    height: 56px;
    border: 2px solid #e9a5d2;
    background: linear-gradient(120deg, #ffb6df 40%, #fff0fa 100%);
    box-shadow: 0 2px 8px #18181870, 0 0 0 1px #fff2;
    margin-bottom: 6px;
    transition: border-color 0.1s, background 0.1s;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}
.icon-label {
    font-size: 0.9rem;
    text-align: center;
    color: #ffd4fa;
    text-shadow: 1px 1px 0 #0f0119, 0 0 2px #ff8dff6e;
    letter-spacing: 0.3px;
}
.icon:hover .icon-img {
    outline: 1px solid #e24da3;
}
.icon:active .icon-img,
.icon:hover .icon-img {
    border-color: #ffd4fa;
    background: linear-gradient(120deg, #ffd4fa 50%, #fff2f7 100%);
    box-shadow: 0 2px 12px #ffd4fa90;
}
@keyframes desktop-icon-bounce {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-5px); }
    50%  { transform: translateY(-5px);}
    100% { transform: translateY(0); }
}
.icon.bounce { 
    animation: desktop-icon-bounce 0.25s cubic-bezier(.6,1.6,.7,1.02);
}
.taskbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 54px;
    background: linear-gradient(90deg, #ffb6df 0%, #fff0fa 100%);
    border-top: 2px solid #e9a5d2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10000;
    font-family: 'Press Start 2P', monospace;
    box-shadow: 0 -2px 12px #17151980;
    padding: 0 16px 0 0;
    letter-spacing: 0.1px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}
.taskbar-left {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
}
.taskbar-button {
    background: #FCEFF9;
    color: #922b7d;
    border: none;
    outline: 1.5px solid #fff6;
    border-right: 2px solid #e9a5d2;
    font-size: 1.1rem;
    font-family: 'Press Start 2P', monospace;
    padding: 6px 18px;
    margin: 0 12px 0 14px;
    cursor: pointer;
    box-shadow: 0 1px 2px #2224;
    text-shadow: 0 1px 0 #fff8;
    letter-spacing: 1.5px;
    border-radius: 0;
    border: 1.5px solid #aaa !important;
    transition: background 0.12s, outline 0.1s;
}
.taskbar-button:hover {
    background: #e9a5d2;
}
.open-windows {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    gap: 6px;
    max-width: calc(100vw - 320px);
    overflow-x: auto;
}
.taskbar-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    background: none;
    z-index: 10;
    margin-left: 18px;
}
.datetime {
    color: #922b7d;
    font-size: 1.1rem;
    margin-right: 8px;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 #fff0fa;
    white-space: nowrap;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}
.taskbar-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    justify-content: space-between;
    background: #FCEFF9;
    border: 1.5px solid #e9a5d2;
    border-radius: 0;
    padding: 0 6px 0 6px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: #922b7d;
    transition: background 0.13s, color 0.13s;
    box-shadow: 0 2px 8px #18181840;
    min-width: 32px;
    max-width: 175px;
    flex: 1 1 0;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}
.taskbar-tab .icon-img {
    width: 18px;
    height: 18px;
    margin: 0 6px 0 0;
    border: none;
    background: none;
    box-shadow: none;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid #e9a5d2;
}
.taskbar-tab .tab-label {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}
.taskbar-tab .close-btn {
    flex: 0 0 auto;
    background: #ffd4fa;
    border: 1px solid #e9a5d2;
    color: #922b7d;
    font-size: 0.95rem;
    width: 18px;
    height: 18px;
    margin-left: 2px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    border-radius: 0;
    transition: background 0.11s, color 0.11s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.taskbar-tab .close-btn:hover {
    background: #e9a5d2;
    color: #fff;
}
.taskbar-tab:hover,
.taskbar-tab.active {
    background: #e9a5d2;
    color: #fff;
}
.window.folder-window {
    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
    min-height: 140px;
    background: none !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 76px);
    grid-auto-rows: min-content;
    gap: 24px 16px;
    padding: 16px 16px;
    justify-content: start;
    align-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 70vh;
}
.folder-grid .icon {
    width: 76px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    align-items: center;
}
.folder-grid .icon-img,
.folder-grid video.icon-img {
    width: 56px;
    height: 56px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 6px;
    object-fit: cover;
}
.folder-grid .icon-label {
    color: #232;
    text-shadow: none !important;
    font-size: 0.84rem;
    letter-spacing: 0.05px;
    background: none;
    width: 100%;
    text-align: center;
    word-break: break-all;
}
.folder-grid video.icon-img {
    background: #000 !important;
    object-fit: cover;
    display: block;
}
.folder-grid .icon:active .icon-img,
.folder-grid .icon:hover .icon-img {
    outline: 1px solid #e24da3;
    background: #ffd4fa;
}
.folder-grid .icon:active,
.folder-grid .icon:hover {
    outline: none;
    background: #ffd4fa25;
}
.window {
    position: absolute;
    min-width: 220px;
    min-height: 120px;
    width: 370px;
    border: 2.5px solid #e9a5d2;
    box-shadow: 0 2px 26px #0007, 0 0 0 2px #fff2 inset;
    z-index: 10;
    font-family: 'VT323', monospace;
    color: #922b7d;
    border-radius: 0;
    background: none !important;
    overflow: visible;
}
.window-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(120deg, #ffb6df 40%, #eaeaea 100%);
    width: 100%;
    height: 100%;
}
.window-header {
    position: relative;
    z-index: 2;
    background: linear-gradient(90deg, #fff0fa 0%, #ffb6df 100%);
    color: #a13b85;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    padding: 7px 13px;
    cursor: move;
    border-bottom: 1.5px solid #e9a5d2;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.window-controls button {
    background: #ffd4fa;
    border: 1px solid #e9a5d2;
    color: #922b7d;
    margin-left: 6px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    width: 24px;
    height: 22px;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    transition: background 0.11s;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.window-controls button:hover {
    background: #e9a5d2;
    color: #fff;
}
.window-content {
    position: relative;
    z-index: 1;
    overflow: auto;
    background: linear-gradient(90deg, #fff0fa 60%, #c8c8c8 100%);
    min-height: 100px;
    padding: 22px 18px 18px 18px;
    color: #6c226a;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
.window-content img,
.window-content video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    background: #111;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}
.window.music-player-window,
.window[data-app="music player"] {
    right: 20px;
    left: auto;
    top: 20px;
    height: 509px !important;
    min-height: 509px !important;
    max-height: 509px !important;
    width: 370px;
    min-width: 270px;
    max-width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}
.window-content.music-player-content {
    padding: 0 !important;
    background: none !important;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}
.soundcloud-embed {
    width: 100% !important;
    height: 300px !important;
    min-height: 0 !important;
    min-width: 0 !important;
    border: none !important;
    display: block;
}
.music-player-visualizer-container {
    width: 100%;
    height: 189px;
    background: #000;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
#music-visualizer {
    display: block;
    width: 370px;
    height: 189px;
    background: transparent;
}
.window.video-player-window,
.window[data-app="video player"] {
    min-width: 350px;
    max-width: 650px;
    width: 400px;
    overflow: visible;
    display: flex;
    flex-direction: column;
}
.window-content.video-player-content {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    min-width: 350px;
    max-width: 650px;
    padding: 0 !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}
.video-player-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
    display: block;
}
.video-player-resizer {
    position: absolute;
    top: 0;
    right: -6px;
    width: 12px;
    height: 100%;
    cursor: ew-resize;
    z-index: 5;
    background: transparent;
}
.video-player-resizer::after {
    content: '';
    display: block;
    position: absolute;
    right: 2px; top: 50%;
    width: 5px; height: 36px;
    background: #ffd4fa80;
    border-radius: 3px;
    transform: translateY(-50%);
    box-shadow: 0 0 3px #0003;
}
.window.video-player-window.resizing {
    user-select: none;
    pointer-events: none;
}
.window.terminal-window,
.window[data-app="terminal"] {
    max-height: 350px !important;
    min-height: 180px;
    height: 350px;
    width: 450px;
    min-width: 320px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
}
.window-content.terminal-content {
    padding: 0 !important;
    background: none !important;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    overflow: auto;
}
.terminal-tabs {
    display: flex;
    background: linear-gradient(90deg, #fff0fa 0%, #ffb6df 100%);
    border-bottom: 1.5px solid #e9a5d2;
    font-family: 'Orbitron', 'Press Start 2P', 'VT323', monospace;
    font-size: 0.95rem;
    color: #a13b85;
    height: 38px;
    align-items: stretch;
    padding: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}
.terminal-tab {
    padding: 0 18px;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    color: #a13b85;
    transition: background 0.12s, color 0.12s;
    margin-right: 1.5px;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #e5a9db50;
    border-bottom: none;
    font-weight: 400;
}
.terminal-tab:last-child { 
    border-right: none; 
}
.terminal-tab.active {
    background: #ffd4fa;
    color: #522849;
    border-bottom: 2.5px solid #e24da3;
}
.terminal-code {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    background: #000;
    color: #D6AACD;
    padding: 10px 10px 10px 10px;
    white-space: pre;
    overflow: auto;
    flex: 1 1 0;
    min-height: 0;
    max-height: 270px;  
    border-radius: 0 0 5px 5px;
    box-shadow: 0 1px 5px #c6c6ff13;
    margin: 0;
}
@keyframes fadeIn { 
    from { opacity: 0; } to { opacity: 1; } 
}
.start-menu-list { padding: 10px 0; }
.start-menu {
    position: fixed;
    left: 10px;
    bottom: 70px;
    min-width: 210px;
    background: #20102f55;
    border: 5px solid #e9a5d2;
    box-shadow: 0 6px 24px #20102f55;
    z-index: 10001;
    display: none;
    animation: fadeIn 0.23s;
}
.start-menu-folder, .start-menu-settings {
    display: flex;
    align-items: center;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.13s;
    gap: 7px;
}
.start-menu-folder:hover, .start-menu-settings:hover {
    background: #e9a5d2;
    color: #fff;
}
.start-folder-icon {
    width: 17px;
    height: 17px;
    margin-right: 6px;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}
.start-menu-divider {
    border-top: 1.5px solid #444;
    margin: 6px 0;
}
.start-menu-restart {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-left: 20px;
    color: #e24da3;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.08rem;
    cursor: pointer;
    transition: background 0.13s;
    padding-bottom: 9px;
}
.start-menu-restart .restart-text {
    font-size: 0.8rem;
    line-height: 1;
    padding-top: 10px;
    display: inline-block;
}
.start-menu-restart:hover { 
    background: #e9a5d2; color: #fff; 
}
.start-menu-restart .start-folder-icon {
    width: 17px;
    height: 17px;
    margin-right: 6px;
    margin-left: -1px;
    display: inline-block;
    font-size: 1.18rem;
}
.restart-icon { 
    font-size: 1.18rem; margin-right: 3px; 
}
#fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #111;
    opacity: 1;
    pointer-events: none;
    transition: opacity 3s;
    z-index: 99999;
}