/* sad_pho — designer pass · g0JTP office + Winamp tracker */

:root {
  --bg-deep: #0c0907;
  --bg-warm: #18120e;
  --phosphor: #5efc4a;
  --phosphor-dim: #2a5c24;
  --phosphor-glow: rgba(94, 252, 74, 0.28);
  --desk-lamp: rgba(255, 168, 72, 0.14);
  --monitor-green: #081208;
  --monitor-glow: #3dff14;
  --crt-green: #6fdc6f;
  --winamp-beige: #c8c0b4;
  --winamp-face: #b0a898;
  --winamp-gray: #9a9288;
  --winamp-dark: #2a2824;
  --winamp-panel: #121210;
  --winamp-border: #5a544c;
  --winamp-highlight: #e0d8cc;
  --winamp-shadow: #1a1814;
  --accent-orange: #ff9a4d;
  --accent-pink: #ff6eb4;
  --accent-yellow: #ffd84a;
  --pho-orange: #ff7a00;
  --pho-orange-bright: #ffaa00;
  --pho-orange-mid: #ff8800;
  --pho-orange-dim: #e06800;
  --pho-orange-deep: #c05000;
  --pho-amber: #ffcc00;
  --pho-warm: #ffe8b0;
  --cheeto: #ff9500;
  --cheeto-bright: #ffaa18;
  --cheeto-glow: #ffbb33;
  --pixel-shadow: #060504;
  --icon-chip: rgba(6, 12, 6, 0.62);
  --taskbar: #3a342c;
  --taskbar-top: #524a40;
  --font-pixel: "Press Start 2P", monospace;
  --font-terminal: "VT323", monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 12% 55%, var(--desk-lamp) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 18%, rgba(94, 252, 74, 0.05) 0%, transparent 50%),
    var(--bg-deep);
  color: #e8dcc8;
  font-family: var(--font-terminal);
  font-size: 20px;
  overflow-x: hidden;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* CRT atmosphere */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background:
    repeating-linear-gradient(
      0deg,
      var(--crt-scan, rgba(0, 0, 0, 0.09)) 0px,
      rgba(0, 0, 0, 0.09) 1px,
      transparent 1px,
      transparent 3px
    );
  opacity: 0.32;
}

.crt-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.25) 100%);
  opacity: 0.6;
}

/* Main scene */
.scene {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: calc(100vh - 2.75rem);
  overflow: hidden;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 80% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: contrast(1.07) saturate(1.1) sepia(0.1) brightness(0.97);
  z-index: 0;
}

/* Top-right desktop zone */
.screen-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 50%;
  z-index: 4;
  pointer-events: none;
}

