/*
    Retro Rigs & Games
    Shared Late-1990s Website Theme

    All refreshed pages should use:

    <link rel="stylesheet" href="css/retro.css">

    Keep navigation.js in the main website folder for now:

    <script src="navigation.js"></script>
*/

:root {
    --win-gray: #c0c0c0;
    --win-light: #ffffff;
    --win-dark: #808080;
    --win-shadow: #404040;

    --navy: #000080;
    --blue: #004cff;
    --desktop-teal: #008080;

    --purple: #752bff;
    --pink: #ff2fa7;
    --cyan: #00e5ff;
    --green: #8cff00;
    --yellow: #ffe600;
    --orange: #ff9f1c;
    --red: #d60000;

    --black: #050505;
    --white: #ffffff;

    --page-width: 1180px;
}

/* -------------------------------------------------
   RESET
------------------------------------------------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--black);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;

    background:
        linear-gradient(
            rgba(0, 128, 128, 0.95),
            rgba(0, 128, 128, 0.95)
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 31px,
            rgba(255, 255, 255, 0.07) 32px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 31px,
            rgba(255, 255, 255, 0.07) 32px
        );
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

table {
    border-collapse: collapse;
}

ul,
ol {
    padding-left: 22px;
}

[hidden] {
    display: none !important;
}

/* -------------------------------------------------
   PAGE STRUCTURE
------------------------------------------------- */

.container {
    width: min(var(--page-width), 94%);
    margin-inline: auto;
}

.container-wide {
    width: min(1280px, 96%);
    margin-inline: auto;
}

main {
    padding: 34px 0 65px;
}

.section {
    padding: 50px 0;
}

.section-tight {
    padding: 30px 0;
}

.section-large {
    padding: 70px 0;
}

.grid {
    display: grid;
    gap: 18px;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.three-column {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.four-column {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.full-width {
    grid-column: 1 / -1;
}

/* -------------------------------------------------
   SHARED NAVIGATION
------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    border-bottom: 3px solid var(--black);
    background: var(--win-gray);

    box-shadow:
        inset 0 2px var(--win-light),
        inset 0 -2px var(--win-dark);
}

.navigation {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;

    padding: 8px 12px;

    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-shadow);
    border-bottom: 2px solid var(--win-shadow);

    background: var(--win-gray);
    color: var(--black);

    font-family: "Arial Black", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.logo::before {
    content: "💾";
    font-size: 1.25rem;
}

.logo span {
    color: var(--navy);
}

nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a {
    padding: 9px 10px;

    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-shadow);
    border-bottom: 2px solid var(--win-shadow);

    background: var(--win-gray);
    color: var(--black);

    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    border-top-color: var(--win-shadow);
    border-left-color: var(--win-shadow);
    border-right-color: var(--win-light);
    border-bottom-color: var(--win-light);

    background: #b4b4b4;
    color: var(--navy);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 38px;

    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-shadow);
    border-bottom: 2px solid var(--win-shadow);

    background: var(--win-gray);
    color: var(--black);

    font-size: 1.2rem;
    cursor: pointer;
}

/* -------------------------------------------------
   WINDOWS 95 PANELS
------------------------------------------------- */

.window {
    border: 3px solid var(--black);
    background: var(--win-gray);

    box-shadow:
        inset 2px 2px var(--win-light),
        inset -2px -2px var(--win-shadow),
        9px 9px 0 rgba(0, 0, 0, 0.3);
}

.window-flat {
    border: 3px solid var(--black);
    background: var(--win-gray);

    box-shadow:
        inset 2px 2px var(--win-light),
        inset -2px -2px var(--win-shadow);
}

.window-titlebar {
    min-height: 29px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 5px 7px;

    background:
        linear-gradient(
            90deg,
            var(--navy),
            var(--blue)
        );

    color: white;
    font-size: 0.9rem;
    font-weight: 700;
}

.window-titlebar.inactive {
    background:
        linear-gradient(
            90deg,
            #666666,
            #aaaaaa
        );
}

.window-buttons {
    display: flex;
    gap: 4px;
}

.window-button {
    width: 20px;
    height: 18px;
    display: grid;
    place-items: center;

    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-shadow);
    border-bottom: 2px solid var(--win-shadow);

    background: var(--win-gray);
    color: var(--black);

    font-size: 0.68rem;
    line-height: 1;
    cursor: default;
}

button.window-button {
    cursor: pointer;
}

.window-content {
    padding: 22px;
}

.inset-panel {
    padding: 14px;

    border-top: 2px solid var(--win-shadow);
    border-left: 2px solid var(--win-shadow);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);

    background: #e5e5e5;
}

.raised-panel {
    padding: 14px;

    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-shadow);
    border-bottom: 2px solid var(--win-shadow);

    background: #dedede;
}

