* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: white;
    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(180, 0, 0, 0.16),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #050505,
            #120506 48%,
            #030303
        );

    user-select: none;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background:
        repeating-linear-gradient(
            115deg,
            transparent 0 70px,
            rgba(255, 25, 25, 0.025) 72px 73px,
            transparent 75px 140px
        );

    pointer-events: none;
}


/* =========================
   DESKTOP
========================= */

.desktop {
    position: absolute;
    inset: 0 0 48px 0;
}

.desktop-brand {
    position: absolute;
    left: 50%;
    top: 42%;

    transform: translate(-50%, -50%);
    text-align: center;

    opacity: 0.12;
}

.brand-q {
    font-size: min(16vw, 190px);
    font-weight: 900;

    color: #ff2020;

    text-shadow:
        0 0 20px #8b0000,
        0 0 50px #d00000;
}

.brand-text {
    margin-top: -20px;

    font-size: 20px;
    font-weight: 700;

    letter-spacing: 9px;
}


/* =========================
   DESKTOP ICONS
========================= */

.desktop-icons {
    position: absolute;
    top: 22px;
    left: 22px;

    display: flex;
    flex-direction: column;

    gap: 17px;
}

.desktop-icon {
    width: 92px;

    padding: 7px;

    text-align: center;

    border-radius: 8px;

    cursor: default;
}

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

    outline:
        1px solid rgba(255, 255, 255, 0.09);
}

.icon-box {
    width: 52px;
    height: 52px;

    margin: auto;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            #272727,
            #090909
        );

    border: 1px solid #4a1717;

    box-shadow:
        0 0 16px rgba(255, 0, 0, 0.2),
        inset 0 0 12px #000;

    font-size: 27px;
}

.desktop-icon span {
    display: block;

    margin-top: 6px;

    font-size: 12px;

    text-shadow:
        0 2px 3px black;
}


/* =========================
   WINDOWS
========================= */

.app-window {
    position: absolute;

    width: 620px;
    height: 390px;

    left: 50%;
    top: 48%;

    transform:
        translate(-50%, -50%);

    display: none;

    overflow: hidden;

    background:
        rgba(10, 10, 12, 0.83);

    backdrop-filter:
        blur(22px);

    border:
        1px solid #442326;

    border-radius: 11px;

    box-shadow:
        0 24px 80px #000,
        0 0 30px rgba(180, 0, 0, 0.12);
}

.app-window.active {
    display: block;

    animation:
        windowOpen 180ms ease-out;
}

@keyframes windowOpen {

    from {
        opacity: 0;

        transform:
            translate(-50%, -47%)
            scale(0.96);
    }

    to {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1);
    }
}


/* =========================
   TITLEBAR
========================= */

.window-titlebar {
    height: 42px;

    display: flex;
    align-items: center;

    padding-left: 14px;

    background:
        rgba(25, 25, 28, 0.90);

    border-bottom:
        1px solid #312124;

    cursor: move;
}

.window-title {
    flex: 1;

    font-size: 13px;
}

.window-controls {
    height: 100%;

    display: flex;
}

.window-controls button {
    width: 45px;

    border: 0;

    background:
        transparent;

    color: #ddd;

    font-size: 15px;

    cursor: pointer;
}

.window-controls button:hover {
    background: #333;
}

.window-controls .window-close:hover {
    background: #b51f1f;
}


/* =========================
   WINDOW CONTENT
========================= */

.window-content {
    height:
        calc(100% - 42px);

    padding: 25px;

    overflow: auto;
}

.window-kicker {
    color: #ff3333;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}

.window-content h1 {
    margin:
        7px 0 20px;

    font-size: 27px;
}

.status-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}

.status-card {
    padding: 16px;

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid #292929;
}

.status-card strong {
    display: block;

    margin-bottom: 7px;
}

.online {
    color: #70e891;
}


/* =========================
   TASKBAR
========================= */

.taskbar {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    height: 48px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding:
        0 12px;

    background:
        rgba(12, 12, 14, 0.88);

    backdrop-filter:
        blur(18px);

    border-top:
        1px solid #302326;
}

.start-button {
    width: 36px;
    height: 36px;

    border: 0;

    border-radius: 8px;

    background:
        transparent;

    color:
        #ff3434;

    font-weight: 900;

    font-size: 18px;

    cursor: pointer;
}

.start-button:hover {
    background:
        #292929;
}

.task-app {
    display: none;

    padding:
        8px 13px;

    border-radius:
        7px;

    background:
        #241719;

    font-size:
        12px;

    cursor:
        pointer;
}

.task-clock {
    margin-left:
        auto;

    text-align:
        right;

    font-size:
        12px;
}


/* =========================
   START MENU
========================= */

.start-menu {
    position:
        fixed;

    left:
        12px;

    bottom:
        57px;

    width:
        330px;

    padding:
        18px;

    display:
        none;

    background:
        rgba(15, 15, 18, 0.94);

    backdrop-filter:
        blur(24px);

    border:
        1px solid #382426;

    border-radius:
        12px;

    box-shadow:
        0 20px 60px #000;
}

.start-menu.show {
    display:
        block;
}

.start-menu h2 {
    margin:
        0 0 14px;
}

.start-apps {
    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        8px;
}

.start-app {
    padding:
        13px 5px;

    text-align:
        center;

    border-radius:
        8px;

    background:
        #18181a;

    font-size:
        20px;

    cursor:
        pointer;
}

.start-app span {
    display:
        block;

    margin-top:
        5px;

    font-size:
        11px;
}

.start-app:hover {
    background:
        #292326;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .app-window {
        width:
            94vw;

        height:
            62vh;
    }

    .status-grid {
        grid-template-columns:
            1fr;
    }

}
