/* ==========================================================================
   JYVHAN EARL — ANALOG ZINE COLLAGE RUNNER
   Aesthetic: Nostalgic tactile papers, xerox grain, lo-fi horizontal conveyor
   ========================================================================== */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #111111;
  font-family: 'Special Elite', 'Courier Prime', monospace;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* --------------------------------------------------------------------------
   STAGE & SKYLINE BACKGROUND
   -------------------------------------------------------------------------- */
.collage-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: url('373eeef9-3cc5-4cd3-9b62-0ad07f3a2d09.webp') no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

/* Subtle analog film grain & vignette overlay */
.collage-stage::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.28) 100%);
  mix-blend-mode: multiply;
  z-index: 5;
}

/* --------------------------------------------------------------------------
   PAPERS HORIZONTAL SLIDER TRACK
   -------------------------------------------------------------------------- */
.papers-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.paper-card {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  transition: transform 0.1s linear, filter 0.2s ease;
  will-change: transform;
}

.paper-card:hover {
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
  z-index: 40 !important;
}

/* --------------------------------------------------------------------------
   1. CRUMPLED PAPER CARD (LEFT)
   -------------------------------------------------------------------------- */
.crumpled-paper-card {
  top: 17%;
  width: clamp(290px, 25vw, 370px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  position: absolute;
}

/* Pinned Polaroid Photo (Top-Right) */
.polaroid-pin {
  position: absolute;
  top: -24px;
  right: -28px;
  width: clamp(105px, 9.5vw, 140px);
  transform: rotate(-11.5deg);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5));
  z-index: 15;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.polaroid-pin img {
  width: 100%;
  height: auto;
  display: block;
}

.crumpled-paper-card:hover .polaroid-pin {
  transform: rotate(-13.5deg) scale(1.06);
}

.crumpled-paper-card .paper-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.crumpled-paper-card .paper-content {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 3.2vw, 42px);
  font-family: 'Special Elite', monospace;
  font-size: clamp(0.72rem, 0.9vw, 0.86rem);
  line-height: 1.45;
  color: #1a1a1a;
  text-shadow: 0 0.5px 0.5px rgba(0, 0, 0, 0.15);
}

.paper-title {
  font-family: 'Syne Mono', monospace;
  font-size: clamp(0.85rem, 1.05vw, 0.98rem);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.4);
  padding-bottom: 0.25rem;
}

.highlight-name {
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  margin-bottom: 0.5rem;
}

.meta-tag {
  margin-top: 0.8rem;
  font-family: 'Syne Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #333333;
}

.clickable-tag {
  display: inline-block;
  cursor: pointer;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px dashed rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.clickable-tag:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   2. TAPED GRAPH PAPER CARD (PROJECTS)
   -------------------------------------------------------------------------- */
.taped-paper-card {
  top: 23%;
  width: clamp(380px, 32vw, 490px);
  aspect-ratio: 1.6 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.4));
}

.taped-paper-card .paper-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.taped-paper-card .paper-content {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 3.2vw, 42px) clamp(35px, 4.2vw, 55px);
  font-family: 'Special Elite', monospace;
  font-size: clamp(0.72rem, 0.88vw, 0.84rem);
  line-height: 1.42;
  color: #1a1a1a;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.card-header-row .paper-title {
  margin-bottom: 0;
}

.card-header-row .clickable-tag {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px dashed rgba(0, 0, 0, 0.4);
}

.project-entry {
  margin-bottom: 0.45rem;
}

.project-entry strong {
  font-family: 'Syne Mono', monospace;
  font-size: 0.82rem;
  color: #000000;
  display: block;
}

.project-entry p {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #2b2b2b;
}

/* --------------------------------------------------------------------------
   3. MANILA / KRAFT PAPER CARD (ARSENAL)
   -------------------------------------------------------------------------- */
