@font-face {
    font-family: 'W95FA';
    src: local('MS Sans Serif'), local('Tahoma'), local('Arial');
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: default;
    user-select: none;
}
.hidden { display: none; }
.window.hidden {
    display: none;
}
.icon, .btn-win, .btn-classic, .task-item {
    cursor: pointer;
}
body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: #008080; 
    font-family: 'W95FA', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    color: #000;
    -webkit-font-smoothing: none; 
    image-rendering: pixelated;
}


.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}
.screen-jitter {
    animation: screen-jitter 10s infinite;
    height: 100%;
    width: 100%;
    position: relative;
}

@keyframes screen-jitter {
    0%, 98% { transform: translate(0,0); }
    98.5% { transform: translate(-2px, 1px); }
    99% { transform: translate(2px, -2px); }
    99.5% { transform: translate(-1px, 2px); }
    100% { transform: translate(0,0); }
}

.glitch-text {
    position: relative;
    display: inline-block;
}
.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #c0c0c0;
}
.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(1px, 9999px, 11px, 0); }
    20% { clip: rect(14px, 9999px, 3px, 0); transform: translate(-2px, 1px); }
    40% { clip: rect(6px, 9999px, 18px, 0); transform: translate(2px, -1px); }
    60% { clip: rect(2px, 9999px, 8px, 0); transform: translate(-1px, 2px); }
    80% { clip: rect(19px, 9999px, 12px, 0); transform: translate(1px, -2px); }
    100% { clip: rect(7px, 9999px, 5px, 0); }
}


.desktop-icons {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.icon {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
}
.icon svg {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
    filter: drop-shadow(1px 1px 0px black);
}
.icon span {
    background: #008080;
    padding: 1px 2px;
}
.icon:active span {
    background: #000080;
    border: 1px dotted white;
}


.window {
    position: absolute;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #dfdfdf #0a0a0a #0a0a0a #dfdfdf;
    box-shadow: inset 1px 1px #fff, inset -1px -1px #808080, 2px 2px 0px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    min-width: 200px;
    min-height: 100px;
}
.resizer {
    position: absolute;
    width: 10px;
    height: 10px;
    background: transparent;
    z-index: 10;
}
.resizer.bottom-right {
    right: 0;
    bottom: 0;
    cursor: nwse-resize;
}
.resizer.bottom-left {
    left: 0;
    bottom: 0;
    cursor: nesw-resize;
}
.resizer.right {
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    cursor: e-resize;
}
.resizer.bottom {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    cursor: s-resize;
}
.title-bar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    padding: 2px 3px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px;
}
.title-bar.inactive {
    background: #808080;
}
.title-bar-controls {
    display: flex;
    gap: 2px;
}
.btn-win {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #000 #000 #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: black;
    font-size: 9px;
}
.btn-win:active {
    border-color: #000 #fff #fff #000;
    padding-top: 1px;
    padding-left: 1px;
}
.window-body {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sunken-panel {
    background: #fff;
    border: 1px solid;
    border-color: #808080 #fff #fff #808080;
    padding: 5px;
}

.btn-classic {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #000 #000 #fff;
    padding: 4px 10px;
    font-family: 'W95FA', sans-serif;
    font-size: 11px;
    color: black;
    box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #808080;
    display: inline-block;
    text-align: center;
}
.btn-classic:active {
    border-color: #000 #fff #fff #000;
    box-shadow: inset 1px 1px #808080, inset -1px -1px #dfdfdf;
    padding: 5px 9px 3px 11px; 
}


#win-pump {
    top: 10px;
    left: 290px;
    width: 300px;
    z-index: 10;
}
.token-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.token-logo {
    width: 48px;
    height: 48px;
    background: black;
    border: 2px solid #808080;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00ff00;
    font-weight: bold;
    font-size: 24px;
    text-shadow: 2px 0 red, -2px 0 blue; 
}
.contract-box {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}
.contract-box input {
    flex-grow: 1;
    background: #fff;
    border: 1px solid;
    border-color: #808080 #fff #fff #808080;
    padding: 3px;
    font-family: monospace;
    font-size: 11px;
    color: #333;
}
.buy-zone {
    border-top: 1px solid #808080;
    border-bottom: 1px solid #fff;
    padding-top: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-buy {
    font-weight: bold;
    color: #008000;
    padding: 6px 20px;
}


#win-chart {
    top: 10px;
    left: 600px;
    width: 415px;
    height: 460px;
    z-index: 5;
}
.terminal-body {
    background: #000;
    color: #00ff00;
    font-family: monospace;
    padding: 10px;
    border: 1px solid;
    border-color: #808080 #fff #fff #808080;
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
#dex-chart-container {
    flex-grow: 1;
    width: 100%;
    margin-top: 10px;
    border: 1px solid #003300;
    background: #000;
    position: relative;
    overflow: hidden;
}
.chart-svg {
    width: 100%;
    height: 150px;
    margin-top: 10px;
    filter: drop-shadow(0 0 5px #00ff00);
}
.terminal-text p {
    margin-bottom: 2px;
    opacity: 0.8;
}
.blink {
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }


#win-media {
    top: 0;
    left: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    z-index: 20;
    overflow: visible;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex-direction: unset;
}
/* y2k-player styles removed — Webamp handles all rendering */










