.win98-window {
    display: none;

    width: 620px;
    max-width: calc(100vw - 32px);

    background-color: var(--win-gray);

    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-dark);
    border-bottom: 2px solid var(--win-dark);

    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);

    font-family: "MS Sans Serif", Arial, sans-serif;
}

.win98-window.is-open {
    display: block;
}

.window-titlebar {
    height: 30px;
    padding: 3px 4px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background-color: var(--win-blue);
    color: white;

    user-select: none;
}

.drag-handle {
    cursor: move;
    touch-action: none;
}

.window-title {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 15px;
    font-weight: bold;
}

.window-title span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.window-title img {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.window-buttons {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.window-buttons button,
.win98-button {
    background-color: var(--win-gray);
    color: black;

    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-dark);
    border-bottom: 2px solid var(--win-dark);

    font-family: "MS Sans Serif", Arial, sans-serif;
    cursor: pointer;
}

.window-buttons button {
    width: 26px;
    height: 22px;

    font-weight: bold;
    font-size: 13px;
    line-height: 12px;
}

.win98-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;
    padding: 4px 12px;

    text-decoration: none;
    font-size: 14px;
}

.window-buttons button:active,
.win98-button:active {
    border-top: 2px solid var(--win-dark);
    border-left: 2px solid var(--win-dark);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
}

.window-strip {
    display: block;
    width: 100%;
    height: auto;

    image-rendering: pixelated;
    user-select: none;
    pointer-events: none;
}

.window-content {
    padding: 18px;
    background-color: var(--win-gray);
    font-size: 16px;
    line-height: 1.4;
}

.window-content h1 {
    margin: 0 0 12px 0;
}

.welcome-window {
    position: absolute;
    top: 80px;
    left: 220px;
    width: 520px;
}

.projects-window {
    position: absolute;
    top: 70px;
    left: 220px;
    width: 680px;
}

@media (max-width: 768px) {
    .win98-window {
        position: static;
        width: calc(100vw - 20px);
        max-width: none;
        margin: 10px;
    }

    .welcome-window,
    .projects-window {
        position: static;
    }

    .window-title span {
        max-width: calc(100vw - 145px);
    }
}
