*,
body,
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
}

/******************************************************* CRT Scanline Overlay */

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 3px
    );
    pointer-events: none;
    z-index: 99999;
}

/******************************************************* desktop */

#desktop {
    background-color: #40AAAC;
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    height: 100%;
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/******************************************************* desktop icons */

.desktop-icon {
    cursor: pointer;
    color: black;
    display: block;
    height: 4rem;
    position: relative;
    margin: 1rem;
    width: 5rem;
    text-decoration: none;
    user-select: none;
}

.desktop-icon:hover .title {
    background: #000080;
    color: #fff;
}

.icon-cinco {
    background: url(../img/folder.png) no-repeat 50% 30%;
}

.icon-original {
    background: url(../img/cd.png) no-repeat 50% 30%;
}

.desktop-icon .title {
    bottom: 0;
    display: block;
    position: absolute;
    text-align: center;
    width: 5rem;
    font-size: 11px;
    padding: 1px 2px;
}

/******************************************************* global window design */

.window {
    background: #edeced;
    border: 3px solid;
    border-color: #dfdfdf #000000 #000000 #dfdfdf;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080, 2px 2px 0 rgba(0,0,0,0.5);
    color: black;
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
    display: none;
    outline: 1px solid #000;
    overflow: hidden;
    margin: auto;
    padding: 0;
    position: absolute;
    text-align: center;
    z-index: 200;
}

.window-content {
    border: 0;
    padding: 10px;
    position: relative;
}

.window-video {
    width: 340px;
    min-width: 280px;
    max-width: 90vw;
    background: #000;
    border: 3px solid;
    border-color: #dfdfdf #000000 #000000 #dfdfdf;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080, 3px 3px 0 rgba(0,0,0,0.4);
}

.window-video video {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

/******************************************************* Real-Time Head Overlay */

.head-overlay-container {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 40;
}

.tracking-debug-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.head-overlay-img {
    position: absolute;
    height: auto;
    max-width: none;
    object-fit: contain;
    pointer-events: none;
    will-change: transform, left, top;
    user-select: none;
    transform-origin: center center;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.6));
    will-change: transform, left, top;
}

.window h3 {
    display: block;
    font-weight: bold;
    font-size: 16px;
    height: 20px;
}

/******************************************************* Dedicated Tayne / Host Graphic Card Window */

#window-tayne-card {
    position: absolute;
    top: 22%;
    left: calc(50% - 250px);
    width: 500px;
    max-width: 36vw;
    z-index: 260;
    background: #dfdfdf;
    border: 3px solid;
    border-color: #dfdfdf #000000 #000000 #dfdfdf;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080, 4px 4px 0 rgba(0,0,0,0.45);
}

.card-window-toolbar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: #c0c0c0;
    border-bottom: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

.card-window-toolbar .card-toolbar-label {
    font-family: 'Pixelated MS Sans Serif', 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #222;
    margin-right: 4px;
}

.card-window-toolbar .card-view-btn {
    font-family: 'Pixelated MS Sans Serif', 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    padding: 2px 8px;
    height: 22px;
    cursor: pointer;
    background: #dfdfdf;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

.card-window-toolbar .card-view-btn.active {
    background: #cecece;
    border-color: #000000 #ffffff #ffffff #000000;
    box-shadow: inset 1px 1px 0 #808080;
    font-weight: bold;
}

.card-window-content {
    padding: 10px;
    background: #c0c0c0;
    box-sizing: border-box;
}

.center-graphic-card {
    width: 100%;
    min-height: 280px;
    box-sizing: border-box;
    position: relative;
    border: 3px solid #000000;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
    display: flex;
    overflow: hidden;
    user-select: none;
    cursor: pointer;
}

.center-graphic-card .card-box {
    flex: 1;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px 12px;
    box-sizing: border-box;
}

/* Authentic CRT Magenta/Pink from Celery Man sketch */
.center-graphic-card .card-box-pink {
    background: #e16bb9;
    background: linear-gradient(180deg, #ea7bc1 0%, #d85aa5 100%);
}

/* Authentic CRT Orange from Celery Man sketch */
.center-graphic-card .card-box-orange {
    background: #ff7300;
    background: linear-gradient(180deg, #ff851b 0%, #ee6b00 100%);
}

/* Massive Black Pixel Typography matching the sketch screenshot */
.center-graphic-card .card-text {
    font-family: 'Silkscreen', 'VT323', monospace;
    font-size: clamp(48px, 11vw, 84px);
    font-weight: 700;
    color: #000000;
    letter-spacing: 6px;
    white-space: nowrap;
    text-transform: uppercase;
    line-height: 1;
    position: relative;
    z-index: 2;
    image-rendering: pixelated;
    text-rendering: geometricPrecision;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.2));
}

/* Authentic CRT horizontal scanlines overlay */
.center-graphic-card .card-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(0, 0, 0, 0.26) 2px,
        rgba(0, 0, 0, 0.26) 4px
    );
    pointer-events: none;
    z-index: 5;
}