.screen-corner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 72% 28%, rgba(94, 252, 74, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.desktop-hud {
  position: absolute;
  top: clamp(0.35rem, 1.5vw, 0.85rem);
  right: clamp(0.5rem, 2vw, 1.25rem);
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(0.2rem, 0.65vw, 0.3rem);
  color: var(--phosphor);
  text-shadow: 0 0 8px var(--phosphor-glow);
  opacity: 0.75;
  letter-spacing: 0.04em;
  pointer-events: auto;
  z-index: 4;
  user-select: none;
}

.desktop-icons {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  background-image:
    linear-gradient(to right, rgba(94, 252, 74, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(94, 252, 74, 0.04) 1px, transparent 1px);
  background-size: var(--grid-cell-w, 88px) var(--grid-cell-h, 96px);
  background-position: var(--grid-pad-x, 16px) var(--grid-pad-y, 20px);
}

.desktop-icons.is-dealing {
  pointer-events: none;
}

.desktop-icons:not(.is-dealing):not(.is-dealt) .desktop-icon {
  opacity: 0;
}

.scene.is-video-mode .desktop-icons {
  display: none;
}

.screen-corner.is-video-mode .desktop-hud {
  display: none;
}

/* Reel player */
.monitor-video {
  position: absolute;
  inset: clamp(0.5rem, 2vw, 1rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 0;
  pointer-events: auto;
  border-radius: 2px;
  overflow: hidden;
}

.screen-corner.is-video-mode .monitor-video {
  background: rgba(6, 5, 4, 0.94);
  border: 3px solid var(--winamp-gray);
  box-shadow:
    4px 4px 0 var(--pixel-shadow),
    0 0 20px rgba(94, 252, 74, 0.08);
}

.monitor-video[hidden] {
  display: none;
}

.monitor-video-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.28rem 0.4rem;
  background: linear-gradient(180deg, #5a5248 0%, var(--winamp-dark) 100%);
  border-bottom: 2px solid #1a1814;
  font-family: var(--font-pixel);
  font-size: clamp(0.28rem, 0.75vw, 0.34rem);
  flex-shrink: 0;
}

.monitor-video-title {
  color: var(--accent-yellow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 0 #000;
}

.monitor-video-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.monitor-video-yt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  background: #c00;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.3rem;
  text-decoration: none;
  line-height: 1;
  box-shadow: 2px 2px 0 #000;
}

.monitor-video-yt:hover {
  background: #e22;
}

.monitor-video-close {
  background: #e44;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 #000;
}

.monitor-video-close:hover {
  background: #f66;
}

.monitor-video-frame {
  flex: 1;
  min-height: 0;
  background: #000;
  position: relative;
}

.screen-corner.is-video-mode .monitor-video-frame {
  min-height: clamp(120px, 22vh, 280px);
}

.monitor-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.4;
}

.monitor-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  background: #000;
  object-fit: contain;
}

.monitor-video-frame video[hidden] {
  display: none;
}

.monitor-video-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  color: var(--phosphor);
  text-decoration: none;
  text-align: center;
  padding: 1rem;
  line-height: 1.8;
  text-shadow: 0 0 8px var(--phosphor-glow);
}

.monitor-video-fallback:hover {
  color: #b8ffb0;
}

.monitor-video-fallback[hidden] {
  display: none;
}

/* Desktop icons */
.desktop-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: #fff;
  background: transparent;
  border: none;
  cursor: default;
  padding: 0.45rem 0.35rem 0.35rem;
  font-family: var(--font-pixel);
  font-size: clamp(0.24rem, 0.8vw, 0.36rem);
  line-height: 1.3;
  min-width: 0;
  width: 5.5rem;
  max-width: 5.5rem;
  border-radius: 4px;
  z-index: 1;
  transition:
    left 0.14s steps(4),
    top 0.14s steps(4),
    background 0.1s ease,
    outline-color 0.1s ease;
  touch-action: none;
}

