/* ─────────────────────────────────────────────────────────────
   desk — monochrome desktop shell
   Edit :root to reskin the whole thing. The star theme is violet
   on black; the evvls theme strips every hue out of it.
   ───────────────────────────────────────────────────────────── */

:root {
  --night:   #000000;
  --chrome:  #070409;
  --surface: #0d0714;
  --raise:   #1b1128;
  --line:    #3a2352;
  --line-lo: #241634;

  /* the mixed half of the theme */
  --deep:    #170a28;
  --mid:     #24103d;
  --violet:  #4a1f7a;

  --text:  #f1e9ff;
  --dim:   #b3a2cb;
  --faint: #6f5d88;

  --accent:  #c084fc;
  --accent2: #a855f7;
  --warn:    #8a6bb0;
  --bad:     #6b4f8c;

  --bar-h: 30px;

  --ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--night);
  color: var(--text);
  font-family: var(--ui);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(212, 212, 212, 0.22); color: #fafafa; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── wallpaper / topology ─────────────────────────────────── */

#wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--night);
}

#topo {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── top bar ──────────────────────────────────────────────── */

#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar-h);
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(150, 150, 150, 0.4);
  font-size: 12px;
}

#topbar .spacer { flex: 1; }

.bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  color: var(--dim);
  white-space: nowrap;
}

.bar-host {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.bar-host:hover { background: var(--raise); border-color: var(--line-lo); }
.bar-host[aria-expanded="true"] {
  background: var(--raise);
  border-color: rgba(212, 212, 212, 0.4);
}
.bar-host::after {
  content: '\25BE';
  font-size: 9px;
  opacity: 0.7;
  margin-left: 1px;
}

#bar-visits {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
#bar-visits:empty { display: none; }

#bar-now {
  font-size: 11.5px;
  color: var(--dim);
  max-width: 24vw;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border: 0;
  background: none;
  font-family: inherit;
}
#bar-now:hover { color: var(--accent2); }
#bar-now .eq { display: inline-block; width: 7px; color: var(--accent2); }

#bar-clock {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* status dots: fill first, brightness second, label always */
.dot {
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid var(--faint);
  flex-shrink: 0;
}
.dot[data-status="online"] {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 6px rgba(212, 212, 212, 0.8);
}
.dot[data-status="idle"] { background: var(--warn); border-color: var(--warn); }
.dot[data-status="dnd"]  { background: transparent; border-color: var(--text); }

/* ── desktop ──────────────────────────────────────────────── */

#desktop {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

/* ── windows ──────────────────────────────────────────────── */

.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  min-height: 90px;
  max-height: calc(100% - 16px);
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}

.win.focused {
  border-color: #4a4a4a;
  box-shadow: 0 0 0 1px rgba(212, 212, 212, 0.16), 0 16px 48px rgba(0, 0, 0, 0.62);
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 6px 0 11px;
  background: rgba(8, 8, 8, 0.72);
  border-bottom: 1px solid var(--line-lo);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
  touch-action: none;
}
.win-bar:active { cursor: grabbing; }

.win.focused .win-bar { border-bottom-color: var(--line); }

.win-title {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.win.focused .win-title { color: var(--accent); }

.win-btns { display: flex; gap: 2px; flex-shrink: 0; }

.win-btn {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.12s, color 0.12s;
}
.win-btn:hover { background: var(--raise); color: var(--text); }
.win-btn[data-act="close"]:hover { background: rgba(240, 240, 240, 0.22); color: var(--bad); }

.win-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 15px;
}

.win-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  z-index: 5;
  touch-action: none;
}
.win-resize::after {
  content: '';
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
}

.win-body::-webkit-scrollbar { width: 9px; }
.win-body::-webkit-scrollbar-track { background: transparent; }
.win-body::-webkit-scrollbar-thumb {
  background: var(--line-lo);
  border: 2px solid transparent;
  background-clip: content-box;
}
.win-body::-webkit-scrollbar-thumb:hover { background: var(--line); background-clip: content-box; }
.win-body { scrollbar-width: thin; scrollbar-color: var(--line-lo) transparent; }

/* ── context menu ─────────────────────────────────────────── */

#ctxmenu {
  position: fixed;
  z-index: 600;
  min-width: 176px;
  padding: 5px;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.ctx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--dim);
  font-family: var(--ui);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.ctx-item:hover { background: var(--raise); color: var(--text); }
.ctx-item kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  background: none;
  border: 0;
}
.ctx-sep { height: 1px; background: var(--line-lo); margin: 5px 4px; }

/* ── shared bits ──────────────────────────────────────────── */

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.3; }

.win-body p { margin: 0 0 9px; color: var(--dim); font-size: 13px; }
.win-body p:last-child { margin-bottom: 0; }

.sect {
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
  margin: 16px 0 8px;
  letter-spacing: 0.04em;
}
.sect:first-child { margin-top: 0; }

.rule { height: 1px; background: var(--line-lo); margin: 14px 0; border: 0; }

.empty {
  font-size: 12.5px;
  color: var(--faint);
  padding: 14px 0;
  text-align: center;
}

/* ── about ────────────────────────────────────────────────── */

#about-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}

.pfp {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--raise);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 22px;
  color: var(--dim);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

#about-name {
  font-size: 19px;
  letter-spacing: -0.015em;
  color: #fafafa;
}

#about-pronouns {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent2);
}

#about-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 3px;
}

#motd {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 11px;
  margin-bottom: 13px;
  border-left: 2px solid var(--accent2);
  background: rgba(150, 150, 150, 0.07);
}
#motd-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent2);
  flex-shrink: 0;
}
#motd-text {
  font-size: 12.5px;
  color: var(--dim);
  word-break: break-word;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }

.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 7px;
  background: var(--raise);
  border: 1px solid var(--line-lo);
  color: var(--dim);
}

