@font-face {
    font-family: "C-64";
    src: url("fonts/C-64-Fonts/C-64/c-64.ttf") format("truetype");
    font-display: block;
}

@font-face {
    font-family: "Modern DOS 8x16";
    src: url("fonts/Modern-DOS/ModernDOS8x16.ttf") format("truetype");
    font-display: block;
}

:root {
    color-scheme: dark;
    font-family: Inter, "Segoe UI", sans-serif;
    background: #111014;
}

* {
    box-sizing: border-box;
}

html,
body,
#app {
    min-width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    color: #e9e6df;
    background:
        radial-gradient(circle at 50% -20%, #39343e 0, transparent 42rem),
        #111014;
}

.tui-main {
    min-height: 100vh;
    min-height: 100dvh;
}

.startup-showcase {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding:
        max(0.75rem, env(safe-area-inset-top))
        max(0.75rem, env(safe-area-inset-right))
        max(0.75rem, env(safe-area-inset-bottom))
        max(0.75rem, env(safe-area-inset-left));
}

.monitor-stage {
    display: grid;
    place-items: center;
    width: min(80vw, 100%);
    height: min(80vh, 100%);
    width: min(80dvw, 100%);
    height: min(80dvh, 100%);
    container-type: size;
}

.commodore-control {
    min-width: 0;
    margin: 0;
}

.machine-case {
    position: relative;
    padding: clamp(1rem, 3vw, 1.65rem);
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: clamp(0.9rem, 2vw, 1.4rem);
    box-shadow:
        0 1.6rem 3rem rgb(0 0 0 / 28%),
        inset 0 1px rgb(255 255 255 / 36%),
        inset 0 -2px rgb(0 0 0 / 20%);
}

.c64-control .machine-case {
    background: linear-gradient(145deg, #b8ac96, #95856e);
}

.c128-control .machine-case {
    background: linear-gradient(145deg, #ddd9cd, #aaa697);
}

.dos-control .machine-case {
    border-radius: clamp(0.35rem, 1vw, 0.7rem);
    background: linear-gradient(145deg, #c8c3b3, #8f8a7d);
}

.windows311-control .machine-case,
.windows95-control .machine-case {
    border-radius: clamp(0.35rem, 1vw, 0.7rem);
    background: linear-gradient(145deg, #c8c3b3, #8f8a7d);
}

.case-detail {
    position: absolute;
    inset: 0 0 auto;
    height: 0.42rem;
    background: rgb(255 255 255 / 18%);
    box-shadow: 0 1px rgb(0 0 0 / 18%);
}

.display-border {
    position: relative;
    padding: 7.25% 8%;
    background: var(--border-color);
    box-shadow:
        0 0 0 0.35rem rgb(36 32 35 / 75%),
        0 0.7rem 1.4rem rgb(0 0 0 / 30%),
        inset 0 0 1.5rem rgb(0 0 0 / 14%);
}

.c64-control {
    --screen-font: "C-64";
}

.c128-control {
    --screen-font: "C-64";
}

.dos-control {
    --screen-font: "Modern DOS 8x16", "Lucida Console", ui-monospace;
}

.c64-scheme {
    --screen-color: #352879;
    --border-color: #6c5eb5;
    --ink-color: #6c5eb5;
}

.c128-scheme {
    --screen-color: #444444;
    --border-color: #a6d58c;
    --ink-color: #a6d58c;
}

.dos-scheme {
    --screen-color: #000;
    --border-color: #242321;
    --ink-color: #aaa;
}

.windows311-scheme {
    --border-color: #242321;
}

.windows95-scheme {
    --border-color: #242321;
}

.commodore-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 8 / 5;
    overflow: hidden;
    color: var(--ink-color);
    background: var(--screen-color);
    container-type: inline-size;
    box-shadow: inset 0 0 1.2rem rgb(0 0 0 / 12%);
    isolation: isolate;
}

.commodore-screen::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgb(0 0 0 / 3%) 2px,
        rgb(0 0 0 / 3%) 3px
    );
    content: "";
    pointer-events: none;
}

.commodore-screen-grid {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    flex-direction: column;
}

.commodore-screen-row {
    display: flex;
    flex: 0 0 4%;
    width: 100%;
    height: 4%;
}

.commodore-screen-cell {
    display: grid;
    flex: 0 0 calc(100% / var(--screen-columns, 40));
    place-items: center;
    width: calc(100% / var(--screen-columns, 40));
    height: 100%;
    overflow: visible;
    color: inherit;
    font-family: var(--screen-font), monospace;
    font-size: 1.66cqw;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    line-height: 1;
    text-rendering: geometricPrecision;
}

.dos-control .commodore-screen {
    aspect-ratio: 9 / 5;
    box-shadow:
        inset 0 0 1.5rem rgb(255 255 255 / 4%),
        inset 0 0 4rem rgb(0 0 0 / 45%);
}

.dos-control .display-border {
    padding: 0;
    background: #000;
}

.windows311-control .display-border,
.windows95-control .display-border {
    padding: 0;
    background: #000;
}

.dos-control .commodore-screen-cell {
    font-size: 2.22cqw;
    text-rendering: optimizeSpeed;
}

.windows311-screen {
    --win-black: #000;
    --win-blue: #000080;
    --win-face: #c0c0c0;
    --win-highlight: #fff;
    --win-shadow: #808080;
    --win-pixel: max(1px, 0.15625cqw);
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    color: #000;
    background: #008080;
    container-type: inline-size;
    font-family: "MS Sans Serif", "Microsoft Sans Serif", Arial, sans-serif;
    font-size: 1.875cqw;
    font-synthesis: none;
    image-rendering: pixelated;
    isolation: isolate;
}

.windows311-screen.is-program-manager {
    background: var(--win-face);
}

.windows311-screen.is-program-manager::after {
    display: none;
}

.windows311-screen::after {
    position: absolute;
    z-index: 5;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgb(0 0 0 / 2%) 2px,
        rgb(0 0 0 / 2%) 3px
    );
    content: "";
    pointer-events: none;
}

.program-manager {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 2.8125cqw 3.125cqw 1fr;
    padding: 0.46875cqw;
    border: var(--win-pixel) solid var(--win-black);
    background: var(--win-face);
    box-shadow:
        inset var(--win-pixel) var(--win-pixel) var(--win-highlight),
        inset calc(-1 * var(--win-pixel)) calc(-1 * var(--win-pixel)) var(--win-shadow),
        var(--win-pixel) var(--win-pixel) 0 var(--win-black);
}

.windows-titlebar {
    display: grid;
    grid-template-columns: 2.8125cqw 1fr auto;
    align-items: center;
    min-width: 0;
    height: 2.8125cqw;
    padding: 0;
    color: var(--win-highlight);
    background: var(--win-blue);
    font-size: 1.875cqw;
    font-weight: 700;
    line-height: 1;
}

.windows-titlebar.is-inactive {
    background: var(--win-shadow);
}

.windows-titlebar[data-drag-handle] {
    cursor: default;
    touch-action: none;
    user-select: none;
}