.desktop-icon.is-dealing {
  pointer-events: none;
  transition:
    left 0.5s cubic-bezier(0.18, 1.12, 0.32, 1),
    top 0.5s cubic-bezier(0.18, 1.12, 0.32, 1),
    transform 0.5s cubic-bezier(0.18, 1.12, 0.32, 1),
    opacity 0.2s ease;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.desktop-icon.is-snapping {
  transition:
    left 0.22s cubic-bezier(0.34, 1.2, 0.64, 1),
    top 0.22s cubic-bezier(0.34, 1.2, 0.64, 1),
    transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.desktop-icon.is-dragging {
  z-index: 6;
  cursor: grabbing;
  opacity: 0.92;
  transition: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.desktop-icon.is-selected {
  background: rgba(94, 252, 74, 0.1);
  outline: 1px dotted rgba(94, 252, 74, 0.85);
  outline-offset: 3px;
}

.desktop-icon img {
  width: clamp(46px, 6.5vw, 72px);
  height: clamp(46px, 6.5vw, 72px);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  background: #080808;
  box-shadow:
    3px 3px 0 var(--pixel-shadow),
    inset 0 0 0 1px #3a3a3a;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s steps(2);
}

#reelIconBtn .icon-label {
  font-size: clamp(0.17rem, 0.62vw, 0.26rem);
  letter-spacing: 0.02em;
}

.icon-label {
  letter-spacing: 0.06em;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--phosphor);
  background: var(--icon-chip);
  padding: 0.2rem 0.35rem;
  border-radius: 2px;
  text-shadow:
    0 0 6px var(--phosphor-glow),
    1px 1px 0 #000;
  border: 1px solid rgba(94, 252, 74, 0.15);
}

.desktop-icon:not(.is-dragging):hover,
.desktop-icon:focus-visible {
  outline: none;
  background: rgba(94, 252, 74, 0.06);
}

.desktop-icon:not(.is-dragging):hover img,
.desktop-icon:focus-visible img {
  border-color: var(--accent-yellow);
  box-shadow:
    3px 3px 0 var(--pixel-shadow),
    0 0 12px rgba(255, 216, 74, 0.35);
}

.desktop-icon.is-selected img {
  border-color: var(--phosphor);
}

.desktop-icon.is-active {
  background: rgba(94, 252, 74, 0.08);
}

.desktop-icon.is-active img {
  border-color: var(--phosphor);
  box-shadow:
    3px 3px 0 var(--pixel-shadow),
    0 0 14px var(--phosphor-glow);
}

.desktop-icon.is-active .icon-label {
  background: rgba(94, 252, 74, 0.15);
  border-color: rgba(94, 252, 74, 0.35);
}

/* Music player — Winamp (vr5UP), sad_pho orange */
.music-player {
  position: fixed;
  bottom: 2.75rem;
  right: 1.75rem;
  z-index: 500;
  width: min(432px, calc(100vw - 2rem));
  transform-origin: bottom right;
  image-rendering: pixelated;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1),
    opacity 0.22s ease;
}

.music-player[hidden] {
  display: block;
  transform: scale(0.85) translateY(24px);
  opacity: 0;
  pointer-events: none;
}

.music-player.is-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
  filter: drop-shadow(0 0 12px rgba(255, 149, 0, 0.35));
}

.player-chrome {
  background: #e8a040;
  border: 2px solid #c06800;
  border-top-color: #ffc860;
  border-left-color: #ffc860;
  box-shadow:
    4px 4px 0 var(--pixel-shadow),
    inset 1px 1px 0 rgba(255, 220, 100, 0.55);
}

.player-titlebar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.4rem;
  background: linear-gradient(180deg, #ffc848 0%, #e88820 100%);
  border-bottom: 2px solid #a05000;
  font-family: var(--font-terminal);
  font-size: 1.15rem;
  font-weight: bold;
}

.player-title {
  color: #6a2800;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  letter-spacing: 0.02em;
}

.player-winbtns {
  display: flex;
  gap: 0.2rem;
  flex-shrink: 0;
}

