:root {
    --bg-color: #050505;
    --paper-color: #e5e3d5;
    --text-color: #111;
    --term-bg: #1a1b26;
    --term-text: #a9b1d6;
    --link-color: #0000ee;
    --border-color: #b0ad99;
}

@font-face {
    font-family: 'MSW98UI';
    src: url('fonts/MSW98UI-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'MSW98UI';
    src: url('fonts/MSW98UI-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: block;
}

* {
    font-family: 'MSW98UI', sans-serif !important;
    -webkit-font-smoothing: none !important;
    -moz-osx-font-smoothing: none !important;
    font-smooth: never !important;
    text-rendering: optimizeSpeed !important;
    font-size: 11px !important;
    letter-spacing: 0.1px !important;
}

body {
    margin: 0;
    padding-bottom: 30px;
    background: url(https://vmfunc.re/str.gif);
    background-size: fixed;
    background-color: #000;
    background-repeat: repeat;
    color: var(--text-color);
}

.container {
    background-color: var(--paper-color);
    padding: 20px 40px;
    position: relative;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.splash-content {
    text-align: center;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28px;
    background-color: silver;
    border-top: 1px solid #fff;
    display: flex;
    align-items: center;
    padding: 0 2px;
    box-shadow: inset 0 1px #dfdfdf, 0 -1px #000;
    z-index: 9998;
}

.start-button {
    position: relative;
    height: 22px;
    margin: 0 2px;
}

.start-button-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    padding: 0 2px 0 4px;
    font-weight: 700;
    font-size: 11px;
    background: silver;
    box-shadow: inset 1px 1px #fff, inset -1px -1px #888;
    border: none;
    cursor: pointer;
}

.start-button-inner:active {
    box-shadow: inset -1px -1px #fff, inset 1px 1px #888;
    padding: 1px 1px 0 5px;
}

.taskbar-divider {
    width: 1px;
    height: 18px;
    background-color: #888;
    margin: 0 2px;
    border-right: 1px solid #fff;
}

.open-apps {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 2px;
    gap: 2px;
    overflow-x: hidden;
}

.taskbar-app {
    height: 22px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 5px;
    background-color: silver;
    box-shadow: inset 1px 1px #fff, inset -1px -1px #888;
    min-width: 120px;
    max-width: 200px;
    font-size: 11px;
    cursor: pointer;
    font-weight: bold;
}

.taskbar-app.active {
    box-shadow: inset -1px -1px #fff, inset 1px 1px #888;
    padding: 1px 4px 0 6px;
    background: #e0e0e0;
}

.tray {
    display: flex;
    align-items: center;
    background-color: silver;
    box-shadow: inset 1px 1px #888, inset -1px -1px #fff;
    height: 22px;
    padding: 0 5px;
}

.tray-icon {
    margin: 0 2px;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 10px;
}

.tray-divider {
    width: 1px;
    height: 16px;
    background-color: #888;
    margin: 0 5px;
    border-right: 1px solid #fff;
}

.taskbar-time {
    font-size: 11px;
    padding: 0 2px;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 2px;
    margin-right: 5px;
}

.music-controls button {
    width: 24px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: silver;
    box-shadow: inset 1px 1px #fff, inset -1px -1px #888;
    cursor: pointer;
    padding: 0;
    border: none;
}

.music-controls button:active {
    box-shadow: inset -1px -1px #fff, inset 1px 1px #888;
    padding: 1px 0 0 1px;
}

.now-playing-text {
    font-size: 11px;
    margin-right: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    padding: 0 5px;
    border: 1px inset #888;
    background-color: #fff;
    color: navy;
    height: 16px;
    line-height: 16px;
}

.start-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: 250px;
    background-color: silver;
    border: 1px solid #000;
    box-shadow: 1px 1px #dfdfdf, -1px -1px #888;
    display: none;
    z-index: 99999;
    min-height: 160px;
}

.start-menu-header {
    height: 100%;
    width: 23px;
    background: linear-gradient(to bottom, navy, #1084d0);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

.start-menu-header-label {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    position: absolute;
    bottom: 6px;
    left: 3px;
    letter-spacing: 1px;
}

.start-menu-items {
    padding: 3px;
    margin-left: 23px;
}

.start-menu-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 4px;
    font-size: 11px;
    cursor: pointer;
    min-height: 20px;
}

.start-menu-item:hover {
    background-color: navy;
    color: #fff;
}

.start-menu-divider {
    height: 1px;
    background-color: #888;
    margin: 4px 0 4px 2px;
}

@media screen and (max-width: 640px) {
    .window {
        max-width: 100vw !important;
        margin: 5px !important;
    }

    .container {
        padding: 15px !important;
    }

    .taskbar-app span {
        display: none;
    }

    .taskbar-app {
        min-width: 30px;
        justify-content: center;
    }

    .now-playing-text {
        max-width: 80px;
    }

    .music-controls button {
        width: 20px;
        height: 20px;
    }
}

.terminal-header {
    background-color: var(--term-bg);
    color: var(--term-text);
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #3d59a1;
}

.term-line {
    margin: 5px 0;
}

.term-key {
    display: inline-block;
    width: 80px;
    color: #7dcfff;
}

.intro {
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

a {
    color: var(--link-color);
    text-decoration: underline;
}

a:hover {
    background-color: var(--text-color);
    color: var(--paper-color);
    text-decoration: none;
}

.section-title {
    color: #333;
    font-size: 16px;
    margin-top: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

input {
    background: #fff;
    border: 1px solid var(--text-color);
    padding: 8px;
    font-family: inherit;
    font-size: 12px;
    color: #000;
    box-sizing: border-box;
    appearance: auto;
    flex-grow: 1;
}

input:focus {
    outline: 2px solid #555;
}

select {
    font-family: inherit;
    font-size: 12px;
    box-sizing: border-box;
}

.playing-container {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-left: 3px solid #888;
    margin-bottom: 30px;
}

.playing-container ul {
    margin: 0;
    padding-left: 20px;
}

details {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    padding: 10px;
    transition: background 0.2s;
}

details:hover {
    background: rgba(255, 255, 255, 0.6);
}

summary {
    cursor: pointer;
    font-weight: bold;
    display: block;
    list-style: none;
    padding: 4px 0;
}

summary::after {
    content: "";
    display: table;
    clear: both;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "[+] ";
    color: #555;
}

details[open] summary::before {
    content: "[-] ";
}

.game-meta {
    font-size: 11px;
    color: #555;
    float: right;
    font-weight: normal;
}

.rating {
    color: #d00000;
    font-weight: bold;
}

.game-content {
    margin-top: 15px;
    padding-left: 25px;
    border-left: 2px dashed #aaa;
}

.parts-list {
    margin: 10px 0;
}

.links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    font-size: 11px;
}

.links a {
    padding: 2px 5px;
    border: 1px solid var(--border-color);
    text-decoration: none;
}