/* Card View Modes */
.center-graphic-card.mode-pink .card-box-orange {
    display: none;
}
.center-graphic-card.mode-pink .card-box-pink {
    display: flex;
    width: 100%;
}

.center-graphic-card.mode-orange .card-box-pink {
    display: none;
}
.center-graphic-card.mode-orange .card-box-orange {
    display: flex;
    width: 100%;
}

.center-graphic-card.mode-both {
    flex-direction: row;
    gap: 4px;
}
.center-graphic-card.mode-both .card-box-pink {
    display: flex;
    border-right: 2px solid #000000;
}
.center-graphic-card.mode-both .card-box-orange {
    display: flex;
}
.center-graphic-card.mode-both .card-text {
    font-size: clamp(26px, 5.5vw, 48px);
    letter-spacing: 3px;
}

/******************************************************* loader */

#window-loader {
    position: absolute;
    left: calc(50% - 280px);
    top: 42%;
    width: 560px;
    max-width: 92vw;
    z-index: 600;
}

#window-loader h3 {
    width: 100%;
    font-size: 18px;
}

#window-loader progress {
    width: 100%;
    height: 30px;
}

#window-original {
    top: 10%;
    left: 10%;
    width: 580px;
}

/******************************************************* Paul Rudd Reaction Window */

#window-paul-reaction {
    position: absolute;
    top: 8%;
    left: calc(50% - 480px);
    width: 960px;
    max-width: 95vw;
    z-index: 380;
    background: #dfdfdf;
    border: 3px solid;
    border-color: #dfdfdf #000000 #000000 #dfdfdf;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080, 5px 5px 0 rgba(0,0,0,0.5);
}

.reaction-window-content {
    padding: 0;
    background: #000;
    position: relative;
    overflow: hidden;
}

#video-paul-player {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

/******************************************************* Talking Dancer Intro Window */

#window-tayne-intro {
    position: absolute;
    top: 2%;
    left: 50%;
    width: 480px;
    max-width: 34vw;
    z-index: 370;
    background: #dfdfdf;
    border: 3px solid;
    border-color: #dfdfdf #000000 #000000 #dfdfdf;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080, 5px 5px 0 rgba(0,0,0,0.5);
}

.intro-dancer-content {
    padding: 0;
    background: #000;
    position: relative;
    overflow: hidden;
}

#video-tayne-talking {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

#overlay-talking-face {
    position: absolute;
    height: auto;
    max-width: none;
    object-fit: contain;
    pointer-events: none;
    will-change: transform, left, top;
    user-select: none;
    transform-origin: center center;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.6));
    will-change: transform, left, top;
    z-index: 5;
}

#window-tayne-card.intro-mode {
    top: 42% !important;
    left: 14% !important;
    width: 640px !important;
    max-width: 44vw !important;
    z-index: 375 !important;
}

.card-window-toolbar {
    display: none !important;
}

/******************************************************* prompt */

#window-prompt {
    background: #000;
    bottom: 46px;
    color: #33ff33;
    font-size: 32px;
    height: 90px;
    left: 20px;
    min-width: 480px;
    max-width: calc(100vw - 40px);
    text-align: left;
    border: 3px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #000000, 2px 2px 0 rgba(0,0,0,0.5);
    z-index: 300;
}

#window-prompt .window-content {
    font-family: 'VT323', monospace;
    padding: 8px 14px;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 4px rgba(51, 255, 51, 0.6);
}