.manila-paper-card {
  top: 20%;
  width: clamp(340px, 28vw, 440px);
  min-height: 270px;
  background: url('manila_paper.jpg') no-repeat center center;
  background-size: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  border-radius: 2px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.manila-paper-card .tape-strip {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 95px;
  height: 25px;
  background: rgba(225, 210, 180, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(1px);
}

.manila-paper-card .paper-content {
  position: relative;
  z-index: 2;
  padding: 2.2rem 2rem 1.8rem;
  font-family: 'Special Elite', monospace;
  font-size: clamp(0.74rem, 0.9vw, 0.86rem);
  line-height: 1.48;
  color: #201b15;
}

.spec-list p {
  margin-bottom: 0.6rem;
}

.spec-list strong {
  font-family: 'Syne Mono', monospace;
  letter-spacing: 0.05em;
  color: #110e0b;
}

/* --------------------------------------------------------------------------
   4. PARISIAN REGISTER RECEIPT CARD (TRANSMISSION & LINKS)
   -------------------------------------------------------------------------- */
.receipt-paper-card {
  top: 10%;
  width: clamp(230px, 18vw, 280px);
  aspect-ratio: 1 / 1.7;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.45));
}

.receipt-paper-card .paper-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  opacity: 0.96;
}

.receipt-content {
  position: relative;
  z-index: 2;
  padding: 3.2rem 1.6rem 2.2rem;
  font-family: 'Courier Prime', monospace;
  font-size: clamp(0.68rem, 0.82vw, 0.78rem);
  line-height: 1.42;
  color: #111111;
  width: 86%;
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

.receipt-header {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.35);
  padding-bottom: 0.35rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.receipt-header h4 {
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111111;
}

.receipt-header .mono-sub {
  font-size: 0.65rem;
  color: #333333;
}

.receipt-body p {
  margin-bottom: 0.35rem;
}

.receipt-total {
  margin-top: 0.6rem;
  padding-top: 0.35rem;
  border-top: 1px solid #111111;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.receipt-links {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}

.receipt-links a {
  color: #000000;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  border: 1px dashed rgba(0, 0, 0, 0.4);
  background: transparent !important;
  transition: all 0.2s ease;
}

.receipt-links a:hover {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

/* --------------------------------------------------------------------------
   5. WHITE SQUARE BOX WITH STICKMAN (GEORGIE)
   -------------------------------------------------------------------------- */
.stickman-box {
  position: absolute;
  top: 72%;
  left: 20%;
  width: clamp(66px, 5.2vw, 80px);
  height: clamp(72px, 5.8vw, 88px);
  background-color: #ffffff;
  border: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  z-index: 30;
}

.stickman-box pre {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: clamp(10.5px, 0.88vw, 13px);
  font-weight: 700;
  line-height: 1.12;
  color: #000000;
  margin: 0;
  text-align: center;
  letter-spacing: -0.05em;
  user-select: none;
}

/* ==========================================================================
   6. HALUNGKAT SCRAPBOOK MODAL & SCAVENGER HUNT
   ========================================================================== */
.scrapbook-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scrapbook-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.scrapbook-bg {
  position: absolute;
  inset: 0;
  background: url('scrapbook_bg.jpg') no-repeat center center;
  background-size: cover;
  z-index: 1;
  pointer-events: none;
  filter: contrast(1.05) brightness(0.98);
}

.scrapbook-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

/* TOP-CENTER DUAL COUNTER (OPTION B: 0/26 · 0/10, NO BORDER, NO CONTAINER) */
.scrapbook-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  font-family: 'Space Mono', 'Courier Prime', monospace;
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 700;
  color: #000000;
  background: transparent;
  border: none;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.15em;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.scrapbook-counter.is-bumped {
  transform: translateX(-50%) scale(1.2);
  color: #c92a2a;
}

/* TOP-RIGHT CLUE TICKER (NO BORDER COLOR, BORDERLESS) */
.scrapbook-clue {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 500;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
  transform: rotate(1deg);
  pointer-events: none;
}

.scrapbook-clue img {
  max-width: clamp(160px, 15vw, 230px);
  height: auto;
  display: block;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* MINIMAL CLOSE BUTTON (SYMBOL ONLY, NO BORDER / NO CONTAINER, JUST RAW BLACK X) */
.scrapbook-close-btn {
  position: absolute;
  top: 16px;
  left: 22px;
  z-index: 500;
  width: auto;
  height: auto;
  background: transparent !important;
  color: #000000 !important;
  border: none !important;
  outline: none !important;
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none !important;
  padding: 4px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.scrapbook-close-btn:hover {
  background: transparent !important;
  color: #000000 !important;
  transform: scale(1.22) rotate(-8deg);
  opacity: 0.65;
  box-shadow: none !important;
}

/* STAGE CONTAINER */
.scrapbook-stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  touch-action: none;
  contain: strict;
}

/* DRAGGABLE & TOSSABLE PIECES (WIDE VIEW 67% PERSPECTIVE SCALED) */
.halungkat-item {
  position: absolute;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
  transform-origin: center center;
  will-change: transform;
  contain: layout style;
}

.halungkat-item img {
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  width: 100%;
  height: auto;
}

.halungkat-item.is-dragging {
  cursor: grabbing !important;
  z-index: 999999 !important;
}

.halungkat-item.is-vanishing {
  pointer-events: none !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
  transform: scale(0.4) rotate(18deg) translateY(-30px) !important;
  opacity: 0 !important;
}

/* Polaroids (Bottom Hidden Treasures - Wide View Scaled) */
.halungkat-polaroid {
  width: clamp(86px, 7vw, 114px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.2s ease;
}

.halungkat-polaroid:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}

/* Logos (Bottom Hidden Treasures - Wide View Scaled) */
.halungkat-logo {
  width: clamp(40px, 3.4vw, 54px);
  background: #ffffff;
  padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.2s ease;
}

.halungkat-logo:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
}

/* Scraps & Cutoffs (Top Clutter - Wide View Scaled) */
.halungkat-scrap {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
  will-change: transform;
}

/* ==========================================================================
   7. LIGHTBOX POPUP FOR POLAROIDS & LOGOS (CENTERED, ZERO CAPTIONS)
   ========================================================================== */
.scrapbook-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.scrapbook-popup.is-active {
  opacity: 1;
  pointer-events: auto;
}

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.popup-content {
  position: relative;
  z-index: 2005;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrapbook-popup.is-active .popup-content {
  transform: scale(1);
}

.popup-content img {
  max-width: min(85vw, 680px);
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  border: none !important;
  outline: none !important;
  cursor: pointer;
  filter: brightness(0.68) saturate(0.65) contrast(1.08);
  transition: filter 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease;
}

.scrapbook-popup.is-active .popup-content img {
  filter: brightness(1) saturate(1) contrast(1);
}

/* ==========================================================================
   8. INTERACTIVE WORKS PINBOARD MODAL & KINETIC PUSH-AROUND PINS
   ========================================================================== */
.works-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background-color: #ededed;
  transition: opacity 0.3s ease;
}

.works-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.works-bg {
  position: absolute;
  inset: 0;
  background: url('works_bg.png') no-repeat center center;
  background-size: cover;
  z-index: 1;
  pointer-events: none;
  filter: contrast(1.05) brightness(0.98);
}

.works-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}

/* MINIMAL CLOSE BUTTON (SYMBOL ONLY, RAW BLACK X) */
.works-close-btn {
  position: absolute;
  top: 16px;
  left: 22px;
  z-index: 500;
  width: auto;
  height: auto;
  background: transparent !important;
  color: #000000 !important;
  border: none !important;
  outline: none !important;
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none !important;
  padding: 4px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.works-close-btn:hover {
  background: transparent !important;
  color: #000000 !important;
  transform: scale(1.22) rotate(-8deg);
  opacity: 0.65;
  box-shadow: none !important;
}

/* WORKS PINBOARD STAGE */
.works-stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  touch-action: none;
  contain: strict;
}

/* ROTATING BUTTON PINS */
@keyframes spin-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.work-pin-item {
  position: absolute;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
  transform-origin: center center;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.2s ease;
  will-change: transform;
}

.work-pin-item:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  z-index: 150 !important;
}

.work-pin-item.is-dragging {
  cursor: grabbing !important;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.65);
  z-index: 200 !important;
}

