@import url("components/windows/widgets/internet-explorer/styles/internet-explorer.css");
@import url("components/windows/apps/terminal/terminal.css");

@font-face {
  font-family: "Fixedsys";
  src: url("assets/fonts/Fixedsys500c.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --win-blue: #0b62b5;
  --win-blue-dark: #08345e;
  --glass-top: rgba(235, 251, 255, 0.74);
  --glass-mid: rgba(120, 185, 225, 0.45);
  --glass-low: rgba(21, 72, 112, 0.70);
  --page-black: #050608;
  --panel-black: #07090d;
  --panel-soft: #0c1218;
  --line: rgba(194, 232, 255, 0.42);
  --title-blue: #0707b6;
  --cyan: #28e5ff;
  --magenta: #ff2d94;
  --green: #39ff56;
  --yellow: #ffe16a;
  --text: #e9edf4;
  --muted: #8f9aa8;
  --taskbar-h: 40px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  overflow: hidden;
  color: var(--text);
  background: #0566ba;
  font-family: "Segoe UI", system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.win7-desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 63%, rgba(255,255,255,.42), transparent 0 8%, transparent 34%),
    radial-gradient(circle at 19% 78%, rgba(255,255,255,.20), transparent 0 12%, transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.10), transparent 34%),
    image-set(
      url("assets/ui/os/windows7-wallpaper.webp") type("image/webp"),
      url("assets/ui/os/windows7-wallpaper.jpg") type("image/jpeg")
    ) center / cover no-repeat,
    linear-gradient(135deg, #10b8e3 0%, #116cca 48%, #06499a 100%);
}

.desktop-icons {
  position: absolute;
  inset: 12px 0 var(--taskbar-h) 0;
  z-index: 2;
  display: block;
  pointer-events: none;
}
.desktop-icon {
  position: absolute;
  left: 14px;
  top: 0;
  width: 78px;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 70px;
  padding: 2px;
  color: white;
  font-size: 12px;
  line-height: 13px;
  text-align: center;
  text-shadow: 0 1px 3px #000, 0 0 2px #000;
  border-radius: 3px;
  user-select: none;
  touch-action: none;
  pointer-events: auto;
}
.desktop-icon:hover, .desktop-icon:focus-visible, .desktop-icon.is-selected {
  background: rgba(160, 220, 255, 0.22);
  outline: 1px solid rgba(230, 250, 255, 0.55);
}
.desktop-icon.is-dragging {
  z-index: 30;
  opacity: .88;
  outline: 1px solid rgba(255,255,255,.78);
  background: rgba(150, 215, 255, .25);
}
.desktop-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: auto;
}
.desktop-icon.is-user img {
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 1px 3px rgba(0,0,0,.75);
}

.ie-window,
.win7-app-window {
  position: absolute;
  left: clamp(120px, 18vw, 360px);
  top: clamp(70px, 11vh, 130px);
  width: clamp(980px, 64vw, 1380px);
  height: clamp(620px, 68vh, 820px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 640px;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(235, 251, 255, 0.95);
  border-radius: 7px 7px 2px 2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.06) 35%, rgba(0,0,0,.18)),
    linear-gradient(180deg, var(--glass-top), var(--glass-mid) 24%, var(--glass-low));
  box-shadow: 0 14px 30px rgba(0,0,0,.34), 0 0 0 1px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.28);
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 64px calc(100% + var(--taskbar-h));
  visibility: visible;
  --minimize-x: -190px;
  --minimize-y: calc(100vh - 155px);
  transition:
    transform 180ms cubic-bezier(.2, .8, .2, 1),
    opacity 140ms ease,
    visibility 0s linear 0s;
}

.ie-window.is-closed,
.ie-window.is-minimized,
.win7-app-window.is-closed,
.win7-app-window.is-minimized {
  display: none;
}

.ie-window.is-minimizing,
.ie-window.is-restoring,
.win7-app-window.is-minimizing,
.win7-app-window.is-restoring {
  pointer-events: none;
}

.ie-window.is-maximized,
.win7-app-window.is-maximized {
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: var(--taskbar-h) !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0;
}

.gothic-card,
.post-card,
.badge-grid,
.guestbook {
  content-visibility: auto;
  contain-intrinsic-size: 1px 360px;
}

.ie-titlebar,
.ie-navbar,
.ie-commandbar,
.ie-tabbar,
.ie-statusbar,
.start-menu {
  contain: layout paint style;
}

.win7-taskbar {
  contain: layout style;
}

:root[data-perf-mode="lite"] *,
:root[data-perf-mode="lite"] *::before,
:root[data-perf-mode="lite"] *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
}

:root[data-perf-mode="lite"] .ie-window,
:root[data-perf-mode="lite"] .win7-app-window,
:root[data-perf-mode="lite"] .win7-taskbar,
:root[data-perf-mode="lite"] .start-menu,
:root[data-perf-mode="lite"] .win7-context-menu,
:root[data-perf-mode="lite"] .win7-gadget-clock {
  transition: none !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.5) !important;
}

:root[data-perf-mode="lite"] img,
:root[data-perf-mode="lite"] .ie-title-icon,
:root[data-perf-mode="lite"] .start-button:hover,
:root[data-perf-mode="lite"] .tray-bolt::before {
  filter: none !important;
}

.doom-window {
  left: clamp(150px, 20vw, 420px);
  top: clamp(88px, 14vh, 150px);
  width: min(920px, 74vw);
  height: min(690px, calc(100vh - var(--taskbar-h) - 120px));
  min-width: 620px;
  min-height: 430px;
  z-index: 8;
}

.doom-window.is-active {
  z-index: 12;
}

.doom-app-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
  padding: 7px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04)),
    rgba(20, 30, 40, .32);
}

.doom-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(205, 128, 92, .07) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 20%, rgba(108, 41, 32, .2), transparent 35%),
    #050304;
  border: 1px solid rgba(35, 8, 10, .95);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.doom-stage canvas,
.doom-stage .emulators-ui {
  width: 100% !important;
  height: 100% !important;
}

.doom-stage > .flex-grow-0,
.doom-stage > .bg-gray-300,
.doom-stage .emulator-keyboard,
.doom-stage .emulators-ui,
.doom-stage .z-50,
.doom-stage button,
.doom-stage [role="button"] {
  display: none !important;
}

.doom-stage .emulator-mouse-overlay {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
}

.doom-stage .emulator-mouse-overlay * {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
}

.doom-stage.is-doom-paused {
  filter: saturate(.72) brightness(.82);
}

.doom-stage.is-doom-paused::after {
  content: "DOOM pausado - click en la ventana para continuar";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: min(360px, calc(100% - 36px));
  padding: 10px 14px;
  color: #f3dcc0;
  font: 13px "Fixedsys", "Lucida Console", Consolas, monospace;
  text-align: center;
  background: rgba(12, 5, 6, .82);
  border: 1px solid rgba(203, 147, 83, .7);
  box-shadow: 0 12px 32px rgba(0,0,0,.36), inset 0 0 0 1px rgba(255,255,255,.06);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.doom-boot {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 22px;
  color: #d9c2aa;
  font-family: "Fixedsys", "Lucida Console", Consolas, monospace;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(9,4,5,.72), rgba(3,2,3,.9)),
    #050304;
}

.doom-boot strong {
  color: #c79a5b;
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: .08em;
}

.doom-boot span {
  color: #b46c7e;
  font-size: 13px;
}

.doom-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 7px 9px 0;
  color: #362413;
  font-size: 12px;
}

.doom-footer button {
  min-width: 86px;
  padding: 3px 10px;
  border: 1px solid rgba(47, 77, 100, .58);
  border-radius: 2px;
  color: #102334;
  background: linear-gradient(#fbfdff, #d6eaf8 48%, #b8d7eb);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}

.doom-footer button:disabled {
  color: #53616b;
  background: linear-gradient(#e7edf2, #c8d5df);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}

.terminal-window {
  left: clamp(130px, 16vw, 330px);
  top: clamp(94px, 15vh, 170px);
  width: min(760px, 66vw);
  height: min(460px, calc(100vh - var(--taskbar-h) - 54px));
  min-width: 560px;
  min-height: 320px;
  z-index: 9;
}

.terminal-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
  padding: 10px;
  color: #bfffe1;
  background:
    radial-gradient(circle at 22% 18%, rgba(48, 255, 156, .12), transparent 34%),
    repeating-linear-gradient(0deg, rgba(180,255,215,.035) 0 1px, transparent 1px 4px),
    #020604;
  border-top: 1px solid rgba(255,255,255,.16);
  font-family: "Fixedsys", "Lucida Console", Consolas, monospace;
}

.terminal-output {
  min-height: 0;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(93, 255, 170, .22);
  background: rgba(0, 0, 0, .38);
  box-shadow: inset 0 0 24px rgba(38, 255, 144, .08);
  scrollbar-color: #39ff56 #020604;
}

.terminal-output p {
  margin: 0 0 8px;
  color: #bfffe1;
  font-size: 14px;
  line-height: 1.45;
}

.terminal-output span,
.terminal-output b {
  color: var(--green);
  font-weight: 400;
}

.terminal-output a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terminal-input-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding-top: 8px;
}

.terminal-input-row label {
  color: var(--green);
  font-size: 14px;
  white-space: nowrap;
}

.terminal-input-row input {
  min-width: 0;
  height: 30px;
  padding: 0 9px;
  color: #d8ffe9;
  background: #010302;
  border: 1px solid rgba(93, 255, 170, .42);
  outline: 0;
  caret-color: var(--green);
  font-family: inherit;
}

.terminal-input-row input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(57, 255, 86, .28), 0 0 16px rgba(57, 255, 86, .16);
}

.ie-resize-handle {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 20;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,.72) 49% 53%, transparent 54%),
    linear-gradient(135deg, transparent 0 64%, rgba(255,255,255,.52) 65% 69%, transparent 70%);
  opacity: .72;
}