/* ── links ────────────────────────────────────────────────── */

.links { display: flex; flex-direction: column; gap: 1px; }

.link {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 6px 8px;
  margin: 0 -8px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.12s, color 0.12s;
}
.link:hover { background: var(--raise); color: var(--accent); }
.link .link-note {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
}
.link:hover .link-note { color: var(--dim); }

/* ── projects ─────────────────────────────────────────────── */

#projects-grid { display: flex; flex-direction: column; gap: 6px; }

.project-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 11px;
  border: 1px solid var(--line-lo);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  text-align: left;
  font-family: var(--ui);
  transition: border-color 0.14s, background 0.14s;
  width: 100%;
}
.project-card:hover { border-color: #4a4a4a; background: rgba(255, 255, 255, 0.06); }

.project-card-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.project-card-tag { font-size: 11.5px; color: var(--faint); }

.project-shots { display: flex; flex-direction: column; gap: 7px; margin: 12px 0; }
.project-shots:empty { display: none; }
.project-shot {
  width: 100%;
  border: 1px solid var(--line-lo);
  display: block;
  cursor: zoom-in;
  background: var(--raise);
}

.pill-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }

.btn {
  padding: 6px 13px;
  border: 1px solid var(--line);
  background: var(--raise);
  color: var(--text);
  font-family: var(--ui);
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.14s, color 0.14s, background 0.14s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }

.btn-primary {
  background: rgba(212, 212, 212, 0.14);
  border-color: rgba(212, 212, 212, 0.4);
  color: var(--accent);
}
.btn-primary:hover { background: rgba(255, 255, 255, 0.2); }

/* ── lightbox ─────────────────────────────────────────────── */

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(6, 2, 10, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
}
#lightbox img { max-width: 100%; max-height: 100%; border: 1px solid var(--line); }

/* ── music ────────────────────────────────────────────────── */

#mu-now { display: flex; gap: 12px; align-items: center; }

.cover {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--raise);
  border: 1px solid var(--line-lo);
  color: var(--faint);
  font-size: 20px;
  background-size: cover;
  background-position: center;
}

#mu-meta { min-width: 0; flex: 1; }
#mu-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#mu-artist {
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}




.mu-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--dim);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  transition: background 0.12s, color 0.12s;
}
.mu-btn:hover { background: var(--raise); color: var(--text); }
.mu-btn[aria-pressed="true"] { color: var(--accent); background: rgba(212, 212, 212, 0.12); }



#mu-search {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line-lo);
  background: rgba(6, 6, 6, 0.55);
  color: var(--text);
  font-family: var(--ui);
  font-size: 12.5px;
  outline-offset: 2px;
}
#mu-search::placeholder { color: var(--faint); }
#mu-search:focus { border-color: #4a4a4a; }

#mu-list { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; }

.mu-track {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  margin: 0 -8px;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--ui);
  text-align: left;
  cursor: pointer;
  width: calc(100% + 16px);
  transition: background 0.1s;
}
.mu-track:hover { background: var(--raise); }
.mu-track[aria-current="true"] { background: rgba(212, 212, 212, 0.08); }
.mu-track[aria-current="true"] .mu-track-title { color: var(--accent2); }

