/* ============================================================
   simidiot.net — Idiot AI Simulation Network
   Retro pixel-screen / faux Mac OS 9 / Win95 cascade
   ============================================================ */

/* -------- Palette tokens -------- */
:root {
    --c-desktop:        #C0B8D8;  /* desktop wallpaper base */
    --c-desktop-pat:    #7A6B9A;  /* wallpaper pattern accent */
    --c-window-bg:      #F0ECF8;  /* window content area */
    --c-window-light:   #D0C8E8;  /* secondary content tint */
    --c-status-bg:      #D8D0E8;  /* status bar background */
    --c-body-text:      #3A2E5A;  /* body text on light */
    --c-deep:           #2A1E4A;  /* deep CRT */
    --c-deep-text:      #E8E0FF;  /* light text on dark */
    --c-title-active:   #9A8AC0;  /* active title bar */
    --c-title-inactive: #8A7AB0;  /* inactive title bar */
    --c-success:        #6BCB77;  /* CRT phosphor green */
    --c-warning:        #FFE066;  /* amber terminal */
    --c-error:          #FF6B6B;  /* coral red */
    --c-shadow:         #4A3A70;  /* deep purple borders */
    --c-bevel-light:    #FFFFFF;
    --c-bevel-dark:     #4A3A70;

    --f-pixel: 'Press Start 2P', 'Courier New', monospace;
    --f-body: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
    --f-mono: 'VT323', 'Courier New', monospace;
}

/* -------- Reset -------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--c-desktop);
    color: var(--c-body-text);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    image-rendering: pixelated;
}

/* -------- Desktop wallpaper -------- */
.desktop-wallpaper {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: var(--c-desktop);
    background-image:
        /* tiny brain-like icon as repeating SVG */
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><rect width='32' height='32' fill='%23C0B8D8'/><g fill='%237A6B9A'><rect x='10' y='8' width='12' height='2'/><rect x='8' y='10' width='2' height='8'/><rect x='22' y='10' width='2' height='8'/><rect x='10' y='18' width='12' height='2'/><rect x='12' y='12' width='2' height='2'/><rect x='18' y='12' width='2' height='2'/><rect x='14' y='14' width='4' height='2'/><rect x='12' y='16' width='8' height='2'/><rect x='14' y='20' width='2' height='2'/><rect x='18' y='20' width='2' height='2'/></g></svg>");
    background-repeat: repeat;
    background-size: 32px 32px;
}

/* -------- Cascade layout -------- */
.cascade {
    position: relative;
    padding: 60px 0 0 0;
    width: 100%;
    max-width: 100%;
}

.os-window {
    position: relative;
    background: var(--c-window-bg);
    border: 2px solid var(--c-shadow);
    box-shadow:
        inset 1px 1px 0 var(--c-bevel-light),
        inset -1px -1px 0 var(--c-bevel-dark),
        4px 4px 0 rgba(42, 30, 74, 0.35);
    margin: 0 auto 60px auto;
    width: 88%;
    max-width: 1100px;
    transition: border-color 250ms ease, box-shadow 250ms ease, transform 350ms ease;
    transform: translateY(20px);
    opacity: 0.85;
}

/* Cascade offsets — each window is offset right & down */
.os-window[data-window="1"] { margin-left: 4%; }
.os-window[data-window="2"] { margin-left: calc(4% + 30px); }
.os-window[data-window="3"] { margin-left: calc(4% + 60px); }
.os-window[data-window="4"] { margin-left: calc(4% + 90px); width: 92%; max-width: 1180px; }

.os-window.is-active {
    transform: translateY(0);
    opacity: 1;
    border-width: 3px;
    box-shadow:
        inset 1px 1px 0 var(--c-bevel-light),
        inset -1px -1px 0 var(--c-bevel-dark),
        6px 6px 0 rgba(42, 30, 74, 0.45);
}

.os-window.is-active .title-bar {
    background: var(--c-title-active);
}

