:root {
  --xp-blue: #245edb;
  --xp-dark: #05060a;
  --xp-gray: #c0c0c0;
  --xp-light: #e3e3e3;
  --evil-red: #e02424;
  --evil-deep: #150009;
  --glass: rgba(5, 5, 8, 0.9);
}

/* reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100vh;
  background: #000;
}

/* base body + VHS-ish backdrop */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    url("https://i.imgur.com/Y98tKnB.jpeg") center center / cover fixed no-repeat,
    radial-gradient(circle at top, #222 0, #000 55%),
    repeating-linear-gradient(90deg, #050509 0, #050509 1px, #000 1px, #000 4px);
  color: #f5f5f5;
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  letter-spacing: 0.02em;
  overflow: hidden;
  position: relative;
  filter: contrast(1.05) saturate(1.08) blur(0.4px);
}

/* grain + scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.25) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: soft-light;
  opacity: 0.3;
  z-index: 0;
}

/* vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    transparent 0,
    transparent 40%,
    rgba(0, 0, 0, 0.9) 100%
  );
  opacity: 0.9;
  z-index: 0;
}

/* desktop */
.desktop {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 12px;
  animation: lowFpsDrift 10s steps(4, end) infinite alternate;
}

@keyframes lowFpsDrift {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(1px, 0);
  }
  50% {
    transform: translate(-1px, 1px);
  }
  75% {
    transform: translate(1px, -1px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* fake XP taskbar */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: linear-gradient(to top, #0b1c55, #2070df);
  border-top: 1px solid #1c294e;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 4px;
  z-index: 4;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(to bottom, #3fbf4a, #0f6a1a);
  border-radius: 4px;
  padding: 3px 10px 4px;
  border: 1px solid #0a3d10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  text-shadow: 0 1px 0 #000;
  cursor: pointer;
}

.start-btn span.logo {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: conic-gradient(
    from 45deg,
    #00ff00,
    #00ffff,
    #ff0000,
    #ffff00,
    #00ff00
  );
}

/* shared XP task buttons */
.task-label,
.task-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 18px 5px;
  margin-left: 4px;
  border-radius: 3px;
  border: 1px solid #234a9c;
  background: linear-gradient(to bottom, #4f81e5, #2853b9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 0 rgba(0, 0, 0, 0.45);
  font-size: 11px;
  color: #ffffff;
  text-shadow: 0 1px 0 #000;
  white-space: nowrap;
}

.task-label {
  cursor: default;
}

.task-item {
  cursor: pointer;
}

/* active */
.task-item.active,
.task-label.active {
  background: linear-gradient(to bottom, #729af0, #3463c9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 rgba(0, 0, 0, 0.4);
}

.task-clock {
  margin-left: auto;
  font-size: 11px;
  color: #e5edf9;
  text-shadow: 0 1px 0 #000;
}

/* main bio window */
.bio-window {
  position: relative;
  width: 440px;
  max-width: 100%;
  font-size: 13px;
  background: var(--glass);
  border-radius: 6px;
  border: 2px solid #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  animation: windowPop 0.9s steps(4, end);
  backdrop-filter: blur(6px);
  image-rendering: pixelated;
  transition:
    transform 0.4s steps(3, end),
    filter 0.4s steps(3, end),
    opacity 0.25s ease-out;
  filter: blur(0.4px);
  z-index: 2;
}

.bio-window:hover {
  transform: translateY(-1px);
  filter: blur(0.3px) brightness(1.05);
}

.bio-window.closed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
}

@keyframes windowPop {
  0% {
    transform: translateY(16px) scale(0.93);
    opacity: 0;
  }
  40% {
    transform: translateY(-4px) scale(1.03);
    opacity: 1;
  }
  70% {
    transform: translateY(2px) scale(0.99);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.bio-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: linear-gradient(to right, #04040a, #7b0000);
  border-bottom: 1px solid #2a0000;
  color: #f3f3f3;
  font-size: 12px;
  text-shadow: 0 1px 0 #000;
  cursor: move;
  user-select: none;
}

/* disable smooth transitions while dragging */
.bio-window.dragging {
  transition: none !important;
}

/* stop desktop drift while dragging */
.desktop.no-drift {
  animation: none !important;
}

.title-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: radial-gradient(
    circle at 30% 20%,
    #fff 0,
    #ff6363 30%,
    #3b0000 80%
  );
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.8);
}

.bio-titlebar-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-buttons {
  display: flex;
  gap: 3px;
}

.win-btn {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid #1b1b1b;
  background: linear-gradient(to bottom, #dadada, #8f8f8f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
  cursor: default;
  transition:
    background 0.25s steps(2, end),
    transform 0.25s steps(2, end);
}

.win-btn.close {
  background: linear-gradient(to bottom, #ff7878, #a40000);
  color: #fff;
  border-color: #4b0000;
}

.win-btn:hover {
  transform: translateY(-1px);
}

/* XP menu bar in bio window */
.menu-bar {
  display: flex;
  gap: 10px;
  padding: 3px 8px;
  background: linear-gradient(to bottom, #fdfdfd, #d7d7d7);
  border-bottom: 1px solid #8b8b8b;
  font-size: 11px;
  color: #000;
}

.menu-item {
  padding: 1px 6px;
  border-radius: 2px;
  user-select: none;
  cursor: default;
}

.menu-item:hover,
.menu-item.pressed {
  background: #316ac5;
  color: #fff;
}

.bio-inner {
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
  gap: 8px;
}

/* profile section */
.profile {
  display: flex;
  gap: 10px;
}

.pfp-wrap {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 5px;
  border: 1px solid #111;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.15), transparent 55%),
    #050509;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 15px rgba(255, 0, 0, 0.4);
  image-rendering: pixelated;
}

.pfp {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.8) contrast(1.3) brightness(0.7);
  transform: scale(1.08);
  animation: pfpGlitch 5s steps(3, end) infinite;
}

.pfp-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0,
    rgba(0, 0, 0, 0.6) 1px,
    transparent 1px,
    transparent 2px
  );
  mix-blend-mode: soft-light;
  pointer-events: none;
}

@keyframes pfpGlitch {
  0%,
  82%,
  100% {
    transform: translate(0, 0) scale(1.08);
  }
  84% {
    transform: translate(2px, -1px) scale(1.08);
  }
  86% {
    transform: translate(-3px, 1px) scale(1.08);
  }
  88% {
    transform: translate(1px, 2px) scale(1.08);
  }
  90% {
    transform: translate(0, -1px) scale(1.08);
  }
}

.profile-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.name {
  font-size: 18px;
  font-weight: 600;
  text-shadow:
    0 1px 0 #000,
    0 0 8px rgba(255, 0, 0, 0.6);
}

.tagline {
  font-size: 11px;
  color: #d0d0d0;
  opacity: 0.9;
}

.tagline span {
  color: var(--evil-red);
}

.status-chip {
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 999px;
  border: 1px solid #510000;
  background: radial-gradient(circle at top, #590000, #160000);
  color: #ffdbdb;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
}

.led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff7878, #ff0000);
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.9);
  animation: ledPulse 1.2s steps(2, end) infinite alternate;
}

@keyframes ledPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* tiny equalizer */
.mini-eq {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}

.mini-bar {
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(to top, #660000, #ff0000);
  animation: eqBounce 1.2s steps(3, end) infinite;
  transform-origin: bottom;
}

.mini-bar:nth-child(2) {
  animation-delay: 0.1s;
}
.mini-bar:nth-child(3) {
  animation-delay: 0.2s;
}
.mini-bar:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes eqBounce {
  0%,
  100% {
    height: 5px;
  }
  50% {
    height: 15px;
  }
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin: 4px 0 5px;
}

/* tabs */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.tab-btn {
  flex: 1;
  font-size: 11px;
  padding: 4px 0;
  border-radius: 3px 3px 0 0;
  border: 1px solid #151515;
  border-bottom: none;
  background: linear-gradient(to bottom, #2b2b2b, #171717);
  color: #e5e5e5;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.15) inset;
  transition:
    background 0.3s steps(3, end),
    color 0.3s steps(3, end),
    transform 0.3s steps(3, end);
}

.tab-btn.active {
  background: linear-gradient(to bottom, #420000, #130000);
  border-color: #4b0000;
  color: #ffcccc;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.22) inset;
  transform: translateY(-1px);
}

.tab-panels {
  border: 1px solid #151515;
  border-radius: 0 3px 3px 3px;
  background:
    radial-gradient(circle at top left, rgba(255, 0, 0, 0.18), transparent 55%),
    #050507;
  padding: 8px;
  font-size: 11px;
  min-height: 180px;
  max-height: 240px;
  overflow: hidden;
  display: flex;
}

.tab-panel {
  display: none;
  width: 100%;
  overflow-y: auto;
  padding-right: 4px;
}

.tab-panel.active {
  display: block;
  animation: panelFade 0.45s steps(4, end);
}

@keyframes panelFade {
  0% {
    opacity: 0;
    transform: translateY(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-hint {
  position: sticky;
  bottom: 0;
  padding-top: 6px;
  margin-top: 6px;
  font-size: 9px;
  text-align: right;
  color: #888;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

/* bio text */
.bio-text p {
  margin-bottom: 6px;
  line-height: 1.45;
  color: #dedede;
}

.bio-text p span {
  color: var(--evil-red);
}

/* links */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.link-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: radial-gradient(circle at 20% 20%, #fff, #ff0000 45%, #000 90%);
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.6);
  flex-shrink: 0;
}

.link-label {
  flex: 1;
  font-size: 11px;
  color: #e5e5e5;
}

.link-btn {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid #404040;
  background: linear-gradient(to bottom, #f6f6f6, #c2c2c2);
  color: #101010;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 1px 0 0 rgba(0, 0, 0, 0.8);
  cursor: pointer;
  white-space: nowrap;
  transition:
    filter 0.25s steps(3, end),
    transform 0.25s steps(3, end),
    box-shadow 0.25s steps(3, end);
}

.link-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.link-btn:active {
  transform: translateY(0);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 0 0 rgba(0, 0, 0, 0.8);
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 8px;
}

.field-label {
  font-size: 10px;
  color: #bbbbbb;
  margin-bottom: 2px;
}

.fake-input,
.fake-textarea {
  width: 100%;
  border-radius: 3px;
  border: 1px solid #383838;
  background: #050506;
  color: #e5e5e5;
  font-size: 11px;
  padding: 4px 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  image-rendering: pixelated;
}

.fake-textarea {
  height: 60px;
  resize: none;
}

.send-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  gap: 6px;
  align-items: center;
}

.send-btn {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 3px;
  border: 1px solid #510000;
  background: linear-gradient(to bottom, #ff4d4d, #860000);
  color: #fff;
  text-shadow: 0 1px 0 #000;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 2px 0 0 #2b0000;
  transition:
    transform 0.25s steps(3, end),
    filter 0.25s steps(3, end),
    box-shadow 0.25s steps(3, end);
}

.send-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.send-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 0 0 #2b0000;
}

.contact-note {
  font-size: 9px;
  color: #929292;
}

.email-link {
  color: #ffb4b4;
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: pointer;
}

/* bottom strip inside window */
.bottom-strip {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid #120000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: #aaa;
}

.bottom-strip .highlight {
  color: #ff7070;
}

.tiny-leds {
  display: flex;
  gap: 3px;
  align-items: center;
}

.tiny-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #222;
}

.tiny-dot.on {
  background: #ff0000;
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.9);
}

/* fake old YouTube window */
.yt-window {
  position: absolute;
  top: 50px;
  left: 50%;
  width: 840px;
  max-width: 98vw;
  transform: translateX(-50%);
  background: #f3f3f3;
  border-radius: 6px;
  border: 2px solid #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 24px 50px rgba(0, 0, 0, 0.9);
  z-index: 3;
  overflow: hidden;
  image-rendering: pixelated;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s steps(3, end);
}

/* softer shadow when window touches taskbar */
.bio-window.touch-taskbar,
.yt-window.touch-taskbar,
.tip-window.touch-taskbar,
.explorer-window.touch-taskbar {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 8px 18px rgba(0, 0, 0, 0.7);
}

.yt-window.visible {
  opacity: 1;
  pointer-events: auto;
}

/* wider when expanded */
.yt-window.expanded {
  width: 1000px;
  max-width: 99vw;
}

/* pop animation */
.yt-window.pop {
  animation: ytPop 0.6s steps(4, end);
}

@keyframes ytPop {
  0% {
    transform: translateX(-50%) scale(0.9);
    opacity: 0;
  }
  60% {
    transform: translateX(-50%) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

/* laggy Y2K feel on chrome, not video */
.yt-inner {
  padding: 10px 12px 12px;
  font-size: 12px;
  animation: ytLag 8s steps(5, end) infinite alternate;
}

.yt-window.dragging .yt-inner,
.yt-window.nodrift .yt-inner {
  animation: none !important;
}

@keyframes ytLag {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(1px, -0.5px);
  }
  50% {
    transform: translate(-1px, 0.5px);
  }
  75% {
    transform: translate(0.5px, 1px);
  }
  100% {
    transform: translate(0, 0);
  }
}

.yt-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 8px;
  background: linear-gradient(to right, #0b1631, #23427a);
  border-bottom: 1px solid #000814;
  color: #f2f5ff;
  font-size: 11px;
  text-shadow: 0 1px 0 #000;
  cursor: move;
  user-select: none;
}

.yt-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-favicon {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  background: radial-gradient(
    circle at 30% 30%,
    #fff,
    #ff0000 50%,
    #5a0000 90%
  );
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.yt-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-window-buttons {
  display: flex;
  gap: 3px;
}

.yt-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: linear-gradient(to bottom, #ececec, #d0d0d0);
  border-bottom: 1px solid #b2b2b2;
  font-size: 10px;
}

.yt-chrome-btns {
  display: flex;
  gap: 3px;
}

.chrome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

.chrome-dot.red {
  background: #ff5c5c;
}
.chrome-dot.yellow {
  background: #ffeb5c;
}
.chrome-dot.green {
  background: #6bff5c;
}

.yt-address-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid #9a9a9a;
  background: #fafafa;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.yt-lock-icon {
  width: 8px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid #555;
  background: linear-gradient(to bottom, #f8f8f8, #bbbbbb);
}

.yt-address-text {
  font-family: "Tahoma", sans-serif;
  font-size: 10px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #d2d2d2;
  padding-bottom: 6px;
}

.yt-logo {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #222;
}

.yt-logo span {
  background: #cc181e;
  color: #fff;
  padding: 1px 4px;
  border-radius: 2px;
  margin-left: 2px;
}

.yt-search {
  display: flex;
  gap: 4px;
}

.yt-search input {
  width: 150px;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 2px;
  border: 1px solid #aaa;
}

.yt-search button {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid #999;
  background: linear-gradient(to bottom, #ffffff, #dedede);
  cursor: pointer;
}

.yt-main {
  display: grid;
  grid-template-columns: 2.1fr 0.9fr;
  gap: 10px;
}

.yt-player-frame {
  position: relative;
  width: 100%;
  border-radius: 4px;
  border: 1px solid #444;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #000;
}

/* animation on video swap */
.yt-player-frame.loading {
  animation: ytLoadFlash 0.5s steps(3, end);
}

@keyframes ytLoadFlash {
  0% {
    transform: scale(0.97);
    opacity: 0.4;
  }
  60% {
    transform: scale(1.01);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.yt-player-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.yt-player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(0.75) contrast(0.95) sepia(0.08);
}

.yt-video-meta {
  margin-top: 6px;
  font-size: 11px;
  color: #111;
}

.yt-video-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}

/* channel row + fake subscribe */
.yt-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.yt-channel-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-channel-avatar {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #666;
  background: #000;
}

.yt-channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.yt-channel-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.yt-channel-name {
  font-size: 11px;
  font-weight: 700;
}

.yt-channel-tagline {
  font-size: 9px;
  color: #555;
}

.yt-sub-btn {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 2px;
  border: 1px solid #b4281a;
  background: linear-gradient(to bottom, #f2522e, #c01f15);
  color: #fff;
  text-shadow: 0 1px 0 #000;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 1px 0 rgba(0, 0, 0, 0.6);
}

/* sidebar (related videos) */
.yt-sidebar {
  font-size: 10px;
  color: #111;
  display: flex;
  flex-direction: column;
}

.yt-side-heading {
  font-weight: 700;
  margin-bottom: 4px;
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 3px;
}

.yt-sidebar-list {
  margin-top: 2px;
  height: calc(100% - 20px);
  overflow-y: scroll;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* hide scrollbar in related videos, keep scroll */
.yt-sidebar-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.yt-side-item {
  display: flex;
  gap: 6px;
  margin-bottom: 5px;
  padding: 3px 2px;
  border-radius: 2px;
  cursor: pointer;
}

.yt-side-item:hover {
  background: #e3e3e3;
}

.yt-thumb {
  width: 96px;
  height: 54px;
  border-radius: 2px;
  border: 1px solid #555;
  overflow: hidden;
  background: #000;
}

.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.2) saturate(0.9);
  image-rendering: pixelated;
}

.yt-side-text {
  flex: 1;
}

.yt-side-title {
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 1px;
}

.yt-side-channel {
  font-size: 9px;
  color: #555;
}

/* scrollbars for bio/tab panels */
.tab-panel::-webkit-scrollbar {
  width: 6px;
}
.tab-panel::-webkit-scrollbar-track {
  background: #050507;
}
.tab-panel::-webkit-scrollbar-thumb {
  background: #2b2b2b;
  border-radius: 3px;
}

/* screen shake for send */
@keyframes screenShake {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-2px, 1px);
  }
  40% {
    transform: translate(2px, -1px);
  }
  60% {
    transform: translate(-1px, -1px);
  }
  80% {
    transform: translate(1px, 2px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* XP-style Notepad window */
.tip-window {
  position: absolute;
  top: 20px;
  right: 40px;
  width: 430px;         /* was 360px */
  max-width: 85vw;
  background: #d4d0c8;
  border-radius: 4px;
  border: 2px solid #003399;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7),
    0 16px 30px rgba(0, 0, 0, 0.8);
  font-size: 11px;
  color: #000;
  z-index: 4;
  overflow: hidden;
  filter: blur(0.25px) contrast(1.02);
  image-rendering: pixelated;
}

/* subtle scanline overlay on Notepad only */
.tip-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.04) 0,
    rgba(0, 0, 0, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

/* Notepad body */
.tip-body {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 260px;
}

/* Notepad-style menu bar inside window */
.tip-menu-bar {
  display: flex;
  gap: 8px;
  padding: 3px 8px 4px;
  font-size: 11px;
  background: linear-gradient(to bottom, #fdfdfd, #d8d8d8);
  border-bottom: 1px solid #a0a0a0;
}

.tip-menu-item {
  user-select: none;
  cursor: default;
  padding: 0 4px;
  border-radius: 2px;
}

.tip-menu-item.pressed {
  background: #316ac5;
  color: #fff;
}

/* Notepad text area */
.tip-notepad {
  flex: 1;
  padding: 8px 10px 10px;
  background: #ffffff;
  overflow-y: auto;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 12px;
  color: #000;
  white-space: pre-wrap;
  text-align: left;
  line-height: 1.4;
  outline: none;
  cursor: text;
  image-rendering: pixelated;
  filter: blur(0.25px);
  caret-color: #000;
}

/* XP-style status bar at bottom of Notepad */
.tip-statusbar {
  height: 18px;
  padding: 2px 8px;
  background: #d4d0c8;
  border-top: 1px solid #a0a0a0;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #000;
}

.tip-statusbar.saving {
  background: #316ac5;
  color: #ffffff;
}

.tip-status-left,
.tip-status-right {
  white-space: nowrap;
}

/* pop animation for Notepad */
.tip-window.tip-pop {
  animation: tipPop 0.65s steps(4, end);
}

@keyframes tipPop {
  0% {
    transform: translateY(-8px) scale(0.9);
    opacity: 0;
  }
  60% {
    transform: translateY(2px) scale(1.03);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.tip-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  background: linear-gradient(to right, #0b3a9a, #4c74d4);
  border-bottom: 1px solid #001a4a;
  color: #fff;
  text-shadow: 0 1px 0 #000;
  cursor: move;
  user-select: none;
}

.tip-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: radial-gradient(
    circle at 30% 30%,
    #fff,
    #ffcc00 50%,
    #c58b00 90%
  );
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

.tip-title-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.tip-close-btn {
  border: 1px solid #1b1b1b;
  background: linear-gradient(to bottom, #dadada, #8f8f8f);
  width: 18px;
  height: 16px;
  border-radius: 2px;
  color: #111;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.tip-close-btn:hover {
  filter: brightness(1.05);
}

/* mobile-only notice */
.mobile-notice {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.88);
  color: #f5f5f5;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-out;
}

/* fake dead pixel */
.dead-pixel {
  position: fixed;
  width: 3px;
  height: 3px;
  background: #000;
  box-shadow:
    0 0 2px rgba(0, 0, 0, 0.9),
    0 0 1px rgba(255, 255, 255, 0.4);
  z-index: 9999;
  pointer-events: none;
  image-rendering: pixelated;
}

/* full-screen color flicker */
body.screen-flicker {
  filter: contrast(1.3) saturate(0.4) hue-rotate(210deg) blur(0.8px);
}

/* responsive */
@media (max-width: 480px) {
  body {
    padding: 0;
  }

  .bio-window {
    width: 92%;       /* keep mobile width */
    font-size: 11px;  /* override the 13px desktop size */
  }

  .profile {
    gap: 8px;
  }
  .name {
    font-size: 16px;
  }
  .tab-panels {
    min-height: 140px;
    max-height: 190px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  /* no drag cursor on mobile */
  .bio-titlebar {
    cursor: default;
  }
  .yt-titlebar {
    cursor: default;
  }

  .yt-window,
  #ytTaskBtn,
  #tipTaskBtn {
    display: none !important;
  }

  .tip-window {
    display: none !important;
  }

  .mobile-notice {
    opacity: 1;
    pointer-events: auto;
  }
}