.ie-window.is-maximized .ie-resize-handle,
.win7-app-window.is-maximized .ie-resize-handle {
  display: none;
}

.ie-titlebar {
  height: 29px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 9px;
  color: #102334;
  font-size: 12px;
  text-shadow: 0 1px 0 rgba(255,255,255,.75);
  user-select: none;
  cursor: move;
  background:
    linear-gradient(90deg, rgba(255,255,255,.34), transparent 22%, rgba(255,255,255,.16) 72%, transparent),
    linear-gradient(180deg, rgba(226,246,255,.84), rgba(179,219,242,.62) 58%, rgba(113,163,203,.36));
  border-bottom: 1px solid rgba(81,125,156,.55);
}
.ie-title-left { display: flex; align-items: center; min-width: 0; gap: 7px; }
.ie-title-left span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ie-icon-slot {
  width: var(--icon-box, 16px);
  height: var(--icon-box, 16px);
  display: inline-grid;
  place-items: center;
  flex: 0 0 var(--icon-box, 16px);
  line-height: 0;
  overflow: hidden;
}
.ie-icon-slot img {
  width: var(--icon-img, 100%);
  height: var(--icon-img, 100%);
  display: block;
  object-fit: contain;
  object-position: center;
}
.ie-title-icon { --icon-box: 18px; --icon-img: 18px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.ie-control-icon { --icon-box: 18px; --icon-img: 14px; margin: auto; }
.ie-round-icon { --icon-box: 22px; --icon-img: 20px; margin: auto; }
.ie-tiny-icon { --icon-box: 12px; --icon-img: 10px; margin: auto; }
.ie-small-icon { --icon-box: 18px; --icon-img: 15px; margin: auto; }
.ie-command-icon { --icon-box: 14px; --icon-img: 14px; vertical-align: -2px; margin-right: 4px; }
.ie-tool-icon-box { --icon-box: 18px; --icon-img: 16px; }
.ie-tabbar-icon { --icon-box: 18px; --icon-img: 15px; margin: auto; }
.tab-favicon { --icon-box: 16px; --icon-img: 16px; }
.tab-close { --icon-box: 16px; --icon-img: 10px; justify-self: end; opacity: .72; }
.status-globe { --icon-box: 15px; --icon-img: 15px; margin-right: 4px; vertical-align: -3px; }
.ie-mini { --icon-box: 25px; --icon-img: 25px; }
.ie-controls {
  align-self: flex-start;
  display: flex;
  height: 22px;
  margin-right: 6px;
  overflow: hidden;
  border-radius: 0 0 5px 5px;
  border: 1px solid rgba(0,0,0,.28);
  border-top: 0;
}
.ie-btn {
  position: relative;
  width: 31px;
  height: 22px;
  padding: 0;
  border: 0;
  border-right: 1px solid rgba(0,0,0,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.20) 48%, rgba(20,62,98,.32));
  display: grid;
  place-items: center;
}
.ie-btn:last-child { border-right: 0; }
.ie-btn.close { width: 46px; background: linear-gradient(180deg, #ffb19f, #cf3527 52%, #77150f); }
.ie-btn:hover { filter: brightness(1.13); }
.ie-btn .ie-control-icon { display: none; }
.ie-btn::before,
.ie-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
}
.ie-btn.minimize::before {
  width: 11px;
  height: 3px;
  transform: translate(-50%, 2px);
  border-top: 2px solid #5d7f9f;
  box-shadow: 0 1px 0 rgba(255,255,255,.72);
}
.ie-btn.maximize::before {
  width: 10px;
  height: 8px;
  transform: translate(-50%, -50%);
  border: 2px solid #6b849d;
  border-top-color: #7896b1;
  background: rgba(255,255,255,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 1px 0 rgba(255,255,255,.58);
}
.ie-btn.close::before,
.ie-btn.close::after {
  width: 13px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 1px 0 rgba(95,0,0,.58);
}
.ie-btn.close::before { transform: translate(-50%, -50%) rotate(45deg); }
.ie-btn.close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.ie-navigation, .ie-commandbar, .ie-tabbar, .ie-statusbar {
  flex: 0 0 auto;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(230,240,248,.92) 48%, rgba(197,216,229,.92));
  border-top: 1px solid rgba(255,255,255,.9);
  border-bottom: 1px solid #8ea9ba;
}
.ie-navigation {
  height: 38px;
  display: grid;
  grid-template-columns: 82px minmax(430px, 1fr) 250px;
  align-items: center;
  gap: 7px;
  padding: 3px 8px 4px;
}
.ie-round-buttons { display: flex; align-items: center; gap: 4px; }
.ie-round {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 1px solid #5f8caf;
  background: radial-gradient(circle at 36% 26%, #fff, transparent 32%), linear-gradient(180deg, #6fcbff, #1d74c9 56%, #0a3b7b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 1px 2px rgba(0,0,0,.35);
  display: grid;
  place-items: center;
}
.ie-round:disabled {
  opacity: .48;
  filter: grayscale(.35);
}
.ie-history {
  width: 13px;
  height: 24px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}
.address-bar, .search-box {
  height: 26px;
  display: grid;
  align-items: center;
  border: 1px solid #809cb0;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
}
.address-bar { grid-template-columns: 22px 1fr 24px 24px 24px; }
.search-box { grid-template-columns: 1fr 30px; }
.address-bar input, .search-box input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  color: #122232;
  background: transparent;
  font-size: 13px;
}
.search-box input::placeholder { color: #4f6372; }
.address-bar button, .search-box button {
  height: 100%;
  border: 0;
  border-left: 1px solid #bdd0dc;
  background: linear-gradient(180deg, #fff, #d7e9f3);
  color: #095cad;
  display: grid;
  place-items: center;
}
.address-favicon { margin-left: 4px; }
.ie-commandbar {
  height: 31px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  color: #1d3346;
  font-size: 12px;
}
.ie-commandbar::-webkit-scrollbar { height: 6px; }
.ie-commandbar::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: rgba(83, 117, 143, .45);
}
.command-spacer { flex: 1 0 12px; }
.ie-commandbar button {
  flex: 0 0 auto;
  min-width: 0;
  height: 22px;
  border: 1px solid transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  background: transparent;
}
.ie-command-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  white-space: nowrap;
}
.ie-tool-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}
.ie-commandbar button:hover,
.ie-commandbar button:focus-visible,
.ie-history:hover,
.ie-history:focus-visible,
.address-bar button:hover,
.search-box button:hover {
  border-color: #7fa8c3;
  outline: 0;
  background: linear-gradient(180deg, #fff, #d7ecfa 48%, #b6d9ef);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}
.ie-command-caret {
  width: 0;
  height: 0;
  margin-top: 2px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #284153;
}
.ie-command-menu {
  position: fixed;
  z-index: 10050;
  width: 238px;
  padding: 3px;
  border: 1px solid #6f8fa7;
  color: #172f45;
  font-size: 12px;
  background: linear-gradient(180deg, rgba(251,253,255,.98), rgba(221,235,246,.98));
  box-shadow: 0 11px 28px rgba(30, 56, 78, .34), inset 0 1px 0 #fff;
}
.ie-command-menu-title {
  padding: 6px 8px 5px;
  border-bottom: 1px solid #afc5d6;
  color: #385467;
  font-weight: 700;
}
.ie-command-menu-item {
  width: 100%;
  min-height: 32px;
  display: grid;
  gap: 1px;
  padding: 5px 8px;
  border: 1px solid transparent;
  color: inherit;
  text-align: left;
  background: transparent;
}
.ie-command-menu-item:hover,
.ie-command-menu-item:focus-visible {
  border-color: #7fa8c3;
  outline: 0;
  background: linear-gradient(180deg, #eff8ff, #c9e4f7);
}
.ie-command-menu-item:disabled {
  color: #708797;
}
.ie-command-menu-item:disabled:hover {
  border-color: transparent;
  background: transparent;
}
.ie-command-menu-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ie-command-menu-item small {
  overflow: hidden;
  color: #4f6879;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ie-command-menu-separator {
  display: block;
  height: 1px;
  margin: 4px 2px;
  background: #b4c8d7;
}

.ie-tabbar {
  height: 29px;
  display: flex;
  align-items: end;
  gap: 2px;
  padding: 3px 8px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  background:
    linear-gradient(180deg, #ecf4fa, #c9dbe8 72%, #b3c8d8);
}
.ie-tabbar::-webkit-scrollbar { height: 7px; }
.ie-tabbar::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: rgba(83, 117, 143, .5);
}
.ie-quick-tabs,
.ie-new-tab {
  flex: 0 0 28px;
  width: 28px;
  height: 23px;
  border: 1px solid #94acbd;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #f7fbff, #d4e2ec);
}
.ie-quick-tabs {
  display: grid;
  place-items: center;
}
.ie-tab {
  height: 25px;
  min-width: 132px;
  max-width: 186px;
  flex: 0 0 186px;
  display: grid;
  grid-template-columns: 18px 1fr 18px;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 7px;
  border: 1px solid #8ba5b8;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  color: #173047;
  font-size: 12px;
  text-align: left;
  background: linear-gradient(180deg, #fff, #eaf2f8 54%, #d7e4ee);
  box-shadow: inset 0 1px 0 #fff;
}
.ie-tab.is-active {
  height: 26px;
  background: linear-gradient(180deg, #fff, #f7fbff 56%, #edf5fb);
  position: relative;
  z-index: 1;
}
.ie-tab span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ie-new-tab {
  flex-basis: 31px;
  width: 31px;
  display: grid;
  place-items: center;
}
.ie-new-tab::before {
  content: "";
  width: 11px;
  height: 11px;
  display: block;
  background:
    linear-gradient(#3b5f78, #3b5f78) center / 11px 1px no-repeat,
    linear-gradient(#3b5f78, #3b5f78) center / 1px 11px no-repeat;
}

.ie-statusbar {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 9px;
  color: #203547;
  font-size: 12px;
  border-top: 1px solid #b4c5d1;
  background: linear-gradient(180deg, #f8fbfd, #e2e9ee);
}
.status-spacer { flex: 1; }
.status-zoom {
  padding-left: 16px;
  border-left: 1px solid #b7c6d1;
}

.browser-viewport {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.ie-external-page,
.ie-search-page,
.ie-new-page {
  flex: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: auto;
  color: #1f3345;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(224, 237, 247, .88)),
    repeating-linear-gradient(0deg, rgba(120, 145, 163, .12) 0 1px, transparent 1px 6px);
}

.ie-search-page {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.ie-external-card,
.ie-new-page-card {
  width: min(560px, 100%);
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid #95aabc;
  background: linear-gradient(180deg, #ffffff, #eef5fb);
  box-shadow: 0 12px 30px rgba(52, 74, 94, .22), inset 0 1px 0 #fff;
}

.ie-external-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font: 700 30px/1 Georgia, serif;
  font-style: italic;
  background: radial-gradient(circle at 30% 24%, #fff, transparent 28%), linear-gradient(180deg, #55b7f2, #0d66c4 66%, #074084);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 1px 3px rgba(0,0,0,.28);
}

.ie-external-card h2,
.ie-new-page-card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
}

.ie-external-card p {
  margin: 0;
  line-height: 1.45;
}

.ie-external-url {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #075aa5;
  font-family: Consolas, "Lucida Console", monospace;
  font-size: 12px;
}

.ie-external-actions,
.ie-new-page-card form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ie-external-actions button,
.ie-new-page-card button {
  min-height: 26px;
  padding: 0 13px;
  border: 1px solid #7f9db9;
  color: #12314d;
  background: linear-gradient(180deg, #fff, #d9e9f5);
  box-shadow: inset 0 1px 0 #fff;
}

.ie-search-web {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  border: 0;
  background: #fff;
}

.ie-search-open-strip {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(460px, calc(100% - 20px));
  padding: 3px 5px 3px 9px;
  border: 1px solid rgba(127, 157, 185, .82);
  color: #203547;
  font-size: 12px;
  background: linear-gradient(180deg, rgba(248,251,253,.96), rgba(226,233,238,.94));
  box-shadow: 0 2px 7px rgba(52, 74, 94, .16);
}

.ie-search-open-strip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ie-search-open-strip button {
  flex: 0 0 auto;
  height: 22px;
  padding: 0 9px;
  border: 1px solid #7f9db9;
  color: #12314d;
  background: linear-gradient(180deg, #fff, #d9e9f5);
}

.ie-search-suggestions {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 6px;
  border: 1px solid rgba(127, 157, 185, .82);
  color: #203547;
  font-size: 12px;
  background: linear-gradient(180deg, rgba(248,251,253,.96), rgba(226,233,238,.94));
  box-shadow: 0 -2px 7px rgba(52, 74, 94, .12);
}

.ie-search-suggestions span {
  flex: 0 0 auto;
  color: #40586b;
}

.ie-search-local-result {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 28%;
  height: 22px;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid #9eb6c9;
  color: #075aa5;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff, #e6f0f8);
}

.ie-search-local-result:hover,
.ie-search-local-result:focus-visible {
  border-color: #7da2c2;
  outline: 0;
  background: linear-gradient(180deg, #eef7ff, #dcecf8);
}

.ie-search-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.ie-new-page-card input {
  flex: 1 1 260px;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #7f9db9;
  background: #fff;
  color: #122232;
}

.site-screen {
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 2%, rgba(107, 35, 88, .18), transparent 26%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.032) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #040509, #010204);
  border: 1px solid #243546;
  color: var(--text);
  font-family: var(--ie-font-content, "Fixedsys", "Lucida Console", Consolas, monospace);
  letter-spacing: .01em;
}
.system-strip {
  height: 27px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(143,154,168,.45);
  color: #d6dee9;
  font-size: 12px;
  white-space: nowrap;
}
.system-strip b, .sys-brand { color: var(--magenta); font-weight: 400; }
.sys-brand { color: var(--cyan); }
.sys-spacer { flex: 1; }
.online { color: var(--green); }
.online i { display: inline-block; width: 7px; height: 7px; background: var(--green); margin-left: 4px; }

.site-grid {
  height: calc(100% - 27px);
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(520px, 1fr) minmax(270px, 320px);
  gap: 10px;
  padding: 12px 14px 14px;
}
.left-rail, .right-rail, .center-stage { min-width: 0; min-height: 0; }
.left-rail, .right-rail { display: grid; gap: 10px; align-content: start; }
.center-stage { display: grid; grid-template-rows: 124px minmax(290px, 1fr) minmax(170px, .58fr); gap: 10px; overflow: hidden; }

.pixel-window {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: rgba(2, 3, 6, .92);
  border: 1px solid rgba(218, 232, 240, .72);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.95), 0 2px 0 rgba(0,0,0,.6);
}
.pixel-titlebar {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 2px 8px;
  color: white;
  background: linear-gradient(180deg, #171aff, #0505a4);
  border-bottom: 1px solid #a6a7aa;
  font-size: 13px;
  line-height: 16px;
}
.pixel-controls { display: flex; gap: 3px; }
.pixel-controls i {
  width: 15px;
  height: 15px;
  display: block;
  background: #aaa;
  border: 2px outset #eee;
}

.about-panel { height: min(52vh, 470px); }
.about-content { position: relative; height: calc(100% - 24px); padding: 8px 17px 14px; }
.about-status { margin: 0 0 6px; text-align: center; color: white; font-size: 13px; }
.about-avatar { width: 100%; height: min(165px, 25vh); object-fit: cover; display: block; }
.about-content h2 { margin: 8px 0 9px; color: var(--cyan); font-size: 18px; font-weight: 400; }
.about-content p { margin: 0 0 12px; color: white; font-size: 14px; line-height: 18px; }
.about-content .about-meta { color: #e9eef5; }
.about-content .about-emphasis { color: var(--magenta); }
.terminal-link { position: absolute; right: 20px; bottom: 12px; color: var(--cyan); font-size: 15px; }

.tag-panel { height: min(32vh, 260px); }
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 10px 12px 7px; }
.badge-grid img { width: 100%; max-height: 48px; object-fit: contain; image-rendering: pixelated; filter: contrast(1.1) brightness(.9); }
.tag-cloud { margin: 0; padding: 3px 18px 12px; columns: 2; list-style: none; font-size: 13px; line-height: 17px; }
.tag-cloud a { color: var(--cyan); }
.tag-cloud li:nth-child(odd) a { color: var(--magenta); }
.tag-cloud span { color: var(--yellow); }

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr 100px;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border: 1px dashed rgba(255,45,148,.75);
  background: rgba(0,0,0,.28);
}
.hero-terminal { width: 86px; height: 86px; object-fit: contain; filter: invert(1) brightness(1.1); image-rendering: pixelated; }
.hero-identity { display: flex; align-items: center; justify-content: center; gap: 18px; min-width: 0; }
.hero-photo { display: none; }
.hero-identity h1 { margin: 0; color: white; font-size: clamp(34px, 3vw, 54px); line-height: 1; font-weight: 400; letter-spacing: .06em; text-shadow: 3px 0 0 rgba(255,45,148,.22), 0 0 10px rgba(255,255,255,.18); }
.hero-identity p { margin: 6px 0 5px; color: var(--magenta); font-size: 26px; text-align: center; }
.hero-identity nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; color: var(--magenta); font-size: 13px; }
.hero-globe { justify-self: end; width: 84px; height: 84px; object-fit: contain; image-rendering: pixelated; }

.feed-panel { min-height: 0; }
.feed-list { height: calc(100% - 24px); overflow: auto; scrollbar-color: var(--cyan) #06070a; }
.post-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 100px minmax(0, 1fr);
  gap: 12px;
  min-height: 128px;
  padding: 14px 16px 24px 12px;
  border-bottom: 1px solid rgba(143,154,168,.45);
}
.post-card time { display: grid; justify-items: center; color: var(--magenta); font-size: 13px; line-height: 16px; }
.post-card time b { font-size: 30px; line-height: 32px; font-weight: 400; }
.post-card img { width: 94px; height: 72px; object-fit: cover; align-self: start; image-rendering: pixelated; border: 1px solid rgba(40,229,255,.38); }
.post-copy { min-width: 0; }
.post-copy h2 { margin: 0 0 8px; color: var(--magenta); font-size: 15px; line-height: 18px; font-weight: 400; }
.post-copy mark { margin-left: 8px; padding: 0 4px; color: var(--yellow); background: transparent; border: 1px solid var(--yellow); }
.post-copy p { margin: 0 0 7px; color: #f2f3f5; font-size: 14px; line-height: 18px; }
.post-actions a, .comment-count, .post-tags { color: var(--cyan); }
.post-tags { color: var(--muted) !important; word-spacing: 6px; }
.comment-count { position: absolute; right: 16px; bottom: 8px; font-size: 13px; }
.inline-player { display: grid; grid-template-columns: 28px 130px minmax(80px, 1fr) 92px; align-items: center; gap: 8px; max-width: 430px; height: 30px; padding: 2px 8px; background: #08090b; border: 1px solid #a8a8ad; }
.inline-player button { height: 22px; border: 0; color: white; background: transparent; }
.inline-player progress { width: 100%; height: 6px; accent-color: var(--cyan); }
.inline-player time { display: block; color: white; font-size: 12px; }

.bottom-widgets { display: grid; grid-template-columns: 1.25fr .9fr; gap: 10px; min-height: 0; overflow: hidden; }
.comments-panel, .notes-panel { min-height: 0; }
.comments-list { height: calc(100% - 86px); overflow: auto; }
.guestbook-intro { margin: 0 0 12px; color: var(--goth-text-secondary); font-size: 14px; line-height: 1.45; }
.comments-list article { display: grid; grid-template-columns: 35px 100px 1fr; align-items: start; gap: 8px; padding: 7px 10px; border-bottom: 1px solid rgba(143,154,168,.25); font-size: 13px; }
.comments-list img { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; }
.comments-list b { color: var(--cyan); font-weight: 400; }
.comments-list time { color: var(--muted); font-size: 11px; }
.comments-list p { grid-column: 3; margin: -16px 0 0; }
.comments-list a { grid-column: 3; color: var(--cyan); }
.comment-form { padding: 8px 10px 10px; font-size: 13px; }
.comment-form div { display: grid; grid-template-columns: 1fr 120px; gap: 8px; margin-top: 6px; }
.comment-form input { min-width: 0; width: 100%; height: 31px; padding: 0 10px; color: var(--text); background: #030406; border: 1px solid rgba(218,232,240,.65); outline: none; }
.comment-form button { color: var(--cyan); background: #07090d; border: 1px solid var(--cyan); }
.notes-panel ul { margin: 0; padding: 12px 18px 8px; list-style: none; font-size: 14px; line-height: 21px; }
.notes-panel p { margin: 8px 18px; color: var(--magenta); }

.music-panel { height: 188px; }
.music-content { display: grid; grid-template-columns: 70px 1fr; gap: 8px; padding: 10px 10px 8px; }
.music-content > img { width: 66px; height: 50px; object-fit: cover; image-rendering: pixelated; }
.music-meta small { display: block; color: var(--magenta); }
.music-meta strong { display: block; color: var(--cyan); font-weight: 400; }
.music-meta span { display: block; color: white; }
.audio-visualizer { grid-column: 1 / -1; width: 100%; height: 46px; }
.music-controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }
.music-controls button { width: 25px; height: 24px; color: #111; background: #c9c9c9; border: 2px outset #eee; font-size: 11px; }
.music-controls time { margin-left: auto; color: white; font-size: 13px; }
.music-content nav { grid-column: 1 / -1; display: flex; gap: 10px; color: var(--magenta); font-size: 13px; }
.video-panel { height: 222px; }
.video-frame { position: relative; height: 128px; margin: 10px 10px 8px; border: 1px solid rgba(218,232,240,.65); overflow: hidden; background: #000; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.video-frame button { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border: 0; border-radius: 50%; color: white; background: rgba(0,0,0,.48); font-size: 30px; }
.video-panel p { margin: 0 12px; color: white; font-size: 13px; line-height: 17px; }
.video-panel strong { color: var(--magenta); font-weight: 400; }
.video-panel a { color: var(--cyan); }
.sys-panel { height: 130px; }
.sys-content { display: grid; grid-template-columns: 72px 1fr; gap: 8px; padding: 9px 12px; }
.sys-content > img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; }
.sys-content dl { margin: 0; display: grid; gap: 3px; }
.sys-content div { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 5px; }
.sys-content dt { color: white; }
.sys-content dd { margin: 0; display: grid; grid-template-columns: 1fr 34px; gap: 5px; font-size: 12px; }
.sys-content dd span { height: 9px; width: var(--value); display: block; background: repeating-linear-gradient(90deg, var(--green) 0 5px, transparent 5px 8px); box-shadow: 0 0 5px rgba(57,255,86,.35); }
.sys-content p { grid-column: 1 / -1; margin: 0; color: var(--cyan); font-size: 12px; }
.recent-panel { height: minmax(0, 1fr); min-height: 136px; }
.recent-panel ul { margin: 0; padding: 10px 13px; list-style: none; font-size: 13px; line-height: 19px; }
.recent-panel a { color: var(--cyan); }

.win7-taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  width: 100%;
  max-width: 100vw;
  height: var(--taskbar-h);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.10) 42%, rgba(0,0,0,.16) 43%, rgba(0,0,0,.30)),
    linear-gradient(180deg, rgba(44,137,183,.78), rgba(15,68,102,.86) 52%, rgba(7,36,61,.94));
  border-top: 1px solid rgba(225,248,255,.58);
  box-shadow: 0 -8px 18px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.25);
}
.start-button { width: 42px; height: 42px; flex: 0 0 42px; margin: -6px 3px 0 0; padding: 0; border: 0; background: transparent; border-radius: 50%; }
.start-button img { width: 42px; height: 42px; display: block; }
.start-button:hover { filter: drop-shadow(0 0 10px rgba(67,196,255,.9)); }
.start-menu {
  position: absolute;
  z-index: 125;
  left: 8px;
  bottom: calc(var(--taskbar-h) + 8px);
  width: min(430px, calc(100vw - 16px));
  max-width: calc(100vw - 16px);
  max-height: min(620px, calc(100dvh - var(--taskbar-h) - 16px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 6px;
  padding: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(45,105,145,.94), rgba(8,25,42,.96));
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
}
.start-menu strong { display: block; min-width: 0; margin: 4px 7px 2px; overflow: hidden; color: white; text-overflow: ellipsis; white-space: nowrap; }
.start-menu a,
.start-menu button,
.start-menu-link {
  min-width: 0;
  max-width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  overflow: hidden;
  color: white;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  border-radius: 4px;
  background: transparent;
}
.start-menu a:hover,
.start-menu button:hover,
.start-menu-link:hover { background: rgba(255,255,255,.18); }
.start-menu img,
.start-menu .start-menu-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}
.start-menu-columns,
.start-menu-body,
.start-menu-grid,
.start-menu-layout {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, .62fr);
  gap: 7px;
  overflow: hidden;
}
.start-menu-column,
.start-menu-primary,
.start-menu-secondary,
.start-menu-left,
.start-menu-right,
.start-menu-links,
.start-menu-side {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.start-menu-list,
.start-menu-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.start-menu-search,
.start-menu-power,
.start-menu-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 4px;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.start-menu-search input {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  color: #13283c;
  border: 1px solid rgba(0,0,0,.34);
  border-radius: 3px;
  background: linear-gradient(#fff, #d8e7f0);
}
.start-menu-power,
.start-menu-actions { justify-content: flex-end; }
.start-menu-power button,
.start-menu-search button,
.start-menu-actions button { flex: 0 0 auto; }
.task-buttons { display: flex; align-items: stretch; gap: 3px; min-width: 0; flex: 1 1 auto; height: 100%; overflow: hidden; }
.task-button {
  position: relative;
  width: 48px;
  height: 100%;
  min-width: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: white;
  font-size: 12px;
  text-shadow: 0 1px 2px #000;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.task-button:hover,
.task-button.is-open {
  border-color: rgba(190,236,255,.42);
  background:
    linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.07) 48%, rgba(0,0,0,.18) 49%, rgba(0,0,0,.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 0 0 1px rgba(0,0,0,.18);
}
.task-button.active {
  border-color: rgba(218,249,255,.74);
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,.58), transparent 0 38%, transparent 70%),
    linear-gradient(180deg, rgba(101,202,246,.42), rgba(34,118,166,.32) 48%, rgba(5,53,88,.45) 49%, rgba(3,35,63,.54));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.52), 0 0 10px rgba(80,205,255,.32);
}
.task-button.is-open::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: rgba(151,230,255,.9);
  box-shadow: 0 0 6px rgba(88,211,255,.78);
}
.task-button img, .task-button .ie-mini { width: 25px; height: 25px; flex: 0 0 auto; }
.task-tray { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 0 0 auto; height: 100%; color: white; padding: 0 7px; border-left: 1px solid rgba(255,255,255,.20); box-shadow: inset 1px 0 0 rgba(0,0,0,.18); }
.task-tray img { width: 16px; height: 16px; object-fit: contain; }
.tray-shield, .tray-bolt { width: 18px; height: 22px; position: relative; display: inline-block; }
.tray-shield::before { content: ""; position: absolute; inset: 2px; background: linear-gradient(135deg,#fff 0 50%,#2d72bb 50%); clip-path: polygon(50% 0, 100% 18%, 90% 70%, 50% 100%, 10% 70%, 0 18%); }
.tray-bolt::before { content: ""; position: absolute; inset: 0 3px; background: #ff7c32; clip-path: polygon(58% 0, 0 55%, 42% 55%, 25% 100%, 100% 38%, 58% 38%); filter: drop-shadow(0 0 5px #ff7c32); }
.task-tray time { min-width: 70px; padding-left: 3px; font-size: 12px; line-height: 15px; text-align: right; text-shadow: 0 1px 2px #000; }

.win7-desktop[data-accent="green"] {
  --glass-top: rgba(237, 255, 246, .72);
  --glass-mid: rgba(107, 154, 126, .45);
  --glass-low: rgba(47, 91, 66, .70);
}

.win7-desktop[data-accent="rose"] {
  --glass-top: rgba(255, 239, 249, .74);
  --glass-mid: rgba(170, 105, 145, .46);
  --glass-low: rgba(91, 45, 74, .72);
}

.win7-desktop[data-accent="navy"] {
  --glass-top: rgba(210, 226, 255, .62);
  --glass-mid: rgba(55, 82, 139, .50);
  --glass-low: rgba(17, 31, 70, .78);
}

.win7-desktop[data-accent="silver"] {
  --glass-top: rgba(255, 255, 255, .72);
  --glass-mid: rgba(156, 166, 176, .46);
  --glass-low: rgba(82, 91, 102, .72);
}

.win7-desktop[data-wallpaper="garden"] {
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.20), transparent 22%),
    linear-gradient(135deg, rgba(255,255,255,.13), transparent 34%),
    image-set(
      url("assets/ui/gothic/terminal-computer.webp") type("image/webp"),
      url("assets/ui/gothic/terminal-computer.png") type("image/png")
    ) center / cover no-repeat,
    linear-gradient(135deg, #073d5d, #3b7b79 58%, #11243a);
}

.win7-desktop[data-wallpaper="archive"] {
  background:
    radial-gradient(circle at 32% 28%, rgba(141, 91, 121, .36), transparent 24%),
    radial-gradient(circle at 74% 70%, rgba(46, 130, 175, .28), transparent 30%),
    linear-gradient(135deg, #070912, #102a4c 54%, #05070c);
}

.win7-desktop[data-wallpaper="plain"] {
  background:
    linear-gradient(135deg, rgba(255,255,255,.13), transparent 34%),
    linear-gradient(135deg, #2f6d9c, #6c9bb7);
}

.desktop-icons[data-icon-size="small"] .desktop-icon {
  width: 66px;
  min-height: 58px;
  font-size: 11px;
  line-height: 12px;
}

.desktop-icons[data-icon-size="small"] .desktop-icon img {
  width: 30px;
  height: 30px;
}

.desktop-icons[data-icon-size="large"] .desktop-icon {
  width: 96px;
  min-height: 88px;
  font-size: 13px;
  line-height: 15px;
}

.desktop-icons[data-icon-size="large"] .desktop-icon img {
  width: 48px;
  height: 48px;
}

.desktop-icons.is-refreshing .desktop-icon {
  animation: desktop-refresh 220ms ease both;
}

@keyframes desktop-refresh {
  0% { opacity: .35; transform: translateY(1px); }
  100% { opacity: 1; transform: translateY(0); }
}

.win7-taskbar[data-glass="false"] {
  background:
    linear-gradient(180deg, rgba(55, 96, 134, .98), rgba(22, 57, 92, .98) 48%, rgba(13, 34, 58, .98));
  backdrop-filter: none;
}

.win7-context-menu {
  position: fixed;
  z-index: 20000;
  min-width: 214px;
  padding: 3px 0;
  border: 1px solid #8c8c8c;
  color: #1f1f1f;
  font-size: 12px;
  background: #f0f0f0;
  box-shadow: 4px 4px 14px rgba(0,0,0,.34);
}

.win7-context-item {
  position: relative;
  width: 100%;
  min-height: 24px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0;
  padding: 0 5px 0 0;
  border: 0;
  color: #1f1f1f;
  text-align: left;
  background: transparent;
}

.win7-context-item.is-bold .win7-context-label {
  font-weight: 700;
}

.win7-context-item:hover,
.win7-context-item:focus-visible {
  outline: 0;
  background: linear-gradient(180deg, #e8f4fd, #c9e7fb);
}

.win7-context-item:disabled {
  color: #8f8f8f;
  cursor: default;
}

.win7-context-item:disabled:hover {
  background: transparent;
}

.win7-context-check {
  display: grid;
  place-items: center;
  min-height: 24px;
  border-right: 1px solid #dedede;
  color: #184c7b;
  font-size: 12px;
}

.win7-context-label {
  min-width: 0;
  padding-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win7-context-arrow {
  justify-self: center;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #333;
}

.win7-context-separator {
  display: block;
  height: 1px;
  margin: 3px 0 3px 27px;
  background: #d7d7d7;
}

.win7-context-submenu {
  position: absolute;
  left: calc(100% - 2px);
  top: -4px;
  min-width: 210px;
  display: none;
  padding: 3px 0;
  border: 1px solid #8c8c8c;
  background: #f0f0f0;
  box-shadow: 4px 4px 14px rgba(0,0,0,.34);
}

.win7-context-item:hover > .win7-context-submenu,
.win7-context-item:focus-visible > .win7-context-submenu,
.win7-context-item:focus-within > .win7-context-submenu {
  display: block;
}

.win7-desktop-toast {
  position: fixed;
  right: 14px;
  bottom: calc(var(--taskbar-h) + 14px);
  z-index: 20010;
  max-width: min(360px, calc(100vw - 28px));
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 2px #000;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06)),
    rgba(24, 66, 105, .88);
  box-shadow: 0 8px 22px rgba(0,0,0,.38), inset 0 0 0 1px rgba(0,0,0,.24);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.win7-desktop-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.win7-gadget-clock {
  position: absolute;
  right: 24px;
  top: 70px;
  z-index: 4;
  width: 176px;
  min-height: 126px;
  display: grid;
  gap: 2px;
  padding: 15px 16px 13px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 9px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
  background:
    linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.08)),
    rgba(15, 42, 70, .48);
  box-shadow: 0 12px 30px rgba(0,0,0,.34), inset 0 0 0 1px rgba(0,0,0,.28);
}

.win7-gadget-clock strong {
  font-size: 31px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0;
}

.win7-gadget-clock span,
.win7-gadget-clock small {
  font-size: 12px;
}

.win7-gadget-clock button {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 19px;
  height: 19px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(120, 24, 24, .72);
}

@media (max-width: 1200px) {
  .ie-window {
    left: 90px;
    top: 22px;
    width: calc(100vw - 110px);
    height: calc(100vh - var(--taskbar-h) - 34px);
    min-width: 0;
  }
  .site-grid { grid-template-columns: 290px minmax(430px, 1fr) 280px; }
  .right-rail { font-size: 12px; }
  .task-button { min-width: 44px; width: 44px; flex-basis: 44px; }
}

@media (max-width: 899px), (max-height: 690px) {
  body { overflow-x: hidden; overflow-y: auto; }
  .win7-desktop { width: 100%; max-width: 100%; min-height: 100vh; height: auto; overflow-x: hidden; overflow-y: visible; padding-left: 0; padding-bottom: var(--taskbar-h); }
  .desktop-icons {
    position: relative;
    inset: auto;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px 5px;
    align-items: start;
    width: 100%;
    padding: 10px 8px 4px;
    pointer-events: auto;
  }
  .desktop-icon {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    min-height: 72px;
    padding: 4px 2px;
    touch-action: manipulation;
  }
  .desktop-icon img {
    width: 34px;
    height: 34px;
  }
  .desktop-icon span {
    max-width: 76px;
    overflow-wrap: anywhere;
  }
  .ie-window,
  .win7-app-window { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; min-width: 0; min-height: 0; height: auto; margin: 8px; }
  .win7-desktop .ie-window[data-app-window],
  .win7-desktop .win7-app-window[data-app-window] {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin-right: 8px;
    margin-left: 8px;
  }
  .doom-window { height: min(78vh, 620px); }
  .terminal-window { height: min(68vh, 520px); }
  .site-screen { overflow: visible; }
  .site-grid { height: auto; display: grid; grid-template-columns: 1fr; }
  .left-rail, .right-rail, .center-stage { display: grid; }
  .center-stage { grid-template-rows: auto auto auto; }
  .about-panel, .tag-panel, .music-panel, .video-panel, .sys-panel, .recent-panel { height: auto; }
  .about-avatar { height: 210px; }
  .post-card { grid-template-columns: 58px 78px 1fr; }
  .post-card img { width: 72px; height: 58px; }
  .bottom-widgets { grid-template-columns: 1fr; }
  .right-rail { grid-row: auto; }
  .ie-navigation { grid-template-columns: 66px 1fr; }
  .search-box { display: none; }
  .start-menu {
    left: 6px;
    right: 6px;
    bottom: calc(var(--taskbar-h) + 6px);
    width: auto;
    max-width: none;
    max-height: calc(100dvh - var(--taskbar-h) - 12px);
  }
  .start-menu-columns,
  .start-menu-body,
  .start-menu-grid,
  .start-menu-layout { grid-template-columns: 1fr; }
  .task-buttons { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; }
  .task-tray img, .tray-shield, .tray-bolt { display: none; }
}

.gothic-site {
  --goth-base: #0B090B;
  --goth-panel: #120D12;
  --goth-panel-raised: #181118;
  --goth-border: #5A3946;
  --goth-border-soft: #3E2A33;
  --goth-ornament: #7A5965;
  --goth-text: #E7D9DD;
  --goth-text-secondary: #B89EA6;
  --goth-text-muted: #8D737B;
  --goth-accent: #A85C73;
  --goth-wine: #7B2F46;
  --goth-bronze: #A47A4D;
  --goth-green: #66735C;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 18% 0%, rgba(122, 89, 101, .18), transparent 28%),
    radial-gradient(circle at 88% 6%, rgba(164, 122, 77, .09), transparent 26%),
    linear-gradient(180deg, rgba(11, 9, 11, .96), rgba(6, 5, 6, .99)),
    var(--goth-base);
  color: var(--goth-text);
  scrollbar-color: var(--goth-border) var(--goth-base);
}

.gothic-page {
  min-height: 100%;
  padding: clamp(12px, 1.5vw, 22px);
  background:
    repeating-linear-gradient(0deg, rgba(231, 217, 221, .018) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(90, 57, 70, .12), transparent 16%, transparent 84%, rgba(62, 42, 51, .12));
}

.gothic-hero {
  --hero-pad-x: 18px;
  --hero-pad-y: 14px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, .4fr) minmax(360px, 1.5fr) minmax(120px, .45fr);
  align-items: center;
  min-height: clamp(145px, 18vh, 220px);
  margin-bottom: 12px;
  padding: var(--hero-pad-y) var(--hero-pad-x);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--goth-border) 86%, transparent);
  background:
    linear-gradient(180deg, rgba(231, 217, 221, .035), transparent 38%),
    radial-gradient(circle at 48% 38%, rgba(168, 92, 115, .13), transparent 48%),
    color-mix(in srgb, var(--goth-panel) 82%, transparent);
  box-shadow: inset 0 0 0 1px rgba(231, 217, 221, .03);
}

.gothic-hero::before,
.gothic-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px dotted color-mix(in srgb, var(--goth-ornament) 62%, transparent);
}

.gothic-hero-art {
  align-self: stretch;
  justify-self: start;
  width: min(270px, calc(100% + var(--hero-pad-x)));
  height: calc(100% + (var(--hero-pad-y) * 2));
  margin: calc(var(--hero-pad-y) * -1) 0 calc(var(--hero-pad-y) * -1) calc(var(--hero-pad-x) * -1);
  object-fit: cover;
  object-position: 50% 18%;
  mix-blend-mode: screen;
  filter: grayscale(1) invert(1) contrast(1.15) opacity(.55);
}

.gothic-hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.gothic-logo {
  width: min(620px, 100%);
  max-height: clamp(58px, 8vh, 110px);
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(168, 92, 115, .2));
}

.gothic-hero-main p,
.gothic-section-title h2,
.gothic-small-title span,
.tag-panel h2,
.about-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.gothic-hero-main p {
  margin: 0;
  color: var(--goth-accent);
  font-size: clamp(22px, 2.1vw, 36px);
  line-height: 1;
}

.gothic-hero-main nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--goth-text-secondary);
  font-size: 13px;
}

.gothic-hero-main nav a::before {
  content: "+ ";
  color: var(--goth-bronze);
}

.gothic-computer {
  justify-self: center;
  width: min(150px, 100%);
  filter: grayscale(1)  brightness(10) opacity(.65) invert(0.1);
}

.gothic-grid {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(420px, 1fr) minmax(250px, 310px);
  gap: 12px;
}

.gothic-left,
.gothic-center,
.gothic-right {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.gothic-card {
  position: relative;
  min-width: 0;
  overflow: visible;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--goth-border) 82%, transparent);
  background:
    linear-gradient(180deg, rgba(231, 217, 221, .03), rgba(231, 217, 221, .008) 32%, transparent),
    radial-gradient(circle at 100% 0%, rgba(122, 89, 101, .14), transparent 36%),
    color-mix(in srgb, var(--goth-panel) 94%, transparent);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.85),
    0 12px 28px rgba(0,0,0,.24);
}

.gothic-site .about-panel,
.gothic-site .tag-panel,
.gothic-site .music-panel,
.gothic-site .comments-panel,
.gothic-site .notes-panel,
.gothic-site .feed-panel {
  height: auto;
  min-height: 0;
}

.gothic-small-title,
.gothic-section-title {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--goth-text);
  text-align: center;
}

.gothic-section-title {
  grid-template-columns: 1fr auto 1fr;
}

.gothic-section-title span {
  width: 100%;
  border-top: 1px solid color-mix(in srgb, var(--goth-ornament) 65%, transparent);
}

.gothic-section-title h2,
.gothic-small-title span {
  margin: 0;
  font-size: clamp(18px, 1.45vw, 25px);
  line-height: 1.1;
}

.gothic-section-title h2::before,
.gothic-section-title h2::after,
.gothic-small-title span::before,
.gothic-small-title span::after {
  content: " + ";
  color: var(--goth-bronze);
}

.portrait-frame {
  position: relative;
  min-height: 0;
  padding-top: 0;
  display: block;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--goth-ornament) 58%, transparent);
  background: var(--goth-base);
}

.portrait-ornament {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) invert(1) contrast(1.12) opacity(.18);
  mix-blend-mode: screen;
}

.about-avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  object-position: center 28%;
}