/* -------- Title bar -------- */
.title-bar {
    height: 26px;
    background: var(--c-title-inactive);
    border-bottom: 2px solid var(--c-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    box-shadow:
        inset 0 1px 0 #B8A8D8,
        inset 0 -1px 0 var(--c-shadow);
    transition: background 250ms ease;
}

.title-text {
    font-family: var(--f-pixel);
    font-size: 10px;
    color: var(--c-deep-text);
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0 var(--c-shadow);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    padding-right: 12px;
}

.window-controls {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.ctrl {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid var(--c-shadow);
    background: transparent;
}

.ctrl-min   { background: var(--c-success); }
.ctrl-max   { background: var(--c-warning); }
.ctrl-close { background: var(--c-error); }

/* -------- Window content -------- */
.window-content {
    padding: 36px 40px;
    background: var(--c-window-bg);
    min-height: calc(100vh - 200px);
    position: relative;
}

/* -------- Status bar -------- */
.status-bar {
    height: 22px;
    background: var(--c-status-bg);
    border-top: 2px solid var(--c-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--c-shadow);
    box-shadow:
        inset 0 1px 0 var(--c-bevel-light),
        inset 0 -1px 0 var(--c-shadow);
}

.status-text { white-space: nowrap; }
.status-right { color: var(--c-deep); }

/* -------- BOOT WINDOW -------- */
.window-boot { margin-top: 30px; }

.window-boot .window-content { padding: 0; min-height: calc(100vh - 100px); }

.boot-screen {
    background: var(--c-deep);
    color: var(--c-success);
    font-family: var(--f-mono);
    font-size: 18px;
    line-height: 1.5;
    padding: 36px 44px;
    min-height: calc(100vh - 100px);
    position: relative;
    box-shadow: inset 0 0 80px rgba(107, 203, 119, 0.06);
}

.boot-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(107, 203, 119, 0.06) 0,
            rgba(107, 203, 119, 0.06) 1px,
            transparent 1px,
            transparent 3px
        );
}

.boot-log {
    font-family: var(--f-mono);
    font-size: 18px;
    color: var(--c-success);
    white-space: pre-wrap;
    line-height: 1.55;
    margin: 0;
    position: relative;
    z-index: 1;
}

.boot-log .amber { color: var(--c-warning); }
.boot-log .coral { color: var(--c-error); }

.boot-cursor {
    display: inline-block;
    color: var(--c-success);
    font-family: var(--f-mono);
    font-size: 18px;
    margin-left: 4px;
    animation: blink 1s steps(2, end) infinite;
    position: relative;
    z-index: 1;
}

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

/* -------- PIXEL HEADING -------- */
.pixel-heading {
    font-family: var(--f-pixel);
    font-size: 22px;
    color: var(--c-deep);
    line-height: 1.4;
    margin-bottom: 24px;
    text-shadow: 2px 2px 0 var(--c-window-light);
}

/* -------- MODULE GRID -------- */
.module-grid {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 40px;
    align-items: start;
}

.shape-frame {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    background: var(--c-window-light);
    border: 2px solid var(--c-shadow);
    box-shadow:
        inset 1px 1px 0 var(--c-bevel-light),
        inset -1px -1px 0 var(--c-bevel-dark);
    margin-bottom: 28px;
}

.analysis-square {
    width: 64px;
    height: 64px;
    background: var(--c-title-active);
    border: 2px solid var(--c-shadow);
    box-shadow:
        inset 2px 2px 0 #B8A8D8,
        inset -2px -2px 0 var(--c-shadow);
    flex-shrink: 0;
}

.analysis-arrow {
    font-family: var(--f-mono);
    font-size: 28px;
    color: var(--c-shadow);
}

.analysis-result {
    flex: 1;
}

.result-line {
    font-family: var(--f-body);
    font-size: 15px;
    color: var(--c-deep);
    margin-bottom: 4px;
}

.result-line.strong {
    font-weight: 500;
    font-size: 17px;
}

.result-line.confidence {
    font-family: var(--f-mono);
    font-size: 16px;
    color: var(--c-success);
    background: var(--c-deep);
    display: inline-block;
    padding: 2px 8px;
    margin-top: 6px;
}

