    * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { width: 100%; height: 100%; overflow: hidden; }
    /* Retro Win-style pointer + trail (see #cursorTrailLayer) */
    html {
      /* Default cursor variables (overridden by html.cursor-style-*). */
      --cur-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M2 2v16l5-5 3 9 3-1-4-9h7z' fill='%23fff' stroke='%23000' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0;
      --cur-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M8 4v14l4-4 2 6 2-1-3-7h5z' fill='%23000' stroke='%23fff' stroke-width='0.8' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0;
      cursor: var(--cur-default), auto;
    }
    input, textarea, .term-input { cursor: text; }
    a, button, .wbtn, .nav-btn, .diff-btn, .desk-icon, .start-btn, .tb-win, .tb-tray-ico, .sm-item, .sm-desk-bg-swatch, .sm-desk-bg-reset, .settings-factory-btn, .desk-factory-reset-btn, .win-menu-item, .snake-dpad { cursor: var(--cur-pointer), pointer; }

    /* Cursor presets (4 retro styles) */
    html.cursor-style-1 {
      --cur-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M2 2v16l5-5 3 9 3-1-4-9h7z' fill='%23fff' stroke='%23000' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0;
      --cur-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M8 4v14l4-4 2 6 2-1-3-7h5z' fill='%23000' stroke='%23fff' stroke-width='0.8' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0;
    }
    html.cursor-style-2 {
      /* Solid black arrow (classic) */
      --cur-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M2 2v16l5-5 3 9 3-1-4-9h7z' fill='%23000' stroke='%23fff' stroke-width='0.9' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0;
      --cur-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M8 4v14l4-4 2 6 2-1-3-7h5z' fill='%23fff' stroke='%23000' stroke-width='0.9' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0;
    }
    html.cursor-style-3 {
      /* Chunkier arrow (more 90s) */
      --cur-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M2 2v17l5-5 3 9 4-1-4-9h7z' fill='%23fff' stroke='%23000' stroke-width='1.3' stroke-linejoin='miter'/%3E%3C/svg%3E") 0 0;
      --cur-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M8 4v15l4-4 2 6 3-1-3-7h5z' fill='%23000' stroke='%23fff' stroke-width='1.1' stroke-linejoin='miter'/%3E%3C/svg%3E") 0 0;
    }
    html.cursor-style-4 {
      /* Soft blue-ish arrow */
      --cur-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M2 2v16l5-5 3 9 3-1-4-9h7z' fill='%23d8ecff' stroke='%23000' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0;
      /* Hand cursor for clickable UI (more different from arrows). */
      --cur-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M8.2 21c-.8 0-1.5-.5-1.7-1.3L5 14.2c-.2-.8.3-1.6 1.1-1.8.7-.2 1.4.1 1.7.8l.6 1.2V6.8c0-.9.7-1.6 1.6-1.6s1.6.7 1.6 1.6V12h.4V7.4c0-.9.7-1.6 1.6-1.6s1.6.7 1.6 1.6V12h.4V8.6c0-.9.7-1.6 1.6-1.6S19 7.7 19 8.6V14h.4v-2.2c0-.9.7-1.6 1.6-1.6S22.6 10.9 22.6 11.8V15c0 3.3-2.7 6-6 6H8.2z' fill='%23d8ecff' stroke='%23000' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") 6 20;
    }
    .cursor-trail-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9998; overflow: hidden; display: none; }
    .cursor-trail-dot { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: radial-gradient(circle, rgba(180,220,255,.85) 0%, rgba(100,160,255,.35) 60%, transparent 70%); pointer-events: none; will-change: transform; opacity: 0.75; }
    .cursor-trail-ghost {
      position: absolute;
      left: 0;
      top: 0;
      width: 24px;
      height: 24px;
      background-repeat: no-repeat;
      background-size: 24px 24px;
      pointer-events: none;
      will-change: transform, opacity;
      opacity: 0;
      filter: drop-shadow(0 0 1px rgba(0,0,0,0.25));
    }

    .desktop {
      /* Base fill via --desk-bg (user palette + localStorage); grid overlay on top */
      --desk-bg: #5d9072;
      --desk-ticker-h: 38px;
      /* Keep the two marquees intentionally "inverted" (opposite directions) */
      --desk-ticker-speed: 42s;
      --market-ticker-speed: 28s;
      --desk-content-inset-top: calc(8px + var(--desk-ticker-h));
      background-color: var(--desk-bg);
      background-image:
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,0,0,0.045) 1px, rgba(0,0,0,0.045) 2px),
        repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(0,0,0,0.045) 1px, rgba(0,0,0,0.045) 2px);
      width: 100%; height: 100vh; height: 100dvh; max-height: 100dvh;
      font-family: 'Tahoma', Arial, sans-serif;
      position: relative; overflow: hidden;
      display: flex; flex-direction: column;
    }

    /* ── CRT (global desktop look) ── */
    .desktop {
      /* Slight phosphor-ish punch; keep it readable. */
      filter: saturate(1.06) contrast(1.02);
    }
    .desktop::before,
    .desktop::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 2; /* above .desktop-zoom-inner (z=1), below special overlays */
    }
    /* Scanlines + light flicker */
    .desktop::before {
      opacity: 0.22;
      background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0) 0px,
        rgba(0,0,0,0) 2px,
        rgba(0,0,0,0.10) 3px
      );
      mix-blend-mode: multiply;
      animation: crt-flicker 7.2s steps(70) infinite;
    }
    /* Vignette + tiny RGB mask */
    .desktop::after {
      opacity: 0.44;
      background:
        radial-gradient(ellipse 92% 84% at 50% 46%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.28) 100%),
        linear-gradient(90deg, rgba(255,0,0,0.03) 0%, transparent 33%, transparent 66%, rgba(0,0,255,0.03) 100%);
      mix-blend-mode: multiply;
    }
    @keyframes crt-flicker {
      0%, 100% { opacity: 0.20; }
      11% { opacity: 0.27; }
      23% { opacity: 0.18; }
      37% { opacity: 0.29; }
      52% { opacity: 0.21; }
      66% { opacity: 0.30; }
      79% { opacity: 0.19; }
      91% { opacity: 0.25; }
    }
    @media (prefers-reduced-motion: reduce) {
      .desktop::before { animation: none; }
    }
    /* During boot: no top ticker + no extra top inset (same timing as taskbar reveal) */
    .desktop.desktop-desk-ticker-off {
      --desk-ticker-h: 0px;
    }
    .desktop.desktop-desk-ticker-off .desk-ticker {
      visibility: hidden;
      opacity: 0;
      border-bottom-width: 0;
      box-shadow: none;
    }
    .desktop.desktop-desk-ticker-off .desk-ticker-toggle { opacity: 0; pointer-events: none; transform: translateY(-6px); }

    /* User-controlled: collapse the top ticker but keep a small toggle handle */
    .desktop.desktop-desk-ticker-collapsed { --desk-ticker-h: 0px; }
    .desktop.desktop-desk-ticker-collapsed .desk-ticker { visibility: hidden; opacity: 0; border-bottom-width: 0; box-shadow: none; }
    /* Zoom the desktop area only so the taskbar stays visible at the bottom */
    .desktop-zoom-inner {
      flex: 1;
      min-height: 0;
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      zoom: 1.06;
    }

    /* ── BOOT ── */
    .boot-screen {
      position: absolute; inset: 0; background: #000;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      z-index: 500; transition: opacity .35s ease;
    }
    .boot-screen.fade-out { opacity: 0; pointer-events: none; }
    .boot-screen.hidden { display: none; }
    .boot-logo {
      width: 88px;
      height: 88px;
      margin-bottom: 28px;
      border-radius: 2px;
      overflow: hidden;
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 28px rgba(0, 0, 0, 0.55);
    }
    .boot-logo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      image-rendering: auto;
    }
    .boot-title { font-family: 'VT323', monospace; font-size: 42px; color: #fff; letter-spacing: .08em; margin-bottom: 6px; text-align: center; }
    .boot-sub { font-family: 'VT323', monospace; font-size: 18px; color: #555; margin-bottom: 48px; letter-spacing: .12em; text-align: center; }
    .boot-bar-wrap { width: min(280px, 70vw); height: 20px; border: 1px solid #555; background: #000; padding: 3px; margin-bottom: 16px; }
    .boot-bar-inner { height: 100%; background: #00c; width: 0%; transition: width .08s linear; }
    .boot-msg { font-family: 'VT323', monospace; font-size: 16px; color: #0c0; letter-spacing: .06em; min-height: 22px; text-align: center; }
    .boot-pct { font-family: 'VT323', monospace; font-size: 14px; color: #444; margin-top: 6px; }

    /* ── FIXED TOP MARQUEE (Skyblog / early-2000s) — not draggable; sits above zoomed desktop ── */
    .desk-ticker {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: var(--desk-ticker-h);
      z-index: 550;
      box-sizing: border-box;
      background: linear-gradient(180deg, #1e1a28 0%, #14121c 50%, #1a1824 100%);
      border-bottom: 1px solid rgba(120, 100, 150, 0.45);
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
      overflow: hidden;
      pointer-events: none;
      transition: opacity 0.35s ease, visibility 0.35s ease;
    }
    /* Top ticker now hosts the market scroll; tune speed for full viewport width. */
    .desk-ticker.desk-ticker--market { --market-ticker-speed: 36s; }
    .desk-ticker-track.desk-ticker-track--market{
      padding: 0 38px 0 12px; /* space for the toggle handle */
      box-sizing: border-box;
      width: 100%;
    }
    .desk-ticker--market .ticker-scroll{
      white-space: nowrap;
      font-family: 'VT323', 'Tahoma', monospace;
      line-height: 1.25;
      font-size: 18px;
      letter-spacing: .06em;
      color: #bbb;
      text-shadow: 0 1px 1px rgba(0,0,0,.75);
    }
    .desk-ticker-toggle{
      position: fixed;
      top: 8px;
      right: 8px;
      z-index: 560;
      width: 22px;
      height: 20px;
      display: grid;
      place-items: center;
      border-radius: 2px;
      border-top: 1px solid rgba(255,255,255,.35);
      border-left: 1px solid rgba(255,255,255,.18);
      border-right: 1px solid rgba(0,0,0,.55);
      border-bottom: 1px solid rgba(0,0,0,.75);
      background: linear-gradient(180deg, rgba(40,36,52,.95), rgba(22,20,30,.95));
      color: rgba(230,230,245,.95);
      font: 14px/1 Tahoma, Arial, sans-serif;
      box-shadow: 0 2px 10px rgba(0,0,0,.35);
      pointer-events: auto;
      user-select: none;
      opacity: 0.9;
      transition: opacity .15s ease, transform .2s ease, filter .15s ease;
    }
    .desk-ticker-toggle:hover{ opacity: 1; filter: brightness(1.08); }
    .desk-ticker-toggle:active{ transform: translateY(1px); }
    .desk-ticker-track {
      height: 100%;
      display: flex;
      align-items: center;
      overflow: hidden;
      mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
      -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
    }
    .desk-ticker-inner {
      display: flex;
      flex-wrap: nowrap;
      width: max-content;
      flex-shrink: 0;
      animation: deskTickerMarqueeReverse var(--desk-ticker-speed) linear infinite;
      will-change: transform;
    }
    .desk-ticker-chunk {
      flex-shrink: 0;
      padding-right: 4rem;
      font-family: 'VT323', 'Tahoma', monospace;
      font-size: clamp(16px, 2.4vw, 20px);
      line-height: 1.1;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      white-space: nowrap;
      animation: deskTickerSoftHue 10s ease-in-out infinite;
      text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75);
    }
    .desk-ticker-chunk .desk-ticker-ee-start {
      color: #fff6a8;
      font-weight: bold;
      letter-spacing: 0.05em;
      text-transform: none;
      text-shadow: 0 0 10px rgba(255, 215, 80, 0.65), 0 1px 2px rgba(0, 0, 0, 0.9);
    }
    @keyframes deskTickerMarquee {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    @keyframes deskTickerMarqueeReverse {
      0% { transform: translateX(-50%); }
      100% { transform: translateX(0); }
    }
    @keyframes deskTickerSoftHue {
      0%, 100% { color: #c4b8e8; }
      33% { color: #9ec9e0; }
      66% { color: #d4c4a8; }
    }
    @media (prefers-reduced-motion: reduce) {
      .desk-ticker-inner { animation: none; transform: translateX(0); }
      .desk-ticker-chunk { animation: none; color: #c8c4d4; opacity: 1; }
    }

    /* ── HUB SPOTLIGHT (moved marquee inside MANITAS.SOL window) ── */
    .hub-spotlight{
      /* narrower container → shorter duration keeps px/s similar */
      --desk-ticker-speed: 26s;
      background: linear-gradient(180deg, #1e1a28 0%, #14121c 50%, #1a1824 100%);
      border-top: 2px solid #404040;
      border-left: 2px solid #404040;
      border-right: 2px solid #ccc;
      border-bottom: 2px solid #ccc;
      padding: 0;
      margin: 8px 8px 0;
      height: 28px;
      overflow: hidden;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .hub-spotlight .desk-ticker-track{ height: 100%; }
    .hub-spotlight .desk-ticker-chunk{
      font-size: 18px; /* stable inside window */
      padding-right: 3rem;
    }

    /* ── DESKTOP AREA ── */
    .desktop-area {
      flex: 1;
      min-height: 0;
      position: relative;
      padding: 8px;
      padding-top: var(--desk-content-inset-top);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .desk-icons { flex: 1; min-height: 0; position: relative; padding: 8px; }

    /* Hidden “randomize (invisible)” dice: random position; appears faintly on hover; double-click → sister domain */
    .desk-randomize-invisible {
      position: absolute;
      z-index: 2;
      box-sizing: border-box;
      width: 44px;
      height: 44px;
      padding: 0;
      margin: 0;
      border: none;
      background: transparent;
      cursor: default;
      display: flex;
      align-items: center;
      justify-content: center;
      -webkit-tap-highlight-color: transparent;
    }
    .desk-randomize-invisible::after{
      content: '';
      position: absolute;
      width: 1px;
      height: 1px;
      left: 50%;
      top: 50%;
      transform: translate(-0.5px, -0.5px);
      background: #ff2bd6; /* tiny locator pixel */
      pointer-events: none;
      opacity: 0.95;
    }
    .desk-randomize-invisible .desk-randomize-dice {
      opacity: 0;
      transition: opacity 0.12s ease;
      pointer-events: none;
      display: flex;
      align-items: center;
      justify-content: center;
      filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
    }
    .desk-randomize-invisible:hover .desk-randomize-dice,
    .desk-randomize-invisible:focus-visible .desk-randomize-dice {
      opacity: 0.52;
    }
    .desk-randomize-invisible:hover,
    .desk-randomize-invisible:focus-visible {
      cursor: pointer;
      outline: none;
    }
    .desk-randomize-invisible:focus-visible {
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
      border-radius: 4px;
    }
    [data-desk-shortcut] { cursor: grab; }
    [data-desk-shortcut]:active { cursor: grabbing; }
    .desk-shortcut-loose {
      position: absolute;
      z-index: 2;
    }
    .desk-icons > .desk-trash.desk-shortcut-loose {
      position: absolute;
      z-index: 2;
      align-self: auto;
      margin: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      width: 70px;
      padding: 0;
      user-select: none;
      pointer-events: auto;
      border: none;
      background: transparent;
      box-shadow: none;
      cursor: grab;
    }
    .desk-icons > .desk-trash.desk-shortcut-loose:active { cursor: grabbing; }
    /* Islands: 2-col grid on desktop (e.g. 3 icons → 2 + 1); mobile overrides to flex row wrap */
    .desk-island {
      position: absolute;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(2, max-content);
      justify-content: center;
      align-content: start;
      gap: 10px 14px;
      background: rgba(0, 45, 22, .38);
      border: 1px dashed rgba(200, 255, 210, .35);
      padding: 10px 12px 12px;
      box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22);
    }
    /* Shops: SNS + shop placeholders in one row */
    .desk-island[data-desk-island="shops"] {
      grid-template-columns: repeat(5, max-content);
    }
    /* System: stable 2×2 grid (terminal | settings / bug | trash) */
    .desk-island[data-desk-island="system"] {
      grid-template-columns: repeat(2, 82px);
      justify-content: center;
      justify-items: center;
      column-gap: 12px;
      row-gap: 10px;
    }
    .desk-island[data-desk-island="system"] .desk-icon.desk-icon-wide {
      width: 82px;
      min-width: 82px;
      max-width: 82px;
    }
    .desk-island[data-desk-island="system"] .desk-trash {
      grid-column: auto;
      justify-self: center;
      margin-top: 0;
      width: 82px;
      max-width: 82px;
    }
    .island-label {
      grid-column: 1 / -1;
      justify-self: stretch;
      font-size: 9px;
      color: rgba(255, 255, 255, .9);
      text-transform: uppercase;
      letter-spacing: .14em;
      text-shadow: 1px 1px 2px #000;
      text-align: center;
      border-bottom: 1px solid rgba(255, 255, 255, .18);
      padding-bottom: 6px;
      margin-bottom: 2px;
      font-family: Tahoma, Arial, sans-serif;
      cursor: grab;
      user-select: none;
    }
    .island-label:active { cursor: grabbing; }
    .island-label.is-editing { cursor: text; user-select: text; }
    .island-label .island-label-edit{
      width: 100%;
      box-sizing: border-box;
      font-size: 9px;
      letter-spacing: .14em;
      text-transform: uppercase;
      text-align: center;
      font-family: Tahoma, Arial, sans-serif;
      padding: 2px 4px;
      margin: -2px 0 0;
      color: rgba(255, 255, 255, .95);
      background: rgba(0,0,0,.25);
      border: 1px dotted rgba(255,255,255,.65);
      outline: none;
      box-shadow: 1px 1px 0 rgba(0,0,0,.55);
    }
    .desk-icon.is-shortcut-trashed { display: none !important; }
    .desk-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; width: 70px; user-select: none; }
    .desk-icon-wip,
    .desk-icon-wip:hover {
      cursor: not-allowed;
      filter: grayscale(0.92) brightness(0.88);
      opacity: 0.78;
    }
    .desk-icon-wip .di-img,
    .desk-icon-wip:hover .di-img {
      outline: none !important;
      background: transparent !important;
    }
    .desk-icon-wip .di-label,
    .desk-icon-wip:hover .di-label {
      background: transparent !important;
      color: rgba(255, 255, 255, 0.58);
      text-shadow: 1px 1px 2px #000;
    }
    .desk-icon:hover .di-img { outline: 1px dotted rgba(255,255,255,.8); background: rgba(0,0,128,.3); }
    .desk-icon:hover .di-label { background: #000080; }
    .di-img { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 32px; }
    .di-img img { width: 48px; height: 48px; object-fit: cover; display: block; image-rendering: auto; }
    .di-img svg { width: 48px; height: 48px; display: block; }

    /* ── easter.egg icon (hidden behind Paint by default) ── */
    .desk-icon-easter-egg {
      filter: drop-shadow(1px 2px 3px rgba(0, 0, 0, .28));
    }
    .desk-icon-easter-egg .di-img { width: 48px; height: 56px; }
    .desk-icon-easter-egg .di-img svg { width: 48px; height: 56px; }
    /* Show the classic desktop label under the icon. */
    .desk-icon-easter-egg .di-label {
      font-size: 11px;
      color: #fff;
      text-align: center;
      padding: 1px 4px;
      line-height: 1.25;
      text-shadow: 1px 1px 2px #000;
      font-family: Tahoma, Arial, sans-serif;
    }
    .desk-icon-easter-egg.ee-egg-burst { pointer-events: none; }
    .desk-icon-easter-egg.ee-egg-burst .di-img { animation: eeEggBurst 520ms ease forwards; }
    .desk-icon-easter-egg.ee-egg-burst .di-label { animation: eeEggFade 520ms ease forwards; }
    @keyframes eeEggBurst {
      0% { transform: translateY(0) scale(1); filter: none; opacity: 1; }
      55% { transform: translateY(-10px) scale(1.06); opacity: 1; }
      100% { transform: translateY(-28px) scale(0.6); opacity: 0; filter: blur(1px); }
    }
    @keyframes eeEggFade {
      0% { opacity: 0.75; }
      100% { opacity: 0; }
    }
    .desk-icon-wide { width: auto; min-width: 72px; max-width: 100px; }
    .desk-icon-titandex { width: auto; min-width: 72px; max-width: 130px; }
    .desk-icon-titandex .di-label { max-width: 124px; white-space: normal; }
    .di-label {
      font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Arial, sans-serif;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.04em;
      color: #fff;
      text-align: center;
      padding: 2px 5px;
      line-height: 1.25;
      text-shadow: 1px 1px 2px #000;
    }
    .desk-island.is-trashed { display: none !important; }
    .desk-island .desk-trash {
      grid-column: 1 / -1;
      justify-self: center;
      position: relative;
      margin-top: 4px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      width: 70px;
      padding: 0;
      user-select: none;
      pointer-events: auto;
      border: none;
      background: transparent;
      box-shadow: none;
      cursor: grab;
    }
    .desk-island .desk-trash:active { cursor: grabbing; }
    .desk-trash:hover .desk-trash-icon {
      outline: 1px dotted rgba(255, 255, 255, .8);
      background: rgba(0, 0, 128, .3);
    }
    .desk-trash:hover .desk-trash-label { background: #000080; }
    .desk-trash.desk-trash-highlight {
      outline: 2px dashed #b8e986;
      outline-offset: 2px;
      background: rgba(184, 233, 134, .22);
      border-radius: 2px;
    }
    .desk-trash-icon {
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .desk-trash-icon svg { width: 48px; height: 48px; display: block; }
    .desk-trash-label {
      font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Arial, sans-serif;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.04em;
      color: #fff;
      text-align: center;
      padding: 2px 5px;
      line-height: 1.25;
      text-shadow: 1px 1px 2px #000;
    }

    /* ── DESKTOP WIDGETS ── */
    .desk-widgets {
      position: absolute;
      top: var(--desk-content-inset-top);
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 3;
      pointer-events: none;
    }
    .desk-easter-egg-layer {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
    }
    .desk-easter-egg-layer .desk-icon-easter-egg {
      position: absolute;
      pointer-events: auto;
    }
    .desk-widgets > .desk-widget { z-index: 2; }
    .desk-widget { pointer-events: auto; position: absolute; display: flex; flex-direction: column;
      background: #c0c0c0; border-top: 2px solid #fff; border-left: 2px solid #fff;
      border-right: 2px solid #404040; border-bottom: 2px solid #404040; box-shadow: 2px 2px 0 rgba(0,0,0,.45);
      font-family: Tahoma, Arial, sans-serif; }
    .desk-widget .win-titlebar { cursor: grab; }
    .desk-widget .win-titlebar:active { cursor: grabbing; }
    .desk-widget .win-icon { font-size: 11px; line-height: 1; overflow: hidden; }
    .desk-widget.is-closed { display: none !important; }
    .win-btns .wbtn,
    .desk-widget .win-btns button.wbtn {
      appearance: none;
      -webkit-appearance: none;
      margin: 0;
      padding: 0;
      font: inherit;
      box-sizing: border-box;
    }
    .widget-notepad { width: min(420px, calc(100vw - 32px)); max-height: 78vh; }
    .widget-notepad-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
    .widget-notepad textarea.widget-notepad-text {
      margin: 0; border: none; resize: vertical; min-height: 200px; max-height: 400px;
      background: #ffffc0; color: #000; font-family: 'VT323', 'Courier New', monospace; font-size: 18px; line-height: 1.35;
      padding: 12px; outline: none; flex: 1; border-top: 1px solid #808080; border-left: 1px solid #808080; }
    .widget-notepad.widget-notepad-ee-mode textarea.widget-notepad-text { display: none !important; }
    .widget-ee-checklist-wrap { flex: 1; min-height: 200px; max-height: 400px; overflow: auto; background: #ffffc0;
      border-top: 1px solid #808080; border-left: 1px solid #808080; padding: 8px 10px 12px; }
    .widget-ee-checklist-wrap.hidden { display: none !important; }
    .widget-ee-checklist-head { font: 12px Tahoma, Arial, sans-serif; color: #000080; margin-bottom: 6px; font-weight: bold; }
    .widget-ee-checklist-sub { font-weight: normal; color: #555; font-size: 10px; }
    .widget-ee-checklist {
      list-style: none;
      margin: 0;
      padding: 0;
      font: 17px 'VT323', monospace;
      line-height: 1.35;
      display: grid;
      grid-template-columns: 1fr;
      align-content: start;
      column-gap: 14px;
    }
    .widget-ee-checklist-item { padding: 3px 0; border-bottom: 1px dotted #b0b080; color: #666; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
    .widget-ee-checklist-item.is-found { color: #1a5c1a; }
    .widget-ee-cb { display: inline-block; width: 1.2em; flex-shrink: 0; }
    .widget-ee-stars { flex-shrink: 0; font-size: 11px; letter-spacing: 0.05em; color: #b8860b; user-select: none; }
    .widget-ee-desktop-only { flex-shrink: 0; font-size: 13px; line-height: 1; opacity: 0.92; cursor: help; }
    .widget-ee-label { flex: 1; min-width: 120px; }

    /* Reduce checklist height: 2 columns when there's room */
    @media (min-width: 520px) {
      .widget-ee-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    .widget-paint { width: min(392px, calc(100vw - 28px)); }
    .widget-paint-body { background: #808080; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
    .widget-paint-canvas { display: block; width: 100%; height: auto; background: #fff; cursor: crosshair;
      border: 1px solid #404040; image-rendering: pixelated; touch-action: none; }
    .widget-paint-hint { font-size: 12px; color: #fff; text-align: center; opacity: 0.9; }
    .widget-node { width: min(400px, calc(100vw - 28px)); }
    .widget-node-body { background: #0a1628; color: #7cfc00; font-family: 'VT323', monospace; font-size: 18px; padding: 14px 16px; line-height: 1.45;
      border-top: 2px solid #404040; border-left: 2px solid #404040; border-right: 1px solid #1e3a5f; border-bottom: 1px solid #1e3a5f; }
    .widget-node-body { position: relative; overflow: hidden; }
    .widget-node-body .wn-line { display: flex; justify-content: space-between; gap: 8px; }
    .widget-node-body .wn-k { color: #5a7a9a; }
    .widget-node-body .wn-blink { animation: wnBlink 1.1s step-end infinite; }
    @keyframes wnBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.35; } }

    .matrix-canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      opacity: 0;
      transition: opacity 180ms ease;
      mix-blend-mode: screen;
    }
    .matrix-canvas.is-on { opacity: 0.95; }

    .widget-wordsoffice { width: min(540px, calc(100vw - 28px)); max-height: 82vh; }
    .wo-menubar { flex-wrap: wrap; font-size: 10px; gap: 0 2px; }
    .wo-chrome { background: #f3f3f3; border-top: 1px solid #808080; border-left: 1px solid #808080; flex-shrink: 0; }
    .wo-tabs { display: flex; gap: 0; padding: 2px 4px 0; background: #e8e8e8; border-bottom: 1px solid #c6c6c6; }
    .wo-tab { padding: 4px 14px 5px; font-size: 11px; color: #444; border: 1px solid transparent; border-bottom: none; border-radius: 2px 2px 0 0; }
    .wo-tab-active { background: #fff; border-color: #c6c6c6; color: #2b579a; font-weight: bold; position: relative; bottom: -1px; }
    .wo-ribbon { display: flex; align-items: stretch; gap: 0; padding: 6px 8px 4px; background: #fff; border-bottom: 1px solid #d0d0d0; flex-wrap: wrap; }
    .wo-ribbon-group { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
    .wo-ribbon-cap { font-size: 9px; color: #555; text-align: center; line-height: 1; padding-top: 1px; }
    .wo-ribbon-btns { display: flex; gap: 4px; align-items: center; min-height: 28px; }
    .wo-mini { font-size: 14px; line-height: 1; opacity: 0.85; padding: 2px 4px; border: 1px solid transparent; border-radius: 2px; }
    .wo-ribbon-sep { width: 1px; background: #d4d4d4; margin: 2px 6px; align-self: stretch; min-height: 36px; }
    .wo-ribbon-font { align-items: stretch; }
    .wo-ribbon-row { display: flex; gap: 4px; margin-bottom: 2px; }
    .wo-font-name { font-size: 11px; padding: 2px 20px 2px 6px; background: #fff; border: 1px solid #c6c6c6; min-width: 72px; }
    .wo-font-size { font-size: 11px; padding: 2px 8px; background: #fff; border: 1px solid #c6c6c6; }
    .wo-format-btns { gap: 2px; min-height: 24px; }
    .wo-fmt { font-size: 11px; font-family: Tahoma, Arial, sans-serif; padding: 2px 7px; border: 1px solid #c6c6c6; background: #fafafa; border-radius: 2px; min-width: 22px; text-align: center; }
    .wo-fmt-wide { background: linear-gradient(180deg, #fffbcc 0%, #fff59d 100%); }
    .wo-ul { text-decoration: underline; }
    .wo-ruler { display: flex; height: 14px; background: linear-gradient(180deg, #fafafa, #ececec); border-bottom: 1px solid #c6c6c6; padding: 0 12px; align-items: flex-end; gap: 0; }
    .wo-ruler-tick { flex: 1; height: 6px; border-left: 1px solid #bbb; max-width: 48px; }
    .wo-page-wrap { background: #c6c6c6; padding: 10px 12px 8px; flex: 1; min-height: 0; overflow: auto; }
    .wo-page { background: #fff; min-height: 180px; padding: 18px 22px 28px; box-shadow: 0 1px 3px rgba(0,0,0,.2); border: 1px solid #b0b0b0; display: flex; flex-direction: column; min-height: 0; }
    .wo-draft { white-space: pre-wrap; word-break: break-word; font-family: 'Calibri', 'Candara', 'Segoe UI', Tahoma, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: #222; }
    textarea.wo-draft {
      flex: 1; min-height: 200px; width: 100%; margin: 0; padding: 0; resize: vertical; box-sizing: border-box;
      border: none; background: transparent; outline: none; font: inherit; line-height: inherit; color: inherit;
    }
    textarea.wo-draft:focus { box-shadow: inset 0 0 0 1px rgba(43, 87, 154, 0.35); border-radius: 1px; }
    .wo-statusbar { flex-shrink: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 3px 8px; font-size: 10px; color: #000; border-top: 1px solid #808080; background: #e8e8e8; font-family: Tahoma, Arial, sans-serif; }

    .widget-bug { width: min(384px, calc(100vw - 28px)); max-height: 72vh; }
    .widget-bug-body {
      background: #fff;
      padding: 10px 12px 8px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      border-top: 2px solid #404040;
      border-left: 2px solid #404040;
      flex: 1;
      min-height: 0;
      overflow: auto;
      font-family: Tahoma, Arial, sans-serif;
    }
    .widget-bug-body .wb-label { font-size: 11px; font-weight: bold; color: #000; display: block; margin-bottom: 2px; }
    .widget-bug-body input[type="text"],
    .widget-bug-body select,
    .widget-bug-body textarea {
      width: 100%;
      font-family: Tahoma, Arial, sans-serif;
      font-size: 12px;
      padding: 4px 6px;
      border-top: 2px solid #808080;
      border-left: 2px solid #808080;
      border-right: 2px solid #fff;
      border-bottom: 2px solid #fff;
      background: #fff;
      color: #000;
      box-sizing: border-box;
    }
    .widget-bug-body textarea { min-height: 70px; max-height: 120px; resize: vertical; }
    .widget-bug-row { display: flex; gap: 8px; }
    .widget-bug-row > div { flex: 1; min-width: 0; }
    .widget-bug-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
    .widget-bug-submit {
      padding: 4px 18px;
      font-size: 12px;
      font-family: Tahoma, Arial, sans-serif;
      background: #c0c0c0;
      color: #000;
      border-top: 2px solid #fff;
      border-left: 2px solid #fff;
      border-right: 2px solid #404040;
      border-bottom: 2px solid #404040;
      cursor: pointer;
    }
    .widget-bug-submit:active {
      border-top: 2px solid #404040;
      border-left: 2px solid #404040;
      border-right: 2px solid #fff;
      border-bottom: 2px solid #fff;
    }
    .widget-bug-disclaimer { font-size: 10px; color: #666; margin: 0; line-height: 1.35; }
    .widget-bug-result {
      display: none;
      margin-top: 4px;
      padding: 8px 10px;
      background: #ffffcc;
      border: 1px solid #808080;
      font-size: 12px;
      line-height: 1.45;
      color: #000;
    }
    .widget-bug-result.visible { display: block; }
    .widget-bug-foot {
      flex-shrink: 0;
      background: #c0c0c0;
      border-top: 1px solid #808080;
      padding: 4px 10px;
      font-size: 11px;
      color: #000;
    }

    /* ── WINDOWS ── */
    .win {
      position: absolute; background: #c0c0c0;
      border-top: 3px solid #fff; border-left: 3px solid #fff;
      border-right: 3px solid #808080; border-bottom: 3px solid #808080;
      box-shadow: 3px 3px 0 #000;
      display: none; flex-direction: column; overflow: hidden;
      min-width: 280px; min-height: 180px;
    }
    .win.visible { display: flex; }
    .win.maximized {
      top: var(--desk-content-inset-top) !important;
      left: 0 !important;
      width: 100% !important;
      height: calc(100% - var(--desk-content-inset-top)) !important;
    }
    .win.minimized { display: none !important; }

    .win-titlebar { background: linear-gradient(to right, #000080, #1084d0); padding: 4px 6px; display: flex; align-items: center; justify-content: space-between; cursor: move; user-select: none; flex-shrink: 0; }
    .win-titlebar.inactive { background: linear-gradient(to right, #808080, #aaa); }
    .win-titlebar-left { display: flex; align-items: center; gap: 6px; }
    .win-icon { width: 16px; height: 16px; background: #c0c0c0; border: 1px solid #808080; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
    .win-title { color: #fff; font-size: 12px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .win-btns { display: flex; gap: 2px; flex-shrink: 0; }
    .wbtn { width: 18px; height: 16px; background: #c0c0c0; border-top: 1px solid #fff; border-left: 1px solid #fff; border-right: 1px solid #404040; border-bottom: 1px solid #404040; font-size: 10px; font-weight: bold; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #000; flex-shrink: 0; }
    .wbtn:active { border-top: 1px solid #404040; border-left: 1px solid #404040; border-right: 1px solid #fff; border-bottom: 1px solid #fff; }
    .wbtn:focus-visible,
    .nav-btn:focus-visible,
    .diff-btn:focus-visible,
    .tb-win:focus-visible,
    .start-btn:focus-visible,
    .sm-item:focus-visible,
    .desk-icon:focus-visible,
    .win-menu-item:focus-visible {
      outline: 2px dotted #000080;
      outline-offset: 2px;
    }
    /* Make non-button click targets keyboard-focusable when tabindex is present */
    .sm-item[tabindex],
    .desk-icon[tabindex],
    [data-desk-shortcut][tabindex] { -webkit-tap-highlight-color: transparent; }

    .win-menubar { background: #c0c0c0; padding: 2px 6px; border-bottom: 1px solid #808080; display: flex; flex-shrink: 0; }
    .win-menu-item { font-size: 12px; padding: 2px 10px; cursor: inherit; color: #000; }
    .win-menu-item:hover { background: #000080; color: #fff; }
    .win-body { flex: 1; overflow: auto; display: flex; flex-direction: column; background: #fff; }

    /* ── WINDOW CONTEXT MENU (right-click titlebar) ── */
    .win-ctx{
      position: fixed;
      z-index: 10012;
      min-width: 162px;
      background: #c0c0c0;
      border-top: 2px solid #fff;
      border-left: 2px solid #fff;
      border-right: 2px solid #404040;
      border-bottom: 2px solid #404040;
      box-shadow: 3px 3px 0 rgba(0,0,0,.55);
      padding: 2px;
      display: flex;
      flex-direction: column;
      gap: 0;
      user-select: none;
    }
    .win-ctx.hidden{ display: none !important; }
    .win-ctx-item{
      appearance: none;
      -webkit-appearance: none;
      border: none;
      background: transparent;
      text-align: left;
      padding: 5px 10px;
      font: 12px Tahoma, Arial, sans-serif;
      color: #000;
      cursor: pointer;
      width: 100%;
    }
    .win-ctx-item:hover{ background: #000080; color: #fff; }
    .win-ctx-item[disabled]{ opacity: 0.55; cursor: not-allowed; }
    .win-ctx-item[disabled]:hover{ background: transparent; color: #000; }
    .win-ctx-sep{
      height: 1px;
      margin: 3px 4px;
      background: #808080;
      box-shadow: 0 1px 0 #fff;
    }

    /* ── FAKE EXPLORER (Images folder) ── */
    .fx-toolbar{
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
      background: #c0c0c0;
      padding: 6px 8px 8px;
      border-top: 2px solid #fff;
      border-left: 2px solid #fff;
      border-right: 2px solid #808080;
      border-bottom: 2px solid #808080;
    }
    .fx-path-wrap{
      flex: 1;
      min-width: 220px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .fx-path-label{
      font-size: 12px;
      font-weight: bold;
      color: #000;
      white-space: nowrap;
    }
    input.fx-path{
      flex: 1;
      min-width: 0;
      height: 26px;
      padding: 4px 8px;
      font: 12px Tahoma, Arial, sans-serif;
      color: #000080;
      background: #fff;
      border-top: 2px solid #808080;
      border-left: 2px solid #808080;
      border-right: 2px solid #fff;
      border-bottom: 2px solid #fff;
    }
    .fx-main{
      flex: 1;
      min-height: 0;
      display: grid;
      grid-template-columns: 160px 1fr 240px;
      gap: 8px;
    }
    .fx-pane{
      background: #fff;
      border-top: 2px solid #808080;
      border-left: 2px solid #808080;
      border-right: 2px solid #fff;
      border-bottom: 2px solid #fff;
      display: flex;
      flex-direction: column;
      min-height: 0;
      overflow: hidden;
    }
    .fx-pane-head{
      background: #e8e8e8;
      border-bottom: 1px solid #b0b0b0;
      padding: 5px 8px;
      font: 11px Tahoma, Arial, sans-serif;
      font-weight: bold;
      color: #000;
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
    }
    .fx-pane-sub{
      font-weight: normal;
      color: #606060;
      font-size: 10px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 60%;
    }
    .fx-tree{
      padding: 6px 6px 8px;
      overflow: auto;
      font: 12px Tahoma, Arial, sans-serif;
      min-height: 0;
    }
    .fx-tree-item{
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 4px 6px;
      border: 1px solid transparent;
      user-select: none;
      cursor: pointer;
    }
    .fx-tree-item:hover{ background: rgba(0,0,128,.08); border-color: rgba(0,0,0,.12); }
    .fx-tree-item.active{ background: rgba(0,0,128,.16); border-color: rgba(0,0,128,.55); }
    .fx-tree-ico{ width: 16px; text-align: center; }

    .fx-list{
      flex: 1;
      min-height: 0;
      overflow: auto;
      font: 12px Tahoma, Arial, sans-serif;
      padding: 2px;
      background: #fff;
    }
    .fx-row{
      display: grid;
      grid-template-columns: 22px 1fr 80px 70px;
      gap: 8px;
      align-items: center;
      padding: 5px 8px;
      border: 1px solid transparent;
      user-select: none;
      cursor: pointer;
    }
    .fx-row:hover{ background: rgba(0,0,128,.08); border-color: rgba(0,0,0,.12); }
    .fx-row.active{ background: rgba(0,0,128,.16); border-color: rgba(0,0,128,.55); }
    .fx-ico{ font-size: 14px; text-align: center; }
    .fx-name{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .fx-type{ color: #606060; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
    .fx-size{ color: #606060; font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }

    .fx-preview{
      flex: 1;
      min-height: 0;
      overflow: auto;
      background: #fff;
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .fx-preview-empty{
      color: #808080;
      font: 12px Tahoma, Arial, sans-serif;
    }
    .fx-preview-img{
      width: 100%;
      height: auto;
      max-height: 220px;
      object-fit: contain;
      border: 2px inset #c0c0c0;
      background: #f8f8f8;
    }
    .fx-preview-title{
      font: 12px Tahoma, Arial, sans-serif;
      font-weight: bold;
      color: #000080;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .fx-preview-meta{
      font: 11px Tahoma, Arial, sans-serif;
      color: #606060;
    }
    .fx-preview-pre{
      white-space: pre-wrap;
      word-break: break-word;
      font: 16px 'VT323', monospace;
      line-height: 1.35;
      background: #ffffc0;
      border: 2px inset #c0c0c0;
      padding: 10px 10px 12px;
      color: #1a1a1a;
      min-height: 120px;
    }

    @media (max-width: 768px) {
      .fx-main{ grid-template-columns: 1fr; }
      .fx-pane.fx-left{ display: none; }
      .fx-pane.fx-right{ min-height: 160px; }
    }

    /* ── TICKER ── */
    .ticker-win { background: #000; border-top: 2px solid #404040; border-left: 2px solid #404040; border-right: 2px solid #ccc; border-bottom: 2px solid #ccc; padding: 4px 8px; margin: 8px 8px 0; overflow: hidden; white-space: nowrap; flex-shrink: 0; }
    .ticker-scroll { display: inline-block; animation: scrollticker var(--market-ticker-speed) linear infinite; will-change: transform; font-family: 'VT323', monospace; font-size: 18px; letter-spacing: .06em; color: #bbb; }
    .t-up { color: #00ff00; } .t-dn { color: #ff5555; } .t-sep { color: #666; margin: 0 10px; }
    @keyframes scrollticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
    @keyframes scrolltickerReverse { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

    /* ── DESKTOP SHORTCUT BADGES (Flappy lock / NEW) ── */
    .desk-icon .di-img { position: relative; }
    .desk-icon .di-badge{
      position: absolute;
      top: -6px;
      right: -8px;
      min-width: 22px;
      height: 16px;
      padding: 0 5px;
      display: none;
      align-items: center;
      justify-content: center;
      font: 700 10px/1 Tahoma, Arial, sans-serif;
      letter-spacing: 0.02em;
      color: #fff;
      background: #c1121f;
      border-top: 1px solid #fff;
      border-left: 1px solid #fff;
      border-right: 1px solid #404040;
      border-bottom: 1px solid #404040;
      box-shadow: 0 1px 0 rgba(0,0,0,0.25);
      pointer-events: none;
      user-select: none;
    }
    .desk-icon.is-badged .di-badge{ display: inline-flex; }
    .desk-icon.is-locked{ opacity: 0.62; filter: grayscale(0.1); }
    .desk-icon.is-locked .di-badge{
      background: #404040;
      min-width: 18px;
      padding: 0 4px;
      font-size: 11px;
    }
    /* Keep hover events so `title` tooltips work; JS gates opening. */
    .desk-icon.is-locked{ cursor: not-allowed; }

    /* ── LINK HUB CHROME (nav + address outside scroll area) ── */
    .hub-chrome { flex-shrink: 0; background: #c0c0c0; padding: 6px 8px 8px; border-bottom: 1px solid #808080; display: flex; flex-direction: column; gap: 6px; }
    .nav-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
    .nav-btn {
      min-width: 28px; height: 24px; padding: 0 6px; font-size: 11px; font-family: Tahoma, Arial, sans-serif;
      background: #c0c0c0; color: #000; border-top: 2px solid #fff; border-left: 2px solid #fff;
      border-right: 2px solid #404040; border-bottom: 2px solid #404040; cursor: pointer;
    }
    .nav-btn:active { border-top: 2px solid #404040; border-left: 2px solid #404040; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
    .nav-sep { width: 1px; height: 20px; background: #808080; margin: 0 2px; flex-shrink: 0; }
    .addressbar { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
    .addr-label { font-size: 13px; color: #000; white-space: nowrap; font-weight: bold; }
    .addr-input { flex: 1; background: #fff; border-top: 2px solid #808080; border-left: 2px solid #808080; border-right: 2px solid #fff; border-bottom: 2px solid #fff; padding: 4px 8px; font-size: 13px; color: #000080; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 26px; display: flex; align-items: center; }
    input.addr-input { display: block; width: 100%; box-sizing: border-box; font-family: Tahoma, Arial, sans-serif; flex: 1; min-width: 0; }

    /* ── LINK CONTENT ── */
    .link-content { padding: 10px 8px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
    .icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); grid-auto-rows: min-content; gap: 4px; background: #fff; border-top: 2px solid #808080; border-left: 2px solid #808080; border-right: 2px solid #e0e0e0; border-bottom: 2px solid #e0e0e0; padding: 12px 8px; flex: 1; align-content: start; }
    .icon-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; cursor: pointer; text-decoration: none; color: #000; }
    .icon-item:hover .icon-img { outline: 1px dotted #000; background: rgba(0,0,128,.12); }
    .icon-item:hover .icon-label { background: #000080; color: #fff; }
    .icon-img { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; }
    .icon-img svg { width: 44px; height: 44px; }
    .icon-img-with-sns-badge { position: relative; overflow: visible; }
    .icon-img-with-sns-badge .icon-sns-badge {
      position: absolute;
      top: -1px;
      right: -1px;
      width: 20px;
      height: 20px;
      object-fit: contain;
      image-rendering: pixelated;
      filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
      pointer-events: none;
    }
    .icon-label {
      font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Arial, sans-serif;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.03em;
      text-align: center;
      color: #000;
      line-height: 1.25;
      padding: 3px 5px;
      max-width: 108px;
    }
    .win-statusbar { background: #c0c0c0; border-top: 1px solid #808080; padding: 3px 8px; display: flex; gap: 4px; flex-shrink: 0; }
    .status-panel { flex: 1; border-top: 1px solid #808080; border-left: 1px solid #808080; border-right: 1px solid #fff; border-bottom: 1px solid #fff; padding: 2px 8px; font-size: 11px; color: #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* ── MINESWEEPER ── */
    .mine-body { padding: 8px; }
    .mine-difficulty { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
    .diff-btn { font-size: 11px; padding: 3px 10px; background: #c0c0c0; border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #808080; border-bottom: 2px solid #808080; cursor: pointer; font-family: 'Tahoma', Arial, sans-serif; }
    .diff-btn.active { border-top: 2px solid #808080; border-left: 2px solid #808080; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
    .mine-header { background: #c0c0c0; border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #808080; border-bottom: 2px solid #808080; padding: 6px 12px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
    .mine-counter { background: #000; color: #f00; font-family: 'VT323', monospace; font-size: 32px; line-height: 1; padding: 2px 8px; letter-spacing: .05em; border-top: 2px solid #808080; border-left: 2px solid #808080; border-right: 2px solid #fff; border-bottom: 2px solid #fff; min-width: 60px; text-align: center; }
    .mine-face-btn { width: 36px; height: 36px; background: #c0c0c0; border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #808080; border-bottom: 2px solid #808080; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; flex-shrink: 0; }
    .mine-face-btn:active { border-top: 2px solid #808080; border-left: 2px solid #808080; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
    .mine-grid-wrap { border-top: 3px solid #808080; border-left: 3px solid #808080; border-right: 3px solid #fff; border-bottom: 3px solid #fff; line-height: 0; overflow: auto; }
    .mine-grid { display: grid; }
    .cell { background: #c0c0c0; border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #808080; border-bottom: 2px solid #808080; display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; font-family: 'VT323', monospace; font-weight: bold; line-height: 1; flex-shrink: 0; }
    .cell.revealed { border: 1px solid #808080; cursor: default; }
    .cell.mine-hit { background: #f00; }
    .cell[data-n="1"] { color: #0000f0; } .cell[data-n="2"] { color: #007b00; } .cell[data-n="3"] { color: #f00; }
    .cell[data-n="4"] { color: #00007b; } .cell[data-n="5"] { color: #7b0000; } .cell[data-n="6"] { color: #007b7b; }
    .cell[data-n="7"] { color: #000; } .cell[data-n="8"] { color: #808080; }

    /* ── SNAKE (Nokia-style LCD) ── */
    .snake-body { padding: 8px; background: #c0c0c0; }
    .snake-toolbar {
      background: #c0c0c0; border-top: 2px solid #fff; border-left: 2px solid #fff;
      border-right: 2px solid #808080; border-bottom: 2px solid #808080;
      padding: 6px 10px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
    }
    .snake-score-lbl { font-size: 10px; font-weight: bold; color: #000; letter-spacing: .06em; }
    .snake-counter {
      background: #000; color: #6ecf6e; font-family: 'VT323', monospace; font-size: 28px; line-height: 1;
      padding: 2px 8px; letter-spacing: .08em; border-top: 2px solid #808080; border-left: 2px solid #808080;
      border-right: 2px solid #fff; border-bottom: 2px solid #fff; min-width: 52px; text-align: center;
    }
    .snake-face-btn {
      width: 36px; height: 36px; background: #c0c0c0; border-top: 2px solid #fff; border-left: 2px solid #fff;
      border-right: 2px solid #808080; border-bottom: 2px solid #808080; font-size: 16px; display: flex;
      align-items: center; justify-content: center; cursor: pointer; user-select: none; flex-shrink: 0; color: #000;
    }
    .snake-face-btn:active { border-top: 2px solid #808080; border-left: 2px solid #808080; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
    .snake-lcd-outer {
      border-top: 3px solid #808080; border-left: 3px solid #808080; border-right: 3px solid #fff; border-bottom: 3px solid #fff;
      background: #1a1a1a; padding: 8px; display: flex; justify-content: center; line-height: 0;
    }
    #snakeCanvas {
      display: block; max-width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges;
      box-shadow: inset 0 0 24px rgba(0,40,0,.35);
    }
    .snake-hint { font-size: 11px; color: #404040; text-align: center; margin: 8px 4px 6px; font-family: Tahoma, Arial, sans-serif; }
    .snake-pad { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 4px; user-select: none; }
    .snake-pad-mid { display: flex; gap: 36px; align-items: center; }
    .snake-dpad {
      min-width: 44px; min-height: 40px; padding: 6px 14px; font-size: 16px; font-family: Tahoma, Arial, sans-serif;
      background: #c0c0c0; color: #000; border-top: 2px solid #fff; border-left: 2px solid #fff;
      border-right: 2px solid #404040; border-bottom: 2px solid #404040;
    }
    .snake-dpad:active { border-top: 2px solid #404040; border-left: 2px solid #404040; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }

    /* ── FLAPPY (canvas) ── */
    .flappy-body { padding: 8px; background: #c0c0c0; }
    #flappyCanvas {
      display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto;
      background: #6ecff6; border: 2px inset #808080; touch-action: manipulation;
    }
    .flappy-hint { font-size: 11px; color: #404040; text-align: center; margin: 8px 4px 4px; font-family: Tahoma, Arial, sans-serif; }

    /* ── TETRIS ── */
    .tetris-body{ padding:0; background:#c0c0c0; }
    .tetris-stage{
      display:flex;
      gap:10px;
      padding:10px 12px 12px;
      align-items:flex-start;
      flex-wrap:wrap;
    }
    .tetris-play-outer{
      border-top: 3px solid #808080; border-left: 3px solid #808080; border-right: 3px solid #fff; border-bottom: 3px solid #fff;
      background:#1a1a1a;
      padding:8px;
      line-height:0;
    }
    #tetrisCanvas{
      display:block;
      width:240px;
      height:480px;
      background:#0a0a0a;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
    }
    .tetris-side{
      display:flex;
      flex-direction:column;
      gap:10px;
      min-width:140px;
      max-width:220px;
    }
    .tetris-panel{
      border: 2px inset #808080;
      background:#fff;
      padding:8px;
      font:11px/1.35 Tahoma,Arial,sans-serif;
      color:#1a1a1a;
    }
    .tetris-panel-title{
      font-weight:700;
      color:#000080;
      margin-bottom:6px;
      letter-spacing:.06em;
    }
    #tetrisNext{
      display:block;
      width:120px;
      height:120px;
      background:#101010;
      border:2px inset #808080;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
    }
    .tetris-level{
      font-family:'VT323',monospace;
      font-size:22px;
      color:#000080;
    }
    .tetris-keys{ color:#404040; }
    .tetris-hint{ font-size: 11px; color: #404040; text-align: center; margin: 0; padding: 0 12px 12px; font-family: Tahoma, Arial, sans-serif; }

    /* ── BATTLESHIP ── */
    .bship-body{ background:#c0c0c0; padding: 8px; display:flex; flex-direction:column; gap: 8px; min-height: 0; }
    .bship-toolbar{
      display:flex; align-items:center; flex-wrap:wrap; gap:6px;
      background:#c0c0c0; padding: 6px 8px 8px;
      border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #808080; border-bottom: 2px solid #808080;
    }
    .bship-status{
      margin-left: auto;
      font: 12px Tahoma, Arial, sans-serif;
      color:#000;
      padding: 2px 6px;
      border: 2px inset #808080;
      background:#fff;
      min-height: 22px;
      display:flex;
      align-items:center;
      max-width: min(520px, 100%);
      overflow:hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .bship-main{
      flex:1; min-height:0;
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      align-items: start;
    }
    .bship-panel{
      min-height:0;
      display:flex; flex-direction:column; gap: 8px;
      background:#fff;
      border-top: 2px solid #808080; border-left: 2px solid #808080; border-right: 2px solid #fff; border-bottom: 2px solid #fff;
      padding: 8px;
    }
    .bship-head{
      display:flex; align-items: baseline; justify-content: space-between; gap: 10px;
      font: 11px Tahoma, Arial, sans-serif;
      font-weight: 700;
      color:#000080;
      letter-spacing: .08em;
    }
    .bship-sub{
      font-weight: normal;
      color:#606060;
      font-size: 10px;
      letter-spacing: 0;
      white-space: nowrap;
      overflow:hidden;
      text-overflow: ellipsis;
      max-width: 58%;
    }
    .bship-grid-wrap{ display:flex; justify-content:center; }
    .bship-grid{
      --cell: 24px;
      display:grid;
      grid-template-columns: repeat(10, var(--cell));
      grid-auto-rows: var(--cell);
      gap: 2px;
      background:#1a1a1a;
      padding: 6px;
      border: 2px inset #808080;
      user-select: none;
      touch-action: manipulation;
    }
    .bship-cell{
      width: var(--cell); height: var(--cell);
      display:flex; align-items:center; justify-content:center;
      background:#e8f2ff;
      border-top: 1px solid #fff; border-left: 1px solid #fff; border-right: 1px solid #808080; border-bottom: 1px solid #808080;
      font: 12px/1 Tahoma, Arial, sans-serif;
      color:#1a1a1a;
      cursor: pointer;
      padding:0;
    }
    .bship-cell:active{ border-top: 1px solid #808080; border-left: 1px solid #808080; border-right: 1px solid #fff; border-bottom: 1px solid #fff; }
    .bship-cell[disabled]{ opacity: 0.8; cursor: not-allowed; }
    .bship-cell.ship{ background:#bcd3ea; }
    .bship-cell.hit{ background:#ffccd5; }
    .bship-cell.miss{ background:#d8e6f5; color:#000080; }
    .bship-cell.sunk{ background:#ff9aa8; }
    .bship-legend{
      display:flex; align-items:center; justify-content:center; gap: 10px;
      font: 11px Tahoma, Arial, sans-serif; color:#404040;
    }
    .bship-chip{ width: 12px; height: 12px; display:inline-block; border:1px solid #404040; vertical-align: middle; margin: 0 4px 0 0; }
    .bship-chip-ship{ background:#bcd3ea; }
    .bship-chip-hit{ background:#ffccd5; }
    .bship-chip-miss{ background:#d8e6f5; }
    .bship-hint{ text-align:center; font: 11px Tahoma, Arial, sans-serif; color:#404040; margin-top: -2px; }

    @media (max-width: 760px){
      .bship-main{ grid-template-columns: 1fr; }
      .bship-grid{ --cell: 26px; }
    }

    /* ── MASTERMIND ── */
    .mm-wrap { padding: 8px; background: #c0c0c0; }
    .mm-board-outer {
      border-top: 3px solid #808080; border-left: 3px solid #808080; border-right: 3px solid #fff; border-bottom: 3px solid #fff;
      background: #b8b8b8; padding: 8px; margin: 0 8px;
    }
    .mm-board { display: flex; flex-direction: column; gap: 6px; }
    .mm-row {
      display: flex; align-items: center; justify-content: space-between; gap: 10px;
      padding: 6px 8px; background: #c0c0c0; border: 2px inset #808080;
    }
    .mm-slots { display: flex; gap: 8px; }
    .mm-slot {
      width: 22px; height: 22px; border-radius: 50%;
      border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #404040; border-bottom: 2px solid #404040;
      background: #e8e8e8;
    }
    .mm-slot.active { outline: 2px dotted #000080; outline-offset: 1px; }
    .mm-feedback { display: grid; grid-template-columns: repeat(2, 10px); gap: 4px 6px; min-width: 34px; justify-content: end; }
    .mm-fb { width: 10px; height: 10px; border-radius: 50%; background: #d0d0d0; border: 1px solid #808080; }
    .mm-fb.black { background: #000; border-color: #000; }
    .mm-fb.white { background: #fff; border-color: #404040; }
    .mm-palette { display: flex; justify-content: center; gap: 8px; padding: 10px 8px 6px; flex-wrap: wrap; }
    .mm-color {
      width: 22px; height: 22px; border-radius: 50%;
      border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #404040; border-bottom: 2px solid #404040;
      cursor: pointer;
    }
    .mm-color:active { border-top: 2px solid #404040; border-left: 2px solid #404040; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
    .mm-actions { display: flex; gap: 8px; justify-content: center; padding: 2px 8px 0; }
    .mm-hint { font-size: 11px; color: #404040; text-align: center; margin: 8px 8px 4px; font-family: Tahoma, Arial, sans-serif; }

    /* ── RESIZE HANDLE ── */
    .win-resize { position: absolute; bottom: 0; right: 0; width: 14px; height: 14px; cursor: se-resize; background: linear-gradient(135deg, transparent 40%, #808080 40%, #808080 60%, #fff 60%); }

    /* ── START MENU ── */
    .start-menu { position: absolute; bottom: 36px; left: 0; width: 220px; background: #c0c0c0; border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #808080; border-bottom: 2px solid #808080; box-shadow: 2px 2px 0 #000; display: none; z-index: 400; }
    .start-menu.open { display: flex; }
    .start-menu-side { background: linear-gradient(to top, #000080, #1084d0); width: 26px; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; color: #fff; letter-spacing: .15em; padding: 8px 0; flex-shrink: 0; font-family: 'Tahoma', Arial, sans-serif; }
    .start-menu-items { flex: 1; display: flex; flex-direction: column; }
    .sm-separator { height: 1px; background: #808080; margin: 2px 4px; }
    .sm-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; cursor: pointer; font-size: 12px; color: #000; }
    .sm-item:hover { background: #000080; color: #fff; }
    .sm-item .sm-ico,
    .sm-desk-bg-head .sm-ico {
      font-size: 20px; width: 28px; min-width: 28px; height: 28px;
      text-align: center; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
    }
    .sm-item .sm-ico img,
    .sm-item .sm-ico svg,
    .sm-desk-bg-head .sm-ico svg {
      width: 24px; height: 24px; display: block; flex-shrink: 0;
    }
    .sm-item .sm-ico img {
      object-fit: cover; image-rendering: auto;
    }
    .sm-item-text { display: flex; flex-direction: column; }
    .sm-item-title { font-weight: bold; font-size: 12px; }
    .sm-item-sub { font-size: 10px; color: #555; }
    .sm-item:hover .sm-item-sub { color: #bbb; }
    .sm-desk-bg-panel {
      padding: 8px 10px 8px;
      border-top: 1px solid #fff;
      border-bottom: 1px solid #808080;
      user-select: none;
    }
    .sm-desk-bg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
    .sm-desk-bg-head .sm-desk-bg-label { margin-bottom: 0; }
    .sm-desk-bg-label { font-size: 10px; font-weight: bold; color: #000; margin-bottom: 6px; letter-spacing: 0.04em; }
    .sm-desk-bg-swatches { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
    .sm-desk-bg-swatch {
      width: 22px; height: 22px; padding: 0; margin: 0; flex-shrink: 0; box-sizing: border-box;
      border-top: 2px solid #fff; border-left: 2px solid #fff;
      border-right: 2px solid #404040; border-bottom: 2px solid #404040;
      cursor: pointer;
    }
    .sm-desk-bg-swatch:active {
      border-top: 2px solid #404040; border-left: 2px solid #404040;
      border-right: 2px solid #fff; border-bottom: 2px solid #fff;
    }
    .sm-desk-bg-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .sm-desk-bg-color-wrap { display: flex; align-items: center; gap: 6px; }
    .sm-desk-bg-color-wrap label { font-size: 11px; color: #000; cursor: pointer; }
    input[type="color"].sm-desk-bg-input {
      width: 34px; height: 24px; padding: 0; border: none; cursor: pointer;
      background: #c0c0c0;
      border-top: 2px solid #808080; border-left: 2px solid #808080;
      border-right: 2px solid #fff; border-bottom: 2px solid #fff;
    }
    .sm-desk-bg-reset {
      font-size: 11px; font-family: Tahoma, Arial, sans-serif; padding: 3px 10px;
      background: #c0c0c0; color: #000;
      border-top: 2px solid #fff; border-left: 2px solid #fff;
      border-right: 2px solid #404040; border-bottom: 2px solid #404040;
      cursor: pointer;
    }
    .sm-desk-bg-reset:active {
      border-top: 2px solid #404040; border-left: 2px solid #404040;
      border-right: 2px solid #fff; border-bottom: 2px solid #fff;
    }

    .settings-desk-bg-panel {
      border-top: 1px solid #fff;
      border-left: 1px solid #fff;
      border-right: 1px solid #808080;
      border-bottom: 1px solid #808080;
      margin-bottom: 10px;
      background: #c0c0c0;
    }
    .settings-factory-section {
      border-top: 1px solid #808080;
      border-bottom: 1px solid #fff;
      padding-top: 10px;
      margin-top: 2px;
    }
    .settings-factory-hint {
      font-size: 10px;
      color: #404040;
      font-family: Tahoma, Arial, sans-serif;
      margin: 0 0 8px;
      line-height: 1.35;
    }
    .settings-factory-btn {
      font-size: 11px;
      font-family: Tahoma, Arial, sans-serif;
      font-weight: bold;
      padding: 4px 12px;
      background: #c0c0c0;
      color: #000;
      border-top: 2px solid #fff;
      border-left: 2px solid #fff;
      border-right: 2px solid #404040;
      border-bottom: 2px solid #404040;
    }
    .settings-factory-btn:active {
      border-top: 2px solid #404040;
      border-left: 2px solid #404040;
      border-right: 2px solid #fff;
      border-bottom: 2px solid #fff;
    }

    /* ── FACTORY RESET CONFIRM (replaces native confirm) ── */
    .desk-factory-reset-layer {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 10005;
      background: rgba(0, 0, 0, 0.52);
      align-items: center;
      justify-content: center;
      padding: 16px;
      box-sizing: border-box;
    }
    .desk-factory-reset-layer.is-open {
      display: flex;
    }
    .desk-factory-reset-box {
      width: min(440px, calc(100vw - 28px));
      max-height: min(90vh, 520px);
      overflow: auto;
      background: #c0c0c0;
      border-top: 2px solid #fff;
      border-left: 2px solid #fff;
      border-right: 2px solid #404040;
      border-bottom: 2px solid #404040;
      box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
      font-family: Tahoma, Arial, sans-serif;
    }
    .desk-factory-reset-titlebar {
      background: linear-gradient(to right, #000080, #1084d0);
      padding: 4px 6px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
    }
    .desk-factory-reset-titlebar-left {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }
    .desk-factory-reset-ico {
      width: 16px;
      height: 16px;
      background: #c0c0c0;
      border: 1px solid #808080;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 9px;
      line-height: 1;
      flex-shrink: 0;
    }
    .desk-factory-reset-win-title {
      color: #fff;
      font-size: 12px;
      font-weight: bold;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .desk-factory-reset-body {
      padding: 14px 16px 16px;
      background: #c0c0c0;
    }
    .desk-factory-reset-msg {
      margin: 0 0 16px;
      font-size: 12px;
      line-height: 1.45;
      color: #000;
    }
    .desk-factory-reset-btns {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }
    .desk-factory-reset-btn {
      min-width: 76px;
      font-size: 11px;
      font-family: Tahoma, Arial, sans-serif;
      font-weight: bold;
      padding: 4px 14px;
      background: #c0c0c0;
      color: #000;
      border-top: 2px solid #fff;
      border-left: 2px solid #fff;
      border-right: 2px solid #404040;
      border-bottom: 2px solid #404040;
      cursor: pointer;
    }
    .desk-factory-reset-btn:active {
      border-top: 2px solid #404040;
      border-left: 2px solid #404040;
      border-right: 2px solid #fff;
      border-bottom: 2px solid #fff;
    }
    .desk-factory-reset-btn-ok {
      font-weight: bold;
    }

    /* ── TASKBAR ── */
    .taskbar {
      position: relative; background: #c0c0c0; border-top: 2px solid #fff; padding: 3px 6px; display: flex; align-items: center; gap: 4px; z-index: 300; flex-shrink: 0; min-height: 36px;
      transition: opacity 0.35s ease, min-height 0.3s ease, padding 0.3s ease, border-top-width 0.3s ease;
    }
    .taskbar.taskbar-hidden {
      opacity: 0; pointer-events: none; min-height: 0; height: 0; padding: 0; border-top-width: 0; overflow: hidden;
    }
    .start-btn { background: #c0c0c0; border-top: 2px solid #fff; border-left: 2px solid #fff; border-right: 2px solid #404040; border-bottom: 2px solid #404040; padding: 2px 10px 2px 6px; font-size: 12px; font-weight: bold; display: flex; align-items: center; gap: 6px; cursor: pointer; flex-shrink: 0; }
    .start-btn-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; text-align: left; }
    .start-btn-title { font-size: 12px; font-weight: bold; letter-spacing: 0.02em; }
    .start-btn-sub { font-size: 7px; font-weight: normal; color: #404040; text-transform: uppercase; letter-spacing: 0.08em; max-width: 72px; }

    /* Clippy-style assistant: floating over desktop (no window), yellow pad + mascot */
    .wordart-clipboard { position: fixed; bottom: 42px; right: 8px; z-index: 280; transition: opacity 0.4s ease; pointer-events: none; }
    .wordart-clipboard:not(.wordart-clipboard-hidden) { pointer-events: auto; }
    .wordart-clipboard-hidden { opacity: 0; }
    .clippy-scene {
      width: 132px;
      height: 102px;
      position: relative;
      filter: drop-shadow(4px 5px 3px rgba(0,0,0,0.28));
      animation: clippyFloat 3.1s ease-in-out infinite;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
    .clippy-scene:focus { outline: 2px dotted #000080; outline-offset: 2px; }
    .clippy-scene.clippy-react { animation: clippyReact 0.48s ease-out; }
    @keyframes clippyFloat {
      0%, 100% { transform: translateY(0) rotate(-0.8deg); }
      50% { transform: translateY(-4px) rotate(0.9deg); }
    }
    @keyframes clippyReact {
      0% { transform: translateY(0) scale(1) rotate(0deg); }
      30% { transform: translateY(-10px) scale(1.1) rotate(-8deg); }
      55% { transform: translateY(-4px) scale(1.06) rotate(10deg); }
      80% { transform: translateY(-7px) scale(1.04) rotate(-4deg); }
      100% { transform: translateY(0) scale(1) rotate(0deg); }
    }
    .clippy-svg {
      display: block;
      width: 132px;
      height: 102px;
      overflow: visible;
    }
    .clippy-brows {
      transform-origin: 16px 3px;
      transform-box: fill-box;
      animation: clippyBrows 5.5s ease-in-out infinite;
    }
    @keyframes clippyBrows {
      0%, 86%, 100% { transform: rotate(0deg) translateY(0); }
      88% { transform: rotate(-6deg) translateY(-0.5px); }
      92% { transform: rotate(5deg) translateY(0); }
    }
    .start-btn.pressed { border-top: 2px solid #404040; border-left: 2px solid #404040; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
    .sl { width: 18px; height: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; flex-shrink: 0; }
    .sl-r { background: #f00; } .sl-g { background: #0a0; } .sl-b { background: #00f; } .sl-y { background: #ff0; }
    .tb-wins { display: flex; gap: 3px; flex: 1; overflow: hidden; }
    .tb-win { background: #c0c0c0; border-top: 2px solid #808080; border-left: 2px solid #808080; border-right: 2px solid #fff; border-bottom: 2px solid #fff; padding: 2px 12px; font-size: 11px; font-weight: bold; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; min-width: 108px; display: none; }
    .tb-win.show { display: block; }
    .tb-win.focused { border-top: 2px solid #404040; border-left: 2px solid #404040; background: #bbb; }
    /* Decorative systray (Wi‑Fi, AV, volume, battery) + clock */
    .taskbar-tray {
      display: flex; align-items: center; gap: 1px; flex-shrink: 0;
      padding: 0 2px 0 0; margin-right: 2px;
    }
    .tb-tray-ico {
      display: flex; align-items: center; justify-content: center;
      width: 22px; height: 22px; flex-shrink: 0;
    }
    .tb-tray-ico svg { width: 16px; height: 16px; display: block; }
    .taskbar-clock-wrap {
      border-top: 1px solid #808080; border-left: 1px solid #808080;
      border-right: 1px solid #fff; border-bottom: 1px solid #fff;
      padding: 2px 10px 3px; flex-shrink: 0;
      display: flex; flex-direction: column; align-items: flex-end;
      justify-content: center; line-height: 1.12; min-width: 78px;
    }
    .taskbar-clock-time { font-size: 12px; font-weight: bold; color: #000; font-variant-numeric: tabular-nums; }
    .taskbar-clock-date { font-size: 9px; color: #303030; font-weight: normal; white-space: nowrap; }
    .taskbar-clock-date-click { cursor: pointer; }
    .taskbar-clock-date-click:hover { text-decoration: underline; }

    /* ── MOBILE ── */
    /* ── FAKE TERMINAL ── */
    .term-wrap { background: #0c0c0c; color: #0d0; font-family: 'VT323', 'Consolas', monospace; font-size: 17px; padding: 8px; flex: 1; display: flex; flex-direction: column; min-height: 0; border-top: 2px solid #404040; border-left: 2px solid #404040; }
    .term-out { flex: 1; overflow-y: auto; white-space: pre-wrap; word-break: break-word; margin: 0 0 8px; line-height: 1.35; }
    .term-out .term-cmd { color: #8f8; }
    .term-line { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
    .term-prompt { color: #0f0; flex-shrink: 0; }
    .term-input { flex: 1; min-width: 0; background: #080808; border: 1px solid #264; color: #0c0; font-family: inherit; font-size: 17px; padding: 2px 6px; outline: none; }

    /* ── Mobile / narrow: stack desktop content, scroll, nearly-fullscreen windows ── */
    @media (max-width: 768px) {
      .desktop-zoom-inner { zoom: 1; }
      .desktop-area {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
      }
      /* iOS Safari: prevent auto-zoom on focus (inputs < 16px) */
      input.addr-input,
      .widget-bug-body input[type="text"],
      .widget-bug-body select,
      .widget-bug-body textarea {
        font-size: 16px;
      }
      .desk-icons {
        flex: 0 0 auto;
        min-height: 0;
        padding: 6px 6px 4px;
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        gap: 6px;
      }
      .desk-island {
        display: flex;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100%;
        max-width: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-content: flex-start;
        gap: 8px;
        padding: 8px 10px 10px;
        box-sizing: border-box;
      }
      .desk-island .island-label {
        flex-basis: 100%;
        text-align: left;
        padding-bottom: 4px;
        margin-bottom: 4px;
      }
      .desk-island[data-desk-island="shops"] {
        display: grid;
        grid-template-columns: repeat(5, max-content);
        justify-content: start;
        align-content: start;
        gap: 8px 10px;
      }
      .desk-icon { touch-action: manipulation; }
      .desk-island .desk-trash {
        position: relative;
        bottom: auto;
        right: auto;
        float: none;
        clear: none;
        margin: 8px 4px 4px;
        align-self: center;
      }
      .desk-widgets {
        position: static;
        inset: auto;
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 8px 6px 20px;
        pointer-events: auto;
        overflow: visible;
      }
      .desk-easter-egg-layer { display: none !important; }
      .desk-widget {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
      }
      .widget-notepad { max-height: none; }
      .widget-notepad textarea.widget-notepad-text { max-height: min(320px, 45vh); }
      .widget-paint { max-width: 100%; }
      .widget-node { max-width: 100%; }
      .widget-bug { max-width: 100%; max-height: none; }
      .widget-wordsoffice { max-width: 100%; max-height: none; }
      .wo-page-wrap { max-height: min(340px, 42vh); }
      .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 10px 6px; }
      .icon-item { padding: 12px 6px; }
      .icon-label { max-width: none; font-size: 11px; }
      .addressbar { flex-wrap: wrap; gap: 6px; }
      .addr-label { flex-shrink: 0; }
      .addr-input { min-width: 0; font-size: 12px; }
      .hub-chrome { padding: 6px; }
      .nav-toolbar { gap: 3px; }
      .nav-btn { min-width: 26px; height: 22px; font-size: 10px; padding: 0 4px; }
      /* Floating windows: one usable surface (taskbar stays out of the flex slice; inner is below boot) */
      .desktop-zoom-inner > .win.visible:not(.minimized) {
        top: 4px !important;
        left: 4px !important;
        right: 4px !important;
        bottom: 4px !important;
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: none !important;
      }
      .win.maximized {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: auto !important;
        height: auto !important;
      }
      .status-panel:last-child { display: none; }
      .tb-win { max-width: 112px; min-width: 72px; font-size: 9px; padding: 2px 6px; }
      .start-menu { width: min(220px, calc(100vw - 12px)); left: 4px; }
      .start-btn-sub { max-width: 56px; font-size: 6px; }
      .taskbar { padding: 2px 4px; gap: 2px; flex-wrap: nowrap; }
      .taskbar-tray { gap: 0; padding: 0; margin-right: 0; }
      .tb-tray-ico { width: 20px; height: 20px; }
      .tb-tray-ico svg { width: 14px; height: 14px; }
      .taskbar-clock-wrap { min-width: 64px; padding: 1px 6px 2px; }
      .taskbar-clock-time { font-size: 11px; }
      .taskbar-clock-date { font-size: 8px; }
      .desk-widget .win-title { font-size: 11px; }
      .wordart-clipboard { bottom: 50px; right: 2px; transform: scale(0.9); transform-origin: bottom right; }
      .clippy-scene { width: 118px; height: 92px; }
      .clippy-svg { width: 118px; height: 92px; }
    }

    @media (max-width: 380px) {
      .icon-grid { grid-template-columns: 1fr; }
      .tb-win { max-width: 88px; min-width: 56px; font-size: 8px; }
      .desk-island[data-desk-island="shops"] { grid-template-columns: repeat(3, max-content); }
    }

    /* Touch devices: skip desktop-only hover/cursor effects for perf */
    @media (hover: none) and (pointer: coarse) {
      html { cursor: auto; }
      .cursor-trail-layer { display: none !important; }
      .desk-icon:hover .di-img { outline: none; background: transparent; }
      .desk-icon:hover .di-label { background: transparent; }
    }

    /* ── CRT SHUTDOWN (Start → Shut Down) ── */
    .crt-shutdown-overlay {
      position: fixed;
      inset: 0;
      z-index: 10020;
      pointer-events: none;
      visibility: hidden;
      overflow: hidden;
      contain: strict;
    }
    .crt-shutdown-overlay.crt-shutdown-active {
      pointer-events: auto;
      visibility: visible;
      /* Keep blend layers from compositing against the page (avoids a white “flash”). */
      isolation: isolate;
    }
    .crt-shutdown-noise-canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      image-rendering: pixelated;
      opacity: 0;
      mix-blend-mode: overlay;
      z-index: 2;
    }
    .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-noise-canvas {
      animation: crt-shutdown-noise-opacity 5.7s cubic-bezier(0.45, 0, 0.55, 1) forwards;
    }
    @keyframes crt-shutdown-noise-opacity {
      0%, 28% { opacity: 0; }
      38% { opacity: 0.22; }
      52% { opacity: 0.55; }
      62% { opacity: 0.38; }
      78% { opacity: 0.12; }
      100% { opacity: 0; }
    }
    .crt-shutdown-chroma {
      position: absolute;
      inset: -4px;
      z-index: 1;
      opacity: 0;
      box-shadow:
        inset 0 0 80px rgba(255, 0, 60, 0.12),
        inset 0 0 120px rgba(0, 120, 255, 0.1);
      animation: none;
    }
    .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-chroma {
      animation: crt-shutdown-chroma 5.7s ease-out forwards;
    }
    @keyframes crt-shutdown-chroma {
      0% { opacity: 0; filter: none; }
      6% { opacity: 0.85; }
      14% { opacity: 0.45; filter: hue-rotate(12deg) saturate(1.8); }
      24% { opacity: 0.7; }
      36% { opacity: 0.35; }
      48% { opacity: 0.55; filter: hue-rotate(-8deg); }
      58% { opacity: 0.25; }
      100% { opacity: 0; }
    }
    .crt-shutdown-curve {
      position: absolute;
      inset: 0;
      z-index: 3;
      pointer-events: none;
      opacity: 0;
      background: radial-gradient(ellipse 92% 88% at 50% 48%, transparent 42%, rgba(0, 0, 0, 0.18) 100%);
    }
    .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-curve {
      animation: crt-shutdown-curve 5.7s ease-in-out forwards;
    }
    @keyframes crt-shutdown-curve {
      0% { opacity: 0; transform: scale(1); }
      18% { opacity: 0.35; }
      42% { opacity: 0.65; transform: scale(1.02, 0.98); }
      58% { opacity: 0.9; transform: scale(1.04, 0.94); }
      100% { opacity: 1; transform: scale(1.06, 0.88); }
    }
    .crt-shutdown-scanlines {
      position: absolute;
      inset: 0;
      z-index: 4;
      pointer-events: none;
      opacity: 0;
      background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 1px,
        rgba(0, 0, 0, 0.13) 1px,
        rgba(0, 0, 0, 0.13) 2px
      );
      mix-blend-mode: multiply;
    }
    .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-scanlines {
      animation: crt-shutdown-scanlines 5.7s ease-in-out forwards;
    }
    @keyframes crt-shutdown-scanlines {
      0%, 12% { opacity: 0; }
      22% { opacity: 0.25; }
      40% { opacity: 0.5; }
      55% { opacity: 0.65; }
      72% { opacity: 0.4; }
      100% { opacity: 0.15; }
    }
    .crt-shutdown-rgb {
      position: absolute;
      inset: 0;
      z-index: 5;
      pointer-events: none;
      opacity: 0;
      background:
        linear-gradient(90deg, rgba(255, 0, 0, 0.12) 0%, transparent 33%, transparent 66%, rgba(0, 0, 255, 0.1) 100%);
      mix-blend-mode: screen;
    }
    .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-rgb {
      animation: crt-shutdown-rgb 5.7s ease-in-out forwards;
    }
    @keyframes crt-shutdown-rgb {
      0% { opacity: 0; transform: translateX(0); }
      8% { opacity: 0.6; transform: translateX(3px); }
      16% { opacity: 0.35; transform: translateX(-4px); }
      26% { opacity: 0.5; transform: translateX(2px); }
      34% { opacity: 0.2; }
      100% { opacity: 0; transform: translateX(0); }
    }
    .crt-shutdown-bloom {
      position: absolute;
      left: -5%;
      right: -5%;
      top: 50%;
      height: 120%;
      z-index: 6;
      transform: translateY(-50%) scaleY(1);
      pointer-events: none;
      opacity: 0;
      background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 44%,
        rgba(200, 230, 255, 0.35) 49.2%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(200, 230, 255, 0.35) 50.8%,
        rgba(255, 255, 255, 0.04) 56%,
        transparent 100%
      );
      mix-blend-mode: plus-lighter;
      filter: blur(0.5px);
    }
    .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-bloom {
      animation: crt-shutdown-bloom 5.7s cubic-bezier(0.33, 0, 0.2, 1) forwards;
    }
    @keyframes crt-shutdown-bloom {
      0%, 30% { opacity: 0; transform: translateY(-50%) scaleY(1); filter: blur(0.5px); }
      42% { opacity: 0.85; transform: translateY(-50%) scaleY(0.22); filter: blur(1px); }
      52% { opacity: 1; transform: translateY(-50%) scaleY(0.06); filter: blur(2px); }
      60% { opacity: 0.7; transform: translateY(-50%) scaleY(0.018); filter: blur(1.5px); }
      68% { opacity: 0.35; transform: translateY(-50%) scaleY(0.006); }
      78% { opacity: 0.08; }
      100% { opacity: 0; transform: translateY(-50%) scaleY(0.001); }
    }
    .crt-shutdown-vignette {
      position: absolute;
      inset: 0;
      z-index: 7;
      pointer-events: none;
      opacity: 0;
      background: radial-gradient(ellipse 70% 65% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.5) 100%);
    }
    .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-vignette {
      animation: crt-shutdown-vignette 5.7s ease-in forwards;
    }
    @keyframes crt-shutdown-vignette {
      0%, 35% { opacity: 0; }
      50% { opacity: 0.4; }
      65% { opacity: 0.75; }
      82% { opacity: 0.95; }
      100% { opacity: 1; }
    }
    .crt-shutdown-final {
      position: absolute;
      inset: 0;
      z-index: 8;
      pointer-events: none;
      background: #000;
      opacity: 0;
    }
    .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-final {
      animation: crt-shutdown-final 5.7s ease-in forwards;
    }
    @keyframes crt-shutdown-final {
      0%, 42% { opacity: 0; }
      52% { opacity: 0.18; }
      62% { opacity: 0.55; }
      74% { opacity: 0.92; }
      100% { opacity: 1; }
    }
    #desktop.crt-shutdown-desk {
      animation: crt-shutdown-desk 5.7s cubic-bezier(0.38, 0.02, 0.67, 1) forwards;
      transform-origin: 50% 46%;
      will-change: transform, filter, opacity;
    }
    @keyframes crt-shutdown-desk {
      0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1, 1);
        filter: brightness(1) contrast(1) saturate(1) blur(0);
      }
      4% {
        filter: brightness(1.1) contrast(1.06) saturate(1.2);
        transform: translate3d(1px, -1px, 0);
      }
      10% {
        filter: brightness(1.14) contrast(1.1) saturate(1.35) hue-rotate(6deg);
        transform: translate3d(-2px, 2px, 0) skewX(0.6deg);
      }
      18% {
        transform: translate3d(0, -1.2%, 0) scale(1.008, 1.028) skewX(-0.4deg);
        filter: brightness(1.12) contrast(1.12) blur(0.35px);
      }
      28% {
        transform: translate3d(0, 1.5%, 0) scale(1, 0.52) skewY(-0.8deg);
        filter: brightness(1.28) contrast(1.18) blur(0.5px);
      }
      38% {
        transform: scale(0.99, 0.16);
        filter: brightness(1.75) contrast(1.25) blur(0.8px);
      }
      46% {
        transform: scale(0.96, 0.065);
        filter: brightness(2.05) contrast(1.28) blur(0.9px);
      }
      52% {
        transform: scale(0.9, 0.028);
        filter: brightness(2.45) blur(1.2px);
      }
      56% {
        transform: scale(0.78, 0.012);
        filter: brightness(2.75) blur(1.35px);
      }
      60% {
        opacity: 0.92;
        transform: scale(0.62, 0.005);
        filter: brightness(2.95);
      }
      66% {
        opacity: 0;
        transform: scale(0.45, 0.001);
        filter: brightness(3.1);
      }
      100% {
        opacity: 0;
        transform: scale(0.35, 0);
        filter: brightness(0);
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-noise-canvas,
      .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-chroma,
      .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-curve,
      .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-scanlines,
      .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-rgb,
      .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-bloom,
      .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-vignette {
        animation-duration: 0.85s !important;
      }
      .crt-shutdown-overlay.crt-shutdown-active .crt-shutdown-final {
        animation: crt-shutdown-final-reduced 0.85s ease forwards !important;
      }
      @keyframes crt-shutdown-final-reduced {
        0% { opacity: 0; }
        40% { opacity: 0.5; }
        100% { opacity: 1; }
      }
      #desktop.crt-shutdown-desk {
        animation: crt-shutdown-desk-reduced 0.85s ease forwards !important;
      }
      @keyframes crt-shutdown-desk-reduced {
        0% { opacity: 1; filter: brightness(1); transform: none; }
        100% { opacity: 0; filter: brightness(0); transform: scale(1, 0.02); }
      }
    }

    /* ── Easter eggs (see README + js/easter-eggs.js) ── */
    .boot-ee-hint { opacity: 0.35; font-size: 0.85em; cursor: help; }
    #desktop.ee-safe-boot { filter: saturate(0.55) contrast(0.95); }
    .ee-konami-crt #desktop::after {
      content: ""; pointer-events: none; position: fixed; inset: 0; z-index: 9998;
      background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.06) 2px, rgba(0,0,0,.06) 4px);
      mix-blend-mode: multiply;
    }
    .ee-bsod {
      display: none; position: fixed; inset: 0; z-index: 10050; background: #0000aa; color: #fff;
      font-family: Tahoma, Arial, sans-serif; font-size: 14px; padding: 24px 32px; align-items: center; justify-content: center;
    }
    .ee-bsod:not(.hidden) { display: flex; }
    .ee-bsod-inner { max-width: 520px; line-height: 1.5; }
    .ee-bsod-inner code { background: rgba(255,255,255,.15); padding: 0 4px; }
    .ee-debug-panel {
      position: fixed; bottom: 8px; left: 8px; z-index: 9990; background: #ffffe0; border: 2px solid #404040;
      box-shadow: 2px 2px 0 #000; font: 11px Tahoma, Arial, sans-serif; padding: 8px 28px 8px 10px; min-width: 140px;
    }
    .ee-debug-panel.hidden { display: none !important; }
    .hidden { display: none !important; }
    .ee-debug-panel-title { font-weight: bold; color: #000080; margin-bottom: 4px; }
    .ee-debug-panel-close {
      position: absolute; top: 2px; right: 4px; border: none; background: transparent; cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px;
    }
    .ee-cursor-ghost .cursor-trail-dot {
      background: radial-gradient(circle, rgba(180,220,255,.95) 0%, rgba(100,140,255,.4) 55%, transparent 70%) !important;
      box-shadow: 0 0 6px rgba(160,200,255,.6);
    }

    /* ── Secret games (Checkers + Puissance 4) ── */
    .secret-game-wrap{
      display:flex;
      flex-direction:column;
      gap:10px;
      height:100%;
    }
    .secret-game-top{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      flex-wrap:wrap;
    }
    .secret-game-status{
      font: 12px/1.2 Tahoma, Arial, sans-serif;
      color:#000080;
      padding:6px 8px;
      border:1px inset #c0c0c0;
      background:#fff;
      flex:1;
      min-width:220px;
    }
    .secret-game-actions{ display:flex; gap:6px; align-items:center; }
    .secret-game-board-wrap{
      flex:1;
      min-height:0;
      display:flex;
      align-items:center;
      justify-content:center;
      border:1px inset #c0c0c0;
      background:#e8e8e8;
      padding:10px;
    }
    .secret-game-foot{
      display:flex;
      justify-content:space-between;
      gap:10px;
      flex-wrap:wrap;
      font: 11px/1.2 Tahoma, Arial, sans-serif;
      color:#404040;
    }

    .checkers-board{
      display:grid;
      grid-template-columns: repeat(8, 44px);
      grid-template-rows: repeat(8, 44px);
      gap:2px;
      padding:6px;
      background:#808080;
      border:2px ridge #fff;
      box-shadow: 0 8px 18px rgba(0,0,0,.25);
      user-select:none;
    }
    .chk-sq{
      width:44px;
      height:44px;
      border:1px solid rgba(0,0,0,.25);
      display:grid;
      place-items:center;
      padding:0;
      background:transparent;
    }
    .chk-light{ background:#f3e5c8; }
    .chk-dark{ background:#8b5a2b; }
    .chk-selected{ outline:2px solid #00a2ff; outline-offset:-2px; }
    .chk-dest{ box-shadow: inset 0 0 0 2px rgba(20,241,149,.9); }
    .chk-piece{
      width:30px;
      height:30px;
      border-radius:50%;
      box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.25);
      display:grid;
      place-items:center;
      font: 700 14px/1 Tahoma, Arial, sans-serif;
      color:#fff;
      text-shadow: 0 1px 0 rgba(0,0,0,.35);
    }
    .chk-red{ background: radial-gradient(circle at 30% 25%, #ff7a7a, #d7263d 60%, #7b1f1f 100%); }
    .chk-black{ background: radial-gradient(circle at 30% 25%, #6b6b6b, #1a1a1a 60%, #000 100%); }
    .chk-king{
      box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.45), 0 0 0 2px rgba(255,215,0,.55), 0 2px 4px rgba(0,0,0,.25);
    }

    .p4-board{
      width: fit-content;
      user-select:none;
      display:flex;
      flex-direction:column;
      gap:6px;
    }
    .p4-head{
      display:grid;
      grid-template-columns: repeat(7, 52px);
      gap:6px;
      justify-content:center;
    }
    .p4-colbtn{
      width:52px;
      height:30px;
      border:2px outset #fff;
      background: linear-gradient(180deg, #f2f2f2, #c0c0c0);
      font: 14px/1 Tahoma, Arial, sans-serif;
      color:#000080;
      padding:0;
    }
    .p4-grid{
      display:grid;
      grid-template-columns: repeat(7, 52px);
      grid-template-rows: repeat(6, 52px);
      gap:6px;
      padding:10px;
      background: #000080;
      border:2px ridge #fff;
      box-shadow: 0 8px 18px rgba(0,0,0,.25);
    }
    .p4-cell{
      width:52px;
      height:52px;
      display:grid;
      place-items:center;
      background: rgba(255,255,255,.06);
      border-radius:8px;
    }
    .p4-hole{
      width:40px;
      height:40px;
      border-radius:50%;
      background: radial-gradient(circle at 35% 30%, #ffffff, #c0c0c0 45%, #808080 100%);
      box-shadow: inset 0 2px 2px rgba(0,0,0,.35);
    }
    .p4-disc{
      width:40px;
      height:40px;
      border-radius:50%;
      box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.25);
    }
    .p4-yellow{ background: radial-gradient(circle at 30% 25%, #fff3a8, #ffd54f 55%, #b7950b 100%); }
    .p4-red{ background: radial-gradient(circle at 30% 25%, #ff9a9a, #ff1744 55%, #7b1f1f 100%); }