.about-copy {
  padding-top: 16px;
}

.about-copy h2,
.tag-panel h2 {
  margin: 0 0 10px;
  color: var(--goth-accent);
  font-size: 21px;
}

.about-copy p,
.tag-panel p,
.post-copy p,
.comments-list p,
.video-panel p,
.recent-panel li,
.notes-panel li,
.notes-panel p {
  color: var(--goth-text);
  font-size: 14px;
  line-height: 1.48;
}

.about-meta {
  color: var(--goth-text-secondary) !important;
}

.profile-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--goth-accent);
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
}

.profile-social-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: sepia(.35) saturate(.78) brightness(.82) contrast(1.08);
  opacity: .9;
}

.profile-social-link span {
  border-bottom: 1px dotted color-mix(in srgb, var(--goth-accent) 55%, transparent);
}

.profile-social-link:hover {
  color: var(--goth-text);
  text-shadow: 0 0 6px rgba(168, 92, 115, .45);
}

.profile-social-link:hover img {
  filter: sepia(.45) saturate(1.05) brightness(1) contrast(1.08);
  opacity: 1;
}

.about-emphasis,
.post-copy h2,
.video-panel strong,
.notes-panel p {
  color: var(--goth-accent) !important;
}

.profile-objects {
  margin: 16px 0 14px;
  padding-top: 13px;
  border-top: 1px dotted color-mix(in srgb, var(--goth-border-soft) 86%, transparent);
}

