*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: url("6.webp") no-repeat center center fixed;
  background-size: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #d9d7ce;
  height: 100vh;
  overflow: hidden;
  user-select: none;
}

.terminal-input,
.terminal-input-wrapper input,
.files-new {
  user-select: text;
}

::selection {
  background: rgba(136, 8, 8, 0.32);
}

#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #080808;
  border-bottom: 1px solid rgba(136, 8, 8, 0.4);
  z-index: 10000;
}

#topbar .left {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 18px;
  color: #880808;
  text-shadow: 0 0 14px rgba(136, 8, 8, 0.6), 0 0 30px rgba(136, 8, 8, 0.25);
  text-transform: lowercase;
}

#topbar .center {
  flex: 1;
  display: flex;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

#topbar .right {
  font-size: 18px;
  cursor: pointer;
}

#desktop {
  padding: 60px 20px 80px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
}

.icon {
  width: 80px;
  text-align: center;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px 8px;
  border-radius: 14px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.icon:hover {
  background: rgba(136, 8, 8, 0.18);
  transform: translateY(-2px);
}

.icon span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

.window {
  position: absolute;
  width: 520px;
  height: 400px;
  background: rgba(10, 10, 10, 0.97);
  color: #d9d7ce;
  border-radius: 14px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  resize: both;
  min-width: 280px;
  min-height: 200px;
  max-width: 100vw;
  max-height: calc(100vh - 44px);
}

.window.focused {
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(136, 8, 8, 0.5);
}

.window.maximized {
  top: 44px !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 44px) !important;
  border-radius: 0;
  resize: none;
}

.window[data-app="browser"] {
  width: min(920px, calc(100vw - 20px));
  height: min(520px, calc(100vh - 114px));
  resize: none;
}

.window[data-app="avatars"] {
  width: 340px;
  height: 480px;
  resize: none;
}

.titlebar {
  flex-shrink: 0;
  background: rgba(18, 18, 18, 0.99);
  padding: 9px 12px;
  cursor: grab;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.titlebar:active {
  cursor: grabbing;
}

.titlebar .title {
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.85);
}

.titlebar .buttons {
  display: flex;
  gap: 6px;
}

.titlebar button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: filter 0.1s;
}

.titlebar button:hover {
  filter: brightness(1.25);
}

.titlebar button.min {
  background: #f1c40f;
}

.titlebar button.max {
  background: #2ecc71;
}

.titlebar button.close {
  background: #e74c3c;
}

.content {
  flex: 1;
  min-height: 0;
  padding: 12px;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

#taskbar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 80px;
  max-width: 90vw;
  height: 48px;
  background: rgba(6, 6, 6, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 4px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(136, 8, 8, 0.2);
  z-index: 9999;
}

.task-item {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.12s ease;
}

.task-item:hover {
  background: rgba(136, 8, 8, 0.18);
  transform: translateY(-1px);
}

.task-item.active {
  background: rgba(136, 8, 8, 0.28);
}

.taskbar-icon {
  font-size: 14px;
}

.terminal {
  flex: 1;
  min-height: 0;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.terminal-output {
  flex: 1;
  min-height: 0;
  padding: 14px 14px 8px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.terminal-output div {
  margin-bottom: 3px;
}

.terminal-input-wrapper {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 8px 10px;
  gap: 6px;
}

.terminal-input {
  flex: 1;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  caret-color: #8efb5c;
}

.prompt {
  color: #8efb5c;
  font-weight: 600;
}

.prompt-symbol {
  color: rgba(142, 251, 92, 0.55);
}

.cwd {
  color: rgba(142, 251, 92, 0.65);
}

.cmd {
  color: rgba(235, 235, 235, 0.9);
}

.ls-dir {
  color: #7ad1ff;
}

.ls-file {
  color: rgba(235, 235, 235, 0.8);
}

.files {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 8px;
}

.files-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.files-toolbar button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  transition: background 0.1s;
}

.files-toolbar button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.files-path {
  flex: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-toolbar input {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.4);
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

.files-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px;
  background: rgba(0, 0, 0, 0.35);
}

.files-entry {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.12s;
}

.files-entry:hover {
  background: rgba(255, 255, 255, 0.08);
}

.files-entry .name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.files-empty {
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

.file-viewer {
  white-space: pre-wrap;
  overflow: auto;
  height: 100%;
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.plagues-app {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 10px;
}

.plagues-app h1 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(136, 8, 8, 0.9);
  flex-shrink: 0;
}

.plagues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 2px;
}

.plague-card {
  --accent: #880808;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plague-card:nth-child(2) {
  --accent: #9e0a0a;
}

.plague-card:nth-child(3) {
  --accent: #720606;
}

.plague-card:nth-child(4) {
  --accent: #950909;
}

.plague-card:nth-child(5) {
  --accent: #7d0808;
}

.plague-card:nth-child(6) {
  --accent: #5e0404;
}

.plague-card-header {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--accent);
  outline: none;
  flex-shrink: 0;
}

.plague-card-content {
  flex: 1;
  outline: none;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 8px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(210, 210, 210, 0.85);
  white-space: pre-wrap;
  overflow: auto;
  min-height: 58px;
}

.avatars-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  gap: 12px;
}

