/* ==========================================================================
   STRATTON 95 — Windows 95 shell
   Style source: windows95.jpg reference (teal desktop, gray bevel chrome)
   ========================================================================== */

:root {
  --teal: #008080;
  --face: #c0c0c0;
  --face-light: #dfdfdf;
  --hilite: #ffffff;
  --shadow: #808080;
  --dkshadow: #0a0a0a;
  --title-a: #000080;
  --title-b: #1084d0;
  --title-inactive-a: #808080;
  --title-inactive-b: #b5b5b5;
  --sel-blue: #000080;
  --font-ui: Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
  /* raised / sunken bevels, authentic 2px construction */
  --bevel-raised: inset -1px -1px var(--dkshadow), inset 1px 1px var(--hilite),
                  inset -2px -2px var(--shadow), inset 2px 2px var(--face-light);
  --bevel-sunken: inset -1px -1px var(--hilite), inset 1px 1px var(--dkshadow),
                  inset -2px -2px var(--face-light), inset 2px 2px var(--shadow);
  --bevel-thin-sunken: inset -1px -1px var(--hilite), inset 1px 1px var(--shadow);
  --bevel-thin-raised: inset -1px -1px var(--shadow), inset 1px 1px var(--hilite);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #000;
  font-family: var(--font-ui);
  font-size: 11px;
  color: #000;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><path d='M4 1 L4 18 L8 14 L11 21 L14 20 L11 13 L17 13 Z' fill='white' stroke='black' stroke-width='1.2'/></svg>") 4 1, default;
  user-select: none;
  -webkit-user-select: none;
}

::selection { background: var(--sel-blue); color: #fff; }

button { font-family: var(--font-ui); font-size: 11px; cursor: inherit; }

/* ---------- Desktop ---------- */
#desktop-layer {
  position: fixed; inset: 0;
  background: var(--teal);
}
#desktop-layer[hidden] { display: none; }

#desktop {
  position: absolute; inset: 0 0 30px 0;
  overflow: hidden;
}

/* desktop icons */
.dicon {
  position: absolute;
  width: 84px;
  text-align: center;
  padding: 4px 2px;
  outline: none;
}
.dicon .dicon-img { width: 44px; height: 44px; margin: 0 auto 4px; image-rendering: pixelated; }
.dicon .dicon-img svg { width: 100%; height: 100%; display:block; }
.dicon .dicon-label {
  color: #fff;
  font-size: 11px;
  line-height: 1.15;
  padding: 1px 2px;
  text-shadow: 1px 1px 0 rgba(0,0,0,.85);
  word-wrap: break-word;
}
.dicon.selected .dicon-label { background: var(--sel-blue); outline: 1px dotted #ffe; text-shadow:none; }
.dicon.selected .dicon-img { filter: brightness(.72) sepia(.4) hue-rotate(180deg) saturate(2); }

/* the centerpiece: same size as the rest, just a bolder label */
.dicon.dicon-hero { width: 84px; }
.dicon.dicon-hero .dicon-img { filter: drop-shadow(1px 2px 2px rgba(0,0,0,.3)); }
.dicon.dicon-hero .dicon-label { font-weight: bold; letter-spacing: .2px; }

/* ---------- Taskbar ---------- */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 30px;
  background: var(--face);
  box-shadow: inset 0 1px var(--face-light), inset 0 2px var(--hilite);
  display: flex; align-items: center;
  padding: 3px 4px 3px 3px;
  gap: 4px;
  z-index: 5000;
}
.w95-btn {
  background: var(--face);
  border: none;
  box-shadow: var(--bevel-raised);
  padding: 2px 8px;
  height: 24px;
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: bold;
}
.w95-btn:active, .w95-btn.pressed {
  box-shadow: var(--bevel-sunken);
  padding: 3px 7px 1px 9px;
}
#start-btn { min-width: 62px; }
#start-logo { width: 16px; height: 16px; display: inline-block; }
#start-logo svg { width: 100%; height: 100%; display:block; }

.taskbar-divider {
  width: 2px; height: 22px;
  box-shadow: var(--bevel-thin-sunken);
  margin: 0 1px;
}
#task-buttons { flex: 1; display: flex; gap: 3px; overflow: hidden; }
.task-btn {
  background: var(--face);
  border: none;
  box-shadow: var(--bevel-raised);
  height: 24px;
  min-width: 60px; max-width: 170px;
  padding: 2px 6px;
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: normal;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.task-btn .tb-ico { width: 16px; height: 16px; flex: none; }
.task-btn .tb-ico svg { width:100%; height:100%; display:block; }
.task-btn.active {
  box-shadow: var(--bevel-sunken);
  font-weight: bold;
  background-image: repeating-conic-gradient(var(--face-light) 0 25%, var(--face) 0 50%);
  background-size: 4px 4px;
}
#tray {
  height: 24px;
  display: flex; align-items: center; gap: 7px;
  padding: 0 8px;
  box-shadow: var(--bevel-thin-sunken);
  font-size: 11px;
}
#tray-vol { font-size: 12px; }
.w95-sunken { box-shadow: var(--bevel-thin-sunken); }