.profile-objects-title {
  margin: 0 0 10px;
  color: var(--goth-accent);
  font-size: 13px;
  letter-spacing: .04em;
}

.profile-object-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.profile-object-grid figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.profile-object-grid img {
  width: 94px;
  height: 94px;
  object-fit: contain;
  filter: saturate(.8) contrast(1.05) brightness(.9);
}

.profile-object-grid figcaption {
  color: var(--goth-text-muted);
  font-size: 11px;
  line-height: 1.2;
}

.profile-hanging-lamp {
  position: relative;
  z-index: 1;
  height: clamp(236px, 19vw, 286px);
  margin: -1px 0 4px;
  pointer-events: none;
  overflow: hidden;
}

.profile-hanging-lamp img {
  position: absolute;
  left: 50%;
  top: -2px;
  width: min(218px, 74%);
  max-width: none;
  transform: translateX(-50%);
  filter: saturate(.76) brightness(.82) contrast(1.08);
  opacity: .9;
}

.relic-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 10px 0 8px;
}

.relic-row img {
  width: clamp(76px, 7vw, 104px);
  height: clamp(76px, 7vw, 104px);
  object-fit: contain;
}

.tag-cloud {
  columns: 2;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.tag-cloud a,
.post-title-link,
.comment-count,
.comments-list a,
.recent-panel a,
.video-panel a {
  color: var(--goth-bronze);
  text-decoration: none;
}

.feed-panel {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.feed-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: min(520px, 58%);
  height: min(430px, 70%);
  background: image-set(
    url("assets/decorations/profile-stones.webp") type("image/webp"),
    url("assets/decorations/profile-stones.png") type("image/png")
  ) center / contain no-repeat;
  opacity: .24;
  pointer-events: none;
  filter: saturate(.65) brightness(.8) contrast(1.05);
  transform: translate(-50%, -50%);
  display: none;
}

.feed-panel .gothic-section-title {
  position: relative;
  z-index: 1;
  padding: 18px 20px 0;
}

.feed-decoration {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: clamp(148px, 12vw, 188px);
  margin: 2px 20px 0;
  pointer-events: none;
}

.feed-decoration img {
  display: block;
  width: min(430px, 88%);
  max-width: 100%;
  height: auto;
  filter: saturate(.82) brightness(.82) contrast(1.06);
  opacity: .78;
}

.feed-decoration--bottom {
  margin-top: 8px;
  margin-bottom: 16px;
}

.feed-list {
  position: relative;
  z-index: 1;
  height: auto;
  overflow: visible;
}

.post-card {
  z-index: 1;
  min-height: 136px;
  grid-template-columns: 82px 112px minmax(0, 1fr);
  align-items: start;
  padding: 16px 20px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--goth-border-soft) 80%, transparent);
}

