* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

/* Site-wide classic-Windows pixel cursors (every page links this sheet):
   the retro white arrow by default, the white glove link-hand over anything
   clickable. Hotspots: arrow tip, hand fingertip. !important lets the hand
   beat per-component cursor: pointer rules across the pages. */
html, body {
  cursor: url("images/cursor-win.png?v=5") 1 1, auto;
}

a, button, [role="button"] {
  cursor: url("images/cursor-win-hand.png?v=5") 11 1, pointer !important;
}

.che-archive-page {
  margin: 0;
  background: #050505;
  min-height: 100vh;
}

/* Archive header container */
.archive-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* Height hand-tuned (4.9vw via the temporary tuner) and baked in */
  aspect-ratio: 1672 / 81.93;
  overflow: hidden;
  z-index: 9999;
  background: #050505;
}

/* Archive header background image */
.archive-header-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Black boxes covering the grey jets baked into the header art.
   Positions hand-tuned (via the temporary tuner) and baked in. */
.plane-cover {
  position: absolute;
  background: #000000;
  z-index: 2;
  user-select: none;
  pointer-events: none;
}

.plane-cover-left {
  left: 28.3%;
  top: 31.14%;
  width: 3.2%;
  height: 50%;
}

.plane-cover-right {
  left: 68.8%;
  top: 30.12%;
  width: 3.2%;
  height: 50%;
}

/* FCF globe/plane logos sitting where the grey jets used to be.
   Positions hand-tuned (via the temporary tuner) and baked in. */
.fcf-globe {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

.fcf-globe img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) brightness(0.8);
  animation: fcfGlobeSpin 14s linear infinite;
}

/* Che's archive page keeps its original dark-purple globes
   (the silver filter above applies to the homepage only) */
.che-archive-page .fcf-globe img {
  filter: grayscale(1) sepia(1) hue-rotate(220deg) saturate(3) brightness(0.72);
}

@keyframes fcfGlobeSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fcf-globe-left {
  left: 28.52%;
  top: 21.07%;
  width: 2.86%;
}

.fcf-globe-right {
  left: 69.69%;
  top: 21.07%;
  width: 2.85%;
}

/* Instagram social name clickable area */
.archive-social-name-zone {
  position: absolute;
  left: 5.5%;
  top: 45%;
  width: 13%;
  height: 18%;
  display: block;
  z-index: 9999;
  cursor: pointer;

  color: transparent;
  text-indent: -9999px;
}

/* Instagram profile picture clickable area */
.archive-instagram-pfp-zone {
  position: absolute;
  left: 1.75%;
  top: 18%;
  width: 3%;
  aspect-ratio: 1 / 1;
  z-index: 9999;
  display: block;
  cursor: pointer;
}

.archive-instagram-pfp {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  border-radius: 4px;
  border: 2px solid #3a3a3a;

  image-rendering: auto;
}

.archive-instagram-pfp-zone:hover .archive-instagram-pfp {
  border-color: #777777;
  box-shadow:
    2px 0 0 #555555,
    -2px 0 0 #555555,
    0 2px 0 #555555,
    0 -2px 0 #555555;
}

