@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@200;300;400;500;600;700&display=swap');

/* ===== RESET & BASE ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Tahoma, Verdana, system-ui, sans-serif;
    font-size: 11px;
    overflow: hidden;
}

/* ===== BOOT SCREEN ===== */
#bootScreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 1s ease-out;
}

#bootScreen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.boot-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

/* ===== LOGIN SCREEN ===== */

#loginScreen {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    font-family: 'Source Sans 3', 'Source Sans Pro', Tahoma, sans-serif;
    opacity: 0;
    transition: opacity .5s ease;
}

#loginScreen.visible { opacity: 1; }
#loginScreen.fade-out { opacity: 0; pointer-events: none; }

.login-header {
    min-height: 12.5vh;
    background: #084da3;
    position: relative;
}

.login-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: linear-gradient(270deg, #084da3 -33.4%, #084da3 6.07%, #fff 49.56%, #084da3 82.59%, #084da3 121.25%);
}

.login-main {
    flex: 1;
    height: 73vh;
    background: radial-gradient(19.48% 42.48% at 10% 22.48%, #9cc0e9 0%, #508fd9 100%);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.login-turnoff-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-prompt {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    top: 20px;
}

.login-prompt img {
    width: 280px;
    max-width: 40vw;
}

.login-prompt h1 {
    color: #fff;
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-weight: 500;
    font-size: 17px;
    margin-top: 30px;
    margin-right: 40px;
}

.login-separator {
    width: 2px;
    height: 80%;
    margin: 0 42px;
    background: linear-gradient(180deg, #508fd9 0%, #fff 47.4%, #508fd9 98.96%);
}

.login-users {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-user {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    width: 445px;
    max-width: 90vw;
    height: 112px;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s, background .2s;
    position: relative;
}

.login-user:hover {
    opacity: 1;
    background: linear-gradient(90deg, rgba(8, 77, 163, .6), rgba(80, 143, 217, .4));
}

.login-user.active {
    opacity: 1;
    background: linear-gradient(90deg, #084da3, #508fd9);
}

.login-avatar {
    width: 64px;
    height: 64px;
    border: 2px solid #fff;
    border-radius: 4px;
    background: url('assets/profile-picture.webp') no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0;
    flex-shrink: 0;
}

.login-user:nth-child(2) .login-avatar {
    background-image: url('assets/profile-picture.webp');
}

.login-user:hover .login-avatar {
    border-color: #fc0;
}

.login-user.active .login-avatar {
    border-color: #fc0;
}

.login-user-info {
    margin-left: 20px;
    color: #fff;
    position: relative;
}

.login-user-name {
    color: #fff;
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 20px;
    font-weight: 400;
}

.login-footer {
    min-height: 14.5vh;
    background: #084da3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
}

.login-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    align-self: flex-start;
    background: linear-gradient(270deg, #084da3 -33.4%, #084da3 6.07%, #f93 49.56%, #084da3 82.59%, #084da3 121.25%);
}

.login-turnoff {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 18px;
    font-weight: 400;
    padding: 6px 10px;
    border-radius: 3px;
}

.login-turnoff:hover {
    background: rgba(255,255,255,.12);
}

.login-turnoff img {
    width: 40px;
    height: 40px;
}

.login-footer-info {
    color: #fff;
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 13px;
    text-align: center;
    letter-spacing: .5px;
    font-weight: 400;
    line-height: 1.5;
}

/* ===== DESKTOP ===== */
body {
    background: url("https://wallpaperswide.com/download/windows_xp_original-wallpaper-3840x2160.jpg") center/cover fixed no-repeat;
}

.desktop {
    position: relative;
    height: 100%;
    padding-bottom: 36px;
    box-sizing: border-box;
}

.hidden { display: none !important; }

/* ===== DESKTOP ICONS ===== */
.desktop-icons {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-icon {
    width: 90px;
    cursor: default;
    user-select: none;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 2px;
    border: 2px solid transparent;
    border-radius: 3px;
}

.desktop-icon img {
    display: block;
    width: 56px;
    height: 56px;
}

.desktop-icon span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    text-align: center;
    padding: 1px 3px;
    border-radius: 2px;
    line-height: 1.3;
    word-wrap: break-word;
}

.desktop-icon.selected span {
    background: rgba(0, 0, 160, .75);
    border: 1px solid rgba(255, 255, 255, .9);
}

.desktop-icon.selected img {
    opacity: .75;
}

.desktop-icon:hover span:not(.selected) {
    background: rgba(0, 0, 160, .35);
}

/* promo badge on Snowify */
.promo-badge {
    position: absolute;
    top: -2px;
    right: 6px;
    background: #e03e3e;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 6px;
    letter-spacing: .4px;
    line-height: 1.4;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,.4);
}

#snowifyIcon img {
    filter: drop-shadow(0 0 6px rgba(100,160,255,.55));
    animation: snowifyGlow 2.5s ease-in-out infinite;
}

@keyframes snowifyGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(100,160,255,.4)); }
    50% { filter: drop-shadow(0 0 10px rgba(100,180,255,.7)); }
}

