
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
    background: #008080;
    font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
    overflow: hidden;
    position: relative;
    image-rendering: pixelated;
}

/* ---- cursori ---- */
/* png e non cur: neocities rifiuta i .cur. i due numeri sono il punto attivo */
/* button va elencato: il foglio di stile del browser vince sull'ereditarieta' */
html, body, button {
    cursor: url("lib/windows-98/Cursor79.png") 10 10, default;
}

body.busy, body.busy * {
    cursor: url("lib/windows-98/Cursor83.png") 10 10, wait;
}

.titlebar .btn.help {
    cursor: url("lib/windows-98/Cursor103.png") 10 10, help;
}

input, textarea { cursor: text; }
/* ---- desktop ---- */
.desktop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 30px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 4px;
    z-index: 1;
}

.desktop-icon {
    width: 76px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    padding: 4px 2px;
}
.desktop-icon svg {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
    shape-rendering: crispEdges;
}
.desktop-icon .label {
    color: #ffffff;
    font-size: 11px;
    text-align: center;
    text-shadow: 1px 1px 1px #000000;
    margin-top: 3px;
    line-height: 1.2;
}
.desktop-icon.selected .label {
    background: #000080;
    text-shadow: none;
}

.desktop-icon .ico,
.file-icon .ico {
    position: relative;
    display: block;
    line-height: 0;
}
.desktop-icon.selected .ico::after,
.file-icon.selected .ico::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000080;
    opacity: 0.45;
}
/* ---- finestre ---- */
.window {
    position: absolute;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
    z-index: 10;
    animation: window-open 0.16s steps(3);
}
@keyframes window-open {
    0%   { transform: scale(0.82); opacity: 0.4; }
    100% { transform: scale(1);    opacity: 1; }
}

