:root {
  --win-gray: #c0c0c0;
  --win-blue: #000080;
  --win-dark: #404040;
  --neon-pink: #ff2a9d;
  --acid-lime: #b6ff00;
  --cream: #fffef2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  width: 100vw; height: 100vh; overflow: hidden;
  background: #080708; color: #111;
  font-family: "Courier New", monospace;
  user-select: none;
}

/* Spatial Room Stage */
.viewport-stage {
  position: absolute; inset: 0;
  overflow: hidden; touch-action: pan-x pan-y;
}
.clubhouse-canvas {
  position: absolute; top: 0; left: 0;
  width: 1920px; height: 1080px;
  transform-origin: 0 0; will-change: transform;
}
.room-plate { width: 100%; height: 100%; object-fit: cover; }

/* Clear, Non-Cryptic Sign */
.editorial-sign {
  position: absolute; top: 2%; left: 30%; width: 38%;
  background: rgba(10, 10, 10, 0.85);
  border: 2px solid var(--acid-lime);
  padding: 10px 14px;
  color: #fff; text-align: center;
  box-shadow: 4px 4px 0px var(--neon-pink);
  transform: rotate(-1.5deg);
  z-index: 10;
}
.sign-tag { font-size: 9px; color: var(--acid-lime); letter-spacing: 1px; font-weight: bold; }
.editorial-sign h1 {
  font-family: "Bungee Shade", fantasy;
  font-size: clamp(20px, 2.5vw, 36px);
  color: #fff; margin: 4px 0;
}
.sign-desc { font-size: 11px; line-height: 1.3; color: #ddd; margin-bottom: 6px; }
.sign-status {
  display: inline-block; font-size: 9px; background: #222;
  color: var(--neon-pink); padding: 2px 6px; border: 1px dotted var(--neon-pink);
}
.pulse-dot { animation: blink 1s infinite; color: var(--acid-lime); }

/* Hotzones & Hover Preview Cards */
.anchor-wrapper {
  position: absolute; z-index: 15;
}
.anchor-hotzone {
  width: 100%; height: 100%;
  border: none; background: transparent; cursor: pointer;
}
.preview-card {
  position: absolute; bottom: 10%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 220px; background: var(--cream);
  border: 2px solid #000; padding: 10px;
  box-shadow: 4px 6px 0px rgba(0,0,0,0.8);
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 30;
}
.preview-card strong { display: block; font-size: 13px; color: #000; margin-bottom: 3px; }
.preview-card p { font-size: 10px; color: #444; line-height: 1.3; }
.preview-cat { font-size: 8px; font-weight: bold; color: var(--neon-pink); display: block; }

/* Show preview on hover / focus */
.anchor-wrapper:hover .preview-card,
.anchor-wrapper.is-previewing .preview-card {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.anchor-wrapper:hover .anchor-hotzone {
  filter: drop-shadow(0 0 10px var(--acid-lime));
}

/* Coordinates aligned to room image */
.zone--wardrobe { left: 2%; top: 2%; width: 27%; height: 72%; }
.zone--vanity { right: 5%; top: 2%; width: 22%; height: 46%; }
.zone--investigation { left: 56%; top: 44%; width: 23%; height: 28%; }
.zone--curio { right: 2%; bottom: 4%; width: 34%; height: 35%; }
.zone--giveaway { left: 10%; bottom: 2%; width: 22%; height: 25%; }

/* Ambient Audio Triggers */
.ambient-trigger { position: absolute; z-index: 16; border: none; background: transparent; cursor: pointer; }
.trigger--phone { left: 44%; top: 68%; width: 9%; height: 18%; }
.trigger--disco { left: 0; top: 11%; width: 6%; height: 18%; }
.trigger--cube { left: 46%; top: 57%; width: 6%; height: 10%; }

/* Floating Elements */
.sound-toggle {
  position: fixed; top: 12px; right: 12px; z-index: 100;
  background: #000; color: var(--acid-lime); border: 2px solid var(--acid-lime);
  padding: 6px 10px; font-size: 10px; cursor: pointer;
}
.scanlines { position: absolute; inset: 0; pointer-events: none; opacity: 0.12; mix-blend-mode: overlay; background: repeating-linear-gradient(0deg, transparent 0 2px, #000 3px); z-index: 20; }
.lighting-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 40; transition: opacity 0.08s ease-out; }

/* Modal Windows */
.modal-shell {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center; background: rgba(0,0,0,0.65);
}
.modal-shell[hidden] { display: none; }
.retro-window {
  width: min(520px, 92vw); background: var(--win-gray);
  border-top: 2px solid #fff; border-left: 2px solid #fff;
  border-right: 2px solid var(--win-dark); border-bottom: 2px solid var(--win-dark);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.8);
}
.window-bar {
  background: var(--win-blue); color: #fff; padding: 4px 6px;
  display: flex; justify-content: space-between; align-items: center; font-size: 11px;
}
.window-close-btn { width: 22px; height: 18px; font-weight: bold; cursor: pointer; }
.window-content { padding: 18px; background: var(--cream); font-size: 12px; line-height: 1.4; color: #111; }
.window-content h2 { font-size: 20px; margin-bottom: 8px; color: #000; }
.window-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.window-tags span { background: #111; color: var(--acid-lime); padding: 3px 6px; font-size: 10px; }

/* Bottom Ticker */
.bottom-ticker {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: #000; color: var(--neon-pink); font-size: 10px;
  padding: 4px 0; border-top: 1px dashed var(--neon-pink); z-index: 50;
}

/* Mobile Quick-Directory Drawer */
.mobile-drawer { display: none; }

@media (max-width: 768px) {
  .editorial-sign { width: 88%; left: 6%; top: 1%; }
  .editorial-sign h1 { font-size: 22px; }
  
  /* Show persistent directory drawer on mobile */
  .mobile-drawer {
    display: block; position: fixed; bottom: 20px; left: 0; width: 100%;
    z-index: 100; transition: transform 0.25s ease;
    transform: translateY(calc(100% - 32px));
  }
  .mobile-drawer.is-open { transform: translateY(0); }
  .drawer-handle {
    width: 100%; background: #000; color: var(--acid-lime);
    border: none; border-top: 2px solid var(--acid-lime);
    padding: 8px; font-weight: bold; font-size: 11px; cursor: pointer;
  }
  .drawer-links {
    background: var(--win-gray); padding: 12px;
    display: flex; flex-direction: column; gap: 8px;
    border-top: 2px solid #fff;
  }
  .quick-btn {
    text-align: left; padding: 10px; background: var(--cream);
    border: 1px solid #000; font-size: 11px; cursor: pointer;
    box-shadow: 2px 2px 0 #000;
  }
  .quick-btn:active { transform: translate(1px, 1px); box-shadow: none; }
}

@keyframes blink { 50% { opacity: 0; } }