/******************************************************* welcome sequence window */

#window-welcome {
    display: block;
    left: calc(50% - 275px);
    top: 10%;
    width: 550px;
    max-width: 95vw;
}

#window-welcome .header {
    width: 100%;
}

#window-welcome .progress {
    margin-top: 20px;
}

#window-welcome .progress span {
    display: block;
    font-weight: bold;
    font-size: 16px;
}

#window-welcome .options {
    margin: 15px auto 0;
}

#window-welcome .options h2 {
    display: block;
    font-weight: bold;
    font-size: 16px;
    height: 30px;
    padding: 5px;
}

#window-welcome .options ul {
    width: 100%;
    margin: 0px auto;
    list-style-type: none;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    flex-wrap: wrap;
}

#window-welcome .options ul > li {
    cursor: pointer;
    display: inline-block;
    width: 94px;
    padding: 6px 4px;
    border: 2px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease;
    user-select: none;
}

#window-welcome .options ul > li:hover {
    transform: scale(1.05);
    background: #dfdfdf;
    border: 2px dotted #808080;
}

#window-welcome .options ul > li:hover #option-mystery {
    filter: drop-shadow(0 0 3px rgba(255, 204, 0, 0.9));
}

#window-welcome .options ul > li:active {
    transform: scale(0.98);
}

#window-welcome .options ul > li h4 {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.2;
}

.beta-tag {
    color: #0420ac;
    font-weight: bold;
    font-size: 11px;
}

.sequence-panel-host {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid #808080;
    display: flex;
    justify-content: center;
}

.host-selector-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.host-select-label {
    font-size: 11px;
    font-weight: bold;
    color: #000;
    letter-spacing: 0.5px;
}

.win95-select {
    background: #ffffff;
    color: #000000;
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
    font-size: 11px;
    padding: 3px 6px;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #000000, inset -1px -1px 0 #dfdfdf;
    outline: none;
    cursor: pointer;
    border-radius: 0;
    height: 25px;
    line-height: 19px;
}

.win95-select:focus {
    outline: 1px dotted #000000;
}

/******************************************************* progress bar */

.window progress {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 75%;
    height: 30px;
    margin: 15px 0;
    border: none;
    color: #0420ac;
}

.window progress::-moz-progress-bar {
    background: #0420ac;
}

.window progress::-webkit-progress-bar {
    border: 1px solid #808080;
    background: #ffffff;
    box-shadow: inset 1px 1px 0 #000;
}

.window progress::-webkit-progress-value {
    background: #0420ac;
}

/******************************************************* titlebar */

.window-titlebar {
    background: #ffffff;
    border-bottom: 1px solid black;
    cursor: move;
    height: 28px;
    position: relative;
    text-align: left;
    user-select: none;
}

.window-titlebar .title {
    color: black;
    font-size: 14px;
    line-height: 28px;
    padding-left: 35px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: calc(100% - 70px);
}

.window-titlebar button {
    background: transparent;
    border: 0;
    position: absolute;
    top: 0;
    height: 28px;
    width: 28px;
}

.window-titlebar button:first-child {
    left: 0;
}

.window-titlebar button:last-child {
    right: 0;
}

.window-titlebar .btn-move {
    border-left: 1px solid black;
    right: 30px;
    cursor: move;
}

.window-titlebar .btn-close {
    border-right: 1px solid black;
    cursor: pointer;
}

.window-titlebar .btn-close:hover,
.window-titlebar .btn-move:hover {
    background: #dfdfdf;
}

/******************************************************* Windows 95 Button Styles */

.win95-btn {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #000000;
    color: #000000;
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    cursor: pointer;
    outline: none;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    height: 24px;
}

.win95-btn:active,
.win95-btn.pressed {
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset -1px -1px 0 #dfdfdf, inset 1px 1px 0 #000000;
    padding: 4px 7px 2px 9px;
}

.win95-btn-host {
    color: #000080;
    border-color: #ffffff #404040 #404040 #ffffff;
    font-weight: 900;
}

.win95-btn-host .btn-icon {
    color: #d97706;
}

.win95-btn-primary {
    min-width: 80px;
    outline: 1px dotted #000;
    outline-offset: -4px;
}