/* ===== XP WINDOW CHROME ===== */
.xp-window {
    position: absolute;
    resize: both;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 260px;
    min-height: 160px;
    z-index: 10;
    border: 3px solid #0054e3;
    border-top: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0,0,0,.35);
    background: #ece9d8;
}

.xp-window > .title-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 28px;
    padding: 3px 5px 3px 3px;
    font-family: 'Trebuchet MS', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 1px #0f1089;
    cursor: default;
    border-top-left-radius: 8px;
    border-top-right-radius: 7px;
    border-left: 1px solid #0831d9;
    border-right: 1px solid #001ea0;
    border-top: 1px solid #0831d9;
    background: linear-gradient(
        180deg,
        rgba(9, 151, 255, 1) 0%,
        rgba(0, 83, 238, 1) 8%,
        rgba(0, 80, 238, 1) 40%,
        rgba(0, 102, 255, 1) 88%,
        rgba(0, 102, 255, 1) 93%,
        rgba(0, 91, 255, 1) 95%,
        rgba(0, 61, 215, 1) 96%,
        rgba(0, 61, 215, 1) 100%
    );
}

.xp-window > .title-bar .title-bar-text {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xp-window > .title-bar .title-bar-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.xp-window > .title-bar .title-bar-controls {
    display: flex;
    gap: 2px;
}

.xp-window > .title-bar .title-bar-controls button {
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.xp-window > .title-bar .title-bar-controls button:hover {
    background: rgba(255,255,255,.25);
}

.xp-window > .title-bar .title-bar-controls button[aria-label="Close"]:hover {
    background: #e81123;
}

/* window control icons – use real XP icon images */
.xp-window > .title-bar .title-bar-controls button img {
    width: 22px;
    height: 22px;
    display: block;
}

.xp-window .window-body {
    font-size: 11px;
    box-sizing: border-box;
    padding: 6px;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    overflow: auto;
    background: #fff;
    margin: 0 3px 3px;
    border: 1px solid #aaa;
}

/* ===== XP START MENU ===== */
#startMenu {
    position: fixed;
    left: 0;
    bottom: 36px;
    width: 400px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: #4282d6;
    border-inline: 2px solid #1854c2;
    border-top: 2px solid #1854c2;
    border-bottom: none;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    font-size: 11px;
    line-height: 14px;
    box-shadow: 4px -2px 12px rgba(0,0,0,.4);
}

.start-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    height: 54px;
    background: linear-gradient(
        to bottom,
        #1868ce 0%, #0e60cb 12%, #0e60cb 20%,
        #1164cf 32%, #1667cf 33%, #1b6cd3 47%,
        #1e70d9 54%, #2476dc 60%, #297ae0 65%,
        #3482e3 77%, #3786e5 79%, #428ee9 90%,
        #4791eb 100%
    );
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.start-header::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent 0, rgba(255,255,255,.3) 1%, rgba(255,255,255,.5) 2%, rgba(255,255,255,.5) 95%, transparent 100%);
}