/* -------------------------------------------------
   HEADINGS
------------------------------------------------- */

.page-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;

    margin-bottom: 24px;
    padding: 26px;
}

.page-heading-icon {
    font-size: 6rem;
}

.page-heading p {
    max-width: 760px;
    margin-top: 18px;
    color: #222222;
}

.display-title {
    font-family: Impact, "Arial Black", Arial, sans-serif;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.88;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.display-title span {
    display: block;
    color: var(--purple);

    text-shadow:
        3px 3px 0 var(--cyan),
        6px 6px 0 var(--pink);
}

.section-title {
    margin-bottom: 25px;
    padding: 9px 12px;

    border: 3px solid var(--black);
    background: var(--pink);
    color: white;

    font-family: Impact, "Arial Black", Arial, sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1;
    text-transform: uppercase;

    box-shadow: 7px 7px 0 var(--black);
}

.section-title.cyan {
    background: var(--cyan);
    color: var(--black);
}

.section-title.yellow {
    background: var(--yellow);
    color: var(--black);
}

.section-title.green {
    background: var(--green);
    color: var(--black);
}

.section-heading {
    margin-bottom: 14px;
    padding: 7px 9px;

    border: 2px solid var(--black);
    background: var(--yellow);

    color: var(--black);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.section-heading.cyan {
    background: var(--cyan);
}

.section-heading.green {
    background: var(--green);
}

.section-heading.pink {
    background: var(--pink);
    color: white;
}

.hero-label,
.label-sticker {
    display: inline-block;
    padding: 6px 9px;

    border: 2px solid var(--black);
    background: var(--yellow);

    font-family: "Courier New", monospace;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-label {
    margin-bottom: 16px;
    transform: rotate(-1deg);
}

/* -------------------------------------------------
   BUTTONS
------------------------------------------------- */

.button {
    display: inline-block;
    padding: 10px 15px;

    border-top: 3px solid var(--win-light);
    border-left: 3px solid var(--win-light);
    border-right: 3px solid var(--win-shadow);
    border-bottom: 3px solid var(--win-shadow);

    background: var(--win-gray);
    color: var(--black);

    font-weight: 900;
    text-align: center;
    cursor: pointer;
}

.button:hover,
.button:active {
    border-top-color: var(--win-shadow);
    border-left-color: var(--win-shadow);
    border-right-color: var(--win-light);
    border-bottom-color: var(--win-light);
}

.button:focus-visible {
    outline: 2px dotted var(--black);
    outline-offset: -6px;
}

.button-green,
.button-primary {
    background: var(--green);
}

.button-purple {
    background: #bc9cff;
}

.button-yellow {
    background: var(--yellow);
}

.button-cyan {
    background: var(--cyan);
}

.button-pink {
    background: #ff91cf;
}

.button-orange {
    background: var(--orange);
}

.button-danger {
    background: #ff9b9b;
}

.button-full {
    width: 100%;
}

.button-small {
    padding: 5px 8px;
    border-width: 2px;
    font-size: 0.76rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.button-column {
    display: grid;
    gap: 9px;
}

.text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.text-button.danger {
    color: var(--red);
}

/* -------------------------------------------------
   FORMS
------------------------------------------------- */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.84rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 9px 10px;

    border-top: 2px solid var(--win-shadow);
    border-left: 2px solid var(--win-shadow);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);

    outline: none;
    background: white;
    color: var(--black);
}

textarea {
    min-height: 105px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 1px dotted var(--black);
    outline-offset: -4px;
}

input:disabled,
select:disabled,
textarea:disabled {
    background: #dddddd;
    color: #666666;
}

.checkbox-row,
.radio-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.checkbox-row input,
.radio-row input {
    width: auto;
    margin-top: 4px;
}

.checkbox-row label,
.radio-row label {
    margin: 0;
    font-weight: normal;
}

.option-list {
    display: grid;
    gap: 10px;
}

.option-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;

    padding: 14px;

    border-top: 3px solid var(--win-light);
    border-left: 3px solid var(--win-light);
    border-right: 3px solid var(--win-shadow);
    border-bottom: 3px solid var(--win-shadow);

    background: #dedede;
    cursor: pointer;
}

.option-card.selected,
.option-card:has(input:checked) {
    background: var(--green);
}

.option-card input {
    width: auto;
    margin-top: 4px;
}

.option-card small {
    display: block;
    margin-top: 3px;
    color: #444444;
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    margin-bottom: 16px;
}

/* -------------------------------------------------
   CARDS
------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.retro-card {
    padding: 18px;

    border: 3px solid var(--black);
    background: var(--win-gray);

    box-shadow:
        inset 2px 2px var(--win-light),
        inset -2px -2px var(--win-shadow),
        7px 7px 0 rgba(0, 0, 0, 0.3);

    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.retro-card:hover {
    transform: translateY(-4px);
    background: #d8d8d8;
}

.card-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;

    border: 3px solid var(--black);
    background: white;

    font-size: 2.2rem;
}

.retro-card h2,
.retro-card h3 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 1.05rem;
    text-transform: uppercase;
}

.retro-card p {
    color: #333333;
    font-size: 0.92rem;
}

.product-card {
    overflow: hidden;

    border: 3px solid var(--black);
    background: var(--win-gray);

    box-shadow:
        inset 2px 2px var(--win-light),
        inset -2px -2px var(--win-shadow),
        7px 7px 0 rgba(0, 0, 0, 0.3);
}

.product-image {
    min-height: 190px;
    display: grid;
    place-items: center;

    border-bottom: 3px solid var(--black);

    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(255, 47, 167, 0.55),
            transparent 25%
        ),
        radial-gradient(
            circle at 15% 80%,
            rgba(0, 229, 255, 0.55),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #20005c,
            #7200a4,
            #0047d8
        );

    font-size: 5rem;
}

.product-content {
    padding: 17px;
}

.product-content h2,
.product-content h3 {
    margin-bottom: 7px;
    color: var(--navy);
    font-size: 1.05rem;
}

.product-content p {
    color: #333333;
    font-size: 0.88rem;
}

.product-price {
    display: block;
    margin: 12px 0;

    color: var(--purple);

    font-family: Impact, "Arial Black", Arial, sans-serif;
    font-size: 1.8rem;
}

/* -------------------------------------------------
   BADGES AND STATUS
------------------------------------------------- */

.badge,
.status-badge {
    display: inline-block;
    padding: 4px 7px;

    border: 2px solid var(--black);

    background: var(--yellow);

    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.badge-green,
.status-active,
.status-complete,
.status-ready {
    background: var(--green);
}

.badge-cyan,
.status-processing,
.status-diagnosing {
    background: var(--cyan);
}

.badge-purple,
.status-shipped,
.status-parts {
    background: #bc9cff;
}

.badge-orange,
.status-approval,
.status-warning {
    background: var(--orange);
}

.badge-pink,
.status-repairing {
    background: var(--pink);
    color: white;
}

.badge-red,
.status-cancelled,
.status-error,
.status-out {
    background: #ff9b9b;
}

.status-low {
    background: var(--yellow);
}

/* -------------------------------------------------
   TABLES
------------------------------------------------- */

.table-wrap {
    overflow-x: auto;

    border-top: 2px solid var(--win-shadow);
    border-left: 2px solid var(--win-shadow);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
}

.retro-table {
    width: 100%;
    min-width: 780px;
    background: white;
}

.retro-table th,
.retro-table td {
    padding: 10px;
    border: 1px solid var(--win-shadow);
    text-align: left;
    vertical-align: middle;
}

.retro-table th {
    background: var(--navy);
    color: white;
    font-size: 0.76rem;
    text-transform: uppercase;
}

.retro-table td {
    font-size: 0.86rem;
}

.retro-table tbody tr:nth-child(even) {
    background: #f0f0f0;
}

.retro-table tbody tr:hover {
    background: #dffcff;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* -------------------------------------------------
   STATISTICS
------------------------------------------------- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 17px;

    border: 3px solid var(--black);
    background: var(--yellow);

    box-shadow: 6px 6px 0 var(--black);
}

.stat-number {
    display: block;
    color: var(--purple);

    font-family: Impact, "Arial Black", Arial, sans-serif;
    font-size: 2.35rem;
    line-height: 1;
}

.stat-label {
    display: block;
    margin-top: 6px;

    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* -------------------------------------------------
   TOTALS AND RECEIPTS
------------------------------------------------- */

.totals {
    display: grid;
    gap: 10px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    padding-bottom: 8px;
    border-bottom: 1px dotted var(--win-shadow);
}

.grand-total {
    margin-top: 5px;
    padding: 13px;

    border: 3px solid var(--black);
    background: var(--yellow);

    font-weight: 900;
}

.grand-total span:last-child {
    color: var(--purple);

    font-family: Impact, "Arial Black", Arial, sans-serif;
    font-size: 1.8rem;
}

/* -------------------------------------------------
   TABS
------------------------------------------------- */

.tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;

    padding: 8px 8px 0;
}

.tab-button {
    padding: 9px 13px;

    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-shadow);
    border-bottom: 0;

    background: #aaaaaa;
    color: var(--black);

    font-weight: 700;
    cursor: pointer;
}

.tab-button.active {
    position: relative;
    top: 2px;

    background: var(--win-gray);
    color: var(--navy);
}

.tab-content {
    min-height: 220px;
    padding: 22px;
    border-top: 2px solid var(--win-light);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* -------------------------------------------------
   MODALS
------------------------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;

    display: none;
    place-items: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.72);
}