.taskbar-scale-group {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    height: 24px;
}

.scale-btn {
    padding: 0 6px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    min-width: 20px;
    height: 24px !important;
    line-height: 18px !important;
}

.scale-indicator {
    padding: 0 5px !important;
    font-size: 10px !important;
    height: 24px !important;
    line-height: 20px !important;
    background: #dfdfdf !important;
    cursor: pointer;
    min-width: 38px;
    text-align: center;
    font-family: 'Silkscreen', 'VT323', monospace !important;
    letter-spacing: 0.5px;
}

/******************************************************* Windows 95 Taskbar */

#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 34px;
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    box-shadow: inset 0 1px 0 #dfdfdf;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 6px;
    z-index: 9500;
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
}

.taskbar-start-btn {
    height: 26px;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 12px;
}

.start-logo {
    font-size: 14px;
    color: #000080;
    margin-right: 2px;
}

.taskbar-flyout-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.win95-flyout-menu {
    position: fixed;
    bottom: 36px;
    left: 68px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080, 4px 4px 0 rgba(0,0,0,0.55);
    display: flex;
    flex-direction: row;
    min-width: 210px;
    z-index: 15000;
    user-select: none;
}

.win95-flyout-sidebar {
    width: 26px;
    background: linear-gradient(180deg, #000080 0%, #000040 70%, #000000 100%);
    color: #c0c0c0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
}

.win95-flyout-sidebar span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: #c0c0c0;
}

.win95-flyout-sidebar span b {
    color: #ffffff;
}

.win95-flyout-list {
    list-style: none;
    margin: 0;
    padding: 3px;
    flex: 1;
    max-height: 72vh;
    overflow-y: auto;
}

.win95-flyout-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 8px;
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    white-space: nowrap;
}

.win95-flyout-item:hover,
.win95-flyout-item.active {
    background: #000080;
    color: #ffffff;
}

.win95-flyout-avatar {
    width: 20px;
    height: 20px;
    object-fit: contain;
    background: #dfdfdf;
    border: 1px solid #808080;
    flex-shrink: 0;
}

.win95-flyout-divider {
    height: 2px;
    border-top: 1px solid #808080;
    border-bottom: 1px solid #ffffff;
    margin: 3px 2px;
}

.modal-cascade-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 11020;
    overflow: hidden;
}

.cascade-clone-window {
    position: fixed !important;
    width: 480px;
    max-width: 90vw;
    margin: 0 !important;
    display: block !important;
    pointer-events: none;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080, 4px 4px 0 rgba(0,0,0,0.55);
}

.taskbar-divider {
    width: 2px;
    height: 24px;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    margin: 0 2px;
}

.taskbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.taskbar-tray {
    margin-left: auto;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #000000, inset -1px -1px 0 #dfdfdf;
    padding: 2px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    background: #c0c0c0;
    height: 22px;
}

.tray-icon {
    font-size: 12px;
    cursor: default;
}

#taskbar-clock {
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/******************************************************* Modal Dialogs */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-window {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 480px;
    max-width: 90vw;
    z-index: 11050;
    margin: 0;
    display: block !important;
}

.modal-window-content {
    background: #dfdfdf;
    padding: 20px 24px 20px 24px;
    text-align: center;
}

.modal-host-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 14px;
}

.modal-cinco-header {
    display: block;
    margin: 0;
    max-width: 145px;
    height: auto;
}

.modal-host-mugshot-frame {
    width: 78px;
    height: 78px;
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #000000, inset -1px -1px 0 #dfdfdf;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
}

.modal-host-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.4));
}

.modal-body-section {
    margin-bottom: 18px;
}

.modal-status-heading {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin: 0 0 12px 0;
}

.modal-designation {
    font-size: 15px;
    line-height: 1.4;
    color: #111;
    margin: 0 0 8px 0;
}

.modal-designation #host-candidate-name {
    font-weight: bold;
    color: #000080;
    font-size: 17px;
}

.modal-agenda {
    font-size: 13px;
    font-style: italic;
    color: #444;
    margin: 0;
}

.modal-actions-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.modal-actions-bar .win95-btn {
    min-width: 115px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
}

