/* ==========================================================================
   Mr. Biss: "Biss XP" theme. Original drawings in the style of a 2001
   desktop; no Microsoft artwork, logos or sounds are used.
   ========================================================================== */
:root {
  --ui-font: Tahoma, "Segoe UI", Verdana, Geneva, sans-serif;
  --title-font: "Trebuchet MS", Tahoma, "Segoe UI", sans-serif;
  --brand-font: "Franklin Gothic Medium", "Franklin Gothic", "Arial Narrow", Arial, sans-serif;
  --navy: #00309c;
  --login-blue: #5a7edc;
  --face: #ece9d8;
  --border-blue: #0831d9;
  --orange: #f39a33;
  --taskbar-h: 30px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 12px/1.35 var(--ui-font);
  color: #000;
  background: var(--login-blue);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }

/* Anything still waiting on content from Mr. Biss */
.ph { outline: 1px dashed #e0a800; outline-offset: 2px; background-color: rgba(255, 214, 64, .14); }

/* ------------------------------ Screens ------------------------------ */
.screen {
  position: fixed; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.screen.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }

/* Shared log-on frame: dark band, blue middle, dark band */
.xp-frame { display: flex; flex-direction: column; background: var(--login-blue); color: #fff; }
.xp-top { flex: 0 0 auto; height: 12vh; min-height: 56px; background: var(--navy); position: relative; }
.xp-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(160,190,255,.9) 25%, rgba(160,190,255,.9) 60%, rgba(255,255,255,0) 100%);
}
.xp-mid {
  flex: 1 1 auto; display: flex; align-items: center; position: relative;
  background:
    radial-gradient(ellipse 45% 55% at 8% 0%, rgba(255,255,255,.45), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #6a8ee6 0%, #5a7edc 40%, #4f72d3 100%);
}
.xp-bottom {
  flex: 0 0 auto; height: 12vh; min-height: 64px; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 4vw 0 2.5vw;
  background: linear-gradient(180deg, #1a4fc4 0%, #0f3fae 40%, var(--navy) 100%);
}
.xp-bottom::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 30%, #fff 50%, rgba(255,255,255,.85) 70%, rgba(255,255,255,0) 100%);
}

/* ------------------------------ Login ------------------------------ */
.login-left {
  flex: 1 1 50%; display: flex; flex-direction: column; align-items: flex-end;
  padding-right: 3vw; text-align: right;
}
.brand { display: flex; align-items: flex-end; }
.brand-text { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.brand-word { font: 400 66px/0.9 var(--brand-font); letter-spacing: -2px; text-shadow: 0 2px 4px rgba(0,0,40,.3); }
.brand-word i { color: #fff; font-style: normal; }
.brand-tag { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #fff; font: italic 700 14px var(--title-font); letter-spacing: .5px; }
.login-hint { font-size: clamp(15px, 1.4vw, 18px); margin: 30px 0 0; text-shadow: 0 1px 1px rgba(0,0,0,.15); }

.login-divider {
  align-self: stretch; width: 1px; margin: 4vh 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.75) 20%, rgba(255,255,255,.75) 80%, rgba(255,255,255,0));
}
.login-right { flex: 1 1 50%; padding-left: 2.2vw; }

.user-tile {
  display: flex; align-items: center; gap: 14px; width: min(420px, 100%);
  padding: 8px 10px; border: 0; border-radius: 8px 0 0 8px; background: transparent; color: #fff; text-align: left;
  transition: background .2s;
}
.user-tile:hover, .user-tile:focus-visible, .user-tile.is-selected {
  background: linear-gradient(90deg, #00309c 0%, rgba(0,48,156,.75) 55%, rgba(0,48,156,0) 100%);
  outline: none;
}
.user-tile .avatar { width: 76px; height: 76px; border-width: 3px; border-radius: 6px; }
.user-tile:hover .avatar, .user-tile.is-selected .avatar { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.user-meta { display: flex; flex-direction: column; gap: 2px; }
.user-name { font: 400 26px var(--title-font); }
.user-role { font-size: 13px; color: #fff; opacity: .9; }
.user-loading { font-size: 12px; opacity: 0; height: 0; overflow: hidden; transition: opacity .3s; }
.user-tile.is-selected .user-role { display: none; }
.user-tile.is-selected .user-loading { opacity: 1; height: auto; }

/* Avatar: his profile photo, or an MB monogram if it fails to load */
.avatar {
  display: inline-grid; place-items: center; flex: 0 0 auto; overflow: hidden;
  border: 2px solid #fff; border-radius: 5px; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* his photo has lots of white around him: zoom onto the figure (remove if the photo is re-cropped) */
.avatar img { transform: scale(2.4); transform-origin: 48% 53%; }
.avatar.is-fallback {
  background: linear-gradient(135deg, #ffb340, #e2531c 60%, #8a2a12);
  color: #fff; font: 700 1em var(--brand-font); letter-spacing: -.5px;
}

.turnoff {
  display: flex; align-items: center; gap: 10px; border: 0; background: none; color: #fff;
  font-size: clamp(13px, 1.2vw, 16px); padding: 4px;
}
.turnoff:hover span:last-child { text-decoration: underline; }
.power-btn {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 4px;
  border: 1px solid #fff; background: linear-gradient(180deg, #f08a5d, #d2401a 55%, #b5300f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.power-btn svg { width: 16px; height: 16px; }
.bottom-note { margin: 0; font-size: 11px; line-height: 1.4; text-align: left; opacity: .95; }

/* ------------------------------ Welcome ------------------------------ */
.welcome-mid { justify-content: center; }
.welcome-word {
  margin: 0 0 0 -12vw; font: italic 700 clamp(48px, 7vw, 96px) var(--brand-font);
  text-shadow: 3px 3px 6px rgba(0,0,40,.35); letter-spacing: -1px;
  opacity: 0; transform: translateX(-20px);
}
#welcome.is-active .welcome-word { animation: welcomeIn 1s .15s ease-out forwards; }
@keyframes welcomeIn { to { opacity: 1; transform: none; } }

/* ------------------------------ Desktop ------------------------------ */
#desktop { background: #6aa3e0; }
.wallpaper {
  position: absolute; inset: 0 0 var(--taskbar-h) 0; overflow: hidden;
  background: #6aa3e0 center / cover no-repeat;   /* poster frame set by JS */
}
.wallpaper video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease;
}
.wallpaper video.is-ready { opacity: 1; }

/* Desktop icons: 32px, crisp, 1px hard text shadow */
.icons {
  position: absolute; top: 10px; left: 6px; bottom: calc(var(--taskbar-h) + 10px);
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start;
}
.icons li { margin: 0 0 18px; }
.icons, .title-bar, .taskbar, .vid-ph, .start-menu, .shutdown-box, .msn-toast { -webkit-user-select: none; user-select: none; }
.icon {
  width: 76px; padding: 2px; border: 0; background: none; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.icon svg { width: 32px; height: 32px; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.45)); }
.icon span {
  font: 11px/1.25 Tahoma, Verdana, sans-serif; text-align: center; padding: 0 2px;
  text-shadow: 1px 1px 0 #000; -webkit-font-smoothing: none;
}
.icon:focus { outline: none; }
.icon.is-selected svg { filter: drop-shadow(1px 1px 0 rgba(0,0,0,.45)) brightness(.7) sepia(1) hue-rotate(180deg) saturate(4); }
.icon.is-selected span { background: #0b61ff; text-shadow: none; outline: 1px dotted #fff; }

/* ------------------------------ Taskbar ------------------------------ */
.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--taskbar-h); z-index: 9000;
  display: flex; align-items: stretch;
  background: linear-gradient(180deg, #3168d5 0%, #4993e6 4%, #2463d6 14%, #2459d3 50%, #2159d7 86%, #1941a5 100%);
  border-top: 1px solid #0c2f9e;
}
.start-btn {
  display: flex; align-items: center; gap: 5px; padding: 0 18px 0 8px; border: 0;
  border-radius: 0 12px 12px 0; color: #fff;
  background: linear-gradient(180deg, #3c9b3c 0%, #5bc25b 8%, #3ea83e 30%, #349834 70%, #2b7d2b 100%);
  box-shadow: inset -2px 0 3px rgba(0,0,0,.25), inset 0 1px 1px rgba(255,255,255,.4);
  font: italic 700 17px var(--title-font); text-shadow: 1px 1px 2px rgba(0,0,0,.5);
}
.start-btn:hover, .start-btn[aria-expanded="true"] { filter: brightness(1.1); }
.start-btn[aria-expanded="true"] { background: linear-gradient(180deg, #2c7a2c, #3a9a3a 40%, #2b7d2b); }
.task-buttons { flex: 1 1 auto; display: flex; gap: 3px; padding: 3px 8px; min-width: 0; }
.task-btn {
  display: flex; align-items: center; gap: 6px; width: 160px; min-width: 0; padding: 0 8px;
  border: 1px solid rgba(0,0,0,.25); border-radius: 3px; color: #fff; font-size: 11px;
  background: linear-gradient(180deg, #4d95f2, #3c81f3 15%, #3277e8 85%, #2a63d0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.task-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.task-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-btn.is-active { background: linear-gradient(180deg, #1e52b7, #1a4cb0 20%, #2157c4); box-shadow: inset 1px 1px 2px rgba(0,0,0,.4); }
.tray {
  display: flex; align-items: center; gap: 6px; padding: 0 12px 0 10px; color: #fff;
  background: linear-gradient(180deg, #0c59b9 0%, #139ee9 6%, #18b5f2 10%, #139beb 14%, #1290e8 20%, #0d8dea 60%, #0a74d4 92%, #0b5fb5 100%);
  border-left: 1px solid #092e9e; box-shadow: inset 1px 0 1px #18bbff;
}
.tray-btn { border: 0; background: none; padding: 2px; }
.tray-btn svg { width: 16px; height: 16px; }
.tray-btn.is-muted .waves { display: none; }
.tray-btn.is-muted { opacity: .65; }
.clock { font-size: 11px; white-space: nowrap; }
/* XP-style volume box above the speaker */
.vol-pop {
  position: absolute; right: 52px; bottom: calc(var(--taskbar-h) + 4px); z-index: 9500;
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; padding: 8px 6px 7px;
  border: 1px solid #0831d9; border-radius: 3px; background: #ece9d8; color: #000; font-size: 11px;
  box-shadow: 2px 2px 6px rgba(0,0,0,.35);
}
.vol-pop[hidden] { display: none; }
.vol-pop b { font-weight: 400; }
.vol-pop input[type="range"] { writing-mode: vertical-lr; direction: rtl; width: 22px; height: 96px; margin: 0; accent-color: #2a5bd7; }
.vol-pop label { display: flex; align-items: center; gap: 3px; white-space: nowrap; }

/* Messenger-style "has just signed in" toast */
.msn-toast {
  position: absolute; right: 8px; bottom: calc(var(--taskbar-h) + 6px); z-index: 9400;
  width: 190px; height: 112px; padding: 14px 12px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid #5a6fb3; border-radius: 2px; color: #000; text-align: center; font-size: 11px;
  background: linear-gradient(160deg, #eef1ff 0%, #c9d2f7 40%, #f5c26b 100%);
  box-shadow: 1px 2px 6px rgba(0,0,0,.4);
  animation: toastUp .4s ease-out;
}
.msn-toast svg { width: 32px; height: 32px; }
.msn-toast b { font-size: 12px; }
.toast-x { position: absolute; top: 2px; right: 5px; font-size: 13px; color: #445; }
@keyframes toastUp { from { transform: translateY(120%); } to { transform: none; } }

/* ------------------------------ Start menu ------------------------------ */
.start-menu {
  position: absolute; left: 0; bottom: var(--taskbar-h); z-index: 9500; width: 380px;
  border: 1px solid #0c3fbf; border-radius: 8px 8px 0 0; overflow: hidden;
  background: #fff; box-shadow: 3px 0 8px rgba(0,0,0,.4);
}
.sm-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: #fff;
  background: linear-gradient(180deg, #1868ce 0%, #0e60cb 12%, #0e60cb 20%, #1164cf 32%, #1667cf 33%, #1b6cd3 47%, #1e70d9 54%, #2476dc 60%, #297ae0 65%, #3482e3 77%, #3786e5 79%, #428ee9 90%, #4791eb 100%);
  border-bottom: 2px solid #f39a33;
}
.sm-head .avatar { width: 46px; height: 46px; border-color: #e9eef9; }
.sm-name { font: 700 15px var(--title-font); text-shadow: 1px 1px 2px rgba(0,0,0,.45); }
.sm-body { display: flex; }
.sm-body ul { list-style: none; margin: 0; padding: 6px 0; flex: 1 1 50%; }
.sm-right { background: #d3e5fa; border-left: 1px solid #95bdee; }
.sm-body li > button, .sm-body li > a {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 0; background: none;
  text-align: left; color: #000; text-decoration: none; font-size: 11px;
}
.sm-left li > button svg { width: 32px; height: 32px; flex: 0 0 auto; }
.sm-right li > button svg { width: 22px; height: 22px; flex: 0 0 auto; }
.sm-right li > button { color: #0a246a; font-weight: 700; }
.sm-body li > button:hover { background: #316ac5; color: #fff; }
.sm-body span { display: flex; flex-direction: column; }
.sm-body small { color: #777; font-size: 10px; }
.sm-body li > button:hover small { color: #dfe8ff; }
.sm-sep { height: 1px; margin: 4px 8px; background: linear-gradient(90deg, rgba(0,0,0,0), #b7c7e0, rgba(0,0,0,0)); }
.sm-foot {
  display: flex; justify-content: flex-end; gap: 8px; padding: 5px 8px;
  background: linear-gradient(180deg, #4282d6 0%, #3b85e0 3%, #418ae3 5%, #418ae3 17%, #3c87e2 21%, #3786e4 26%, #3482e3 29%, #2e7ee1 39%, #2374df 49%, #2072db 57%, #196edb 62%, #176bd8 72%, #1468d7 75%, #1165d4 83%, #0f61cb 88%);
}
.sm-foot button { display: flex; align-items: center; gap: 5px; border: 0; background: none; color: #fff; font-size: 11px; padding: 3px 6px; border-radius: 3px; }
.sm-foot button:hover { background: rgba(255,255,255,.15); }
.sm-foot-ico { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #fff; border-radius: 3px; }
.sm-foot-ico svg { width: 14px; height: 14px; }
.sm-foot-ico.logoff { background: linear-gradient(180deg, #f8c25a, #d58b14); }
.sm-foot-ico.power { background: linear-gradient(180deg, #f08a5d, #c8381a); }

/* ------------------------------ Windows (always 100% opaque) ------------------------------ */
#windows { position: absolute; inset: 0 0 var(--taskbar-h) 0; pointer-events: none; }
.window {
  position: absolute; pointer-events: auto; display: flex; flex-direction: column;
  min-width: 260px; min-height: 160px;
  border: 3px solid var(--border-blue); border-top: 0; border-radius: 8px 8px 0 0;
  background: var(--face); box-shadow: 2px 4px 14px rgba(0,0,0,.4);
  animation: winOpen .15s ease-out;
}
@keyframes winOpen { from { transform: scale(.97); } to { transform: none; } }
.window.is-inactive { border-color: #7a96df; }
.title-bar {
  flex: 0 0 auto; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 5px 0 7px;
  border-radius: 7px 7px 0 0; margin: 0 -3px; color: #fff; touch-action: none;
  background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #06f 88%, #06f 93%, #005bff 95%, #003dd7 96%, #003dd7 100%);
}
.window.is-inactive .title-bar { background: linear-gradient(180deg, #7697e7 0%, #7e9ee3 3%, #94afe8 6%, #97b4e9 8%, #82a5e4 14%, #7c9fe2 17%, #7996de 25%, #7b99e1 56%, #82a9e9 81%, #80a5e7 89%, #7b96e1 94%, #7a93df 97%, #abbae3 100%); }
.title-bar svg.title-ico { width: 16px; height: 16px; flex: 0 0 auto; }
.title { flex: 1 1 auto; min-width: 0; font: 700 13px var(--title-font); text-shadow: 1px 1px #0f1089; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.title-btns { display: flex; gap: 2px; }
/* Title-bar buttons, per Bassem's reference: white rim, glossy blue / orange-red */
.tb {
  position: relative; width: 21px; height: 21px; padding: 0; border: 1px solid #fff; border-radius: 3px;
  background: radial-gradient(circle at 90% 90%, #0054e9 0%, #2263d5 55%, #4479e4 70%, #a3bbec 90%, #fff 100%);
}
.tb:hover { filter: brightness(1.18); }
.tb:active { filter: brightness(.9); }
.tb.close { background: radial-gradient(circle at 90% 90%, #cc4600 0%, #dc6527 55%, #cd7546 70%, #ffccb2 90%, #fff 100%); }
.tb::before, .tb::after { content: ""; position: absolute; background: #fff; }
.tb.min::before { left: 4px; bottom: 4px; width: 7px; height: 3px; }
.tb.max::before { left: 3px; top: 3px; width: 13px; height: 13px; background: none; border: 1px solid #fff; border-top-width: 3px; box-sizing: border-box; }
.tb.close::before, .tb.close::after { left: 8.5px; top: 3px; width: 2px; height: 13px; }
.tb.close::before { transform: rotate(45deg); }
.tb.close::after { transform: rotate(-45deg); }
.window-body { flex: 1 1 auto; min-height: 0; overflow: auto; position: relative; background: var(--face); }
.window.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; }
.window.is-max .title-bar { border-radius: 0; }
.window.is-min { display: none; }
.resize-grip { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 50%, #b9b5a5 50%, #b9b5a5 60%, transparent 60%, transparent 70%, #b9b5a5 70%, #b9b5a5 80%, transparent 80%); }

/* XP button */
.xp-button {
  display: inline-block; min-width: 75px; padding: 4px 12px; border: 1px solid #003c74; border-radius: 3px; color: #000;
  background: linear-gradient(180deg, #fff 0%, #ecebe6 86%, #d6d0c5 100%); text-align: center; text-decoration: none;
}
.xp-button:hover { box-shadow: inset 0 -1px 0 #e5a01a, inset 0 1px 0 #ffd77a, inset 1px 0 0 #fbcf72, inset -1px 0 0 #fbcf72; }
.xp-button:active { background: linear-gradient(180deg, #cdcac3, #e3e3db 8%, #f2f1ec); }
.xp-button.primary { font-weight: 700; }

/* Fake browser chrome (Instagram + Studio windows) */
.browser { display: flex; flex-direction: column; height: 100%; }
.menu-bar { display: flex; gap: 14px; padding: 2px 8px; border-bottom: 1px solid #d0cdc0; font-size: 11px; }
.menu-bar span::first-letter { text-decoration: underline; }
.addr-bar { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-bottom: 1px solid #b9b5a5; font-size: 11px; color: #555; }
.addr-bar .addr { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 5px; height: 21px; padding: 0 4px; border: 1px solid #7f9db9; background: #fff; color: #000; overflow: hidden; white-space: nowrap; }
.addr-bar .addr svg { width: 14px; height: 14px; flex: 0 0 auto; }
.go-btn { display: flex; align-items: center; gap: 3px; border: 0; background: none; font-size: 11px; color: #000; }
.go-btn i { display: inline-block; width: 14px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #6ed16e, #2a9a2a); position: relative; }
.go-btn i::after { content: ""; position: absolute; left: 5px; top: 3px; border: 4px solid transparent; border-left: 5px solid #fff; }
.page { flex: 1 1 auto; min-height: 0; overflow: auto; background: #fff; }
.status-bar { display: flex; justify-content: space-between; padding: 2px 8px; border-top: 1px solid #b9b5a5; font-size: 11px; color: #333; }

/* ------------------------------ Portfolio: "My Videos" Explorer folder ------------------------------ */
.pf { display: flex; flex-direction: column; height: 100%; background: var(--face); color: #000; }
.pf-tools { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-bottom: 1px solid #d0cdc0; font-size: 11px; }
.pf-tool { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border: 1px solid transparent; border-radius: 3px; background: none; color: #000; font-size: 11px; }
.pf-tool svg { width: 18px; height: 18px; }
button.pf-tool:not(:disabled):hover { border-color: #c5c2b2; background: linear-gradient(180deg, #fff, #ebe9dd); }
.pf-tool:disabled { color: #9d9a8c; }
.pf-tool.is-static { color: #333; }
.pf-arrow { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #1d6b12; background: radial-gradient(circle at 35% 30%, #b7f19a, #3fae2a 60%, #237816); }
.pf-arrow::after { content: ""; position: absolute; left: 4px; top: 5px; border: 4px solid transparent; border-right: 6px solid #fff; border-left: 0; }
.pf-tool:disabled .pf-arrow { filter: grayscale(1) opacity(.55); }
.pf-sep { width: 1px; height: 20px; background: #c5c2b2; margin: 0 4px; }
.pf-views::before { content: ""; width: 14px; height: 12px; background:
  linear-gradient(#3d6bc9, #3d6bc9) 0 0 / 6px 5px no-repeat, linear-gradient(#3d6bc9, #3d6bc9) 8px 0 / 6px 5px no-repeat,
  linear-gradient(#3d6bc9, #3d6bc9) 0 7px / 6px 5px no-repeat, linear-gradient(#3d6bc9, #3d6bc9) 8px 7px / 6px 5px no-repeat; }
.pf-addr { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-bottom: 1px solid #b9b5a5; font-size: 11px; color: #555; }
.pf-addr .addr { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 5px; height: 21px; padding: 0 4px; border: 1px solid #7f9db9; background: #fff; color: #000; overflow: hidden; white-space: nowrap; }
.pf-addr .addr svg { width: 16px; height: 16px; flex: 0 0 auto; }
.pf-path { overflow: hidden; text-overflow: ellipsis; }
.pf-main { flex: 1 1 auto; min-height: 0; display: flex; background: #fff; }
.pf-side { flex: 0 0 190px; padding: 12px 10px; overflow: auto; background: linear-gradient(180deg, #7ba2e7, #6375d6); }
.pf-box { margin-bottom: 12px; border-radius: 4px 4px 0 0; overflow: hidden; background: #d6dff7; font-size: 11px; }
.pf-box b { display: block; padding: 4px 8px; background: linear-gradient(90deg, #fff, #c6d3f7); color: #215dc6; }
.pf-box p { margin: 0; padding: 7px 8px; color: #333; }
.pf-files { flex: 1 1 auto; min-width: 0; overflow: auto; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px 8px; align-content: start; }
.pf-file { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 2px; border: 1px solid transparent; border-radius: 2px; background: none; color: #000; font-size: 11px; text-align: center; }
.pf-file:hover .pf-name, .pf-file:focus-visible .pf-name { background: #316ac5; color: #fff; }
.pf-file:focus-visible { outline: 1px dotted #000; }
/* no frame: each cover sits at its own shape (vertical reels tall, the wide video wide) */
.pf-thumb { position: relative; display: block; width: 100px; height: 140px; }
.pf-thumb > span { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.pf-pic { position: relative; display: inline-flex; align-items: flex-end; height: 100%; max-width: 100%; }
.pf-thumb img { position: relative; display: block; max-width: 100%; max-height: 100%; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.pf-file:hover .pf-thumb img { outline: 2px solid #316ac5; }
.pf-play { position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #fff; background: rgba(0,0,0,.6); }
.pf-play::after { content: ""; position: absolute; left: 6px; top: 4px; border: 4px solid transparent; border-left: 6px solid #fff; border-right: 0; }
.pf-name { max-width: 108px; padding: 0 2px; line-height: 1.3; word-break: break-word; }
.pf-player { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: #000; }
.pf-player[hidden], .pf-files[hidden] { display: none; }
.pf-stage { flex: 1 1 auto; min-height: 0; position: relative; }
.pf-stage video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.pf-ctrl { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; background: var(--face); border-top: 1px solid #b9b5a5; }
.pf-ctrl .xp-button { min-width: 64px; }
.pf-ctrl .xp-button:disabled { color: #a3a196; }
.pf-now { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.pf-status { flex: 0 0 auto; display: flex; justify-content: space-between; padding: 2px 8px; border-top: 1px solid #b9b5a5; font-size: 11px; color: #333; }
.vid-ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff;
  background: linear-gradient(120deg, #ff8a1f, #d9361a, #6d2bd9, #1a63d6, #ff8a1f); background-size: 400% 400%;
  animation: hue 10s ease infinite;
}
.vid-ph b { display: block; font: 700 18px var(--title-font); text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.vid-ph small { opacity: .9; }
.pf .ph { outline-offset: -3px; }
@keyframes hue { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ------------------------------ Instagram: mirror of his profile ------------------------------ */
.ig { max-width: 560px; margin: 0 auto; padding: 18px 16px 24px; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #111; }
.ig-head { display: flex; align-items: center; gap: 22px; padding: 0 4px 16px; }
.ig-head .avatar { width: 86px; height: 86px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #e1306c; font-size: 28px; }
.ig-info { min-width: 0; }
.ig-handle { margin: 0 0 8px; font-size: 20px; font-weight: 400; }
.ig-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.ig-follow, .ig-msg { display: inline-block; padding: 6px 16px; border-radius: 8px; font-weight: 600; font-size: 13px; text-decoration: none; }
.ig-follow { background: #0095f6; color: #fff; }
.ig-follow:hover { background: #1877f2; }
.ig-msg { background: #efefef; color: #111; }
.ig-msg:hover { background: #dbdbdb; }
.ig-bio { margin: 0; font-size: 14px; line-height: 1.4; color: #111; }
.ig-bio b { display: block; font-weight: 600; }
.ig-cat { display: block; color: #737373; }
/* his profile shows the whole photo, not the zoomed crop used elsewhere */
.ig-head .avatar img { transform: none; }
.ig-tabs { display: flex; justify-content: center; gap: 48px; border-top: 1px solid #dbdbdb; font-size: 11px; font-weight: 600; letter-spacing: 1px; color: #8e8e8e; }
.ig-tabs span { padding: 12px 0; margin-top: -1px; }
.ig-tabs .is-on { color: #111; border-top: 1px solid #111; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.ig-post { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; cursor: pointer; background: #efefef center / cover no-repeat; }
.ig-post:hover { filter: brightness(.85); }
.ig-badge { position: absolute; top: 6px; right: 7px; color: #fff; font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.ig-open { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 9px 12px; border-radius: 8px; background: #0095f6; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.ig-open:hover { background: #1877f2; }
.ig-open svg { width: 22px; height: 22px; }

/* in-window post viewer */
.browser { position: relative; }
.ig-viewer { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 16px 44px; background: rgba(0,0,0,.72); }
.igv-box { position: relative; display: flex; width: min(100%, 720px); height: min(100%, 560px); background: #fff; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.igv-media { flex: 1 1 auto; min-width: 0; min-height: 0; display: grid; place-items: center; background: #000; }
.igv-media { position: relative; }
.igv-media > * { position: absolute; inset: 0; }
.igv-media video, .igv-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.igv-media.is-embed { background: #fff; }
.igv-media iframe { width: 100%; height: 100%; border: 0; }
.igv-side { flex: 0 0 230px; display: flex; flex-direction: column; border-left: 1px solid #efefef; }
.igv-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid #efefef; font-size: 13px; }
.igv-user .avatar { width: 32px; height: 32px; border-radius: 50%; border-width: 1px; }
.igv-cap { flex: 1 1 auto; margin: 0; padding: 12px; overflow: auto; font-size: 13px; line-height: 1.4; }
.igv-link { margin: 12px; padding: 8px; border-radius: 8px; background: #0095f6; color: #fff; text-align: center; font-weight: 600; font-size: 13px; text-decoration: none; }
.igv-x { position: absolute; top: -12px; right: -34px; width: 28px; height: 28px; border: 0; background: none; color: #fff; font-size: 28px; line-height: 1; }
.igv-nav { position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #111; font-size: 22px; line-height: 1; }
.igv-nav.prev { left: -38px; }
.igv-nav.next { right: -38px; }
@container (max-width: 560px) { .ig-head { gap: 14px; } .ig-head .avatar { width: 64px; height: 64px; } }

/* ------------------------------ Studio: "Have a story to tell?", flat XP-era colours ------------------------------ */
.page { container-type: inline-size; }
.sv {
  --sv-navy: #0a246a; --sv-blue: #245edb; --sv-face: #ece9d8; --sv-line: #aca899; --sv-orange: #f08a1a;
  min-height: 100%; background: #fff; color: #000;
  font: 12px/1.5 Tahoma, Verdana, Geneva, sans-serif;
}
.sv-top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 24px; background: var(--sv-navy); color: #fff; border-bottom: 3px solid var(--sv-orange);
}
.sv-mark { font: 700 16px Tahoma, Verdana, sans-serif; white-space: nowrap; }
.sv-mark em { color: var(--sv-orange); }
.sv-top nav { display: flex; align-items: center; gap: 16px; font-size: 11px; }
.sv-top nav a { color: #fff; text-decoration: none; }
.sv-top nav a:hover { text-decoration: underline; }
.sv-top nav a.sv-pill { padding: 3px 10px; border: 1px solid #fff; background: var(--sv-orange); color: #000; font-weight: 700; }

/* Hero */
.sv-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: center;
  padding: 40px 32px 44px; background: var(--sv-blue); color: #fff;
}
.sv-kicker { margin: 0 0 10px; color: #ffd27a; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.sv-hero h1 { margin: 0 0 14px; font: 700 clamp(28px, 6cqi, 48px)/1.08 Tahoma, Verdana, sans-serif; letter-spacing: -1px; }
.sv-hero h1 span { color: #ffb347; font-style: italic; }
.sv-lead { margin: 0 0 22px; max-width: 420px; font-size: 13px; color: #e6eeff; }
.sv-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.sv-btn {
  display: inline-block; padding: 7px 16px; border: 1px solid #7a3d00; border-radius: 2px; cursor: pointer;
  background: var(--sv-orange); color: #000; font: 700 12px Tahoma, Verdana, sans-serif; text-decoration: none;
}
.sv-btn:hover { background: #ff9d33; }
.sv-btn:active { background: #d97706; }
.sv-btn.ghost { background: transparent; border-color: #fff; color: #fff; }
.sv-btn.ghost:hover { background: rgba(255,255,255,.12); }

/* Old touchscreen phone playing his reel */
.sv-phone {
  justify-self: center; width: 168px; padding: 0 9px; border: 3px solid #b8bcc2; border-radius: 26px;
  background: #151515; box-shadow: 4px 4px 0 rgba(0,0,0,.3), inset 0 0 0 1px #000;
}
.sv-phone-top { position: relative; height: 38px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.sv-ear { width: 38px; height: 5px; border-radius: 3px; background: #2e2e2e; box-shadow: inset 0 1px 1px #000; }
.sv-cam { position: absolute; left: 38px; width: 6px; height: 6px; border-radius: 50%; background: #23272f; box-shadow: inset 0 0 0 1px #0b0b0b; }
.sv-phone-screen { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border: 2px solid #050505; background: #000; }
.sv-phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-phone-status {
  position: absolute; left: 0; right: 0; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  height: 14px; padding: 0 5px; background: rgba(0,0,0,.55); color: #fff; font: 700 8px Tahoma, Verdana, sans-serif;
}
.sv-bars { display: flex; align-items: flex-end; gap: 1px; height: 7px; }
.sv-bars i { width: 2px; background: #fff; }
.sv-bars i:nth-child(1) { height: 2px; } .sv-bars i:nth-child(2) { height: 4px; } .sv-bars i:nth-child(3) { height: 5px; } .sv-bars i:nth-child(4) { height: 7px; }
.sv-batt { position: relative; width: 14px; height: 7px; border: 1px solid #fff; }
.sv-batt::before { content: ""; position: absolute; inset: 1px 3px 1px 1px; background: #7cf27c; }
.sv-batt::after { content: ""; position: absolute; right: -3px; top: 1px; width: 2px; height: 3px; background: #fff; }
.sv-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: rgba(255,255,255,.07); clip-path: polygon(0 0, 100% 0, 100% 18%, 0 46%); }
.sv-phone-bottom { height: 46px; display: grid; place-items: center; }
.sv-home { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #2e2e2e; background: #111; }
.sv-home::after { content: ""; display: block; width: 9px; height: 9px; margin: 8px auto 0; border: 1px solid #5a5a5a; border-radius: 2px; }

/* Sections */
.sv-sec { padding: 30px 32px; scroll-margin-top: 44px; }
.sv-alt { background: var(--sv-face); border-top: 1px solid var(--sv-line); border-bottom: 1px solid var(--sv-line); }
.sv-sec h2 { margin: 0 0 4px; color: var(--sv-navy); font: 700 20px Tahoma, Verdana, sans-serif; }
.sv-sub { margin: 0 0 18px; color: #555; }
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.sv-card { padding: 14px; border: 1px solid var(--sv-line); background: #fff; }
.sv-card:hover { border-color: var(--sv-blue); }
.sv-num { display: inline-block; margin-bottom: 8px; padding: 1px 6px; background: var(--sv-navy); color: #fff; font: 700 11px Tahoma, sans-serif; }
.sv-card h3 { margin: 0 0 4px; color: var(--sv-navy); font: 700 14px Tahoma, Verdana, sans-serif; }
.sv-card p { margin: 0 0 10px; color: #444; }
.sv-link { color: #0b4fd6; font-weight: 700; }
.sv-link:hover { color: var(--sv-orange); }

.sv-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: st; }
.sv-steps li { position: relative; counter-increment: st; }
.sv-steps li::before {
  content: counter(st); position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px;
  border: 1px solid #7a3d00; background: var(--sv-orange); color: #000; font: 700 13px Tahoma, sans-serif;
}
.sv-steps li::after { content: ""; position: absolute; top: 14px; left: 36px; right: -8px; height: 1px; background: var(--sv-line); }
.sv-steps li:last-child::after { display: none; }
.sv-steps b { display: block; margin-bottom: 2px; color: var(--sv-navy); }
.sv-steps span { color: #555; }

/* Quote box: a plain XP dialog face */
.sv-quote { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; padding: 22px; border: 1px solid var(--sv-line); background: var(--sv-face); }
.sv .sv-quote-head h2 { font-size: 22px; }
.sv-quote-head p { color: #444; }
.sv-check { display: flex; align-items: center; gap: 6px; margin: 2px 0 12px; }
.sv-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 32px; background: var(--sv-navy); color: #c9d4f2; font-size: 11px; }
.sv-foot a { color: #ffb347; }

/* narrow window or phone */
@container (max-width: 640px) {
  .sv-hero { grid-template-columns: 1fr; padding: 28px 18px 32px; }
  .sv-phone { width: 140px; }
  .sv-sec { padding: 24px 18px; }
  .sv-steps { grid-template-columns: 1fr 1fr; }
  .sv-steps li::after { display: none; }
  .sv-quote { grid-template-columns: 1fr; padding: 16px; }
  .sv-quote .row2 { grid-template-columns: 1fr; }
  .sv-top { padding: 8px 14px; }
  .sv-top nav a:not(.sv-pill) { display: none; }
  .sv-foot { padding: 12px 18px; }
}
.field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 9px; }
.field label { font-size: 11px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 4px 5px; border: 1px solid #7f9db9; border-radius: 0; background: #fff; font: 12px var(--ui-font); color: #000;
}
.field textarea { min-height: 70px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 1px solid #316ac5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ------------------------------ Consultation: messenger conversation ------------------------------ */
/* Classic messenger conversation window: blue gradient frame, big icon toolbar, white log,
   formatting strip + compose box with Send, display pictures on the right, status line at the bottom. */
.msgr { display: flex; flex-direction: column; height: 100%; background: linear-gradient(180deg, #c9dcf7 0%, #e4eefc 30%, #d3e2f8 100%); font: 12px/1.4 var(--ui-font); }
.msgr-bar { flex: 0 0 auto; display: flex; gap: 2px; padding: 4px 6px 3px; border-bottom: 1px solid #9db7e0; background: linear-gradient(180deg, #f7faff 0%, #dbe7fa 55%, #c4d7f4 100%); overflow-x: auto; scrollbar-width: none; }
.msgr-bar::-webkit-scrollbar { display: none; }
.msgr-tool { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 52px; padding: 3px 4px 2px; border: 1px solid transparent; border-radius: 3px; color: #1c3f86; font-size: 11px; white-space: nowrap; }
.msgr-tool:hover { border-color: #9db7e0; background: linear-gradient(180deg, #fff, #e3ecfb); }
.msgr-tool svg { width: 24px; height: 24px; }
.msgr-to { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-bottom: 1px solid #9db7e0; background: linear-gradient(180deg, #fff, #eef4fd); font-size: 11px; color: #333; }
.msgr-to-pic { display: none; }
.msgr-to-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.msgr-mail { color: #666; }
.status { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: #2c8a2c; font-weight: 700; white-space: nowrap; }
.status i.online { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #b6ff9a, #2fbf2f 60%, #1b8a1b); border: 1px solid #157015; }
.msgr-main { flex: 1 1 auto; min-height: 0; display: flex; gap: 8px; padding: 8px; }
.msgr-left { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.msgr-log { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px 10px; border: 1px solid #7f9db9; border-radius: 3px; background: #fff; box-shadow: inset 1px 1px 2px rgba(0,0,0,.08); }
/* "Name says:" in grey, the message indented underneath, no bubbles */
.msg { margin: 0 0 8px; animation: msgIn .2s ease-out; }
.msg small { display: block; color: #777; font-size: 11px; }
.msg p { margin: 1px 0 0 14px; white-space: pre-wrap; word-wrap: break-word; font-size: 13px; }
.msg-him p { color: #0b2e7a; }
.msg-you p { color: #000; }
.msg-sys { margin: 4px 0 8px; padding-left: 4px; border-left: 3px solid #e5a01a; color: #6a6a6a; font-size: 11px; animation: msgIn .2s ease-out; }
.msg-sys.is-him { border-left-color: #2fbf2f; color: #2a4a8a; }
@keyframes msgIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.msgr-compose { flex: 0 0 auto; border: 1px solid #7f9db9; border-radius: 3px; background: #fff; overflow: hidden; }
.msgr-fmt { display: flex; align-items: center; gap: 4px; padding: 2px 4px; border-bottom: 1px solid #c9d8ef; background: linear-gradient(180deg, #fbfdff, #e6eefb); }
.msgr-fmt-a { display: inline-grid; place-items: center; width: 22px; height: 22px; color: #1c3f86; font: 700 14px "Times New Roman", serif; text-decoration: underline; text-decoration-color: #d9361a; }
.msgr-nudge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 7px; border: 1px solid transparent; border-radius: 3px; background: none; color: #1c3f86; font-size: 11px; font-weight: 700; }
.msgr-nudge:hover { border-color: #e5a01a; background: linear-gradient(180deg, #fffaf0, #ffe9b8); }
.msgr-nudge:active { transform: translateY(1px); }
.msgr-nudge svg { width: 18px; height: 18px; }
.msgr-input { display: flex; align-items: stretch; gap: 6px; padding: 6px; min-height: 64px; }
.msgr-options { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.msgr-send { flex: 0 0 auto; align-self: stretch; min-width: 58px; border: 1px solid #7f9db9; border-radius: 3px; background: linear-gradient(180deg, #fff, #e3ecfb 60%, #cbdaf3); color: #1c3f86; font-weight: 700; }
.msgr-send:disabled { color: #8ea2c6; }
.chip { padding: 6px 9px; border: 1px solid #b8cbe8; border-radius: 3px; background: linear-gradient(180deg, #fff, #eef4fd); color: #0b2e7a; text-align: left; font-size: 12px; }
.chip:hover { border-color: #e5a01a; background: linear-gradient(180deg, #fffaf0, #ffe9b8); }
.dm-btn { padding: 6px 9px; }
.msgr-pics { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.msgr-pics .avatar, .you-pic { width: 96px; height: 96px; border: 3px solid #fff; border-radius: 6px; background: linear-gradient(180deg, #fff, #dfe8f8); box-shadow: 0 0 0 1px #7f9db9, 0 2px 4px rgba(0,0,0,.25); box-sizing: border-box; }
.you-pic { display: grid; place-items: center; }
.you-pic svg { width: 52px; height: 52px; }
.msgr-status { flex: 0 0 auto; min-height: 20px; padding: 2px 10px 3px; border-top: 1px solid #9db7e0; background: linear-gradient(180deg, #e9f0fc, #d3e2f8); color: #445; font-size: 11px; }
/* nudge: the whole window shakes (on phones too) */
.window.is-nudged { animation: nudgeShake .6s linear; }
@keyframes nudgeShake {
  0%, 100% { transform: none; }
  10% { transform: translate(-9px, 3px); } 20% { transform: translate(8px, -4px); } 30% { transform: translate(-7px, -3px); }
  40% { transform: translate(7px, 4px); } 50% { transform: translate(-6px, 2px); } 60% { transform: translate(5px, -3px); }
  70% { transform: translate(-4px, 3px); } 80% { transform: translate(3px, -2px); } 90% { transform: translate(-2px, 1px); }
}

/* ------------------------------ Ctrl + Z game: classic grey Windows game ------------------------------ */
.cz { display: flex; flex-direction: column; height: 100%; background: #c0c0c0; font: 11px Tahoma, "MS Sans Serif", sans-serif; color: #000; }
.cz-menu { display: flex; gap: 2px; padding: 2px 4px; border-bottom: 1px solid #808080; background: var(--face); }
.cz-menu button { padding: 2px 8px; border: 1px solid transparent; background: none; }
.cz-menu button:hover { border-color: #fff #808080 #808080 #fff; }
.cz-panel {
  display: flex; align-items: center; gap: 10px; margin: 6px 6px 0; padding: 5px 8px;
  border: 2px solid; border-color: #808080 #fff #fff #808080;
}
.cz-lcd { padding: 1px 4px; border: 1px solid; border-color: #808080 #fff #fff #808080; background: #000; }
.cz-lcd span { font: 700 22px/1 "Courier New", "Lucida Console", monospace; color: #ff2a1a; letter-spacing: 1px; }
.cz-lcd.small span { font-size: 14px; color: #ffb000; }
.cz-mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cz-level { max-width: 100%; text-align: center; font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-bar { position: relative; width: min(220px, 100%); height: 12px; padding: 1px; border: 1px solid; border-color: #808080 #fff #fff #808080; background: #fff; }
.cz-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #0a246a 0 7px, transparent 7px 9px); transition: width .3s; }
.cz-bar.is-full i { background: repeating-linear-gradient(90deg, #138a13 0 7px, transparent 7px 9px); }
.cz-lives { display: flex; gap: 4px; }
.cz-lives i { width: 11px; height: 11px; transform: rotate(45deg); border: 1px solid #555; background: #9a9a9a; }
.cz-lives i.on { background: #f2c94c; border-color: #7a5a08; }
.cz-stage {
  position: relative; flex: 1 1 auto; min-height: 0; margin: 6px; overflow: hidden;
  border: 2px solid; border-color: #808080 #fff #fff #808080; background: #16171c;
}
.cz-stage canvas { position: absolute; left: 0; top: 0; display: block; cursor: crosshair; touch-action: none; }
.cz-status { padding: 2px 8px 4px; color: #333; font-size: 10px; text-align: center; }
.cz-dialog {
  position: absolute; left: 50%; top: 50%; width: min(330px, 90%); transform: translate(-50%, -50%);
  border: 2px solid; border-color: #fff #404040 #404040 #fff; background: #c0c0c0; box-shadow: 2px 2px 0 #000;
}
.cz-dlg-title { padding: 3px 6px; background: #000080; color: #fff; font-weight: 700; }
.cz-dlg-body { padding: 10px 12px 4px; font-size: 12px; line-height: 1.45; }
.cz-dlg-body p { margin: 0 0 8px; }
.cz-dlg-body kbd { padding: 0 4px; border: 1px solid; border-color: #fff #808080 #808080 #fff; background: #d4d0c8; font: 700 11px Tahoma, sans-serif; }
.cz-keys { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.cz-keys i { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 11px; }
.cz-keys i::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--c); border: 1px solid #000; }
.cz-dlg-btns { display: flex; justify-content: center; gap: 8px; padding: 4px 12px 12px; }
.cz-btn { min-width: 84px; padding: 4px 10px; border: 2px solid; border-color: #fff #404040 #404040 #fff; background: #c0c0c0; }
.cz-btn:active { border-color: #404040 #fff #fff #404040; }
.cz-btn.primary { outline: 1px solid #000; outline-offset: -5px; }
/* ------------------------------ Layer Up game: Windows 3.x look ------------------------------ */
.lu { display: flex; flex-direction: column; height: 100%; background: #c0c0c0; font: 700 12px "MS Sans Serif", "Microsoft Sans Serif", Arial, sans-serif; color: #000; }
.lu-menu { display: flex; gap: 0; padding: 1px 2px; border-bottom: 1px solid #000; background: #fff; }
.lu-menu button { padding: 2px 8px; border: 0; background: none; font: inherit; color: #000; }
.lu-menu button:hover, .lu-menu button:focus-visible { background: #000080; color: #fff; outline: 0; }
.lu-menu u { text-decoration: underline; }
.lu-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #000; }
.lu-stage canvas { position: absolute; left: 0; top: 0; display: block; cursor: crosshair; touch-action: none; image-rendering: pixelated; image-rendering: crisp-edges; }
.lu-status { padding: 2px 8px 3px; border-top: 1px solid #000; background: #fff; font-size: 11px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* message box: black frame, navy title with the control-menu box, white body, rounded buttons */
.lu-dialog {
  position: absolute; left: 50%; top: 50%; width: min(340px, 92%); max-height: 94%; overflow: auto; transform: translate(-50%, -50%);
  border: 1px solid #000; outline: 3px solid #c0c0c0; box-shadow: 0 0 0 4px #000, 6px 6px 0 4px rgba(0, 0, 0, .5); background: #fff;
}
.lu-dlg-title { position: relative; padding: 2px 24px; border-bottom: 1px solid #000; background: #000080; color: #fff; text-align: center; }
.lu-dlg-title::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 18px; border-right: 1px solid #000;
  background: #c0c0c0 linear-gradient(#fff, #fff) 3px 50% / 11px 3px no-repeat; box-shadow: inset -1px -1px 0 #808080;
}
.lu-dlg-body { padding: 10px 12px 4px; font-size: 12px; line-height: 1.45; }
.lu-dlg-body p { margin: 0 0 8px; }
.lu-dlg-body kbd { padding: 0 4px; border: 1px solid #000; border-radius: 2px; background: #c0c0c0; font: inherit; }
.lu-dlg-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 4px 12px 12px; }
.lu-btn {
  min-width: 78px; padding: 4px 10px; border: 1px solid #000; border-radius: 3px; background: #c0c0c0; color: #000; font: inherit;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #808080;
}
.lu-btn:active { box-shadow: inset 2px 2px 0 #808080; padding: 5px 9px 3px 11px; }
.lu-btn.primary { border-width: 2px; padding: 3px 9px; }
.lu-btn:focus-visible { outline: 1px dotted #000; outline-offset: -6px; }
/* ------------------------------ Biss Media Player (Media Player 9 look, three skins) ------------------------------ */
.wmp {
  --wmp-frame: linear-gradient(180deg, #6b8fe0, #3d63c7 55%, #2a4fae);
  --wmp-nav: linear-gradient(180deg, #3b5fc6, #6f95e6);
  --wmp-nav-on: #ffffff; --wmp-nav-on-text: #0a246a;
  --wmp-bar: linear-gradient(180deg, #dfe8f7, #a9bde6 45%, #7f9bd8 55%, #b4c7ee);
  --wmp-btn: radial-gradient(circle at 35% 30%, #ffffff, #a8c3f2 35%, #2f5dc8 75%, #173f99);
  --wmp-accent: #57f257; --wmp-viz: #7cc4ff;
  container-type: inline-size;
  display: flex; flex-direction: column; height: 100%; background: var(--wmp-frame); color: #fff;
  font: 11px Tahoma, Verdana, sans-serif;
}
.wmp.skin-orange {
  --wmp-frame: linear-gradient(180deg, #ffb35c, #ec7d16 55%, #b85407);
  --wmp-nav: linear-gradient(180deg, #d96a0a, #ffad55);
  --wmp-nav-on-text: #7a3300;
  --wmp-bar: linear-gradient(180deg, #fff1df, #ffd09a 45%, #f5a64e 55%, #ffd7a8);
  --wmp-btn: radial-gradient(circle at 35% 30%, #ffffff, #ffd2a0 35%, #e8730d 75%, #9a4300);
  --wmp-accent: #ffcf5a; --wmp-viz: #ffa94d;
}
.wmp.skin-night {
  --wmp-frame: linear-gradient(180deg, #4a4f5a, #2a2e36 55%, #17191e);
  --wmp-nav: linear-gradient(180deg, #23262d, #3c414c);
  --wmp-nav-on: #e6e8ec; --wmp-nav-on-text: #17191e;
  --wmp-bar: linear-gradient(180deg, #6a707c, #3b404a 45%, #262a31 55%, #474c57);
  --wmp-btn: radial-gradient(circle at 35% 30%, #ffffff, #b9c0cc 35%, #4c5260 75%, #1d2026);
  --wmp-accent: #b9f27c; --wmp-viz: #c08bff;
}
.wmp-menu { display: flex; gap: 14px; padding: 2px 8px; background: var(--face); color: #000; border-bottom: 1px solid #b9b5a5; }
.wmp-menu span::first-letter { text-decoration: underline; }
.wmp-main { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px; padding: 6px 6px 4px; }
.wmp-nav { display: flex; flex-direction: column; gap: 1px; padding: 4px 0; border-radius: 6px 0 0 6px; background: var(--wmp-nav); }
.wmp-nav button { padding: 6px 8px; border: 0; background: none; color: #fff; font: 700 11px/1.15 Tahoma, sans-serif; text-align: left; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.wmp-nav button:hover { background: rgba(255,255,255,.18); }
.wmp-nav button.is-on { background: var(--wmp-nav-on); color: var(--wmp-nav-on-text); text-shadow: none; }
.wmp-center { min-width: 0; display: flex; flex-direction: column; border-radius: 0 8px 0 0; background: #000; overflow: hidden; }
.wmp-head { display: flex; flex-direction: column; gap: 1px; padding: 6px 10px 6px; }
.wmp-artist { color: #c9d2e3; font-size: 12px; }
.wmp-title { font: 400 17px Tahoma, Verdana, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wmp-screen { position: relative; flex: 1 1 auto; min-height: 160px; background: #000; overflow: hidden; }
.wmp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wmp-library { position: absolute; inset: 0; overflow: auto; padding: 6px; background: #000; }
.wmp-library table { width: 100%; border-collapse: collapse; color: #cfd6e2; font-size: 11px; }
.wmp-library th { position: sticky; top: 0; padding: 4px 6px; background: linear-gradient(180deg, #f3f6fb, #c5d0e2); color: #0a246a; text-align: left; }
.wmp-library td { padding: 5px 6px; border-bottom: 1px solid #1a2030; cursor: pointer; }
.wmp-library tr:hover td { background: #1b2233; }
.wmp-library tr.is-cur td { color: var(--wmp-accent); }
.wmp-status { display: flex; justify-content: space-between; gap: 10px; margin: 0 6px; padding: 3px 8px; background: #000; color: var(--wmp-accent); font-weight: 700; border-radius: 0 0 4px 4px; }
.wmp-marquee { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wmp-time { font-family: "Lucida Console", "Courier New", monospace; }
.wmp-bar { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 6px 12px 8px; background: var(--wmp-bar); color: #0a246a; }
.wmp-brand { display: flex; align-items: center; gap: 6px; font: italic 700 11px/1.05 "Trebuchet MS", Tahoma, sans-serif; }
.wmp-brand i { width: 14px; height: 14px; transform: rotate(45deg); border: 2px solid #3a2400; background: #f2c94c; box-shadow: inset -3px -3px 0 #c89600; }
.wmp-ctrls { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wmp-btns { display: flex; align-items: center; gap: 6px; }
.wmp-play { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(0,0,0,.45); background: var(--wmp-btn); box-shadow: 0 2px 4px rgba(0,0,0,.35); }
.wmp-play i { position: absolute; left: 16px; top: 12px; border: 10px solid transparent; border-left: 14px solid #fff; border-right: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.wmp-play.is-playing i { left: 14px; top: 13px; width: 14px; height: 16px; border: 0; border-left: 5px solid #fff; border-right: 5px solid #fff; }
.wmp-sm { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.4); background: radial-gradient(circle at 35% 30%, #fff, #dfe6f2 45%, #9fb0cc); }
.wmp-sm:active, .wmp-play:active { filter: brightness(.9); }
.wmp-sm i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.wmp-sm .i-stop { width: 9px; height: 9px; background: #23324f; }
.wmp-sm .i-prev, .wmp-sm .i-next { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.wmp-sm .i-prev { border-right: 7px solid #23324f; box-shadow: -3px 0 0 #23324f; }
.wmp-sm .i-next { border-left: 7px solid #23324f; box-shadow: 3px 0 0 #23324f; }
.wmp-sm .i-vol { width: 6px; height: 8px; background: #23324f; clip-path: polygon(0 25%, 45% 25%, 100% 0, 100% 100%, 45% 75%, 0 75%); width: 10px; }
.wmp-sm.is-muted { opacity: .55; }
.wmp-vol { width: 80px; }
.wmp-seek { width: 100%; }
.wmp input[type=range] { height: 14px; accent-color: #2fbf2f; cursor: pointer; }
.wmp.skin-orange input[type=range] { accent-color: #b85407; }
.wmp.skin-night input[type=range] { accent-color: #8a60d6; }
.wmp.skin-night .wmp-bar { color: #e6e8ec; }

/* "Classic" skin (the default): the grey Windows 9x media player. Raised grey bevels, a sunken black
   picture, a green LCD status line and square black-glyph buttons. Pixel visualizers live in the screen. */
.wmp.skin-classic { --wmp-accent: #00ff00; background: #c0c0c0; color: #000; font: 11px "MS Sans Serif", "Microsoft Sans Serif", Tahoma, sans-serif; }
.wmp.skin-classic .wmp-menu { background: #c0c0c0; border-bottom: 1px solid #808080; box-shadow: 0 1px 0 #fff; }
.wmp.skin-classic .wmp-main { grid-template-columns: 92px minmax(0, 1fr); gap: 6px; padding: 6px; }
.wmp.skin-classic .wmp-nav { gap: 3px; padding: 0; border-radius: 0; background: none; }
.wmp.skin-classic .wmp-nav button {
  padding: 5px 6px; border: 0; border-radius: 0; background: #c0c0c0; color: #000; text-shadow: none; font: 11px "MS Sans Serif", Tahoma, sans-serif;
  box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #fff, inset -2px -2px 0 #808080, inset 2px 2px 0 #dfdfdf;
}
.wmp.skin-classic .wmp-nav button:hover { background: #c0c0c0; }
.wmp.skin-classic .wmp-nav button.is-on, .wmp.skin-classic .wmp-nav button:active {
  background: #dcdcdc linear-gradient(45deg, #c0c0c0 25%, transparent 25%, transparent 75%, #c0c0c0 75%) 0 0 / 2px 2px;
  font-weight: 700; box-shadow: inset 1px 1px 0 #000, inset -1px -1px 0 #fff, inset 2px 2px 0 #808080, inset -2px -2px 0 #dfdfdf;
}
.wmp.skin-classic .wmp-center { border-radius: 0; border: 2px solid; border-color: #808080 #fff #fff #808080; box-shadow: inset 1px 1px 0 #000; }
.wmp.skin-classic .wmp-head { flex-direction: row; align-items: baseline; gap: 8px; padding: 3px 8px; background: #000; border-bottom: 1px solid #004000; }
.wmp.skin-classic .wmp-artist { order: 2; color: #00a000; font: 11px "Lucida Console", "Courier New", monospace; }
.wmp.skin-classic .wmp-title { color: #00ff00; font: 700 13px "Lucida Console", "Courier New", monospace; }
.wmp.skin-classic .wmp-canvas { image-rendering: pixelated; }
.wmp.skin-classic .wmp-library table { color: #00ff00; font-family: "Lucida Console", "Courier New", monospace; }
.wmp.skin-classic .wmp-library th { background: #c0c0c0; color: #000; font-family: "MS Sans Serif", Tahoma, sans-serif; box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #fff; }
.wmp.skin-classic .wmp-library td { border-bottom: 1px dotted #004000; }
.wmp.skin-classic .wmp-library tr:hover td { background: #003000; }
.wmp.skin-classic .wmp-library tr.is-cur td { background: #00ff00; color: #000; }
.wmp.skin-classic .wmp-status {
  margin: 0 6px; padding: 3px 8px; border-radius: 0; background: #000; color: #00ff00; font: 700 11px "Lucida Console", "Courier New", monospace;
  border: 2px solid; border-color: #808080 #fff #fff #808080;
}
.wmp.skin-classic .wmp-bar { margin-top: 2px; padding: 6px 8px 8px; background: #c0c0c0; color: #000; border-top: 1px solid #fff; }
.wmp.skin-classic .wmp-brand { font: 700 11px/1.1 "MS Sans Serif", Tahoma, sans-serif; font-style: normal; }
.wmp.skin-classic .wmp-brand i { box-shadow: none; border: 1px solid #000; background: #ffff00; width: 12px; height: 12px; }
.wmp.skin-classic .wmp-play, .wmp.skin-classic .wmp-sm {
  width: 30px; height: 26px; border: 0; border-radius: 0; background: #c0c0c0;
  box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #fff, inset -2px -2px 0 #808080, inset 2px 2px 0 #dfdfdf;
}
.wmp.skin-classic .wmp-play { width: 40px; }
.wmp.skin-classic .wmp-play:active, .wmp.skin-classic .wmp-sm:active { filter: none; box-shadow: inset 1px 1px 0 #000, inset -1px -1px 0 #fff, inset 2px 2px 0 #808080; }
.wmp.skin-classic .wmp-play i { left: 15px; top: 6px; border-width: 7px 0 7px 10px; border-left-color: #000; filter: none; }
.wmp.skin-classic .wmp-play.is-playing i { left: 14px; top: 7px; width: 12px; height: 12px; border-left: 4px solid #000; border-right: 4px solid #000; }
.wmp.skin-classic .wmp-sm .i-stop, .wmp.skin-classic .wmp-sm .i-vol { background: #000; }
.wmp.skin-classic .wmp-sm .i-prev { border-right-color: #000; box-shadow: -3px 0 0 #000; }
.wmp.skin-classic .wmp-sm .i-next { border-left-color: #000; box-shadow: 3px 0 0 #000; }
.wmp.skin-classic .wmp-fsexit i::before, .wmp.skin-classic .wmp-fsexit i::after { background: #000; }
.wmp.skin-classic .wmp-btns { gap: 3px; }
/* classic slider: a sunken groove with a grey raised thumb */
.wmp.skin-classic input[type=range] { -webkit-appearance: none; appearance: none; height: 22px; background: none; }
.wmp.skin-classic input[type=range]::-webkit-slider-runnable-track { height: 4px; background: #fff; border: 1px solid; border-color: #808080 #fff #fff #808080; box-shadow: inset 1px 1px 0 #000; }
.wmp.skin-classic input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 20px; margin-top: -9px; background: #c0c0c0; border: 0;
  box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #fff, inset -2px -2px 0 #808080;
}
.wmp.skin-classic input[type=range]::-moz-range-track { height: 4px; background: #fff; border: 1px solid; border-color: #808080 #fff #fff #808080; }
.wmp.skin-classic input[type=range]::-moz-range-thumb { width: 11px; height: 20px; border: 0; border-radius: 0; background: #c0c0c0; box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #fff, inset -2px -2px 0 #808080; }
.wmp.skin-classic.is-full .wmp-fsbar { border-radius: 0; background: #c0c0c0; border: 0; box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #fff, inset -2px -2px 0 #808080; }
.wmp.skin-classic.is-full .wmp-fstitle { color: #00ff00; font-family: "Lucida Console", "Courier New", monospace; }

/* Full Screen visualizer: covers the whole screen; small control bar + title fade out when idle */
.wmp-fstitle, .wmp-fsbar { display: none; }
.window.has-fullscreen { z-index: 9800 !important; }   /* focusing a window resets its inline z-index */
.wmp.is-full { container-type: normal; }   /* containment would trap the fixed screen inside the window */
.wmp.is-full .wmp-screen { position: fixed; inset: 0; z-index: 9999; min-height: 0; background: #000; }
.wmp-screen:fullscreen { width: 100%; height: 100%; }
.wmp.is-full .wmp-fstitle {
  display: block; position: absolute; left: 14px; top: 12px; right: 14px; z-index: 2; color: #fff; font: 700 14px Tahoma, sans-serif;
  text-shadow: 0 1px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .5s;
}
.wmp.is-full .wmp-fsbar {
  display: flex; align-items: center; gap: 10px; position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 2;
  transform: translateX(-50%); padding: 8px 14px; border-radius: 30px; background: rgba(10,14,24,.6); border: 1px solid rgba(255,255,255,.2);
  transition: opacity .5s;
}
.wmp.is-full .wmp-screen.is-idle .wmp-fsbar, .wmp.is-full .wmp-screen.is-idle .wmp-fstitle { opacity: 0; pointer-events: none; }
.wmp.is-full .wmp-screen.is-idle { cursor: none; }
.wmp-fsexit i { width: 10px; height: 10px; }
.wmp-fsexit i::before, .wmp-fsexit i::after { content: ""; position: absolute; left: 4px; top: -1px; width: 2px; height: 12px; background: #23324f; transform: rotate(45deg); }
.wmp-fsexit i::after { transform: rotate(-45deg); }
/* narrow window / phone: nav becomes a strip, playlist sits under the video (YouTube must stay visible) */
@container (max-width: 620px) {
  .wmp-main { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding: 4px; }
  .wmp-menu { display: none; }
  .wmp-nav { flex-direction: row; overflow-x: auto; border-radius: 6px; padding: 2px; }
  .wmp-nav button { flex: 0 0 auto; padding: 5px 8px; }
  .wmp-center { border-radius: 0; }
  .wmp-screen { min-height: 180px; flex: 1 1 auto; }
  .wmp-brand span { display: none; }
  .wmp-vol { width: 60px; }
  /* the Classic skin's own grid and menu rules are more specific, so repeat the narrow layout for it */
  .wmp.skin-classic .wmp-main { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding: 4px; gap: 4px; }
  .wmp.skin-classic .wmp-nav { flex-direction: row; overflow-x: auto; }
  .wmp.skin-classic .wmp-nav button { flex: 0 0 auto; padding: 6px 9px; }
  .wmp.skin-classic .wmp-menu { display: none; }
}
/* ------------------------------ Recycle bin ------------------------------ */
.explorer { display: flex; height: 100%; background: #fff; }
.ex-side { flex: 0 0 150px; padding: 10px; background: linear-gradient(180deg, #7ba2e7, #6375d6); }
.ex-side div { border-radius: 4px 4px 0 0; overflow: hidden; background: #d6dff7; font-size: 11px; }
.ex-side b { display: block; padding: 4px 8px; background: linear-gradient(90deg, #fff, #c6d3f7); color: #215dc6; }
.ex-side p { margin: 0; padding: 6px 8px; color: #333; }
.ex-files { flex: 1 1 auto; padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; align-content: start; }
.file { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 11px; word-break: break-all; }
.file i { width: 34px; height: 40px; border: 1px solid #8a8a8a; border-radius: 2px 8px 2px 2px; background: linear-gradient(180deg, #fff, #e9e9e9); position: relative; }
.file i::after { content: attr(data-ext); position: absolute; left: 2px; right: 2px; bottom: 4px; font: 700 8px var(--ui-font); color: #fff; background: #d9361a; border-radius: 1px; font-style: normal; }

/* ------------------------------ Dialogs & shutdown ------------------------------ */
.overlay { position: fixed; inset: 0; z-index: 20000; display: grid; place-items: center; padding: 16px; }
#shutdown-dialog { background: rgba(0,0,0,.45); backdrop-filter: grayscale(1); -webkit-backdrop-filter: grayscale(1); }
#alert { background: rgba(0,0,0,.15); }
.dialog { position: relative; width: min(460px, 100%); min-height: 0; }
.dialog .window-body { padding: 14px; }
.alert-msg { margin-bottom: 14px; }
.alert-msg pre { max-height: 40vh; overflow: auto; margin: 8px 0 0; padding: 8px; border: 1px solid #7f9db9; background: #fff; white-space: pre-wrap; font: 11px var(--ui-font); }
.alert-actions { display: flex; justify-content: flex-end; gap: 8px; }
.shutdown-box { width: min(320px, 100%); border-radius: 6px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.5); color: #fff; }
.sd-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--navy); font: 400 17px var(--title-font); }
.sd-body { display: flex; justify-content: space-around; padding: 22px 10px; background: linear-gradient(180deg, #7f9df0, #5a7edc); }
.sd-body button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: #fff; font-size: 11px; }
.sd-body button:hover { text-decoration: underline; }
.sd-ico { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #fff; border-radius: 5px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.sd-ico svg { width: 20px; height: 20px; }
.sd-ico.standby { background: linear-gradient(180deg, #ffd56a, #e0a020); }
.sd-ico.off { background: linear-gradient(180deg, #f08a5d, #c8381a); }
.sd-ico.restart { background: linear-gradient(180deg, #8ee07a, #2f9a20); }
.sd-foot { display: flex; justify-content: flex-end; padding: 8px 12px; background: var(--navy); }
.safe-screen {
  position: fixed; inset: 0; z-index: 30000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: #000; color: #f39a33; cursor: pointer; text-align: center; padding: 16px;
}
.safe-screen small { color: #777; }


/* ------------------------------ Phone ------------------------------ */
@media (max-width: 700px) {
  .xp-top { height: 8vh; min-height: 40px; }
  .xp-bottom { height: auto; min-height: 64px; padding: 10px 16px; }
  .bottom-note { display: none; }
  .xp-mid { flex-direction: column; justify-content: center; gap: 0; padding: 16px; }
  .login-left { flex: 0 0 auto; align-items: center; padding: 0; text-align: center; }
  .brand-word { font-size: 52px; }
  .brand-text { align-items: center; }
  .user-tile .avatar { width: 64px; height: 64px; }
  .login-hint { margin-top: 14px; }
  .login-divider { flex: 0 0 auto; width: 80%; height: 1px; margin: 26px 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75) 20%, rgba(255,255,255,.75) 80%, rgba(255,255,255,0)); }
  .login-right { flex: 0 0 auto; padding: 0; width: 100%; display: flex; justify-content: center; }
  .user-tile { width: auto; max-width: 100%; border-radius: 8px; background: rgba(0,48,156,.55); }
  .welcome-word { margin: 0; }

  .icons { left: 0; right: 0; top: 12px; bottom: auto; flex-direction: row; justify-content: space-around; padding: 0 8px; }
  .icons li { margin: 0 0 12px; width: 25%; display: flex; justify-content: center; }
  .icons li.icon-bin { position: fixed; right: 4px; bottom: calc(var(--taskbar-h) + 8px); width: auto; }
  .icon { width: 80px; }
  .icon svg { width: 48px; height: 48px; }
  .icon span { font-size: 12px; -webkit-font-smoothing: antialiased; }

  .window, .window.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; border-width: 0; }
  .window .title-bar { border-radius: 0; margin: 0; height: 36px; }
  .tb { width: 28px; height: 28px; }
  .tb.max, .resize-grip { display: none; }
  .tb.min::before { left: 7px; bottom: 6px; width: 10px; }
  .tb.close::before, .tb.close::after { left: 12px; top: 5px; height: 16px; }

  .task-btn { width: 38px; justify-content: center; padding: 0; }
  .task-btn span { display: none; }
  .start-menu { width: 100%; border-radius: 8px 8px 0 0; }
  .sm-body { flex-direction: column; }
  .sm-right { border-left: 0; border-top: 1px solid #95bdee; }
  .msn-toast { right: 8px; }

  .pf-side, .pf-tool.is-static, .pf-sep { display: none; }
  .pf-files { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 4px; padding: 10px 6px; }
  .pf-thumb { width: 100%; max-width: 100px; height: auto; aspect-ratio: 5 / 7; }
  .pf-name { max-width: 100%; font-size: 11px; }
  .pf-tool { height: 32px; font-size: 12px; }
  .ig-viewer { padding: 0; }
  .igv-box { flex-direction: column; width: 100%; height: 100%; }
  .igv-side { flex: 0 0 auto; border-left: 0; }
  .igv-cap { max-height: 70px; }
  .igv-x { top: 4px; right: 6px; z-index: 2; color: #fff; text-shadow: 0 1px 3px #000; }
  .igv-nav.prev { left: 6px; }
  .igv-nav.next { right: 6px; }
  .row2 { grid-template-columns: 1fr; }
  /* messenger on phones: same look, display picture moves into the "To:" bar, toolbar scrolls sideways */
  .msgr-pics { display: none; }
  .msgr-tool { min-width: 46px; font-size: 10px; }
  .msgr-tool svg { width: 22px; height: 22px; }
  .msgr-to { padding: 6px 8px; gap: 8px; }
  .msgr-to-pic { display: block; flex: 0 0 auto; width: 38px; height: 38px; border: 2px solid #fff; border-radius: 5px; box-shadow: 0 0 0 1px #7f9db9; box-sizing: border-box; }
  .msgr-mail { display: none; }
  .msgr-to-text { font-size: 13px; }
  .msgr-main { padding: 6px; }
  .msg p { font-size: 14px; }
  .chip { padding: 9px 10px; font-size: 13px; }
  .msgr-nudge { height: 30px; font-size: 12px; }
  .msgr-send { min-width: 54px; }
  .ex-side { display: none; }
  .menu-bar { display: none; }
  .cz-status { display: none; }
  .cz-panel { gap: 6px; padding: 4px 6px; }
  .cz-lcd.small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* ------------------------------ People I Worked With.exe (client "virus" + Biss AntiVirus) ------------------------------ */
.cv-layer { position: absolute; inset: 0 0 var(--taskbar-h) 0; z-index: 9200; overflow: hidden; }
/* real site windows, but placed by --x/--y/--w (beats the phone rule that makes windows full screen), and no open animation */
.cv-layer .window.cv-win { left: var(--x) !important; top: var(--y) !important; width: var(--w, 250px) !important; height: auto !important; min-width: 0; min-height: 0; max-width: calc(100% - 8px); animation: none; border-width: 3px; border-top-width: 0; border-radius: 8px 8px 0 0; }
.cv-layer .cv-win .title-bar { height: 25px; margin: 0 -3px; border-radius: 7px 7px 0 0; }
.cv-layer .cv-win .title { font-size: 12px; }
.cv-layer .cv-win .tb { width: 19px; height: 19px; }
.cv-layer .cv-win .tb.close::before, .cv-layer .cv-win .tb.close::after { left: 7.5px; top: 2px; height: 13px; }
.cv-layer .cv-win .window-body { overflow: visible; }
.cv-msg { display: flex; align-items: center; gap: 10px; padding: 10px 10px 6px; min-width: 0; overflow: hidden; }
.cv-msg p { margin: 0; line-height: 1.5; color: #000; }
.cv-txt { margin: 0 10px 8px; color: #000; font-size: 11px; }
.cv-btns { display: flex; justify-content: center; gap: 8px; padding: 2px 10px 10px; }
.cv-lg { flex: 1 1 0; min-width: 0; height: 66px; display: flex; align-items: center; justify-content: center; padding: 2px 4px; overflow: hidden; }
.cv-logo { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; min-width: 0; object-fit: contain; pointer-events: none; }
/* original message-box icons, drawn in CSS */
.cv-ico { flex: 0 0 auto; position: relative; width: 32px; height: 32px; border-radius: 50%; }
.cv-ico.err { background: radial-gradient(circle at 35% 30%, #ff9a8a, #e3260b 55%, #a50f00); border: 1px solid #6b0a00; }
.cv-ico.err::before, .cv-ico.err::after { content: ""; position: absolute; left: 13.5px; top: 6px; width: 3px; height: 18px; background: #fff; transform: rotate(45deg); }
.cv-ico.err::after { transform: rotate(-45deg); }
.cv-ico.warn { width: 34px; border-radius: 0; }
.cv-ico.warn::before { content: ""; position: absolute; left: 0; top: 1px; border-left: 17px solid transparent; border-right: 17px solid transparent; border-bottom: 30px solid #f5c400; }
.cv-ico.warn::after { content: "!"; position: absolute; left: 0; right: 0; top: 9px; text-align: center; font: 700 17px Tahoma, sans-serif; color: #000; }
.cv-ico.info { background: radial-gradient(circle at 35% 30%, #c9e0ff, #2f6fdc 60%, #133f9a); border: 1px solid #0b2a6b; }
.cv-ico.info::after { content: "i"; position: absolute; inset: 0; text-align: center; font: italic 700 20px/32px Georgia, serif; color: #fff; }
/* the stepped outline rectangle of a closing window */
.cv-zoom { position: fixed; z-index: 99999; border: 2px dotted #fff; mix-blend-mode: difference; pointer-events: none; }
/* Biss AntiVirus */
.cv-av { display: flex; gap: 14px; padding: 14px 14px 8px; }
.cv-av-main { flex: 1 1 auto; min-width: 0; }
.cv-av h2 { margin: 0 0 6px; color: #000; font: 700 14px Tahoma, sans-serif; }
.cv-av p { margin: 0 0 6px; color: #000; line-height: 1.45; }
#cv-av.is-bad h2 { color: #c00; }
.cv-shield { position: relative; flex: 0 0 auto; width: 52px; height: 62px; background: linear-gradient(90deg, #1d5fd1 50%, #0a3aa0 50%); clip-path: polygon(50% 0, 100% 14%, 100% 52%, 50% 100%, 0 52%, 0 14%); }
.cv-shield::after { content: ""; position: absolute; left: 14px; top: 16px; width: 22px; height: 12px; border-left: 6px solid #fff; border-bottom: 6px solid #fff; transform: rotate(-45deg); }
#cv-av.is-bad .cv-shield { background: linear-gradient(90deg, #e3260b 50%, #a50f00 50%); }
#cv-av.is-bad .cv-shield::after { content: "!"; left: 0; right: 0; top: 10px; width: auto; height: auto; border: 0; transform: none; text-align: center; font: 700 34px Tahoma, sans-serif; color: #fff; }
.cv-bar { height: 18px; margin: 8px 0 4px; padding: 2px; border: 1px solid #686868; border-radius: 3px; background: #fff; box-shadow: inset 1px 1px 0 #d6d2c2; }
.cv-bar i { display: block; width: 0; height: 100%; background: repeating-linear-gradient(90deg, #2bc43a 0 8px, transparent 8px 10px); }
.cv-status { height: 14px; overflow: hidden; color: #333; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.cv-lv { max-height: min(260px, 42vh); margin-top: 6px; overflow: auto; border: 1px solid #7f9db9; background: #fff; }
.cv-lv table { width: 100%; border-collapse: collapse; font-size: 11px; table-layout: fixed; }
.cv-lv th:first-child { width: 42%; } .cv-lv th:last-child { width: 30%; }
.cv-lv td { overflow: hidden; text-overflow: ellipsis; }
.cv-lv th { position: sticky; top: 0; z-index: 1; padding: 3px 6px; background: linear-gradient(#fff, #ebeadb); border-bottom: 1px solid #d6d2c2; border-right: 1px solid #d6d2c2; color: #000; font-weight: 400; text-align: left; }
.cv-lv td { padding: 5px 6px; color: #000; white-space: nowrap; vertical-align: middle; }
.cv-lv .cv-logo { width: 100%; max-width: 140px; height: 48px; object-position: left center; }
.cv-ok { color: #008000 !important; font-weight: 700; }
.cv-lv tr:hover td { background: #316ac5; color: #fff; }
.cv-lv tr:hover .cv-logo { filter: brightness(0) invert(1); }
.cv-lv tr:hover .cv-ok { color: #fff !important; }
@media (max-width: 700px) {
  .cv-av { gap: 10px; padding: 10px 10px 6px; }
  .cv-shield { width: 40px; height: 48px; }
  .cv-lv .cv-logo { width: 100%; height: 40px; }
  .cv-lv th:first-child { width: 36%; } .cv-lv th:last-child { width: 38%; }
  .cv-lv td, .cv-lv th { padding-left: 4px; padding-right: 4px; font-size: 10px; }
  .cv-lg { height: 58px; }
}

/* Turned off: the bouncing Mb logo (DVD-style). Moves in whole pixels, colour changes on every wall */
.safe-screen.is-bouncing { display: block; padding: 0; overflow: hidden; }
.safe-screen.is-bouncing > small { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; text-align: center; }
.mb-bounce { position: absolute; left: 0; top: 0; display: none; image-rendering: auto; will-change: transform; }
.safe-screen.is-bouncing .mb-bounce { display: block; }