.post-card.is-playable {
  cursor: pointer;
}

.feed-panel .post-card:not([data-track-src]) {
  cursor: zoom-in;
}

.post-card:hover {
  background: color-mix(in srgb, var(--goth-panel-raised) 48%, transparent);
}

.feed-list .post-card:last-child {
  border-bottom: 0;
}

.post-card time {
  color: var(--goth-accent);
}

.post-card img {
  display: block;
  width: 104px;
  height: 78px;
  min-width: 104px;
  max-width: 104px;
  max-height: 78px;
  object-fit: cover;
  object-position: center;
  align-self: start;
  border-color: color-mix(in srgb, var(--goth-ornament) 70%, transparent);
}

.post-copy h2 {
  font-size: 16px;
  letter-spacing: .02em;
  text-transform: none;
}

.post-title-link {
  color: var(--goth-accent);
}

.post-popup-overlay,
.image-lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 38px);
  color: var(--goth-text);
  font-family: var(--ie-font-content, "Fixedsys", "Lucida Console", Consolas, monospace);
  background: rgba(4, 3, 5, .72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.post-popup-overlay {
  z-index: 90;
}

.image-lightbox {
  z-index: 140;
  background:
    radial-gradient(circle at 50% 18%, rgba(90, 57, 70, .18), transparent 34%),
    rgba(3, 2, 4, .82);
}

.post-popup-overlay.is-open,
.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.post-popup-overlay[hidden],
.image-lightbox[hidden] {
  display: none;
}

.post-popup,
.image-lightbox-panel {
  position: relative;
  width: min(980px, 94vw);
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--goth-border) 86%, transparent);
  background:
    linear-gradient(180deg, rgba(231, 217, 221, .035), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(122, 89, 101, .16), transparent 38%),
    rgba(12, 8, 12, .97);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .58),
    inset 0 0 0 1px rgba(231, 217, 221, .035);
  transform: scale(.97);
  transition: transform 180ms ease;
}