/* System Tray Phone Alert Button */
@keyframes phonePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
    50% { transform: scale(1.18) rotate(-8deg); filter: drop-shadow(0 0 3px #ff0055); }
}

.tray-phone-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 0 2px;
    animation: phonePulse 1.4s ease-in-out infinite;
}

/* Dot-Matrix Printout Window ("Can I get a printout of [Host] smiling?") */
.printout-window {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 480px;
    max-width: 94vw;
    z-index: 12500;
    display: block !important;
}

.printout-window-content {
    background: #c0c0c0;
    padding: 14px 18px 16px 18px;
    text-align: center;
}

.printer-slot-bezel {
    background: #3a3d45;
    border: 3px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 0 6px 10px rgba(0,0,0,0.85);
    padding: 12px 10px 0 10px;
    overflow: hidden;
    position: relative;
}

@keyframes paperFeedOut {
    0% { transform: translateY(88%); }
    20% { transform: translateY(70%); }
    45% { transform: translateY(45%); }
    70% { transform: translateY(22%); }
    100% { transform: translateY(0%); }
}

.tractor-paper {
    background: #f8f7f2;
    border-top: 2px dashed #cccccc;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.45);
    transform: translateY(0%);
}

.tractor-paper.printing {
    animation: paperFeedOut 2.1s steps(9, end) forwards;
}

.tractor-holes {
    width: 22px;
    background-image: radial-gradient(circle, #3a3d45 4px, transparent 5px);
    background-size: 22px 22px;
    background-repeat: repeat-y;
    background-position: center 6px;
    border-right: 1px dashed #d5d5d0;
    flex-shrink: 0;
}

.tractor-holes-right {
    border-right: none;
    border-left: 1px dashed #d5d5d0;
}

.tractor-paper-body {
    flex: 1;
    padding: 14px 12px 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.printout-photo-box {
    width: 100%;
    min-height: 245px;
    background: repeating-linear-gradient(
        to bottom,
        #f6f5ec 0px,
        #f6f5ec 14px,
        #e2f0e4 14px,
        #e2f0e4 28px
    );
    border: 1px dashed #a8b0a4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px 6px;
    position: relative;
}

.printout-ascii {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 7.5px;
    line-height: 7.6px;
    letter-spacing: 0px;
    font-weight: 700;
    color: #141b2d;
    white-space: pre;
    text-align: center;
    user-select: text;
    z-index: 2;
}

.printout-photo-box img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.45) contrast(1.45) brightness(1.08) sepia(0.18);
}

.printout-caption {
    margin-top: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    font-weight: bold;
    color: #555555;
    letter-spacing: 0.5px;
}

.printout-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

/* Incoming Call: WIFE (545-334-98) Window matching original sketch */
.wife-call-window {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 260px;
    max-width: 90vw;
    background: #dfdfdf;
    border: 3px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.55);
    z-index: 12600;
    display: block !important;
}

.wife-call-top-bar {
    display: flex;
    align-items: center;
    height: 24px;
    background: #dfdfdf;
    border-bottom: 1px solid #000;
}

.wife-call-sys-btn {
    width: 24px;
    height: 23px;
    background: #dfdfdf;
    border: none;
    border-right: 1px solid #000;
    font-weight: bold;
    cursor: pointer;
}

.wife-call-sys-btn:last-child {
    border-right: none;
    border-left: 1px solid #000;
}

.wife-call-blue-bar {
    flex: 1;
    height: 100%;
    background: #1035ac;
}

.wife-call-subtitle {
    text-align: left;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    background: #efefef;
    border-bottom: 2px solid #b0b0b0;
}

.wife-call-body {
    padding: 10px;
    background: #e5e5e5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wife-call-led {
    background: #4a0d12;
    color: #ff2a1f;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 32px;
    letter-spacing: 3px;
    padding: 4px 8px;
    text-align: center;
    border: 3px solid;
    border-color: #606060 #ffffff #ffffff #606060;
    text-shadow: 0 0 6px rgba(255, 42, 31, 0.85);
}

@keyframes wifePhoneRing {
    0%, 100% { transform: rotate(0deg) scale(1); }
    20% { transform: rotate(-14deg) scale(1.08); }
    40% { transform: rotate(14deg) scale(1.08); }
    60% { transform: rotate(-10deg) scale(1.05); }
    80% { transform: rotate(10deg) scale(1.05); }
}

