/* Everyone's Desktop — an original late-90s style, not any vendor's artwork */
:root {
  --face: #c3c3c3;
  --light: #ffffff;
  --mid: #dfdfdf;
  --shadow: #818181;
  --dark: #000000;
  --title-a: #0a246a;
  --title-b: #3a6ea5;
  --title-off-a: #7b7b7b;
  --title-off-b: #b0b0b0;
  --select: #0a246a;
  --text: #000000;
  --taskbar-h: 34px;
  --font: Tahoma, Verdana, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #008080; }
body { font: 12px/1.35 var(--font); color: var(--text); user-select: none; -webkit-user-select: none; touch-action: none; }
input, textarea, button, select { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* ---------- bevels ---------- */
.raised { border: 1px solid; border-color: var(--light) var(--dark) var(--dark) var(--light); box-shadow: inset 1px 1px var(--mid), inset -1px -1px var(--shadow); }
.sunken, input, textarea { border: 1px solid; border-color: var(--shadow) var(--light) var(--light) var(--shadow); box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--mid); background: #fff; }
input, textarea { padding: 3px 4px; outline: none; user-select: text; -webkit-user-select: text; }
textarea { resize: none; }

.btn { background: var(--face); min-width: 72px; padding: 4px 10px; cursor: pointer;
  border: 1px solid; border-color: var(--light) var(--dark) var(--dark) var(--light);
  box-shadow: inset 1px 1px var(--mid), inset -1px -1px var(--shadow); }
.btn:active, .btn.pressed { border-color: var(--dark) var(--light) var(--light) var(--dark); box-shadow: inset 1px 1px var(--shadow), inset -1px -1px var(--mid); padding: 5px 9px 3px 11px; }
.btn.default { outline: 1px solid #000; outline-offset: -4px; }
.btn.small { min-width: 0; padding: 2px 8px; }
.btn:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }

/* ---------- desktop & wallpapers ---------- */
#desktop { position: fixed; inset: 0 0 var(--taskbar-h) 0; overflow: hidden; transition: background 0.6s; }
.wp-teal { background: #008080; }
.wp-clouds { background: radial-gradient(ellipse 30% 12% at 20% 25%, #fff 40%, transparent 70%), radial-gradient(ellipse 25% 10% at 70% 18%, #fff 40%, transparent 70%), radial-gradient(ellipse 35% 12% at 55% 60%, #fff 35%, transparent 70%), radial-gradient(ellipse 22% 9% at 15% 75%, #fff 35%, transparent 70%), linear-gradient(#3a7bd5, #9fd3ff); }
.wp-hills { background: radial-gradient(ellipse 90% 45% at 30% 105%, #3f9b2f 60%, transparent 61%), radial-gradient(ellipse 80% 40% at 85% 100%, #5cb83a 60%, transparent 61%), linear-gradient(#2d6fd6 0%, #7fb8f5 55%, #d8ecff 75%); }
.wp-tiles { background-color: #6b5b95; background-image: linear-gradient(45deg, rgba(255,255,255,.12) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.12) 75%), linear-gradient(45deg, rgba(255,255,255,.12) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.12) 75%); background-size: 40px 40px; background-position: 0 0, 20px 20px; }
.wp-stars { background: radial-gradient(1px 1px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent), radial-gradient(2px 2px at 55% 35%, #fff, transparent), radial-gradient(1px 1px at 75% 15%, #fff, transparent), radial-gradient(1px 1px at 85% 80%, #fff, transparent), radial-gradient(2px 2px at 20% 85%, #ffd, transparent), radial-gradient(1px 1px at 65% 55%, #fff, transparent), radial-gradient(1px 1px at 45% 10%, #fff, transparent), radial-gradient(ellipse at 50% 120%, #2b1055 0%, #000010 70%); background-size: 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 100% 100%; }
.wp-sunset { background: linear-gradient(#1e1347 0%, #6b2d7a 35%, #e8556d 60%, #ffb35c 78%, #ffe29a 100%); }
.wp-checker { background-color: #fff; background-image: conic-gradient(#000 25%, #fff 0 50%, #000 0 75%, #fff 0); background-size: 48px 48px; }
.wp-matrix { background-color: #001a00; background-image: repeating-linear-gradient(90deg, rgba(0,255,70,.10) 0 2px, transparent 2px 22px), repeating-linear-gradient(0deg, rgba(0,255,70,.06) 0 1px, transparent 1px 4px); }

/* ---------- icons ---------- */
#icons { position: absolute; inset: 0; }
.icon { position: absolute; width: 84px; padding: 4px 2px; text-align: center; color: #fff; cursor: default; touch-action: none; }
.icon .glyph { width: 36px; height: 36px; margin: 0 auto 3px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.icon .label { display: inline-block; max-width: 82px; padding: 1px 3px; overflow-wrap: anywhere; text-shadow: 1px 1px 0 #000; line-height: 1.2; }
.icon.selected .label { background: var(--select); text-shadow: none; outline: 1px dotted #fff; }
.icon.selected .glyph { filter: brightness(0.7) sepia(1) hue-rotate(190deg) saturate(3); }
.icon.dragging { opacity: 0.7; z-index: 5; }
.icon.held { transition: none; }
.icon.remote-move { transition: left 0.17s linear, top 0.17s linear; }
.icon .by { display: block; font-size: 10px; opacity: 0; color: #fff; text-shadow: 1px 1px 0 #000; transition: opacity .2s; }
.icon:hover .by { opacity: .9; }
.icon.drop-target .glyph { transform: scale(1.15); }

/* ---------- icon glyphs (original SVGs) ---------- */
.ico, .glyph { display: inline-block; background-size: contain; background-repeat: no-repeat; background-position: center; }
i.ico { width: 20px; height: 20px; vertical-align: middle; margin-right: 8px; }
i.ico.big { width: 48px; height: 48px; margin: 0; }
.ico-note { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M6 2h14l6 6v22H6z' fill='%23fff' stroke='%23000'/%3E%3Cpath d='M20 2v6h6' fill='%23c3c3c3' stroke='%23000'/%3E%3Cpath d='M9 12h14M9 15h14M9 18h14M9 21h10M9 24h12' stroke='%230a246a'/%3E%3C/svg%3E"); }
.ico-folder { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M2 7h10l3 3h15v18H2z' fill='%23f3d55b' stroke='%23000'/%3E%3Cpath d='M2 12h28' stroke='%23b8962e'/%3E%3C/svg%3E"); }
.ico-bin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M7 8h18l-2 22H9z' fill='%23dfe8ef' stroke='%23000'/%3E%3Cpath d='M5 6h22v3H5z' fill='%23b7c4cf' stroke='%23000'/%3E%3Cpath d='M12 11l1 16M16 11v16M20 11l-1 16' stroke='%23606f7c'/%3E%3C/svg%3E"); }
.ico-bin-full { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M9 3h7v6H9z' fill='%23fff' stroke='%23000' transform='rotate(-15 12 6)'/%3E%3Cpath d='M15 2h8v7h-8z' fill='%23f3d55b' stroke='%23000' transform='rotate(12 19 5)'/%3E%3Cpath d='M7 8h18l-2 22H9z' fill='%23dfe8ef' stroke='%23000'/%3E%3Cpath d='M5 6h22v3H5z' fill='%23b7c4cf' stroke='%23000'/%3E%3Cpath d='M12 11l1 16M16 11v16M20 11l-1 16' stroke='%23606f7c'/%3E%3C/svg%3E"); }
.ico-buddies { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='11' cy='10' r='5' fill='%233cb44b' stroke='%23000'/%3E%3Cpath d='M2 28c0-7 4-11 9-11s9 4 9 11z' fill='%233cb44b' stroke='%23000'/%3E%3Ccircle cx='22' cy='12' r='4.5' fill='%234363d8' stroke='%23000'/%3E%3Cpath d='M14 29c0-6 3.5-10 8-10s8 4 8 10z' fill='%234363d8' stroke='%23000'/%3E%3C/svg%3E"); }
.ico-chat { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M2 4h20v13H10l-5 5v-5H2z' fill='%23fff' stroke='%23000'/%3E%3Cpath d='M12 12h18v12h-3v5l-5-5h-10z' fill='%23ffe28a' stroke='%23000'/%3E%3Cpath d='M5 8h13M5 11h9M15 16h12M15 19h8' stroke='%23000'/%3E%3C/svg%3E"); }
.ico-paint { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3C8 3 2 9 2 16s5 12 11 12c2 0 3-1 3-3s-2-3 0-5 5 0 8-1 6-3 6-7C30 7 24 3 16 3z' fill='%23f0e2c0' stroke='%23000'/%3E%3Ccircle cx='9' cy='13' r='2.5' fill='%23e6194b'/%3E%3Ccircle cx='14' cy='8' r='2.5' fill='%23f58231'/%3E%3Ccircle cx='21' cy='8' r='2.5' fill='%233cb44b'/%3E%3Ccircle cx='25' cy='13' r='2.5' fill='%234363d8'/%3E%3C/svg%3E"); }
.ico-display { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M3 4h26v18H3z' fill='%23c3c3c3' stroke='%23000'/%3E%3Cpath d='M5 6h22v14H5z' fill='%23008080'/%3E%3Cpath d='M5 16l6-5 5 4 4-3 7 6v2H5z' fill='%233cb44b'/%3E%3Cpath d='M12 22h8v4h4v2H8v-2h4z' fill='%23c3c3c3' stroke='%23000'/%3E%3C/svg%3E"); }
.ico-invite { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M2 7h28v19H2z' fill='%23fff' stroke='%23000'/%3E%3Cpath d='M2 7l14 11L30 7' fill='none' stroke='%23000'/%3E%3Ccircle cx='25' cy='23' r='6' fill='%23f58231' stroke='%23000'/%3E%3Cpath d='M25 20v6M22 23h6' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); }
.ico-help { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='13' fill='%234363d8' stroke='%23000'/%3E%3Ctext x='16' y='22' font-size='17' font-family='Verdana' font-weight='bold' text-anchor='middle' fill='%23fff'%3E%3F%3C/text%3E%3C/svg%3E"); }
.ico-logoff { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M4 3h14v26H4z' fill='%23b8862e' stroke='%23000'/%3E%3Cpath d='M18 10h8M22 6l4 4-4 4' stroke='%23000' stroke-width='2' fill='none'/%3E%3Ccircle cx='15' cy='16' r='1.5'/%3E%3C/svg%3E"); }
.ico-key { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='10' cy='16' r='6' fill='%23f3d55b' stroke='%23000'/%3E%3Ccircle cx='9' cy='16' r='2' fill='%23fff' stroke='%23000'/%3E%3Cpath d='M16 15h13v3h-2v3h-3v-3h-2v3h-3v-3h-3z' fill='%23f3d55b' stroke='%23000'/%3E%3C/svg%3E"); }

/* ---------- cursors ---------- */
#cursors { position: absolute; inset: 0; pointer-events: none; z-index: 900; }
.cursor { position: absolute; left: 0; top: 0; transition: transform 0.25s linear; will-change: transform; }
.cursor svg { display: block; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.4)); }
.cursor .tag { position: absolute; left: 14px; top: 16px; padding: 1px 5px; white-space: nowrap; color: #fff; font-size: 11px; border: 1px solid #000; }
.cursor.idle { opacity: 0.45; }

/* ---------- windows ---------- */
#windows { position: fixed; inset: 0 0 var(--taskbar-h) 0; pointer-events: none; z-index: 100; }
.window { position: absolute; background: var(--face); padding: 3px; pointer-events: auto; display: flex; flex-direction: column;
  border: 1px solid; border-color: var(--mid) var(--dark) var(--dark) var(--mid); box-shadow: inset 1px 1px var(--light), inset -1px -1px var(--shadow), 2px 2px 0 rgba(0,0,0,.25); min-width: 220px; }
.titlebar { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 3px 0 5px; color: #fff; font-weight: bold;
  background: linear-gradient(90deg, var(--title-off-a), var(--title-off-b)); cursor: default; flex: none; touch-action: none; }
.window.active .titlebar { background: linear-gradient(90deg, var(--title-a), var(--title-b)); }
.titlebar span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.titlebar i.ico { width: 16px; height: 16px; margin: 0; }
.tb-btn { width: 18px; height: 16px; min-width: 0; padding: 0; background: var(--face); line-height: 12px; font: bold 11px/12px var(--font); color: #000; cursor: pointer;
  border: 1px solid; border-color: var(--light) var(--dark) var(--dark) var(--light); box-shadow: inset -1px -1px var(--shadow); }
.tb-btn:active { border-color: var(--dark) var(--light) var(--light) var(--dark); }
.window .body { padding: 8px; flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.window .menubar { display: flex; gap: 2px; padding: 1px 0 2px; flex: none; }
.window .menubar span { padding: 2px 7px; cursor: pointer; }
.window .menubar span:hover { background: var(--select); color: #fff; }
.statusbar { flex: none; display: flex; gap: 3px; margin-top: 2px; }
.statusbar > div { flex: 1; padding: 2px 5px; border: 1px solid; border-color: var(--shadow) var(--light) var(--light) var(--shadow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window.shake { animation: shake 0.5s; }
.dialog { position: relative; width: min(420px, calc(100vw - 24px)); }
.buttons { display: flex; justify-content: flex-end; gap: 6px; }

@keyframes shake { 0%,100% { translate: 0 0; } 10%,50%,90% { translate: -8px 2px; } 30%,70% { translate: 8px -2px; } }
body.nudged #desktop, body.nudged #windows { animation: shake 0.5s 2; }

/* ---------- buddies ---------- */
.buddy-list { flex: 1; overflow: auto; padding: 4px 0; min-height: 120px; }
.buddy-group { font-weight: bold; padding: 2px 6px; }
.buddy { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 14px; cursor: default; }
.buddy:hover { background: #e9e9f3; }
.buddy .dot { width: 10px; height: 10px; border: 1px solid #000; border-radius: 50%; flex: none; }
.buddy .who { font-weight: bold; }
.buddy .msg { color: #555; font-style: italic; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.buddy .state { font-size: 10px; color: #777; }
.buddy .nudge { visibility: hidden; }
.buddy:hover .nudge { visibility: visible; }
.me-row { display: flex; gap: 6px; align-items: center; }
.me-row input { flex: 1; min-width: 0; }

/* ---------- chat ---------- */
.chat-log { flex: 1; overflow: auto; padding: 6px; min-height: 140px; user-select: text; -webkit-user-select: text; }
.chat-log p { margin: 0 0 3px; overflow-wrap: anywhere; }
.chat-log .sys { color: #666; font-style: italic; }
.chat-form { display: flex; gap: 6px; }
.chat-form input { flex: 1; min-width: 0; }

/* ---------- paint ---------- */
.paint-wrap { flex: 1; display: flex; gap: 6px; min-height: 0; }
.paint-tools { display: grid; grid-template-columns: repeat(2, 22px); gap: 2px; align-content: start; }
.swatch { width: 22px; height: 22px; border: 1px solid; border-color: var(--shadow) var(--light) var(--light) var(--shadow); cursor: pointer; padding: 0; }
.swatch.on { outline: 2px solid #000; outline-offset: -4px; }
.size { grid-column: span 2; height: 20px; min-width: 0; padding: 0; }
.size.on { border-color: var(--dark) var(--light) var(--light) var(--dark); background: #e8e8e8; }
.canvas-box { flex: 1; overflow: hidden; position: relative; background: #808080; }
.canvas-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; background: #fff; cursor: crosshair; touch-action: none; }

/* ---------- notes / bin / display ---------- */
.note-text { flex: 1; min-height: 160px; font: 13px/1.4 "Lucida Console", "Courier New", monospace; }
.bin-list { flex: 1; overflow: auto; min-height: 120px; }
.bin-row { display: flex; align-items: center; gap: 8px; padding: 3px 6px; }
.bin-row:hover { background: #e9e9f3; }
.bin-row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bin-row .meta { color: #666; font-size: 11px; }
.wp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wp-choice { height: 54px; border: 2px solid transparent; cursor: pointer; position: relative; }
.wp-choice.on { border-color: var(--select); outline: 1px dotted #000; outline-offset: 2px; }
.wp-choice span { position: absolute; left: 0; right: 0; bottom: -16px; text-align: center; font-size: 11px; }
.monitor { margin: 0 auto 6px; width: 180px; height: 120px; padding: 8px; background: var(--face); }
.monitor div { width: 100%; height: 100%; }
.invite-link { display: flex; gap: 6px; }
.invite-link input { flex: 1; min-width: 0; }
.about p, .invite p { margin: 0 0 6px; }

/* ---------- taskbar ---------- */
#taskbar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--taskbar-h); background: var(--face); display: flex; align-items: center; gap: 4px; padding: 3px 3px; z-index: 1000;
  border-top: 1px solid var(--mid); box-shadow: inset 0 1px var(--light); }
.btn.start { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 3px 8px; height: 26px; font-weight: bold; }
.start-logo { width: 18px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16' shape-rendering='crispEdges'%3E%3Cpath d='M1 1h16v10H1z' fill='%23c3c3c3' stroke='%23000'/%3E%3Cpath d='M3 3h12v6H3z' fill='%23008080'/%3E%3Cpath d='M4 4h4v3H4z' fill='%23ffd21f'/%3E%3Cpath d='M9 5h5v3H9z' fill='%23fff'/%3E%3Cpath d='M6 12h6v2h2v1H4v-1h2z' fill='%23c3c3c3' stroke='%23000' stroke-width='.6'/%3E%3C/svg%3E") center/contain no-repeat; }
#task-buttons { flex: 1; display: flex; gap: 3px; overflow: hidden; }
.task-btn { min-width: 0; flex: 0 1 160px; height: 26px; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.task-btn i.ico { width: 16px; height: 16px; margin: 0; }
.task-btn.pressed { background: repeating-conic-gradient(#fff 0 25%, var(--face) 0 50%) 0 0 / 2px 2px; font-weight: bold; }
#tray { display: flex; align-items: center; gap: 10px; height: 26px; padding: 0 10px; border: 1px solid; border-color: var(--shadow) var(--light) var(--light) var(--shadow); white-space: nowrap; }
#tray-online { color: #1a7f1a; cursor: pointer; }

/* ---------- start & context menus ---------- */
#start-menu { position: fixed; left: 2px; bottom: calc(var(--taskbar-h) - 2px); display: flex; background: var(--face); z-index: 1001;
  border: 1px solid; border-color: var(--mid) var(--dark) var(--dark) var(--mid); box-shadow: inset 1px 1px var(--light), inset -1px -1px var(--shadow), 2px 2px 0 rgba(0,0,0,.25); padding: 3px; }
.start-side { width: 26px; background: linear-gradient(0deg, var(--title-a), var(--title-b)); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.start-side span { writing-mode: vertical-rl; transform: rotate(180deg); color: #c3c3c3; font-size: 16px; letter-spacing: 1px; }
.start-side b { color: #fff; }
#start-menu ul, .menu ul { list-style: none; margin: 0; padding: 0; min-width: 210px; }
#start-menu li { padding: 6px 12px 6px 8px; display: flex; align-items: center; cursor: pointer; }
#start-menu li i.ico { width: 24px; height: 24px; }
#start-menu li:hover, .menu li:hover { background: var(--select); color: #fff; }
#start-menu li.sep, .menu li.sep { padding: 0; margin: 3px 2px; height: 2px; border-top: 1px solid var(--shadow); border-bottom: 1px solid var(--light); cursor: default; }
#start-menu li.sep:hover, .menu li.sep:hover { background: none; }
.menu { position: fixed; z-index: 1002; background: var(--face); padding: 2px;
  border: 1px solid; border-color: var(--mid) var(--dark) var(--dark) var(--mid); box-shadow: inset 1px 1px var(--light), inset -1px -1px var(--shadow), 2px 2px 0 rgba(0,0,0,.25); }
.menu ul { min-width: 170px; }
.menu li { padding: 4px 20px; cursor: pointer; }
.menu li.off { color: var(--shadow); pointer-events: none; }

/* ---------- toasts (tray balloons) ---------- */
#toasts { position: fixed; right: 8px; bottom: calc(var(--taskbar-h) + 8px); display: flex; flex-direction: column; gap: 6px; align-items: flex-end; z-index: 1003; pointer-events: none; }
.toast { background: #ffffe1; border: 1px solid #000; padding: 6px 10px; max-width: 300px; box-shadow: 2px 2px 0 rgba(0,0,0,.25); animation: pop .2s ease-out; }
.toast b { display: block; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); }
.logon-row { display: flex; gap: 14px; }
.logon-row p { margin: 0 0 8px; }
.logon-row label { display: flex; align-items: center; gap: 8px; }
.logon-row input { flex: 1; min-width: 0; }
.hint { color: #555; margin-top: 8px !important; }
#screensaver { position: fixed; inset: 0; z-index: 3000; background: #000; cursor: none; }

@media (max-width: 600px) {
  .icon { width: 72px; }
  .task-btn span { display: none; }
  #tray-clock { display: none; }
}

/* =====================================================================
   Nostalgia layer: boot, cursors, dialogs, tray, animations
   ===================================================================== */
body { -webkit-font-smoothing: none; font-smooth: never; font-size: 11px;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='19' shape-rendering='crispEdges'%3E%3Cpath d='M.5.5v15l3.5-3.5 2.5 6 2.5-1-2.5-6h5z' fill='%23fff' stroke='%23000'/%3E%3C/svg%3E") 0 0, default; }
body.busy, body.busy * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='22' shape-rendering='crispEdges'%3E%3Cpath d='M1 1h14v2h-1v3l-4 5 4 5v3h1v2H1v-2h1v-3l4-5-4-5V3H1z' fill='%23fff' stroke='%23000'/%3E%3Cpath d='M4 4h8v1l-4 5-4-5zM5 18l3-4 3 4z' fill='%23d4a017'/%3E%3C/svg%3E") 8 11, progress !important; }
input, textarea { cursor: text; }
.btn, .tb-btn, #start-menu li, .menu li, .swatch { cursor: inherit; }
.icon { cursor: inherit; }

/* ---------- boot ---------- */
#boot { position: fixed; inset: 0; z-index: 5000; background: #000; color: #aaa; display: flex; align-items: center; justify-content: center; }
body:not(.booting) #boot { display: none; }
/* the power-on scene: a beige late-90s rig in a dark room. Sized in em so it scales with the window */
#power { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2em;
  font: min(2.1vw, 1.75vh) var(--font); color: #777; background: radial-gradient(ellipse 70% 60% at 50% 42%, #2a2620 0%, #121110 55%, #050505 100%); }
#power.zoom { transition: transform 0.95s cubic-bezier(.55, 0, .85, .35); }
#power .rig { display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 2.5em 2em rgba(0,0,0,.7)); }
#power .crt { width: 34em; padding: 2.2em 2.2em 0; border-radius: 1.6em 1.6em 1em 1em; background: linear-gradient(160deg, #e9e2cc, #cfc6a8 55%, #b9af90); box-shadow: inset 0 0.2em 0 rgba(255,255,255,.55), inset 0 -0.3em 0 rgba(0,0,0,.12); }
#power .bezel { padding: 1.1em; border-radius: 1.2em; background: linear-gradient(#bdb393, #d7cfb4); box-shadow: inset 0 0.25em 0.5em rgba(0,0,0,.35); }
#power .screen { position: relative; aspect-ratio: 4 / 3; border-radius: 1.4em / 1.8em; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #232a26, #0d100e 75%); box-shadow: inset 0 0 2.5em rgba(0,0,0,.9), 0 0 0 0.25em #3a3a33; }
#power .screen i { position: absolute; inset: 0; }
#power .screen .glare { background: radial-gradient(ellipse 60% 35% at 30% 18%, rgba(255,255,255,.13), transparent 70%), linear-gradient(115deg, transparent 60%, rgba(255,255,255,.04) 61%, transparent 75%); }
#power .screen .glow { opacity: 0; background: radial-gradient(ellipse at 50% 50%, #3b4540, #121614 80%); transition: opacity 1.2s; }
#power .screen .beam { opacity: 0; background: linear-gradient(transparent 49.4%, #f4fff8 49.6%, #f4fff8 50.4%, transparent 50.6%); }
#power .chin { display: flex; align-items: center; height: 3.4em; padding: 0 0.6em; gap: 1em; }
#power .brand { font: bold 0.95em/1 Georgia, serif; letter-spacing: 0.25em; color: #8a8068; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
#power .knobs { margin-left: auto; display: flex; gap: 0.5em; }
#power .knobs i { width: 0.9em; height: 0.9em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d8d0b6, #9e9478); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
#power .mon-led { width: 0.7em; height: 0.7em; border-radius: 50%; background: #5a4a1c; box-shadow: inset 0 1px 1px rgba(0,0,0,.5); transition: background .2s, box-shadow .2s; }
#power .neck { width: 12em; height: 1.6em; background: linear-gradient(#a99f80, #c9c0a3); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
#power .case { position: relative; display: flex; align-items: center; gap: 1.6em; width: 42em; height: 9.5em; padding: 0 1.6em; border-radius: 0.5em; background: linear-gradient(#ece5cf, #d3caae 60%, #bdb395); box-shadow: inset 0 0.2em 0 rgba(255,255,255,.6), inset 0 -0.35em 0 rgba(0,0,0,.15); }
#power .bays { display: flex; flex-direction: column; gap: 0.8em; }
#power .bay { position: relative; border-radius: 0.2em; background: linear-gradient(#d9d1b7, #c7bd9f); box-shadow: inset 0 0 0 0.12em #a99f80, 0 1px 0 rgba(255,255,255,.5); }
#power .bay.cd { width: 15em; height: 2.6em; }
#power .bay.cd .tray { position: absolute; left: 0.8em; right: 3.5em; top: 1.2em; height: 0.15em; background: #8f8569; }
#power .bay.cd .eject { position: absolute; right: 0.8em; top: 0.8em; width: 1.8em; height: 0.9em; border-radius: 0.2em; background: #cfc6a9; box-shadow: inset 0 0 0 0.1em #9e9478; }
#power .bay.floppy { width: 11em; height: 2em; }
#power .bay.floppy .slot { position: absolute; left: 1em; right: 2.4em; top: 0.85em; height: 0.35em; border-radius: 0.2em; background: #3a362c; }
#power .bay.floppy .flop-btn { position: absolute; right: 0.7em; top: 0.6em; width: 1.1em; height: 0.8em; border-radius: 0.15em; background: #cfc6a9; box-shadow: inset 0 0 0 0.1em #9e9478; }
#power .grille { flex: 1; align-self: stretch; margin: 1.6em 0; background: repeating-linear-gradient(90deg, #b3a98b 0 0.25em, transparent 0.25em 0.75em); opacity: .7; border-radius: 0.2em; }
#power .panel { display: flex; flex-direction: column; align-items: center; gap: 0.8em; }
#power .leds { display: flex; gap: 0.8em; font: bold 0.55em/1 var(--font); letter-spacing: 0.1em; color: #8a8068; }
#power .leds span { display: flex; flex-direction: column; align-items: center; gap: 0.5em; }
#power .led { width: 1.3em; height: 0.8em; border-radius: 0.2em; background: #3d3b2e; box-shadow: inset 0 1px 1px rgba(0,0,0,.6); }
#power-btn { position: relative; width: 4.6em; height: 4.6em; border: 0; border-radius: 0.8em; cursor: pointer; background: linear-gradient(160deg, #e4dcc3, #bfb597); box-shadow: 0 0.35em 0 #8f8569, 0 0.5em 0.6em rgba(0,0,0,.35), inset 0 0.15em 0 rgba(255,255,255,.7); transition: transform .06s, box-shadow .06s; animation: powerBeckon 2.2s ease-in-out infinite; }
#power-btn .sym { position: absolute; left: 50%; top: 50%; width: 1.7em; height: 1.7em; margin: -0.85em; border: 0.25em solid #6e6550; border-top-color: transparent; border-radius: 50%; }
#power-btn .sym::after { content: ''; position: absolute; left: 50%; top: -0.6em; width: 0.25em; height: 1em; margin-left: -0.125em; background: #6e6550; border-radius: 0.1em; }
#power-btn:hover .sym, #power-btn:focus-visible .sym { border-color: #3fae4f; border-top-color: transparent; filter: drop-shadow(0 0 0.3em rgba(80,255,120,.6)); }
#power-btn:hover .sym::after, #power-btn:focus-visible .sym::after { background: #3fae4f; }
#power-btn:focus { outline: none; }
#power-btn.pressed, #power.on #power-btn { transform: translateY(0.3em); box-shadow: 0 0.05em 0 #8f8569, 0 0.15em 0.3em rgba(0,0,0,.35), inset 0 0.15em 0.3em rgba(0,0,0,.2); animation: none; }
#power.on #power-btn { transform: translateY(0.15em); box-shadow: 0 0.2em 0 #8f8569, 0 0.3em 0.4em rgba(0,0,0,.35), inset 0 0.15em 0 rgba(255,255,255,.7); }
@keyframes powerBeckon { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 0.8em rgba(120,255,150,.35)); } }
#power .sticker { position: absolute; left: 24em; bottom: 1.5em; padding: 0.35em 0.6em; font: 0.55em/1.15 var(--font); color: #e8f0ff; background: linear-gradient(135deg, #1d3f8c, #3567c4); border: 0.12em solid #c9c0a3; transform: rotate(-3deg); box-shadow: 0 0.2em 0.4em rgba(0,0,0,.4); }
#power .sticker b { display: block; font-size: 1.35em; color: #fff; }
#power .power-hint { margin: 0; font: 1em "Courier New", monospace; letter-spacing: 0.15em; text-transform: uppercase; color: #8b8b7a; animation: hintBlink 1.6s steps(1) infinite; }
#power .power-hint small { text-transform: none; letter-spacing: 0; color: #555; }
/* plain-words intro under the rig. Fixed px sizes so it stays readable when the rig shrinks on phones */
#what-is-this { width: min(620px, calc(100vw - 32px)); margin-top: -0.6em; text-align: center; font: 12px/1.5 "Courier New", monospace; color: #a3a392; }
#what-is-this h1 { margin: 0 0 6px; font: bold 13px/1.35 "Courier New", monospace; color: #c9c9b6; text-transform: lowercase; letter-spacing: 0.02em; }
#what-is-this > p { margin: 0 0 8px; }
#what-is-this summary { display: inline-block; cursor: pointer; color: #7dff8a; text-decoration: underline; text-underline-offset: 3px; }
#what-is-this summary::-webkit-details-marker { display: none; }
#what-is-this summary:focus-visible { outline: 1px dotted #7dff8a; outline-offset: 2px; }
/* opened up, the scene scrolls from the top instead of clipping the rig and the answers */
#power:has(#what-is-this details[open]) { justify-content: flex-start; overflow-y: auto; padding: 24px 0 32px; }
#what-is-this .wit-more { margin-top: 8px; padding: 10px 14px; text-align: left; border: 1px solid #3a3a33; background: rgba(0,0,0,.45); }
#what-is-this h2 { margin: 10px 0 4px; font: bold 12px/1.4 "Courier New", monospace; color: #c9c9b6; }
#what-is-this h2:first-child { margin-top: 0; }
#what-is-this h3 { margin: 8px 0 0; font: bold 12px/1.4 "Courier New", monospace; color: #b8b8a6; }
#what-is-this ul { margin: 0; padding-left: 18px; }
#what-is-this .wit-more p { margin: 0 0 4px; }
#what-is-this b { color: #c9c9b6; }
#what-is-this a { color: #7dff8a; }
#power.on #what-is-this { visibility: hidden; }
@media (max-width: 600px) { #what-is-this { font-size: 11px; } #what-is-this h1 { font-size: 12px; } }
@keyframes hintBlink { 50% { opacity: .35; } }
/* lights on */
#power.on .power-hint { visibility: hidden; }
#power.on .led.pwr { background: #5cff6e; box-shadow: 0 0 0.5em #3f3, inset 0 0 0.2em #fff; }
#power.on .led.turbo { background: #ffb02e; box-shadow: 0 0 0.5em #f90, inset 0 0 0.2em #fff; }
#power .led.hdd.lit { background: #ffd23a; box-shadow: 0 0 0.6em #fc0, inset 0 0 0.2em #fff; }
#power.screen-on .mon-led { background: #5cff6e; box-shadow: 0 0 0.5em #3f3; }
#power.screen-on .screen .beam { animation: beamOn 0.5s ease-out forwards; }
#power.screen-on .screen .glow { opacity: 1; }
@keyframes beamOn { 0% { opacity: 1; transform: scale(0.02, 1); } 30% { opacity: 1; transform: scale(1, 1); } 60% { opacity: .8; transform: scale(1, 40); } 100% { opacity: 0; transform: scale(1, 60); } }
#power.screen-on .crt { animation: degauss 0.45s ease-out; }
@keyframes degauss { 0%, 100% { filter: none; } 20% { filter: hue-rotate(40deg) saturate(1.6); } 45% { filter: hue-rotate(-30deg) saturate(1.4); } 70% { filter: hue-rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { #power.zoom { transition: none; } #power-btn { animation: none; } }

#post { position: absolute; inset: 0; margin: 0; padding: 28px 34px; font: 16px/1.35 "Courier New", "Lucida Console", monospace; color: #b8b8b8; white-space: pre-wrap; text-shadow: 0 0 2px rgba(255,255,255,.35); }
#post b { color: #fff; font-weight: normal; }
#post .energy { position: absolute; right: 34px; top: 28px; color: #3c3; text-align: right; }
.crt-on { animation: crtOn 0.55s ease-out both; }
@keyframes crtOn { 0% { transform: scale(1, 0.004); filter: brightness(8); } 45% { transform: scale(1, 0.004); filter: brightness(8); } 75% { transform: scale(1, 1); filter: brightness(2); } 100% { transform: none; filter: none; } }
.crt-off { animation: crtOff 0.45s ease-in both; }
@keyframes crtOff { 0% { transform: none; filter: none; } 60% { transform: scale(1, 0.004); filter: brightness(6); } 100% { transform: scale(0, 0.004); filter: brightness(10); } }
#boot-skip { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #444; font: 12px "Courier New", monospace; margin: 0; }

#splash { position: absolute; inset: 0; overflow: hidden; }
.splash-sky { position: absolute; inset: 0; background: radial-gradient(ellipse 35% 12% at 22% 30%, #fff 30%, transparent 70%), radial-gradient(ellipse 30% 10% at 76% 22%, #fff 30%, transparent 70%), radial-gradient(ellipse 40% 13% at 60% 74%, #fff 25%, transparent 70%), radial-gradient(ellipse 26% 9% at 16% 80%, #fff 25%, transparent 70%), linear-gradient(#2c62c8, #8fc4ff); }
.splash-logo { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 18px; filter: drop-shadow(3px 4px 0 rgba(0,0,40,.35)); }
.splash-flag { width: 86px; height: 76px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; transform: perspective(160px) rotateY(-18deg) skewY(-4deg); }
.splash-flag i { display: block; }
.splash-flag i:nth-child(1) { background: #e6312b; } .splash-flag i:nth-child(2) { background: #3cb44b; }
.splash-flag i:nth-child(3) { background: #2b5fd6; } .splash-flag i:nth-child(4) { background: #ffd21f; }
.splash-words { color: #fff; font-family: "Arial Black", Arial, sans-serif; line-height: 1; }
.splash-words span { display: block; font: italic 26px Arial, sans-serif; color: #e8f1ff; }
.splash-words b { font-size: 54px; letter-spacing: -1px; }
.splash-words sup { font-size: 24px; color: #ffd21f; margin-left: 4px; vertical-align: 26px; }
.splash-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: #1b2f6b; overflow: hidden; }
.splash-bar i { position: absolute; top: 0; bottom: 0; width: 60%; background: linear-gradient(90deg, transparent, #3cb44b, #2b5fd6, #e6312b, #ffd21f, transparent); animation: splashBar 1.6s linear infinite; }
@keyframes splashBar { from { left: -60%; } to { left: 100%; } }

/* ---------- logon ---------- */
#logon { background: #008080; }
.logon-row { align-items: flex-start; }
.logon-row > div:nth-child(2) { flex: 1; min-width: 0; }
.logon-row label { margin-bottom: 7px; }
.logon-row label input { width: 100%; }
.logon-buttons { display: flex; flex-direction: column; gap: 6px; }
.logon-row input:disabled { background: var(--face); color: #777; }

/* ---------- shutdown ---------- */
#shutdown { position: fixed; inset: 0; z-index: 6000; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; cursor: pointer; }
#shutdown p { margin: 0; color: #ff8c00; font: bold 34px/1.25 "Arial", sans-serif; text-align: center; letter-spacing: .5px; }
#shutdown small { color: #333; font: 12px var(--font); }

/* ---------- rubber band, zoom, wallpaper repaint ---------- */
#band { position: absolute; border: 1px dotted #fff; mix-blend-mode: difference; pointer-events: none; z-index: 3; }
.zoom-rect { position: fixed; border: 2px solid #808080; z-index: 1500; pointer-events: none; box-sizing: border-box; }
.wp-wipe { position: absolute; inset: 0; z-index: 0; animation: wipe 0.9s steps(14) both; }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
#icons { z-index: 1; }
#icons.refreshing { visibility: hidden; }

/* ---------- windows extras ---------- */
.window.maximized { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
.window.opening { animation: none; }
.titlebar .tb-btn + .tb-btn { margin-left: -4px; }
.titlebar .tb-btn.close { margin-left: 2px; }
.menubar span u { text-decoration: underline; }
.menubar span.open { background: var(--select); color: #fff; }

/* ---------- message boxes ---------- */
.modal { position: fixed; inset: 0; z-index: 1900; }
.msgbox { position: absolute; min-width: 300px; max-width: min(440px, calc(100vw - 20px)); }
.msgbox .body { flex-direction: row; gap: 14px; align-items: flex-start; padding: 14px 12px 10px; }
.msgbox .msg { flex: 1; padding-top: 6px; white-space: pre-wrap; }
.msgbox .buttons { justify-content: center; padding: 0 10px 10px; }
.msgbox .buttons .btn { min-width: 76px; }
.ico-warn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M16 2l15 27H1z' fill='%23ffd21f' stroke='%23000'/%3E%3Cpath d='M15 10h2v10h-2zM15 23h2v2h-2z' fill='%23000'/%3E%3C/svg%3E"); }
.ico-error { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23e00' stroke='%23600'/%3E%3Cpath d='M10 10l12 12M22 10L10 22' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E"); }
.ico-info { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 2C8 2 2 7 2 14c0 4 2 7 5 9l-2 7 8-5h3c8 0 14-5 14-11S24 2 16 2z' fill='%23fff' stroke='%23000'/%3E%3Ctext x='16' y='21' font-size='16' font-family='Georgia' font-weight='bold' font-style='italic' text-anchor='middle' fill='%230a246a'%3Ei%3C/text%3E%3C/svg%3E"); }
.ico-question { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 2C8 2 2 7 2 14c0 4 2 7 5 9l-2 7 8-5h3c8 0 14-5 14-11S24 2 16 2z' fill='%23fff' stroke='%23000'/%3E%3Ctext x='16' y='21' font-size='16' font-family='Verdana' font-weight='bold' text-anchor='middle' fill='%230a246a'%3E%3F%3C/text%3E%3C/svg%3E"); }
.ico-dialup { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32' shape-rendering='crispEdges'%3E%3Cpath d='M1 4h16v12H1z' fill='%23c3c3c3' stroke='%23000'/%3E%3Cpath d='M3 6h12v8H3z' fill='%23008080'/%3E%3Cpath d='M5 17h8v3H5z' fill='%23c3c3c3' stroke='%23000'/%3E%3Cpath d='M31 4h16v12H31z' fill='%23c3c3c3' stroke='%23000'/%3E%3Cpath d='M33 6h12v8H33z' fill='%23008080'/%3E%3Cpath d='M35 17h8v3h-8z' fill='%23c3c3c3' stroke='%23000'/%3E%3Cpath d='M9 21v6h30v-6' fill='none' stroke='%23000'/%3E%3C/svg%3E"); }

/* dial-up box */
.dialup .body { gap: 10px; }
.dialup .row { display: flex; gap: 14px; align-items: center; }
.dialup i.ico-dialup { width: 72px; height: 48px; margin: 0; }
.dialup .wire { display: flex; gap: 4px; margin: 0 0 0 4px; }
.dialup .wire b { width: 6px; height: 6px; background: #808080; display: block; }
.dialup .wire b.on { background: #3cb44b; box-shadow: 0 0 3px #3cb44b; }
.dialup dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.dialup dt { color: #444; } .dialup dd { margin: 0; }
.dialup .status { padding: 4px 6px; min-height: 22px; }

/* ---------- tray ---------- */
#tray { gap: 6px; padding: 0 8px; }
#tray-online { padding-right: 4px; }
.tray-ico { width: 16px; height: 16px; display: inline-block; background-size: contain; background-repeat: no-repeat; cursor: inherit; }
.ico-net { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath d='M1 1h8v6H1z' fill='%23c3c3c3' stroke='%23000' stroke-width='.8'/%3E%3Cpath d='M2 2h6v4H2z' fill='%23336'/%3E%3Cpath d='M7 8h8v6H7z' fill='%23c3c3c3' stroke='%23000' stroke-width='.8'/%3E%3Cpath d='M8 9h6v4H8z' fill='%23336'/%3E%3C/svg%3E"); }
.ico-net.tx { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath d='M1 1h8v6H1z' fill='%23c3c3c3' stroke='%23000' stroke-width='.8'/%3E%3Cpath d='M2 2h6v4H2z' fill='%2342d4f4'/%3E%3Cpath d='M7 8h8v6H7z' fill='%23c3c3c3' stroke='%23000' stroke-width='.8'/%3E%3Cpath d='M8 9h6v4H8z' fill='%23336'/%3E%3C/svg%3E"); }
.ico-net.rx { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath d='M1 1h8v6H1z' fill='%23c3c3c3' stroke='%23000' stroke-width='.8'/%3E%3Cpath d='M2 2h6v4H2z' fill='%23336'/%3E%3Cpath d='M7 8h8v6H7z' fill='%23c3c3c3' stroke='%23000' stroke-width='.8'/%3E%3Cpath d='M8 9h6v4H8z' fill='%2342d4f4'/%3E%3C/svg%3E"); }
.ico-net.off { opacity: .45; filter: grayscale(1); }
.ico-vol { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath d='M2 5h3l4-3v12l-4-3H2z' fill='%23ffd21f' stroke='%23000' stroke-width='.8'/%3E%3Cpath d='M11 5c1 1 1 5 0 6M13 3c2 2 2 8 0 10' fill='none' stroke='%23000' stroke-width='.9'/%3E%3C/svg%3E"); }
.ico-vol.muted { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath d='M2 5h3l4-3v12l-4-3H2z' fill='%23ffd21f' stroke='%23000' stroke-width='.8'/%3E%3Ccircle cx='12.5' cy='8' r='3' fill='none' stroke='%23e00' stroke-width='1.4'/%3E%3Cpath d='M10.5 10l4-4' stroke='%23e00' stroke-width='1.4'/%3E%3C/svg%3E"); }
.grip { width: 3px; height: 24px; margin: 0 2px; border-left: 1px solid var(--light); border-right: 1px solid var(--shadow); }

/* ---------- tooltip & balloons ---------- */
#tooltip { position: fixed; z-index: 4000; background: #ffffe1; border: 1px solid #000; padding: 1px 4px; pointer-events: none; white-space: nowrap; font-size: 11px; }
.toast { position: relative; border-radius: 6px; padding: 7px 22px 8px 10px; pointer-events: auto; }
.toast::after { content: ''; position: absolute; right: 26px; bottom: -9px; border: 9px solid transparent; border-top-color: #000; border-bottom: 0; }
.toast::before { content: ''; position: absolute; right: 27px; bottom: -7px; border: 8px solid transparent; border-top-color: #ffffe1; border-bottom: 0; z-index: 1; }
.toast b { margin-bottom: 2px; }
.toast .x { position: absolute; right: 4px; top: 3px; width: 14px; height: 13px; border: 1px solid #888; font: bold 9px/10px var(--font); text-align: center; background: #fff; }
.toast:not(:last-child)::before, .toast:not(:last-child)::after { display: none; }

/* ---------- menus ---------- */
#start-menu:not(.hidden) { animation: slideUp .14s ease-out; }
@keyframes slideUp { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.menu:not(.hidden) { animation: dropDown .1s ease-out; }
@keyframes dropDown { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.menu li .key { float: right; margin-left: 24px; opacity: .8; }
body.loggedout #icons, body.loggedout #taskbar, body.loggedout #cursors, body.loggedout #windows { visibility: hidden; }
.toast { white-space: pre-line; }
.msgbox .msg { font-size: 11px; }
#logon .titlebar .tb-btn { margin-left: auto; }

/* original splash mark: three stacked little windows */
.splash-flag { position: relative; width: 96px; height: 80px; display: block; transform: rotate(-6deg); }
.splash-flag i { position: absolute; width: 58px; height: 44px; border: 3px solid #fff; background: #fff; box-shadow: 2px 3px 0 rgba(0,0,40,.25); }
.splash-flag i::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: currentColor; }
.splash-flag i:nth-child(1) { left: 0; top: 0; color: #2b5fd6; background: #dbe8ff; }
.splash-flag i:nth-child(2) { left: 20px; top: 16px; color: #e6312b; background: #ffe1dd; }
.splash-flag i:nth-child(3) { left: 38px; top: 32px; color: #3cb44b; background: #e2f7e3; }
.splash-flag i:nth-child(4) { display: none; }
@media (max-width: 640px) {
  #post { font-size: 12px; padding: 18px 16px; }
  #post .energy { display: none; }
  .splash-logo { transform: translate(-50%, -50%) scale(.62); }
}
.logon-row label span { white-space: nowrap; }
.dialup .status { align-self: stretch; }
.icon .glyph { display: block; }

/* =====================================================================
   Next level: pet, CRT, blue screen, snapshots, settings
   ===================================================================== */
.pet { position: absolute; left: 0; top: 0; width: 32px; height: 24px; z-index: 2; transition: transform .18s linear; image-rendering: pixelated; }
.pet svg { display: block; }
.pet.zzz::after { content: 'z Z'; position: absolute; left: 22px; top: -14px; font: bold 10px var(--font); color: #fff; text-shadow: 1px 1px 0 #000; animation: zzz 2s infinite; }
@keyframes zzz { 50% { transform: translate(4px, -4px); opacity: .5; } }
.heart { position: absolute; z-index: 3; color: #ff4f8b; font-size: 16px; text-shadow: 1px 1px 0 #000; pointer-events: none; animation: heart 1.4s ease-out forwards; }
@keyframes heart { to { transform: translateY(-46px) scale(1.4); opacity: 0; } }

body.crt::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 4800;
  background: repeating-linear-gradient(rgba(0,0,0,.16) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.5) 100%);
  animation: crtFlicker .12s infinite steps(2); }
@keyframes crtFlicker { 50% { opacity: .9; } }
body.crt #desktop, body.crt #windows, body.crt #taskbar { text-shadow: 0 0 1px rgba(255,255,255,.15); }

#bsod { position: fixed; inset: 0; z-index: 7000; background: #0000aa; color: #fff; display: flex; align-items: center; justify-content: center; font: 17px/1.45 "Lucida Console", "Courier New", monospace; cursor: none; }
.bsod-box { max-width: 720px; padding: 20px; }
.bsod-box p { white-space: pre-wrap; margin: 0 0 18px; }
.bsod-title { display: table; margin: 0 auto 22px; background: #aaa; color: #0000aa; padding: 0 6px; }
.bsod-cont { text-align: center; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .35; } }

.snap { width: 100%; height: auto; display: block; min-height: 0; flex: 1; object-fit: contain; background: #808080; }
.window .body .hint { margin: 0; color: #555; }
fieldset.group { border: 1px solid; border-color: var(--shadow) var(--light) var(--light) var(--shadow); margin: 6px 0 0; padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 6px; }
fieldset.group legend { padding: 0 3px; }
label.check { display: flex; align-items: center; gap: 4px; }
.buddy.offline .who { font-weight: normal; color: #777; }

/* =====================================================================
   Toys: fridge, mural, bubble wrap, hall of fame, invite perks
   ===================================================================== */
#start-menu ul { max-height: calc(100vh - 60px); overflow-y: auto; }
.ico-fridge { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M7 1h18v30H7z' fill='%23eef3f5' stroke='%23000'/%3E%3Cpath d='M7 11h18' stroke='%23000'/%3E%3Cpath d='M21 4v4M21 14v8' stroke='%23808080' stroke-width='2'/%3E%3Cpath d='M10 15h6v3h-6z' fill='%23e6194b'/%3E%3Cpath d='M11 20h7v3h-7z' fill='%23ffe119'/%3E%3Cpath d='M10 25h5v3h-5z' fill='%234363d8'/%3E%3C/svg%3E"); }
.ico-mural { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M2 4h28v22H2z' fill='%23fff' stroke='%23000'/%3E%3Cpath d='M4 6h4v4H4zM16 14h4v4h-4z' fill='%23e6194b'/%3E%3Cpath d='M8 10h4v4H8zM20 6h4v4h-4z' fill='%234363d8'/%3E%3Cpath d='M12 14h4v4h-4zM24 18h4v4h-4z' fill='%233cb44b'/%3E%3Cpath d='M4 18h4v4H4zM12 6h4v4h-4z' fill='%23ffe119'/%3E%3Cpath d='M14 26h4v4h-4z' fill='%23808080'/%3E%3C/svg%3E"); }
.ico-bubbles { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M2 4h28v24H2z' fill='%23dfeef6' stroke='%23000'/%3E%3Cg fill='%23fff' stroke='%2378a9c4'%3E%3Ccircle cx='8' cy='10' r='4'/%3E%3Ccircle cx='17' cy='10' r='4'/%3E%3Ccircle cx='26' cy='10' r='3.5'/%3E%3Ccircle cx='8' cy='21' r='4'/%3E%3Ccircle cx='26' cy='21' r='3.5'/%3E%3C/g%3E%3Cpath d='M14 19l6 4M20 19l-6 4' stroke='%2378a9c4'/%3E%3C/svg%3E"); }
.ico-fame { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M8 3h16v8c0 6-4 9-8 9s-8-3-8-9z' fill='%23ffd21f' stroke='%23000'/%3E%3Cpath d='M8 6H3v3c0 3 3 5 5 5M24 6h5v3c0 3-3 5-5 5' fill='none' stroke='%23000'/%3E%3Cpath d='M14 20h4v5h-4z' fill='%23d4a017' stroke='%23000'/%3E%3Cpath d='M9 25h14v4H9z' fill='%239a6324' stroke='%23000'/%3E%3C/svg%3E"); }

.fridge { position: relative; flex: 1; min-height: 0; overflow: hidden; border: 2px solid #9aa7ad; border-radius: 6px;
  background: linear-gradient(90deg, #e3e9ec, #ffffff 45%, #e6ecef); box-shadow: inset 0 0 0 1px #fff, inset -6px 0 0 #d6dee2; }
.fridge::after { content: ''; position: absolute; right: 14px; top: 30%; width: 8px; height: 40%; border-radius: 4px; background: linear-gradient(90deg, #c7d0d4, #f4f7f8, #b9c3c8); pointer-events: none; }
.magnet { position: absolute; padding: 2px 6px; background: #fff; border: 1px solid #9a9a9a; box-shadow: 1px 2px 0 rgba(0,0,0,.25); font: 13px "Times New Roman", Georgia, serif; color: #111; white-space: nowrap; touch-action: none; user-select: none; }
.magnet:hover { box-shadow: 2px 3px 0 rgba(0,0,0,.3); }
.magnet.held { box-shadow: 4px 6px 2px rgba(0,0,0,.3); transform: scale(1.08) rotate(0deg) !important; }
.magnet.remote { transition: left .17s linear, top .17s linear; }

.mural-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #808080; padding: 6px; }
#mural { width: 100%; max-height: 100%; aspect-ratio: 3 / 2; object-fit: contain; image-rendering: pixelated; background: #fff; cursor: crosshair; }
.mural-pal { display: flex; flex-wrap: wrap; gap: 2px; }
.mural-pal .swatch { width: 24px; height: 24px; }

.bw-head { font-weight: bold; text-align: center; padding: 2px; }
.bw-sheet { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(8, 1fr); gap: 4px; padding: 8px;
  background: #cfe6f2; border: 1px solid; border-color: var(--shadow) var(--light) var(--light) var(--shadow); touch-action: none; }
.bw-sheet.solo { background: #ffe9c4; }
.bubble { display: block; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 18%, rgba(255,255,255,.75) 30%, rgba(170,205,225,.55) 70%, rgba(120,169,196,.7) 100%); box-shadow: inset -2px -3px 4px rgba(80,130,160,.35), 0 1px 0 rgba(255,255,255,.6); transition: transform .08s; }
.bubble:hover { transform: scale(1.05); }
.bubble.popped { background: radial-gradient(circle at 50% 50%, rgba(120,169,196,.25), rgba(120,169,196,.08) 70%); box-shadow: inset 1px 1px 2px rgba(0,0,0,.25); transform: scale(.9); }

.fame { flex: 1; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px; background: #fff; }
.fame-col b { display: block; margin-bottom: 4px; border-bottom: 1px solid var(--shadow); }
.fame-col ol { margin: 0; padding-left: 20px; }
.fame-col li { display: flex; justify-content: space-between; gap: 6px; }
.fame-col li .n { color: #555; }
.fame-col li.empty { color: #888; font-style: italic; list-style: none; margin-left: -20px; }

.perks { background: #fff; padding: 4px 8px; margin: 6px 0; }
.perk { display: flex; gap: 8px; padding: 3px 0; color: #777; }
.perk.got { color: #000; font-weight: bold; }

/* invite rewards shown on other people's cursors */
.cursor.perk-hat .tag::before { content: ''; display: inline-block; width: 10px; height: 11px; margin-right: 3px; vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11' shape-rendering='crispEdges'%3E%3Cpath d='M5 0l5 10H0z' fill='%23ffd21f' stroke='%23000' stroke-width='.6'/%3E%3Cpath d='M3 6h1v1H3zM6 4h1v1H6zM5 8h1v1H5z' fill='%23e6194b'/%3E%3C/svg%3E") no-repeat center/contain; }
.cursor.perk-rainbow .tag { background: linear-gradient(90deg, #e6194b, #f58231, #ffe119, #3cb44b, #4363d8, #911eb4) !important; background-size: 300% 100% !important; animation: rainbow 3s linear infinite; text-shadow: 1px 1px 0 #000; }
@keyframes rainbow { to { background-position: 300% 0; } }
.cursor.perk-gold svg { filter: drop-shadow(0 0 3px #ffd21f); }

/* ---------- Activity Log ---------- */
.ico-log { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M6 4h20v26H6z' fill='%23d8b878' stroke='%23000'/%3E%3Cpath d='M9 8h14v19H9z' fill='%23fff' stroke='%23000'/%3E%3Cpath d='M12 2h8v5h-8z' fill='%23c3c3c3' stroke='%23000'/%3E%3Cpath d='M11 12h2M15 12h6M11 16h2M15 16h6M11 20h2M15 20h6M11 24h2M15 24h4' stroke='%230a246a'/%3E%3Cpath d='M11 12h2M11 16h2' stroke='%23008000'/%3E%3C/svg%3E"); }
.activity { flex: 1; overflow: auto; background: #fff; padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.act-head b { display: block; font-size: 13px; margin-bottom: 2px; }
.act-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.act-stats div { border: 1px solid var(--shadow); background: #ffffe1; padding: 4px; text-align: center; }
.act-stats b { display: block; font-size: 15px; color: #0a246a; }
.act-stats span { font-size: 10px; color: #555; }
.act-names { color: #555; }
.act-title { font-weight: bold; border-bottom: 1px solid var(--shadow); }
.act-feed { list-style: none; margin: 0; padding: 0; }
.act-feed li { padding: 2px 0; display: flex; gap: 4px; align-items: baseline; }
.act-feed li .when { margin-left: auto; color: #888; font-size: 10px; white-space: nowrap; padding-left: 6px; }
.act-feed li.link { cursor: pointer; }
.act-feed li.link:hover { background: #0a246a; color: #fff; }
.act-feed li.link:hover .when { color: #ddd; }