/* -------- PROGRESS BARS -------- */
.progress-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.progress-label {
    font-family: var(--f-pixel);
    font-size: 10px;
    color: var(--c-deep);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.progress-bar {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 22px;
    background: var(--c-window-light);
    border: 2px solid var(--c-shadow);
    box-shadow:
        inset 1px 1px 0 var(--c-bevel-dark),
        inset -1px -1px 0 var(--c-bevel-light);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--c-success);
    border-right: 2px solid var(--c-shadow);
    box-shadow:
        inset 0 1px 0 #A8E0AF,
        inset 0 -1px 0 #4A8B52;
    width: 0;
    transition: width 1.2s cubic-bezier(0.2, 0.8, 0.3, 1);
    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.18) 0,
            rgba(255, 255, 255, 0.18) 4px,
            transparent 4px,
            transparent 8px
        );
}

.progress-fill.broken-bar.reverse {
    margin-left: auto;
    background: var(--c-error);
    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.18) 0,
            rgba(255, 255, 255, 0.18) 4px,
            transparent 4px,
            transparent 8px
        );
}

.progress-readout {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--c-deep);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
    z-index: 2;
    letter-spacing: 1px;
}

/* -------- MASCOT -------- */
.mascot-area {
    text-align: center;
    padding: 16px;
    background: var(--c-deep);
    border: 2px solid var(--c-shadow);
    box-shadow:
        inset 1px 1px 0 var(--c-bevel-light),
        inset -1px -1px 0 var(--c-bevel-dark);
    position: relative;
}

.pixel-mascot {
    position: relative;
    display: inline-block;
    margin: 12px auto;
    image-rendering: pixelated;
}

.mascot-grid {
    display: grid;
    grid-template-columns: repeat(8, 14px);
    grid-auto-rows: 14px;
    gap: 0;
    margin: 0 auto;
}

.px {
    width: 14px;
    height: 14px;
    background: transparent;
}

.px.on.dark   { background: var(--c-shadow); }
.px.on.light  { background: var(--c-window-bg); }
.px.on.amber  { background: var(--c-warning); }
.px.on.green  { background: var(--c-success); }
.px.on.coral  { background: var(--c-error); }

.mascot-caption {
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--c-warning);
    margin-top: 8px;
    letter-spacing: 1px;
}

/* Orbit question marks for confused state */
.orbit-q {
    position: absolute;
    font-family: var(--f-pixel);
    font-size: 14px;
    color: var(--c-warning);
    text-shadow: 1px 1px 0 var(--c-shadow);
    animation: orbit 4s linear infinite;
}
.orbit-q.q1 { top: -10px; left: -16px; animation-delay: 0s; }
.orbit-q.q2 { top: -8px; right: -14px; animation-delay: -1.3s; }
.orbit-q.q3 { bottom: 10px; right: -18px; animation-delay: -2.6s; }

@keyframes orbit {
    0%   { transform: translate(0, 0); opacity: 1; }
    50%  { transform: translate(6px, -6px); opacity: 0.5; }
    100% { transform: translate(0, 0); opacity: 1; }
}

.spark {
    position: absolute;
    font-family: var(--f-pixel);
    font-size: 12px;
    color: var(--c-warning);
    animation: sparkle 1.4s ease-in-out infinite;
}
.spark.s1 { top: -10px; left: -12px; animation-delay: 0s; }
.spark.s2 { top: -8px; right: -10px; animation-delay: -0.5s; color: var(--c-success); }
.spark.s3 { bottom: 10px; right: -12px; animation-delay: -0.9s; color: var(--c-error); }

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.4; }
    50%      { transform: scale(1.6) rotate(45deg); opacity: 1; }
}

/* -------- LANGUAGE MODULE -------- */
.language-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 40px;
    align-items: start;
}

.lang-prompt {
    font-family: var(--f-mono);
    font-size: 16px;
    color: var(--c-shadow);
    margin-bottom: 14px;
}

.output-frame {
    background: var(--c-deep);
    color: var(--c-deep-text);
    border: 2px solid var(--c-shadow);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow:
        inset 1px 1px 0 var(--c-bevel-dark),
        inset -1px -1px 0 var(--c-title-active);
    position: relative;
}

.output-frame::before {
    content: "OUTPUT >>";
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--c-window-bg);
    color: var(--c-shadow);
    font-family: var(--f-pixel);
    font-size: 9px;
    padding: 2px 8px;
    border: 1px solid var(--c-shadow);
}

.lang-result {
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--c-deep-text);
}

.hl-amber {
    background: var(--c-warning);
    color: var(--c-deep);
    padding: 1px 4px;
    font-weight: 500;
}