.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28px;
    background: #c0c0c0;
    border-top: 1px solid #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px;
    z-index: 999;
}
.start-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    font-weight: bold;
}
.start-btn svg {
    width: 16px;
    height: 16px;
}
.task-items {
    flex-grow: 1;
    display: flex;
    gap: 2px;
    margin-left: 4px;
}
.task-item {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #000 #000 #fff;
    padding: 3px 8px;
    font-weight: bold;
    color: #000;
    box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #808080;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 100px;
}
.task-item.active {
    background: #dfdfdf;
    border-color: #000 #fff #fff #000;
    box-shadow: inset 1px 1px #808080, inset -1px -1px #dfdfdf;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, #c0c0c0 2px, #c0c0c0 4px);
}
.sys-tray {
    border: 1px solid;
    border-color: #808080 #fff #fff #808080;
    padding: 3px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========= BOOT OVERLAY ========= */
#boot-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #000;
}

/* Phase 1: BIOS */
#phase-bios {
    width: 100%;
    height: 100%;
    background: #000;
    padding: 10px 12px;
    box-sizing: border-box;
    overflow: hidden;
}
#bios-output {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #c8c8c8;
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
}

/* Phase 2: Windows 98 splash */
#phase-splash {
    display: none;
    width: 100%;
    height: 100%;
    background: #000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.win98-logo-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}
.win98-flag {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
    width: 88px;
    height: 88px;
}
.win98-pane { width: 100%; height: 100%; }
.win98-title-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.win98-word {
    font-family: serif;
    font-style: italic;
    font-weight: 200;
    font-size: 30px;
    color: #fff;
    letter-spacing: 1px;
}
.win98-ver {
    font-family: serif;
    font-weight: bold;
    font-size: 52px;
    color: #fff;
    line-height: 1;
}
.win98-progress-wrap {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
}
.win98-progress-track {
    width: 210px;
    height: 11px;
    border: 1px solid #686868;
    background: #000;
    overflow: hidden;
}
@keyframes win98slide {
    0%   { transform: translateX(-60%); }
    100% { transform: translateX(220%); }
}
.win98-progress-blocks {
    height: 100%;
    width: 45%;
    background: repeating-linear-gradient(
        90deg,
        #000080 0px, #000080 12px,
        #1084d0 12px, #1084d0 16px
    );
    animation: win98slide 1.1s linear infinite;
}