.work-pin-spin {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  pointer-events: none;
}

.work-pin-spin.spin-cw {
  animation: spin-cw var(--spin-dur, 35s) linear infinite;
  animation-delay: var(--spin-delay, 0s);
}

.work-pin-spin.spin-ccw {
  animation: spin-ccw var(--spin-dur, 35s) linear infinite;
  animation-delay: var(--spin-delay, 0s);
}

.work-pin-item:hover .work-pin-spin {
  animation-play-state: paused;
}

.work-pin-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 50%;
}

/* Accent retro pins */
.work-pin-accent {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   9. LIGHTBOX POPUP FOR WORKS PINS (CENTERED LARGE ROTATING PIN + LINK)
   ========================================================================== */
.works-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.works-popup.is-active {
  opacity: 1;
  pointer-events: auto;
}

.works-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.84);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.works-popup-content {
  position: relative;
  z-index: 2005;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.works-popup.is-active .works-popup-content {
  transform: scale(1);
}

.works-popup-pin-wrap {
  width: clamp(220px, 28vw, 380px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  animation: spin-cw 35s linear infinite;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.85));
  cursor: pointer;
}

.works-popup-pin-wrap:hover {
  animation-play-state: paused;
}

.works-popup-pin-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.works-project-link {
  margin-top: 1.8rem;
  display: inline-block;
  color: #000000;
  background: rgba(255, 255, 255, 0.95);
  border: 1px dashed rgba(0, 0, 0, 0.4);
  font-family: 'Space Mono', 'Courier Prime', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  border-radius: 1px;
}

