:root {
  --bg: #140f1f;
  --win: #17121f;
  --win-2: #1e1829;
  --chrome: #241c33;
  --hi: #4d3d6e;          /* bevel highlight */
  --lo: #08060c;          /* bevel shadow */
  --fg: #efeaf7;
  --muted: #a39cb2;
  --faint: #6b6380;
  --line: rgba(239, 234, 247, 0.1);
  --line-soft: rgba(239, 234, 247, 0.06);
  --a1: #b98cff;
  --a2: #8b5cf6;
  --a-glow: rgba(150, 100, 255, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pixel: "Pixelify Sans", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --bevel: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--lo);
  --bevel-in: inset 1px 1px 0 var(--lo), inset -1px -1px 0 var(--hi);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { background: var(--bg); color-scheme: dark; }
body { color: var(--fg); font-family: var(--sans); font-size: 14px; font-variant-ligatures: none; -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--a1); color: #12091f; }
:focus-visible { outline: 2px dotted var(--a1); outline-offset: 2px; }

.dot { display: inline-block; width: 8px; height: 8px; background: #80848e; flex-shrink: 0; }
[data-status="online"].dot, [data-status="online"] > .dot { background: #23a55a; box-shadow: 0 0 6px rgba(35,165,90,.8); }
[data-status="idle"].dot, [data-status="idle"] > .dot { background: #f0b232; }
[data-status="dnd"].dot, [data-status="dnd"] > .dot { background: #f23f43; }

/* ---------- desktop + wallpaper ---------- */
.desktop { position: fixed; inset: 0 0 60px 0; overflow: hidden; }
.wallpaper {
  position: absolute; inset: 0; z-index: 0; display: grid; place-content: center; justify-items: center; gap: 4px;
  background:
    radial-gradient(ellipse 70% 60% at 70% 20%, rgba(139, 92, 246, .35), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 90%, rgba(185, 140, 255, .18), transparent 60%),
    linear-gradient(160deg, #22183a, #120d1d 60%, #0d0915);
}
.wallpaper::before {   /* dither */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: repeating-conic-gradient(rgba(0,0,0,.18) 0 25%, transparent 0 50%);
  background-size: 4px 4px;
}
.wallpaper__mark { position: relative; font-size: clamp(90px, 14vw, 180px); line-height: 1; color: rgba(185, 140, 255, .14); text-shadow: 0 0 60px rgba(139, 92, 246, .25); }
.wallpaper__name { position: relative; font-family: var(--pixel); font-size: clamp(22px, 3vw, 34px); letter-spacing: .2em; color: rgba(239, 234, 247, .1); }

/* ---------- desktop icons ---------- */
.icons { position: absolute; z-index: 1; top: 14px; left: 10px; bottom: 14px; display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.icon {
  width: 96px; padding: 8px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1px solid transparent; background: none; cursor: pointer; text-align: center;
}
.icon .icon__img { width: 40px; height: 40px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.45)); }
.icon__label { font-family: var(--pixel); font-size: 13px; line-height: 1.1; color: #fff; text-shadow: 1px 1px 0 #000; padding: 1px 4px; white-space: nowrap; }
.icon:hover .icon__label { background: rgba(139, 92, 246, .25); }
.icon.is-selected { border: 1px dotted rgba(239, 234, 247, .5); background: rgba(139, 92, 246, .18); }
.icon.is-selected .icon__label { background: var(--a2); }
.icon:focus-visible { outline-offset: 0; }

.icon__img { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; background: center / contain no-repeat; image-rendering: pixelated; }

/* ---------- windows ---------- */
.win {
  position: absolute; z-index: 10; display: flex; flex-direction: column;
  max-width: calc(100vw - 16px); max-height: calc(100% - 16px);
  background: var(--win); border: 2px solid var(--lo);
  box-shadow: var(--bevel), 8px 8px 0 rgba(0, 0, 0, .4);
}
.win.is-opening { animation: winOpen .22s var(--ease); }
@keyframes winOpen { from { transform: scale(.92); opacity: 0; } }
.win.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100%; max-width: none; max-height: none; box-shadow: none; }
.win.is-dragging { opacity: .92; }

.win__bar {
  display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 4px 0 8px; flex-shrink: 0;
  background: var(--chrome); color: var(--muted); cursor: grab; user-select: none; touch-action: none;
}
.win.is-dragging .win__bar { cursor: grabbing; }
.win.is-active .win__bar { background: linear-gradient(90deg, #6a3ed4, #3a2075); color: #fff; }
.win__title { flex: 1; font-family: var(--pixel); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__btns { display: flex; gap: 3px; }
.win__btn { width: 22px; height: 20px; display: grid; place-items: center; background: var(--win-2); border: 1px solid var(--lo); box-shadow: var(--bevel); cursor: pointer; }
.win__btn:hover { background: #2c2340; }
.win__btn:active { box-shadow: var(--bevel-in); }
.win__btn--close:hover { background: #b0304f; }
.g { display: block; width: 10px; height: 10px; position: relative; }
.g--min::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 2px; background: currentColor; }
.g--max { border: 2px solid currentColor; border-top-width: 3px; }
.g--close::before, .g--close::after { content: ""; position: absolute; left: 4px; top: -1px; width: 2px; height: 12px; background: currentColor; transform: rotate(45deg); }
.g--close::after { transform: rotate(-45deg); }

.win__tools { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--lo); background: var(--win-2); font-family: var(--mono); font-size: 11px; color: var(--faint); }
.win__path { color: var(--muted); padding: 2px 8px; background: var(--lo); box-shadow: var(--bevel-in); }
.win__body { padding: 16px; overflow: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--hi) transparent; }

/* about.txt */
.about__head { display: flex; align-items: center; gap: 14px; }
.avatar { position: relative; width: 72px; height: 72px; flex-shrink: 0; border: 2px solid var(--lo); box-shadow: 0 0 0 2px var(--a2); background: var(--win-2); }
.avatar img, .avatar__mono { width: 100%; height: 100%; display: block; object-fit: cover; }
.avatar__mono { display: flex; align-items: center; justify-content: center; font-family: var(--pixel); font-size: 2.4rem; color: var(--a1); }
.avatar img:not([hidden]) ~ .avatar__mono { display: none; }
.avatar__dot { position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; border: 3px solid var(--win); }
.about__name { font-family: var(--pixel); font-weight: 600; font-size: 2rem; line-height: 1; }
.about__mark { color: var(--a1); font-size: .7em; }
.about__handle { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 6px; }
.about__bio { margin: 14px 0; font-size: 1.05rem; line-height: 1.45; }

.panel { padding: 12px; background: var(--lo); box-shadow: var(--bevel-in); }
.panel__label { font-family: var(--pixel); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--a1); margin-bottom: 8px; }
.presence { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.presence__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.activity { display: flex; gap: 12px; align-items: center; }
.activity__art { width: 56px; height: 56px; object-fit: cover; flex-shrink: 0; background: var(--win-2); }
.activity__art[src=""], .activity__art:not([src]) { display: none; }
.activity__info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.activity__kind { font-family: var(--pixel); font-size: 11px; text-transform: uppercase; color: var(--a1); }
.activity__title, .activity__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity__title { font-weight: 600; }
.activity__sub { font-size: 12px; color: var(--muted); }
.activity__bar { height: 4px; margin-top: 6px; background: var(--win-2); }
.activity__bar span { display: block; height: 100%; width: 0; background: var(--a1); }
.activity__times { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--faint); margin-top: 3px; }

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin-top: 14px; }
.link {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-width: 0;
  background: var(--win-2); border: 1px solid var(--lo); box-shadow: var(--bevel); cursor: pointer; text-align: left;
}
.link:hover { background: #2a2140; }
.link:active { box-shadow: var(--bevel-in); }
.link svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--a1); }
.link__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.link__label { font-family: var(--pixel); font-size: 14px; line-height: 1.1; }
.link__sub { display: none; }
.link__arrow { font-size: 11px; color: var(--faint); }

/* projects explorer */
.explorer { padding: 0; }
.explorer__head { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; padding: 6px 12px; font-family: var(--pixel); font-size: 12px; color: var(--faint); border-bottom: 1px solid var(--lo); background: var(--win-2); position: sticky; top: 0; }
.explorer__head span:last-child { display: none; }
.explorer__sub { padding: 8px 12px 6px; font-family: var(--pixel); font-size: 12px; color: var(--a1); border-top: 1px solid var(--lo); background: var(--win-2); }
.work { list-style: none; }
.work__row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 150px 14px; gap: 10px; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid var(--line-soft);
}
.work__row:hover { background: rgba(139, 92, 246, .16); }
.work__row:active, .work__row:focus-visible { background: var(--a2); outline: none; }
.work__num { width: 24px; height: 24px; font-size: 0; }
.work__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.work__top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.work__name { font-family: var(--pixel); font-size: 16px; }
.work__status { font-family: var(--mono); font-size: 10px; text-transform: uppercase; padding: 1px 5px; border: 1px solid var(--line); color: var(--faint); }
.work__status--live { color: #6fdc9a; border-color: rgba(111,220,154,.35); }
.work__desc { font-size: 12px; color: var(--muted); line-height: 1.4; }
.work__side { display: flex; flex-wrap: wrap; gap: 4px; }
.work__tag { font-family: var(--mono); font-size: 10px; color: var(--muted); padding: 1px 6px; background: var(--lo); }
.work__arrow { color: var(--faint); font-size: 12px; }
.work__row:hover .work__arrow { color: var(--a1); }

/* system */
.system__logo { display: flex; align-items: center; gap: 10px; font-family: var(--pixel); font-weight: 700; font-size: 2.2rem; }
.system__logo span { color: var(--a1); }
.system__ver { font-family: var(--mono); font-size: 11px; color: var(--faint); margin: 4px 0 14px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 16px; }
.facts > div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 8px 10px; background: var(--lo); box-shadow: var(--bevel-in); }
.facts dt { font-family: var(--pixel); font-size: 11px; color: var(--faint); text-transform: uppercase; }
.facts dd { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tokens { color: var(--a1); cursor: help; }
.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.stack li { font-family: var(--mono); font-size: 11px; padding: 4px 8px; background: var(--win-2); border: 1px solid var(--lo); box-shadow: var(--bevel); }
.stack li::before { content: "▣ "; color: var(--a1); }
.system__foot { margin-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.system__foot a:hover { color: var(--a1); }

/* ---------- taskbar ---------- */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 60px; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px;
  background: #120e1b; border-top: 2px solid var(--hi); box-shadow: 0 -1px 0 var(--lo);
}
.task__left { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: calc(50% - 200px); }
.task__start {
  display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; flex-shrink: 0;
  font-family: var(--pixel); font-weight: 600; font-size: 16px;
  background: var(--win-2); border: 1px solid var(--lo); box-shadow: var(--bevel); cursor: pointer;
}
.task__start span { color: var(--a1); font-size: 18px; }
.task__start:hover { background: #2a2140; }
.task__start.is-pressed { box-shadow: var(--bevel-in); background: var(--lo); }
.task__wins { display: flex; gap: 4px; min-width: 0; overflow: hidden; }
.task__win {
  display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; min-width: 0; max-width: 150px;
  font-family: var(--pixel); font-size: 13px; color: var(--muted);
  background: var(--win-2); border: 1px solid var(--lo); box-shadow: var(--bevel); cursor: pointer;
}
.task__win span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task__win.is-active { color: #fff; box-shadow: var(--bevel-in); background: var(--lo); }
.task__tray { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; font-family: var(--pixel); font-size: 14px; background: var(--lo); box-shadow: var(--bevel-in); }
.task__status { display: flex; align-items: center; gap: 6px; color: var(--muted); }

/* start menu */
.start {
  position: fixed; left: 8px; bottom: 64px; z-index: 1100; display: flex; width: 240px;
  background: var(--win); border: 2px solid var(--lo); box-shadow: var(--bevel), 8px 8px 0 rgba(0,0,0,.4);
  animation: winOpen .18s var(--ease);
}
.start__band { writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 6px; font-family: var(--pixel); font-weight: 700; font-size: 20px; letter-spacing: .1em; color: #fff; background: linear-gradient(0deg, #6a3ed4, #3a2075); }
.start__items { flex: 1; padding: 4px; display: flex; flex-direction: column; }
.start__items button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; text-align: left; font-family: var(--pixel); font-size: 15px; cursor: pointer; }
.start__items button .icon__img { width: 22px; height: 22px; }
.start__items button:hover { background: var(--a2); color: #fff; }
.start__items hr { border: 0; border-top: 1px solid var(--lo); border-bottom: 1px solid var(--hi); margin: 4px 2px; }

.shutdown { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #000; cursor: pointer; font-family: var(--pixel); text-align: center; padding: 24px; }
.shutdown p { font-size: clamp(20px, 3vw, 30px); color: #f0b232; }
.shutdown span { font-size: 14px; color: var(--faint); }
.shutdown.is-booting p, .shutdown.is-booting span { visibility: hidden; }
.shutdown.is-booting::after { content: "✦ deniOS"; font-size: 40px; color: var(--a1); animation: winOpen .5s var(--ease); }

.toast {
  position: fixed; left: 50%; bottom: 76px; z-index: 2000; transform: translate(-50%, 20px);
  padding: 8px 14px; background: var(--win); border: 2px solid var(--lo); box-shadow: var(--bevel), 4px 4px 0 rgba(0,0,0,.4);
  font-family: var(--pixel); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* phones: icons in a grid, one full-screen window at a time, taskbar = player */
@media (max-width: 719px) {
  .icons { right: 10px; bottom: auto; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .icon { width: calc(25% - 5px); }
  .win { left: 6px !important; top: 6px !important; right: 6px; width: auto !important; max-width: none; bottom: 6px; max-height: none; }
  .win__btn[data-act="max"] { display: none; }
  .win__bar { cursor: default; }
  .task__left, .task__tray { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* pixel icons (generated) */
.icon__img--txt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='3' y='1' width='10' height='14' fill='%230b0812'/%3E%3Crect x='4' y='2' width='8' height='12' fill='%23efeaf7'/%3E%3Crect x='9' y='2' width='3' height='3' fill='%23b98cff'/%3E%3Crect x='5' y='6' width='6' height='1' fill='%238b5cf6'/%3E%3Crect x='5' y='8' width='6' height='1' fill='%238b5cf6'/%3E%3Crect x='5' y='10' width='4' height='1' fill='%238b5cf6'/%3E%3C/svg%3E"); }
.icon__img--folder { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='1' y='3' width='6' height='2' fill='%230b0812'/%3E%3Crect x='1' y='4' width='14' height='10' fill='%230b0812'/%3E%3Crect x='2' y='4' width='4' height='1' fill='%23b98cff'/%3E%3Crect x='2' y='5' width='12' height='8' fill='%238b5cf6'/%3E%3Crect x='2' y='7' width='12' height='1' fill='%23b98cff'/%3E%3C/svg%3E"); }
.icon__img--music { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='6' y='2' width='8' height='2' fill='%23b98cff'/%3E%3Crect x='6' y='2' width='2' height='9' fill='%23efeaf7'/%3E%3Crect x='12' y='2' width='2' height='7' fill='%23efeaf7'/%3E%3Crect x='3' y='10' width='5' height='4' fill='%238b5cf6'/%3E%3Crect x='9' y='8' width='5' height='4' fill='%238b5cf6'/%3E%3Crect x='3' y='10' width='5' height='1' fill='%23b98cff'/%3E%3Crect x='9' y='8' width='5' height='1' fill='%23b98cff'/%3E%3C/svg%3E"); }
.icon__img--system { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='1' y='2' width='14' height='10' fill='%230b0812'/%3E%3Crect x='2' y='3' width='12' height='8' fill='%238b5cf6'/%3E%3Crect x='3' y='4' width='4' height='1' fill='%23b98cff'/%3E%3Crect x='8' y='6' width='1' height='3' fill='%23efeaf7'/%3E%3Crect x='7' y='7' width='3' height='1' fill='%23efeaf7'/%3E%3Crect x='6' y='12' width='4' height='1' fill='%230b0812'/%3E%3Crect x='4' y='13' width='8' height='2' fill='%236b6380'/%3E%3C/svg%3E"); }
.icon__img--power { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='7' y='1' width='2' height='7' fill='%23b98cff'/%3E%3Crect x='4' y='3' width='2' height='2' fill='%23efeaf7'/%3E%3Crect x='10' y='3' width='2' height='2' fill='%23efeaf7'/%3E%3Crect x='3' y='5' width='2' height='6' fill='%23efeaf7'/%3E%3Crect x='11' y='5' width='2' height='6' fill='%23efeaf7'/%3E%3Crect x='4' y='11' width='2' height='2' fill='%23efeaf7'/%3E%3Crect x='10' y='11' width='2' height='2' fill='%23efeaf7'/%3E%3Crect x='6' y='13' width='4' height='2' fill='%23efeaf7'/%3E%3C/svg%3E"); }
.icon__img--github { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='1' y='1' width='30' height='30' fill='%230b0812'/%3E%3Crect x='3' y='3' width='26' height='26' fill='%232a2238'/%3E%3Cpath transform='translate%285 5%29 scale%28.9167%29' fill='%23efeaf7' d='M12 .5C5.37.5 0 5.87 0 12.5c0 5.3 3.44 9.8 8.21 11.39.6.11.82-.26.82-.58v-2.03c-3.34.73-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.1-.75.08-.73.08-.73 1.21.09 1.85 1.25 1.85 1.25 1.08 1.84 2.83 1.31 3.52 1 .11-.78.42-1.31.76-1.61-2.67-.3-5.47-1.34-5.47-5.95 0-1.31.47-2.39 1.24-3.23-.12-.31-.54-1.53.12-3.19 0 0 1.01-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.29-1.55 3.3-1.23 3.3-1.23.66 1.66.24 2.88.12 3.19.77.84 1.24 1.92 1.24 3.23 0 4.62-2.81 5.64-5.49 5.94.43.37.82 1.1.82 2.22v3.29c0 .32.21.7.83.58A12 12 0 0 0 24 12.5C24 5.87 18.63.5 12 .5Z'/%3E%3C/svg%3E"); }
.icon__img--discord { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='1' y='1' width='30' height='30' fill='%230b0812'/%3E%3Crect x='3' y='3' width='26' height='26' fill='%238b5cf6'/%3E%3Cpath transform='translate%284.05 5%29 scale%28.9167%29' fill='%23efeaf7' d='M20.32 4.37A19.8 19.8 0 0 0 16.56 3c-.2.36-.43.85-.59 1.23a18.3 18.3 0 0 0-5.94 0A12.6 12.6 0 0 0 9.44 3a19.7 19.7 0 0 0-3.76 1.37C1.98 9.05 1.13 13.58 1.5 18.06A19.9 19.9 0 0 0 7.5 21c.41-.55.77-1.14 1.08-1.76-.6-.22-1.16-.49-1.7-.81l.42-.33a13.9 13.9 0 0 0 11.4 0l.42.33c-.54.32-1.11.59-1.7.81.31.62.67 1.2 1.08 1.76a19.9 19.9 0 0 0 6-2.94c.44-5.2-.75-9.69-3.68-13.69ZM8.02 15.33c-1.18 0-2.15-1.08-2.15-2.41s.95-2.41 2.15-2.41 2.17 1.09 2.15 2.41c0 1.33-.95 2.41-2.15 2.41Zm7.96 0c-1.18 0-2.15-1.08-2.15-2.41s.95-2.41 2.15-2.41 2.17 1.09 2.15 2.41c0 1.33-.94 2.41-2.15 2.41Z'/%3E%3C/svg%3E"); }
.work__num { background: center / contain no-repeat; image-rendering: pixelated; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='3' y='1' width='10' height='14' fill='%230b0812'/%3E%3Crect x='4' y='2' width='8' height='12' fill='%23efeaf7'/%3E%3Crect x='9' y='2' width='3' height='3' fill='%23b98cff'/%3E%3Crect x='5' y='6' width='6' height='1' fill='%238b5cf6'/%3E%3Crect x='5' y='8' width='6' height='1' fill='%238b5cf6'/%3E%3Crect x='5' y='10' width='4' height='1' fill='%238b5cf6'/%3E%3C/svg%3E"); }

/* ---------- music player: lives in the middle of the taskbar ---------- */
.player__yt { position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; z-index: -1; }

.player {
  position: fixed; left: 50%; bottom: 4px; z-index: 1001;
  width: min(380px, calc(100vw - 16px));
  transform: translateX(-50%);
  background: var(--win); border: 2px solid var(--lo); box-shadow: var(--bevel);
}
.player:hover, .player:focus-within, .player.is-open { box-shadow: var(--bevel), 0 -10px 40px -10px var(--a-glow), 8px 8px 0 rgba(0,0,0,.4); }
.player svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }

/* compact row */
.player__bar { display: flex; align-items: center; gap: 4px; padding: 4px 6px; }
.pbtn {
  position: relative; display: grid; place-items: center; flex-shrink: 0;
  width: 32px; height: 32px; border: 1px solid transparent; background: none;
  color: var(--muted); cursor: pointer;
}
.pbtn:hover { color: var(--fg); background: var(--win-2); border-color: var(--lo); box-shadow: var(--bevel); }
.pbtn:active { box-shadow: var(--bevel-in); }
.pbtn--skip svg { width: 20px; height: 20px; }
.pbtn--play { width: 38px; height: 38px; background: var(--a2); color: #fff; border: 1px solid var(--lo); box-shadow: inset 1px 1px 0 #c4a6ff, inset -1px -1px 0 #3a2075; }
.pbtn--play:hover { background: #9d74ff; color: #fff; box-shadow: inset 1px 1px 0 #c4a6ff, inset -1px -1px 0 #3a2075; }
.pbtn--play:active { box-shadow: inset 1px 1px 0 #3a2075, inset -1px -1px 0 #c4a6ff; }
.pbtn--play svg { width: 16px; height: 16px; stroke: none; }
.pbtn--play .i-pause, .player.is-playing .pbtn--play .i-play { display: none; }
.player.is-playing .pbtn--play .i-pause { display: block; }
.player__sep { width: 2px; height: 26px; background: var(--lo); box-shadow: 1px 0 0 var(--hi); margin: 0 6px 0 2px; }

.player__now { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 2px 4px; border: 0; background: none; text-align: left; cursor: pointer; }
.player__cover { width: 36px; height: 36px; flex-shrink: 0; overflow: hidden; background: var(--win-2); border: 1px solid var(--lo); }
.player__cover img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: auto; }
.player__title { flex: 1; min-width: 0; overflow: hidden; font-family: var(--pixel); font-size: 14px; white-space: nowrap;
  -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
.player__title-in { display: inline-block; }
.player__title-in.is-scrolling { animation: marquee var(--dur, 8s) ease-in-out infinite alternate; }
@keyframes marquee { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(var(--shift)); } }

.player__line { height: 3px; background: var(--lo); }
.player__line span { display: block; height: 100%; width: 0; background: var(--a1); }

/* expanded panel: grows upward out of the taskbar */
.player__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.player:hover .player__more, .player:focus-within .player__more, .player.is-open .player__more { grid-template-rows: 1fr; }
.player__inner { overflow: hidden; min-height: 0; padding: 0 12px; opacity: 0; transition: opacity .25s, padding .35s var(--ease); }
.player:hover .player__inner, .player:focus-within .player__inner, .player.is-open .player__inner { opacity: 1; padding: 12px 12px 8px; border-bottom: 2px solid var(--lo); }

.player__info { margin-bottom: 8px; }
.player__title-lg { display: block; font-family: var(--pixel); font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__title-lg:hover { color: var(--a1); }
.player__artist { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player__e { font-family: var(--mono); font-size: 9px; line-height: 1; padding: 2px 4px; background: var(--hi); color: var(--fg); }

.player__seek { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; color: var(--faint); font-variant-numeric: tabular-nums; }
.player__seek input { flex: 1; }

.player input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 8px; cursor: pointer; outline-offset: 4px;
  background: linear-gradient(90deg, var(--a2) var(--fill, 0%), var(--lo) var(--fill, 0%));
  box-shadow: var(--bevel-in);
}
.player input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 16px; background: var(--win-2); border: 1px solid var(--lo); box-shadow: var(--bevel); }
.player input[type="range"]::-moz-range-thumb { width: 10px; height: 16px; border: 1px solid var(--lo); border-radius: 0; background: var(--win-2); }

.player__row { display: flex; align-items: center; gap: 2px; margin: 8px 0 4px; }
.pbtn--toggle[aria-pressed="true"] { color: var(--a1); background: var(--lo); border-color: var(--lo); box-shadow: var(--bevel-in); }
.player__vol { flex: 1; display: flex; align-items: center; gap: 4px; padding: 0 6px; }
.player__vol input { flex: 1; }
.vol-x { display: none; }
.player.is-muted .vol-x { display: block; }
.player.is-muted .vol-wave { display: none; }
#pOpen:hover { color: #1ed760; }

.player__qhead { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 4px; font-family: var(--pixel); font-size: 12px; text-transform: uppercase; color: var(--a1); }
.player__qhead a { text-transform: none; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.player__qhead a:hover { color: var(--a1); }
.player__queue { list-style: none; max-height: 168px; overflow-y: auto; background: var(--lo); box-shadow: var(--bevel-in); padding: 3px; scrollbar-width: thin; scrollbar-color: var(--hi) transparent; }
.player__queue button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px; border: 0; background: none; text-align: left; cursor: pointer; }
.player__queue button:hover { background: var(--a2); }
.player__queue img { width: 28px; height: 28px; object-fit: cover; flex-shrink: 0; background: var(--win-2); }
.player__queue span { min-width: 0; display: flex; flex-direction: column; }
.player__queue b, .player__queue i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__queue b { font-weight: 500; font-size: 12px; }
.player__queue i { font-style: normal; font-size: 11px; color: var(--faint); }
.player__queue button:hover i { color: #e6dcff; }

.player__note { display: none; font-family: var(--mono); font-size: 10px; color: var(--faint); text-align: center; margin-top: 6px; }
.player.is-preview .player__note { display: block; }

.player.is-waiting .pbtn--play { animation: waitPulse 1.6s steps(8) infinite; }
@keyframes waitPulse { 0% { outline: 2px solid rgba(185,140,255,.9); outline-offset: 0; } 100% { outline: 2px solid rgba(185,140,255,0); outline-offset: 8px; } }

@media (hover: none) {
  .player:not(.is-open) .player__more { grid-template-rows: 0fr; }
  .player:not(.is-open) .player__inner { opacity: 0; padding: 0 12px; border: 0; }
}
.about__time { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.about__clock { font-family: var(--pixel); font-size: 16px; color: var(--a1); }

.activity:not([hidden]) + .presence, .presence + .activity:not([hidden]) { margin-top: 10px; }

/* where am i: schedule icons (generated) */
.icon__img--sleep { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='6' y='15' width='1' height='1' fill='%230b0812'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%230b0812'/%3E%3Crect x='5' y='7' width='1' height='1' fill='%230b0812'/%3E%3Crect x='9' y='14' width='1' height='1' fill='%230b0812'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%230b0812'/%3E%3Crect x='0' y='8' width='1' height='1' fill='%230b0812'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%230b0812'/%3E%3Crect x='11' y='11' width='1' height='1' fill='%230b0812'/%3E%3Crect x='1' y='12' width='1' height='1' fill='%230b0812'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%230b0812'/%3E%3Crect x='7' y='10' width='1' height='1' fill='%230b0812'/%3E%3Crect x='6' y='8' width='1' height='1' fill='%230b0812'/%3E%3Crect x='5' y='6' width='1' height='1' fill='%230b0812'/%3E%3Crect x='4' y='14' width='1' height='1' fill='%230b0812'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%230b0812'/%3E%3Crect x='9' y='10' width='1' height='1' fill='%230b0812'/%3E%3Crect x='5' y='15' width='1' height='1' fill='%230b0812'/%3E%3Crect x='8' y='14' width='1' height='1' fill='%230b0812'/%3E%3Crect x='0' y='10' width='1' height='1' fill='%230b0812'/%3E%3Crect x='1' y='11' width='1' height='1' fill='%230b0812'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%230b0812'/%3E%3Crect x='2' y='13' width='1' height='1' fill='%230b0812'/%3E%3Crect x='7' y='15' width='1' height='1' fill='%230b0812'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%230b0812'/%3E%3Crect x='3' y='14' width='1' height='1' fill='%230b0812'/%3E%3Crect x='0' y='9' width='1' height='1' fill='%230b0812'/%3E%3Crect x='8' y='10' width='1' height='1' fill='%230b0812'/%3E%3Crect x='10' y='13' width='1' height='1' fill='%230b0812'/%3E%3Crect x='11' y='12' width='1' height='1' fill='%230b0812'/%3E%3Crect x='10' y='10' width='1' height='1' fill='%230b0812'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%230b0812'/%3E%3Crect x='6' y='9' width='1' height='1' fill='%230b0812'/%3E%3Crect x='6' y='12' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='4' y='9' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='4' y='6' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='4' y='12' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='3' y='10' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='5' y='13' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='3' y='13' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='5' y='10' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='8' y='12' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='9' y='11' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='2' y='11' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='10' y='12' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='6' y='11' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='6' y='14' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='7' y='13' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='4' y='8' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='3' y='12' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='5' y='9' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='4' y='11' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='5' y='12' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='8' y='11' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='10' y='11' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='9' y='13' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='2' y='10' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='6' y='13' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='7' y='12' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='6' y='10' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='4' y='7' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='3' y='11' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='4' y='10' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='5' y='11' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='4' y='13' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='5' y='8' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='5' y='14' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='9' y='12' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='8' y='13' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='2' y='9' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='2' y='12' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='7' y='11' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='7' y='14' width='1' height='1' fill='%23efeaf7'/%3E%3Crect x='10' y='0' width='5' height='1' fill='%23b98cff'/%3E%3Crect x='13' y='1' width='1' height='1' fill='%23b98cff'/%3E%3Crect x='12' y='2' width='1' height='1' fill='%23b98cff'/%3E%3Crect x='11' y='3' width='1' height='1' fill='%23b98cff'/%3E%3Crect x='10' y='4' width='5' height='1' fill='%23b98cff'/%3E%3Crect x='12' y='6' width='4' height='1' fill='%238b5cf6'/%3E%3Crect x='14' y='7' width='2' height='1' fill='%238b5cf6'/%3E%3Crect x='12' y='8' width='2' height='1' fill='%238b5cf6'/%3E%3Crect x='12' y='9' width='4' height='1' fill='%238b5cf6'/%3E%3C/svg%3E"); }
.icon__img--school { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='7' y='0' width='1' height='4' fill='%23efeaf7'/%3E%3Crect x='8' y='0' width='3' height='2' fill='%23b98cff'/%3E%3Crect x='6' y='3' width='4' height='1' fill='%230b0812'/%3E%3Crect x='4' y='4' width='8' height='1' fill='%230b0812'/%3E%3Crect x='2' y='5' width='12' height='1' fill='%230b0812'/%3E%3Crect x='1' y='6' width='14' height='1' fill='%230b0812'/%3E%3Crect x='7' y='4' width='2' height='1' fill='%23b98cff'/%3E%3Crect x='5' y='5' width='6' height='1' fill='%23b98cff'/%3E%3Crect x='3' y='6' width='10' height='1' fill='%238b5cf6'/%3E%3Crect x='2' y='7' width='12' height='8' fill='%230b0812'/%3E%3Crect x='3' y='7' width='10' height='7' fill='%238b5cf6'/%3E%3Crect x='4' y='9' width='2' height='2' fill='%23efeaf7'/%3E%3Crect x='10' y='9' width='2' height='2' fill='%23efeaf7'/%3E%3Crect x='7' y='10' width='2' height='4' fill='%230b0812'/%3E%3Crect x='1' y='14' width='14' height='1' fill='%230b0812'/%3E%3C/svg%3E"); }
.icon__img--online { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='1' y='2' width='14' height='10' fill='%230b0812'/%3E%3Crect x='2' y='3' width='12' height='8' fill='%231e1829'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%236fdc9a'/%3E%3Crect x='4' y='6' width='1' height='1' fill='%236fdc9a'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%236fdc9a'/%3E%3Crect x='6' y='7' width='3' height='1' fill='%23efeaf7'/%3E%3Crect x='12' y='4' width='1' height='1' fill='%2323a55a'/%3E%3Crect x='6' y='12' width='4' height='1' fill='%230b0812'/%3E%3Crect x='4' y='13' width='8' height='2' fill='%236b6380'/%3E%3Crect x='4' y='13' width='8' height='1' fill='%23b98cff'/%3E%3C/svg%3E"); }
.where { display: flex; align-items: center; gap: 10px; }
.where .icon__img { width: 32px; height: 32px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.45)); }
.where__text { font-family: var(--pixel); font-size: 18px; }
.where + .presence { margin-top: 10px; }
