* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    image-rendering: pixelated;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    user-select: none;
}

/* Screen Scanline/CRT Mask Overlay */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.13) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.028), rgba(0, 255, 0, 0.007), rgba(0, 0, 255, 0.028));
    background-size: 100% 4px, 6px 100%;
    z-index: 9999;
    pointer-events: none;
}

#bios-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bios-main-view {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

#bios-text {
    font-size: 16px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.logo-frame {
    flex-shrink: 0;
    margin-left: 20px;
}

.logo-frame img {
    width: 350px;
    height: auto;
    display: block;
}

.bios-footer {
    font-size: 16px;
    font-weight: bold;
    min-height: 24px;
}

.cyan-text { color: #00ffff; }
.pink-text { color: #ff007f; }
.yellow-text { color: #ffff00; }
.blink { animation: blinker 1s linear infinite; }

@keyframes blinker {
    50% { opacity: 0; }
}

/* ==========================================
   CLASSIC WINDOWS DESKTOP LAYOUT ENGINE
   ========================================== */
#desktop-screen {
    display: none;
    width: 100%;
    height: 100%;
    background-color: #008080;
    position: relative;
}

.win95-window {
    position: absolute;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    box-shadow: 1px 1px 0 0 #000;
    padding: 2px;
}

.alert-box {
    width: 1000px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.win95-titlebar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    padding: 3px 6px;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.win95-btn {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #808080 #808080 #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000;
    padding: 2px 6px;
    font-weight: bold;
}

.win95-btn:active {
    border-color: #808080 #fff #fff #808080;
}

.win95-content {
    padding: 15px;
    font-size: 20px;
    color: #000;
    margin-top: 2px;
}

.alert-layout {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.warning-icon {
    background: #ffff00;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #000;
    flex-shrink: 0;
}

.alert-message p {
    margin-bottom: 6px;
    line-height: 1.4;
}

.bold-text {
    font-weight: bold;
}

.actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.shadow-btn {
    min-width: 110px;
    height: 25px;
    box-shadow: 1px 1px 0 0 #000;
    white-space: nowrap;
}

.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px;
}

.system-tray {
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    padding: 2px 8px;
    font-size: 16px;
    color: #000;
    background: #c0c0c0;
}

/* ==========================================
   MOBILE & SMALL SCREEN OPTIMIZATIONS
   ========================================== */
@media (max-width: 1000px) {
    #bios-container {
        padding: 15px;
    }

    .bios-main-view {
        flex-direction: column-reverse;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 20px;
    }

    #bios-text {
        font-size: 14px;
        line-height: 1.4;
    }

    .logo-frame {
        margin-left: 0;
        align-self: flex-start;
    }

    .logo-frame img {
        width: 100%;
        max-width: 240px;
    }

    .bios-footer {
        font-size: 14px;
        margin-top: 15px;
    }

    .alert-box {
        width: 90%;
        top: 45%;
    }

    .win95-content {
        font-size: 16px;
        padding: 10px;
    }

    .warning-icon {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .actions-row {
        flex-direction: column;
        gap: 6px;
    }

    .shadow-btn {
        width: 100%;
        height: 32px; /* Taller target for touch interactions */
    }
}