.modal.open {
    display: grid;
}

.modal-window {
    width: min(900px, 100%);
    max-height: 92vh;
    overflow-y: auto;
}

.modal-content {
    padding: 22px;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

/* -------------------------------------------------
   ALERTS AND EMPTY STATES
------------------------------------------------- */

.notice,
.success-message,
.error-message,
.warning-message {
    display: none;
    margin-top: 14px;
    padding: 12px;

    border: 2px solid var(--black);

    font-size: 0.88rem;
    font-weight: 700;
}

.notice.show,
.success-message.show,
.error-message.show,
.warning-message.show {
    display: block;
}

.notice,
.success-message {
    background: var(--green);
}

.error-message {
    background: #ff9b9b;
}

.warning-message {
    background: var(--yellow);
}

.empty-state {
    display: none;
    padding: 50px 20px;

    border: 2px dashed var(--win-shadow);
    background: #e8e8e8;

    text-align: center;
}

.empty-state.show {
    display: block;
}

.empty-state-icon {
    display: block;
    margin-bottom: 10px;
    font-size: 4rem;
}

.empty-state h2 {
    margin-bottom: 7px;
    color: var(--navy);
    text-transform: uppercase;
}

/* -------------------------------------------------
   CRT AND SCREEN ELEMENTS
------------------------------------------------- */

.crt-stage {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 24px;

    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(255, 47, 167, 0.65),
            transparent 25%
        ),
        radial-gradient(
            circle at 18% 80%,
            rgba(0, 229, 255, 0.6),
            transparent 27%
        ),
        linear-gradient(
            135deg,
            #22005d,
            #7500a5 50%,
            #0048df
        );
}