.winbtn {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid #4a4840;
  background: linear-gradient(180deg, #a8a090 0%, #787068 100%);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.4);
}

.player-close {
  background: linear-gradient(180deg, #d44 0%, #a22 100%);
  border: 2px solid #4a4840;
  color: #fff;
  font-family: var(--font-terminal);
  font-size: 0.9rem;
  font-weight: bold;
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}

.player-close:hover {
  background: linear-gradient(180deg, #e55 0%, #b33 100%);
}

.player-body {
  padding: 0.35rem;
  background: #e09830;
}

.player-main {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.playlist-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.player-panel {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

/* Playlist — left column */
.playlist {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 132px;
  max-height: 132px;
  overflow-y: auto;
  border: 2px inset var(--winamp-shadow);
  background: var(--winamp-panel);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
}

.playlist-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.25rem 0.4rem;
  min-height: 2.4rem;
  border: 2px inset var(--winamp-shadow);
  background: #1a0c00;
  font-family: var(--font-terminal);
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--pho-orange-mid);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.55);
}

.playlist-meta span:first-child {
  color: var(--pho-orange-bright);
}

.playlist-meta span:last-child {
  color: var(--pho-orange-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist::-webkit-scrollbar {
  width: 6px;
}

.playlist::-webkit-scrollbar-track {
  background: #0a0a08;
}

.playlist::-webkit-scrollbar-thumb {
  background: var(--pho-orange-deep);
}

.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0.15rem 0.35rem;
  font-family: var(--font-terminal);
  font-size: 1.05rem;
  cursor: pointer;
  border-bottom: 1px solid #1a1410;
  color: var(--pho-orange-mid);
  transition: background 0.08s;
}

.playlist-item:nth-child(odd) {
  color: var(--pho-orange);
}

.playlist-item:nth-child(3),
.playlist-item:nth-child(5) {
  color: var(--pho-amber);
}

.playlist-item:nth-child(4),
.playlist-item:nth-child(6) {
  color: var(--pho-orange-dim);
}

.playlist-item:hover {
  background: rgba(255, 149, 0, 0.18);
}

.playlist-item.is-active {
  background: rgba(255, 170, 0, 0.22);
  color: #fff0c0;
}

.playlist-item .track-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-meter {
  display: flex;
  flex-direction: column-reverse;
  gap: 1px;
  flex-shrink: 0;
  width: 5px;
  height: 14px;
}

.track-meter i {
  display: block;
  height: 2px;
  background: var(--pho-orange-deep);
}

.playlist-item:nth-child(odd) .track-meter i:nth-child(1) { background: var(--pho-orange); }
.playlist-item:nth-child(odd) .track-meter i:nth-child(2) { background: var(--pho-orange-dim); }
.playlist-item:nth-child(odd) .track-meter i:nth-child(3) { background: var(--pho-orange-bright); }
.playlist-item:nth-child(odd) .track-meter i:nth-child(4) { background: var(--pho-orange-deep); }
.playlist-item:nth-child(odd) .track-meter i:nth-child(5) { background: var(--pho-amber); }
.playlist-item:nth-child(odd) .track-meter i:nth-child(6) { background: var(--pho-orange-mid); }

.playlist-item:nth-child(even) .track-meter i:nth-child(1) { background: var(--pho-amber); }
.playlist-item:nth-child(even) .track-meter i:nth-child(2) { background: var(--pho-orange-mid); }
.playlist-item:nth-child(even) .track-meter i:nth-child(3) { background: var(--pho-orange-bright); }
.playlist-item:nth-child(even) .track-meter i:nth-child(4) { background: var(--pho-orange-dim); }
.playlist-item:nth-child(even) .track-meter i:nth-child(5) { background: var(--pho-orange); }
.playlist-item:nth-child(even) .track-meter i:nth-child(6) { background: var(--pho-orange-deep); }

.playlist-item.is-active .track-meter i {
  background: var(--cheeto-glow) !important;
}

/* Visualizer — sad_pho orange spectrum */
.player-visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  gap: 2px;
  flex: 1;
  min-height: 96px;
  padding: 4px 5px;
  background:
    linear-gradient(rgba(255, 149, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 149, 0, 0.08) 1px, transparent 1px),
    var(--winamp-panel);
  background-size: 8px 8px, 8px 8px, auto;
  border: 2px inset var(--winamp-shadow);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.55);
}

.player-visualizer span {
  flex: 1;
  max-width: 12px;
  height: 3px;
  min-height: 3px;
  background: var(--pho-orange-deep);
  transition: height 0.06s ease-out;
}

.player-visualizer span:nth-child(1) { background: #c04800; animation-delay: 0.0s; }
.player-visualizer span:nth-child(2) { background: #d85800; animation-delay: 0.08s; }
.player-visualizer span:nth-child(3) { background: #e86800; animation-delay: 0.16s; }
.player-visualizer span:nth-child(4) { background: #f07800; animation-delay: 0.04s; }
.player-visualizer span:nth-child(5) { background: #ff8800; animation-delay: 0.12s; }
.player-visualizer span:nth-child(6) { background: #ff9800; animation-delay: 0.2s; }
.player-visualizer span:nth-child(7) { background: #ffa800; animation-delay: 0.06s; }
.player-visualizer span:nth-child(8) { background: #ffb800; animation-delay: 0.14s; }
.player-visualizer span:nth-child(9) { background: #ffc800; animation-delay: 0.1s; }
.player-visualizer span:nth-child(10) { background: #ffd800; animation-delay: 0.18s; }
.player-visualizer span:nth-child(11) { background: #ff9000; animation-delay: 0.22s; }
.player-visualizer span:nth-child(12) { background: #ff7800; animation-delay: 0.03s; }
.player-visualizer span:nth-child(13) { background: #ff6800; animation-delay: 0.11s; }
.player-visualizer span:nth-child(14) { background: #ffe000; animation-delay: 0.19s; }
.player-visualizer span:nth-child(15) { background: #ffa000; animation-delay: 0.07s; }

.player-visualizer.is-live span {
  animation: none;
}

.player-visualizer.is-paused span {
  height: 3px !important;
  opacity: 0.35;
  animation: none;
}

/* Now playing strip */
.player-readout {
  flex-shrink: 0;
}

.player-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-terminal);
  font-size: 0.95rem;
  color: #5a2800;
  background: #ffc848;
  padding: 0.1rem 0.35rem;
  border: 1px inset #d07800;
  margin-bottom: 0.2rem;
}

.player-time-extra {
  font-family: var(--font-pixel);
  font-size: 0.28rem;
  color: var(--pho-orange-deep);
  letter-spacing: 0.08em;
}

.player-nowplaying {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #1a0c00;
  border: 2px inset var(--winamp-shadow);
  padding: 0.3rem 0.4rem;
  min-height: 2.1rem;
  box-shadow:
    inset 0 0 8px rgba(0, 0, 0, 0.5),
    inset 0 -1px 0 rgba(255, 149, 0, 0.35);
}

.player-led {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.player-track-name {
  font-family: var(--font-terminal);
  font-size: 1.1rem;
  color: var(--pho-warm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.format-badge {
  font-family: var(--font-pixel);
  font-size: 0.26rem;
  color: var(--cheeto-glow);
  flex-shrink: 0;
}

/* Controls — Winamp squares */
.player-controls {
  display: flex;
  justify-content: flex-start;
  gap: 0.25rem;
  margin-bottom: 0.3rem;
  padding: 0 0.1rem;
}

.ctrl-btn {
  border: 2px solid #3a3830;
  color: #1a1814;
  font-size: 0.85rem;
  width: 2.1rem;
  height: 2.1rem;
  cursor: pointer;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.05s;
  line-height: 1;
  padding: 0;
}

.ctrl-btn:hover {
  filter: brightness(1.08);
}

.ctrl-btn:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.ctrl-btn--play {
  background: linear-gradient(180deg, #ffcc00 0%, var(--cheeto) 100%);
}

.ctrl-btn--next {
  background: linear-gradient(180deg, var(--cheeto-bright) 0%, #d06000 100%);
}

.ctrl-btn--pause,
.ctrl-btn--prev,
.ctrl-btn--stop {
  background: linear-gradient(180deg, #a8a090 0%, #787068 100%);
}

/* Progress / volume row */
.player-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.1rem;
}

.progress-vol-label,
.progress-eq-label {
  font-family: var(--font-terminal);
  font-size: 1rem;
  color: #5a2800;
  white-space: nowrap;
}

.progress-eq-label {
  padding: 0.15rem 0.35rem;
  background: linear-gradient(180deg, #a8a090 0%, #787068 100%);
  border: 2px solid #4a4840;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.3);
  font-size: 0.95rem;
}

.progress-bar {
  --seek-pct: 0%;
  height: 10px;
  background: #0a0a08;
  border: 2px inset var(--winamp-shadow);
  cursor: pointer;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(180deg, #ffcc00 0%, var(--cheeto) 100%);
  transition: width 0.15s linear;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--seek-pct, 0%);
  width: 6px;
  height: 10px;
  transform: translate(-50%, -50%);
  background: var(--cheeto-bright);
  border: 1px solid #c06000;
  pointer-events: none;
  transition: left 0.15s linear;
}

/* Taskbar footer */
.site-footer {
  width: 100%;
  padding: 0.45rem 1.25rem;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 0.34rem;
  color: #c8b8a0;
  line-height: 1.6;
  background: linear-gradient(180deg, var(--taskbar-top) 0%, var(--taskbar) 100%);
  border-top: 3px solid #6a6256;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0;
}

/* Steam profile popup — centered, 16:9 viewport */
.steam-player {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1100;
  width: min(720px, calc(100vw - 2rem));
  transform: translate(-50%, calc(-50% + 24px)) scale(0.85);
  transform-origin: center center;
  opacity: 0;
  pointer-events: none;
  image-rendering: pixelated;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1),
    opacity 0.22s ease;
}

.steam-player[hidden] {
  display: block !important;
}

.steam-player.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
  filter: drop-shadow(0 0 20px rgba(102, 192, 244, 0.35));
}

.steam-chrome {
  display: flex;
  flex-direction: column;
  background: #171a21;
  border: 3px solid #2a475e;
  border-top-color: #66c0f4;
  box-shadow:
    6px 6px 0 var(--pixel-shadow),
    0 0 32px rgba(102, 192, 244, 0.25);
}

.steam-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: linear-gradient(180deg, #2a475e 0%, #1b2838 100%);
  border-bottom: 2px solid #0e1419;
  font-family: var(--font-terminal);
  font-size: 1.15rem;
  color: #c7d5e0;
}

.steam-title {
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  color: #66c0f4;
  letter-spacing: 0.06em;
}

.steam-title-user {
  flex: 1;
  opacity: 0.75;
}

.steam-close {
  background: #8b1a1a;
  border: 2px solid #c44;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  box-shadow: 2px 2px 0 #000;
}

.steam-close:hover {
  background: #b22;
}

.steam-viewport {
  display: grid;
  grid-template-columns: 28% 1fr;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background:
    linear-gradient(135deg, #1b2838 0%, #0e1419 55%, #171a21 100%);
  position: relative;
  overflow: hidden;
}

.steam-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.08) 0px,
    rgba(0, 0, 0, 0.08) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.35;
}

.steam-sidebar {
  padding: 0.65rem 0.5rem;
  background: rgba(14, 20, 25, 0.85);
  border-right: 2px solid #2a475e;
  font-family: var(--font-terminal);
  font-size: 1rem;
  color: #8f98a0;
  z-index: 1;
}

.steam-sidebar-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.28rem;
  color: #66c0f4;
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

.steam-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steam-sidebar-list li {
  padding: 0.2rem 0.35rem;
  border-radius: 2px;
  margin-bottom: 0.15rem;
}

.steam-sidebar-list li.is-active {
  background: rgba(102, 192, 244, 0.18);
  color: #dfe9f2;
  border-left: 2px solid #66c0f4;
}

.steam-profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  z-index: 1;
}

.steam-profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.steam-avatar {
  width: clamp(64px, 12vw, 96px);
  height: clamp(64px, 12vw, 96px);
  border: 3px solid #66c0f4;
  border-radius: 4px;
  image-rendering: pixelated;
  box-shadow: 0 0 16px rgba(102, 192, 244, 0.35);
}

.steam-name {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(0.42rem, 1.6vw, 0.55rem);
  color: #dfe9f2;
  letter-spacing: 0.04em;
}

.steam-status {
  margin: 0.35rem 0 0;
  font-family: var(--font-terminal);
  font-size: 1.15rem;
  color: #57cb8a;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.steam-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #57cb8a;
  box-shadow: 0 0 8px rgba(87, 203, 138, 0.7);
}

.steam-tagline {
  margin: 0.25rem 0 0;
  font-family: var(--font-terminal);
  font-size: 1.05rem;
  color: #8f98a0;
}

.steam-activity {
  padding: 0.65rem 0.75rem;
  background: rgba(42, 71, 94, 0.35);
  border: 2px solid #2a475e;
  border-left: 3px solid #66c0f4;
}

.steam-activity-label {
  margin: 0 0 0.25rem;
  font-family: var(--font-pixel);
  font-size: 0.26rem;
  color: #66c0f4;
  letter-spacing: 0.06em;
}

.steam-activity-game {
  margin: 0;
  font-family: var(--font-terminal);
  font-size: 1.25rem;
  color: #dfe9f2;
}

.steam-activity-detail {
  margin: 0.2rem 0 0;
  font-family: var(--font-terminal);
  font-size: 0.95rem;
  color: #8f98a0;
}

.steam-open-btn {
  align-self: flex-start;
  display: inline-block;
  padding: 0.45rem 0.85rem;
  background: linear-gradient(180deg, #66c0f4 0%, #2a475e 100%);
  border: 2px solid #1b2838;
  color: #0e1419;
  font-family: var(--font-pixel);
  font-size: 0.3rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 var(--pixel-shadow);
  transition: filter 0.12s, transform 0.08s;
}

.steam-open-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .steam-viewport {
    grid-template-columns: 1fr;
  }

  .steam-sidebar {
    display: none;
  }

  .steam-profile {
    padding: 0.75rem;
    gap: 0.65rem;
  }
}

/* Doge easter egg — centered popup (same pattern as music player) */
.doge-player {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1100;
  width: min(520px, calc(100vw - 2rem));
  transform: translate(-50%, calc(-50% + 24px)) scale(0.85);
  transform-origin: center center;
  opacity: 0;
  pointer-events: none;
  image-rendering: pixelated;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1),
    opacity 0.22s ease;
}

.doge-player[hidden] {
  display: block !important;
}

.doge-player.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
  filter: drop-shadow(0 0 16px rgba(110, 200, 255, 0.4));
}

.doge-chrome {
  background: #f0e8d0;
  border: 3px solid #c8a060;
  border-top-color: #fffaf0;
  box-shadow:
    6px 6px 0 var(--pixel-shadow),
    0 0 28px rgba(110, 200, 255, 0.35);
}

.doge-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  background: linear-gradient(180deg, #a8dcff 0%, #6ec8ff 100%);
  border-bottom: 2px solid #5090c8;
  font-family: var(--font-terminal);
  font-size: 1.2rem;
  color: #2a4060;
}

.doge-close {
  background: #e44;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  box-shadow: 2px 2px 0 #000;
}

.doge-close:hover {
  background: #f66;
}

#dogeCanvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #a8dcff;
}

.doge-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  background: #f0d8a8;
  border-top: 2px solid #c8a060;
  font-family: var(--font-terminal);
  font-size: 1.05rem;
  color: #5a4020;
}

.doge-hint {
  opacity: 0.85;
}

.doge-discovery {
  position: fixed;
  top: 18%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 650;
  padding: 0.65rem 1rem;
  background: rgba(255, 250, 240, 0.96);
  border: 3px solid #c8a060;
  box-shadow: 0 0 20px rgba(110, 200, 255, 0.45);
  font-family: var(--font-terminal);
  font-size: 1.15rem;
  color: #5a4020;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.doge-discovery.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 700px) {
  .screen-corner {
    width: 58%;
    height: 46%;
  }

  .desktop-hud {
    font-size: 0.18rem;
    opacity: 0.6;
  }

  .desktop-icon {
    width: 4.5rem;
    max-width: 4.5rem;
    padding: 0.3rem 0.2rem;
  }

  .desktop-icon img {
    width: clamp(38px, 11vw, 54px);
    height: clamp(38px, 11vw, 54px);
  }

  .desktop-icon {
    font-size: 0.2rem;
  }

  .music-player {
    bottom: 2.5rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }

  .doge-player {
    width: calc(100vw - 1.5rem);
  }
}