.works-project-link:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   10. RETRO WINDOWS 95 CD PLAYER WIDGET
   ========================================================================== */
.win95-cd-player {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 304px;
  max-width: calc(100vw - 16px);
  z-index: 1200;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #dfdfdf #000000 #000000 #dfdfdf;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080, 0 10px 28px rgba(0, 0, 0, 0.45);
  font-family: 'Segoe UI', Tahoma, 'MS Sans Serif', Geneva, sans-serif;
  user-select: none;
  box-sizing: border-box;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.2s ease;
}

.win95-cd-player.is-minimized,
.win95-cd-player.is-closed {
  display: none !important;
}

/* Title Bar */
.win95-titlebar {
  height: 20px;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 3px;
  cursor: grab;
  box-sizing: border-box;
}

.win95-titlebar:active {
  cursor: grabbing;
}

.win95-title-left {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.win95-cd-icon {
  font-size: 11px;
  line-height: 1;
}

.win95-title-text {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.3px;
}

.win95-title-controls {
  display: flex;
  gap: 2px;
}

.win95-btn-title {
  width: 14px;
  height: 12px;
  background: #c0c0c0;
  color: #000000;
  border: 1px solid;
  border-color: #ffffff #000000 #000000 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
  font-size: 8px;
  font-weight: bold;
  line-height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.win95-btn-title:active {
  border-color: #000000 #ffffff #ffffff #000000;
  box-shadow: inset 1px 1px 0 #808080;
  padding-top: 1px;
}

/* Window Body */
.win95-body {
  padding: 6px;
  display: flex;
  gap: 8px;
  align-items: stretch;
  box-sizing: border-box;
}

.win95-art-box {
  width: 82px;
  height: 82px;
  flex-shrink: 0;
  background: #000000;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0 #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win95-art-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.win95-controls-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
}

.win95-field-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.win95-label {
  width: 32px;
  color: #000000;
  font-size: 10px;
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
}

.win95-inset-box {
  flex: 1;
  height: 19px;
  background: #ffffff;
  color: #000000;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0 #000000;
  font-size: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  padding: 0 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.win95-select-wrap {
  flex: 1;
  min-width: 0;
}

.win95-select {
  width: 100%;
  height: 19px;
  background: #ffffff;
  color: #000000;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0 #000000;
  font-size: 10px;
  font-family: inherit;
  font-weight: 500;
  padding: 0 2px;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
}

/* Scrubber & Time */
.win95-scrubber-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.win95-time {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 9px;
  font-weight: 700;
  color: #000080;
  min-width: 30px;
  text-align: center;
}

.win95-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #808080;
  border: 1px solid #404040;
  border-bottom-color: #ffffff;
  border-right-color: #ffffff;
  outline: none;
  cursor: pointer;
}

.win95-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 9px;
  height: 15px;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #ffffff #000000 #000000 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
  cursor: pointer;
}

.win95-range::-moz-range-thumb {
  width: 9px;
  height: 15px;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #ffffff #000000 #000000 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
  cursor: pointer;
}

/* Control Buttons */
.win95-buttons-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
}