/* Center title clickable area */
.archive-home-title-zone {
  position: absolute;
  left: 32.5%;
  top: 14%;
  width: 36%;
  height: 72%;
  z-index: 9998;
  display: block;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

/* Moving title background */
.archive-scrolling-title {
  width: 100%;
  height: 100%;
  background: #050505;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-radius: 2px;
}

/* Moving title track */
.archive-scrolling-title-track {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
  animation: archiveTitleScroll 10s linear infinite;
}

/* Moving title text */
/* Habbo-logo treatment in silver chrome: white-to-steel gradient fill,
   dark outline, stacked grey extrusion falling down-left. */
.archive-scrolling-title-track span {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(12px, 1.8vw, 30px);
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #d4d8dc 55%, #9aa2aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px #1a1d20;
  filter:
    drop-shadow(-1.5px 1.5px 0 #7d858c)
    drop-shadow(-1.5px 1.5px 0 #565d63)
    drop-shadow(-1px 1px 0 #1a1d20);
  line-height: 1;
}

/* Che's archive page keeps its original yellow/orange Habbo title
   (the silver treatment above applies to the homepage only) */
.che-archive-page .archive-scrolling-title-track span {
  background: linear-gradient(180deg, #ffe45c 0%, #ffc22e 55%, #ff8b1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px #241000;
  filter:
    drop-shadow(-1.5px 1.5px 0 #e0611a)
    drop-shadow(-1.5px 1.5px 0 #b03c0c)
    drop-shadow(-1px 1px 0 #241000);
}

/* Plane symbol size */
.archive-plane-symbol {
  font-size: 0.6em;
  display: inline-block;
  transform: translateY(-2px);
}

/* Title movement animation */
@keyframes archiveTitleScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Tickets clickable area */
.archive-ticket-zone {
  position: absolute;
  right: 1%;
  top: 35%;
  width: 12%;
  height: 40%;
  display: block;
  z-index: 9999;
  cursor: pointer;
}

/* Sayso Ticker — pixel-art background */
.archive-canvas {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: calc(100vw * 81.93 / 1672);
  background: #050505;
  overflow: hidden;
  z-index: 1;
}

.che-bg-ticker {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  opacity: 1;
  /* Same 16px/s leftward drift as the asset strip (480px rendered tile /
     30s), so grain and assets read as one moving canvas; both loop
     seamlessly */
  animation: cheGrainDrift 30s linear infinite;
}

@keyframes cheGrainDrift {
  from { background-position: 0 0; }
  to { background-position: -480px 0; }
}

.che-bg-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

/* Conveyor strip holding two side-by-side copies of the asset layout.
   Drifting left by exactly one layout width (1920px) per loop lands copy B
   where copy A started, so the scroll never shows a seam. 120s = 16px/s.
   (Same movement as the Osamason page's .osa-bg-strip.) */
.che-bg-strip {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  animation: cheFieldDrift 120s linear infinite;
}

@keyframes cheFieldDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-1920px); }
}

.che-bg-item {
  position: absolute;
  opacity: 0.5;
}

/* Boombox music player button, anchored inside the fixed header. Percentage
   coordinates (like the other header zones) so it scales with the header art.
   Final position hand-tuned via the drag tuner on 2026-07-04. */
.che-music-player {
  position: absolute;
  top: 19%;
  right: 18%;
  width: 5.3%;
  z-index: 9999;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  animation: cheBoomboxBreathe 3s ease-in-out infinite;
}

.che-music-player img {
  display: block;
  width: 100%;
  image-rendering: pixelated;
  filter: grayscale(1) brightness(1.08);
}

/* Che's archive page keeps its original purple boombox art; the breathing
   glow is the shared white one (cheBoomboxBreathe), unified across every
   boombox on the site */
.che-archive-page .che-music-player img {
  filter: none;
}

.che-music-player:hover {
  transform: scale(1.08);
}

/* While music plays the glow pulses once per beat (77 BPM track) */
.che-music-player.playing {
  animation-duration: 0.779s;
}

/* ...and the box snap-tilts side to side like the background assets,
   one snap per beat (step-end, same style as cheTilt). Stops with the music
   since it only applies under .playing. */
.che-music-player.playing img {
  animation: cheBoomboxTilt 1.558s step-end infinite;
}

@keyframes cheBoomboxTilt {
  0% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
  100% { transform: rotate(-8deg); }
}

/* Glow that slowly breathes; drop-shadow hugs the sprite's silhouette and
   the sprite itself brightens slightly at the peak. Both keyframes must list
   the same filter functions in the same order — mismatched lists can't
   interpolate and the animation snaps instead of easing. */
/* Shared boombox breathing glow — one white glow for every boombox, existing
   and future. Values tuned via the Nettspend glow tuner (2026-07-06). Pages
   set their own boombox art tint via a .che-music-player img filter, but all
   inherit this glow. */
@keyframes cheBoomboxBreathe {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5))
      drop-shadow(0 0 5px rgba(150, 150, 150, 0)) brightness(1);
  }
  50% {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1))
      drop-shadow(0 0 12px rgba(210, 210, 210, 0.66)) brightness(1.43);
  }
}