.wife-call-pink-card {
    background: #d82b73;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 20px 12px 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wife-call-phone-icon {
    font-size: 56px;
    line-height: 1;
    filter: brightness(0) invert(1);
    animation: wifePhoneRing 0.7s ease-in-out infinite;
}

.wife-call-label {
    font-family: 'Silkscreen', 'VT323', monospace;
    font-size: 28px;
    color: #ffffff;
    letter-spacing: 4px;
    font-weight: bold;
}

.wife-dismiss-btn {
    width: 100%;
    white-space: normal !important;
    height: auto !important;
    line-height: 1.3 !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
}

.win95-dialog {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080, 4px 4px 0 rgba(0,0,0,0.6);
    min-width: 420px;
    max-width: 90vw;
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
    color: #000;
    padding: 3px;
    outline: 1px solid #000;
}

.win95-titlebar {
    background: #000080;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 2px 6px;
    font-size: 12px;
    font-weight: bold;
    user-select: none;
    height: 20px;
}

.titlebar-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.win95-close-btn {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 14px;
    line-height: 12px;
    cursor: pointer;
    padding: 0;
    text-align: center;
    color: #000;
}

.win95-close-btn:active {
    box-shadow: inset -1px -1px 0 #dfdfdf, inset 1px 1px 0 #808080;
}

.win95-dialog-body {
    padding: 16px 20px 14px 20px;
}

.modal-alert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.retro-warning-icon {
    font-size: 28px;
    color: #f5a623;
    display: inline-block;
    flex-shrink: 0;
    line-height: 1;
}

.modal-alert-title {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #000000;
}

.modal-alert-message {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 18px;
    padding-left: 40px;
}

.modal-btn-row {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/******************************************************* Confetti Canvas */

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 12000;
    display: block;
}

/******************************************************* Animations & Easter Eggs */

@keyframes winWobble {
    0% { transform: translate(0, 0) rotate(0deg); }
    15% { transform: translate(-8px, -4px) rotate(-6deg); }
    30% { transform: translate(8px, 4px) rotate(6deg); }
    45% { transform: translate(-6px, 3px) rotate(-4deg); }
    60% { transform: translate(6px, -3px) rotate(4deg); }
    75% { transform: translate(-3px, -2px) rotate(-2deg); }
    90% { transform: translate(3px, 2px) rotate(2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.window.wobbling {
    animation: winWobble 0.75s ease-in-out infinite;
}

@keyframes flarhFlash {
    0% { filter: invert(0) hue-rotate(0deg); }
    20% { filter: invert(1) hue-rotate(90deg); }
    40% { filter: invert(0) hue-rotate(180deg); }
    60% { filter: invert(1) hue-rotate(270deg); }
    80% { filter: invert(0) hue-rotate(360deg); }
    100% { filter: invert(0) hue-rotate(0deg); }
}

.flarhgunnst-active {
    animation: flarhFlash 0.6s ease-in-out;
}

/* Nude Tayne Censor Bar */
.censor-overlay {
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    background: #000;
    color: #ff3333;
    font-family: 'Silkscreen', 'VT323', monospace;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 8px 0;
    border-top: 2px solid #ff3333;
    border-bottom: 2px solid #ff3333;
    letter-spacing: 2px;
    z-index: 60;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

/******************************************************* Responsive Styles */

@media screen and (max-width: 600px) {
    #window-prompt {
        font-size: 20px;
        min-width: 280px;
        height: 70px;
    }
    #taskbar .taskbar-actions {
        max-width: 65vw;
    }
    .win95-dialog {
        min-width: 300px;
    }
    #window-tayne-card {
        width: 95vw;
        left: 2.5%;
        top: 15%;
    }
    .center-graphic-card {
        min-height: 200px;
    }
    .center-graphic-card .card-box {
        min-height: 200px;
    }
    .center-graphic-card .card-text {
        font-size: clamp(34px, 10vw, 56px);
        letter-spacing: 3px;
    }
    .center-graphic-card.mode-both .card-text {
        font-size: clamp(20px, 5vw, 32px);
        letter-spacing: 1px;
    }
}