.start-header::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #032c8a;
}

.start-header-avatar {
    width: 42px;
    height: 42px;
    border: 1px solid #fff;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.start-header-name {
    display: block;
    margin-left: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.start-orange-hr {
    display: block;
    height: 2px;
    border: 0;
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, #da884a 50%, rgba(0,0,0,0) 100%);
}

.start-body {
    display: flex;
    color: #00136b;
    min-height: 450px;
}

.start-left {
    width: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.start-right {
    width: 50%;
    background: #d3e5fa;
    border-left: 2px solid #95bdee;
}

.start-left ul,
.start-right ul {
    list-style: none;
    margin: 0;
    padding: 6px 6px 0;
}

.start-left li,
.start-right li {
    position: relative;
}

.start-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 1px;
    margin-bottom: 4px;
    cursor: default;
    font-size: 11px;
    color: #000;
    text-decoration: none;
}

.start-item:hover {
    background: #316ac5;
    color: #fff;
}

.start-item img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.start-item.bold {
    font-weight: 700;
}

.start-item .start-item-sub {
    color: rgba(0,0,0,.4);
    font-weight: normal;
    font-size: 11px;
    line-height: 12px;
    margin-bottom: 1px;
    padding-left: 0;
}

.start-item:hover .start-item-sub {
    color: rgba(255,255,255,.7);
}

.start-item.sm img {
    width: 16px;
    height: 16px;
}

.start-separator {
    height: 7.5px;
    background: linear-gradient(to right, #d3d3c8 0%, rgba(0,0,0,.6) 50%, #d3d3c8 100%);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    background-clip: content-box;
}

.start-right .start-separator {
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, #87b3e2b5 50%, rgba(0,0,0,0) 100%);
    background-clip: content-box;
}

.start-all-programs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    font-weight: 700;
    cursor: default;
    font-size: 11px;
}

.start-all-programs:hover {
    background: #316ac5;
    color: #fff;
}

.start-all-programs img {
    width: 14px;
    height: 14px;
}

.start-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 6px 8px;
    height: 36px;
    background: linear-gradient(
        to bottom,
        #4282d6 0%, #3b85e0 3%, #418ae3 5%,
        #418ae3 17%, #3c87e2 21%, #3786e4 26%,
        #3482e3 29%, #2e7ee1 39%, #2374df 49%,
        #2072db 57%, #196edb 62%, #176bd8 72%,
        #1468d5 75%, #1165d2 83%, #0f61cb 88%
    );
}

.start-footer-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: default;
    color: #fff;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 11px;
}

.start-footer-btn:hover {
    background: rgba(60, 80, 210, .5);
}

.start-footer-btn img {
    width: 22px;
    height: 22px;
    border-radius: 3px;
}

/* ===== EXPLORER WINDOW ===== */
.projects-window .window-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right, #edede5 0%, #ede8cd 100%);
}

.explorer-container {
    height: 100%;
    width: 100%;
    color: #000;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    background: linear-gradient(to right, #edede5 0%, #ede8cd 100%);
    border: none;
    margin: 0;
    padding: 0;
}

/* Menu bar */
.explorer-menubar {
    display: flex;
    align-items: center;
    height: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.explorer-menu-options {
    flex: 1;
    height: 23px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1px 0 1px 2px;
}

.explorer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    font-size: 11px;
    height: 100%;
    align-items: center;
}

.explorer-menu-list li {
    padding: 2px 8px;
    cursor: default;
}

.explorer-menu-list li:hover {
    background: #316ac5;
    color: #fff;
}