.post-popup-overlay.is-open .post-popup,
.image-lightbox.is-open .image-lightbox-panel {
  transform: scale(1);
}

.post-popup::before,
.image-lightbox-panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px dotted color-mix(in srgb, var(--goth-ornament) 55%, transparent);
}

.post-popup {
  display: grid;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 3vw, 34px);
}

.post-popup-body {
  position: relative;
  z-index: 1;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.post-popup-vine {
  position: absolute;
  top: -20px;
  left: -6px;
  z-index: 0;
  width: min(330px, 45%);
  opacity: .72;
  pointer-events: none;
  user-select: none;
  filter: saturate(.72) brightness(.78) contrast(1.08);
}

.post-popup-close,
.image-lightbox-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--goth-border) 82%, transparent);
  color: var(--goth-text);
  background: rgba(10, 7, 10, .82);
  font-size: 24px;
  line-height: 1;
}

.post-popup-close:hover,
.image-lightbox-close:hover {
  color: var(--goth-base);
  background: var(--goth-bronze);
}

.post-popup-header h2 {
  margin: 0 42px 8px 0;
  color: var(--goth-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 400;
}

.post-popup-header p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 16px;
  color: var(--goth-text-muted);
  font-size: 13px;
}

.post-popup-image {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--goth-border-soft) 92%, transparent);
  background: #050405;
  cursor: zoom-in;
  line-height: 0;
  overflow: visible;
}

