:root {
  color-scheme: dark;
  --vreic-bg: #07111b;
  --vreic-line: rgba(155, 167, 182, .32);
  --vreic-text: #f4f6f8;
  --vreic-muted: rgba(244, 246, 248, .68);
  --vreic-accent: #0a4966;
  --vreic-gold: #ffc247;
  --vreic-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --vreic-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 100%; height: 100%; min-height: 100%; margin: 0; }
html { background: var(--vreic-bg); }
body {
  position: relative;
  overflow: hidden;
  background: var(--vreic-bg);
  color: var(--vreic-text);
  font-family: var(--vreic-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* Background is decorative only. It must never block Webamp. */
.vreic-backdrop {
  position: fixed;
  inset: 0;
  /* No z-index here: children participate in the root stacking context.
     This lets MilkDrop Desktop sit between the video/shade and particles. */
  overflow: hidden;
  pointer-events: none !important;
  background: var(--vreic-bg);
}

.vreic-backdrop__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .42;
  filter: saturate(.72) contrast(1.08) brightness(.66);
  transform: scale(1.01);
  pointer-events: none !important;
}

#particles-js {
  position: absolute;
  inset: 0;
  /* Above MilkDrop Desktop so the VREIC particle layer remains visible. */
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: .78;
  pointer-events: none;
}

#particles-js canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
}

.vreic-backdrop__shade {
  position: absolute;
  inset: 0;
  /* Same base layer as the video. Because this node follows the video
     in the DOM it shades the video, but stays below Desktop MilkDrop. */
  z-index: 0;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(2, 7, 13, .20) 0%,
      rgba(2, 12, 20, .30) 52%,
      rgba(2, 7, 13, .54) 100%
    ),
    radial-gradient(
      circle at 66% 42%,
      rgba(10, 73, 102, .12),
      transparent 52%
    );
}
/* Identity stays above the scenery, but does not block Webamp except the link itself. */
.vreic-identity {
  position: fixed;
  top: clamp(24px, 4vh, 46px);
  left: 50%;
  z-index: 30;
  width: min(calc(100% - 48px), 760px);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
  pointer-events: none;
}

.vreic-identity__title {
  margin: 0;
  color: #fff;
  font-family: var(--vreic-mono);
  font-size: clamp(10px, .72vw, 13px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .34em;
  text-transform: uppercase;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .48);
}

.vreic-identity__back {
  pointer-events: auto;
  color: rgba(255,255,255,.82);
  font-family: var(--vreic-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .22s ease, opacity .22s ease;
}
.vreic-identity__back:hover,
.vreic-identity__back:focus-visible { color: var(--vreic-gold); outline: none; }
.vreic-milkdrop--focus {
  position: fixed !important;

  width: min(72vw, 1180px) !important;
  height: min(76vh, 760px) !important;

  left: 50% !important;
  top: 52% !important;

  transform: translate(-50%, -50%) !important;

  z-index: 1 !important;
}
.vreic-milkdrop--focus canvas {
  width: 100% !important;
  height: 100% !important;
}
/*
 * CRITICAL FIX
 * -----------------------------------------------------------------
 * #webamp-container is only a mount target. Webamp may portal its UI
 * outside this element, so a full-screen pointer-active container can
 * sit above the actual Winamp buttons. Keep the mount point transparent
 * to hit-testing and DO NOT create a z-index / stacking context here.
 */
#webamp-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none !important;
  background: transparent !important;
}

/* Webamp itself must remain interactive. IMPORTANT: do not force
   pointer-events:auto on every descendant. Webamp deliberately uses
   pointer-events internally; overriding all descendants can place transparent
   UI layers over MilkDrop and break native right-click/context-menu handling. */
body > #webamp {
  pointer-events: auto !important;
}

.vreic-status {
  position: fixed;
  right: 20px;
  bottom: 16px;
  z-index: 3;
  margin: 0;
  color: rgba(255,255,255,.34);
  font-family: var(--vreic-mono);
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 760px) {
  .vreic-identity {
    top: 18px;
    width: calc(100% - 32px);
    gap: 7px;
  }
  .vreic-identity__title { font-size: 9px; letter-spacing: .24em; }
  .vreic-backdrop__video { opacity: .34; }
  #particles-js { opacity: .58; }
  .vreic-status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vreic-backdrop__video { display: none; }
}

/* ================================================================
   VREIC v2.8.2 — MilkDrop desktop/fullscreen + particles hotfix
   ================================================================ */

/* Desktop Mode is rendered by Webamp into a body-level portal. Layer order:
   showreel video/shade (0) -> MilkDrop Desktop (1) -> particles (2)
   -> classic Webamp windows (8) -> VREIC identity (20). */
.webamp-desktop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1 !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  background: #000 !important;
  pointer-events: auto !important;
}

.webamp-desktop > *,
.webamp-desktop canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

/* Keep classic Webamp windows above Desktop Mode. This does not make the
   mount target interactive; it only raises the actual Webamp application. */
body > #webamp {
  z-index: 8 !important;
  pointer-events: auto !important;
}

/* Identity remains readable above native Desktop Mode. */
.vreic-identity {
  z-index: 20 !important;
}

/* Particles remain visible in WINDOW and DESKTOP modes. In DESKTOP they are
   intentionally composited above MilkDrop as the VREIC interaction layer. */
#particles-js {
  opacity: .92;
}

@media (max-width: 760px) {
  #particles-js { opacity: .76; }
}


/* ================================================================
   VREIC v2.8.3 — native MilkDrop interaction guard
   ================================================================ */
/* Do not create an input-capturing layer over the native MilkDrop window. */
body > #webamp canvas,
body > #webamp [role="application"] {
  pointer-events: auto;
}

/* Decorative VREIC layers never own mouse buttons/context-menu events. */
.vreic-backdrop,
.vreic-backdrop *,
#particles-js,
#particles-js canvas {
  pointer-events: none !important;
}