.crt-stage::before {
    position: absolute;
    inset: 0;
    content: "";

    opacity: 0.22;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.6) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.6) 1px,
            transparent 1px
        );

    background-size: 30px 30px;

    transform:
        perspective(500px)
        rotateX(60deg)
        scale(1.45);

    transform-origin: bottom;
}

.crt-system {
    position: relative;
    z-index: 2;
    width: min(420px, 100%);
}

.crt-monitor {
    padding: 18px 18px 29px;

    border: 4px solid var(--black);
    border-radius: 19px 19px 10px 10px;

    background: #d9d4c6;

    box-shadow:
        inset 4px 4px #f8f5e9,
        inset -4px -4px #878278,
        14px 14px 0 rgba(0, 0, 0, 0.36);
}

.crt-screen {
    min-height: 230px;
    display: grid;
    place-items: center;
    padding: 22px;

    border: 10px solid #222222;
    border-radius: 35px / 24px;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.045) 0,
            rgba(255, 255, 255, 0.045) 2px,
            transparent 2px,
            transparent 5px
        ),
        radial-gradient(
            circle,
            rgba(0, 229, 255, 0.2),
            transparent 65%
        ),
        #020916;

    color: var(--green);

    font-family: "Courier New", monospace;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;

    text-shadow: 0 0 8px var(--green);
}

.crt-screen-title {
    display: block;
    margin-bottom: 14px;

    color: var(--cyan);
    font-size: 1.45rem;
}

.screen-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.2;
    }
}

.monitor-controls {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 12px;
}

.monitor-controls span {
    width: 12px;
    height: 12px;

    border: 2px solid var(--black);
    border-radius: 50%;

    background: var(--green);
}

.monitor-base {
    width: 68%;
    height: 24px;
    margin: auto;

    border: 4px solid var(--black);
    border-top: 0;

    background: #bbb6a8;
}