.titlebar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    padding: 3px 4px 3px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    user-select: none;
}
.window.blurred .titlebar {
    background: linear-gradient(90deg, #7b7b7b, #b0b0b0);
}
.titlebar .title {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    white-space: nowrap;
}
.titlebar .title svg { width: 14px; height: 14px; flex-shrink: 0; }

.titlebar .btns { display: flex; gap: 2px; flex-shrink: 0; }
.titlebar .btn {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    width: 16px; height: 14px;
    font-size: 10px;
    line-height: 11px;
    text-align: center;
    font-weight: bold;
    color: #000000;
    flex-shrink: 0;
}
.titlebar .btn:hover { background: #d4d4d4; }
.titlebar .btn:active { border-color: #404040 #ffffff #ffffff #404040; }

/* ---- barra dei menu ---- */
.menubar {
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    font-size: 12px;
    padding: 3px 6px;
    display: flex;
    gap: 4px;
    color: #000000;
    user-select: none;
}
.menubar span {
    padding: 2px 6px;
}
.menubar span:hover { background: #000080; color: #ffffff; }

/* ---- barra strumenti ---- */
.toolbar {
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 3px 4px;
    gap: 1px;
    overflow: hidden;
}
.tb-group { display: flex; gap: 1px; }
.tb-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 7px 2px;
    border: 1px solid transparent;
}
.tb-btn:hover:not(.disabled) { border-color: #ffffff #404040 #404040 #ffffff; }
.tb-btn:active:not(.disabled) { border-color: #404040 #ffffff #ffffff #404040; }
.tb-btn svg { width: 16px; height: 16px; }
.tb-btn span { font-size: 10px; margin-top: 1px; color: #000000; }
.tb-btn.disabled svg { opacity: 0.35; }
.tb-btn.disabled span { color: #999999; }
.tb-sep {
    width: 1px;
    height: 26px;
    background: #808080;
    border-right: 1px solid #ffffff;
    margin: 0 4px;
}

/* ---- barra indirizzi ---- */
.addressbar {
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    font-size: 12px;
    color: #000000;
}
.addr-box {
    flex: 1;
    background: #ffffff;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 5px;
    overflow: hidden;
    white-space: nowrap;
}
.addr-box svg { width: 14px; height: 14px; flex-shrink: 0; }
.addr-dropdown {
    width: 16px; height: 19px;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #000000;
    flex-shrink: 0;
}
.addr-dropdown:active { border-color: #404040 #ffffff #ffffff #404040; }

/* ---- corpo a due pannelli ---- */
.panes { display: flex; }

.tree {
    width: 150px;
    background: #ffffff;
    border-right: 1px solid #808080;
    font-size: 11px;
    color: #000000;
    padding: 4px 0;
    min-height: 190px;
    flex-shrink: 0;
}
.tree-item {
    padding: 2px 4px 2px 8px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.tree-item:hover:not(.active) { background: #dbe6f5; }
.tree-item.lvl1 { padding-left: 20px; }
.tree-item.lvl2 { padding-left: 32px; }
.tree-item.active { background: #000080; color: #ffffff; }
.tree-toggle {
    width: 9px; height: 9px;
    border: 1px solid #808080;
    background: #ffffff;
    color: #000000;
    text-align: center;
    line-height: 8px;
    font-size: 9px;
    flex-shrink: 0;
}
.tree-children.collapsed { display: none; }
.tree-ico {
    display: inline-block;
    width: 10px; height: 8px;
    background: #f2cf78;
    border: 1px solid #8a6d2f;
    flex-shrink: 0;
}
.tree-ico.drive { background: #c0c0c0; border-color: #606060; }
.tree-ico.bin   { background: #d4d4d4; border-color: #808080; }
.tree-item.active .tree-ico { border-color: #ffffff; }

.content {
    background: #ffffff;
    flex: 1;
    min-height: 190px;
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px;
}
.content .empty-note {
    color: #808080;
    font-size: 11px;
    font-style: italic;
}

.file-icon {
    width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    padding: 4px 2px;
}
.file-icon svg {
    width: 32px; height: 32px;
    image-rendering: pixelated;
    shape-rendering: crispEdges;
}
.file-icon .label {
    color: #000000;
    font-size: 11px;
    text-align: center;
    margin-top: 3px;
    line-height: 1.2;
}
.file-icon.selected .label { background: #000080; color: #ffffff; }

/* ---- barra di stato ---- */
.statusbar {
    background: #c0c0c0;
    border-top: 1px solid #ffffff;
    display: flex;
    font-size: 11px;
    color: #000000;
}
.statusbar span {
    padding: 3px 8px;
    border-right: 1px solid #808080;
    flex: 1;
}
.statusbar span:last-child {
    border-right: none;
    flex: 0 0 auto;
    min-width: 120px;
}

.status-strip {
    margin: 0 6px 6px;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    font-size: 11px;
    color: #404040;
    padding: 2px 6px;
    white-space: pre;
    overflow: hidden;
}

/* ---- menu contestuale ---- */
.context-menu {
    position: fixed;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    font-size: 12px;
    display: none;
    z-index: 60;
    min-width: 140px;
    padding: 2px 0;
}
.context-menu.show { display: block; }
.context-menu .item {
    padding: 4px 10px 4px 22px;
    color: #000000;
}
.context-menu .item:hover { background: #000080; color: #ffffff; }
.context-menu .item.disabled { color: #9a9a9a; }
.context-menu .item.disabled:hover { background: none; color: #9a9a9a; }
.context-menu .sep {
    height: 1px;
    background: #808080;
    border-bottom: 1px solid #ffffff;
    margin: 3px 2px;
}

/* ---- blocco note e visualizzatore ---- */
.note-body {
    background: #ffffff;
    margin: 6px;
    padding: 14px 16px;
    font-family: "Courier New", monospace;
    font-size: 12.5px;
    color: #000000;
    white-space: pre-wrap;
    line-height: 1.65;
    min-height: 60px;
}
.note-body .rot { color: #9a9a9a; }

.image-body {
    background: #000000;
    margin: 6px;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 10px;
    text-align: center;
    overflow: hidden;
}
.image-body.raw { padding: 0; height: 190px; }
.image-body.raw canvas {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
}

.pix-frame {
    width: 176px;
    height: 192px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}
.pix-src {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
}
.pix-src.broken {
    width: auto; height: auto;
    color: #808080;
    font-family: "Courier New", monospace;
    font-size: 12px;
}
.pix-canvas {
    display: none;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: grayscale(1) contrast(1.3) brightness(0.92) sepia(0.18);
}

/* ---- netscape ---- */
.ns-page {
    background: #ffffff;
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    color: #000000;
    line-height: 1.5;
    padding: 14px 16px;
    height: 250px;
    overflow-y: auto;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    margin: 6px;
}
.ns-page h1 {
    font-size: 21px;
    font-weight: bold;
    margin-bottom: 8px;
}
.ns-page p { margin-bottom: 11px; }
.ns-page hr {
    border: none;
    border-top: 2px groove #cccccc;
    margin: 12px 0;
}
.ns-page .from { font-weight: bold; }
.ns-page .gap { color: #b4b4b4; }

.ns-broken {
    display: inline-block;
    width: 26px; height: 30px;
    vertical-align: middle;
    margin: 2px 6px 2px 0;
    border: 1px solid #909090;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}
.ns-broken::before,
.ns-broken::after {
    content: "";
    position: absolute;
    left: 3px; right: 3px;
    height: 9px;
    background: #b9c4cf;
}
.ns-broken::before { top: 3px; }
.ns-broken::after  { bottom: 3px; clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 70%); }

.ns-toolbar {
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 4px 5px;
    gap: 3px;
    overflow: hidden;
}
.ns-btn {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    padding: 3px 8px;
    font-size: 11px;
    color: #000000;
    white-space: nowrap;
    user-select: none;
}
.ns-btn:active:not(.disabled) { border-color: #404040 #ffffff #ffffff #404040; }
.ns-btn.disabled { color: #808080; text-shadow: 1px 1px 0 #ffffff; }

.ns-location {
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    font-size: 11px;
    color: #000000;
}
.ns-url {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 2px 5px;
    font-size: 11px;
    overflow: hidden;
    white-space: nowrap;
}
.ns-logo {
    width: 28px; height: 26px;
    flex-shrink: 0;
    border: 2px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c0c0c0;
}
.ns-logo svg { width: 20px; height: 20px; }

.ns-page.plain {
    font-family: "Courier New", monospace;
    font-size: 11.5px;
    line-height: 1.45;
    white-space: pre;
}

/* ---- netscape mail ---- */
.mail-panes {
    display: flex;
    gap: 4px;
    margin: 6px 6px 0;
}
.mail-folders {
    width: 150px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    font-size: 11px;
    color: #000000;
    height: 88px;
    overflow-y: auto;
}
.mail-folder {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    white-space: nowrap;
}
.mail-folder svg { width: 13px; height: 13px; flex-shrink: 0; }
.mail-folder.active { background: #000080; color: #ffffff; }

.mail-empty {
    padding: 8px 10px;
    font-style: italic;
    color: #808080;
}

.mail-list {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    font-size: 11px;
    color: #000000;
    height: 88px;
    overflow-y: auto;
}
.mail-head, .mail-row {
    display: flex;
    gap: 8px;
    padding: 2px 6px;
    white-space: nowrap;
}
.mail-head {
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    font-weight: bold;
    position: sticky;
    top: 0;
}
.mail-row.selected { background: #000080; color: #ffffff; }
.mail-row .who,  .mail-head .who  {
    width: 176px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 5px;
}
.mail-row .who svg { width: 13px; height: 13px; flex-shrink: 0; }
.mail-row .subj, .mail-head .subj { flex: 1; min-width: 0; overflow: hidden; }

.mail-body {
    background: #ffffe6;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    margin: 6px;
    padding: 10px 12px;
    font-family: "Times New Roman", Times, serif;
    font-size: 13.5px;
    line-height: 1.5;
    color: #000000;
    height: 186px;
    overflow-y: auto;
}
.mail-body .hdr {
    font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
    color: #404040;
    line-height: 1.7;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d4d4d4;
}
.mail-body .hdr b { color: #000000; }
.mail-body p { margin-bottom: 10px; }
.mail-body blockquote {
    margin: 12px 0 12px 6px;
    padding-left: 12px;
    border-left: 2px solid #7a7a7a;
    color: #333333;
}

.ns-status {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 6px 6px;
    font-size: 11px;
    color: #303030;
}
.ns-status .field {
    flex: 1;
    min-width: 0;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 2px 6px;
    overflow: hidden;
    white-space: nowrap;
}
.ns-status .pane {
    width: 86px;
    flex-shrink: 0;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 2px 6px;
    text-align: right;
}

/* ---- scacchiera ---- */
.cs-wrap { padding: 8px 8px 4px; }
.cs-board {
    display: grid;
    grid-template-columns: repeat(8, 30px);
    grid-template-rows: repeat(8, 30px);
    width: 240px;
    margin: 0 auto;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}
.cs-sq {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.cs-sq.light { background: #b0a898; }
.cs-sq.dark  { background: #4a443c; }
.cs-sq.sel   { background: #6f7f58; }
.cs-piece {
    font-size: 23px;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}
.cs-piece.w { color: #f7f4ee; text-shadow: 0 0 2px #000000, 1px 1px 0 rgba(0, 0, 0, 0.6); }
.cs-piece.b { color: #16130e; text-shadow: 0 0 2px rgba(255, 255, 255, 0.4); }
.cs-target::after {
    content: "";
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}
.cs-capture { box-shadow: inset 0 0 0 3px rgba(190, 70, 60, 0.85); }

/* ---- finestre modali ---- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 80;
}
/* un modale deve mangiare i click della pagina sotto */
.modal-overlay.show { display: flex; pointer-events: auto; }

.dialog {
    width: 300px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
    pointer-events: all;
    font-size: 12px;
}

.dialog-body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 14px;
}
.dialog-message { color: #000000; line-height: 1.5; font-size: 12px; }
.dialog-btnrow {
    text-align: right;
    padding: 6px 14px 14px;
}
.dialog-btnrow.center { text-align: center; }

button.win-btn {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    padding: 4px 16px;
    font-family: inherit;
    font-size: 12px;
}
button.win-btn:hover { background: #cacaca; }
button.win-btn:active { border-color: #404040 #ffffff #ffffff #404040; }
button.win-btn:disabled {
    color: #808080;
    text-shadow: 1px 1px 0 #ffffff;
}
button.win-btn:disabled:hover { background: #c0c0c0; }
button.win-btn:disabled:active { border-color: #ffffff #404040 #404040 #ffffff; }

.error-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #cc2222;
    position: relative;
    flex-shrink: 0;
}
.error-icon::before, .error-icon::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 16px; height: 3px;
    background: #ffffff;
}
.error-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.error-icon::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.warn-icon {
    width: 32px; height: 32px;
    position: relative;
    flex-shrink: 0;
}
.warn-icon::before {
    content: "";
    position: absolute;
    left: 50%; top: 2px;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 26px solid #ffcc00;
}
.warn-icon::after {
    content: "!";
    position: absolute;
    left: 50%; top: 60%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 15px;
    color: #000000;
    font-family: Tahoma, Arial, sans-serif;
}

/* ---- finestra proprieta ---- */
.props-tabs {
    display: flex;
    gap: 2px;
    padding: 6px 6px 0;
    border-bottom: 1px solid #808080;
}
.props-tab {
    padding: 3px 12px;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    font-size: 11px;
    color: #000000;
    position: relative;
    top: 1px;
}
.props-tab.active {
    border-bottom-color: #c0c0c0;
    font-weight: bold;
}
.props-body {
    padding: 14px;
    color: #000000;
    min-height: 90px;
}
.props-pane { display: none; }
.props-pane.active { display: block; }
.props-row { display: flex; margin-bottom: 7px; }
.props-row .k { width: 78px; color: #444444; flex-shrink: 0; }
.props-row.reveal .v {
    opacity: 0;
    font-weight: bold;
    animation: reveal-fade 1.3s ease forwards;
    animation-delay: 0.7s;
}
@keyframes reveal-fade { to { opacity: 1; } }

/* ---- barra di avanzamento ---- */
.progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px 14px;
}
.progress-track {
    background: #ffffff;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    height: 18px;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2px;
    gap: 2px;
}
.progress-block { flex: 1; height: 100%; background: #ffffff; }
.progress-block.lit { background: #000080; }
.progress-pct {
    font-size: 11px;
    color: #000000;
    min-width: 32px;
    flex-shrink: 0;
}

/* ---- barra applicazioni ---- */
.taskbar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 30px;
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 6px;
    z-index: 70;
}
.start-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    padding: 3px 8px;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
}
.start-btn:active { border-color: #404040 #ffffff #ffffff #404040; }
.start-btn .flag {
    width: 14px;
    height: 14px;
    background:
        linear-gradient(#ff4444 0 0) 0 0 / 6px 6px no-repeat,
        linear-gradient(#44cc44 0 0) 8px 0 / 6px 6px no-repeat,
        linear-gradient(#4488ff 0 0) 0 8px / 6px 6px no-repeat,
        linear-gradient(#ffcc33 0 0) 8px 8px / 6px 6px no-repeat;
}
.taskbar .sep {
    width: 2px;
    height: 22px;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    flex-shrink: 0;
}
.task-buttons {
    display: flex;
    gap: 3px;
    overflow: hidden;
    flex: 1;
}
.task-btn {
    height: 22px;
    max-width: 160px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    padding: 0 9px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
}
.task-btn svg { width: 14px; height: 12px; flex-shrink: 0; }
.task-btn.active {
    border-color: #404040 #ffffff #ffffff #404040;
    font-weight: bold;
}
/* ---- menu start ---- */
.start-menu {
    position: absolute;
    left: 2px;
    bottom: 30px;
    display: none;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
    z-index: 75;
    min-width: 190px;
}
.start-menu.show { display: flex; }

.start-banner {
    width: 22px;
    flex-shrink: 0;
    background: linear-gradient(0deg, #000080, #1084d0);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}
.start-banner span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
}

.start-items { flex: 1; padding: 2px 0; }
.start-item {
    padding: 5px 22px 5px 12px;
    font-size: 12px;
    color: #000000;
    white-space: nowrap;
}
.start-item:not(.disabled):hover { background: #000080; color: #ffffff; }
.start-item.disabled { color: #808080; text-shadow: 1px 1px 0 #ffffff; }
.start-sep {
    height: 1px;
    background: #808080;
    border-bottom: 1px solid #ffffff;
    margin: 3px 4px;
}

/* ---- spegnimento ---- */
.shutdown-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000000;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shutdown-screen span {
    color: #ffa030;
    font-family: "Courier New", monospace;
    font-size: 17px;
    letter-spacing: 0.5px;
    opacity: 0;
}
.shutdown-screen.safe span { opacity: 1; }

.clock {
    margin-left: auto;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 3px 10px;
    font-size: 12px;
    flex-shrink: 0;
}