.win95-control-btn {
  height: 20px;
  min-width: 24px;
  padding: 0 4px;
  background: #c0c0c0;
  color: #000000;
  border: 1px solid;
  border-color: #ffffff #000000 #000000 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  cursor: pointer;
  outline: none;
  user-select: none;
}

.win95-control-btn:active {
  border-color: #000000 #ffffff #ffffff #000000;
  box-shadow: inset 1px 1px 0 #808080;
  padding-top: 1px;
}

.win95-control-btn.is-active {
  background: #d8d8d8;
  border-color: #000000 #ffffff #ffffff #000000;
  box-shadow: inset 1px 1px 0 #808080;
}

.win95-spotify-link {
  height: 20px;
  padding: 0 5px;
  margin-left: auto;
  background: #c0c0c0;
  color: #000000;
  border: 1px solid;
  border-color: #ffffff #000000 #000000 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.win95-spotify-link:hover {
  background: #d4d4d4;
}

.win95-spotify-link:active {
  border-color: #000000 #ffffff #ffffff #000000;
  box-shadow: inset 1px 1px 0 #808080;
}

/* Minimized Dock Button */
.win95-dock-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1200;
  height: 32px;
  padding: 0 12px;
  background: #c0c0c0;
  color: #000000;
  border: 2px solid;
  border-color: #ffffff #000000 #000000 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080, 0 6px 18px rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  gap: 6px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.win95-dock-icon.is-visible {
  display: inline-flex;
}

.win95-dock-icon:hover {
  background: #d4d4d4;
}

.win95-dock-icon:active {
  border-color: #000000 #ffffff #ffffff #000000;
  box-shadow: inset 1px 1px 0 #808080;
}

@media (max-width: 600px) {
  .win95-cd-player {
    width: min(292px, calc(100vw - 16px));
    right: 8px;
    bottom: 12px;
  }
  .win95-art-box {
    width: 90px;
    height: 90px;
  }
  .win95-label {
    width: 32px;
    font-size: 10px;
  }
  .win95-inset-box,
  .win95-select {
    font-size: 10px;
    height: 20px;
  }
  .win95-control-btn {
    height: 22px;
    min-width: 25px;
    padding: 0 4px;
  }
  .win95-spotify-link {
    font-size: 9px;
    padding: 0 5px;
  }
}


/* ==========================================================================
   11. MINIMAL TOP NAV & ETHEREAL RETRO EFFECTS (NO EMOJIS)
   ========================================================================== */
.top-nav-bar {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}

.nav-icon-btn {
  background: rgba(255, 255, 255, 0.88);
  color: #000000;
  border: 1px dashed rgba(0, 0, 0, 0.35);
  font-family: 'Space Mono', 'Courier Prime', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-icon-btn:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.nav-icon-btn.is-active {
  background: #000080;
  color: #ffffff;
  border-color: #000080;
}

/* CRT Screen Scanlines & Ambient Glare */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  opacity: 0.95;
  background: 
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.22) 50%),
    radial-gradient(circle at center, transparent 65%, rgba(0, 0, 0, 0.45) 100%);
  background-size: 100% 3px, 100% 100%;
}