.explorer-windows-logo {
    height: 100%;
    border-left: 1px solid #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Function bar (toolbar) */
.function-bar {
    height: 38px;
    display: flex;
    align-items: center;
    font-size: 11px;
    padding: 1px 3px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.fn-btn {
    display: flex;
    height: 100%;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
}

.fn-btn:hover {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

.fn-btn:active {
    border: 1px solid #b9b9b9;
    background: #dedede;
    box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.7);
}

.fn-btn figure {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 6px;
}

.fn-btn figure img {
    vertical-align: middle;
}

.fn-btn figure figcaption {
    text-align: center;
    font-size: 11px;
    line-height: 1;
    margin-top: 1px;
}

.fn-icon {
    height: 22px;
    width: 22px;
}

.fn-icon.greyed {
    filter: grayscale(100%);
}

.fn-arrow {
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 3px solid #555;
    margin-right: 4px;
    margin-top: 10px;
}

.fn-sep {
    width: 1px;
    height: 70%;
    background: rgba(0, 0, 0, 0.15);
    margin: 0 2px;
    align-self: center;
}

/* Address bar */
.explorer-address-bar {
    display: flex;
    align-items: center;
    padding: 3px 2px;
    height: 22px;
    font-size: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 -2px 3px -1px #b0b0b0;
    flex-shrink: 0;
}

.addr-title {
    padding: 0 5px;
    color: rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.addr-content {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
    border: 1px solid rgba(122, 122, 255, 0.6);
    background: #fff;
    position: relative;
}

.addr-icon {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    flex-shrink: 0;
}

.addr-text {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 11px;
    padding: 0 2px;
    outline: none;
    font-family: inherit;
}

.addr-dropdown {
    width: 15px;
    height: 15px;
    position: absolute;
    right: 1px;
    cursor: pointer;
}

.addr-go {
    display: flex;
    align-items: center;
    padding: 0 12px 0 5px;
    height: 100%;
    cursor: pointer;
    white-space: nowrap;
}

.addr-go-icon {
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 3px;
}

/* Explorer content area */
.explorer-content {
    flex: 1;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    background: #f1f1f1;
    font-size: 11px;
    position: relative;
    min-height: 0;
}

.explorer-inner {
    display: flex;
    height: 100%;
    overflow: hidden;
}

/* Left sidebar (XP blue gradient with task panels) */
.explorer-left {
    width: 180px;
    height: 100%;
    background: linear-gradient(to bottom, #748aff 0%, #4057d3 100%);
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
    flex-shrink: 0;
}

.left-card {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 12px;
}

.left-card-header {
    display: flex;
    align-items: center;
    height: 23px;
    padding-left: 11px;
    padding-right: 2px;
    cursor: pointer;
    background: linear-gradient(to right, rgb(240, 240, 255) 0%, rgb(240, 240, 255) 30%, rgb(168, 188, 255) 100%);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.left-card-header:hover .left-card-header-text {
    color: #1c68ff;
}

.left-card-header-text {
    font-weight: 700;
    color: #0c327d;
    flex: 1;
    font-size: 11px;
    white-space: nowrap;
}

.left-card-toggle {
    width: 18px;
    height: 18px;
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.3));
}

.left-card-body {
    padding: 5px 10px;
    background: linear-gradient(to right, rgb(180, 200, 251) 0%, rgb(164, 185, 251) 50%, rgb(180, 200, 251) 100%);
    background-color: rgba(198, 211, 255, 0.87);
}

.left-card-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2px;
}

.left-card-icon {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    flex-shrink: 0;
    margin-top: 1px;
}

.left-card-link {
    font-size: 10px;
    line-height: 14px;
    color: #0c327d;
    cursor: pointer;
}

.left-card-link:hover {
    color: #2b72ff;
    text-decoration: underline;
}

.left-card-row.active .left-card-link {
    color: #2b72ff;
    text-decoration: underline;
    font-weight: 700;
}

/* Right main content */
.explorer-right {
    flex: 1;
    height: 100%;
    overflow: auto;
    background: #fff;
    padding: 6px;
    box-sizing: border-box;
}

/* categories folder tile */
.categories-main-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.category-tile {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 2px;
    cursor: default;
    width: 260px;
}

.category-tile img {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.category-tile .cat-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-tile .cat-name {
    font-weight: 700;
    font-size: 13px;
    color: #111;
}

.category-tile .cat-count {
    font-size: 11px;
    color: #777;
}

/* project cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.project-card {
    border: 1px solid #aca899;
    border-radius: 2px;
    background: #f7f7f7;
    box-shadow: 1px 1px 0 #fff inset;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    background: #e5f1ff;
}

.project-thumb {
    height: 120px;
    border-bottom: 1px solid #aca899;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.project-thumb.pink  { background: #ffd4f5; }
.project-thumb.mint  { background: #d2fff4; }
.project-thumb.lilac { background: #d8ddff; }
.project-thumb.sand  { background: #ffeebf; }

.project-text {
    padding: 8px;
    font-size: 12px;
}

.project-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.project-meta {
    color: #333;
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.25;
}

.project-meta small {
    color: #333;
    font-size: 12px;
    font-weight: 600;
}

.project-badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    border-radius: 4px;
    background: #eee;
    border: 1px solid #ddd;
    font-size: 11px;
}

.platform-badge img {
    width: 18px;
    height: 18px;
}

/* explorer game program tiles */
.explorer-program {
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    color: #000;
    text-shadow: none;
    padding: 6px 4px;
    border-radius: 6px;
    background: transparent;
}

.explorer-program img {
    width: 48px;
    height: 48px;
    display: block;
}

.explorer-program span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    text-align: center;
    color: #111;
    white-space: normal;
    word-break: break-word;
    line-height: 1.1;
    max-height: 3.3em;
    overflow: visible;
}

.explorer-program:hover {
    background: transparent;
}

.program-tile {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 6px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    cursor: pointer;
    user-select: none;
}

.program-tile:hover {
    background: rgba(0,0,0,.03) !important;
    border-radius: 6px;
}

.program-tile img { display: block; }

.program-tile .project-text {
    padding-top: 6px;
    text-align: center;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.program-tile .icon-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== TASKBAR ===== */
.taskbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    background: linear-gradient(
        to bottom,
        #1868ce 0%,
        #0e60cb 12%,
        #0e60cb 20%,
        #1164cf 32%,
        #1667cf 33%,
        #1b6cd3 47%,
        #1e70d9 54%,
        #2476dc 60%,
        #297ae0 65%,
        #3482e3 77%,
        #3786e5 79%,
        #428ee9 90%,
        #4791eb 100%
    );
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0;
    box-sizing: border-box;
    z-index: 1000;
}

.taskbar::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        to right,
        transparent 0,
        rgba(255,255,255,.3) 1%,
        rgba(255,255,255,.5) 2%,
        rgba(255,255,255,.5) 95%,
        rgba(255,255,255,.3) 98%,
        rgba(255,255,255,.2) 99%,
        transparent 100%
    );
    box-shadow: inset 0 -1px 1px #0e60cb;
    z-index: 0;
}

