body {
    background-color: #051207;
}

#backgroundimage {
    min-height: 100vh;
    object-fit: cover;
    opacity: 0.66;
    filter: saturate(38%) contrast(112%) brightness(46%) sepia(10%);
}

#content::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        repeating-linear-gradient(0deg, rgba(255, 249, 237, 0.045) 0 1px, transparent 1px 5px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.13) 0 1px, transparent 1px 7px);
    mix-blend-mode: overlay;
}

#canvas {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.xpwindow {
    z-index: 3;
    max-width: min(92vw, 680px);
}

.xpwindow a {
    color: #1d3f22;
    text-decoration: underline;
}

.xpwindowcontent {
    color: #11120d;
    font-family: "Times New Roman", Times, Georgia, serif;
    font-size: 10pt;
    line-height: 1.05;
}

.windowterminalcontent {
    color: #55ff55;
    background:
        repeating-linear-gradient(0deg, rgba(0, 170, 0, 0.16) 0 1px, transparent 1px 5px),
        #000000;
    border-color: #00aa00;
    border-top-color: black;
    border-left-color: black;
}

.windowterminalcontent pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: "Courier New", monospace;
    font-size: 8.5pt;
    line-height: 1.18;
}

.windowaboutcontent {
    width: 285px;
    height: auto;
    min-height: 112px;
    font-size: 10.5pt;
    line-height: 1.08;
}

.windowaboutcontent p {
    margin: 0 0 0.72em;
}

.windowledgercontent {
    width: 272px;
    height: auto;
    min-height: 20px;
    border: 1px solid white;
    border-top: 1px solid black;
    border-left: 1px solid black;
    background-color: #f8efdc;
}

.taskwage-ledger table {
    border-collapse: collapse;
    width: 100%;
    font-family: "Times New Roman", Times, Georgia, serif;
    font-size: 10pt;
    line-height: 1.05;
}

.taskwage-ledger th,
.taskwage-ledger td {
    border-bottom: 1px dotted #84795e;
    padding: 1px 3px;
    text-align: left;
}

.taskwage-ledger th {
    font-weight: normal;
    color: #5f332d;
}

.taskwage-ledger td {
    min-width: 70px;
    text-align: right;
}

.feed-list {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 398px;
    max-height: 256px;
    overflow: auto;
    font-family: "Times New Roman", Times, Georgia, serif;
    font-size: 10pt;
    line-height: 1.05;
}

.feed-list li {
    display: grid;
    grid-template-columns: 44px 92px 1fr;
    gap: 7px;
    padding: 4px 6px;
    border-bottom: 1px dashed #998b69;
}

.feed-list time {
    color: #79372d;
}

.feed-list b {
    color: #111;
    font-weight: 700;
}

.task-slip {
    width: 240px;
    background:
        linear-gradient(90deg, transparent 0 28px, rgba(127, 55, 43, 0.28) 29px 31px, transparent 32px),
        repeating-linear-gradient(0deg, #f8efdc 0 21px, #d4c2a1 22px);
    font-family: "Times New Roman", Times, Georgia, serif;
    font-size: 10pt;
    line-height: 1.05;
}

.task-slip dl {
    margin: 0;
}

.task-slip dt {
    margin-top: 4px;
    color: #6b3b32;
    font-style: italic;
}

.task-slip dd {
    margin: 0 0 0 28px;
    padding-bottom: 2px;
}

.rent-clock {
    min-width: 155px !important;
    font-family: "Courier New", monospace;
    text-align: center;
    background: #f8efdc;
    color: #11120d;
}

.rent-clock small,
.rent-clock strong {
    display: block;
}

.rent-clock strong {
    margin-top: 4px;
    font-size: 15pt;
}

body[data-pressure="high"] .rent-clock {
    background: #f8efdc;
}

body[data-pressure="paid"] .rent-clock {
    background: #f8efdc;
}

.plain-list {
    width: 225px;
    margin: 0;
    padding-left: 18px;
    font-size: 10pt;
    line-height: 1.08;
}

.plain-list li {
    margin-bottom: 3px;
}

.folderfile {
    user-select: none;
}

.folderfile:active {
    transform: translateY(1px);
}

.windowmusiccontent {
    width: 258px;
}

.route-console {
    width: 275px;
}

.route-console form {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 4px;
    align-items: center;
    font-family: "Courier New", monospace;
}

.route-console input {
    min-width: 0;
    border: 1px solid #00aa00;
    background: #000000;
    color: #55ff55;
    font: inherit;
}

.route-console button {
    border: 1px solid #000000;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    background: #c0c0c0;
    color: #000000;
    font: inherit;
    cursor: crosshair;
}

.route-console p {
    margin-bottom: 0;
    color: #55ff55;
}

.watch-note {
    width: 285px;
    min-height: 120px;
    font-size: 10pt;
    line-height: 1.08;
}

.watch-note p:first-child {
    margin-top: 0;
}

.windowshiftcontent {
    width: 330px;
}

.windowshiftcontent p {
    margin: 0 0 0.5em;
    font-size: 10.5pt;
    line-height: 1.08;
}

.windowshiftcontent p:first-child {
    font-size: 14pt;
    line-height: 1.02;
    font-weight: 600;
}

.windowneighborscontent {
    max-height: 150px;
    overflow: auto;
    font-size: 10.5pt;
    line-height: 1.08;
}

.windowneighborscontent ul {
    margin: 0;
}

.windowquotecontent {
    font-size: 10.5pt;
    line-height: 1.05;
    font-style: italic;
}

.folderlabel {
    font-family: "Times New Roman", Times, Georgia, serif;
    font-size: 6.5pt;
    line-height: 1.02;
}

@media (max-width: 720px) {
    main {
        min-height: 100dvh;
    }

    .xpwindow {
        max-width: calc(100vw - 14px);
        font-size: 8pt;
    }

    .xpwindowcontent {
        max-width: calc(100vw - 28px);
        max-height: 62vh;
        font-size: 9.5pt;
        line-height: 1.06;
    }

    .windowaboutcontent,
    .windowshiftcontent,
    .watch-note,
    .feed-list,
    .route-console {
        width: calc(100vw - 42px);
    }

    .windowaboutcontent {
        height: auto;
        min-height: 172px;
        font-size: 10pt;
    }

    .windowshiftcontent p {
        font-size: 10pt;
    }

    .windowshiftcontent p:first-child {
        font-size: 12pt;
    }

    .taskwage-ledger table,
    .feed-list,
    .plain-list,
    .task-slip,
    .watch-note,
    .windowneighborscontent,
    .windowquotecontent {
        font-size: 9.5pt;
    }

    .feed-list li {
        grid-template-columns: 40px 84px 1fr;
        gap: 6px;
        padding: 4px 6px;
    }

    .task-slip {
        width: calc(100vw - 42px);
    }

    .rent-clock strong {
        font-size: 17pt;
    }

    .windowterminalcontent pre {
        font-size: 8pt;
    }
}
