:root {
    --face: #c0c0c0;
    --hi: #ffffff;
    --lo: #808080;
    --dk: #0a0a0a;
    --navy: #000080;
    --teal: #008080;
    --raised: inset -1px -1px var(--dk), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px #dfdfdf;
    --pressed: inset 1px 1px var(--dk), inset -1px -1px var(--hi), inset 2px 2px var(--lo), inset -2px -2px #dfdfdf;
    --sunken: inset 1px 1px var(--lo), inset -1px -1px var(--hi), inset 2px 2px var(--dk), inset -2px -2px #dfdfdf;
    --ui: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, "Segoe UI", Arial, sans-serif;
    --mono: "Lucida Console", "Courier New", monospace;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; height: 100%; }
  body {
    height: 100vh; height: 100dvh;
    background: var(--teal);
    font-family: var(--ui); font-size: 14px; color: #000; line-height: 1.3;
    padding: 12px 12px 48px;
    overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  button { font: inherit; color: inherit; }

  /* ---------- window ---------- */
  .window {
    width: 100%; max-width: 640px; margin: 0; max-height: 100%;
    display: flex; flex-direction: column;
    background: var(--face); padding: 3px;
    box-shadow: var(--raised), 4px 4px 0 rgba(0,0,0,.35);
  }
  .window.max { max-width: none; height: 100%; }
  .window[hidden] { display: none; }

  .titlebar {
    display: flex; align-items: center; gap: 6px; padding: 3px 3px 3px 4px; color: #fff;
    background: linear-gradient(90deg, var(--navy), #1084d0);
    font-weight: bold; user-select: none;
  }
  /* program icon: Pro Stalker target icon */
  .t-ico {
    width: 16px; height: 16px; flex: none;
    background: transparent url("pro_stalker.svg") center / contain no-repeat;
  }
  .titlebar .t-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb { display: flex; gap: 2px; }
  .tb button, .tb-gap {
    width: 18px; height: 16px; background: var(--face); box-shadow: var(--raised); border: 0; cursor: default;
    display: grid; place-items: center; padding: 0; position: relative;
  }
  .tb button:active { box-shadow: var(--pressed); }
  .tb .gap { width: 2px; background: transparent; box-shadow: none; }
  .tb i { display: block; position: absolute; background: #000; }
  .b-min i { left: 4px; right: 6px; bottom: 3px; height: 2px; }
  .b-max i { left: 3px; top: 2px; width: 10px; height: 9px; background: transparent; border: 1px solid #000; border-top-width: 2px; }
  .b-close::before, .b-close::after { content: ""; position: absolute; width: 10px; height: 2px; background: #000; left: 4px; top: 7px; }
  .b-close::before { transform: rotate(45deg); } .b-close::after { transform: rotate(-45deg); }

  .menubar { display: flex; gap: 2px; padding: 2px 2px; }
  .menubar button { padding: 2px 7px; background: none; border: 0; cursor: default; }
  .menubar button:hover, .menubar button:focus-visible { background: var(--navy); color: #fff; outline: 0; }
  .menubar u { text-decoration: underline; }

  .client { margin: 2px 0 3px; background: var(--face); box-shadow: var(--sunken); padding: clamp(8px, 1.6vh, 14px) 14px; flex: 1 1 auto; min-height: 0; overflow: hidden; }

  /* console box */
  .console {
    background: #000; color: #c0c0c0; font-family: var(--mono); font-size: 12.5px;
    padding: clamp(8px, 1.5vh, 12px) 14px clamp(8px, 1.5vh, 14px); box-shadow: var(--sunken); margin-bottom: clamp(8px, 1.5vh, 14px);
  }
  .console h1 {
    font-family: var(--mono); font-weight: bold; font-size: clamp(1.4rem, min(5.6vw, 5.2vh), 2.5rem); line-height: 1; letter-spacing: .02em;
    color: #fff; margin: 0; white-space: nowrap; text-shadow: 2px 2px 0 #000080;
  }
  .console h1 .u { display: block; color: #ffff55; font-size: 12.5px; font-weight: normal; letter-spacing: 0; text-shadow: none; margin-bottom: 6px; }

  /* link buttons */
  .links { display: grid; gap: clamp(6px, 1.1vh, 10px); list-style: none; }
  .btn95 {
    display: flex; align-items: center; gap: 16px; width: 100%; height: clamp(34px, 6vh, 58px); padding: 0 16px;
    background: var(--face); border: 0; text-align: left; text-decoration: none; color: #000; cursor: pointer;
    box-shadow: var(--raised); position: relative;
  }
  .btn95:hover { background: #cfcfcf; }
  .btn95:active, .btn95.down { box-shadow: var(--pressed); padding: 2px 15px 0 17px; }
  .btn95:focus-visible { outline: 1px dotted #000; outline-offset: -6px; }
  .ico {
    width: clamp(22px, 3.4vh, 28px); height: clamp(22px, 3.4vh, 28px); flex: none; background: #000;
    -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
  }
  .btn95 .lbl { font-weight: bold; letter-spacing: .04em; text-transform: uppercase; font-size: 15px; }
  /* Tagify: tag icon instead of the Mastodon one */
  .ico-tagify { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill-rule='evenodd' d='M0 80V229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7H48C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z'/%3E%3C/svg%3E"); }

  /* ---------- taskbar ---------- */
  .taskbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: 36px; padding: 4px 4px;
    display: flex; align-items: center; gap: 4px; background: var(--face);
    box-shadow: inset 0 1px var(--hi), inset 0 2px #dfdfdf;
  }
  .start, .task { height: 28px; background: var(--face); border: 0; box-shadow: var(--raised); display: flex; align-items: center; gap: 6px; padding: 0 8px; cursor: default; }
  .start { font-weight: bold; }
  .start.open, .task.active { box-shadow: var(--pressed); background: repeating-conic-gradient(var(--face) 0 25%, #fff 0 50%) 0 0 / 2px 2px; }
  .task.active { font-weight: bold; }
  .task { min-width: 150px; max-width: 220px; justify-content: flex-start; white-space: nowrap; overflow: hidden; }
  .flag { width: 16px; height: 16px; display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 1px; transform: skewY(-6deg); }
  .flag i:nth-child(1) { background: #f00 } .flag i:nth-child(2) { background: #0a0 } .flag i:nth-child(3) { background: #00f } .flag i:nth-child(4) { background: #fc0 }
  .tray { margin-left: auto; height: 28px; padding: 0 10px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); font-size: 11px; line-height: 1.15; }

  .startmenu {
    position: fixed; left: 4px; bottom: 36px; z-index: 21; width: 240px; display: flex;
    background: var(--face); box-shadow: var(--raised), 3px 3px 0 rgba(0,0,0,.35); padding: 3px;
  }
  .startmenu[hidden] { display: none; }
  .startmenu .side { width: 26px; background: linear-gradient(0deg, var(--navy), #1084d0); position: relative; }
  .startmenu .side span { position: absolute; left: 4px; bottom: 8px; writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font-weight: bold; font-size: 16px; letter-spacing: .05em; }
  .startmenu .side b { color: #c0c0c0; font-weight: normal; }
  .startmenu ul { flex: 1; list-style: none; }
  .startmenu a, .startmenu button { display: block; width: 100%; padding: 7px 12px; text-decoration: none; color: #000; background: none; border: 0; text-align: left; cursor: default; }
  .startmenu a:hover, .startmenu button:hover { background: var(--navy); color: #fff; }
  .startmenu hr { border: 0; border-top: 1px solid var(--lo); border-bottom: 1px solid var(--hi); margin: 3px 2px; }

  /* start menu: keep the vertical "Microslop" text inside the blue side bar on phones/tablets (short menu) */
  .startmenu .side { overflow: hidden; }
  @media not all and (hover: hover) and (pointer: fine) and (min-width: 700px) {
    .startmenu .side span { font-size: 11px; letter-spacing: 0; left: 6px; bottom: 6px; }
  }

  /* ---------- dialog ---------- */
  .overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.15); }
  .overlay[hidden] { display: none; }
  .dialog { width: min(380px, 100%); background: var(--face); padding: 3px; box-shadow: var(--raised), 4px 4px 0 rgba(0,0,0,.4); }
  .dialog .body { display: flex; gap: 16px; padding: 18px 16px 8px; align-items: flex-start; }
  .dialog .msg { padding-top: 4px; word-break: break-word; }
  .dicon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: bold 20px/1 var(--ui); color: #fff; }
  .dicon.err { background: #c00000; box-shadow: inset -2px -2px #700000, inset 2px 2px #ff6060; }
  .dicon.info { background: #0000c0; font-family: Georgia, serif; font-style: italic; box-shadow: inset -2px -2px #000070, inset 2px 2px #6060ff; }
  .dialog .actions { display: flex; justify-content: center; padding: 10px 0 14px; }
  .dialog .ok { min-width: 78px; padding: 5px 14px; background: var(--face); border: 0; box-shadow: var(--raised), 0 0 0 1px #000; cursor: default; }
  .dialog .ok:active { box-shadow: var(--pressed), 0 0 0 1px #000; }
  .dialog .ok:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }

  /* shutdown */
  .shutdown { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; place-items: center; text-align: center; padding: 24px; color: #ff9d00; font-family: var(--mono); font-size: 20px; line-height: 1.5; cursor: pointer; }
  .shutdown[hidden] { display: none; }
  .shutdown small { display: block; color: #777; font-size: 12px; margin-top: 24px; }

  /* ---------- CRT effect ---------- */
  .crt { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
  .crt .scan {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
  }
  .crt .roll {
    position: absolute; left: 0; right: 0; top: 0; height: 140px;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.05) 40%, rgba(255,255,255,.13) 50%, rgba(255,255,255,.05) 60%, transparent 100%);
    animation: roll 7s linear infinite;
  }
  @keyframes roll { from { transform: translateY(-160px); } to { transform: translateY(100vh); } }
  .crt .vig { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45) 100%); box-shadow: inset 0 0 90px rgba(0,0,0,.4); }
  .crt .flick { position: absolute; inset: 0; background: rgba(255,255,255,.025); animation: flick .15s steps(2) infinite; mix-blend-mode: overlay; }
  @keyframes flick { 0% { opacity: .2 } 50% { opacity: .9 } 100% { opacity: .4 } }
  body > .window, .taskbar { animation: jitter 6s infinite; }
  @keyframes jitter { 0%, 96%, 100% { transform: none } 97% { transform: translateX(1px) } 98% { transform: translateX(-1px) } 99% { transform: translateX(0) skewX(.2deg) } }

  @media (max-width: 480px) {
    body { height: auto; min-height: 100vh; overflow-x: hidden; overflow-y: auto; display: block; padding: 8px 6px 60px; }
    .window { max-height: none; }
    .client { overflow: visible; }
    .btn95 { height: 58px; }
    .client { padding: 8px; }
    .btn95 { gap: 12px; padding: 8px 12px; }
    .task { min-width: 0; flex: 1; }
    .tray { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .crt .roll, .crt .flick, body > .window, .taskbar, .taskbar { animation: none !important; }
  }

  /* ---------- desktop icons + recycle bin (desktop browsers only) ---------- */
  :root { 
    --pic-bin: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20shape-rendering='crispEdges'%3E%3Cpath%20d='M12%207%20L14%201.5%20L21%202.5%20L19.5%207%20Z'%20fill='%23fff'%20stroke='%23000'/%3E%3Cpath%20d='M14.5%203.5h4M14%205h4'%20stroke='%23808080'/%3E%3Crect%20x='5.5'%20y='7.5'%20width='21'%20height='3'%20fill='%23c0c0c0'%20stroke='%23000'/%3E%3Cpath%20d='M7.5%2010.5%20L9.5%2029.5%20H22.5%20L24.5%2010.5%20Z'%20fill='%23e4e4e4'%20stroke='%23000'/%3E%3Cpath%20d='M13%2013v14M16%2013v14M19%2013v14'%20stroke='%23808080'/%3E%3C/svg%3E"); 
    --pic-prog: url("pro_stalker.svg"); 
    --pic-txt: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20shape-rendering='crispEdges'%3E%3Cpath%20d='M7.5%202.5%20H20.5%20L25.5%207.5%20V29.5%20H7.5%20Z'%20fill='%23fff'%20stroke='%23000'/%3E%3Cpath%20d='M20.5%202.5%20V7.5%20H25.5'%20fill='%23c0c0c0'%20stroke='%23000'/%3E%3Cpath%20d='M10%2012h12M10%2015h12M10%2018h12M10%2021h12M10%2024h8'%20stroke='%23000080'/%3E%3C/svg%3E"); 
  }
  .desktop { display: none; position: fixed; inset: 0 0 36px 0; z-index: 2; pointer-events: none; }
  .dicon95 {
    position: absolute; width: 84px; padding: 4px 2px; text-align: center; background: none; border: 0;
    color: #fff; font-size: 12px; cursor: default; pointer-events: auto; touch-action: none; user-select: none;
  }
  .dicon95 .pic { display: block; width: 32px; height: 32px; margin: 0 auto 4px; background: var(--pic) center / contain no-repeat; image-rendering: pixelated; }
  .dicon95 .cap { display: inline-block; padding: 1px 3px; text-shadow: 1px 1px #000; word-break: break-word; line-height: 1.2; }
  .dicon95:focus-visible { outline: 0; }
  .dicon95.sel .cap, .dicon95:focus-visible .cap { background: var(--navy); outline: 1px dotted #ff0; text-shadow: none; }
  .dicon95.sel .pic { filter: brightness(.65) sepia(1) hue-rotate(185deg) saturate(5); }
  .pic-bin { --pic: var(--pic-bin); } .pic-prog { --pic: var(--pic-prog); } .pic-txt { --pic: var(--pic-txt); }

  .window.binwin { display: none; position: fixed; left: 150px; top: 90px; width: 380px; max-width: calc(100vw - 24px); max-height: none; z-index: 4; flex-direction: column; }
  .binlist { background: #fff; box-shadow: var(--sunken); margin: 2px 0 3px; padding: 8px; min-height: 140px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
  .binlist .dicon95 { position: static; color: #000; }
  .binlist .dicon95 .cap { text-shadow: none; }
  .binlist .dicon95.sel .cap, .binlist .dicon95:focus-visible .cap { color: #fff; }
  .statusbar { display: flex; gap: 2px; }
  .statusbar span { flex: 1; padding: 2px 6px; font-size: 12px; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
  .mini-ico { width: 16px; height: 16px; flex: none; background: var(--pic-bin) center / contain no-repeat; image-rendering: pixelated; }
  .mini-prog { background-image: var(--pic-prog); background-size: contain; background-repeat: no-repeat; }
  .task[hidden] { display: none; }

  @media (hover: hover) and (pointer: fine) and (min-width: 700px) {
    .desktop { display: block; }
    .window.binwin:not([hidden]) { display: flex; }
  }

  /* sound toggle */
  .spk { height: 28px; width: 28px; margin-left: auto; padding: 0; background: var(--face); border: 0; box-shadow: var(--raised); font-size: 16px; line-height: 1; cursor: default; }
  .spk + .tray { margin-left: 4px; }
  .spk.off { box-shadow: var(--pressed); color: #808080; text-decoration: line-through; }

  /* ---------- settings / display properties ---------- */
  :root { --pic-set: url("settings.svg"); }
  .pic-set { --pic: var(--pic-set); }
  .mini-set { background-image: var(--pic-set); background-size: contain; background-repeat: no-repeat; }
  .window.setwin { display: none; position: fixed; left: 220px; top: 60px; width: 400px; max-width: calc(100vw - 24px); max-height: none; z-index: 4; flex-direction: column; }
  @media (hover: hover) and (pointer: fine) and (min-width: 700px) { .window.setwin:not([hidden]) { display: flex; } }
  .setbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
  .monitor { width: 160px; margin: 0 auto; padding: 10px 10px 12px; background: var(--face); box-shadow: var(--raised); }
  .screen { height: 92px; background-color: #008080; box-shadow: var(--sunken); }
  .setbody fieldset { border: 1px solid var(--lo); box-shadow: 1px 1px var(--hi); padding: 6px 8px 8px; min-width: 0; }
  .setbody legend { padding: 0 4px; }
  .wplist { background: #fff; box-shadow: var(--sunken); height: 112px; overflow: auto; padding: 2px; }
  .wpitem { padding: 2px 6px; font-size: 13px; cursor: default; white-space: nowrap; }
  .wpitem.sel { background: var(--navy); color: #fff; }
  .wpitem:focus-visible { outline: 1px dotted #ff0; outline-offset: -2px; }
  .setrow { display: flex; align-items: center; gap: 8px; }
  .setrow select { font: inherit; padding: 2px 4px; background: #fff; border: 0; box-shadow: var(--sunken); }
  .setactions { display: flex; justify-content: flex-end; gap: 6px; }
  .btn-std { min-width: 78px; padding: 5px 14px; background: var(--face); border: 0; box-shadow: var(--raised), 0 0 0 1px #000; cursor: default; }
  .btn-std:active { box-shadow: var(--pressed), 0 0 0 1px #000; }
  .btn-std:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }

  /* ---------- About Me (redacted dossier) / PDF viewer ---------- */
  :root { --pic-about: url("pdf.svg"); }
  .pic-about { --pic: var(--pic-about); }
  .mini-about { background-image: var(--pic-about); background-size: contain; background-repeat: no-repeat; }


  /* ---------- Antivirus ---------- */
  :root { --pic-av: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20shape-rendering='crispEdges'%3E%3Cpath%20d='M16.5%202.5L27.5%206.5V16C27.5%2022.5%2022.5%2027%2016.5%2029.5C10.5%2027%205.5%2022.5%205.5%2016V6.5Z'%20fill='%230000a0'%20stroke='%23000'/%3E%3Cpath%20d='M16.5%204.5L25.5%207.8V16C25.5%2021.5%2021.5%2025.3%2016.5%2027.5Z'%20fill='%231084d0'/%3E%3Cpath%20d='M10.5%2015.5L15%2020L23%2010.5'%20fill='none'%20stroke='%23fff'%20stroke-width='3'/%3E%3C/svg%3E"); }
  .pic-av { --pic: var(--pic-av); }
  .mini-av { background-image: var(--pic-av); }
  .window.avwin { display: none; position: fixed; left: 300px; top: 70px; width: 420px; max-width: calc(100vw - 24px); max-height: none; z-index: 4; flex-direction: column; }
  @media (hover: hover) and (pointer: fine) and (min-width: 700px) { .window.avwin:not([hidden]) { display: flex; } }
  .avbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
  .avhead { display: flex; align-items: center; gap: 12px; }
  .avshield { width: 40px; height: 40px; flex: none; background: var(--pic) center / contain no-repeat; image-rendering: pixelated; }
  .avstatus { font-weight: bold; font-size: 15px; }
  .avstatus.bad { color: #c00000; } .avstatus.ok { color: #007000; }
  .avsub { font-size: 12px; color: #404040; }
  .avbar { height: 20px; background: #fff; box-shadow: var(--sunken); padding: 3px; }
  .avfill { height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--navy) 0 8px, transparent 8px 10px); }
  .avlog { background: #000; color: #c0c0c0; box-shadow: var(--sunken); height: 150px; overflow: auto; padding: 6px 8px; font: 12px/1.45 var(--mono); }
  .avlog div { white-space: nowrap; }
  .avlog .hit { color: #ff5555; font-weight: bold; }
  .avlog .done { color: #55ff55; }
  .btn-std:disabled { color: var(--lo); text-shadow: 1px 1px var(--hi); }


  /* ---------- Mail ---------- */
  :root { --pic-mail: url("mail.svg"); }
  .pic-mail { --pic: var(--pic-mail); }
  .mini-mail { background-image: var(--pic-mail); background-size: contain; background-repeat: no-repeat; }
  .window.mailwin { display: none; position: fixed; left: 340px; top: 50px; width: 540px; max-width: calc(100vw - 24px); max-height: none; z-index: 4; flex-direction: column; }
  @media (hover: hover) and (pointer: fine) and (min-width: 700px) { .window.mailwin:not([hidden]) { display: flex; } }
  .mailtools { display: flex; gap: 4px; padding: 3px 2px 5px; }
  .mailtools .btn-std { min-width: 0; padding: 4px 10px; }
  .maillist { background: #fff; box-shadow: var(--sunken); height: 150px; overflow: auto; margin-bottom: 3px; }
  .mrow { display: grid; grid-template-columns: 130px 1fr 74px; gap: 8px; padding: 2px 8px; font-size: 12.5px; cursor: default; white-space: nowrap; }
  .mrow > span { overflow: hidden; text-overflow: ellipsis; }
  .mrow.unread { font-weight: bold; }
  .mrow.sel { background: var(--navy); color: #fff; }
  .mrow:focus-visible { outline: 1px dotted #ff0; outline-offset: -2px; }
  .mailprev { background: #fff; box-shadow: var(--sunken); height: 170px; overflow: auto; padding: 8px 10px; font-size: 13px; margin-bottom: 3px; }
  .mailprev .mhint { color: var(--lo); }
  .mailprev .mh { border-bottom: 1px solid var(--lo); padding-bottom: 6px; margin-bottom: 8px; font-size: 12px; line-height: 1.5; }
  .mailprev .mb { white-space: pre-wrap; word-break: break-word; }


  /* ---------- Start menu apps ---------- */
  .startmenu .sm { display: flex; align-items: center; gap: 10px; }
  .startmenu li.desk { display: none; }
  @media (hover: hover) and (pointer: fine) and (min-width: 700px) { .startmenu li.desk { display: block; } }

  /* ---------- not a virus.exe (fake corruption prank) ---------- */
  :root { --pic-virus: url("not_a_virus.svg"); }
  .pic-virus { --pic: var(--pic-virus); }
  .glitchfx { position: fixed; inset: 0; z-index: 65; pointer-events: none; overflow: hidden; }
  .glitchfx i { position: absolute; left: 0; right: 0; mix-blend-mode: difference; }
  .bsod { position: fixed; inset: 0; z-index: 70; background: #0000aa; color: #fff; display: grid; place-items: center; padding: 24px; font-family: var(--mono); font-size: 16px; line-height: 1.5; cursor: pointer; }
  .bsod[hidden] { display: none; }
  .bsod-in { max-width: 720px; }
  .bsod p { margin: 0 0 18px; }
  .bsod-hd { text-align: center; }
  .bsod-hd span { background: #aaa; color: #0000aa; padding: 1px 10px; }
  .bsod-joke { color: #ffff55; }
  .bsod-ct { text-align: center; margin-top: 28px; }
  .bsod .cur { animation: bsodcur 1s steps(1) infinite; }
  @keyframes bsodcur { 50% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .bsod .cur { animation: none; } }


  /* ---------- Browser (Microslop Explorer) ---------- */
  :root { --pic-br: url("data:image/svg+xml,%3Csvg%20xmlns='http%3A//www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20shape-rendering='crispEdges'%3E%3Ccircle%20cx='16'%20cy='16'%20r='12.5'%20fill='%231084d0'%20stroke='%23000'/%3E%3Cpath%20d='M8%2011l4-3%203%202-1%203-3%201-1%203-3-2z'%20fill='%2300a000'/%3E%3Cpath%20d='M18%2014l4%200%203%204-2%204-3%201-1-3-2-2z'%20fill='%2300a000'/%3E%3Cpath%20d='M16%203.5c-5%205-5%2020%200%2025M16%203.5c5%205%205%2020%200%2025M4%2016h24'%20fill='none'%20stroke='%23fff'%20stroke-opacity='.7'/%3E%3Cellipse%20cx='16'%20cy='16'%20rx='15'%20ry='5'%20fill='none'%20stroke='%23c00000'%20stroke-width='1.5'%20transform='rotate%28-25%2016%2016%29'/%3E%3C/svg%3E"); }
  .pic-br { --pic: var(--pic-br); }
  .mini-br { background-image: var(--pic-br); }
  .window.brwin { display: none; position: fixed; left: 180px; top: 36px; width: 640px; max-width: calc(100vw - 24px); max-height: none; z-index: 4; flex-direction: column; }
  @media (hover: hover) and (pointer: fine) and (min-width: 700px) { .window.brwin:not([hidden]) { display: flex; } }
  .brtools { display: flex; gap: 4px; padding: 3px 2px 4px; }
  .brtools .btn-std { min-width: 0; padding: 4px 10px; }
  .braddr { display: flex; align-items: center; gap: 6px; padding: 2px 2px 4px; }
  .braddr label { font-size: 12px; }
  .braddr input { flex: 1; min-width: 0; font: 13px var(--mono); padding: 3px 5px; background: #fff; border: 0; box-shadow: var(--sunken); }
  .braddr input:focus-visible { outline: 1px dotted #000; outline-offset: -3px; }
  .braddr .btn-std { min-width: 0; padding: 3px 12px; }
  .brload { height: 4px; margin: 0 2px 3px; background: var(--face); }
  .brload div { height: 100%; width: 0; background: var(--navy); transition: width .5s linear; }
  .brview { background: #fff; color: #000; box-shadow: var(--sunken); height: 320px; overflow: auto; padding: 12px 16px; font: 14px/1.5 "Times New Roman", Times, serif; margin-bottom: 3px; }
  .brview h2 { margin: 0 0 8px; font-size: 22px; }
  .brview h3 { margin: 14px 0 4px; font-size: 16px; }
  .brview ul { margin: 4px 0 8px; padding-left: 24px; }
  .brview a { color: #0000ee; text-decoration: underline; cursor: pointer; }
  .brview a:visited { color: #551a8b; }
  .brview hr { border: 0; border-top: 2px groove #aaa; margin: 10px 0; }
  .brview .brsmall { font-size: 11px; color: #666; }
  .brview .brerr h2 { font-family: Arial, sans-serif; font-size: 18px; color: #000; }
  .brview .brerr { font-family: Arial, sans-serif; font-size: 13px; }
  .brview .brerr .brfoot { margin-top: 18px; color: #444; }
  .brview .goog { text-align: center; padding-top: 24px; }
  .brview .goog .logo { font: bold 48px Georgia, serif; letter-spacing: 2px; }
  .brview .goog input { width: 60%; font: 15px Arial, sans-serif; padding: 4px 6px; margin: 14px 0 10px; border: 2px inset #888; }
  .brview .goog button { font: 13px Arial, sans-serif; padding: 4px 12px; }
  .brview .spam { text-align: center; padding: 14px; background: #ffff99; border: 3px dashed #ff0000; }
  .brview .spam h2 { color: #ff0000; font-size: 28px; }
  .brview .spam button { font: bold 18px Arial, sans-serif; padding: 8px 18px; background: #00c000; color: #fff; border: 3px outset #6f6; cursor: pointer; }

  /* ---------- About Me.pdf viewer ---------- */
  .window.pdfwin { display: none; position: fixed; left: 250px; top: 24px; width: 640px; max-width: calc(100vw - 24px); max-height: none; z-index: 4; flex-direction: column; }
  @media (hover: hover) and (pointer: fine) and (min-width: 700px) { .window.pdfwin:not([hidden]) { display: flex; } }
  .pdftools { display: flex; gap: 4px; padding: 3px 2px 4px; }
  .pdftools .btn-std { min-width: 0; padding: 4px 12px; display: inline-block; color: #000; text-decoration: none; }
  .pdfview { background: #808080; box-shadow: var(--sunken); height: min(560px, calc(100vh - 190px)); margin-bottom: 3px; }
  .pdfview iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
  .pdffb { padding: 16px; color: #fff; }
  .pdffb a { color: #ff0; }