/* ---------- Start menu ---------- */
#start-menu {
  position: fixed;
  left: 3px; bottom: 32px;
  width: 200px;
  background: var(--face);
  box-shadow: var(--bevel-raised), 2px 2px 6px rgba(0,0,0,.4);
  padding: 3px;
  display: flex;
  z-index: 6000;
}
#start-menu[hidden] { display: none; }
.sm-band {
  width: 24px;
  background: linear-gradient(180deg, #00544f, #008080 55%, #0d0d46);
  color: #c0f0e8;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 8px 0;
  font-family: var(--font-ui);
}
.sm-band b { color: #fff; }
.sm-items { flex: 1; display: flex; flex-direction: column; padding: 2px 0; }
.sm-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px;
  font-size: 11px;
  position: relative;
}
.sm-item .sm-ico { width: 22px; height: 22px; flex: none; }
.sm-item .sm-ico svg { width:100%; height:100%; display:block; }
.sm-item:hover, .sm-item.open { background: var(--sel-blue); color: #fff; }
.sm-item .sm-arrow { margin-left: auto; font-size: 9px; }
.sm-sep { height: 2px; margin: 3px 2px; box-shadow: var(--bevel-thin-sunken); }
.sm-flyout {
  position: absolute;
  left: 100%; top: -3px;
  min-width: 178px;
  background: var(--face);
  box-shadow: var(--bevel-raised), 2px 2px 6px rgba(0,0,0,.4);
  padding: 3px 0;
  display: none;
  color: #000;
}
.sm-item.open > .sm-flyout { display: block; }
.sm-flyout .sm-item { padding: 4px 10px 4px 8px; }

/* ---------- Windows ---------- */
.w95-window {
  position: absolute;
  background: var(--face);
  box-shadow: var(--bevel-raised), 3px 3px 8px rgba(0,0,0,.35);
  padding: 3px;
  min-width: 190px; min-height: 110px;
  display: flex; flex-direction: column;
  z-index: 100;
}
.w95-window.maximized { left: 0 !important; top: 0 !important; width: 100% !important; height: calc(100% - 30px) !important; }

.w95-titlebar {
  height: 19px;
  background: linear-gradient(90deg, var(--title-a), var(--title-b));
  color: #fff;
  display: flex; align-items: center;
  padding: 0 3px 0 4px;
  gap: 4px;
  flex: none;
}
.w95-window.inactive .w95-titlebar {
  background: linear-gradient(90deg, var(--title-inactive-a), var(--title-inactive-b));
  color: #d8d8d8;
}
.w95-titlebar .tb-icon { width: 14px; height: 14px; flex: none; }
.w95-titlebar .tb-icon svg { width:100%; height:100%; display:block; }
.w95-titlebar .tb-title {
  flex: 1;
  font-weight: bold; font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: .2px;
}
.tb-btns { display: flex; gap: 2px; }
.tb-btn {
  width: 16px; height: 14px;
  background: var(--face);
  border: none;
  box-shadow: var(--bevel-thin-raised), inset -2px -2px var(--shadow) ;
  font-size: 9px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  color: #000;
  font-family: "Marlett", var(--font-ui);
  padding-bottom: 2px;
}
.tb-btn:active { box-shadow: var(--bevel-thin-sunken); }

.w95-menubar {
  display: flex; gap: 2px;
  padding: 2px 2px 1px;
  flex: none;
}
.w95-menubar span { padding: 2px 6px; }
.w95-menubar span:hover { background: var(--sel-blue); color: #fff; }
.w95-menubar span u { text-decoration: underline; }

.w95-body {
  flex: 1;
  overflow: auto;
  position: relative;
}
.w95-body.inset { box-shadow: var(--bevel-sunken); background: #fff; margin: 1px; padding: 2px; }

.w95-statusbar {
  flex: none;
  display: flex; gap: 3px;
  padding-top: 3px;
}
.w95-statusbar .sb-cell {
  box-shadow: var(--bevel-thin-sunken);
  padding: 2px 8px;
  flex: 1;
  white-space: nowrap; overflow: hidden;
  color: #222;
}
.w95-statusbar .sb-cell.narrow { flex: 0 0 auto; }

/* window resize grip */
.w95-grip {
  position: absolute; right: 3px; bottom: 3px;
  width: 13px; height: 13px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 0 50%, var(--shadow) 50% 57%, var(--hilite) 57% 64%, transparent 64% 71%, var(--shadow) 71% 78%, var(--hilite) 78% 85%, transparent 85% 92%, var(--shadow) 92%);
}

/* ---------- Folder view ---------- */
.folder-view {
  background: #fff;
  min-height: 100%;
  padding: 8px 4px;
  display: flex; flex-wrap: wrap; align-content: flex-start;
}
.ficon {
  width: 86px;
  text-align: center;
  padding: 6px 2px;
  color: #000;
}
.ficon .ficon-img { width: 34px; height: 34px; margin: 0 auto 3px; }
.ficon .ficon-img svg { width:100%; height:100%; display:block; }
.ficon .ficon-label { font-size: 11px; line-height: 1.2; word-wrap: break-word; padding: 0 1px; }
.ficon.selected .ficon-label { background: var(--sel-blue); color: #fff; outline: 1px dotted #88a; }

/* ---------- Notepad-style docs ---------- */
.doc-body {
  background: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.42;
  padding: 10px 14px 24px;
  white-space: pre-wrap;
  color: #111;
  user-select: text;
  cursor: text;
  min-height: 100%;
}
.doc-body .redacted { background: #111; color: #111; padding: 0 2px; }
.doc-body .redacted:hover { color: #eee; }
.doc-body .stamp {
  display: inline-block;
  border: 3px double #b22;
  color: #b22;
  font-weight: bold;
  padding: 1px 8px;
  transform: rotate(-4deg);
  margin: 6px 0;
  letter-spacing: 2px;
}

/* scanned-document viewer (fake .bmp) */
.scan-wrap { background: #6b6b6b; padding: 18px; min-height: 100%; }
.scan-page {
  background: #f4f0e4;
  max-width: 560px; margin: 0 auto;
  padding: 26px 30px;
  box-shadow: 3px 4px 0 rgba(0,0,0,.45);
  transform: rotate(-.6deg);
  font-family: Georgia, "Times New Roman", serif;
  color: #23211a;
  user-select: text; cursor: text;
  position: relative;
}
.scan-page::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 70% 20%, rgba(120,90,20,.07), transparent 55%);
}
.scan-kicker { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #8a6d2f; border-bottom: 1px solid #8a6d2f; padding-bottom: 5px; margin-bottom: 12px; display:flex; justify-content: space-between;}
.scan-head { font-size: 27px; line-height: 1.08; font-weight: bold; margin-bottom: 4px; }
.scan-dek { font-style: italic; font-size: 13.5px; color: #444; margin-bottom: 12px; }
.scan-cols { column-count: 2; column-gap: 18px; font-size: 12px; line-height: 1.5; text-align: justify; }
.scan-cols p { margin-bottom: 8px; }
.scan-cols .dropcap::first-letter { font-size: 30px; float: left; line-height: .85; padding-right: 4px; }
.scan-pull { border-top: 2px solid #23211a; border-bottom: 2px solid #23211a; padding: 8px 2px; margin: 8px 0; font-size: 15px; font-style: italic; text-align: center; break-inside: avoid; }
.scan-note {
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
  color: #1b3f8f;
  transform: rotate(1.6deg);
  margin-top: 14px;
  font-size: 14px;
}

/* business card viewer */
.card-wrap { background: #6b6b6b; padding: 30px; min-height: 100%; display:flex; align-items:center; justify-content:center; }
.biz-card {
  width: 340px; background: #fdfcf7;
  padding: 22px 24px;
  box-shadow: 4px 5px 0 rgba(0,0,0,.5);
  font-family: Georgia, serif;
  transform: rotate(.8deg);
  color: #1a1a1a;
}
.biz-card .bc-org { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; text-align: center; margin-bottom: 10px; }
.biz-card .bc-seal { width: 44px; height: 44px; margin: 0 auto 10px; border: 2px solid #26406b; border-radius: 50%; display:flex; align-items:center; justify-content:center; font-size: 8px; text-align:center; color:#26406b; font-weight:bold; }
.biz-card .bc-name { font-size: 17px; font-weight: bold; text-align: center; }
.biz-card .bc-title { font-size: 11px; font-style: italic; text-align: center; margin-bottom: 10px; }
.biz-card .bc-foot { font-size: 10.5px; text-align: center; border-top: 1px solid #999; padding-top: 8px; }
.biz-card .bc-hand { font-family: "Comic Sans MS", cursive; color: #1b3f8f; font-size: 12px; margin-top: 12px; transform: rotate(-2deg); }

/* ---------- Dialogs ---------- */
.w95-dialog-body { padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; background: var(--face); }
.w95-dialog-body .dlg-ico { width: 36px; height: 36px; flex: none; }
.w95-dialog-body .dlg-ico svg { width: 100%; height: 100%; display: block; }
.w95-dialog-body .dlg-text { font-size: 11px; line-height: 1.5; padding-top: 3px; }
.dlg-btn-row { display: flex; justify-content: center; gap: 8px; padding: 4px 0 12px; background: var(--face); }
.dlg-btn {
  min-width: 78px; height: 23px;
  background: var(--face); border: none;
  box-shadow: var(--bevel-raised);
}
.dlg-btn:active { box-shadow: var(--bevel-sunken); }
.dlg-btn.default { outline: 1px dotted #000; outline-offset: -5px; box-shadow: 0 0 0 1px #000, var(--bevel-raised); }
.dlg-input {
  font-family: var(--font-ui); font-size: 12px;
  border: none; box-shadow: var(--bevel-sunken);
  background: #fff; padding: 4px 6px; width: 100%;
  outline: none; cursor: text;
}

/* properties dialog */
.props-body { padding: 10px; background: var(--face); font-size: 11px; }
.props-tabs { display: flex; margin-bottom: -1px; padding-left: 2px; }
.props-tab { padding: 4px 12px; box-shadow: var(--bevel-thin-raised); background: var(--face); position: relative; z-index: 2; }
.props-panel { box-shadow: var(--bevel-raised); padding: 14px; background: var(--face); }
.props-row { display: flex; padding: 3px 0; }
.props-row .pk { width: 118px; color: #333; }
.props-sep { height: 2px; margin: 8px 0; box-shadow: var(--bevel-thin-sunken); }

/* recycle bin toolbar */
.bin-toolbar { display: flex; gap: 4px; padding: 3px; flex: none; }
.bin-note { padding: 3px 6px; color: #444; font-style: italic; }

/* generic content pad */
.pad { padding: 10px 12px; font-size: 11px; line-height: 1.5; }

/* media player */
.mp-body { background: var(--face); padding: 8px; }
.mp-screen { background: #000; height: 120px; box-shadow: var(--bevel-sunken); display:flex; align-items:center; justify-content:center; color:#0f0; font-family: var(--font-mono); }
.mp-controls { display: flex; gap: 3px; padding-top: 6px; }
.mp-controls .dlg-btn { min-width: 34px; font-size: 10px; }

/* phone dialer */
.dial-body { background: var(--face); padding: 12px; display: flex; gap: 12px; }
.dial-num { font-family: var(--font-mono); font-size: 15px; background: #fff; box-shadow: var(--bevel-sunken); padding: 6px 8px; margin-bottom: 8px; min-height: 30px; }
.dial-grid { display: grid; grid-template-columns: repeat(3, 44px); gap: 4px; }
.dial-grid .dlg-btn { min-width: 0; height: 30px; font-size: 13px; font-weight: bold; }
.dial-status { margin-top: 8px; font-size: 11px; color: #333; min-height: 28px; font-family: var(--font-mono); }


/* scrollbars (WebKit) */
.w95-body::-webkit-scrollbar, .folder-view::-webkit-scrollbar, .term-page::-webkit-scrollbar { width: 16px; height: 16px; }
.w95-body::-webkit-scrollbar-track, .term-page::-webkit-scrollbar-track {
  background: repeating-conic-gradient(#fff 0 25%, var(--face) 0 50%);
  background-size: 2px 2px;
}
.w95-body::-webkit-scrollbar-thumb, .term-page::-webkit-scrollbar-thumb {
  background: var(--face);
  box-shadow: var(--bevel-raised);
}
.w95-body::-webkit-scrollbar-button, .term-page::-webkit-scrollbar-button {
  background: var(--face);
  box-shadow: var(--bevel-raised);
  height: 16px; width: 16px;
}

/* ==========================================================================
   v2 — authentic PNG icons, widgets, sticky note, Belfort Game
   ========================================================================== */

/* PNG icons everywhere an SVG used to be */
.w95icon { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; display: block; }
.iconwrap { position: relative; display: block; width: 100%; height: 100%; }
.icon-badge {
  position: absolute; right: -3px; bottom: -2px;
  font-size: 13px; line-height: 1;
  color: #d02040;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff;
  pointer-events: none;
}
.dicon .dicon-img, .ficon .ficon-img { display: flex; align-items: center; justify-content: center; }
.dicon.selected .dicon-img img { filter: brightness(.6) sepia(.5) hue-rotate(175deg) saturate(3); }

/* ---------- media player widget (unstoppable) ---------- */
#mp-widget {
  position: absolute; right: 12px; top: 40px;
  width: 232px;
  background: var(--face);
  box-shadow: var(--bevel-raised), 3px 3px 9px rgba(0,0,0,.45);
  padding: 3px;
  z-index: 66;
}
.mpw-title {
  height: 17px;
  background: linear-gradient(90deg, var(--title-a), var(--title-b));
  color: #fff; font-weight: bold; font-size: 10px;
  display: flex; align-items: center; gap: 5px;
  padding: 0 4px;
  cursor: move;
}
.mpw-title .mpw-ico { width: 13px; height: 13px; }
.mpw-title .mpw-x { margin-left: auto; font-size: 9px; padding: 0 3px; background: var(--face); color: #000; box-shadow: var(--bevel-thin-raised); }
.mpw-gif { margin-top: 3px; box-shadow: var(--bevel-sunken); background: #000; }
.mpw-gif img { width: 100%; height: 104px; object-fit: cover; display: block; }
.mpw-viz {
  display: flex; gap: 2px; align-items: flex-end;
  height: 26px; padding: 3px 2px 2px;
  background: #000; box-shadow: var(--bevel-sunken);
  margin-top: 3px;
}
.mpw-viz span {
  flex: 1; height: 100%;
  background: linear-gradient(0deg, #0a5, #3f6 60%, #ff4);
  transform-origin: bottom;
  transform: scaleY(.05);
}
.mpw-viz.on span { animation: vizbar .62s ease-in-out infinite alternate; }
@keyframes vizbar {
  0%   { transform: scaleY(.12); }
  30%  { transform: scaleY(.7); }
  60%  { transform: scaleY(.35); }
  100% { transform: scaleY(.95); }
}
.mpw-track { font-size: 10px; font-weight: bold; padding: 4px 2px 0; display: flex; justify-content: space-between; }
.mpw-time { font-weight: normal; font-family: var(--font-mono); font-size: 10px; }
.mpw-status { font-size: 9px; color: #666; font-family: var(--font-mono); padding: 1px 2px 3px; }
.mpw-status.live { color: #087a08; }
.mpw-controls { display: flex; gap: 3px; align-items: center; padding-bottom: 2px; }
.mpw-controls .dlg-btn { min-width: 30px; height: 20px; font-size: 9px; }
#mpw-vol { flex: 1; height: 16px; accent-color: #087a08; min-width: 40px; }

/* the jumping refusal */
.mp-deny {
  position: fixed; z-index: 9600;
  transform: translateX(-50%);
  background: #ffffe1; border: 1px solid #000;
  padding: 2px 8px;
  font-size: 12px; font-weight: bold;
  white-space: nowrap;
  pointer-events: none;
  animation: denyjump 1.4s cubic-bezier(.2,.9,.3,1) forwards;
}
@keyframes denyjump {
  0%   { opacity: 0; transform: translate(-50%, 6px) scale(.6) rotate(-4deg); }
  12%  { opacity: 1; transform: translate(-50%, -22px) scale(1.15) rotate(3deg); }
  28%  { transform: translate(-50%, -12px) scale(1) rotate(-2deg); }
  45%  { transform: translate(-50%, -26px) scale(1.05) rotate(1deg); }
  62%  { transform: translate(-50%, -18px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -40px) scale(.9); }
}

/* ---------- The Long Island Ledger ---------- */
#news-widget {
  position: absolute; left: 10px; bottom: 12px;
  width: 330px;
  background: #f2ecd8;
  color: #1c1a14;
  box-shadow: 2px 3px 0 rgba(0,0,0,.4), 0 0 0 1px #b8b09a, 6px 8px 18px rgba(0,0,0,.35);
  padding: 8px 10px 6px;
  z-index: 55;
  font-family: Georgia, "Times New Roman", serif;
  transform: rotate(-.5deg);
}
.lil-mast {
  display: flex; align-items: baseline; justify-content: space-between;
  cursor: move;
}
.lil-name { font-size: 17px; font-weight: bold; letter-spacing: .5px; font-variant: small-caps; }
.lil-price, .lil-est { font-size: 8.5px; letter-spacing: 1px; color: #6b6350; }
.lil-rule { border-top: 2px solid #1c1a14; border-bottom: 1px solid #1c1a14; height: 3px; margin: 3px 0 6px; }
#lil-article { min-height: 150px; }
.lil-meta { display: flex; justify-content: space-between; font-size: 8.5px; letter-spacing: 1.2px; color: #6b6350; margin-bottom: 3px; }
.lil-tag { font-weight: bold; padding: 0 4px; border: 1px solid currentColor; }
.lil-tag.real { color: #1d5c2e; }
.lil-tag.tape { color: #8a2418; }
.lil-head { font-size: 16.5px; line-height: 1.05; font-weight: bold; margin-bottom: 2px; }
.lil-deck { font-size: 10.5px; font-style: italic; color: #45402f; margin-bottom: 5px; }
.lil-photo { float: right; width: 128px; margin: 1px 0 4px 8px; border: 1px solid #1c1a14; background: #fff; padding: 2px 2px 1px; }
.lil-photo img {
  width: 100%; height: 84px; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.08) sepia(.22) brightness(1.02);
}
.lil-cap { font-size: 7.8px; line-height: 1.25; padding: 2px 1px 1px; color: #45402f; font-style: italic; }
.lil-body { font-size: 9.6px; line-height: 1.38; text-align: justify; }
.lil-foot { border-top: 1px solid #9a927c; margin-top: 6px; padding-top: 3px; font-size: 7.5px; letter-spacing: 1.4px; color: #6b6350; text-align: center; }
.lil-flip { animation: lilflip .45s ease-out; }
@keyframes lilflip {
  0% { opacity: 0; transform: translateY(6px) skewX(-2deg); filter: blur(1px); }
  100% { opacity: 1; transform: none; filter: none; }
}

/* ---------- the ponzi sticky note ---------- */
#pn-arrow {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 59;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.22));
}
#ponzi-note {
  position: absolute;
  width: 178px;
  z-index: 60;
  cursor: move;
}
#pn-arrow-layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 59;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.25));
}
.pn-paper {
  background: linear-gradient(180deg, #fff3a1, #ffe97a 80%, #f4d95c);
  color: #253261;
  font-family: "Comic Sans MS", "Bradley Hand", "Segoe Print", cursive;
  font-size: 16px; line-height: 1.25;
  padding: 14px 14px 10px;
  transform: rotate(-5deg);
  box-shadow: 2px 4px 0 rgba(0,0,0,.28), 8px 12px 18px rgba(0,0,0,.25);
  position: relative;
}
.pn-paper::before {
  content: "";
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(2deg);
  width: 74px; height: 18px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.pn-not { color: #b02020; font-weight: bold; text-decoration: underline; }
.pn-sig { display: block; text-align: right; font-size: 12px; margin-top: 6px; color: #4a5680; }
.pn-sig b { color: #253261; }

/* ---------- Belfort Game ---------- */
.bg-root {
  background: #0c0c0a;
  color: #e8e8dc;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  min-height: 100%;
  display: flex; flex-direction: column;
  padding: 6px;
  gap: 6px;
}
.bg-tape {
  background: #ff9900; color: #000;
  font-size: 9.5px; font-weight: bold;
  padding: 2px 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bg-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.bg-stat {
  border: 1px solid #262618; background: #060604;
  padding: 3px 7px;
  display: flex; flex-direction: column;
}
.bg-stat .k { font-size: 8.5px; color: #8a8a72; letter-spacing: .5px; }
.bg-stat .v { font-size: 14px; color: #ffb400; font-weight: 700; }
.bg-chartwrap { position: relative; }
#bg-chart { width: 100%; height: 128px; display: block; background: #030303; border: 1px solid #1c1c14; }
.bg-freeze {
  position: absolute; inset: 0;
  background: rgba(10,10,40,.55);
  display: none; align-items: center; justify-content: center;
  color: #8ab4ff; font-weight: bold; font-size: 12px;
  letter-spacing: 1px;
}
.bg-heat { display: flex; align-items: center; gap: 6px; font-size: 9px; }
.bg-heat-label { color: #8a8a72; letter-spacing: 1px; }
.bg-heat-track { flex: 1; height: 10px; border: 1px solid #333; background: #060604; }
.bg-heat-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #2bd12b, #ffb400 55%, #ff3b30); transition: width .3s; }
.bg-heat-fill.hot { animation: heatpulse .5s steps(2) infinite; }
@keyframes heatpulse { 50% { filter: brightness(1.6); } }
.bg-yacht { font-size: 17px; }
.bg-btns { display: flex; flex-direction: column; gap: 5px; }
.bg-btn {
  border: none; font-family: inherit;
  font-size: 12.5px; font-weight: 700;
  padding: 8px 6px;
  box-shadow: var(--bevel-raised);
}
.bg-btn:active { box-shadow: var(--bevel-sunken); }
.bg-btn.buy { background: #1fd11f; color: #002000; }
.bg-btn.buy:hover { background: #5aff5a; }
.bg-btn.sell { background: #ff9900; color: #201000; }
.bg-btn.sell:hover { background: #ffb52e; }
.bg-event {
  min-height: 30px;
  border: 1px dashed #3a3a2a;
  color: #cfcfc2; font-size: 9.8px; line-height: 1.3;
  padding: 4px 6px;
}
.bg-event.flash { animation: lilflip .4s ease-out; }
.bg-gifmini { height: 22px; vertical-align: middle; margin-left: 4px; filter: grayscale(.3); }
.bg-foot { display: flex; align-items: center; gap: 8px; font-size: 8.5px; color: #8a8a72; }
.bg-foot span { flex: 1; text-align: center; }
.bg-help {
  width: 20px; height: 18px;
  background: var(--face); border: none;
  box-shadow: var(--bevel-thin-raised);
  font-weight: bold; font-size: 10px;
}

/* ---------- photo viewer ---------- */
.photo-wrap {
  background: #55524a;
  min-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px; gap: 8px;
}
.photo-wrap img {
  max-width: 100%; max-height: calc(100% - 30px);
  border: 3px solid #f4f0e4;
  box-shadow: 4px 5px 12px rgba(0,0,0,.5);
}
.photo-cap {
  color: #ddd8c8; font-size: 10.5px; font-style: italic;
  font-family: Georgia, serif;
  text-align: center;
}

/* ---------- FLOOR MONITOR — Win98 surveillance app ---------- */
#floor-widget {
  position: absolute; right: 12px; bottom: 14px;
  width: 292px;
  background: var(--face);
  box-shadow: var(--bevel-raised), 4px 5px 14px rgba(0,0,0,.45);
  padding: 3px;
  z-index: 64;
  font-family: var(--font-ui);
}
#floor-widget.rolled > *:not(.fm-titlebar) { display: none; }
.fm-titlebar {
  height: 18px;
  background: linear-gradient(90deg, var(--title-a), var(--title-b));
  color: #fff;
  display: flex; align-items: center; gap: 5px;
  padding: 0 3px 0 4px;
  cursor: move;
}
.fm-tico { width: 14px; height: 14px; }
.fm-tico img, .fm-tico svg { width: 100%; height: 100%; display: block; }
.fm-ttitle { font-weight: bold; font-size: 11px; flex: 1; }
.fm-rec {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e03030;
  box-shadow: 0 0 5px #ff5050, inset 0 0 2px #801010;
  animation: recblink 1.6s steps(1) infinite;
  margin-right: 2px;
}
@keyframes recblink { 50% { opacity: .25; } }
.fm-tbtn {
  width: 16px; height: 14px;
  background: var(--face); border: none;
  box-shadow: var(--bevel-thin-raised), inset -2px -2px var(--shadow);
  font-size: 8px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding-bottom: 2px;
}
.fm-tbtn:active { box-shadow: var(--bevel-thin-sunken); }
.fm-menubar {
  display: flex; gap: 2px; align-items: center;
  padding: 2px 2px 1px;
  font-size: 11px;
}
.fm-menubar span[data-menu] { padding: 1px 6px; }
.fm-menubar span[data-menu]:hover { background: var(--sel-blue); color: #fff; }
.fm-menubar .fm-cam { margin-left: auto; font-size: 9px; color: #555; padding-right: 4px; }
.fm-toolbar {
  display: flex; gap: 3px;
  padding: 2px;
  border-top: 1px solid var(--hilite);
  box-shadow: 0 -1px 0 var(--shadow);
}
.fm-tool {
  flex: 1;
  background: var(--face); border: none;
  box-shadow: var(--bevel-thin-raised);
  font-size: 10px; height: 20px;
  white-space: nowrap; overflow: hidden;
}
.fm-tool:active { box-shadow: var(--bevel-thin-sunken); }
.fm-quota { padding: 3px 2px 1px; }
.fm-quota-track {
  height: 13px;
  box-shadow: var(--bevel-thin-sunken);
  background: #fff;
  padding: 2px;
}
.fm-quota-fill {
  height: 100%; width: 0%;
  background: repeating-linear-gradient(90deg, var(--sel-blue) 0 7px, transparent 7px 9px);
  transition: width .5s;
}
.fm-quota-label { font-size: 9.5px; color: #333; padding: 2px 1px 1px; }
.fm-head {
  display: grid;
  grid-template-columns: 16px 1fr 56px 36px 54px;
  gap: 0;
  padding: 0 2px;
  margin-top: 2px;
}
.fm-head span {
  background: var(--face);
  box-shadow: var(--bevel-thin-raised), inset -2px -2px var(--shadow);
  font-size: 11px;
  padding: 2px 5px 3px;
  white-space: nowrap; overflow: hidden;
  border-right: 1px solid var(--shadow);
}
.fm-head span[data-sort] { cursor: pointer; }
.fm-head span[data-sort]:active { box-shadow: var(--bevel-thin-sunken); padding: 3px 4px 2px 6px; }
.fm-head span.sorted { font-weight: bold; }
.fm-head span:nth-child(4), .fm-head span:nth-child(5) { text-align: right; }
.fm-rows {
  margin: 0 2px;
  height: 198px; overflow-y: auto;
  background: #fff;
  box-shadow: var(--bevel-sunken);
  padding: 2px 1px;
  font-family: var(--font-ui);
  scrollbar-width: none;
  position: relative;
}
.fm-rows::-webkit-scrollbar { display: none; }
.fm-row {
  display: grid;
  grid-template-columns: 16px 1fr 56px 36px 54px;
  gap: 0;
  align-items: center;
  height: 16px;
  padding: 0 4px 0 3px;
  font-size: 11px;
  color: #000;
}
.fm-row.selected { background: var(--sel-blue); outline: 1px dotted #ffe; outline-offset: -1px; }
.fm-row.selected span { color: #fff !important; }
.fm-row.top .fm-name, .fm-row.top .fm-made { font-weight: bold; }
.fm-row.sale { background: #ffffb8; }
.fm-name { color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 4px; }
.fm-st { color: #555; white-space: nowrap; overflow: hidden; }
.fm-calls { text-align: right; color: #000; }
.fm-made { text-align: right; color: #000; }
/* flat Win9x LED indicators — bevelled square, no glow */
.fm-led {
  width: 9px; height: 9px;
  border: 1px solid #555;
  box-shadow: inset 1px 1px rgba(255,255,255,.65), inset -1px -1px rgba(0,0,0,.25);
  background: #d4d0c8;
}
.fm-led.call  { background: #00a800; }
.fm-led.dial  { background: #e8a800; animation: fmblink .5s steps(1) infinite; }
.fm-led.hold  { background: #e8a800; }
.fm-led.off   { background: #a0a0a0; }
.fm-led.ludes { background: #a040c0; }
.fm-led.idle  { background: #d4d0c8; }
@keyframes fmblink { 50% { background: #d4d0c8; } }
.fm-chat {
  margin: 3px 2px 0;
  box-shadow: var(--bevel-thin-sunken);
  background: #fff;
  overflow: hidden;
  white-space: nowrap;
  font-size: 10px; color: #333;
  padding: 2px 0;
}
.fm-chat-text {
  display: inline-block;
  padding-left: 100%;
  animation: fmchat 26s linear infinite;
  font-style: italic;
}
@keyframes fmchat { to { transform: translateX(-100%); } }
.fm-statusbar {
  display: flex; gap: 3px;
  padding: 3px 2px 1px;
}
.fm-sb {
  box-shadow: var(--bevel-thin-sunken);
  font-size: 9.5px; color: #222;
  padding: 2px 6px;
  white-space: nowrap; overflow: hidden;
}
.fm-sb.wide { flex: 1; text-align: right; }

/* ---------- photo viewer ---------- */
.photo-wrap {
  background: #55524a;
  min-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px; gap: 8px;
}
.photo-wrap img {
  max-width: 100%; max-height: calc(100% - 30px);
  border: 3px solid #f4f0e4;
  box-shadow: 4px 5px 12px rgba(0,0,0,.5);
}
.photo-cap {
  color: #ddd8c8; font-size: 10.5px; font-style: italic;
  font-family: Georgia, serif;
  text-align: center;
}

/* ==================== PHONE OVERRIDES (must stay last) ==================== */
@media (max-width: 700px) {
  /* icon grid tightened; special icons pulled onto the phone canvas */
  .dicon { width: 72px; }
  .dicon .dicon-img { width: 38px; height: 38px; }
  .dicon .dicon-label { font-size: 10px; }
  .dicon.dicon-hero { width: 118px; }
  .dicon.dicon-hero .dicon-img { width: 76px; height: 76px; }
  .dicon.dicon-hero .dicon-label { font-size: 11.5px; }

  /* sticky note smaller so it never smothers the hero */
  #ponzi-note { width: 132px; }
  .pn-paper { font-size: 12px; padding: 9px 10px 7px; }
  .pn-sig { font-size: 10px; }

  /* phones: no Ledger, no player, no Floor Monitor — a clean desk */
  #news-widget, #mp-widget, #floor-widget { display: none !important; }

  .w95-body, .folder-view, .term-page {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  /* window chrome: bigger tap targets */
  .w95-titlebar { height: 24px; }
  .tb-btn { width: 22px; height: 19px; font-size: 11px; }
  .dlg-btn { min-width: 86px; height: 30px; }
  .w95-menubar span { padding: 5px 8px; }
  .ficon { width: 30%; padding: 10px 2px; }

  /* windows & dialogs use the whole screen politely */
  .w95-window { min-width: 150px; }
  .w95-titlebar .tb-title { font-size: 10.5px; }
  .task-btn { min-width: 42px; max-width: 110px; }
  #start-menu { width: 186px; }

  /* photo viewer paddings */
  .photo-wrap { padding: 6px; }
  .scan-wrap { padding: 8px; }
  .scan-page { padding: 16px 14px; }
  .scan-cols { column-count: 1; }
}

/* lighter CRT on phones — keep the look, drop the GPU hogs */
@media (max-width: 700px) {
  .crt-grain { display: none; }
  .crt-flicker::before { display: none; }
  .crt-flicker::after { display: none; }
  body.crt-on { animation: none; }
  body.crt-on #boot-layer, body.crt-on #desktop-layer, body.crt-on #shutdown-layer { animation: none; }
  .crt-vignette { border-radius: 0; }
}

/* ==========================================================================
   SUBSTANCES — the two ten-second modes
   ========================================================================== */
.sub-hud {
  position: fixed; top: 8px; left: 50%;
  transform: translateX(-50%);
  z-index: 9800;
  display: flex; align-items: center; gap: 10px;
  padding: 5px 14px;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px;
  pointer-events: none;
  border: 2px solid;
}
.sub-hud.coke {
  background: rgba(10,0,0,.82); color: #fff;
  border-color: #ff3030;
  box-shadow: 0 0 22px rgba(255,40,40,.7);
  animation: hudthrob .18s steps(2) infinite;
}
.sub-hud.script {
  background: rgba(0,0,10,.82); color: #b98cff;
  border-color: #7a4ad0;
  box-shadow: 0 0 22px rgba(122,74,208,.5);
}
.sub-hud-t { color: #ffd75e; }
@keyframes hudthrob { 50% { transform: translateX(-50%) scale(1.05); } }

/* ---------------- COCAINE: everything 10x ---------------- */
body.mode-coke #desktop-layer {
  animation: cokeshake .09s steps(2) infinite, cokepulse .32s ease-in-out infinite !important;
  filter: saturate(1.7) contrast(1.2) brightness(1.08);
}
@keyframes cokeshake {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(-3px, 2px) rotate(-.25deg); }
  50%  { transform: translate(3px, -2px) rotate(.25deg); }
  75%  { transform: translate(-2px, -3px) rotate(-.15deg); }
  100% { transform: translate(2px, 3px) rotate(.15deg); }
}
@keyframes cokepulse {
  0%, 100% { zoom: 1; }
  50% { zoom: 1.012; }
}
body.mode-coke::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 9700;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: cokeflash .14s steps(3) infinite;
}
@keyframes cokeflash {
  0%   { background: rgba(255,0,60,.09); }
  33%  { background: rgba(0,255,120,.07); }
  66%  { background: rgba(60,120,255,.09); }
  100% { background: rgba(255,220,0,.05); }
}
body.mode-coke #crt .crt-scanlines { animation: cokelines .1s linear infinite; }
@keyframes cokelines { to { transform: translateY(3px); } }
.coke-ghost {
  position: fixed;
  width: 18px; height: 18px;
  margin: -2px 0 0 -2px;
  z-index: 9750;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><path d='M4 1 L4 18 L8 14 L11 21 L14 20 L11 13 L17 13 Z' fill='%23fff' stroke='%23f33' stroke-width='1.2'/></svg>") no-repeat center/contain;
  animation: ghostfade .32s linear forwards;
}
@keyframes ghostfade {
  from { opacity: .75; transform: scale(1); }
  to   { opacity: 0;   transform: scale(1.6); }
}

/* ---------------- PRESCRIPTION: everything 0.25x ---------------- */
body.mode-script #desktop-layer {
  animation: ludedrift 9s ease-in-out infinite !important;
  filter: saturate(.42) brightness(.86) blur(1.3px);
  transition: filter 1.6s ease;
}
@keyframes ludedrift {
  0%   { transform: rotate(0deg) translateY(0) skewX(0deg); }
  30%  { transform: rotate(-1.1deg) translateY(7px) skewX(.7deg); }
  60%  { transform: rotate(.8deg) translateY(-4px) skewX(-.5deg); }
  100% { transform: rotate(-.4deg) translateY(3px) skewX(.3deg); }
}
body.mode-script .w95-window {
  animation: ludewindow 7s ease-in-out infinite;
  transition: transform 2s ease;
}
@keyframes ludewindow {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(1.4deg) translateY(6px); }
}
body.mode-script .dicon-label, body.mode-script .tprose, body.mode-script .doc-body {
  transform: skewY(1.2deg);
  transition: transform 3s ease;
}
body.mode-script::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 9700; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, rgba(20,0,40,.5) 100%);
  animation: ludebreathe 5s ease-in-out infinite;
}
@keyframes ludebreathe { 50% { opacity: .45; } }

/* phones: keep the joke, drop the heaviest filters */
@media (max-width: 700px) {
  body.mode-coke #desktop-layer { animation: cokeshake .12s steps(2) infinite !important; filter: saturate(1.5); }
  body.mode-script #desktop-layer { filter: saturate(.5) brightness(.9); }
  .coke-ghost { display: none; }
}

/* ==========================================================================
   STRATTON MAIL — Win9x message client
   ========================================================================== */
.mail-root { display: flex; flex-direction: column; height: 100%; background: var(--face); }

.mail-tools {
  display: flex; align-items: center; gap: 2px;
  padding: 3px 4px;
  border-top: 1px solid var(--hilite);
  box-shadow: 0 -1px 0 var(--shadow), 0 1px 0 var(--shadow) inset;
  flex: none;
}
.mail-tool {
  background: var(--face); border: none;
  display: flex; flex-direction: column; align-items: center;
  gap: 1px;
  padding: 3px 8px 2px;
  font-size: 9.5px;
  min-width: 46px;
}
.mail-tool:hover { box-shadow: var(--bevel-thin-raised); }
.mail-tool:active { box-shadow: var(--bevel-thin-sunken); }
.mt-ico { width: 20px; height: 20px; }
.mt-ico svg, .mt-ico img { width: 100%; height: 100%; display: block; }
.mail-tools-sep { flex: 1; }
.mail-acct { font-size: 10px; color: #555; padding-right: 6px; }

.mail-main { flex: 1; display: flex; overflow: hidden; }

.mail-tree {
  width: 150px; flex: none;
  background: #fff;
  box-shadow: var(--bevel-sunken);
  margin: 3px;
  padding: 3px 0;
  overflow-y: auto;
}
.mail-fold {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  font-size: 11px;
}
.mail-fold.sel { background: var(--sel-blue); color: #fff; }
.mf-ico { width: 16px; height: 16px; flex: none; }
.mf-ico svg, .mf-ico img { width: 100%; height: 100%; display: block; }
.mf-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mail-right { flex: 1; display: flex; flex-direction: column; margin: 3px 3px 3px 0; overflow: hidden; }

.mail-cols, .mail-row {
  display: grid;
  grid-template-columns: 18px 20px 132px 1fr 118px;
  gap: 0; align-items: center;
}
.mail-cols { flex: none; }
.mail-cols span {
  background: var(--face);
  box-shadow: var(--bevel-thin-raised), inset -2px -2px var(--shadow);
  font-size: 10.5px;
  padding: 2px 5px 3px;
  border-right: 1px solid var(--shadow);
  white-space: nowrap; overflow: hidden;
}
.mail-list {
  height: 40%;
  overflow-y: auto;
  background: #fff;
  box-shadow: var(--bevel-sunken);
  padding: 1px;
}
.mail-row {
  height: 17px;
  padding: 0 2px;
  font-size: 11px;
  color: #000;
}
.mail-row.unread { font-weight: bold; }
.mail-row.sel { background: var(--sel-blue); color: #fff; outline: 1px dotted #ffe; outline-offset: -1px; }
.mail-row.sel * { color: #fff; }
.mc-flag { text-align: center; }
.mc-bang { color: #c02020; font-weight: bold; }
.mail-row.sel .mc-bang { color: #ffd0d0; }
.mc-ico { width: 15px; height: 15px; }
.mc-ico svg, .mc-ico img { width: 100%; height: 100%; display: block; }
.mc-from, .mc-subj, .mc-date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.mc-date { font-size: 10px; color: #444; }
.mail-row.sel .mc-date { color: #dfe4ff; }
.mail-empty { padding: 14px; color: #777; font-style: italic; font-size: 11px; }

.mail-read {
  flex: 1;
  overflow-y: auto;
  background: #fff;
  box-shadow: var(--bevel-sunken);
  margin-top: 3px;
  padding: 10px 12px;
}
.mail-idle { color: #777; font-size: 11.5px; line-height: 1.7; }
.mail-idle small { color: #999; }
.mr-head { display: flex; gap: 12px; border-bottom: 1px solid #c8c4b8; padding-bottom: 8px; }
.mr-photo {
  width: 72px; height: 72px; flex: none;
  border: 1px solid #808080;
  box-shadow: 1px 1px 0 #fff;
  object-fit: cover;
  filter: saturate(.9) contrast(1.02);
}
.mr-photo.mr-fallback { display: block; image-rendering: pixelated; background: var(--face); }
.mr-photo.mr-fallback svg { width: 100%; height: 100%; display: block; }
.mr-fields { flex: 1; font-size: 11px; line-height: 1.6; min-width: 0; }
.mr-fields div { display: flex; gap: 6px; }
.mr-fields span { width: 52px; color: #666; flex: none; }
.mr-fields b { font-weight: bold; }
.mr-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px; line-height: 1.65;
  color: #111;
  padding: 12px 2px 8px;
  max-width: 70ch;
}
.mr-sig {
  border-top: 1px solid #d8d4c8;
  padding-top: 6px;
  font-size: 11px; color: #555;
}
.mr-sig span { color: #888; font-style: italic; }
.mail-status { flex: none; padding: 3px; }

/* unread-mail badge on the desktop icon */
.dicon.has-mail .dicon-img::after {
  content: "";
  position: absolute; right: 2px; top: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 6px rgba(255,59,48,.9);
  animation: amblink 1s steps(1) infinite;
}
@keyframes amblink { 50% { opacity: .25; } }
.dicon .dicon-img { position: relative; }

@media (max-width: 700px) {
  .mail-tree { display: none; }
  .mail-cols, .mail-row { grid-template-columns: 14px 0 96px 1fr 0; }
  .mail-cols span:nth-child(2), .mail-cols span:nth-child(5),
  .mail-row .mc-ico, .mail-row .mc-date { display: none; }
  .mail-list { height: 34%; }
  .mr-photo { width: 54px; height: 54px; }
  .mr-body { font-size: 13px; }
  .mail-tool { min-width: 40px; font-size: 9px; }
}

/* ==========================================================================
   CLIPPY — Compliance Assistant
   ========================================================================== */
#clippy {
  position: absolute;
  left: 50%; bottom: 16px;
  z-index: 70;
  display: flex; align-items: flex-end; gap: 6px;
  opacity: 0;
  transform: translate(-50%, 18px) scale(.94);
  pointer-events: none;
  transition: opacity .22s ease, transform .28s cubic-bezier(.2,1.3,.4,1);
}
#clippy.show { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.cl-bubble {
  position: relative;
  background: #ffffe1;
  border: 1px solid #000;
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
  padding: 10px 12px 10px;
  width: 268px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  line-height: 1.5;
  color: #000;
}
.cl-bubble::after {
  content: "";
  position: absolute; right: -9px; bottom: 20px;
  width: 0; height: 0;
  border: 9px solid transparent;
  border-left-color: #ffffe1;
  filter: drop-shadow(1px 0 0 #000);
}
.cl-close {
  position: absolute; top: 3px; right: 4px;
  font-size: 9px; color: #666;
  cursor: pointer;
  padding: 1px 3px;
}
.cl-close:hover { background: var(--sel-blue); color: #fff; }
.cl-text { padding-right: 10px; }
.cl-btns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.cl-btn {
  background: var(--face); border: none;
  box-shadow: var(--bevel-thin-raised);
  font-family: var(--font-ui); font-size: 10.5px;
  padding: 3px 8px;
}
.cl-btn:active { box-shadow: var(--bevel-thin-sunken); }
.cl-btn.primary { font-weight: bold; }
.cl-clip {
  width: 54px; height: 76px;
  flex: none;
  animation: clbob 2.6s ease-in-out infinite;
  filter: drop-shadow(2px 3px 3px rgba(0,0,0,.35));
}
.cl-clip svg { width: 100%; height: 100%; display: block; }
@keyframes clbob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30%  { transform: translateY(-5px) rotate(-4deg); }
  65%  { transform: translateY(2px) rotate(3deg); }
}
.cl-pupil { animation: cllook 4.2s ease-in-out infinite; }
@keyframes cllook {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 1px); }
  55% { transform: translate(3px, -1px); }
  80% { transform: translate(0, 2px); }
}
@media (max-width: 700px) { #clippy { display: none; } }

/* ==========================================================================
   SCREENSAVER — flying money
   ========================================================================== */
#saver {
  position: fixed; inset: 0;
  z-index: 9600;
  background: #000;
  opacity: 0; pointer-events: none;
  transition: opacity .6s ease;
}
#saver.on { opacity: 1; pointer-events: auto; cursor: none; }
#saver-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#saver-logo {
  position: absolute; top: 0; left: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  will-change: transform;
}
#saver-logo img { width: 58px; height: 58px; }
#saver-logo span {
  font-family: "VT323", monospace;
  font-size: 30px; letter-spacing: 4px;
  color: #39ff7a;
  text-shadow: 0 0 14px rgba(57,255,122,.6);
}

/* ==========================================================================
   FAX MACHINE
   ========================================================================== */
.fax-slip {
  position: absolute; right: 22px; bottom: 12px;
  width: 300px;
  z-index: 68;
  background: #f6f3e6;
  color: #1a1a1a;
  font-family: "Courier New", Courier, monospace;
  box-shadow: 3px 4px 12px rgba(0,0,0,.45);
  transform: translateY(115%);
  transition: transform .7s cubic-bezier(.2,.9,.3,1);
  cursor: pointer;
  border-left: 1px solid #b8b09a;
  border-right: 1px solid #b8b09a;
}
.fax-slip.in { transform: translateY(0); }
.fx-perf {
  height: 9px;
  background: repeating-linear-gradient(90deg, #d8d2be 0 6px, #f6f3e6 6px 12px);
  border-top: 1px solid #c4bda8; border-bottom: 1px solid #c4bda8;
}
.fx-head { font-size: 8.5px; letter-spacing: 1.2px; color: #6b6350; padding: 5px 12px 2px; }
.fx-from { font-size: 12px; font-weight: bold; padding: 0 12px; letter-spacing: .5px; }
.fx-subj { font-size: 10.5px; padding: 2px 12px 5px; color: #45402f; text-transform: uppercase; }
.fx-body {
  font-size: 10.5px; line-height: 1.5;
  padding: 6px 12px 10px;
  border-top: 1px dashed #c4bda8;
  color: #23211a;
}

.fax-root { display: flex; flex-direction: column; height: 100%; background: var(--face); }
.fax-strip {
  background: #2a2a2a; color: #9ab89a;
  font-size: 9px; letter-spacing: 1.4px;
  padding: 3px 8px;
  flex: none;
}
.fax-list {
  height: 34%;
  overflow-y: auto;
  background: #fff;
  box-shadow: var(--bevel-sunken);
  margin: 3px;
}
.fax-row {
  display: grid;
  grid-template-columns: 54px 168px 1fr 48px;
  align-items: center;
  height: 18px; padding: 0 4px;
  font-size: 11px;
}
.fax-row:hover { background: #e8e8ff; }
.fr-no { color: #888; font-size: 10px; }
.fr-from { font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.fr-subj { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; }
.fr-time { font-size: 10px; color: #666; text-align: right; }
.fax-page {
  flex: 1;
  overflow-y: auto;
  background: #6b6b6b;
  box-shadow: var(--bevel-sunken);
  margin: 0 3px 3px;
  padding: 12px;
}
.fax-sheet {
  background: #f6f3e6;
  max-width: 520px; margin: 0 auto;
  padding: 20px 24px;
  box-shadow: 3px 4px 0 rgba(0,0,0,.4);
  font-family: "Courier New", Courier, monospace;
  color: #1a1a1a;
  position: relative;
}
.fax-sheet::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.03) 0 1px, transparent 1px 3px);
}
.fs-hdr { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #1a1a1a; padding-bottom: 5px; }
.fs-hdr b { font-size: 14px; letter-spacing: .5px; }
.fs-hdr span { font-size: 8.5px; color: #6b6350; letter-spacing: 1px; }
.fs-to { font-size: 10px; letter-spacing: 1px; padding: 8px 0 2px; color: #45402f; }
.fs-subj { font-size: 12px; font-weight: bold; padding: 4px 0 10px; text-transform: uppercase; }
.fs-body { font-size: 12.5px; line-height: 1.7; padding-bottom: 14px; }
.fs-foot { border-top: 1px dashed #a89f88; padding-top: 6px; font-size: 8.5px; letter-spacing: 1px; color: #6b6350; }

@media (max-width: 700px) {
  .fax-row { grid-template-columns: 0 120px 1fr 0; }
  .fr-no, .fr-time { display: none; }
  .fax-sheet { padding: 14px 16px; }
  .fs-body { font-size: 12px; }
}

/* ==========================================================================
   COLD CALL TRAINER
   ========================================================================== */
.cc-root { display: flex; flex-direction: column; height: 100%; background: var(--face); padding: 4px; gap: 4px; }
.cc-top { display: flex; gap: 10px; align-items: stretch; }
.cc-client {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--bevel-sunken);
  background: #fff;
  padding: 6px 9px;
}
.cc-ico { width: 30px; height: 30px; flex: none; }
.cc-ico svg, .cc-ico img { width: 100%; height: 100%; display: block; }
.cc-client b { display: block; font-size: 12.5px; }
.cc-client em { font-style: normal; font-size: 10px; color: #666; }
.cc-worth { margin-left: auto; font-family: var(--font-mono); font-weight: bold; font-size: 13px; color: #0a6b0a; }
.cc-bars { width: 190px; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.cc-bar { display: flex; align-items: center; gap: 5px; font-size: 8.5px; letter-spacing: .8px; color: #444; }
.cc-bar span { width: 52px; }
.cc-track { flex: 1; height: 11px; box-shadow: var(--bevel-sunken); background: #fff; padding: 1px; }
.cc-fill { height: 100%; transition: width .12s linear; }
.cc-fill.pat { background: repeating-linear-gradient(90deg, #0a6b0a 0 6px, transparent 6px 8px); }
.cc-fill.pat.low { background: repeating-linear-gradient(90deg, #c02020 0 6px, transparent 6px 8px); animation: amblink .5s steps(1) infinite; }
.cc-fill.tru { background: repeating-linear-gradient(90deg, var(--sel-blue) 0 6px, transparent 6px 8px); }
.cc-note { font-size: 10px; color: #555; font-style: italic; padding: 0 2px; }
.cc-script {
  flex: 1;
  background: #fff;
  box-shadow: var(--bevel-sunken);
  padding: 12px 14px;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px; line-height: 1.8;
  overflow-y: auto;
  overflow-x: hidden;
  color: #999;
  word-wrap: break-word;
}
.cc-word { display: inline-block; white-space: nowrap; margin-right: .5ch; }
.cc-lineno { font-family: var(--font-ui); font-size: 8.5px; letter-spacing: 1.2px; color: #aaa; margin-bottom: 6px; }
.cc-script .ok { color: #0a6b0a; }
.cc-script .bad { color: #fff; background: #c02020; }
.cc-script .cur { background: #ffe08a; outline: 1px solid #c8a038; }
.cc-input {
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  border: none; box-shadow: var(--bevel-sunken);
  background: #fff; padding: 7px 9px;
  outline: none; cursor: text;
  flex: none;
}
.cc-foot { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: #444; }
.cc-foot span { flex: 1; }
.cc-foot .dlg-btn { min-width: 130px; font-weight: bold; }
@media (max-width: 700px) {
  .cc-top { flex-direction: column; }
  .cc-bars { width: auto; }
  .cc-script { font-size: 14px; }
  .cc-input { font-size: 14px; }
}

/* ==========================================================================
   MAIL TOASTS — desktop notifications, stacked above the Ledger
   ========================================================================== */
#mail-toasts {
  position: absolute;
  left: 10px; bottom: 330px;
  z-index: 72;
  display: flex; flex-direction: column-reverse;
  gap: 6px;
  pointer-events: none;
}
.mail-toast {
  width: 268px;
  background: var(--face);
  box-shadow: var(--bevel-raised), 3px 4px 10px rgba(0,0,0,.4);
  padding: 2px;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity .3s ease, transform .38s cubic-bezier(.2,1.2,.4,1);
}
.mail-toast.in { opacity: 1; transform: none; }
.mt-bar {
  height: 17px;
  background: linear-gradient(90deg, var(--title-a), var(--title-b));
  color: #fff;
  font-size: 10.5px; font-weight: bold;
  display: flex; align-items: center; gap: 5px;
  padding: 0 4px;
}
.mt-env { width: 13px; height: 13px; }
.mt-env svg, .mt-env img { width: 100%; height: 100%; display: block; }
.mt-x { margin-left: auto; font-size: 9px; padding: 0 3px; }
.mt-x:hover { background: #c02020; }
.mt-body { display: flex; align-items: center; gap: 8px; padding: 7px 8px; }
.mt-face {
  width: 36px; height: 36px; flex: none;
  border: 1px solid #808080;
  box-shadow: 1px 1px 0 #fff;
  object-fit: cover;
}
.mt-txt { min-width: 0; }
.mt-txt b { display: block; font-size: 11.5px; }
.mt-txt span {
  display: block;
  font-size: 10px; color: #555;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}

/* ==========================================================================
   BOILER ROOM TYCOON
   ========================================================================== */
.ty-root { display: flex; flex-direction: column; height: 100%; background: var(--face); padding: 4px; gap: 4px; }
.ty-hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ty-hud > div {
  box-shadow: var(--bevel-sunken);
  background: #0d1410;
  padding: 5px 9px;
}
.ty-hud span { display: block; font-size: 8px; letter-spacing: 1.1px; color: #6a9a6a; }
.ty-hud b { font-family: "IBM Plex Mono", monospace; font-size: 15px; color: #7dff9a; }
.ty-cash b { color: #ffd75e; }
.ty-heatrow { display: flex; align-items: center; gap: 7px; font-size: 8.5px; letter-spacing: 1px; color: #555; }
.ty-heat { flex: 1; height: 11px; box-shadow: var(--bevel-sunken); background: #fff; padding: 1px; }
.ty-heat-fill { height: 100%; width: 0; background: linear-gradient(90deg, #1f8a3f, #e8a800 60%, #c02020); transition: width .2s linear; }
.ty-heat-fill.hot { animation: amblink .5s steps(1) infinite; }
.ty-raids { color: #888; }
.ty-dial {
  border: none;
  background: #1fd11f; color: #002000;
  box-shadow: var(--bevel-raised);
  font-family: var(--font-ui); font-weight: bold; font-size: 12.5px;
  padding: 9px;
}
.ty-dial:active { box-shadow: var(--bevel-sunken); }
.ty-dial:hover { background: #5aff5a; }
.ty-cols { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; overflow: hidden; }
.ty-col { display: flex; flex-direction: column; box-shadow: var(--bevel-sunken); background: #fff; overflow: hidden; }
.ty-h {
  background: var(--face);
  box-shadow: var(--bevel-thin-raised);
  font-size: 9px; letter-spacing: 1.4px; font-weight: bold;
  padding: 3px 6px; flex: none;
}
.ty-col > div:last-child { overflow-y: auto; flex: 1; }
.ty-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 7px;
  border-bottom: 1px solid #e8e4d8;
  opacity: .55;
}
.ty-item.afford { opacity: 1; cursor: pointer; }
.ty-item.afford:hover { background: #e8f0ff; }
.ty-item.owned { opacity: 1; background: #eef8ee; }
.ti-main { flex: 1; min-width: 0; }
.ti-main b { display: block; font-size: 11.5px; }
.ti-main em { font-style: normal; font-size: 9px; color: #777; display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-side { text-align: right; flex: none; }
.ti-cost { display: block; font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: bold; color: #0a6b0a; }
.ti-own { display: block; font-size: 10px; color: #555; }
.ty-foot { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: #444; }
.ty-foot span { flex: 1; font-style: italic; }
.ty-foot span.flash { animation: lilflip .4s ease-out; }
@media (max-width: 700px) {
  .ty-hud { grid-template-columns: 1fr 1fr; }
  .ty-cols { grid-template-columns: 1fr; }
}


/* ==========================================================================
   DISCLAIMER — always on the desk, never in a submenu
   ========================================================================== */
#disclaimer {
  position: absolute;
  /* moved off the top-centre: PRESALE.EXE lives there now */
  left: auto; right: 14px; top: 282px; /* under Now Playing; z below the widgets so it tucks behind on short screens */
  width: 176px;
  background: #f4f1e4;
  color: #2f2c24;
  box-shadow: 0 0 0 1px #b9b19a, 2px 3px 0 rgba(0,0,0,.18), 5px 7px 14px rgba(0,0,0,.22);
  padding: 9px 10px 8px;
  z-index: 63;
  cursor: move;
  transform: rotate(-.5deg);
  font-family: var(--font-ui);
}
#disclaimer::before {
  content: "";
  position: absolute; top: -7px; left: 50%;
  transform: translateX(-50%) rotate(1.5deg);
  width: 52px; height: 14px;
  background: rgba(255,255,255,.5);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.dc-body p {
  font-size: 8.8px;
  line-height: 1.45;
  margin-bottom: 5px;
}
.dc-body b { color: #1f1d17; }
.dc-sig {
  font-style: italic;
  color: #86806c !important;
  border-top: 1px solid #ddd6bf;
  padding-top: 5px;
  margin-bottom: 0 !important;
}

@media (max-width: 700px) {
  #disclaimer {
    position: static;
    width: auto;
    margin: 10px 8px 0;
    left: auto; top: auto;
    transform: none;
  }
  .dc-body p { font-size: 10.5px; }
}

/* muted player: the visualiser flatlines and the gif holds still */
#mp-widget.muted .mpw-gif img { filter: grayscale(1) brightness(.72); }
#mp-widget.muted .mpw-viz span { background: #4a4a4a; }
#mp-widget.muted .mpw-status { color: #8a5a00; }

/* the memo's close corner: a proper Win95 button you can't miss */
#disclaimer .dc-x {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  background: #c0c0c0; color: #000;
  border: 2px solid; border-color: #fff #404040 #404040 #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
  cursor: pointer;
}
#disclaimer .dc-x:hover { background: #d33; color: #fff; }
#disclaimer .dc-x:active { border-color: #404040 #fff #fff #404040; }