.windows-title {
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.windows-system-menu,
.windows-title-controls > * {
    position: relative;
    display: block;
    width: 2.8125cqw;
    height: 2.8125cqw;
    margin: 0;
    padding: 0;
    border: var(--win-pixel) solid var(--win-black);
    background: var(--win-face);
    box-shadow:
        inset var(--win-pixel) var(--win-pixel) var(--win-highlight),
        inset calc(-1 * var(--win-pixel)) calc(-1 * var(--win-pixel)) var(--win-shadow);
    appearance: none;
    color: var(--win-black);
    font: inherit;
}

button.windows-system-menu,
.windows-title-controls > button {
    cursor: default;
}

button.windows-system-menu:active,
.windows-title-controls > button:active {
    box-shadow:
        inset var(--win-pixel) var(--win-pixel) var(--win-shadow),
        inset calc(-1 * var(--win-pixel)) calc(-1 * var(--win-pixel)) var(--win-highlight);
}

.windows-system-menu::after {
    position: absolute;
    top: 1.15cqw;
    right: 0.65cqw;
    left: 0.65cqw;
    border-top: var(--win-pixel) solid var(--win-black);
    border-bottom: var(--win-pixel) solid var(--win-black);
    content: "";
}

.windows-title-controls {
    display: flex;
    gap: var(--win-pixel);
}

.windows-control-minimize::after,
.windows-control-maximize::after {
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    border-right: 0.55cqw solid transparent;
    border-left: 0.55cqw solid transparent;
    content: "";
    transform: translateX(-50%);
}

.windows-control-minimize::after {
    top: 1.05cqw;
    border-top: 0.65cqw solid var(--win-black);
}

.windows-control-maximize::after {
    top: 0.65cqw;
    border-bottom: 0.65cqw solid var(--win-black);
}

.windows-menu {
    display: flex;
    align-items: center;
    gap: 2.5cqw;
    padding: 0 1.25cqw;
    border: var(--win-pixel) solid;
    border-color: var(--win-highlight) var(--win-shadow) var(--win-shadow) var(--win-highlight);
    color: var(--win-black);
    background: var(--win-highlight);
    font-size: 1.875cqw;
    font-weight: 400;
    line-height: 1;
}

.windows-menu button,
.windows-app-menu button {
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    line-height: inherit;
    appearance: none;
    cursor: default;
}

.windows-menu button:focus-visible,
.windows-app-menu button:focus-visible,
.program-item:focus-visible,
.program-group:focus-visible,
.windows-minimized-window:focus-visible,
.control-panel-grid button:focus-visible,
.clipbook-page-list button:focus-visible {
    outline: var(--win-pixel) dotted var(--win-black);
    outline-offset: var(--win-pixel);
}

.program-workspace {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border: var(--win-pixel) solid var(--win-black);
    background: var(--win-highlight);
}

.windows-managed-window {
    position: absolute;
    z-index: var(--window-z);
    top: calc(var(--win-y) * 0.15625cqw);
    left: calc(var(--win-x) * 0.15625cqw);
    display: grid;
    grid-template-rows: 2.8125cqw 1fr;
    width: calc(var(--win-width) * 0.15625cqw);
    height: calc(var(--win-height) * 0.15625cqw);
    padding: 0.46875cqw;
    border: var(--win-pixel) solid var(--win-black);
    background: var(--win-face);
    box-sizing: border-box;
    box-shadow:
        inset var(--win-pixel) var(--win-pixel) var(--win-highlight),
        inset calc(-1 * var(--win-pixel)) calc(-1 * var(--win-pixel)) var(--win-shadow),
        var(--win-pixel) var(--win-pixel) 0 var(--win-black);
}

.windows-managed-window.is-maximized {
    inset: 0;
    width: 100%;
    height: 100%;
}

.windows-managed-window.is-dragging {
    filter: drop-shadow(0.3125cqw 0.3125cqw 0 rgb(0 0 0 / 35%));
}

.windows-window-client {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: var(--win-pixel) solid;
    border-color: var(--win-shadow) var(--win-highlight) var(--win-highlight) var(--win-shadow);
    background: var(--win-highlight);
}

.windows-system-popup {
    position: absolute;
    z-index: 10000;
    top: 3.28125cqw;
    left: 0.46875cqw;
    display: grid;
    width: 20cqw;
    padding: 0.46875cqw 0;
    border: var(--win-pixel) solid var(--win-black);
    background: var(--win-face);
    box-shadow:
        inset var(--win-pixel) var(--win-pixel) var(--win-highlight),
        inset calc(-1 * var(--win-pixel)) calc(-1 * var(--win-pixel)) var(--win-shadow),
        var(--win-pixel) var(--win-pixel) 0 var(--win-black);
    font-size: 1.5625cqw;
}

.windows-system-popup button {
    min-height: 2.5cqw;
    padding: 0 1.25cqw;
    border: 0;
    color: var(--win-black);
    background: transparent;
    font: inherit;
    text-align: left;
}

.windows-system-popup button:not(:disabled):hover,
.windows-system-popup button:not(:disabled):focus-visible {
    color: var(--win-highlight);
    background: var(--win-blue);
    outline: none;
}

.windows-system-popup button:disabled {
    color: var(--win-shadow);
    text-shadow: var(--win-pixel) var(--win-pixel) var(--win-highlight);
}

.windows-system-popup hr {
    width: 100%;
    margin: 0.3125cqw 0;
    border: 0;
    border-top: var(--win-pixel) solid var(--win-shadow);
    border-bottom: var(--win-pixel) solid var(--win-highlight);
}

.program-group-client {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    background: var(--win-highlight);
}

.program-items {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 10.5cqw;
    align-items: start;
    gap: 0.6cqw 0;
    height: 100%;
    min-height: 0;
    padding: 0.9cqw 0 0;
    overflow: auto;
}

.program-item,
.program-group {
    display: grid;
    justify-items: center;
    align-content: start;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--win-black);
    background: transparent;
    font: inherit;
    text-align: center;
    appearance: none;
    cursor: default;
}

.windows311-program-icon {
    display: block;
    width: 5cqw;
    height: 5cqw;
    margin-bottom: 0.35cqw;
    overflow: visible;
    shape-rendering: crispEdges;
}

.program-label,
.program-group > span:last-child {
    max-width: 11cqw;
    padding: 0 0.2cqw;
    font-size: 1.5625cqw;
    line-height: 1.1;
    white-space: normal;
}

.program-item.is-selected .program-label {
    color: var(--win-highlight);
    background: var(--win-blue);
}

.program-item:focus .program-label,
.program-group:focus .program-group-label {
    color: var(--win-highlight);
    background: var(--win-blue);
}

.program-groups {
    position: absolute;
    z-index: 1;
    bottom: 1.25cqw;
    left: 1.25cqw;
    display: flex;
    flex-wrap: wrap;
    gap: 1.71875cqw;
    align-items: end;
}

.program-group-icon {
    width: 4.6875cqw;
    height: 4.6875cqw;
    margin-bottom: 0.25cqw;
}

.program-group {
    width: 10cqw;
}

.program-group-label {
    max-width: 10cqw;
    white-space: nowrap;
}

.windows-minimized-windows {
    position: absolute;
    z-index: 10001;
    right: 1.25cqw;
    bottom: 0.75cqw;
    display: flex;
    gap: 0.625cqw;
    align-items: end;
    max-width: 55cqw;
}

.windows-minimized-window {
    display: grid;
    grid-template-columns: 3.75cqw minmax(0, 1fr);
    align-items: center;
    width: 16.25cqw;
    min-height: 4.6875cqw;
    padding: 0.3125cqw;
    overflow: hidden;
    border: var(--win-pixel) solid var(--win-black);
    color: var(--win-black);
    background: var(--win-face);
    box-shadow:
        inset var(--win-pixel) var(--win-pixel) var(--win-highlight),
        inset calc(-1 * var(--win-pixel)) calc(-1 * var(--win-pixel)) var(--win-shadow);
    font: inherit;
    font-size: 1.25cqw;
    line-height: 1;
    text-align: left;
}

.windows-minimized-window .windows311-program-icon {
    width: 3.125cqw;
    height: 3.125cqw;
    margin: 0;
}