.check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 18px 0 12px 0;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--c-window-light);
    border: 2px solid var(--c-shadow);
    box-shadow:
        inset 1px 1px 0 var(--c-bevel-light),
        inset -1px -1px 0 var(--c-bevel-dark);
    font-family: var(--f-mono);
    font-size: 15px;
}

.check-item.pass .check-icon { color: var(--c-success); }
.check-item.fail .check-icon { color: var(--c-error); }
.check-item .check-label { color: var(--c-deep); letter-spacing: 1px; }

.lang-footnote {
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--c-shadow);
    font-style: italic;
}

/* -------- GRADUATION -------- */
.graduation-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.certificate {
    position: relative;
    background:
        repeating-linear-gradient(
            45deg,
            #FFF8E1 0,
            #FFF8E1 6px,
            #FFEFC8 6px,
            #FFEFC8 7px
        );
    border: 4px double var(--c-shadow);
    padding: 38px 40px 50px 40px;
    text-align: center;
    box-shadow:
        inset 2px 2px 0 var(--c-bevel-light),
        inset -2px -2px 0 var(--c-bevel-dark),
        6px 6px 0 rgba(42, 30, 74, 0.35);
}

.cert-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid var(--c-shadow);
}
.cert-corner.cert-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.cert-corner.cert-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.cert-corner.cert-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.cert-corner.cert-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.cert-banner {
    font-family: var(--f-mono);
    font-size: 16px;
    color: var(--c-shadow);
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.cert-heading {
    font-family: var(--f-pixel);
    font-size: 22px;
    color: var(--c-deep);
    line-height: 1.5;
    margin: 8px 0 22px 0;
    text-shadow: 2px 2px 0 var(--c-warning);
}

.cert-body {
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--c-deep);
    margin: 4px 0;
}

.cert-name {
    font-family: var(--f-pixel);
    font-size: 18px;
    color: var(--c-shadow);
    margin: 14px 0;
    letter-spacing: 2px;
}

.cert-stat {
    font-family: var(--f-body);
    font-size: 17px;
    margin: 10px 0 18px 0;
    color: var(--c-deep);
}

.stat-num {
    font-family: var(--f-pixel);
    font-size: 24px;
    color: var(--c-error);
}

.stat-den {
    font-family: var(--f-pixel);
    font-size: 18px;
    color: var(--c-shadow);
}

.cert-foot {
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--c-shadow);
    font-style: italic;
    margin-top: 16px;
}

.cert-seal {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--c-error);
    border: 3px solid var(--c-shadow);
    box-shadow:
        inset 2px 2px 0 #FF8B8B,
        inset -2px -2px 0 var(--c-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-12deg);
}

.seal-text {
    font-family: var(--f-pixel);
    font-size: 8px;
    color: var(--c-deep-text);
    text-align: center;
    line-height: 1.6;
    letter-spacing: 1px;
}

.grad-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Construction hammer */
.construction-block {
    background: var(--c-warning);
    border: 2px solid var(--c-shadow);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow:
        inset 1px 1px 0 var(--c-bevel-light),
        inset -1px -1px 0 var(--c-bevel-dark);
}

.construction-hammer {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    animation: hammer 0.8s ease-in-out infinite;
    transform-origin: 6px 18px;
}

.hammer-head {
    position: absolute;
    top: 0;
    left: 4px;
    width: 16px;
    height: 8px;
    background: var(--c-shadow);
    box-shadow:
        inset 1px 1px 0 #6A5A90,
        inset -1px -1px 0 #2A1E40;
}

.hammer-handle {
    position: absolute;
    top: 8px;
    left: 9px;
    width: 4px;
    height: 14px;
    background: var(--c-error);
    box-shadow: inset 1px 0 0 #FFA8A8;
}

@keyframes hammer {
    0%, 100% { transform: rotate(-30deg); }
    50%      { transform: rotate(20deg); }
}

.construction-text {
    font-family: var(--f-pixel);
    font-size: 9px;
    color: var(--c-deep);
    letter-spacing: 1px;
    line-height: 1.6;
}

.modules-list {
    background: var(--c-deep);
    border: 2px solid var(--c-shadow);
    padding: 16px 20px;
    box-shadow:
        inset 1px 1px 0 var(--c-bevel-dark),
        inset -1px -1px 0 var(--c-title-active);
}