.che-bg-item img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: grayscale(1) sepia(1) hue-rotate(220deg) saturate(3) brightness(0.95);
  animation: cheTilt 6s step-end infinite;
}

/* 6s cycle: each kind gets a 1s turn followed by a 1s all-still pause —
   speaker at 0s, rib at 2s, bassgod at 4s. */
.che-bg-item-speaker img {
  animation-delay: 0s;
}

.che-bg-item-rib img {
  animation-delay: 2s;
}

.che-bg-item-bassgod img {
  animation-name: cheTiltHard;
  animation-delay: 4s;
}

/* Two hard frames in the first 1s of the cycle — snap left, snap right,
   snap back to rest — no in-between interpolation (step-end). */
@keyframes cheTilt {
  0% { transform: rotate(-8deg); }
  8.33% { transform: rotate(8deg); }
  16.67%, 100% { transform: rotate(0deg); }
}

/* Same rhythm, harder snap for the bassgod. */
@keyframes cheTiltHard {
  0% { transform: rotate(-14deg); }
  8.33% { transform: rotate(14deg); }
  16.67%, 100% { transform: rotate(0deg); }
}

/* Content row: artist overview on the left, video player on the right,
   centered as a pair with equal spacing */
.che-content-row {
  position: relative;
  z-index: 3;
  width: min(1200px, 94%);
  margin: 9vh auto 10vh;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Video player — sits above the background layers.
   Transform hand-tuned via the drag tuner on 2026-07-04. */
.che-video-player {
  position: relative;
  flex: 1.6 1 420px;
  min-width: 0;
  transform: translate(47px, -15px) scale(1.42);
}

.che-video-frame {
  position: relative;
  background: #0a0612;
  padding: 10px;
  box-shadow: 0 0 22px rgba(147, 51, 234, 0.35);
}

/* Chain border strips — tile images are generated procedurally in JS */
.che-chain {
  position: absolute;
  background-repeat: repeat;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  z-index: 4;
}

.che-chain-top,
.che-chain-bottom {
  left: -9px;
  right: -9px;
  height: 18px;
  background-size: 52px 18px;
}

.che-chain-top { top: -9px; animation: cheChainCrawlX 4.4s linear infinite; }
.che-chain-bottom { bottom: -9px; animation: cheChainCrawlX 4.4s linear infinite reverse; }

.che-chain-left,
.che-chain-right {
  top: 9px;
  bottom: 9px;
  width: 18px;
  background-size: 18px 52px;
}

.che-chain-left { left: -9px; animation: cheChainCrawlY 4.4s linear infinite reverse; }
.che-chain-right { right: -9px; animation: cheChainCrawlY 4.4s linear infinite; }

/* Shift by exactly one 52px tile (four links) so the loop is seamless; the
   four edge directions combine into one clockwise circulation */
@keyframes cheChainCrawlX {
  from { background-position: 0 0; }
  to { background-position: 52px 0; }
}

@keyframes cheChainCrawlY {
  from { background-position: 0 0; }
  to { background-position: 0 52px; }
}

/* Skull pendant hanging from the bottom-center of the chain (custom
   jewelry art shown in its own colors — the old purple recolor filter was
   specific to the bassgod.png sprite it replaced) */
.che-video-pendant {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: top center;
  margin-top: -4px;
  width: 92px;
  height: auto;
  z-index: 5;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  pointer-events: none;
  animation: chePendantSwing 5s ease-in-out infinite;
}

/* Slow pendulum swing, pivoting from where it hangs off the chain */
@keyframes chePendantSwing {
  0%, 100% { transform: translateX(-50%) rotate(-12deg); }
  50% { transform: translateX(-50%) rotate(12deg); }
}

/* Artist overview — character stage stacked over the stat sheet, in the
   left column of the content row.
   Transform hand-tuned via the drag tuner on 2026-07-04. */
.che-overview {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translate(-249px, -7px) scale(1.09);
}

.che-fit-panel,
.che-info-panel {
  background: #0a0612;
  box-shadow: 0 0 22px rgba(147, 51, 234, 0.35);
  padding: 16px;
}

.che-fit-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.che-fit-stage {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(233, 220, 248, 0.04) 0 1px,
      transparent 1px 3px
    ),
    #120a1a;
  border: 1px solid #3a2b4e;
  padding: 14px 14px 0;
  overflow: hidden;
}