.windows-minimized-window > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.windows-app-shell,
.solitaire-app,
.minesweeper-app {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    color: var(--win-black);
    background: var(--win-face);
    font-size: 1.40625cqw;
}

.windows-app-shell {
    display: grid;
    grid-template-rows: 2.65625cqw 1fr;
}

.windows-app-menu {
    display: flex;
    align-items: center;
    gap: 2.1875cqw;
    min-height: 2.65625cqw;
    padding: 0 1.09375cqw;
    overflow: hidden;
    border-bottom: var(--win-pixel) solid var(--win-shadow);
    background: var(--win-face);
    font-size: 1.40625cqw;
    line-height: 1;
    white-space: nowrap;
}

.windows-statusbar {
    display: flex;
    align-items: center;
    min-height: 2.34375cqw;
    padding: 0 0.625cqw;
    overflow: hidden;
    border: var(--win-pixel) solid;
    border-color: var(--win-shadow) var(--win-highlight) var(--win-highlight) var(--win-shadow);
    background: var(--win-face);
    font-size: 1.25cqw;
    white-space: nowrap;
}

.file-manager-app {
    grid-template-rows: 2.65625cqw 2.5cqw 1fr 2.34375cqw;
}

.file-manager-drive,
.printer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.625cqw;
    border-bottom: var(--win-pixel) solid var(--win-shadow);
    background: var(--win-face);
}

.file-manager-panes {
    display: grid;
    grid-template-columns: 38% 1fr;
    min-height: 0;
    background: var(--win-highlight);
}

.file-manager-tree {
    margin: 0;
    padding: 0.625cqw;
    overflow: auto;
    border-right: var(--win-pixel) solid var(--win-shadow);
    list-style: none;
}

.file-manager-tree li {
    line-height: 1.8;
    white-space: nowrap;
}

.file-manager-tree .tree-child {
    padding-left: 2.1875cqw;
}

.file-manager-tree .is-current {
    color: var(--win-highlight);
    background: var(--win-blue);
}

.file-manager-files {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 0.9375cqw;
    padding: 0.9375cqw;
    overflow: auto;
    font-family: "Courier New", monospace;
    font-size: 1.25cqw;
}

.control-panel-app {
    grid-template-rows: 2.65625cqw 1fr 2.34375cqw;
}

.control-panel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 8.75cqw;
    padding: 1.25cqw 0.625cqw;
    overflow: auto;
    background: var(--win-highlight);
}

.control-panel-grid button {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.3125cqw;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
}

.control-panel-glyph {
    display: grid;
    place-items: center;
    width: 4.375cqw;
    height: 4.375cqw;
    border: var(--win-pixel) solid var(--win-black);
    color: var(--win-highlight);
    background: var(--win-blue);
    box-shadow: inset 0.46875cqw 0.46875cqw 0 var(--win-face);
    font-size: 2.1875cqw;
    font-weight: 700;
}

.print-manager-app {
    grid-template-rows: 2.65625cqw 2.8125cqw 1fr 2.34375cqw;
}

.printer-heading {
    justify-content: flex-start;
}

.printer-queue {
    overflow: auto;
    background: var(--win-highlight);
}

.printer-queue > div {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 0.46875cqw;
    border-bottom: var(--win-pixel) solid var(--win-black);
}

.printer-queue p {
    margin: 2.5cqw 0;
    text-align: center;
}

.clipbook-app {
    grid-template: 2.65625cqw 1fr / 12.5cqw 1fr;
}

.clipbook-app > .windows-app-menu {
    grid-column: 1 / -1;
}

.clipbook-page-list {
    display: grid;
    align-content: start;
    border-right: var(--win-pixel) solid var(--win-shadow);
    background: var(--win-face);
}

.clipbook-page-list button {
    padding: 0.625cqw;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
}

.clipbook-page-list .is-current {
    color: var(--win-highlight);
    background: var(--win-blue);
}

.clipbook-page {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1.25cqw;
    background: var(--win-highlight);
}