/* Phase 3: Login */
#phase-login {
    display: none;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #000050 0%, #000080 40%, #0050a0 70%, #000060 100%);
    align-items: center;
    justify-content: center;
    position: relative;
}
.win98-login-bg-text {
    position: absolute;
    bottom: 60px;
    right: 60px;
    font-family: serif;
    font-style: italic;
    font-size: 42px;
    color: rgba(255,255,255,0.12);
    font-weight: 200;
    user-select: none;
    pointer-events: none;
}
.login-dialog {
    width: 320px;
    min-width: unset;
    min-height: unset;
}
.login-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.login-icon-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.login-fields {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 8px;
    align-items: center;
    font-size: 11px;
    flex: 1;
}
.login-input {
    border: 1px solid;
    border-color: #808080 #fff #fff #808080;
    padding: 2px 4px;
    font-size: 11px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    outline: none;
}
.login-sep {
    border-top: 1px solid #808080;
    border-bottom: 1px solid #fff;
    margin: 0;
}
.login-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}
.login-ok-btn {
    min-width: 70px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #000 !important;
}

/* ========= CONTEXT MENU ========= */
.ctx-menu {
    position: fixed;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    min-width: 170px;
    z-index: 99999;
    font-size: 12px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
    padding: 2px;
}
.ctx-submenu { position: fixed; }
.ctx-item {
    padding: 3px 24px 3px 6px;
    cursor: default;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0;
    user-select: none;
    position: relative;
}
.ctx-item:hover:not(.ctx-dis) { background: #000080; color: #fff; }
.ctx-dis { color: #808080; }
.ctx-dis:hover { background: transparent !important; color: #808080 !important; }
.ctx-arr { margin-left: auto; font-size: 9px; padding-left: 10px; }
.ctx-sep { height: 1px; background: #808080; margin: 2px 4px; border-top: 1px solid #fff; }

/* ========= EXPLORER / MY COMPUTER / NOTEPAD ========= */
#win-mycomputer { top:60px; left:180px; width:400px; z-index:14; }
#win-explorer   { top:80px; left:220px; width:440px; z-index:13; }
#win-recyclebin { top:70px; left:200px; width:440px; z-index:14; }
#win-notepad    { top:90px; left:240px; width:400px; z-index:13; }

.expl-menubar {
    display: flex;
    gap: 0;
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    padding: 1px 2px;
    font-size: 11px;
}
.expl-menubar span {
    padding: 2px 8px;
    cursor: pointer;
}
.expl-menubar span:hover { background: #000080; color: #fff; }
.expl-toolbar {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    padding: 3px 4px;
}
.expl-btn {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    padding: 1px 8px;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.expl-btn:disabled { color: #808080; cursor: default; }
.expl-btn:not(:disabled):active { border-color: #808080 #fff #fff #808080; }
.expl-sep { width: 1px; height: 18px; background: #808080; margin: 0 3px; }
.expl-addr-bar {
    display: flex;
    align-items: center;
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    padding: 2px 4px;
    gap: 4px;
    font-size: 11px;
}
.expl-addr-lbl {
    font-size: 11px;
    white-space: nowrap;
    color: #000;
}
.expl-addr-val {
    flex: 1;
    background: #fff;
    border: 2px inset #808080;
    padding: 1px 4px;
    font-size: 11px;
    font-family: inherit;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.expl-body {
    min-height: 220px;
    max-height: 380px;
    overflow: auto;
    background: #fff;
    padding: 4px;
    flex: 1;
}
.expl-statusbar {
    background: #c0c0c0;
    border-top: 1px solid #808080;
    padding: 2px 6px;
    font-size: 11px;
    color: #000;
}
/* Icon grid */
.expl-icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px;
    align-content: flex-start;
}
.expl-icon {
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 1px;
    text-align: center;
}
.expl-icon:hover { background: #d0e0f0; border-color: #0000aa; }
.expl-icon-sel  { background: #000080 !important; color: #fff !important; border-color: #000080 !important; }
.expl-icon-sel .expl-icon-lbl { color: #fff; }
.expl-icon-img  { font-size: 30px; line-height: 1; margin-bottom: 3px; }
.expl-icon-lbl  { font-size: 11px; font-family: inherit; word-break: break-word; line-height: 1.2; }
/* Drive icons in My Computer */
.drive-icon { width: 100px; }
.drive-bar-wrap {
    width: 90px; height: 10px;
    border: 1px solid #808080;
    background: #fff;
    margin: 2px auto 0;
}
.drive-bar-fill { height: 100%; }
.drive-info { font-size: 9px; color: #444; text-align: center; margin-top: 1px; }
/* Recycle bin list view */
.expl-list-hdr {
    display: grid;
    grid-template-columns: 28px 1fr 1.4fr 90px 70px;
    background: #c0c0c0;
    border-bottom: 2px solid #808080;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 0;
    position: sticky; top: 0;
}
.expl-list-hdr span, .expl-list-row span { padding: 1px 4px; }
.expl-list-row {
    display: grid;
    grid-template-columns: 28px 1fr 1.4fr 90px 70px;
    font-size: 11px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    align-items: center;
}
.expl-list-row:hover { background: #d0e0f0; }
.expl-list-sel { background: #000080 !important; color: #fff !important; }
.expl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 160px;
    color: #808080;
    font-size: 13px;
    gap: 8px;
}
.expl-empty-icon { font-size: 48px; }
/* Notepad */
.notepad-area {
    width: 100%;
    min-height: 300px;
    max-height: 500px;
    box-sizing: border-box;
    border: none;
    border-top: 1px solid #808080;
    resize: none;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 4px;
    outline: none;
    background: #fff;
    color: #000;
    display: block;
}

/* ========= SOLITAIRE ========= */
#win-solitaire {
    top: 40px;
    left: 400px;
    width: auto;
    min-width: unset;
    min-height: unset;
    z-index: 12;
}
.sol-body {
    background: #008000;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    user-select: none;
    position: relative;
}
.sol-top {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}
.sol-spacer { flex: 1; }
.sol-slot {
    width: 56px;
    height: 80px;
    flex-shrink: 0;
}
.sol-tableau {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    min-height: 200px;
}
.sol-col {
    position: relative;
    width: 56px;
    flex-shrink: 0;
    min-height: 80px;
}
/* cards */
.sol-card {
    position: absolute;
    width: 56px;
    height: 80px;
    background: #fff;
    border: 1px solid #808080;
    border-radius: 3px;
    box-sizing: border-box;
    cursor: pointer;
    font-family: Arial, sans-serif;
    overflow: hidden;
}
.sol-card-top, .sol-card-waste {
    width: 56px;
    height: 80px;
    background: #fff;
    border: 1px solid #808080;
    border-radius: 3px;
    box-sizing: border-box;
    cursor: pointer;
    font-family: Arial, sans-serif;
    position: relative;
    overflow: hidden;
}
.sol-card-top { display: inline-block; }
.sol-tl {
    position: absolute;
    top: 2px;
    left: 3px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.1;
}
.sol-br {
    position: absolute;
    bottom: 2px;
    right: 3px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.1;
    transform: rotate(180deg);
}
.sol-mid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
}
.sol-back {
    background: repeating-linear-gradient(
        45deg,
        #000080,
        #000080 3px,
        #1060c0 3px,
        #1060c0 6px
    );
    border: 1px solid #808080;
    border-radius: 3px;
    cursor: pointer;
}
.sol-sel {
    outline: 2px solid #ffff00 !important;
    outline-offset: -2px;
    z-index: 50 !important;
}
.sol-empty {
    width: 56px;
    height: 80px;
    border: 1px dashed #006000;
    border-radius: 3px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #006000;
    font-size: 20px;
}
.sol-toolbar {
    display: flex;
    gap: 6px;
    padding: 2px 0;
}
.sol-btn {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    padding: 2px 10px;
    font-size: 11px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
}
.sol-btn:active { border-color: #808080 #fff #fff #808080; }
.sol-hint-src {
    outline: 3px solid #00ff44 !important;
    outline-offset: -2px;
    z-index: 60 !important;
    animation: sol-pulse 0.6s ease-in-out infinite;
}
.sol-hint-dst {
    outline: 2px dashed #ffff44 !important;
    outline-offset: -1px;
}
@keyframes sol-pulse {
    0%,100% { box-shadow: 0 0 4px 2px rgba(0,255,68,0.7); }
    50%      { box-shadow: 0 0 10px 4px rgba(0,255,68,0); }
}
.sol-gameover {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.68);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    gap: 12px;
    z-index: 200;
    border-radius: 2px;
}
.sol-gameover.hidden { display: none; }

/* ========= MINESWEEPER ========= */
#win-minesweeper {
    top: 200px;
    left: 310px;
    width: auto;
    min-width: unset;
    min-height: unset;
    z-index: 15;
    resize: none;
}
.ms-window-body {
    padding: 8px;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    background: #c0c0c0;
}
.ms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    padding: 4px 8px;
    gap: 8px;
}
.ms-display {
    background: #000;
    color: #f00;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: bold;
    padding: 1px 5px;
    min-width: 44px;
    text-align: center;
    letter-spacing: 2px;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    line-height: 1.2;
}
.ms-smiley {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #888;
    flex-shrink: 0;
}
.ms-smiley:active {
    border-color: #808080 #fff #fff #808080;
    box-shadow: inset 1px 1px #888, inset -1px -1px #dfdfdf;
}
#ms-board {
    display: grid;
    grid-template-columns: repeat(9, 22px);
    border: 3px solid;
    border-color: #808080 #fff #fff #808080;
    line-height: 0;
}
.ms-cell {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: default;
    user-select: none;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}
.ms-covered {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    cursor: pointer;
}
.ms-covered:hover { background: #d0d0d0; }
.ms-covered:active {
    border-color: #808080 #fff #fff #808080;
    background: #c0c0c0;
}
.ms-revealed {
    background: #c0c0c0;
    border: 1px solid #808080;
}
.ms-mine-hit { background: #f00 !important; }
.ms-wrong-flag { background: #f00 !important; }
.ms-num-1 { color: #0000cc; }
.ms-num-2 { color: #007700; }
.ms-num-3 { color: #cc0000; }
.ms-num-4 { color: #000077; }
.ms-num-5 { color: #770000; }
.ms-num-6 { color: #007777; }
.ms-num-7 { color: #000000; }
.ms-num-8 { color: #777777; }

/* ---- START MENU ---- */
.start-menu {
    position: fixed;
    bottom: 30px;
    left: 0;
    display: flex;
    flex-direction: row;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #404040 #404040 #dfdfdf;
    box-shadow: inset 1px 1px #fff, inset -1px -1px #808080, 3px 3px 0 rgba(0,0,0,0.4);
    z-index: 9998;
    min-width: 180px;
}
.start-menu.hidden { display: none; }
.start-menu-banner {
    width: 22px;
    background: linear-gradient(to top, #000080, #1084d0);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}
.start-menu-banner span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: rgba(255,255,255,0.35);
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 3px;
    user-select: none;
}
.start-menu-items {
    flex: 1;
    padding: 3px 0;
}
.start-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 16px 5px 10px;
    cursor: pointer;
    font-size: 11px;
    white-space: nowrap;
}
.start-menu-item:hover {
    background: #000080;
    color: #fff;
}
.start-menu-item:hover svg * {
    stroke: #fff;
}
.start-menu-sep {
    border: none;
    border-top: 1px solid #808080;
    border-bottom: 1px solid #fff;
    margin: 3px 4px;
}