.taskbar-left {
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 1;
}

/* ===== START BUTTON ===== */
.start-button {
    width: 105px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px 0 4px;
    border: none;
    border-radius: 0 15px 17px 0;
    background: linear-gradient(to bottom, #67ae55, #578843);
    box-shadow: 0 2px 4px rgba(0,0,0,.4);
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
    font-style: italic;
    font-family: 'Trebuchet MS', Tahoma, sans-serif;
    cursor: default;
    position: relative;
    z-index: 1;
}

.start-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55%;
    border-radius: 0 25px 17px 0;
    background: linear-gradient(to bottom, rgba(255,255,255,.4) 0%, rgba(255,255,255,.2) 50%, rgba(255,255,255,0) 100%);
    opacity: .8;
    pointer-events: none;
}

.start-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 92%;
    height: 3px;
    border-radius: 0 0 17px 0;
    background: linear-gradient(to right, rgba(0,0,0,.2) 0%, rgba(0,0,0,.1) 100%);
}

.start-button img {
    width: 30px;
    height: 30px;
    display: block;
    position: relative;
    z-index: 1;
}

.start-button span {
    position: relative;
    z-index: 1;
}

/* ===== TASK BUTTONS ===== */
.task-buttons {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 10px;
    overflow: hidden;
    height: 100%;
    padding: 3px 0;
}