.ml-line {
    font-family: var(--f-mono);
    font-size: 16px;
    color: var(--c-success);
    line-height: 1.6;
}

.ml-line.ml-corrupt {
    color: var(--c-error);
    text-decoration: line-through;
    text-decoration-color: var(--c-error);
}

.ml-line.ml-final {
    color: var(--c-warning);
    margin-top: 6px;
    border-top: 1px dashed var(--c-title-active);
    padding-top: 6px;
}

/* -------- CONFETTI -------- */
.confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    width: 8px;
    height: 8px;
    opacity: 0;
    animation: confetti-fall 4.5s linear infinite;
}

@keyframes confetti-fall {
    0%   { transform: translate(0, -20px) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translate(var(--drift, 30px), 110vh) rotate(540deg); opacity: 0; }
}

/* -------- DESKTOP FINAL SECTION -------- */
.desktop-final {
    position: relative;
    min-height: 60vh;
    padding: 80px 6% 60px 6%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.desktop-icons {
    display: grid;
    grid-template-columns: repeat(2, 110px);
    gap: 30px 50px;
    justify-content: start;
}

.desk-icon {
    text-align: center;
    cursor: default;
}

.icon-square {
    width: 56px;
    height: 56px;
    margin: 0 auto 8px auto;
    border: 2px solid var(--c-shadow);
    box-shadow:
        inset 2px 2px 0 var(--c-bevel-light),
        inset -2px -2px 0 var(--c-bevel-dark);
    position: relative;
}

.icon-folder {
    background: var(--c-warning);
    background-image:
        linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, 0.18) 22%, rgba(0, 0, 0, 0.18) 26%, transparent 26%),
        linear-gradient(90deg, var(--c-shadow) 0, var(--c-shadow) 30%, transparent 30%, transparent 35%, var(--c-warning) 35%);
    background-blend-mode: multiply;
}

.icon-doc {
    background: var(--c-window-bg);
    background-image:
        repeating-linear-gradient(
            180deg,
            transparent 0,
            transparent 6px,
            var(--c-shadow) 6px,
            var(--c-shadow) 7px
        );
    background-position: 8px 14px;
    background-size: 40px 40px;
    background-repeat: no-repeat;
}

.icon-trash {
    background: var(--c-window-light);
    background-image:
        linear-gradient(180deg, var(--c-shadow) 0, var(--c-shadow) 8px, transparent 8px),
        repeating-linear-gradient(90deg, var(--c-shadow) 0, var(--c-shadow) 2px, transparent 2px, transparent 8px);
    background-position: 0 6px, 12px 16px;
    background-size: 100% 8px, 32px 30px;
    background-repeat: no-repeat;
}

.icon-label {
    font-family: var(--f-pixel);
    font-size: 9px;
    color: var(--c-deep);
    line-height: 1.5;
    letter-spacing: 0.5px;
}

/* Visitor counter (GeoCities homage) */
.visitor-counter {
    background: var(--c-window-bg);
    border: 3px solid var(--c-shadow);
    padding: 22px 28px;
    text-align: center;
    box-shadow:
        inset 2px 2px 0 var(--c-bevel-light),
        inset -2px -2px 0 var(--c-bevel-dark),
        4px 4px 0 rgba(42, 30, 74, 0.35);
    max-width: 360px;
    margin-left: auto;
}

.vc-label {
    font-family: var(--f-pixel);
    font-size: 10px;
    color: var(--c-deep);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.vc-display {
    font-family: var(--f-mono);
    font-size: 44px;
    color: var(--c-success);
    background: var(--c-deep);
    padding: 10px 16px;
    border: 2px solid var(--c-shadow);
    box-shadow:
        inset 2px 2px 0 #1A0E3A,
        inset -2px -2px 0 #4A3A70;
    letter-spacing: 6px;
    margin-bottom: 10px;
    font-feature-settings: "tnum";
}

.vc-sub {
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--c-shadow);
    letter-spacing: 1px;
}

/* Taskbar */
.taskbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32px;
    background: var(--c-title-inactive);
    border-top: 2px solid var(--c-bevel-light);
    box-shadow:
        inset 0 1px 0 #B8A8D8,
        0 -2px 0 var(--c-shadow);
    display: flex;
    align-items: center;
    padding: 0 6px;
    gap: 6px;
    z-index: 50;
}