.mu-track-idx {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  width: 18px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.mu-track-art {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--raise);
  color: var(--faint);
  font-size: 10px;
  background-size: cover;
  background-position: center;
}
.mu-track-text { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.mu-track-title {
  display: block;
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mu-track-artist {
  display: block;
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── services ─────────────────────────────────────────────── */

#svc-list { display: flex; flex-direction: column; gap: 1px; }

.svc {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  margin: 0 -8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}
.svc:hover { background: var(--raise); }

.svc-dot {
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid var(--faint);
  flex-shrink: 0;
}
.svc[data-state="up"] .svc-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 6px rgba(212, 212, 212, 0.75);
}
.svc[data-state="degraded"] .svc-dot { background: var(--warn); border-color: var(--warn); }
.svc[data-state="down"] .svc-dot { background: transparent; border-color: var(--text); }
.svc[data-state="down"] .svc-name { color: var(--dim); }

.svc-name { font-size: 12.5px; color: var(--text); }
.svc-host { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.svc-ms {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

#svc-foot {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  margin-top: 12px;
  cursor: pointer;
  display: inline-block;
}
#svc-foot:hover { color: var(--dim); }

/* ── guestbook ────────────────────────────────────────────── */

#gb-form { display: flex; flex-direction: column; gap: 7px; }

#gb-name, #gb-msg {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line-lo);
  background: rgba(6, 6, 6, 0.55);
  color: var(--text);
  font-family: var(--ui);
  font-size: 12.5px;
  outline-offset: 2px;
  resize: vertical;
}
#gb-name::placeholder, #gb-msg::placeholder { color: var(--faint); }
#gb-name:focus, #gb-msg:focus { border-color: #4a4a4a; }
#gb-msg { min-height: 58px; line-height: 1.5; }

#gb-foot { display: flex; align-items: center; gap: 10px; }
#gb-count {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
#gb-note { font-size: 11.5px; color: var(--faint); min-height: 17px; }
#gb-note[data-tone="err"] { color: var(--bad); }
#gb-note[data-tone="ok"] { color: var(--accent); }

#gb-entries { display: flex; flex-direction: column; gap: 8px; }

.gb-entry {
  padding: 9px 11px;
  border: 1px solid var(--line-lo);
  background: rgba(255, 255, 255, 0.03);
}
.gb-entry-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}
.gb-entry-name { font-size: 12.5px; font-weight: 600; color: var(--accent2); }
.gb-entry-when {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  margin-left: auto;
  flex-shrink: 0;
}
.gb-entry-msg {
  font-size: 12.5px;
  color: var(--dim);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

/* ── boot ─────────────────────────────────────────────────── */

#boot {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #000000;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 16px;
  transition: opacity 0.45s ease;
  cursor: default;
  overflow: hidden;
}
#boot.ready { cursor: pointer; }
#boot.gone { opacity: 0; pointer-events: none; }

#boot-log {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #dcdcdc;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.boot-line { white-space: pre; display: flex; gap: 1ch; }
.boot-line .st { flex-shrink: 0; width: 8ch; }
.boot-line .st.ok { color: var(--accent); }
.boot-line .st.failed { color: var(--bad); }
.boot-line .st.wait { color: var(--warn); }
.boot-line .msg { color: #c9c9c9; overflow: hidden; text-overflow: ellipsis; }
.boot-line.plain .msg { color: #6a6a6a; }

#boot-enter {
  flex: 0 0 auto;
  margin-right: auto;
  margin-bottom: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  margin-top: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#boot-enter.show { opacity: 1; }
#boot-enter::after {
  content: '\258B';
  animation: blink 1.05s step-end infinite;
  margin-left: 2px;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

#boot-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

@media (max-width: 600px) {
  #boot-log { font-size: 10.5px; }
  #boot-enter { font-size: 11px; }
}

/* ── mixed panels: black and purple, never the same twice ─── */

#wallpaper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(120, 40, 190, 0.18), transparent 62%);
}

/* windows alternate: black, purple, black, purple… */
.win:nth-of-type(odd)  { background: rgba(0, 0, 0, 0.88); border-color: #2b1840; }
.win:nth-of-type(even) { background: rgba(23, 10, 40, 0.9); border-color: #4a2770; }

.win:nth-of-type(odd)  .win-bar { background: rgba(0, 0, 0, 0.8); }
.win:nth-of-type(even) .win-bar { background: rgba(36, 16, 61, 0.8); }

.win:nth-of-type(odd)  .win-body { background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 130px); }
.win:nth-of-type(even) .win-body { background: linear-gradient(180deg, rgba(74, 31, 122, 0.18), transparent 130px); }

/* rows inside those panels alternate too, but never fight a hover */
.project-card:nth-child(even):not(:hover) { background: rgba(255, 255, 255, 0.05); }
.mu-track:nth-child(even):not(:hover)     { background: rgba(255, 255, 255, 0.035); }
.gb-entry:nth-child(even)                 { background: rgba(255, 255, 255, 0.03); }
.svc:nth-child(even):not(:hover)          { background: rgba(255, 255, 255, 0.03); }
.link:nth-child(even):not(:hover)         { background: rgba(255, 255, 255, 0.025); }

/* ── spotify ──────────────────────────────────────────────── */


/* ── music layout (spotify) ───────────────────────────────── */



/* ── music controls ───────────────────────────────────────── */

#mu-controls { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
#mu-controls .mu-btn { width: 32px; height: 32px; font-size: 13px; }

#mu-play {
  width: 38px;
  height: 38px;
  background: rgba(212, 212, 212, .16);
  color: var(--accent);
}
#mu-play:hover { background: rgba(212, 212, 212, .3); }
#mu-play[aria-pressed="true"] { background: rgba(212, 212, 212, .26); }

#mu-progress { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
#mu-time, #mu-dur {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 3px;
  background: var(--line-lo);
  cursor: pointer;
  outline-offset: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  background: var(--accent);
  border: 0;
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  background: var(--accent);
  border: 0;
  cursor: pointer;
}

#mu-state {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* the spotify controller iframe is real but never seen */
#sp-host {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ── extra motion ─────────────────────────────────────────── */

@keyframes ripple-out { from { transform: scale(0); opacity: .5 } to { transform: scale(1); opacity: 0 } }

.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle, rgba(212, 212, 212, .45), rgba(212, 212, 212, 0) 70%);
  animation: ripple-out .6s cubic-bezier(.2, .7, .3, 1) forwards;
}

.btn, .project-card, .mu-track, .link, .ctx-item, .svc, .win-btn { overflow: hidden; }

/* cursor spotlight across project cards */
.project-card { position: relative; }
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              rgba(212, 212, 212, .16), transparent 70%);
}
.project-card:hover::after { opacity: 1; }

/* window contents cascade in */
@keyframes content-in { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.win.revealing .win-body > * { animation: content-in .3s cubic-bezier(.2, .9, .3, 1) both; }
.win.revealing .win-body > *:nth-child(1) { animation-delay: 20ms; }
.win.revealing .win-body > *:nth-child(2) { animation-delay: 55ms; }
.win.revealing .win-body > *:nth-child(3) { animation-delay: 90ms; }
.win.revealing .win-body > *:nth-child(4) { animation-delay: 125ms; }
.win.revealing .win-body > *:nth-child(5) { animation-delay: 160ms; }
.win.revealing .win-body > *:nth-child(6) { animation-delay: 195ms; }

/* focused window title flashes once */
@keyframes title-glow {
  from { text-shadow: 0 0 14px rgba(216, 180, 254, .8) }
  to   { text-shadow: 0 0 0 rgba(212, 212, 212, 0) }
}
.win.focused .win-title { animation: title-glow .55s ease; }

/* boot console: slow purple sweep behind the log, plus scanlines */
#boot::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  top: -140px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(212, 212, 212, .1), transparent);
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { transform: translateY(calc(100vh + 280px)) } }
#boot::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(150, 150, 150, .05) 0 1px, transparent 1px 3px);
  opacity: .6;
}


/* ── motion ───────────────────────────────────────────────── */

