/* Lucki archive page — monochrome pink palette (single pink hue, varying
   only in brightness). Everything here is scoped to .lucki-archive-page
   or lu-* classes so the shared archive.css (homepage silver, Che purple)
   is never affected. */

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

/* ---- Header palette overrides (shared markup, Lucki colors) ---- */

/* Neon pink Habbo title */
.lucki-archive-page .archive-scrolling-title-track span {
  background: linear-gradient(180deg, #ffcce8 0%, #f54fa8 55%, #6b1c48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px #15040e;
  filter:
    drop-shadow(-1.5px 1.5px 0 #9a2f6a)
    drop-shadow(-1.5px 1.5px 0 #551740)
    drop-shadow(-1px 1px 0 #15040e);
}

/* Pink spinning globes */
.lucki-archive-page .fcf-globe img {
  filter: grayscale(1) sepia(1) hue-rotate(300deg) saturate(3.4) brightness(0.85);
}

/* Pink boombox art; the breathing glow is the shared white one from
   archive.css (unified across every boombox) */
.lucki-archive-page .che-music-player img {
  filter: grayscale(1) sepia(1) hue-rotate(300deg) saturate(3) brightness(0.9);
}

/* Playing pulse timed to "sunset" (~89 BPM): one glow pulse per beat (0.67s),
   head-tilt snapping over two beats. Overrides the shared 77 BPM default. */
.lucki-archive-page .che-music-player.playing {
  animation-duration: 0.67s;
}
.lucki-archive-page .che-music-player.playing img {
  animation-duration: 1.35s;
}

/* ---- Background layers (filled by lucki-background.js) ---- */

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

@keyframes luGrainDrift {
  from { background-position: 0 0; }
  to { background-position: -200px 0; }
}

.lu-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 other archive pages.) */
.lu-bg-strip {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  animation: luFieldDrift 120s linear infinite;
}

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

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

.lu-bg-item img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  animation: luTilt 6s step-end infinite;
  /* Monochrome pink: neutralize each motif's own colors (green clover,
     red D.R.B.) to the page's pink hue */
  filter: grayscale(1) sepia(1) hue-rotate(300deg) saturate(3.2) brightness(0.9);
}

/* 6s cycle, one snap turn per kind: cup at 0s, clover at 2s, drb at 4s */

/* D.R.B. logo (images/drb-logo-cut.png): wide sprite, contain */
.lu-bg-item-drb img {
  animation-delay: 4s;
  object-fit: contain;
}

/* Double cup (images/cup-pink.png): wide sprite, contain instead of
   stretch. cup-pink.png already has the pink wash baked in with the
   purple pour preserved, so no CSS filter (overrides the field's pink
   wash to avoid double-tinting) */
.lu-bg-item-cup img {
  animation-delay: 0s;
  object-fit: contain;
  filter: none;
}

/* Clover (images/clover-cut.png): tall sprite, contain instead of stretch */
.lu-bg-item-clover img {
  animation-delay: 2s;
  animation-name: luTiltHard;
  object-fit: contain;
}

@keyframes luTilt {
  0% { transform: rotate(-8deg); }
  8.33% { transform: rotate(8deg); }
  16.67%, 100% { transform: rotate(0deg); }
}

@keyframes luTiltHard {
  0% { transform: rotate(-14deg); }
  8.33% { transform: rotate(14deg); }
  16.67%, 100% { transform: rotate(0deg); }
}

/* ---- Content row: overview left, video player right ----
   Layout geometry and hand-tuned transforms copied from Che's page */

.lu-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;
}

/* ---- Artist overview: fit stage stacked over the stat sheet ---- */

.lu-overview {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translate(-249px, -7px) scale(1.09);
}

.lu-fit-panel,
.lu-info-panel {
  background: #14080f;
  box-shadow: 0 0 22px rgba(245, 79, 168, 0.35);
  padding: 16px;
}

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

.lu-fit-stage {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 194, 224, 0.04) 0 1px,
      transparent 1px 3px
    ),
    #1d0c15;
  border: 1px solid #4a1e38;
  padding: 14px 14px 0;
  overflow: hidden;
}