.start-button {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    background: var(--c-title-active);
    border: 2px solid;
    border-color: var(--c-bevel-light) var(--c-shadow) var(--c-shadow) var(--c-bevel-light);
    font-family: var(--f-pixel);
    font-size: 10px;
    color: var(--c-deep-text);
    text-shadow: 1px 1px 0 var(--c-shadow);
    flex-shrink: 0;
}

.start-square {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--c-warning);
    border: 1px solid var(--c-shadow);
}

.taskbar-items {
    flex: 1;
    display: flex;
    gap: 4px;
    overflow: hidden;
}

.task-item {
    height: 24px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    background: var(--c-title-active);
    border: 2px solid;
    border-color: var(--c-shadow) var(--c-bevel-light) var(--c-bevel-light) var(--c-shadow);
    font-family: var(--f-pixel);
    font-size: 9px;
    color: var(--c-deep-text);
    text-shadow: 1px 1px 0 var(--c-shadow);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.taskbar-clock {
    height: 24px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    background: var(--c-title-active);
    border: 2px solid;
    border-color: var(--c-shadow) var(--c-bevel-light) var(--c-bevel-light) var(--c-shadow);
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--c-deep-text);
    flex-shrink: 0;
    letter-spacing: 1px;
}

/* -------- DIALOG STACK -------- */
.dialog-stack {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}

.dialog {
    position: absolute;
    width: 320px;
    background: var(--c-window-bg);
    border: 2px solid var(--c-shadow);
    box-shadow:
        inset 1px 1px 0 var(--c-bevel-light),
        inset -1px -1px 0 var(--c-bevel-dark),
        6px 6px 0 rgba(42, 30, 74, 0.4);
    pointer-events: auto;
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.92);
    transition: opacity 280ms ease, transform 280ms ease;
}

.dialog.is-shown {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.dialog .title-bar {
    height: 22px;
    background: var(--c-title-active);
}

.dialog .title-bar .title-text {
    font-size: 9px;
}

.dialog-body {
    padding: 22px 22px 16px 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.dialog-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--c-warning);
    border: 2px solid var(--c-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-pixel);
    font-size: 18px;
    color: var(--c-deep);
    box-shadow:
        inset 2px 2px 0 #FFF1A0,
        inset -2px -2px 0 var(--c-shadow);
}

.dialog-message {
    font-family: var(--f-body);
    font-size: 14px;
    color: var(--c-deep);
    line-height: 1.6;
    flex: 1;
}

.dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 22px 18px 22px;
}

.dialog-btn {
    min-width: 60px;
    padding: 4px 12px;
    background: var(--c-window-light);
    border: 2px solid;
    border-color: var(--c-bevel-light) var(--c-shadow) var(--c-shadow) var(--c-bevel-light);
    font-family: var(--f-pixel);
    font-size: 8px;
    color: var(--c-deep);
    cursor: default;
    letter-spacing: 0.5px;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 900px) {
    .module-grid,
    .language-layout,
    .graduation-layout,
    .desktop-final {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .os-window[data-window="1"],
    .os-window[data-window="2"],
    .os-window[data-window="3"],
    .os-window[data-window="4"] {
        margin-left: 3%;
        width: 94%;
    }

    .window-content { padding: 24px 20px; }
    .pixel-heading { font-size: 16px; }
    .cert-heading { font-size: 16px; }
    .boot-log, .boot-cursor { font-size: 16px; }
    .boot-screen { padding: 22px 20px; }

    .visitor-counter { margin: 0 auto; }
    .desktop-icons { justify-content: center; }

    .taskbar-items { display: none; }

    .vc-display { font-size: 32px; letter-spacing: 4px; }
}

@media (max-width: 520px) {
    .title-text { font-size: 8px; }
    .ctrl { width: 10px; height: 10px; }
    .pixel-heading { font-size: 14px; }
    .shape-frame { flex-direction: column; align-items: flex-start; gap: 12px; }
    .check-row { flex-direction: column; gap: 8px; }
    .dialog { width: 86%; }
}

/* Hide mascot orbit decorations on triumphant version */
.mascot-triumphant .orbit-q { display: none; }
.mascot-confused .spark { display: none; }