@keyframes fade-in    { from { opacity: 0 } to { opacity: 1 } }
@keyframes bar-drop   { from { transform: translateY(-100%) } to { transform: none } }
@keyframes win-in     { from { opacity: 0; transform: translateY(7px) scale(.985) } to { opacity: 1; transform: none } }
@keyframes win-out    { to { opacity: 0; transform: translateY(5px) scale(.99) } }
@keyframes menu-in    { from { opacity: 0; transform: translateY(-5px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes line-in    { from { opacity: 0; transform: translateY(3px) } to { opacity: 1; transform: none } }
@keyframes entry-in   { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }
@keyframes card-in    { from { opacity: 0; transform: translateY(7px) } to { opacity: 1; transform: none } }
@keyframes ping       { 0% { opacity: .6; transform: scale(.55) } 70%, 100% { opacity: 0; transform: scale(1.75) } }
@keyframes pulse-soft { 0%, 100% { opacity: .45 } 50% { opacity: 1 } }

/* backdrop fades up under the boot screen */
#wallpaper { opacity: 0; animation: fade-in 1s ease .15s forwards; }

#topbar { animation: bar-drop .42s cubic-bezier(.2, .9, .3, 1); }

/* windows: animating transform + opacity only, so drag stays exact */
.win {
  transition: box-shadow .2s ease, border-color .2s ease, opacity .15s ease;
  will-change: transform, opacity;
}
.win.opening { animation: win-in .22s cubic-bezier(.2, .9, .3, 1); }
.win.closing { animation: win-out .13s ease forwards; pointer-events: none; }

.win-bar { transition: background .2s ease, border-bottom-color .2s ease; }
.win.focused .win-bar { background: rgba(22, 22, 22, .85); }

.win-btn { transition: background .12s, color .12s, transform .12s; }
.win-btn:hover { transform: scale(1.1); }

#ctxmenu { animation: menu-in .13s cubic-bezier(.2, .9, .3, 1); transform-origin: top left; }
.ctx-item { transition: background .1s, color .1s, padding-left .12s; }
.ctx-item:hover { padding-left: 13px; }

/* boot console lines arrive one at a time */
.boot-line { animation: line-in .22s ease both; }
#boot-enter { transform: translateY(5px); transition: opacity .3s ease, transform .3s ease; }
#boot-enter.show { opacity: 1; transform: none; }

/* status dot breathes only while online */
.dot { position: relative; }
.dot[data-status="online"]::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(212, 212, 212, .45);
  pointer-events: none;
  animation: ping 2.6s cubic-bezier(.2, .6, .3, 1) infinite;
}

#bar-now .eq { animation: pulse-soft 1.5s ease-in-out infinite; }

/* clicking the name cycles star / angelic / evvls */
@keyframes name-flip {
  0%   { opacity: 1; transform: translateY(0) }
  40%  { opacity: 0; transform: translateY(-7px) }
  41%  { opacity: 0; transform: translateY(7px) }
  100% { opacity: 1; transform: translateY(0) }
}
#about-name {
  transition: color .2s ease, text-shadow .2s ease;
}
#about-name:hover {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(212, 212, 212, .5);
}
#about-name.name-flip {
  animation: name-flip .34s cubic-bezier(.2, .9, .3, 1);
}

/* content hover/motion */
.tag { transition: background .14s, border-color .14s, color .14s; }
.tag:hover { border-color: var(--line); color: var(--text); background: #232323; }

.link { transition: background .12s, color .12s, transform .16s cubic-bezier(.2, .9, .3, 1); }
.link:hover { transform: translateX(3px); }

.project-card {
  animation: card-in .26s cubic-bezier(.2, .9, .3, 1) both;
  transition: transform .18s cubic-bezier(.2, .9, .3, 1), border-color .14s,
              background .14s, box-shadow .18s;
}
.project-card:hover {
  transform: translateX(3px);
  border-color: #4a4a4a;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: -3px 0 0 rgba(212, 212, 212, .35);
}

.btn { transition: border-color .14s, color .14s, background .14s, transform .14s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.svc { transition: background .12s, transform .16s cubic-bezier(.2, .9, .3, 1); }
.svc:hover { transform: translateX(3px); }
.svc-dot { transition: background .3s, border-color .3s, box-shadow .3s; }

.mu-btn { transition: background .12s, color .12s, transform .12s; }
.mu-btn:hover { transform: scale(1.08); }

.mu-track { transition: background .1s, padding-left .12s; }
.mu-track:hover { padding-left: 11px; }

/* the row that is loaded gets a breathing note instead of its number */
.mu-track-idx { position: relative; transition: color .15s; }
.mu-track[aria-current="true"] .mu-track-idx { color: transparent; }
.mu-track[aria-current="true"] .mu-track-idx::after {
  content: '\266A';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent2);
  animation: pulse-soft 1.4s ease-in-out infinite;
}
#mu-list.paused .mu-track[aria-current="true"] .mu-track-idx::after {
  animation-play-state: paused;
  opacity: .4;
}

/* guestbook + service rows settle in */
.gb-entry { animation: entry-in .24s cubic-bezier(.2, .9, .3, 1) both; }
.svc { animation: entry-in .22s ease both; }

/* ── responsive: single scrolling column ──────────────────── */

@media (max-width: 860px), (pointer: coarse) {
  html, body { overflow: auto; height: auto; }

  #desktop {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: calc(var(--bar-h) + 11px) 11px 28px;
    min-height: 100vh;
  }

  .win {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: none;
    transform: none !important;
  }
  .win-bar { cursor: default; }
  .win-body { overflow: visible; max-height: none; }
  .win-resize { display: none; }

  #bar-now, #bar-visits { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}




/* ── social icons ─────────────────────────────────────────── */

.link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  align-self: center;
  color: var(--dim);
  transition: color .14s ease, transform .16s cubic-bezier(.2, .9, .3, 1);
}
.link:hover .link-icon { color: var(--accent); transform: scale(1.14); }
.link-icon svg { display: block; width: 100%; height: 100%; }

.pfp { cursor: pointer; transition: border-color .18s ease, transform .18s cubic-bezier(.2, .9, .3, 1); }
.pfp:hover { border-color: var(--accent); transform: scale(1.04); }

/* ── dashboard ────────────────────────────────────────────── */