.post-popup-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(58dvh, 640px);
  object-fit: contain;
  transition: transform 180ms ease, filter 180ms ease;
}

.post-popup-image:hover img {
  transform: scale(1.015);
  filter: brightness(1.05);
}

.post-popup-content p,
.post-popup-tags,
.post-popup-comments,
.post-popup-nav button,
.image-lightbox-bar {
  font-size: 14px;
  line-height: 1.5;
}

.post-popup-content p {
  margin: 0 0 13px;
}

.post-popup-footer {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--goth-border-soft) 82%, transparent);
}

.post-popup-tags {
  margin: 0;
  color: var(--goth-text-secondary);
  word-spacing: 6px;
}

.post-popup-comments {
  justify-self: end;
  color: var(--goth-bronze);
}

.post-popup-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.post-popup-nav button,
.image-lightbox-bar button {
  border: 1px solid color-mix(in srgb, var(--goth-border) 82%, transparent);
  color: var(--goth-text);
  background: rgba(10, 7, 10, .72);
}

.post-popup-nav button {
  padding: 7px 0;
  border-color: transparent;
  background: transparent;
}

.post-popup-nav button:hover,
.image-lightbox-bar button:hover {
  color: var(--goth-base);
  background: var(--goth-bronze);
}

.image-lightbox-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(96vw, 1280px);
  height: min(92dvh, 920px);
  max-height: 92vh;
  overflow: hidden;
  padding: 14px;
}

.image-lightbox-stage {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(231, 217, 221, .022) 0 1px, transparent 1px 4px),
    #050405;
  border: 1px solid color-mix(in srgb, var(--goth-border-soft) 88%, transparent);
}

.image-lightbox-img {
  max-width: calc(96vw - 56px);
  max-height: calc(92dvh - 96px);
  object-fit: contain;
  user-select: none;
  touch-action: none;
  cursor: grab;
  will-change: transform;
  transform-origin: center center;
  transition: transform 110ms ease-out;
}

.image-lightbox-img:active {
  cursor: grabbing;
}

.image-lightbox-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto repeat(3, 34px);
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  color: var(--goth-text-muted);
}