.lu-fit-stage img {
  display: block;
  width: 100%;
  max-width: 230px;
  transform: translateY(13px) scale(1.12);
  transform-origin: bottom center;
  transition: opacity 0.15s ease;
  /* Rim glow hugging the cutout's silhouette, lifting it off the dark stage */
  filter:
    drop-shadow(0 0 1px rgba(255, 194, 224, 0.55))
    drop-shadow(0 0 7px rgba(245, 79, 168, 0.4));
}

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

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

.lu-fit-swap {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: #f5dceb;
  background: #1d0c15;
  border: 2px solid #a25d84;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.lu-fit-swap:hover {
  background: #4a1e38;
  border-color: #e09ac4;
}

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

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

.lu-info-title {
  margin: 0 0 18px;
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  letter-spacing: 2px;
  color: #f5dceb;
  text-shadow: 0 0 8px rgba(245, 79, 168, 0.8);
}

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

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

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

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

/* Clickable info values (name -> Instagram, latest release -> album) */
.lu-info-link {
  color: #f5dceb;
  text-decoration: underline;
  text-decoration-color: #a25d84;
  text-underline-offset: 3px;
}

.lu-info-link:hover {
  color: #f08ac4;
  text-decoration-color: #f08ac4;
  text-shadow: 0 0 8px rgba(245, 79, 168, 0.8);
}

/* ---- Video player (reuses the shared VHS UI script via che-* ids; all
        styling lives on these lu-* classes) ---- */

.lu-video-player {
  position: relative;
  flex: 1.6 1 420px;
  min-width: 0;
  transform: translate(47px, -15px) scale(1.42);
}

.lu-video-frame {
  position: relative;
  background: #14080f;
  padding: 10px;
  box-shadow: 0 0 22px rgba(245, 79, 168, 0.35);
}

/* Diamond tennis border — tiles sliced with Pillow from the user's frame
   art (images/lucki-gold-border.png -> lu-gold-h.png 52x18, lu-gold-v.png
   18x52). The continuous-loop canvas (chain-border.js) renders the raw
   tiles, so the border shows the art's native champagne gold. */
.lu-chain {
  position: absolute;
  background-repeat: repeat;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  z-index: 4;
}

/* Iced "ski" pendant hanging from the bottom-center of the border,
   swinging like the other pages' pendants; sits behind the strips (z 3
   vs 4) so it reads as hanging from the chain */
.lu-video-pendant {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: top center;
  margin-top: 3px;
  width: 120px;
  height: auto;
  z-index: 3;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  pointer-events: none;
  /* Warmed from iced silver to the border's champagne gold (tile art
     averages rgb(204,193,169)) so pendant and chain read as one set */
  filter: sepia(0.85) saturate(1.15) brightness(0.95);
  animation: luPendantSwing 5s ease-in-out infinite;
}

@keyframes luPendantSwing {
  0%, 100% { transform: translateX(-50%) rotate(-12deg); }
  50% { transform: translateX(-50%) rotate(12deg); }
}

.lu-chain-top,
.lu-chain-bottom {
  left: -9px;
  right: -9px;
  height: 18px;
  background-image: url(images/lu-gold-h.png);
  background-size: 52px 18px;
}

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

.lu-chain-left,
.lu-chain-right {
  top: 9px;
  bottom: 9px;
  width: 18px;
  background-image: url(images/lu-gold-v.png);
  background-size: 18px 52px;
}

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

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

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

.lu-video-shell {
  position: relative;
  cursor: pointer;
}

.lu-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c040a;
  object-fit: contain;
}


.lu-video-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 194, 224, 0.05) 0 1px,
    transparent 1px 3px
  );
}

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

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

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

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

.lu-osd-center-triangle {
  width: 0;
  height: 0;
  border-left: 26px solid #f5dceb;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  filter: drop-shadow(0 0 8px rgba(245, 79, 168, 0.8));
}

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

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

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