#dash-body { display: flex; flex-direction: column; }
.dash-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 8px;
  margin: 0 -8px;
  border-bottom: 1px solid var(--line-lo);
}
.dash-row:last-child { border-bottom: 0; }
.dash-k {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: .02em;
}
.dash-v {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.dash-v.accent { color: var(--accent); }

/* ── theme: white ─────────────────────────────────────────── */

body[data-theme="white"] {
  --night: #f7f7f7;
  --chrome: #ffffff;
  --surface: #ffffff;
  --raise: #efefef;
  --line: #c9c9c9;
  --line-lo: #e6e6e6;
  --text: #111111;
  --dim: #5a5a5a;
  --faint: #8b8b8b;
  --accent: #2b2b2b;
  --accent2: #4a4a4a;
}
body[data-theme="white"] #topbar {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: #dcdcdc;
}
body[data-theme="white"] .win:nth-of-type(odd) { background: rgba(255, 255, 255, .95); border-color: #dedede; }
body[data-theme="white"] .win:nth-of-type(even) { background: rgba(247, 247, 247, .96); border-color: #cdcdcd; }
body[data-theme="white"] .win:nth-of-type(odd) .win-bar { background: rgba(255, 255, 255, .92); }
body[data-theme="white"] .win:nth-of-type(even) .win-bar { background: rgba(243, 243, 243, .92); }
body[data-theme="white"] .win.focused .win-bar { background: #ffffff; }
body[data-theme="white"] .win-body { background: none; }
body[data-theme="white"] .win { box-shadow: 0 10px 30px rgba(40, 40, 40, .12); }
body[data-theme="white"] .win.focused {
  border-color: #9a9a9a;
  box-shadow: 0 0 0 1px rgba(40, 40, 40, .16), 0 16px 40px rgba(40, 40, 40, .18);
}
body[data-theme="white"] #about-name { color: #111111; }
body[data-theme="white"] .project-card { background: rgba(255, 255, 255, .7); }
body[data-theme="white"] .gb-entry { background: rgba(255, 255, 255, .72); }
body[data-theme="white"] .cover,
body[data-theme="white"] .pfp { background-color: #efefef; }
body[data-theme="white"] #boot { background: #ffffff; }
body[data-theme="white"] #boot::after { opacity: .22; }
body[data-theme="white"] #wallpaper::after {
  background: radial-gradient(circle at 50% 0%, rgba(212, 212, 212, .12), transparent 62%);
}
body[data-theme="white"] .win-body::-webkit-scrollbar-thumb { background: #d9d9d9; }

/* ── theme: black ─────────────────────────────────────────── */

body[data-theme="black"] {
  --night: #000000;
  --chrome: #000000;
  --surface: #000000;
  --raise: #0b0b0b;
  --line: #1b1b1b;
  --line-lo: #101010;
  --text: #f2f2f2;
  --dim: #8b8b8b;
  --faint: #565656;
  --accent: #e9e9e9;
  --accent2: #b9b9b9;
  --warn: #7a7a7a;
  --bad: #4f4f4f;
}
body[data-theme="black"] #topbar {
  background: #000000;
  border-bottom-color: #1a1a1a;
}
body[data-theme="black"] .win:nth-of-type(odd),
body[data-theme="black"] .win:nth-of-type(even) {
  background: #000000;
  border-color: #1c1c1c;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .9);
}
body[data-theme="black"] .win:nth-of-type(odd) .win-bar,
body[data-theme="black"] .win:nth-of-type(even) .win-bar {
  background: #050505;
  border-bottom-color: #151515;
}
body[data-theme="black"] .win.focused {
  border-color: #3a3a3a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 16px 44px rgba(0, 0, 0, .95);
}
body[data-theme="black"] .win.focused .win-bar { background: #0a0a0a; }
body[data-theme="black"] .win-body { background: none; }
body[data-theme="black"] #about-name { color: #ffffff; }
body[data-theme="black"] .project-card,
body[data-theme="black"] .gb-entry { background: #070707; border-color: #191919; }
body[data-theme="black"] .cover,
body[data-theme="black"] .pfp { background-color: #0b0b0b; }
body[data-theme="black"] #wallpaper::after {
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .05), transparent 58%);
}
body[data-theme="black"] #boot { background: #000000; }
body[data-theme="black"] #boot::after { opacity: .18; }
body[data-theme="black"] .mu-track[aria-current="true"] { background: #111111; }
/* ── black theme: no hue at all, even in the glows ────────── */

body[data-theme="black"] .ripple {
  background: radial-gradient(circle, rgba(220, 220, 220, .35), rgba(220, 220, 220, 0) 70%);
}
body[data-theme="black"] .project-card::after {
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 255, 255, .07), transparent 70%);
}
body[data-theme="black"] #about-name:hover { text-shadow: 0 0 18px rgba(255, 255, 255, .35); }
body[data-theme="black"] .dot[data-status="online"]::after { border-color: rgba(255, 255, 255, .4); }
body[data-theme="black"] #boot::before {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .06), transparent);
}
body[data-theme="black"] #boot::after {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px);
}
body[data-theme="black"] #mu-play { background: rgba(255, 255, 255, .08); }
body[data-theme="black"] #mu-play:hover { background: rgba(255, 255, 255, .16); }
body[data-theme="black"] .btn-primary {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .3);
}
body[data-theme="black"] .project-card:hover {
  box-shadow: -3px 0 0 rgba(255, 255, 255, .25);
}
body[data-theme="black"] .mu-track[aria-current="true"] .mu-track-idx::after { color: #ffffff; }
/* ------------------------------------------------------------------
   white theme, refined
   layered shadows instead of flat borders, faint violet paper instead
   of pure white, much stronger text contrast.
   ------------------------------------------------------------------ */

body[data-theme="white"] {
  --night:   #f4f1fb;
  --chrome:  #ffffff;
  --surface: #ffffff;
  --raise:   #f0ecfa;
  --line:    #d7cfea;
  --line-lo: #e8e2f5;
  --text:  #16121f;
  --dim:   #4a4260;
  --faint: #7a6f92;
  --accent:  #16121f;
  --accent2: #2c2738;
}

body[data-theme="white"] { background: #f4f1fb; }

body[data-theme="white"] #topbar {
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid #e2dbf1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}
body[data-theme="white"] .bar-host { color: #2c2340; }
body[data-theme="white"] .bar-host:hover { background: #f3effc; border-color: #ded5f0; }
body[data-theme="white"] #bar-clock { color: #16121f; }

body[data-theme="white"] .win:nth-of-type(odd),
body[data-theme="white"] .win:nth-of-type(even) {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
  border: 1px solid #ddd5ee;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 2px 4px rgba(46, 24, 84, .06),
    0 14px 38px rgba(46, 24, 84, .12);
}
body[data-theme="white"] .win.focused {
  border-color: #b9a5e6;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 0 0 3px rgba(22, 18, 31, .1),
    0 18px 46px rgba(46, 24, 84, .16);
}

body[data-theme="white"] .win:nth-of-type(odd) .win-bar,
body[data-theme="white"] .win:nth-of-type(even) .win-bar {
  background: linear-gradient(180deg, #fdfcff 0%, #f4f0fc 100%);
  border-bottom: 1px solid #e6def4;
}
body[data-theme="white"] .win.focused .win-bar {
  background: linear-gradient(180deg, #ffffff 0%, #f0eafb 100%);
}
body[data-theme="white"] .win-title { color: #7a6f92; }
body[data-theme="white"] .win.focused .win-title { color: #3a2f52; text-shadow: none; animation: none; }

body[data-theme="white"] .win-body { background: none; }
body[data-theme="white"] .win-body p { color: #453b5c; }

body[data-theme="white"] .project-card,
body[data-theme="white"] .gb-entry,
body[data-theme="white"] .svc { background: #ffffff; border-color: #e6dff4; }
body[data-theme="white"] .project-card:hover {
  background: #ffffff;
  border-color: #b9a5e6;
  box-shadow: -3px 0 0 #2c2738, 0 6px 18px rgba(46, 24, 84, .1);
}
body[data-theme="white"] .mu-track:hover { background: #f3effc; }
body[data-theme="white"] .mu-track:nth-child(even):not(:hover) { background: #faf8ff; }
body[data-theme="white"] .mu-track[aria-current="true"] { background: #f0eafb; }

body[data-theme="white"] .link:hover { background: #f3effc; }
body[data-theme="white"] .link-icon { color: #6f6488; }
body[data-theme="white"] .link:hover .link-icon { color: #16121f; }

body[data-theme="white"] .cover,
body[data-theme="white"] .pfp { background-color: #f3effc; border-color: #e0d8f1; color: #6f6488; }

body[data-theme="white"] #about-name { color: #16121f; }
body[data-theme="white"] #about-name:hover { color: #16121f; }
body[data-theme="white"] #motd {
  background: linear-gradient(90deg, rgba(22, 18, 31, .1), rgba(22, 18, 31, .02));
  border-left-color: #2c2738;
}
body[data-theme="white"] #motd-text { color: #3d3453; }

body[data-theme="white"] #mu-search,
body[data-theme="white"] #gb-name,
body[data-theme="white"] #gb-msg {
  background: #ffffff;
  border-color: #e2dbf1;
  color: #16121f;
}
body[data-theme="white"] #mu-search::placeholder,
body[data-theme="white"] #gb-name::placeholder,
body[data-theme="white"] #gb-msg::placeholder { color: #8d84a3; }
body[data-theme="white"] .win-body::-webkit-scrollbar-thumb { background: #d5cbe8; background-clip: content-box; }

body[data-theme="white"] .btn { background: #ffffff; border-color: #ddd5ee; color: #3a2f52; }
body[data-theme="white"] .btn:hover { border-color: #2c2738; color: #16121f; }
body[data-theme="white"] .btn-primary {
  background: linear-gradient(180deg, #2c2738, #16121f);
  border-color: #16121f;
  color: #ffffff;
}
body[data-theme="white"] .btn-primary:hover { background: linear-gradient(180deg, #3a3448, #2c2738); color: #ffffff; }

body[data-theme="white"] .ctx-item { color: #4a4260; }
body[data-theme="white"] .ctx-item:hover { background: #f0eafb; color: #16121f; }
body[data-theme="white"] #ctxmenu {
  background: rgba(255, 255, 255, .97);
  border-color: #ddd5ee;
  box-shadow: 0 18px 44px rgba(46, 24, 84, .18);
}

body[data-theme="white"] .dash-row { border-bottom-color: #ece6f7; }
body[data-theme="white"] .dash-v { color: #16121f; }
body[data-theme="white"] .dash-v.accent { color: #16121f; }

body[data-theme="white"] #boot { background: #fbfaff; color: #16121f; }
body[data-theme="white"] #boot::after {
  background: repeating-linear-gradient(0deg, rgba(22, 18, 31, .05) 0 1px, transparent 1px 3px);
  opacity: .5;
}
body[data-theme="white"] #wallpaper { background: #f4f1fb; }
body[data-theme="white"] #wallpaper::after {
  background: radial-gradient(circle at 50% 0%, rgba(22, 18, 31, .1), transparent 65%);
}
/* ------------------------------------------------------------------
   no purple outside the star theme.
   white and black are both fully greyscale: titlebars, panels, buttons,
   glows, ripples, spotlight, boot sweep. violet values overridden.
   ------------------------------------------------------------------ */

body[data-theme="white"] {
  --accent:  #16121f;
  --accent2: #45405a;
}

/* white: neutral titlebars and panels, no violet cast */
body[data-theme="white"] .win:nth-of-type(odd),
body[data-theme="white"] .win:nth-of-type(even) {
  background: linear-gradient(180deg, #ffffff 0%, #faf9fc 100%);
  border-color: #dcd8e4;
}
body[data-theme="white"] .win:nth-of-type(odd) .win-bar,
body[data-theme="white"] .win:nth-of-type(even) .win-bar {
  background: linear-gradient(180deg, #fcfbfd 0%, #f1eff4 100%);
  border-bottom-color: #e4e1ea;
}
body[data-theme="white"] .win.focused .win-bar {
  background: linear-gradient(180deg, #ffffff 0%, #eceaf1 100%);
}
body[data-theme="white"] .win.focused {
  border-color: #9c96a8;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 0 0 3px rgba(22, 18, 31, .08),
    0 18px 46px rgba(22, 18, 31, .16);
}
body[data-theme="white"] .win-title { color: #6f6a7d; }
body[data-theme="white"] .win.focused .win-title { color: #16121f; }

body[data-theme="white"] #topbar { border-bottom-color: #e2dfe8; }
body[data-theme="white"] .bar-host { color: #16121f; }
body[data-theme="white"] .bar-host:hover { background: #f1eff4; border-color: #ded9e6; }
body[data-theme="white"] .bar-host[aria-expanded="true"] { background: #f1eff4; border-color: #16121f; }

body[data-theme="white"] .project-card,
body[data-theme="white"] .gb-entry,
body[data-theme="white"] .svc { border-color: #e4e1ea; }
body[data-theme="white"] .project-card:hover {
  border-color: #9c96a8;
  box-shadow: -3px 0 0 #16121f, 0 6px 18px rgba(22, 18, 31, .1);
}
body[data-theme="white"] .mu-track:hover { background: #f1eff4; }
body[data-theme="white"] .mu-track:nth-child(even):not(:hover) { background: #faf9fc; }
body[data-theme="white"] .mu-track[aria-current="true"] { background: #efedf3; }
body[data-theme="white"] .mu-track[aria-current="true"] .mu-track-idx::after { color: #16121f; }

body[data-theme="white"] .link:hover { background: #f1eff4; }
body[data-theme="white"] .link-icon { color: #6f6a7d; }
body[data-theme="white"] .link:hover .link-icon { color: #16121f; }

body[data-theme="white"] .cover,
body[data-theme="white"] .pfp { background-color: #f1eff4; border-color: #e0dde6; color: #6f6a7d; }

body[data-theme="white"] #about-name { color: #16121f; }
body[data-theme="white"] #about-name:hover { color: #16121f; text-shadow: 0 0 16px rgba(22, 18, 31, .25); }
body[data-theme="white"] #motd {
  background: rgba(22, 18, 31, .04);
  border-left-color: #16121f;
}
body[data-theme="white"] #motd-label { color: #45405a; }
body[data-theme="white"] #motd-text { color: #2c2738; }

body[data-theme="white"] #mu-search,
body[data-theme="white"] #gb-name,
body[data-theme="white"] #gb-msg { border-color: #e2dfe8; }

body[data-theme="white"] .btn { background: #ffffff; border-color: #dcd8e4; color: #2c2738; }
body[data-theme="white"] .btn:hover { border-color: #16121f; color: #16121f; }
body[data-theme="white"] .btn-primary {
  background: #16121f;
  border-color: #16121f;
  color: #ffffff;
}
body[data-theme="white"] .btn-primary:hover { background: #2c2738; color: #ffffff; }

body[data-theme="white"] .ctx-item { color: #45405a; }
body[data-theme="white"] .ctx-item:hover { background: #f1eff4; color: #16121f; }
body[data-theme="white"] #ctxmenu { border-color: #dcd8e4; box-shadow: 0 18px 44px rgba(22, 18, 31, .18); }
body[data-theme="white"] .ctx-item:hover kbd { color: #6f6a7d; }

body[data-theme="white"] .ripple { background: radial-gradient(circle, rgba(22, 18, 31, .3), rgba(22, 18, 31, 0) 70%); }
body[data-theme="white"] .project-card::after {
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(22, 18, 31, .07), transparent 70%);
}
body[data-theme="white"] .dot[data-status="online"] {
  background: #16121f;
  border-color: #16121f;
  box-shadow: 0 0 6px rgba(22, 18, 31, .5);
}
body[data-theme="white"] .dot[data-status="online"]::after { border-color: rgba(22, 18, 31, .35); }

body[data-theme="white"] #boot::before {
  background: linear-gradient(180deg, transparent, rgba(22, 18, 31, .05), transparent);
}
body[data-theme="white"] #boot::after {
  background: repeating-linear-gradient(0deg, rgba(22, 18, 31, .04) 0 1px, transparent 1px 3px);
}
body[data-theme="white"] #wallpaper::after {
  background: radial-gradient(circle at 50% 0%, rgba(22, 18, 31, .06), transparent 65%);
}
body[data-theme="white"] .win-body::-webkit-scrollbar-thumb { background: #d3cfdc; background-clip: content-box; }
body[data-theme="white"] .tag { background: #f1eff4; border-color: #e2dfe8; color: #45405a; }

/* black: no violet anywhere */
body[data-theme="black"] #topbar { border-bottom-color: #171717; }
body[data-theme="black"] .project-card:hover { box-shadow: -3px 0 0 rgba(255, 255, 255, .3); }
body[data-theme="black"] .dot[data-status="online"] {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 7px rgba(255, 255, 255, .55);
}
body[data-theme="black"] #about-name:hover { color: #ffffff; text-shadow: 0 0 16px rgba(255, 255, 255, .3); }
body[data-theme="black"] .btn-primary {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .32);
  color: #ffffff;
}
body[data-theme="black"] .mu-track[aria-current="true"] { background: #141414; }
/* star keeps its violet glows; the other two themes stay neutral */
body[data-theme="purple"] .ripple {
  background: radial-gradient(circle, rgba(192, 132, 252, .5), rgba(192, 132, 252, 0) 70%);
}
body[data-theme="purple"] .project-card::after {
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              rgba(192, 132, 252, .16), transparent 70%);
}
body[data-theme="purple"] .project-card:hover {
  box-shadow: -3px 0 0 rgba(192, 132, 252, .35), 0 6px 18px rgba(0, 0, 0, .4);
}
body[data-theme="purple"] .dot[data-status="online"] {
  background: #c084fc;
  border-color: #c084fc;
  box-shadow: 0 0 7px rgba(192, 132, 252, .8);
}
body[data-theme="purple"] .dot[data-status="online"]::after {
  border-color: rgba(192, 132, 252, .5);
}
body[data-theme="purple"] #about-name:hover {
  color: #c084fc;
  text-shadow: 0 0 18px rgba(192, 132, 252, .55);
}
body[data-theme="purple"] #boot::before {
  background: linear-gradient(180deg, transparent, rgba(168, 85, 247, .12), transparent);
}
body[data-theme="purple"] #boot::after {
  background: repeating-linear-gradient(0deg, rgba(168, 85, 247, .055) 0 1px, transparent 1px 3px);
}
body[data-theme="purple"] #mu-play {
  background: rgba(192, 132, 252, .16);
  color: #c084fc;
}
body[data-theme="purple"] #mu-play:hover { background: rgba(192, 132, 252, .3); }
body[data-theme="purple"] .btn-primary {
  background: rgba(192, 132, 252, .14);
  border-color: rgba(192, 132, 252, .4);
  color: #e6c6ff;
}
body[data-theme="purple"] .btn-primary:hover { background: rgba(192, 132, 252, .22); }
body[data-theme="purple"] #wallpaper::after {
  background: radial-gradient(circle at 50% 0%, rgba(120, 40, 190, .18), transparent 62%);
}
body[data-theme="purple"] #topbar { border-bottom-color: rgba(122, 58, 190, .4); }
body[data-theme="purple"] .win:nth-of-type(even) {
  background: rgba(23, 10, 40, .9);
  border-color: #4a2770;
}
body[data-theme="purple"] .win:nth-of-type(even) .win-bar { background: rgba(36, 16, 61, .8); }
body[data-theme="purple"] .win:nth-of-type(even) .win-body {
  background: linear-gradient(180deg, rgba(74, 31, 122, .18), transparent 130px);
}
/* ------------------------------------------------------------------
   the gate: after the console finishes, a gradient overlay asks for
   the click that actually enters the site.
   ------------------------------------------------------------------ */

#gate {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
  background:
    radial-gradient(circle at 50% 42%, rgba(168, 85, 247, .4), transparent 55%),
    radial-gradient(circle at 16% 86%, rgba(120, 40, 190, .3), transparent 52%),
    linear-gradient(160deg, #06030b 0%, #190a2b 45%, #040207 100%);
  background-size: 100% 100%, 100% 100%, 220% 220%;
  animation: gate-drift 16s ease-in-out infinite alternate;
}

@keyframes gate-drift {
  from { background-position: 50% 42%, 16% 86%, 0% 0%; }
  to   { background-position: 50% 52%, 32% 68%, 100% 100%; }
}

#boot.gate #gate { opacity: 1; pointer-events: auto; }

#gate-inner {
  text-align: center;
  padding: 24px;
  transform: translateY(8px);
  transition: transform .6s cubic-bezier(.2, .9, .3, 1);
}
#boot.gate #gate-inner { transform: none; }

#gate-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: rgba(226, 196, 255, .5);
}

#gate-title {
  margin-top: 16px;
  font-family: var(--ui);
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #ffffff;
  text-shadow: 0 0 42px rgba(192, 132, 252, .55);
}
#boot.gate #gate-title { animation: gate-breathe 2.8s ease-in-out infinite; }

@keyframes gate-breathe {
  0%, 100% { opacity: .78; transform: scale(.995) }
  50%      { opacity: 1; transform: scale(1) }
}

#gate-line {
  width: 132px;
  height: 1px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, rgba(214, 168, 255, .95), transparent);
  animation: gate-line 2.6s ease-in-out infinite;
}

@keyframes gate-line {
  0%, 100% { transform: scaleX(.35); opacity: .35 }
  50%      { transform: scaleX(1); opacity: 1 }
}

#gate-sub {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(226, 196, 255, .42);
}

/* the console is still there, just pushed back */
#boot.gate #boot-log { opacity: .18; }
#boot.gate #boot-enter { opacity: 0; }

/* white theme: paper gradient, no hue */
body[data-theme="white"] #gate {
  background:
    radial-gradient(circle at 50% 42%, rgba(22, 18, 31, .12), transparent 55%),
    radial-gradient(circle at 16% 86%, rgba(22, 18, 31, .08), transparent 52%),
    linear-gradient(160deg, #ffffff 0%, #efeef4 45%, #ffffff 100%);
}
body[data-theme="white"] #gate-title { color: #16121f; text-shadow: 0 0 32px rgba(22, 18, 31, .18); }
body[data-theme="white"] #gate-kicker,
body[data-theme="white"] #gate-sub { color: rgba(22, 18, 31, .45); }
body[data-theme="white"] #gate-line { background: linear-gradient(90deg, transparent, rgba(22, 18, 31, .6), transparent); }

/* black theme: ink, white glow */
body[data-theme="black"] #gate {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .1), transparent 55%),
    linear-gradient(160deg, #000000 0%, #0a0a0a 45%, #000000 100%);
}
body[data-theme="black"] #gate-title { color: #ffffff; text-shadow: 0 0 34px rgba(255, 255, 255, .3); }
body[data-theme="black"] #gate-line { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); }