/* Blue Hour Twilight Atmosphere Mode (Automatic Evening/Night) */
body.theme-blue-hour {
  background-color: #1a2233 !important;
}

body.theme-blue-hour::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
  background: rgba(28, 52, 90, 0.12);
  mix-blend-mode: multiply;
  transition: opacity 0.5s ease;
}

body.theme-blue-hour .skyline-img {
  filter: hue-rotate(185deg) saturate(1.2) brightness(0.85) contrast(1.08) !important;
}

body.theme-blue-hour .paper-card {
  filter: hue-rotate(165deg) brightness(0.95) !important;
}

/* Halungkat Scavenger Hunt & Works Board layers naturally inherit blue hour */
body.theme-blue-hour #halungkat-layer,
body.theme-blue-hour #works-layer {
  filter: hue-rotate(180deg) saturate(1.1) brightness(0.92);
}

/* Print Receipt Button */
.receipt-print-btn {
  margin-top: 0.9rem;
  background: transparent;
  border: 1px dashed rgba(0, 0, 0, 0.4);
  color: #000000;
  font-family: 'Space Mono', 'Courier Prime', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
  align-self: center;
  display: block;
}

.receipt-print-btn:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* Printable Thermal Receipt (@media print) */
#printable-receipt {
  display: none;
}

@media print {
  body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #stage,
  .crt-overlay,
  .top-nav-bar,
  .win95-cd-player,
  .win95-dock-icon,
  .win95-ejected-cd,
  #scrapbook-modal,
  #works-modal,
  #scrapbook-popup,
  #works-popup {
    display: none !important;
  }
  body * {
    visibility: hidden;
  }
  #printable-receipt,
  #printable-receipt * {
    visibility: visible !important;
  }
  #printable-receipt {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #ffffff !important;
    text-align: center !important;
  }
  .printable-receipt-img {
    width: 100% !important;
    max-width: 760px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }
}

/* ==========================================================================
   10. RETRO JUMPSCARE ACCOMPLISHMENT OVERLAY
   ========================================================================== */
.jumpscare-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999999;
  background: #000000;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.jumpscare-overlay.is-active {
  display: flex;
}

.jumpscare-overlay.is-shaking {
  animation: screen-shake 0.08s infinite alternate;
}

@keyframes screen-shake {
  0% { transform: translate(4px, 2px) rotate(0deg); }
  25% { transform: translate(-4px, -3px) rotate(0.5deg); }
  50% { transform: translate(-3px, 3px) rotate(-0.5deg); }
  75% { transform: translate(3px, -2px) rotate(0.5deg); }
  100% { transform: translate(-2px, 2px) rotate(-0.5deg); }
}

.jumpscare-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.4) brightness(1.1);
  display: block;
}

.jumpscare-note {
  position: relative;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2rem 2.4rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.88);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.95);
  max-width: 90vw;
}

.jumpscare-note.is-visible {
  display: flex;
  animation: note-fade-in 0.4s ease forwards;
}

@keyframes note-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.jumpscare-text {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: clamp(0.78rem, 2.5vw, 1.05rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.jumpscare-close-btn {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  color: #ffffff;
  font-family: 'Space Mono', 'Courier Prime', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jumpscare-close-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Ejected CD Disc Easter Egg */
.win95-ejected-cd {
  position: fixed;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  z-index: 1250;
  cursor: grab;
  user-select: none;
  touch-action: none;
  display: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.win95-ejected-cd.is-ejected {
  display: block;
}

.win95-ejected-cd.is-dragging {
  cursor: grabbing;
}

.cd-disc-surface {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: 
    radial-gradient(circle at center, transparent 20%, rgba(255, 255, 255, 0.25) 21%, transparent 22%),
    conic-gradient(from 45deg, #d8d8d8, #e8f4f8, #fcd8e8, #e8f8dc, #d8d8d8);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-cw 20s linear infinite;
}

.cd-center-hole {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.85);
  border: 4px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.8);
}