.retro-keyboard {
    width: 91%;
    height: 62px;
    margin: 14px auto 0;

    border: 4px solid var(--black);

    background:
        repeating-linear-gradient(
            90deg,
            #d9d4c7 0,
            #d9d4c7 12px,
            #8f8a80 13px,
            #8f8a80 15px
        );

    transform:
        perspective(180px)
        rotateX(16deg);

    box-shadow:
        8px 8px 0 rgba(0, 0, 0, 0.35);
}

/* -------------------------------------------------
   TICKER
------------------------------------------------- */

.ticker {
    overflow: hidden;

    border: 3px solid var(--black);
    background: var(--yellow);

    white-space: nowrap;
}

.ticker-track {
    display: inline-block;
    min-width: 100%;
    padding: 10px 0;

    font-family: "Arial Black", Arial, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;

    animation: ticker-scroll 20s linear infinite;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

/* -------------------------------------------------
   FOOTER TASKBAR
------------------------------------------------- */

footer {
    border-top: 3px solid var(--black);
    background: var(--win-gray);
}

.taskbar {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
}

.start-button,
.taskbar-status {
    padding: 7px 12px;

    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-shadow);
    border-bottom: 2px solid var(--win-shadow);
}

.start-button {
    font-weight: 900;
}

.taskbar-status {
    border-top-color: var(--win-shadow);
    border-left-color: var(--win-shadow);
    border-right-color: var(--win-light);
    border-bottom-color: var(--win-light);

    font-size: 0.81rem;
}

/* -------------------------------------------------
   UTILITIES
------------------------------------------------- */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-navy {
    color: var(--navy);
}

.text-purple {
    color: var(--purple);
}

.text-green {
    color: var(--green);
}

.text-muted {
    color: #555555;
}

.font-mono {
    font-family: "Courier New", monospace;
}

.font-display {
    font-family: Impact, "Arial Black", Arial, sans-serif;
}

.uppercase {
    text-transform: uppercase;
}

.bold {
    font-weight: 900;
}

.sticky-panel {
    position: sticky;
    top: 92px;
}

.scroll-panel {
    overflow: auto;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.margin-top-small {
    margin-top: 10px;
}

.margin-top {
    margin-top: 20px;
}

.margin-top-large {
    margin-top: 30px;
}

.margin-bottom {
    margin-bottom: 20px;
}

/* -------------------------------------------------
   RESPONSIVE LAYOUT
------------------------------------------------- */

@media (max-width: 1050px) {
    .four-column,
    .card-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toolbar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .two-column {
        grid-template-columns: 1fr;
    }

    .three-column {
        grid-template-columns: 1fr;
    }

    .sticky-panel {
        position: static;
    }
}

@media (max-width: 850px) {
    .mobile-menu-button {
        display: block;
    }

    nav {
        position: absolute;
        top: 72px;
        right: 3%;
        left: 3%;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;

        padding: 6px;

        border: 3px solid var(--black);
        background: var(--win-gray);

        box-shadow:
            inset 2px 2px var(--win-light),
            inset -2px -2px var(--win-shadow),
            8px 8px 0 rgba(0, 0, 0, 0.3);
    }

    nav.open {
        display: flex;
    }

    nav a {
        text-align: left;
    }

    .page-heading {
        grid-template-columns: 1fr;
    }

    .page-heading-icon {
        display: none;
    }
}

@media (max-width: 650px) {
    main {
        padding-top: 22px;
    }

    .form-grid,
    .four-column,
    .card-grid,
    .stats-grid,
    .toolbar {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .display-title {
        font-size: 3.7rem;
    }

    .button-row,
    .taskbar {
        flex-direction: column;
        align-items: stretch;
    }

    .crt-stage {
        min-height: 370px;
        padding: 14px;
    }

    .crt-screen {
        min-height: 185px;
        font-size: 0.83rem;
    }

    .crt-screen-title {
        font-size: 1.15rem;
    }

    .retro-table {
        min-width: 700px;
    }
}

/* -------------------------------------------------
   PRINTING
------------------------------------------------- */

@media print {
    body {
        background: white;
    }

    .site-header,
    footer,
    .no-print,
    .modal-actions,
    .window-buttons {
        display: none !important;
    }

    main {
        padding: 0;
    }

    .container,
    .container-wide {
        width: 100%;
    }

    .window,
    .window-flat {
        border: 1px solid black;
        box-shadow: none;
    }

    .window-titlebar {
        background: white;
        color: black;
        border-bottom: 1px solid black;
    }

    .sticky-panel {
        position: static;
    }

    input,
    select,
    textarea {
        border: 1px solid black;
    }
}