.che-fit-stage img {
  display: block;
  width: 100%;
  max-width: 230px;
  /* Visual-only enlargement + slight downward shift: transform doesn't
     affect layout, so the stage and panels keep their exact size */
  transform: translateY(13px) scale(1.12);
  transform-origin: bottom center;
  transition: opacity 0.15s ease;
  /* Subtle rim glow hugging the cutout's silhouette, lifting it off the dark stage */
  filter:
    drop-shadow(0 0 1px rgba(233, 220, 248, 0.55))
    drop-shadow(0 0 7px rgba(147, 51, 234, 0.4));
}

.che-fit-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.che-fit-label {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 1px;
  color: #8465ad;
}

.che-fit-swap {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: #e9dcf8;
  background: #120a1a;
  border: 2px solid #8465ad;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.che-fit-swap:hover {
  background: #3a2b4e;
  border-color: #b9a3d9;
}

.che-fit-swap:active {
  transform: translateY(1px);
}

.che-info-panel {
  display: flex;
  flex-direction: column;
}

.che-info-title {
  margin: 0 0 18px;
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  letter-spacing: 2px;
  color: #e9dcf8;
  text-shadow: 0 0 8px rgba(147, 51, 234, 0.8);
}

.che-info-list {
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 12px;
}

.che-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 2px dotted #3a2b4e;
}

.che-info-row dt {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 1px;
  color: #8465ad;
  white-space: nowrap;
}

.che-info-row dd {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: #e9dcf8;
  text-align: right;
}

/* Clickable info value (latest release -> the EP on Spotify) */
.che-info-link {
  color: #e9dcf8;
  text-decoration: underline;
  text-decoration-color: #8465ad;
  text-underline-offset: 3px;
}

.che-info-link:hover {
  color: #c482ff;
  text-decoration-color: #c482ff;
  text-shadow: 0 0 8px rgba(147, 51, 234, 0.8);
}

/* VHS camcorder playback UI: the whole screen is the play/pause button,
   with OSD text, a tape counter, and faint scanlines over the footage */
.che-video-shell {
  position: relative;
  cursor: pointer;
}

.che-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05030a;
  object-fit: contain;
}

.che-video-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(233, 220, 248, 0.05) 0 1px,
    transparent 1px 3px
  );
}

.che-video-osd {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: "Press Start 2P", monospace;
  letter-spacing: 1px;
  color: #e9dcf8;
  text-shadow: 1px 1px 0 #000;
}

.che-osd-state {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 10px;
}

/* Centered prompt shown while the tape is stopped */
.che-osd-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  animation: cheOsdBlink 1s step-end infinite;
}

.che-osd-center.hidden {
  display: none;
}

.che-osd-center-triangle {
  width: 0;
  height: 0;
  border-left: 26px solid #e9dcf8;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  filter: drop-shadow(0 0 8px rgba(147, 51, 234, 0.8));
}

@keyframes cheOsdBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.che-osd-counter {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
}

.che-osd-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 8px;
  color: #b9a3d9;
}