/* mid-2010s Steam client */
:root {
  --top: #171a21;
  --bg: #1b2838;
  --bg-dark: #16202d;
  --side: #121a24;
  --panel: rgba(0, 0, 0, 0.25);
  --line: rgba(255, 255, 255, 0.06);
  --text: #c6d4df;
  --dim: #8f98a0;
  --blue: #66c0f4;
  --tab: #b8b6b4;
  --tab-active: #1a9fff;
  --online: #57cbde;
  --ingame: #90ba3c;
  --green-1: #75b022;
  --green-2: #588a1b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 13px/1.4 Arial, Helvetica, sans-serif;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: #fff; }
button { font: inherit; }

/* ---------- app frame ---------- */
.app {
  position: relative;
  display: grid;
  grid-template-rows: 30px 56px 28px 1fr 42px;
  height: 100vh;
  height: 100dvh;
}

/* picked background, dimmed like a Steam profile background */
.bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: center / cover no-repeat;
}
.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(23, 26, 33, 0.55), rgba(27, 40, 56, 0.88) 60%, rgba(27, 40, 56, 0.96));
}
.app > *:not(.bg-layer) { position: relative; z-index: 1; }
.app > .friends, .app > .menu-pop, .app > .toasts { position: absolute; z-index: 20; }

/* ---------- title bar ---------- */
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 8px;
  background: var(--top);
}
.menubar { display: flex; align-items: center; gap: 2px; }
.logo {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, #c6d4df 19% 30%, #2a475e 31%);
}
.menu-btn {
  padding: 4px 8px;
  color: var(--tab);
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-btn:hover, .menu-btn.open { color: #fff; background: #3d4450; }

.account { display: flex; align-items: center; height: 100%; }
.acct {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px 0 2px;
  margin-right: 8px;
  color: var(--tab);
  background: rgba(255, 255, 255, 0.05);
}
.acct:hover { color: #fff; background: #3d4450; }
.acct img { display: block; border: 1px solid var(--online); object-fit: cover; }
.winbtns { display: flex; height: 100%; }
.winbtns span {
  display: grid;
  place-items: center;
  width: 34px;
  color: var(--dim);
  font-size: 12px;
}

/* ---------- nav ---------- */
.navbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  background: var(--top);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.navarrows { display: flex; gap: 2px; }
.navarrows button {
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 22px;
  line-height: 22px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.04);
  border: 0;
  cursor: pointer;
}
.navarrows button:hover { color: #fff; background: #3d4450; }
.tabs {
  display: flex;
  gap: 26px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab {
  flex: none;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--tab);
  white-space: nowrap;
}
.tab:hover { color: #fff; }
.tab.active { color: var(--tab-active); }

.subnav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px 0 88px;
  font-size: 11px;
  letter-spacing: 0.08em;
  background: rgba(23, 26, 33, 0.85);
  border-bottom: 1px solid var(--line);
}
.subnav a, .subnav button {
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
  background: none;
  border: 0;
  cursor: pointer;
}
.subnav a:hover, .subnav button:hover { color: #fff; }
.subnav .on { color: var(--text); }

/* ---------- content ---------- */
.content { overflow: auto; min-height: 0; }
.page { max-width: 980px; margin: 0 auto; padding: 22px 16px 40px; }
.section-h {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0.06em;
  color: #fff;
}
.panel {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--panel);
}
.panel h4, .side h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}
.panel p { margin: 0 0 8px; }
.panel p:last-child { margin-bottom: 0; }
.dim { color: var(--dim); }

/* buttons */
.btn-green, .btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 32px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-green {
  font-size: 15px;
  color: #d2efa9;
  background: linear-gradient(to bottom, var(--green-1) 5%, var(--green-2) 95%);
}
.btn-green:hover { color: #fff; background: linear-gradient(to bottom, #8ed629 5%, #6aa621 95%); }
.btn-blue {
  height: 30px;
  font-size: 13px;
  color: #67c1f5;
  background: rgba(103, 193, 245, 0.2);
}
.btn-blue:hover { color: #fff; background: linear-gradient(135deg, #66c0f4, #417a9b); }

.tag {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 2px 7px;
  font-size: 11px;
  color: var(--blue);
  background: rgba(103, 193, 245, 0.2);
  border-radius: 2px;
}

/* ---------- store ---------- */
.carousel {
  display: grid;
  grid-template-columns: 2fr 1fr;
  min-height: 300px;
  background: var(--bg-dark);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}
.cap-main {
  display: block;
  min-height: 300px;
  background-size: cover;
  background-position: center;
}
.cap-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1));
}
.cap-info h3 { margin: 0; font-size: 22px; font-weight: normal; color: #fff; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.shots i { display: block; aspect-ratio: 16 / 9; background-size: cover; background-position: center; opacity: 0.7; }
.cap-status { font-size: 15px; color: #fff; }
.cap-price { margin-top: auto; color: #fff; }
.carousel-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 26px;
}
.carousel-ctrl .dot {
  width: 15px;
  height: 9px;
  padding: 0;
  background: hsla(202, 60%, 100%, 0.2);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.carousel-ctrl .dot.on { background: hsla(202, 60%, 100%, 0.5); }
.carousel-ctrl .arrow {
  padding: 0 10px;
  font-size: 26px;
  color: var(--dim);
  background: none;
  border: 0;
  cursor: pointer;
}
.carousel-ctrl .arrow:hover { color: #fff; }

.store-cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.about-intro { display: flex; gap: 12px; }
.about-intro img { flex: none; width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--online); }
.row-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  padding: 4px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
}
.row-item:hover { color: #fff; background: rgba(103, 193, 245, 0.15); }
.row-cap { flex: none; width: 120px; height: 45px; background-size: cover; background-position: center; }
.row-title { flex: 1; min-width: 0; }
.row-title b { display: block; font-weight: normal; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title small { color: var(--dim); }
.row-price { padding: 0 8px; color: #beee11; }

/* ---------- library ---------- */
.library { display: grid; grid-template-columns: 240px 1fr; height: 100%; }
.lib-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(18, 26, 36, 0.92);
  border-right: 1px solid var(--line);
}
.lib-search {
  margin: 10px;
  height: 26px;
  padding: 0 8px;
  color: var(--text);
  background: #313843;
  border: 1px solid #000;
  border-radius: 2px;
  outline: none;
}
.lib-search:focus { border-color: var(--blue); }
.lib-head {
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.lib-list { margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.lib-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 3px 12px;
  color: var(--text);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.lib-item:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.lib-item.active { color: #fff; background: #3e4e64; }
.lib-icon { flex: none; width: 16px; height: 16px; background-size: cover; background-position: center; }

.lib-detail { position: relative; overflow-y: auto; min-height: 0; }
.lib-hero {
  position: absolute;
  inset: 0 0 auto 0;
  height: 340px;
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  opacity: 0.45;
}
.lib-inner { position: relative; padding: 26px 24px 40px; max-width: 980px; }
.lib-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.lib-title .lib-icon { width: 32px; height: 32px; }
.lib-title h1 { margin: 0; font-size: 32px; font-weight: normal; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.playbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 20px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.35);
}
.playbar .btn-green { height: 36px; padding: 0 26px; font-size: 18px; }
.stat b { display: block; font-size: 11px; font-weight: normal; letter-spacing: 0.08em; color: var(--dim); }
.stat span { color: var(--text); }
.lib-cols { display: grid; grid-template-columns: 1fr 200px; gap: 16px; }
.side a { display: block; padding: 2px 0; }
.side h4 { margin-top: 16px; }
.side h4:first-child { margin-top: 0; }

.worklog { margin: 0; padding: 0; list-style: none; }
.worklog li {
  display: flex;
  gap: 12px;
  padding: 5px 6px;
  border-bottom: 1px solid var(--line);
}
.worklog li:last-child { border-bottom: 0; }
.log-date { flex: none; width: 80px; color: var(--dim); }

.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.shot-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot-grid a:hover img { outline: 1px solid var(--tab-active); }

/* ---------- community ---------- */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
}
.link-card:hover { color: #fff; background: rgba(103, 193, 245, 0.15); }
.letter {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  font-size: 18px;
  color: #fff;
  border: 1px solid var(--online);
}
img.letter { object-fit: cover; background: #000; }
.link-card b { display: block; font-weight: normal; color: var(--online); }
.link-card small { color: var(--dim); }

/* ---------- profile ---------- */
.prof-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  margin-bottom: 14px;
  background: rgba(0, 0, 0, 0.35);
}
.prof-avatar {
  flex: none;
  padding: 3px;
  background: linear-gradient(to bottom, #53a4c4, #45778e);
}
.prof-avatar img { display: block; width: 166px; height: 166px; object-fit: cover; }
.prof-name { flex: 1; min-width: 0; }
.prof-name h1 { margin: 0 0 4px; font-size: 24px; font-weight: normal; color: #fff; }
.prof-name .real { margin: 0 0 12px; color: var(--dim); }
.prof-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.level { display: flex; align-items: center; gap: 8px; font-size: 18px; color: #fff; }
.lvl {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 15px;
  border: 2px solid #c02942;
  border-radius: 50%;
}
.prof-body { display: grid; grid-template-columns: 1fr 260px; gap: 14px; }
.online-label { margin-bottom: 14px; font-size: 18px; color: var(--online); }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { padding: 5px 6px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.specs th { width: 32%; font-weight: normal; color: var(--dim); white-space: nowrap; }
.badges { display: flex; gap: 6px; }
.badges i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-style: normal;
  font-size: 20px;
  color: #fff;
  border-radius: 50%;
}

/* ---------- console ---------- */
.console-page { display: flex; flex-direction: column; height: 100%; padding: 12px 16px; }
.console-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  font: 12px/1.4 "Courier New", monospace;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.45);
}
.console-log .cmd { color: #fff; }
.console-log .ok { color: var(--ingame); }
.console-log .err { color: #c02942; }
.console-row { display: flex; gap: 6px; margin-top: 8px; }
.console-row input { flex: 1; min-width: 0; }
.input {
  height: 30px;
  padding: 0 8px;
  color: var(--text);
  background: #313843;
  border: 1px solid #000;
  border-radius: 2px;
  outline: none;
}
.input:focus { border-color: var(--blue); }

/* ---------- popups ---------- */
.menu-pop {
  min-width: 190px;
  padding: 4px 0;
  background: #3d4450;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.menu-pop button {
  display: block;
  width: 100%;
  padding: 5px 16px;
  color: #dcdedf;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-pop button:hover { color: #000; background: #dcdedf; }
.menu-pop hr { margin: 4px 0; border: 0; border-top: 1px solid rgba(0, 0, 0, 0.35); }

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.7);
}
.modal {
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top left, rgba(74, 81, 92, 0.4), transparent 60%), #25282e;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 6px;
  font-size: 20px;
  color: #fff;
}
.modal-head button { font-size: 18px; color: var(--dim); background: none; border: 0; cursor: pointer; }
.modal-head button:hover { color: #fff; }
.modal-body { padding: 8px 16px 16px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 16px 16px; }
.sysinfo {
  margin: 0;
  padding: 10px;
  font: 12px/1.45 "Courier New", monospace;
  white-space: pre-wrap;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
}

.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bg-pick {
  padding: 0;
  color: var(--text);
  text-align: left;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  cursor: pointer;
}
.bg-pick:hover { border-color: rgba(103, 193, 245, 0.5); }
.bg-pick.selected { border-color: var(--tab-active); }
.bg-pick .thumb { display: block; aspect-ratio: 16 / 9; background: var(--bg) center / cover no-repeat; }
.bg-pick span { display: block; padding: 4px 6px; font-size: 12px; }

/* friends list */
.friends {
  right: 10px;
  bottom: 50px;
  width: 260px;
  max-height: min(420px, calc(100dvh - 180px));
  overflow-y: auto;
  background: #1e2329;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.8);
}
.fr-me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: linear-gradient(to bottom, #2a3039, #1e2329);
}
.fr-me img { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--online); }
.fr-me b { display: block; font-weight: normal; color: var(--online); }
.fr-me small { color: var(--online); }
.fr-group { padding: 8px 10px 4px; font-size: 11px; letter-spacing: 0.08em; color: var(--dim); }
.fr-item { display: flex; align-items: center; gap: 8px; padding: 4px 10px; color: var(--text); }
.fr-item:hover { background: rgba(255, 255, 255, 0.05); }
.fr-item .letter { width: 32px; height: 32px; font-size: 14px; }
.fr-item b { display: block; font-weight: normal; color: var(--online); }
.fr-item small { color: var(--dim); }
.fr-item.ingame .letter { border-color: var(--ingame); }
.fr-item.ingame b, .fr-item.ingame small { color: var(--ingame); }

/* toasts */
.toasts {
  right: 10px;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 260px;
  padding: 10px;
  background: linear-gradient(to bottom, #2c3440, #1b2129);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  animation: toast-in 0.3s ease-out;
  transition: opacity 0.4s, transform 0.4s;
}
.toast.out { opacity: 0; transform: translateY(10px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px); } }
.toast img, .toast .ach {
  flex: none;
  width: 40px;
  height: 40px;
  object-fit: cover;
}
.toast .ach { display: grid; place-items: center; font-size: 20px; color: #fff; background: #2a475e; }
.toast b { display: block; font-weight: normal; color: #fff; }
.toast small { color: var(--dim); }

/* ---------- bottom bar ---------- */
.bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  background: var(--top);
  border-top: 1px solid var(--line);
}
.bb-btn {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  color: var(--tab);
  background: rgba(255, 255, 255, 0.04);
  border: 0;
  cursor: pointer;
}
.bb-btn:hover { color: #fff; background: #3d4450; }
.bb-btn small { margin-left: 6px; color: var(--online); }
.bb-center { display: flex; flex-direction: column; align-items: center; font-size: 11px; letter-spacing: 0.08em; color: var(--dim); }
.bb-center small { font-size: 10px; letter-spacing: 0; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .menubar .menu-btn:not([data-menu="view"]):not([data-menu="help"]) { display: none; }
  .winbtns { display: none; }
  .navbar { gap: 10px; padding: 0 10px; }
  .tabs { gap: 16px; }
  .tab { font-size: 16px; }
  .subnav { padding-left: 16px; }
  .carousel, .store-cols, .lib-cols, .prof-body { grid-template-columns: 1fr; }
  .cap-main { min-height: 180px; }
  .library { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .lib-side { max-height: 160px; border-right: 0; border-bottom: 1px solid var(--line); }
  .lib-inner { padding: 18px 16px 30px; }
  .lib-title h1 { font-size: 24px; }
  .prof-header { flex-wrap: wrap; }
  .prof-avatar img { width: 96px; height: 96px; }
  .prof-right { align-items: flex-start; }
  .bb-center { display: none; }
  .bb-btn { padding: 0 8px; font-size: 11px; }
}

/* =====================================================================
   2004 skin: old green Steam (VGUI). Toggle in View > Skin.
   ===================================================================== */
body.old {
  --top: #4c5844;
  --bg: #3e4637;
  --bg-dark: #3e4637;
  --side: #3e4637;
  --panel: #4c5844;
  --line: #5a6a50;
  --text: #d8ded3;
  --dim: #a0aa95;
  --blue: #c4b550;
  --tab: #d8ded3;
  --tab-active: #c4b550;
  --online: #a4c45a;
  --ingame: #c4b550;
  --hi: #889180;
  --lo: #292e23;
  --sel: #958831;
  font: 12px/1.4 Tahoma, Verdana, sans-serif;
  -webkit-font-smoothing: none;
}
body.old .app { grid-template-rows: 24px 40px 24px 1fr 34px; }
body.old .bg-layer::after { background: rgba(62, 70, 55, 0.88); }

/* raised bevel */
body.old .acct,
body.old .navarrows button,
body.old .tab,
body.old .panel,
body.old .btn-green,
body.old .btn-blue,
body.old .playbar,
body.old .prof-header,
body.old .link-card,
body.old .letter,
body.old .bg-pick,
body.old .menu-pop,
body.old .modal,
body.old .friends,
body.old .toast,
body.old .bb-btn,
body.old .carousel {
  border: 1px solid;
  border-color: var(--hi) var(--lo) var(--lo) var(--hi);
  border-radius: 0;
  box-shadow: none;
}
/* sunken bevel */
body.old .lib-search,
body.old .input,
body.old .console-log,
body.old .sysinfo,
body.old .worklog,
body.old .row-item,
body.old .lib-list,
body.old .specs {
  border: 1px solid;
  border-color: var(--lo) var(--hi) var(--hi) var(--lo);
  border-radius: 0;
}

body.old .titlebar { border-bottom: 1px solid var(--lo); }
body.old .menu-btn { padding: 2px 8px; color: var(--text); }
body.old .menu-btn:hover,
body.old .menu-btn.open { color: #fff; background: var(--sel); }
body.old .acct { height: 18px; color: var(--text); background: var(--panel); }
body.old .acct:hover { background: var(--panel); color: #fff; }
body.old .winbtns span { width: 22px; color: var(--text); }

body.old .navbar { gap: 12px; padding: 0 8px; box-shadow: none; border-bottom: 1px solid var(--lo); }
body.old .navarrows button { width: 22px; height: 22px; font-size: 16px; line-height: 18px; color: var(--text); background: var(--panel); }
body.old .tabs { gap: 2px; align-self: flex-end; }
body.old .tab {
  padding: 4px 16px 5px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0;
  color: var(--dim);
  background: var(--bg);
  border-bottom: 0;
}
body.old .tab:hover { color: #fff; }
body.old .tab.active { color: var(--tab-active); background: var(--panel); padding-bottom: 6px; }

body.old .subnav { padding-left: 8px; background: var(--panel); border-bottom: 1px solid var(--lo); }
body.old .subnav a, body.old .subnav button, body.old .subnav span { font-size: 11px; letter-spacing: 0; }

body.old .section-h { font-size: 12px; font-weight: bold; letter-spacing: 0; color: var(--tab-active); }
body.old .panel h4, body.old .side h4 { font-weight: bold; letter-spacing: 0; color: var(--tab-active); text-transform: none; font-size: 12px; }

body.old .btn-green, body.old .btn-blue {
  height: 24px;
  padding: 0 14px;
  font-size: 12px;
  color: var(--text);
  background: var(--panel);
}
body.old .btn-green:hover, body.old .btn-blue:hover { color: #fff; background: var(--panel); }
body.old .btn-green:active, body.old .btn-blue:active,
body.old .bb-btn:active, body.old .navarrows button:active {
  border-color: var(--lo) var(--hi) var(--hi) var(--lo);
}
body.old .playbar .btn-green { height: 30px; font-size: 14px; font-weight: bold; color: var(--tab-active); }

body.old .tag { color: var(--tab-active); background: var(--bg); border: 1px solid var(--lo); border-radius: 0; }

body.old .carousel { background: var(--bg); }
body.old .cap-info { background: none; }
body.old .cap-info h3, body.old .cap-status, body.old .cap-price { color: var(--text); }
body.old .cap-info h3 { font-weight: bold; font-size: 18px; }
body.old .carousel-ctrl .dot { background: var(--hi); border-radius: 0; }
body.old .carousel-ctrl .dot.on { background: var(--tab-active); }

body.old .row-item { background: var(--bg); }
body.old .row-item:hover { color: #fff; background: var(--sel); }
body.old .row-item:hover small { color: #fff; }
body.old .row-price { color: var(--tab-active); }

body.old .lib-side { background: var(--panel); border-right: 1px solid var(--lo); }
body.old .lib-search, body.old .input { color: var(--text); background: var(--bg); }
body.old .lib-list { margin: 0 10px 10px; background: var(--bg); }
body.old .lib-head { font-weight: bold; letter-spacing: 0; color: var(--tab-active); }
body.old .lib-item:hover { background: rgba(255, 255, 255, 0.06); }
body.old .lib-item.active { color: #fff; background: var(--sel); }
body.old .lib-hero { opacity: 0.25; filter: sepia(0.6) hue-rotate(40deg); }
body.old .lib-title h1 { font-size: 24px; font-weight: bold; }
body.old .playbar { background: var(--panel); }

body.old .worklog { background: var(--bg); }
body.old .log-date { color: var(--tab-active); }

body.old .link-card { background: var(--panel); }
body.old .link-card:hover { background: var(--sel); color: #fff; }
body.old .link-card:hover small { color: #fff; }
body.old .letter { color: var(--tab-active); }

body.old .prof-header { background: var(--panel); }
body.old .prof-avatar { background: var(--hi); padding: 2px; }
body.old .prof-name h1 { font-weight: bold; font-size: 20px; }
body.old .lvl { border-color: var(--tab-active); color: var(--tab-active); }
body.old .specs { background: var(--bg); }
body.old .specs th, body.old .specs td { border-bottom-color: var(--line); }
body.old .badges i { border-radius: 0; border: 1px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi); }

body.old .console-log { background: var(--bg); }

body.old .menu-pop { background: var(--panel); }
body.old .menu-pop button { color: var(--text); }
body.old .menu-pop button:hover { color: #fff; background: var(--sel); }
body.old .menu-pop hr { border-top-color: var(--lo); border-bottom: 1px solid var(--hi); }

body.old .modal { background: var(--panel); }
body.old .modal-head { font-size: 12px; font-weight: bold; padding: 6px 8px; }
body.old .modal-body { margin: 0 6px; padding: 10px; background: var(--bg); border: 1px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); }
body.old .modal-foot { padding: 8px 6px; }
body.old .sysinfo { background: var(--bg); font-family: "Lucida Console", "Courier New", monospace; font-size: 11px; }

body.old .bg-pick { background: var(--panel); }
body.old .bg-pick.selected { outline: 2px solid var(--tab-active); }

body.old .friends { background: var(--panel); }
body.old .fr-me { background: var(--bg); border-bottom: 1px solid var(--lo); }
body.old .fr-group { font-weight: bold; letter-spacing: 0; color: var(--tab-active); }
body.old .fr-item:hover { background: var(--sel); }

body.old .toast { background: var(--panel); }
body.old .toast .ach { background: var(--bg); color: var(--tab-active); }

body.old .bottombar { background: var(--panel); border-top: 1px solid var(--hi); }
body.old .bb-btn { height: 24px; color: var(--text); background: var(--panel); }
body.old .bb-btn:hover { background: var(--panel); color: #fff; }
body.old .bb-center { letter-spacing: 0; color: var(--text); }

/* ---------- screenshots gallery + image viewer ---------- */
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.viewer { width: min(980px, 100%); }
.viewer-stage { position: relative; display: grid; place-items: center; }
.viewer-stage img {
  display: block;
  max-width: 100%;
  width: 100%;
  max-height: calc(100dvh - 160px);
  object-fit: contain;
  background: #000;
}
.viewer-nav {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 56px;
  margin-top: -28px;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: 0;
}
.viewer-nav:hover { background: rgba(0, 0, 0, 0.8); }
.viewer-nav.prev { left: 16px; }
.viewer-nav.next { right: 16px; }
.viewer .modal-foot { align-items: center; }
.viewer-count { margin-right: auto; }
body.old .viewer-nav { color: var(--text); background: var(--panel); border: 1px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi); }
body.old .viewer-nav:hover { color: #fff; }
body.old .viewer-stage img { border: 1px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); }

/* hidden thanks image */
.thanks-img { display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* Windows XP cursors (from windows-xp-1.zip, converted to PNG): arrow everywhere, hand on links/buttons */
html, body, .app, .app * {
  cursor: url("cursors/arrow.png") 10 10, default;
}
a, button, .bg-pick, .lib-item, .tab {
  cursor: url("cursors/hand.png") 10 10, pointer !important;
}
input { cursor: text !important; }

/* ---------- cool people (88x31 buttons) ---------- */
.cool-head { margin-top: 26px; }
.cool-grid { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cool-item { display: flex; align-items: center; gap: 8px; }
.cool-btn, .cool-btn img { display: block; width: 88px; height: 31px; }
/* text button for people without an 88x31 image */
.cool-btn span {
  display: grid;
  place-items: center;
  height: 100%;
  overflow: hidden;
  font: bold 11px Tahoma, Verdana, sans-serif;
  color: var(--text);
  background: var(--panel, rgba(0, 0, 0, 0.3));
  border: 1px solid;
  border-color: var(--hi, #889180) var(--lo, #292e23) var(--lo, #292e23) var(--hi, #889180);
}
.cool-btn:hover span { color: #fff; }

/* ---------- guestbook (Steam profile comments) ---------- */
.gb-head { margin-top: 26px; }
.gb-form { margin-bottom: 12px; }
.gb-fields { display: flex; flex-direction: column; gap: 6px; }
.gb-fields .input { width: 100%; font: inherit; }
.gb-fields textarea.input { height: auto; padding: 6px 8px; resize: vertical; }
.gb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gb-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.gb-entry { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.gb-entry .letter { width: 32px; height: 32px; font-size: 14px; }
.gb-body { min-width: 0; }
.gb-name { font-weight: normal; color: var(--online); }
.gb-text { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
body.old .gb-name { color: var(--tab-active); }
textarea { cursor: text !important; }

/* ---------- unfinished side projects shelf ---------- */
.shelf-icon { display: grid; place-items: center; font-size: 11px; color: var(--dim); background: rgba(0, 0, 0, 0.3); }
.lib-title .shelf-icon { font-size: 20px; }
.shelf-intro { margin: -8px 0 16px; color: var(--dim); }
.shelf-proj { margin-bottom: 14px; padding: 10px 12px 12px; background: var(--panel); }
.shelf-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.shelf-top b { font-weight: normal; font-size: 15px; color: #fff; }
.shelf-top a:hover b { text-decoration: underline; }
.shelf-status {
  flex: none;
  margin-left: auto;
  padding: 1px 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0b0a0;
  background: rgba(192, 41, 66, 0.35);
}
.shelf-desc { margin: -4px 0 8px; font-size: 12px; color: var(--dim); }
.shelf-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.shelf-media video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.shelf-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 8px;
  font-size: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  background-size: cover;
  background-position: center;
}
body.old .shelf-proj { border: 1px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi); }
body.old .shelf-media video { border: 1px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); }
body.old .shelf-status { color: #000; background: var(--sel); }
body.old .shelf-icon { color: var(--tab-active); background: var(--bg); }
