@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');

/* === Preloader overlay === */
#river-preloader {
  position: fixed;
  inset: 0;                 /* cover the entire viewport */
  z-index: 9999;            /* on top of everything */
  background: #0e1525;      /* solid dark (avoids any glitches showing through) */
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 240ms ease;
  pointer-events: auto;
}

#river-preloader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Inner card for text + bar */
.river-preloader__inner {
  min-width: 240px;
  max-width: min(80vw, 560px);
  padding: 16px 18px 12px;
  border-radius: 12px;
  background: rgba(10, 16, 28, 0.42); /* translucent panel */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #e6f0ff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  text-align: center;
}

/* Status line ("loading art pieces…") */
.river-preloader__status {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.95;
  margin-bottom: 6px;
}

/* Percent text ("42%") */
.river-preloader__percent {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 8px;
}

/* Progress bar track */
.river-preloader__bar {
  position: relative;
  width: 100%;
  height: 2px;                 /* exactly 2px */
  background: rgba(230, 240, 255, 0.25);
  overflow: hidden;
  border-radius: 2px;
}

/* Progress bar fill */
.river-preloader__bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0%;
  background: #e6f0ff;         /* bright line */
  transform: translateZ(0);    /* crisp rendering on HiDPI */
}

/* === InspirArte logo at bottom center === */
#river-logo {
  position: fixed;
  bottom: 12px;             /* small margin from bottom */
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;              /* above Pixi canvas, below modal */
  max-width: 15vw;          /* never more than 15% of viewport width */
  max-height: 12vh;         /* never more than 12% of viewport height */
  height: auto;
  width: auto;
  
  pointer-events: auto;         /* allow clicks/taps */
  cursor: pointer;              /* affordance */
  touch-action: manipulation;   /* snappier taps */
  padding: 6px;                 /* tiny hit-area cushion */
  border-radius: 8px;           /* future focus ring looks nicer */

}

/* Retina / high-density: make the logo a bit larger */
@media (min-resolution: 2dppx) {
  #river-logo {
    max-width: 25vh;  /* was 15vw */
    max-height: 25vh; /* was 12vh */
  }
}