.task-button {
    min-width: 20px;
    max-width: 175px;
    flex-shrink: 1;
    flex-basis: 150px;
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid #0174e0;
    background: linear-gradient(to bottom, #4f81fe, #3576f3, #4f81fe);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: default;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow:
        inset 1px 1px 0 #a4bdec,
        inset -1px -1px 0 #2758cc,
        inset -2px -2px 0 #0064c1;
}

.task-button.active {
    background: #2d5daf;
    box-shadow: 0 3px 0 rgba(0,0,0,.3);
    border-left: 2px solid #0b2042;
    border-top: 2px solid #0b2042;
    border-right: #003c74 1px solid;
    border-bottom: #003c74 1px solid;
}

.task-button:hover {
    background: linear-gradient(to bottom, #5d8dff, #4a85f6, #5d8dff);
}

.task-button img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===== SYSTEM TRAY ===== */
.taskbar-right {
    display: flex;
    align-items: center;
    height: 100%;
    background: linear-gradient(
        to bottom,
        #0c59b9 1%, #139ee9 6%, #18b5f2 10%,
        #139beb 14%, #1290e8 19%, #0d8dea 63%,
        #0d9ff1 81%, #0f9eed 88%, #119be9 91%,
        #1392e2 94%, #137ed7 97%, #095bc9 100%
    );
    border-left: 1px solid #1042af;
    box-shadow: inset 1px 0 1px #18bbff;
    padding: 0 8px 0 12px;
    z-index: 1;
    gap: 8px;
}

.tray-icon {
    width: 16px;
    height: 16px;
}

.tray-clock {
    color: #fff;
    font-size: 11px;
    min-width: 56px;
    text-align: right;
}

/* ===== PROJECT VIEWER ===== */
#winPlayer .window-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
}

#projTitle {
    font-weight: 700;
    font-size: 14px;
}

#projImage {
    width: 100%;
    height: 240px;
    background: #111;
    background-size: cover;
    background-position: center;
    border: 1px solid #222;
}

#projMeta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.meta-label {
    font-weight: 700;
    width: 110px;
    color: #333;
}

.meta-val { color: #222; }
.contributors { font-style: italic; color: #444; }

.xp-link {
    color: #0000EE;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
}

/* ===== GAME WINDOW ===== */
#winGame { display: flex; flex-direction: column; }
#winGame .window-body {
    flex: 1;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
    border: none;
}

/* ===== IE WINDOW ===== */
#winIE .window-body {
    margin: 0 !important;
    padding: 0 !important;
    border: none;
}

.ie-toolbar {
    background: #ece9d8;
    border-bottom: 1px solid #aaa;
    padding: 3px 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ie-toolbar button {
    font-size: 11px;
    padding: 2px 6px;
    background: #ece9d8;
    border: 1px solid #aaa;
    border-radius: 2px;
    cursor: pointer;
}

.ie-toolbar button:hover { background: #ddd; }

.ie-address {
    flex: 1;
    padding: 1px 3px;
    border: 1px solid #7f9db9;
    background: #fff;
    font-size: 11px;
}

.ie-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* ===== SIZE HUD ===== */
.size-hud {
    position: fixed;
    right: 12px;
    bottom: 48px;
    z-index: 99999;
    pointer-events: none;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 999px;
    background: rgba(0,0,0,.35);
    color: rgba(255,255,255,.92);
    text-shadow: 0 1px 0 rgba(0,0,0,.65);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .12s ease, transform .12s ease;
    user-select: none;
    font-family: Tahoma, Verdana, system-ui, sans-serif;
}

.size-hud.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CONTEXT MENU DISABLE ===== */
.desktop {
    -webkit-user-select: none;
    user-select: none;
}

/* ===== WINDOW-SPECIFIC OVERRIDES ===== */
#winContact .window-body,
#winCredits .window-body {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    white-space: pre-line;
}

/* ===== STARTUP SOUND / LOGON INDICATOR ===== */
.volume-icon {
    width: 16px;
    height: 16px;
    opacity: .8;
}