.avatar-name-display {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #880808;
  text-shadow: 0 0 18px rgba(136, 8, 8, 0.65), 0 0 40px rgba(136, 8, 8, 0.25);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    text-shadow: 0 0 18px rgba(136, 8, 8, 0.65), 0 0 40px rgba(136, 8, 8, 0.25);
  }

  50% {
    text-shadow: 0 0 28px rgba(136, 8, 8, 0.9), 0 0 60px rgba(136, 8, 8, 0.45);
  }
}

.avatar-nav-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar-nav-btn {
  background: rgba(136, 8, 8, 0.12);
  border: 1px solid rgba(136, 8, 8, 0.35);
  color: #880808;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-family: inherit;
}

.avatar-nav-btn:hover {
  background: rgba(136, 8, 8, 0.28);
}

.avatar-counter {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  min-width: 36px;
  text-align: center;
}

.avatar-link {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid rgba(136, 8, 8, 0.4);
  background: rgba(136, 8, 8, 0.1);
  color: #880808;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.15s;
}

.avatar-link:hover {
  background: rgba(136, 8, 8, 0.25);
}

.avatar-dots {
  display: flex;
  gap: 7px;
}

.avatar-img-wrap {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(28, 0, 0, 0.92) 0%, rgba(4, 0, 0, 0.98) 100%);
  border: 1.5px solid rgba(136, 8, 8, 0.45);
  box-shadow: 0 0 0 1px rgba(136, 8, 8, 0.08), 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 28px rgba(136, 8, 8, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.avatar-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 700;
  color: rgba(136, 8, 8, 0.6);
  text-transform: uppercase;
  user-select: none;
}

.avatar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.15s;
  cursor: pointer;
}

.avatar-dot.active {
  background: #880808;
}

.diseases-app {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.diseases-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px;
}

.disease-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(136, 8, 8, 0.55);
  border-radius: 10px;
  padding: 10px 12px;
}

.disease-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.disease-info {
  flex: 1;
  min-width: 0;
}

.disease-username {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disease-vrchat-id {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.disease-date {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.disease-id-link {
  color: rgba(136, 8, 8, 0.85);
  text-decoration: none;
}

.disease-id-link:hover {
  color: #880808;
  text-decoration: underline;
}

.diseases-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(136, 8, 8, 0.22);
}

.diseases-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(136, 8, 8, 0.9);
  text-transform: uppercase;
}

.diseases-zoom-note {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.3px;
}

img.disease-thumb {
  cursor: pointer;
  transition: opacity 0.12s, box-shadow 0.12s;
}

img.disease-thumb:hover {
  opacity: 0.85;
  box-shadow: 0 0 0 2px rgba(136, 8, 8, 0.5);
}

.disease-thumb-empty {
  background: rgba(136, 8, 8, 0.06);
}

#zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  cursor: pointer;
}

#zoom-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#zoom-img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(136, 8, 8, 0.25);
  transform: scale(0.92);
  transition: transform 0.18s ease;
  cursor: default;
}

#zoom-overlay.active #zoom-img {
  transform: scale(1);
}

.icon svg {
  display: block;
  margin: 0 auto;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

* {
  scrollbar-width: none;
}

.loading {
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

@media (max-width: 940px) {
  .window[data-app="browser"] {
    width: calc(100vw - 20px);
  }

  .window[data-app="browser"] .plagues-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .window {
    width: calc(100vw - 16px) !important;
    left: 8px !important;
    min-width: unset;
    resize: none !important;
  }

  .window[data-app="browser"] {
    height: calc(100vh - 114px);
  }

  .window[data-app="browser"] .plagues-grid {
    grid-template-columns: 1fr;
  }

  #desktop {
    padding: 54px 12px 70px;
    gap: 4px;
  }

  #taskbar {
    max-width: 96vw;
    bottom: 8px;
    height: 44px;
    padding: 0 8px;
  }

  .task-item {
    padding: 4px 8px;
    font-size: 11px;
  }
}

.window[data-app="hr"] {
  width: 460px;
  height: 600px;
  resize: none;
}

.hr-app {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.hr-side {
  width: 32px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 12px 0;
}

.hr-side span {
  font-size: 15px;
  font-weight: 700;
  color: rgba(136, 8, 8, 0.4);
  line-height: 1.4;
  text-transform: uppercase;
  user-select: none;
}

.hr-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
}

.hr-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 18px 0;
}

.hr-role {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #880808;
  text-shadow: 0 0 18px rgba(136, 8, 8, 0.6), 0 0 40px rgba(136, 8, 8, 0.2);
  text-align: center;
}

.hr-avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(136, 8, 8, 0.55);
  box-shadow: 0 0 0 1px rgba(136, 8, 8, 0.12), 0 8px 28px rgba(0, 0, 0, 0.75), 0 0 22px rgba(136, 8, 8, 0.1);
  overflow: hidden;
  background: rgba(8, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hr-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hr-avatar-letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 700;
  color: rgba(136, 8, 8, 0.5);
  text-transform: uppercase;
  user-select: none;
}

.hr-name {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(136, 8, 8, 0.75);
  text-transform: uppercase;
  text-align: center;
}

.hr-empty {
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 2px;
}

.hr-divider {
  width: 70%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(136, 8, 8, 0.45), transparent);
  flex-shrink: 0;
}