.image-lightbox-caption {
  min-width: 0;
  color: var(--goth-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-lightbox-help {
  color: var(--goth-bronze);
  font-size: 12px;
}

.image-lightbox-bar button {
  width: 34px;
  height: 30px;
  padding: 0;
}

.post-copy mark {
  color: var(--goth-bronze);
  border-color: var(--goth-bronze);
  text-transform: lowercase;
}

.bottom-widgets {
  grid-template-columns: 1fr;
}

.comments-panel {
  margin-top: 2px;
  opacity: .88;
  overflow: visible;
}

.comments-panel .gothic-small-title span {
  font-size: clamp(15px, 1.1vw, 19px);
}

.comments-list article {
  display: grid;
  grid-template-columns: minmax(80px, 120px) minmax(75px, auto) 1fr auto;
  gap: 8px 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom-color: color-mix(in srgb, var(--goth-border-soft) 80%, transparent);
}

.comments-list {
  height: auto;
  overflow: visible;
}

.comment-form {
  margin-top: 18px;
}

.comment-form div {
  grid-template-columns: minmax(0, 1fr) minmax(96px, 120px);
}

.comment-form > input {
  display: block;
  margin: 6px 0 10px;
}

.comments-list article img {
  display: none;
}

.comments-list article p {
  margin: 0;
}

.comments-list article b {
  color: var(--goth-accent);
}

.comments-list article time {
  color: var(--goth-text-muted);
  font-size: 12px;
}

.comment-form input,
.comment-form button {
  border-color: color-mix(in srgb, var(--goth-border) 82%, transparent);
}

.comment-form button {
  color: var(--goth-bronze);
  background: transparent;
}

.music-content,
.sys-content {
  color: var(--goth-text);
}

.music-meta small,
.music-meta strong,
.sys-content p {
  color: var(--goth-accent);
}

.music-controls button {
  background: color-mix(in srgb, var(--goth-panel-raised) 86%, transparent);
  border-color: color-mix(in srgb, var(--goth-border) 82%, transparent);
}

.gothic-site .music-content {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  padding: 0;
  align-items: center;
}

.gothic-site .music-content > img {
  width: 70px;
  height: 54px;
}

.gothic-site .music-meta {
  min-width: 0;
}

.gothic-site .music-meta strong,
.gothic-site .music-meta span {
  display: block;
}

.gothic-site .audio-visualizer {
  grid-column: 1 / -1;
  width: 100%;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--goth-border-soft) 88%, transparent);
  background:
    linear-gradient(180deg, rgba(231, 217, 221, .025), transparent 35%),
    color-mix(in srgb, var(--goth-base) 88%, #000);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.55),
    inset 0 0 22px rgba(168, 92, 115, .08);
}

.gothic-site .music-progress {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--goth-accent);
}

.gothic-site .music-progress,
.gothic-site .volume-control input {
  height: 14px;
  accent-color: var(--goth-accent);
  cursor: pointer;
}

.gothic-site .music-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 28px) 1fr;
  gap: 6px;
  align-items: center;
}

.gothic-site .music-controls button {
  width: 28px;
  height: 24px;
  color: var(--goth-text);
  font-size: 13px;
  line-height: 1;
}

.gothic-site .music-controls button:hover,
.gothic-site .music-controls button.is-active {
  color: var(--goth-base);
  background: var(--goth-bronze);
}

.gothic-site .music-controls time {
  justify-self: end;
  color: var(--goth-text);
}

.gothic-site .volume-control {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--goth-text-muted);
  font-size: 12px;
}

.gothic-site .volume-control span {
  color: var(--goth-bronze);
}

.gothic-site .music-content nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  line-height: 1.25;
}

.side-visual-archive {
  position: relative;
  min-height: clamp(330px, 38vh, 520px);
  margin-top: 34px;
  margin-right: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.side-visual-archive img {
  display: block;
  position: absolute;
  right: clamp(-265px, -17vw, -190px);
  bottom: -64px;
  width: clamp(430px, 38vw, 560px);
  max-width: none;
  object-fit: contain;
  filter: saturate(.74) contrast(1.04) brightness(.76);
  opacity: .88;
}

.gothic-right .tag-panel {
  margin-top: clamp(42px, 5vw, 78px);
}

.footer-image-placeholder {
  display: grid;
  place-items: center;
  width: min(520px, 56vw);
  min-height: clamp(150px, 17vw, 260px);
  margin: clamp(44px, 5vw, 78px) auto clamp(22px, 3vw, 42px);
  border: 0;
  color: color-mix(in srgb, var(--goth-text-muted) 72%, transparent);
  font-size: 12px;
  letter-spacing: .04em;
  text-align: center;
  background: transparent;
}

.pre-footer-image {
  display: block;
  width: min(420px, 48vw);
  max-width: 100%;
  height: auto;
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
  opacity: .82;
  mix-blend-mode: normal;
}

.gothic-earth-footer {
  position: relative;
  margin: 0 calc(clamp(12px, 1.5vw, 22px) * -1) -22px;
  overflow: visible;
  pointer-events: none;
}

.gothic-earth-footer::before {
  content: none;
}

.gothic-earth-footer img {
  display: block;
  position: relative;
  width: 100%;
  max-width: none;
  height: auto;
  filter: saturate(.78) brightness(.72) contrast(1.04);
  opacity: .94;
}

.equalizer {
  opacity: .84;
}

.video-frame {
  border-color: color-mix(in srgb, var(--goth-border) 82%, transparent);
}

.sys-content dl span {
  background: var(--goth-green);
}

@media (max-width: 1200px) {
  .gothic-grid {
    grid-template-columns: minmax(230px, 300px) minmax(360px, 1fr) minmax(220px, 280px);
  }
}

@media (max-width: 899px), (max-height: 690px) {
  .site-screen.gothic-site {
    overflow: visible;
  }

  .gothic-page {
    padding: 10px;
  }

  .gothic-hero,
  .gothic-grid,
  .bottom-widgets {
    grid-template-columns: 1fr;
  }

  .gothic-grid > .gothic-left {
    order: 1;
  }

  .gothic-grid > .gothic-right {
    display: contents;
  }

  .gothic-grid > .gothic-right > .music-panel {
    order: 2;
  }

  .gothic-grid > .gothic-center {
    order: 3;
  }

  .gothic-grid > .gothic-right > .side-visual-archive {
    order: 4;
  }

  .gothic-grid > .gothic-right > .tag-panel {
    order: 5;
  }

  .gothic-site .post-card {
    grid-template-columns: 58px 78px minmax(0, 1fr);
  }

  .gothic-site .post-card img {
    width: 72px;
    height: 58px;
    min-width: 72px;
    max-width: 72px;
    max-height: 58px;
  }

  .gothic-hero-art,
  .gothic-computer {
    display: none;
  }

  .post-popup-overlay,
  .image-lightbox {
    padding: 8px;
  }

  .post-popup {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 24px);
    padding: 18px 14px;
  }

  .post-popup-body {
    max-height: none;
  }

  .post-popup-vine {
    top: -28px;
    left: -30px;
    width: min(230px, 58%);
    opacity: .5;
  }

  .post-popup-image img {
    max-width: 100%;
    max-height: 54dvh;
  }

  .post-popup-nav {
    display: grid;
  }

  .image-lightbox-panel {
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    padding: 10px;
  }

  .image-lightbox-img {
    max-width: calc(100vw - 34px);
    max-height: calc(100dvh - 98px);
  }

  .image-lightbox-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .image-lightbox-bar {
    grid-template-columns: minmax(0, 1fr) repeat(3, 40px);
  }

  .image-lightbox-help {
    display: none;
  }

  .image-lightbox-bar button {
    width: 40px;
    height: 36px;
  }

  .profile-object-grid {
    grid-template-columns: repeat(2, minmax(72px, 1fr));
    overflow-x: auto;
  }

  .profile-hanging-lamp {
    height: 206px;
    margin-bottom: 0;
  }

  .profile-hanging-lamp img {
    top: -2px;
    width: min(174px, 62%);
  }

  .side-visual-archive {
    min-height: 270px;
    margin-top: 18px;
    margin-right: 0;
    width: 100%;
  }

  .side-visual-archive img {
    right: -170px;
    bottom: -58px;
    width: 410px;
  }

  .gothic-earth-footer {
    margin: 0 -10px -16px;
  }

  .gothic-earth-footer img {
    width: 100%;
  }

  .feed-panel::after {
    left: 50%;
    top: 50%;
    width: 290px;
    opacity: .18;
    transform: translate(-50%, -50%);
  }

  .feed-decoration {
    height: 118px;
    margin: 0 12px;
  }

  .feed-decoration img {
    width: min(300px, 92%);
  }

  .gothic-right .tag-panel {
    margin-top: 34px;
  }

  .comment-form div {
    grid-template-columns: 1fr;
  }

  .footer-image-placeholder {
    width: min(320px, 82vw);
    min-height: 150px;
    margin-top: 36px;
    margin-bottom: 52px;
  }

  .pre-footer-image {
    width: min(280px, 72vw);
  }
}