.clipbook-paper {
    width: 7.5cqw;
    height: 9.375cqw;
    border: var(--win-pixel) solid var(--win-black);
    background: repeating-linear-gradient(#fff 0 1.25cqw, #000080 1.25cqw 1.40625cqw);
    box-shadow: 0.625cqw 0.625cqw 0 var(--win-face);
}

.clipbook-page p {
    margin: 0;
}

.dos-prompt-app {
    width: 100%;
    height: 100%;
    padding: 1.25cqw;
    overflow: auto;
    color: #aaa;
    background: #000;
    box-sizing: border-box;
    font-family: "Courier New", monospace;
    font-size: 1.5625cqw;
    line-height: 1.25;
}

.dos-prompt-app p {
    margin: 0;
}

.dos-prompt-cursor {
    display: inline-block;
    width: 0.9375cqw;
    height: 0.3125cqw;
    margin-left: 0.15625cqw;
    background: currentcolor;
    vertical-align: baseline;
    animation: commodore-cursor-blink 1s steps(1, end) infinite;
}

.setup-app {
    grid-template-rows: 2.65625cqw 7.1875cqw 1fr;
}

.setup-banner {
    display: flex;
    align-items: center;
    gap: 1.25cqw;
    padding: 0.625cqw 1.25cqw;
    border-bottom: var(--win-pixel) solid var(--win-shadow);
    background: var(--win-highlight);
    font-size: 2.1875cqw;
}

.setup-banner .windows311-program-icon {
    width: 5.625cqw;
    height: 5.625cqw;
    margin: 0;
}

.setup-list {
    display: grid;
    grid-template-columns: 10.625cqw 1fr;
    align-content: start;
    gap: 1.25cqw 0.625cqw;
    margin: 0;
    padding: 1.25cqw;
    overflow: auto;
}

.setup-list dt {
    font-weight: 700;
}

.setup-list dd {
    margin: 0;
}

.pif-editor-app {
    grid-template-rows: 2.65625cqw 1fr;
}

.pif-form {
    display: grid;
    align-content: start;
    gap: 0.9375cqw;
    padding: 1.25cqw;
    overflow: auto;
}

.pif-form > label {
    display: grid;
    grid-template-columns: 14.375cqw 1fr;
    align-items: center;
}

.pif-form input {
    min-width: 0;
    height: 2.34375cqw;
    padding: 0 0.46875cqw;
    border: var(--win-pixel) solid;
    border-color: var(--win-shadow) var(--win-highlight) var(--win-highlight) var(--win-shadow);
    border-radius: 0;
    font: inherit;
}

.pif-form fieldset {
    display: flex;
    gap: 2.5cqw;
    padding: 0.9375cqw;
    border: var(--win-pixel) solid var(--win-shadow);
}

.notepad-app {
    grid-template-rows: 2.65625cqw 1fr;
}

.notepad-document {
    padding: 1.25cqw;
    overflow: auto;
    color: var(--win-black);
    background: var(--win-highlight);
    font-family: "Courier New", monospace;
    font-size: 1.40625cqw;
    line-height: 1.25;
}

.notepad-document p {
    margin: 0;
}

.solitaire-app,
.minesweeper-app {
    display: grid;
    grid-template-rows: 2.65625cqw 1fr;
}

.solitaire-table {
    position: relative;
    overflow: hidden;
    background: #008000;
}

.playing-card {
    position: absolute;
    top: 2.1875cqw;
    width: 6.25cqw;
    height: 8.75cqw;
    padding: 0.3125cqw;
    border: var(--win-pixel) solid var(--win-black);
    border-radius: 0.46875cqw;
    background: var(--win-highlight);
    box-shadow: 0.3125cqw 0.3125cqw 0 rgb(0 0 0 / 45%);
}

.card-back {
    left: 2.1875cqw;
    background: repeating-linear-gradient(45deg, #000080 0 0.3125cqw, #fff 0.3125cqw 0.625cqw);
}

.card-face {
    left: 10cqw;
    display: grid;
    justify-items: start;
    color: #c00000;
    font-size: 2.1875cqw;
}

.card-face span {
    justify-self: center;
    font-size: 3.125cqw;
}

.card-pile {
    position: absolute;
    top: 13.75cqw;
    left: calc(2.1875cqw + (var(--card-column) * 6.875cqw));
    width: 6.25cqw;
    height: 8.75cqw;
    border: var(--win-pixel) solid var(--win-highlight);
    border-radius: 0.46875cqw;
}

.minesweeper-app {
    background: var(--win-face);
}

.mine-counter {
    position: absolute;
    top: 4.53125cqw;
    left: 50%;
    display: flex;
    gap: 2.1875cqw;
    align-items: center;
    width: 22.5cqw;
    padding: 0.625cqw;
    border: var(--win-pixel) solid;
    border-color: var(--win-shadow) var(--win-highlight) var(--win-highlight) var(--win-shadow);
    box-sizing: border-box;
    transform: translateX(-50%);
}

.mine-counter span {
    padding: 0.3125cqw;
    color: #f00;
    background: #000;
    font-family: "Courier New", monospace;
}

.mine-counter button,
.mine-grid button {
    border: var(--win-pixel) solid var(--win-black);
    background: var(--win-face);
    box-shadow:
        inset var(--win-pixel) var(--win-pixel) var(--win-highlight),
        inset calc(-1 * var(--win-pixel)) calc(-1 * var(--win-pixel)) var(--win-shadow);
    font: inherit;
}

.mine-counter button {
    width: 3.125cqw;
    height: 3.125cqw;
    padding: 0;
}

.mine-grid {
    position: absolute;
    top: 10cqw;
    left: 50%;
    display: grid;
    grid-template-columns: repeat(8, 2.8125cqw);
    grid-template-rows: repeat(8, 2.8125cqw);
    border: 0.46875cqw solid;
    border-color: var(--win-shadow) var(--win-highlight) var(--win-highlight) var(--win-shadow);
    transform: translateX(-50%);
}

.mine-grid button {
    display: grid;
    place-items: center;
    width: 2.8125cqw;
    height: 2.8125cqw;
    padding: 0;
    color: var(--win-blue);
    font-weight: 700;
}

.mine-grid button.is-revealed {
    border-color: var(--win-shadow);
    box-shadow: none;
}

.windows311-startup {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    color: #000;
    background: #00a9a9;
    text-align: center;
}

.windows311-startup-art {
    display: grid;
    justify-items: center;
    width: min(62cqw, 78%);
}

.windows311-logo {
    display: flex;
    align-items: end;
    gap: 1.6cqw;
}

.windows311-flag {
    display: grid;
    grid-template-columns: repeat(2, 5.4cqw);
    grid-template-rows: repeat(2, 4.2cqw);
    gap: 0.45cqw;
    transform: skewY(-8deg);
}

.windows311-flag > span {
    border: 0.35cqw solid #000;
    box-shadow: inset 0.45cqw 0.45cqw rgb(255 255 255 / 45%);
}

.windows311-flag > span:nth-child(1) {
    background: #f00;
}

.windows311-flag > span:nth-child(2) {
    background: #00a800;
}

.windows311-flag > span:nth-child(3) {
    background: #00f;
}

.windows311-flag > span:nth-child(4) {
    background: #ff0;
}

.windows311-wordmark {
    display: grid;
    justify-items: start;
    line-height: 0.9;
}

.windows311-microsoft {
    margin-left: 0.3cqw;
    font-size: 1.8cqw;
    font-weight: 700;
}

.windows311-wordmark strong {
    color: #000080;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 7.6cqw;
    font-style: italic;
    letter-spacing: -0.65cqw;
    line-height: 0.8;
}

.windows311-workgroups {
    justify-self: end;
    margin-right: 0.3cqw;
    font-size: 2.3cqw;
    font-weight: 700;
}

.windows311-version {
    margin-top: 2.8cqw;
    font-size: 2cqw;
    font-weight: 700;
}

.windows311-copyright {
    margin-top: 0.8cqw;
    font-size: 1.25cqw;
}

.windows95-screen {
    --win95-black: #000;
    --win95-face: #c0c0c0;
    --win95-highlight: #fff;
    --win95-shadow: #808080;
    --win95-dark-shadow: #404040;
    --win95-pixel: max(1px, 0.15625cqw);
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    color: var(--win95-black);
    background: #008080;
    container-type: inline-size;
    font-family: "MS Sans Serif", "Microsoft Sans Serif", Arial, sans-serif;
    font-size: 1.875cqw;
    font-synthesis: none;
    image-rendering: pixelated;
    isolation: isolate;
}

.windows95-boot-screen {
    background: #000;
}

.windows95-boot-fallback,
.windows95-boot-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

.windows95-boot-canvas {
    z-index: 1;
}

.windows95-desktop {
    background: #008080;
}

.windows95-desktop-icons {
    position: absolute;
    top: 1.5cqw;
    left: 1cqw;
    display: grid;
    gap: 1.1cqw;
    width: 15cqw;
}

.windows95-desktop-shortcut {
    display: grid;
    justify-items: center;
    width: 15cqw;
    min-height: 11.2cqw;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: 1.65cqw;
    line-height: 1.08;
    text-align: center;
    text-shadow: 0.16cqw 0.16cqw #000;
}

.windows95-desktop-shortcut:focus-visible > span:last-child,
.windows95-desktop-shortcut:active > span:last-child {
    background: #000080;
    outline: var(--win95-pixel) dotted #fff;
}

.windows95-desktop-icon {
    position: relative;
    display: block;
    width: 6.4cqw;
    height: 6.1cqw;
    margin-bottom: 0.35cqw;
    filter: drop-shadow(0.2cqw 0.2cqw 0 rgb(0 0 0 / 48%));
}

.windows95-computer-icon::before {
    position: absolute;
    inset: 0.3cqw 0.45cqw 1.35cqw;
    border: 0.25cqw solid #000;
    background: #c0c0c0;
    box-shadow:
        inset 0.5cqw 0.5cqw #fff,
        inset -0.5cqw -0.5cqw #808080,
        inset 0 0 0 1.1cqw #000080;
    content: "";
}

.windows95-computer-icon::after {
    position: absolute;
    right: 1.2cqw;
    bottom: 0.35cqw;
    left: 1.2cqw;
    height: 0.85cqw;
    border: 0.25cqw solid #000;
    background: #c0c0c0;
    content: "";
}

.windows95-network-icon::before,
.windows95-network-icon::after {
    position: absolute;
    width: 3.5cqw;
    height: 2.8cqw;
    border: 0.22cqw solid #000;
    background: #c0c0c0;
    box-shadow: inset 0 0 0 0.65cqw #000080;
    content: "";
}

.windows95-network-icon::before {
    top: 0.35cqw;
    left: 1.45cqw;
}

.windows95-network-icon::after {
    right: 0.15cqw;
    bottom: 0.45cqw;
    box-shadow:
        -2.65cqw 0 #c0c0c0,
        -2.65cqw 0 0 0.22cqw #000,
        inset 0 0 0 0.65cqw #000080;
}

.windows95-inbox-icon::before {
    position: absolute;
    inset: 0.75cqw 0.35cqw 0.6cqw;
    border: 0.25cqw solid #000;
    background:
        linear-gradient(145deg, transparent 47%, #000 48% 51%, transparent 52%),
        linear-gradient(215deg, transparent 47%, #000 48% 51%, transparent 52%),
        #ffffc0;
    content: "";
}

.windows95-recycle-icon::before {
    position: absolute;
    top: 1.1cqw;
    right: 1.2cqw;
    bottom: 0.35cqw;
    left: 1.2cqw;
    border: 0.25cqw solid #000;
    background: repeating-linear-gradient(90deg, #e8ffff 0 0.55cqw, #78bfc8 0.55cqw 0.8cqw);
    transform: perspective(8cqw) rotateX(-7deg);
    content: "";
}

.windows95-recycle-icon::after {
    position: absolute;
    top: 0.35cqw;
    right: 0.8cqw;
    left: 0.8cqw;
    height: 0.75cqw;
    border: 0.25cqw solid #000;
    background: #d9ffff;
    content: "";
}

.windows95-start-menu {
    position: absolute;
    z-index: 5;
    bottom: 5.25cqw;
    left: 0.3cqw;
    display: grid;
    grid-template-columns: 5.2cqw 1fr;
    width: 36cqw;
    height: 45.1cqw;
    padding: 0.35cqw;
    border: var(--win95-pixel) solid var(--win95-black);
    background: var(--win95-face);
    box-shadow:
        inset var(--win95-pixel) var(--win95-pixel) var(--win95-highlight),
        inset calc(-1 * var(--win95-pixel)) calc(-1 * var(--win95-pixel)) var(--win95-dark-shadow),
        0.35cqw 0.35cqw 0 rgb(0 0 0 / 30%);
}

.windows95-start-brand {
    display: flex;
    align-items: center;
    gap: 0.8cqw;
    padding: 0.7cqw 0;
    color: #c0c0c0;
    background: #808080;
    font-family: Arial, sans-serif;
    font-size: 2.4cqw;
    letter-spacing: -0.14cqw;
    line-height: 1;
    text-orientation: mixed;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.windows95-start-brand strong {
    color: #fff;
}

.windows95-start-brand b {
    font-weight: 400;
}

.windows95-start-items {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    padding: 0.25cqw;
}

.windows95-start-items button {
    display: grid;
    grid-template-columns: 4.4cqw 1fr auto;
    align-items: center;
    min-width: 0;
    padding: 0 0.65cqw;
    border: 0;
    color: #000;
    background: transparent;
    font: inherit;
    font-size: 1.85cqw;
    text-align: left;
}

.windows95-start-items button:hover,
.windows95-start-items button:focus-visible {
    color: #fff;
    background: #000080;
    outline: 0;
}

.windows95-start-submenu {
    position: absolute;
    z-index: 5;
    bottom: 5.25cqw;
    left: 36.35cqw;
    display: grid;
    align-content: start;
    width: 25cqw;
    padding: 0.45cqw;
    border: var(--win95-pixel) solid var(--win95-black);
    background: var(--win95-face);
    box-shadow:
        inset var(--win95-pixel) var(--win95-pixel) var(--win95-highlight),
        inset calc(-1 * var(--win95-pixel)) calc(-1 * var(--win95-pixel)) var(--win95-dark-shadow),
        0.35cqw 0.35cqw 0 rgb(0 0 0 / 30%);
}

.windows95-start-submenu button {
    min-height: 5.2cqw;
    padding: 0 1cqw;
    border: 0;
    color: #000;
    background: transparent;
    font: inherit;
    font-size: 1.75cqw;
    text-align: left;
}

.windows95-start-submenu button:hover,
.windows95-start-submenu button:focus-visible {
    color: #fff;
    background: #000080;
    outline: 0;
}

.windows95-menu-icon {
    display: grid;
    place-items: center;
    width: 3.4cqw;
    height: 3.4cqw;
    border: var(--win95-pixel) solid #000;
    color: #000080;
    background: #fff;
    font-family: "Courier New", monospace;
    font-size: 2.2cqw;
    font-weight: 700;
    line-height: 1;
}

.windows95-menu-arrow {
    font-size: 1.25cqw;
}

.windows95-taskbar {
    position: absolute;
    z-index: 6;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.45cqw;
    height: 5.3cqw;
    padding: 0.45cqw;
    border-top: var(--win95-pixel) solid var(--win95-highlight);
    background: var(--win95-face);
    box-shadow: inset 0 var(--win95-pixel) var(--win95-highlight);
}

.windows95-start-button {
    display: flex;
    align-items: center;
    gap: 0.55cqw;
    height: 4.25cqw;
    padding: 0 0.8cqw;
    border: var(--win95-pixel) solid var(--win95-black);
    background: var(--win95-face);
    box-shadow:
        inset var(--win95-pixel) var(--win95-pixel) var(--win95-highlight),
        inset calc(-1 * var(--win95-pixel)) calc(-1 * var(--win95-pixel)) var(--win95-dark-shadow);
    font: inherit;
    font-size: 2.05cqw;
}

.windows95-start-button.is-pressed,
.windows95-start-button:active {
    box-shadow:
        inset var(--win95-pixel) var(--win95-pixel) var(--win95-dark-shadow),
        inset calc(-1 * var(--win95-pixel)) calc(-1 * var(--win95-pixel)) var(--win95-highlight);
}

.windows95-start-flag {
    display: grid;
    grid-template-columns: repeat(2, 1.2cqw);
    grid-template-rows: repeat(2, 0.95cqw);
    gap: 0.15cqw;
    transform: skewY(-8deg);
}

.windows95-start-flag i:nth-child(1) {
    background: #f00;
}

.windows95-start-flag i:nth-child(2) {
    background: #00a800;
}

.windows95-start-flag i:nth-child(3) {
    background: #00f;
}

.windows95-start-flag i:nth-child(4) {
    background: #ff0;
}

.windows95-task-divider {
    width: 0.5cqw;
    height: 4.2cqw;
    border-right: var(--win95-pixel) solid var(--win95-highlight);
    border-left: var(--win95-pixel) solid var(--win95-shadow);
}

.windows95-task-status {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    height: 4.1cqw;
    padding: 0 0.8cqw;
    overflow: hidden;
    border: var(--win95-pixel) solid;
    border-color: var(--win95-shadow) var(--win95-highlight) var(--win95-highlight) var(--win95-shadow);
    font-size: 1.5cqw;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.windows95-clock {
    display: grid;
    place-items: center;
    width: 10cqw;
    height: 4.1cqw;
    border: var(--win95-pixel) solid;
    border-color: var(--win95-shadow) var(--win95-highlight) var(--win95-highlight) var(--win95-shadow);
    font-size: 1.55cqw;
}

/* Windows 95 OSR2 desktop, Dial-Up Networking, and Internet Explorer 3. */
.windows95-work-area {
    position: absolute;
    inset: 0 0 4.375cqw;
    overflow: hidden;
}

.windows95-icon {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.windows95-desktop-icons {
    top: 0.75cqw;
    left: 0.35cqw;
    gap: 0.45cqw;
    width: 12.5cqw;
}

.windows95-desktop-shortcut {
    width: 12.5cqw;
    min-height: 9.5cqw;
    font-size: 1.65cqw;
}

.windows95-desktop-shortcut.is-selected > span:last-child,
.windows95-desktop-shortcut:focus-visible > span:last-child,
.windows95-desktop-shortcut:active > span:last-child {
    color: #fff;
    background: #000080;
    outline: var(--win95-pixel) dotted #fff;
    outline-offset: calc(-1 * var(--win95-pixel));
}

.windows95-desktop-icon {
    width: 5cqw;
    height: 5cqw;
    margin-bottom: 0.2cqw;
}

.windows95-dialup-shortcut .windows95-desktop-icon::after {
    position: absolute;
    bottom: -0.15cqw;
    left: -0.25cqw;
    display: grid;
    width: 2.15cqw;
    height: 2.15cqw;
    place-items: center;
    border: var(--win95-pixel) solid #000;
    color: #000;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 1.75cqw;
    font-weight: 900;
    line-height: 1;
    text-shadow: none;
    content: "↖";
}

.windows95-window,
.windows95-dialog {
    position: absolute;
    padding: 0.46875cqw;
    border: var(--win95-pixel) solid var(--win95-black);
    background: var(--win95-face);
    box-sizing: border-box;
    box-shadow:
        inset var(--win95-pixel) var(--win95-pixel) var(--win95-highlight),
        inset calc(-1 * var(--win95-pixel)) calc(-1 * var(--win95-pixel)) var(--win95-dark-shadow),
        var(--win95-pixel) var(--win95-pixel) 0 var(--win95-black);
}

.windows95-window {
    z-index: 10;
    top: calc(var(--win95-y) * 0.15625cqw);
    left: calc(var(--win95-x) * 0.15625cqw);
    display: grid;
    grid-template-rows: 3.125cqw 3cqw 6.25cqw 3.45cqw minmax(0, 1fr) 3cqw;
    width: calc(var(--win95-width) * 0.15625cqw);
    height: calc(var(--win95-height) * 0.15625cqw);
}

.windows95-window.is-maximized {
    inset: 0;
    width: 100%;
    height: 100%;
}

.windows95-window.is-dragging {
    filter: drop-shadow(0.35cqw 0.35cqw 0 rgb(0 0 0 / 36%));
}

.windows95-window-titlebar {
    display: grid;
    grid-template-columns: 2.8cqw minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    height: 3.125cqw;
    padding: 0 0.25cqw;
    color: #fff;
    background: #000080;
    font-size: 1.65cqw;
    font-weight: 700;
    line-height: 1;
}

.windows95-window-titlebar[data-win95-drag-handle] {
    cursor: default;
    touch-action: none;
    user-select: none;
}

.windows95-window-titlebar > strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.windows95-title-icon {
    display: block;
    width: 2.5cqw;
    height: 2.5cqw;
}

.windows95-window-controls {
    display: flex;
    align-items: center;
    gap: var(--win95-pixel);
}

.windows95-window-controls button {
    position: relative;
    width: 2.5cqw;
    height: 2.5cqw;
    margin: 0;
    padding: 0;
    border: var(--win95-pixel) solid #000;
    border-radius: 0;
    background: var(--win95-face);
    box-shadow:
        inset var(--win95-pixel) var(--win95-pixel) var(--win95-highlight),
        inset calc(-1 * var(--win95-pixel)) calc(-1 * var(--win95-pixel)) var(--win95-dark-shadow);
    appearance: none;
}

.windows95-window-controls button:active:not(:disabled) {
    box-shadow:
        inset var(--win95-pixel) var(--win95-pixel) var(--win95-dark-shadow),
        inset calc(-1 * var(--win95-pixel)) calc(-1 * var(--win95-pixel)) var(--win95-highlight);
}

.windows95-window-controls button:disabled {
    color: var(--win95-shadow);
}

.windows95-window-minimize::after {
    position: absolute;
    bottom: 0.55cqw;
    left: 0.55cqw;
    width: 1cqw;
    border-bottom: 0.3cqw solid #000;
    content: "";
}

.windows95-window-maximize::after {
    position: absolute;
    inset: 0.5cqw;
    border: 0.25cqw solid #000;
    content: "";
}

.windows95-window-close::before,
.windows95-window-close::after {
    position: absolute;
    top: 1.05cqw;
    left: 0.45cqw;
    width: 1.45cqw;
    border-top: 0.25cqw solid #000;
    content: "";
    transform: rotate(45deg);
}

.windows95-window-close::after {
    transform: rotate(-45deg);
}

.windows95-ie-menubar,
.windows95-ie-toolbar,
.windows95-ie-address,
.windows95-ie-statusbar {
    min-width: 0;
    color: #000;
    background: var(--win95-face);
}

.windows95-ie-menubar {
    display: flex;
    align-items: center;
    gap: 2.4cqw;
    padding: 0 1cqw;
    border-bottom: var(--win95-pixel) solid var(--win95-shadow);
    font-size: 1.55cqw;
}

.windows95-ie-menubar button {
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
}

.windows95-ie-toolbar {
    display: flex;
    align-items: stretch;
    gap: 0.35cqw;
    padding: 0.35cqw 0.55cqw;
    border-top: var(--win95-pixel) solid var(--win95-highlight);
    border-bottom: var(--win95-pixel) solid var(--win95-shadow);
}

.windows95-toolbar-grip {
    width: 0.45cqw;
    border-right: var(--win95-pixel) solid var(--win95-highlight);
    border-left: var(--win95-pixel) solid var(--win95-shadow);
}

.windows95-ie-toolbar button {
    display: grid;
    grid-template-rows: 2.5cqw 1.5cqw;
    place-items: center;
    min-width: 4.6cqw;
    padding: 0;
    border: 0;
    color: #000;
    background: transparent;
    font: inherit;
    font-size: 2cqw;
    line-height: 1;
}

.windows95-ie-toolbar button:disabled {
    color: var(--win95-shadow);
    text-shadow: var(--win95-pixel) var(--win95-pixel) var(--win95-highlight);
}

.windows95-ie-toolbar small {
    font-size: 1.1cqw;
    text-shadow: none;
}

.windows95-ie-address {
    display: grid;
    grid-template-columns: 7cqw minmax(0, 1fr);
    align-items: center;
    gap: 0.5cqw;
    padding: 0.35cqw 0.65cqw;
    border-top: var(--win95-pixel) solid var(--win95-highlight);
    border-bottom: var(--win95-pixel) solid var(--win95-shadow);
    font-size: 1.45cqw;
}

.windows95-ie-address input,
.windows95-dialup-fields input:not([type="checkbox"]) {
    min-width: 0;
    height: 2.45cqw;
    padding: 0 0.45cqw;
    border: var(--win95-pixel) solid;
    border-color: var(--win95-shadow) var(--win95-highlight) var(--win95-highlight) var(--win95-shadow);
    border-radius: 0;
    color: #000;
    background: #fff;
    font: inherit;
    box-sizing: border-box;
}

.windows95-ie-document {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    border: var(--win95-pixel) solid;
    border-color: var(--win95-shadow) var(--win95-highlight) var(--win95-highlight) var(--win95-shadow);
    color: #000;
    background: #fff;
    font-family: "Times New Roman", Times, serif;
}

.windows95-ie-connected-page {
    min-height: 100%;
    padding: 2.2cqw 3cqw;
    background:
        linear-gradient(135deg, rgb(217 238 255 / 88%), transparent 45%),
        #fff;
    box-sizing: border-box;
    text-align: center;
}

.windows95-ie-connected-page h1 {
    margin: 0.5cqw 0 1cqw;
    color: #000080;
    font-size: 3.7cqw;
    font-style: italic;
}

.windows95-ie-connected-page p {
    margin: 1cqw 0;
    font-size: 1.7cqw;
}

.windows95-ie-connected-page hr {
    width: 72%;
    border: 0;
    border-top: 0.25cqw solid #c00000;
}

.windows95-ie-eyebrow {
    color: #666;
    font-family: Arial, sans-serif;
    font-size: 1.1cqw !important;
    font-weight: 700;
    letter-spacing: 0.2cqw;
}

.windows95-ie-link {
    color: #0000ee;
    text-decoration: underline;
}

.windows95-ie-construction {
    display: inline-flex;
    align-items: center;
    gap: 0.65cqw;
    margin-top: 0.5cqw;
    padding: 0.5cqw 0.8cqw;
    border: 0.15cqw dashed #000;
    color: #202020;
    background: #ffffc0;
    font-family: Arial, sans-serif;
    font-size: 1.2cqw;
}

.windows95-ie-offline-page {
    display: grid;
    grid-template: auto auto / 7cqw 1fr;
    align-content: center;
    gap: 0.2cqw 1.5cqw;
    width: 70%;
    height: 100%;
    margin: auto;
    font-family: Arial, sans-serif;
}

.windows95-ie-offline-page > span {
    grid-row: 1 / 3;
    width: 6cqw;
    height: 6cqw;
}

.windows95-ie-offline-page h1,
.windows95-ie-offline-page p {
    margin: 0;
}

.windows95-ie-offline-page h1 {
    align-self: end;
    font-size: 2.4cqw;
}

.windows95-ie-offline-page p {
    font-size: 1.5cqw;
}

.windows95-ie-statusbar {
    display: grid;
    grid-template-columns: 1fr 17cqw;
    gap: 0.35cqw;
    padding: 0.3cqw;
    border-top: var(--win95-pixel) solid var(--win95-highlight);
    font-size: 1.25cqw;
}

.windows95-ie-statusbar > span {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 0.4cqw;
    overflow: hidden;
    border: var(--win95-pixel) solid;
    border-color: var(--win95-shadow) var(--win95-highlight) var(--win95-highlight) var(--win95-shadow);
    white-space: nowrap;
}

.windows95-dialog {
    z-index: 30;
    top: 8.5cqw;
    left: 24cqw;
    display: grid;
    grid-template-rows: 3.125cqw minmax(0, 1fr);
    width: 52cqw;
    height: 50cqw;
}

.windows95-desktop:not([data-dialup-stage="ready"]) .windows95-dialup-dialog {
    top: 21cqw;
    left: 27cqw;
    width: 46cqw;
    height: 27cqw;
}

.windows95-dialup-ready,
.windows95-dialup-progress {
    min-width: 0;
    min-height: 0;
    color: #000;
    background: var(--win95-face);
    font-size: 1.5cqw;
}

.windows95-dialup-ready {
    display: grid;
    grid-template-rows: 6.2cqw 3.2cqw 12cqw 11.2cqw minmax(4.5cqw, 1fr);
    padding: 1cqw 1.4cqw 0.9cqw;
}

.windows95-dialup-heading {
    display: flex;
    align-items: center;
    gap: 1.4cqw;
}

.windows95-dialup-heading > span {
    width: 6cqw;
    height: 6cqw;
}

.windows95-dialup-heading > strong {
    font-size: 2cqw;
}

.windows95-dialup-ready > p {
    margin: 0.7cqw 0 0;
}

.windows95-dialup-fields {
    display: grid;
    align-content: start;
    gap: 0.75cqw;
    padding-top: 0.4cqw;
}

.windows95-dialup-fields > label:not(.windows95-save-password) {
    display: grid;
    grid-template-columns: 12cqw minmax(0, 1fr);
    align-items: center;
}

.windows95-save-password {
    display: flex;
    align-items: center;
    gap: 0.35cqw;
    padding-left: 11.7cqw;
}

.windows95-save-password input {
    width: 2cqw;
    height: 2cqw;
    margin: 0;
    border-radius: 0;
    accent-color: #fff;
}

.windows95-dialup-number {
    display: grid;
    grid-template-columns: 12cqw 1fr auto;
    grid-template-rows: 3.2cqw 3.2cqw;
    align-items: center;
    border-top: var(--win95-pixel) solid var(--win95-shadow);
    box-shadow: inset 0 var(--win95-pixel) var(--win95-highlight);
}

.windows95-dialup-number > span:nth-of-type(2) {
    grid-column: 1 / 3;
    font-size: 1.3cqw;
}

.windows95-dialup-number button {
    grid-row: 1 / 3;
    grid-column: 3;
}

.windows95-dialog-buttons {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 1cqw;
}

.windows95-dialog-buttons button,
.windows95-dialup-number button {
    min-width: 10.5cqw;
    height: 3.6cqw;
    padding: 0 0.8cqw;
    border: var(--win95-pixel) solid #000;
    border-radius: 0;
    color: #000;
    background: var(--win95-face);
    box-shadow:
        inset var(--win95-pixel) var(--win95-pixel) var(--win95-highlight),
        inset calc(-1 * var(--win95-pixel)) calc(-1 * var(--win95-pixel)) var(--win95-dark-shadow);
    font: inherit;
    white-space: nowrap;
}

.windows95-dialog-buttons button:active,
.windows95-dialog-buttons button.is-auto-pressed,
.windows95-dialup-number button:active {
    padding-top: var(--win95-pixel);
    padding-left: calc(0.8cqw + var(--win95-pixel));
    box-shadow:
        inset var(--win95-pixel) var(--win95-pixel) var(--win95-dark-shadow),
        inset calc(-1 * var(--win95-pixel)) calc(-1 * var(--win95-pixel)) var(--win95-highlight);
}

.windows95-default-button {
    outline: var(--win95-pixel) dotted #000;
    outline-offset: calc(-0.65cqw);
}

.windows95-dialup-progress {
    display: grid;
    grid-template: minmax(0, 1fr) 4.5cqw / 11cqw 1fr;
    gap: 0.75cqw 1.4cqw;
    padding: 1.4cqw;
}

.windows95-connection-art {
    position: relative;
    align-self: center;
    width: 9cqw;
    height: 9cqw;
}

.windows95-connection-art i {
    position: absolute;
    top: 4cqw;
    left: 4cqw;
    width: 0.7cqw;
    height: 0.7cqw;
    border-radius: 50%;
    background: #ffff00;
    opacity: 0;
    animation: windows95-modem-pulse 900ms steps(1, end) infinite;
}

.windows95-connection-art i:nth-of-type(2) {
    left: 5.4cqw;
    animation-delay: 300ms;
}

.windows95-connection-art i:nth-of-type(3) {
    left: 6.8cqw;
    animation-delay: 600ms;
}

.windows95-connection-copy {
    align-self: center;
}

.windows95-connection-copy > strong {
    display: block;
    min-height: 3.5cqw;
    font-size: 1.6cqw;
}

.windows95-connection-copy p {
    margin: 1cqw 0 0;
}

.windows95-connection-copy dl {
    display: grid;
    grid-template-columns: 8cqw 1fr;
    gap: 0.4cqw;
    margin: 1cqw 0 0;
}

.windows95-connection-copy dd {
    margin: 0;
}

.windows95-dialup-progress .windows95-dialog-buttons {
    grid-column: 1 / -1;
}

.windows95-animated-pointer {
    position: absolute;
    z-index: 40;
    top: 0;
    left: 0;
    display: block;
    width: 3.125cqw;
    height: 4.375cqw;
    opacity: 1;
    pointer-events: none;
    transform: translate(79cqw, 15cqw);
}

.windows95-animated-pointer svg {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(var(--win95-pixel) var(--win95-pixel) 0 rgb(0 0 0 / 35%));
    transform-origin: 0 0;
}

.windows95-animated-pointer.is-hidden {
    opacity: 0;
}

.windows95-animated-pointer.is-resting {
    transition: opacity 100ms steps(1, end);
}

.windows95-animated-pointer.is-moving-to-dialup {
    transform: translate(5.7cqw, 42.2cqw);
    transition: transform 1.05s steps(18, end);
}

.windows95-animated-pointer.is-at-dialup,
.windows95-animated-pointer.is-clicking-dialup {
    transform: translate(5.7cqw, 42.2cqw);
}

.windows95-animated-pointer.is-moving-to-connect {
    transform: translate(56.8cqw, 54cqw);
    transition: transform 800ms steps(15, end);
}

.windows95-animated-pointer.is-at-connect,
.windows95-animated-pointer.is-clicking-connect,
.windows95-animated-pointer.is-fading {
    transform: translate(56.8cqw, 54cqw);
}

.windows95-animated-pointer.is-clicking-dialup svg,
.windows95-animated-pointer.is-clicking-connect svg {
    transform: translate(var(--win95-pixel), var(--win95-pixel));
}

.windows95-animated-pointer > i {
    position: absolute;
    top: -0.8cqw;
    left: -0.8cqw;
    width: 3cqw;
    height: 3cqw;
    border: 0.25cqw dotted #fff;
    border-radius: 50%;
    opacity: 0;
}

.windows95-animated-pointer.is-clicking-dialup > i,
.windows95-animated-pointer.is-clicking-connect > i {
    animation: windows95-pointer-click 120ms steps(2, end);
}

.windows95-animated-pointer.is-fading {
    opacity: 0;
    transition: opacity 450ms steps(5, end);
}

.windows95-start-menu,
.windows95-start-submenu {
    z-index: 20;
    bottom: 4.4cqw;
}

.windows95-taskbar {
    z-index: 50;
    gap: 0.35cqw;
    height: 4.375cqw;
    padding: 0.3125cqw;
}

.windows95-start-button {
    gap: 0.35cqw;
    width: 8.75cqw;
    height: 3.4375cqw;
    padding: 0 0.45cqw;
    font-size: 1.72cqw;
}

.windows95-start-button:focus-visible {
    outline: var(--win95-pixel) dotted #000;
    outline-offset: calc(-0.65cqw);
}

.windows95-start-button.is-pressed > *,
.windows95-start-button:active > * {
    transform: translate(var(--win95-pixel), var(--win95-pixel));
}

.windows95-start-flag {
    display: block;
    flex: 0 0 2.1875cqw;
    width: 2.1875cqw;
    height: 2.1875cqw;
    transform: none;
}

.windows95-task-divider {
    width: 0.45cqw;
    height: 3.45cqw;
}

.windows95-task-button {
    display: grid;
    grid-template-columns: 2.5cqw minmax(0, 1fr);
    align-items: center;
    gap: 0.5cqw;
    width: min(35cqw, 24rem);
    height: 3.4375cqw;
    padding: 0 0.5cqw;
    overflow: hidden;
    border: var(--win95-pixel) solid #000;
    border-radius: 0;
    color: #000;
    background: var(--win95-face);
    box-shadow:
        inset var(--win95-pixel) var(--win95-pixel) var(--win95-highlight),
        inset calc(-1 * var(--win95-pixel)) calc(-1 * var(--win95-pixel)) var(--win95-dark-shadow);
    font: inherit;
    font-size: 1.45cqw;
    text-align: left;
}

.windows95-task-button.is-pressed {
    background: repeating-conic-gradient(#fff 0 25%, var(--win95-face) 0 50%) 0 / 0.5cqw 0.5cqw;
    box-shadow:
        inset var(--win95-pixel) var(--win95-pixel) var(--win95-dark-shadow),
        inset calc(-1 * var(--win95-pixel)) calc(-1 * var(--win95-pixel)) var(--win95-highlight);
}

.windows95-task-button > span {
    width: 2.5cqw;
    height: 2.5cqw;
}

.windows95-task-button strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.windows95-task-spacer {
    flex: 1;
    min-width: 0;
}

.windows95-tray {
    display: flex;
    align-items: center;
    gap: 0.45cqw;
    height: 3.4375cqw;
    padding: 0 0.35cqw;
    border: var(--win95-pixel) solid;
    border-color: var(--win95-shadow) var(--win95-highlight) var(--win95-highlight) var(--win95-shadow);
    box-sizing: border-box;
}

.windows95-connected-tray-icon {
    width: 2.5cqw;
    height: 2.5cqw;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    animation: windows95-tray-traffic 1.2s steps(1, end) infinite;
}

.windows95-clock {
    width: 8.8cqw;
    height: auto;
    border: 0;
    font-size: 1.45cqw;
}

@keyframes windows95-pointer-click {
    0% { opacity: 1; transform: scale(0.45); }
    100% { opacity: 0; transform: scale(1); }
}

@keyframes windows95-modem-pulse {
    0%, 32% { opacity: 1; }
    33%, 100% { opacity: 0; }
}

@keyframes windows95-tray-traffic {
    0%, 49% { filter: brightness(1); }
    50%, 100% { filter: brightness(1.45); }
}

.commodore-cursor {
    position: absolute;
    z-index: 1;
    display: block;
    color: inherit;
    background: currentColor;
    animation: cursor-blink 667ms steps(1, end) infinite;
}

.commodore-cursor.is-steady {
    animation: none;
}

.transition-sequence {
    width: min(80vw, 96vh);
    width: min(80dvw, 96dvh);
    max-width: 100%;
    container-type: inline-size;
}

.transition-sequence > .commodore-control {
    width: 100%;
}

@supports (width: 1cqw) {
    .transition-sequence {
        width: min(100cqw, 117cqh);
    }
}

.transition-control .machine-case {
    padding: 4.3cqw;
    border-width: 0.16cqw;
    border-radius: 3.5cqw;
    box-shadow:
        0 4cqw 7.5cqw rgb(0 0 0 / 28%),
        inset 0 0.16cqw rgb(255 255 255 / 36%),
        inset 0 -0.32cqw rgb(0 0 0 / 20%);
}

.transition-control.dos-control .machine-case {
    border-radius: 1.5cqw;
}

.transition-control.windows311-control .machine-case {
    border-radius: 1.5cqw;
}

.transition-control.windows95-control .machine-case {
    border-radius: 1.5cqw;
}

.transition-control .case-detail {
    height: 1.1cqw;
    box-shadow: 0 0.16cqw rgb(0 0 0 / 18%);
}

.transition-control .display-border {
    box-shadow:
        0 0 0 0.55cqw rgb(36 32 35 / 75%),
        0 1.8cqw 3.5cqw rgb(0 0 0 / 30%),
        inset 0 0 3.5cqw rgb(0 0 0 / 14%);
}

.transition-control .machine-badge {
    margin-top: 3.8cqw;
    padding: 0.75cqw 1.35cqw 0.65cqw;
    border-width: 0.16cqw;
    font-size: 1.7cqw;
}

.machine-badge {
    width: fit-content;
    margin: clamp(1rem, 3vw, 1.5rem) 0 0 auto;
    padding: 0.3rem 0.55rem 0.25rem;
    border: 1px solid rgb(56 51 47 / 45%);
    color: #3d3833;
    background: rgb(255 255 255 / 20%);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-shadow: 0 1px rgb(255 255 255 / 36%);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.tui-loading {
    position: absolute;
    inset: 50% auto auto 50%;
    margin: 0;
    padding: 1rem;
    color: #ddd;
    font-family: Consolas, monospace;
    transform: translate(-50%, -50%);
}

#blazor-error-ui {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: none;
    padding: 0.75rem 1.25rem;
    color: #000;
    background: #ffff55;
    font-family: Consolas, monospace;
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 1rem;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

@keyframes cursor-blink {
    0%,
    48% {
        opacity: 1;
    }

    49%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 40rem) and (orientation: portrait) {
    .startup-showcase {
        padding-right: 0;
        padding-left: 0;
    }

    .monitor-stage,
    .transition-sequence {
        width: 100%;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .commodore-cursor,
    .windows95-connected-tray-icon,
    .windows95-connection-art i {
        animation: none;
    }

    .windows95-animated-pointer {
        display: none;
    }
}
