/* ============================================
   gallery.css — THE GALLERY
   Retro FPS art gallery. Doom meets Slender.
   ============================================ */

/* ── BASE ──────────────────────────────────── */

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

/* ── CANVAS ────────────────────────────────── */

#galleryCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  z-index: 0;
}

/* ── CRT / RETRO OVERLAY ──────────────────── */

.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.crt-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 1px,
    rgba(0, 0, 0, 0.15) 1px,
    rgba(0, 0, 0, 0.15) 2px
  );
  mix-blend-mode: multiply;
}

.crt-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(0, 0, 0, 0.5) 85%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

/* ── HUD ───────────────────────────────────── */

.gallery-hud {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-hud.active {
  opacity: 1;
}

/* Crosshair */
.hud-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Courier New', monospace;
  font-size: 24px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.hud-crosshair.hover {
  color: var(--opal-gold, #fde68a);
  text-shadow:
    0 0 6px rgba(253, 230, 138, 0.6),
    0 0 12px rgba(253, 230, 138, 0.3);
}


/* Piece counter — bottom-left */
.hud-counter {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: rgba(240, 230, 255, 0.75);
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border: 1px solid rgba(240, 230, 255, 0.15);
}

.hud-counter-icon {
  color: var(--opal-gold, #fde68a);
  margin-right: 4px;
}

/* Room name — bottom-right */
.hud-room {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 191, 219, 0.6);
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border: 1px solid rgba(200, 191, 219, 0.1);
}

/* ── PROMPT SCREEN ─────────────────────────── */

.gallery-prompt {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  transition: opacity 0.5s ease;
}

.gallery-prompt.hidden {
  opacity: 0;
  pointer-events: none;
}

.prompt-title {
  font-family: 'DrCaligari', monospace;
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ghost, #f0e6ff);
  text-shadow:
    0 0 20px rgba(192, 132, 252, 0.4),
    0 0 40px rgba(192, 132, 252, 0.15);
}

.prompt-subtitle {
  font-family: 'LEDLIGHT', monospace;
  font-size: clamp(14px, 2vw, 22px);
  letter-spacing: 0.5em;
  color: rgba(240, 230, 255, 0.7);
  animation: prompt-pulse 2s ease-in-out infinite;
}

.prompt-controls {
  margin-top: 24px;
  font-family: 'Courier New', monospace;
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: 0.08em;
  color: rgba(200, 191, 219, 0.4);
}

@keyframes prompt-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* ── PAINTING OVERLAY ──────────────────────── */

.gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.gallery-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 8, 0.92);
  cursor: pointer;
}

.gallery-detail {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 85vw;
  max-height: 85vh;
}

.gallery-detail img {
  display: block;
  max-width: 80vw;
  max-height: 65vh;
  object-fit: contain;
}

/* Paintings get a frame, sculptures don't */
.gallery-detail.is-painting img {
  border: 3px solid rgba(240, 230, 255, 0.15);
  box-shadow:
    0 0 30px rgba(192, 132, 252, 0.15),
    0 0 60px rgba(0, 0, 0, 0.6);
}

.gallery-detail.is-sculpture img {
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.gallery-caption {
  margin-top: 20px;
  text-align: center;
  max-width: 600px;
}

.gallery-title {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ghost, #f0e6ff);
  margin-bottom: 8px;
}

.gallery-desc {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist, #c8bfdb);
}

.gallery-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: none;
  border: none;
  font-size: 24px;
  color: rgba(240, 230, 255, 0.5);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.gallery-close:hover {
  color: var(--opal-pink, #ff7eb3);
  text-shadow: 0 0 10px rgba(255, 126, 179, 0.4);
}

/* ── BACK LINK ─────────────────────────────── */

.gallery-back {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 15;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(200, 191, 219, 0.4);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid rgba(200, 191, 219, 0.1);
  background: rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.gallery-back:hover {
  color: var(--opal-lavender, #c4b5fd);
  border-color: rgba(196, 181, 253, 0.3);
}

.gallery-back.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── UTILITY ───────────────────────────────── */

/* Hide HUD + back link when overlay is open */
.gallery-overlay.active ~ .gallery-hud,
.gallery-overlay.active ~ .gallery-back {
  opacity: 0.15;
}

/* ── STATUS BAR (Gallery Mode) ─────────────── */

.hud-statusbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 6;
  pointer-events: none;
  display: flex;
  align-items: stretch;
  
  /* Oilslick gradient background — fully opaque */
  background: linear-gradient(
    90deg,
    rgb(10, 5, 20) 0%,
    rgb(26, 15, 46) 25%,
    rgb(18, 10, 30) 50%,
    rgb(26, 15, 46) 75%,
    rgb(10, 5, 20) 100%
  );
  
  /* Iridescent top border */
  border-top: 2px solid;
  border-image: linear-gradient(
    90deg,
    var(--opal-pink, #ff7eb3) 0%,
    var(--opal-lavender, #c4b5fd) 25%,
    var(--opal-teal, #5eead4) 50%,
    var(--opal-gold, #fde68a) 75%,
    var(--opal-pink, #ff7eb3) 100%
  ) 1;
  
  box-shadow:
    inset 0 2px 20px rgba(192, 132, 252, 0.1),
    0 -4px 30px rgba(0, 0, 0, 0.5);
}

.sb-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  position: relative;
}

/* Dividers between sections */
.sb-section::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(196, 181, 253, 0.3),
    transparent
  );
}

.sb-section:last-child::after {
  display: none;
}

.sb-left {
  flex: 1;
}

.sb-leftcenter {
  flex: 1.5;
}

.sb-center {
  flex: 0 0 100px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8px;
}

.sb-portrait-box {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background: rgb(10, 5, 15);
  border: 2px solid;
  border-image: linear-gradient(
    135deg,
    var(--opal-pink, #ff7eb3) 0%,
    var(--opal-lavender, #c4b5fd) 50%,
    var(--opal-teal, #5eead4) 100%
  ) 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 15px rgba(192, 132, 252, 0.3),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.sb-face {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(196, 181, 253, 0.5));
  transition: all 0.3s ease;
}

.sb-face.excited {
  filter: drop-shadow(0 0 15px rgba(253, 230, 138, 0.8));
  animation: face-pulse 0.4s ease;
}

@keyframes face-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

.sb-rightcenter {
  flex: 1;
}

.sb-right {
  flex: 1.2;
}

.sb-value {
  font-family: 'Courier New', monospace;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.05em;
  
  /* Oilslick text shimmer */
  background: linear-gradient(
    135deg,
    var(--opal-pink, #ff7eb3) 0%,
    var(--opal-lavender, #c4b5fd) 30%,
    var(--opal-teal, #5eead4) 60%,
    var(--opal-gold, #fde68a) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: oilslick-shift 8s ease infinite;
}

@keyframes oilslick-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.sb-room {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  
  /* Softer shimmer for location */
  background: linear-gradient(
    90deg,
    var(--mist, #c8bfdb) 0%,
    var(--ghost, #f0e6ff) 50%,
    var(--mist, #c8bfdb) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 4s ease infinite;
}

@keyframes text-shimmer {
  0%, 100% { background-position: 100% 50%; }
  50%      { background-position: 0% 50%; }
}

.sb-label {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  color: var(--dust, #8a8098);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.7;
}

/* Center eye icon */
.sb-face {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(196, 181, 253, 0.5));
  transition: all 0.3s ease;
}

.sb-face.excited {
  filter: drop-shadow(0 0 15px rgba(253, 230, 138, 0.8));
  animation: face-pulse 0.4s ease;
}

@keyframes face-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

/* ── STAMINA BAR ───────────────────────────── */

.sb-stamina-container {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.sb-stamina-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(196, 181, 253, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

.sb-stamina-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.sb-stamina-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--opal-teal, #5eead4),
    var(--opal-lavender, #c4b5fd)
  );
  transition: width 0.1s ease;
  border-radius: 2px;
}

.sb-stamina-fill.depleted {
  background: linear-gradient(
    90deg,
    var(--opal-coral, #fca5a5),
    var(--opal-pink, #ff7eb3)
  );
}

.sb-stamina-text {
  font-family: 'Courier New', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--opal-coral, #fca5a5);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-shadow: 0 0 10px rgba(252, 165, 165, 0.5);
}

.sb-stamina-text.visible {
  opacity: 1;
}

/* ── COMPLETION CELEBRATION ────────────────── */

.completion-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(5, 2, 10, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.completion-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.completion-title {
  font-family: 'Courier New', monospace;
  font-size: clamp(24px, 5vw, 48px);
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 20px;
  
  background: linear-gradient(
    135deg,
    var(--opal-gold, #fde68a) 0%,
    var(--opal-pink, #ff7eb3) 25%,
    var(--opal-lavender, #c4b5fd) 50%,
    var(--opal-teal, #5eead4) 75%,
    var(--opal-gold, #fde68a) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-shift 3s ease infinite;
}

@keyframes rainbow-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.completion-message {
  font-family: 'Courier New', monospace;
  font-size: clamp(12px, 2vw, 18px);
  color: var(--mist, #c8bfdb);
  text-align: center;
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.completion-btn {
  padding: 14px 32px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--ghost, #f0e6ff);
  background: rgba(196, 181, 253, 0.1);
  border: 1px solid rgba(196, 181, 253, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.completion-btn:hover {
  background: rgba(196, 181, 253, 0.2);
  border-color: rgba(196, 181, 253, 0.5);
  box-shadow: 0 0 20px rgba(196, 181, 253, 0.2);
}

/* Confetti canvas */
#confettiCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@keyframes face-bounce {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

/* ── DOOM HAND ─────────────────────────────── */

.hud-hand {
  position: absolute;
  bottom: 32px;           /* sit on top of the status bar */
  right: 18%;             /* offset to the right, not centered */
  z-index: 5;
  pointer-events: none;
}

.hud-hand img {
  display: block;
  width: auto;
  height: clamp(280px, 55vh, 500px);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7));
}

.hud-hand.bobbing img {
  animation: hand-bob 0.5s ease-in-out infinite;
}

@keyframes hand-bob {
  0%, 100% { transform: translateY(-2); }
  50%      { transform: translateY(-8px); }
}

/* ── START/PAUSE MENU ──────────────────────── */

.gallery-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 2, 10, 0.92);
  transition: opacity 0.4s ease;
}

.gallery-menu.hidden {
  opacity: 0;
  pointer-events: none;
}

.menu-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 60px;
  background: linear-gradient(
    135deg,
    rgba(30, 20, 40, 0.95) 0%,
    rgba(15, 10, 25, 0.98) 100%
  );
  border: 2px solid rgba(240, 230, 255, 0.1);
  box-shadow:
    0 0 60px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.menu-title {
  font-family: 'DrCaligari', monospace;
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: 0.3em;
  color: var(--ghost, #f0e6ff);
  text-shadow: 0 0 30px rgba(192, 132, 252, 0.4);
}

.menu-subtitle {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--mist, #c8bfdb);
  margin-bottom: 12px;
}

.menu-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.menu-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  padding: 14px 24px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-align: center;
  text-decoration: none;
  color: var(--mist, #c8bfdb);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(240, 230, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-btn:hover {
  color: var(--ghost, #f0e6ff);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(240, 230, 255, 0.3);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.15);
}

.menu-btn-primary {
  color: var(--opal-gold, #fde68a);
  border-color: rgba(253, 230, 138, 0.3);
}

.menu-btn-primary:hover {
  color: #fff;
  background: rgba(253, 230, 138, 0.1);
  border-color: rgba(253, 230, 138, 0.5);
  box-shadow: 0 0 25px rgba(253, 230, 138, 0.2);
}

.menu-btn-back {
  color: var(--dust, #8a8098);
  font-size: 12px;
  padding: 10px 20px;
}

.menu-controls {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(200, 191, 219, 0.4);
  margin-top: 8px;
}

/* Settings */
.setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  padding: 8px 0;
}

.setting-label {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist, #c8bfdb);
}

.setting-toggle {
  padding: 6px 16px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--opal-teal, #5eead4);
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 50px;
}

.setting-toggle[data-on="false"] {
  color: var(--dust, #8a8098);
  background: rgba(138, 128, 152, 0.1);
  border-color: rgba(138, 128, 152, 0.3);
}

.setting-toggle:hover {
  opacity: 0.8;
}

.setting-slider {
  width: 100px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}

.setting-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--opal-lavender, #c4b5fd);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.setting-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.setting-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--opal-lavender, #c4b5fd);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.setting-value {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--dust, #8a8098);
  min-width: 35px;
  text-align: right;
}

/* ── VIEWED INDICATOR ──────────────────────── */

.viewed-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.viewed-indicator.visible {
  opacity: 1;
}

.viewed-eye {
  display: block;
  font-size: 32px;
  animation: viewed-float 2s ease-in-out infinite, viewed-rotate 6s linear infinite;
  /* Match crosshair gold color */
  filter: 
    drop-shadow(0 0 8px rgba(253, 230, 138, 0.8))
    drop-shadow(0 0 16px rgba(253, 230, 138, 0.4))
    sepia(0.4) saturate(2) hue-rotate(5deg) brightness(1.2);
}

@keyframes viewed-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes viewed-rotate {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-4px) rotate(5deg); }
  50%  { transform: translateY(-8px) rotate(0deg); }
  75%  { transform: translateY(-4px) rotate(-5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* ── LOADING SCREEN ────────────────────────── */

.gallery-loading {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(5, 2, 10);
  transition: opacity 0.6s ease;
}

.gallery-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px;
  max-width: 500px;
  text-align: center;
}

.loading-title {
  font-family: 'Courier New', monospace;
  font-size: clamp(18px, 3vw, 28px);
  letter-spacing: 0.3em;
  
  background: linear-gradient(
    90deg,
    var(--opal-pink, #ff7eb3),
    var(--opal-lavender, #c4b5fd),
    var(--opal-teal, #5eead4),
    var(--opal-gold, #fde68a)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: oilslick-shift 3s ease infinite;
}

.loading-bar-container {
  width: 100%;
  max-width: 350px;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--opal-pink, #ff7eb3),
    var(--opal-lavender, #c4b5fd),
    var(--opal-teal, #5eead4)
  );
  transition: width 0.3s ease;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(196, 181, 253, 0.4);
}

.loading-status {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--mist, #c8bfdb);
  min-height: 1.2em;
}

.loading-tip {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dust, #8a8098);
  font-style: italic;
  opacity: 0.7;
  margin-top: 10px;
}

.hud-crosshair.faded {
  opacity: 0.3;
  color: rgba(253, 230, 138, 0.5);
  text-shadow: none;
}

.completion-overlay.active {
  z-index: 250;
  cursor: default;
}

.completion-btn-back {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--dust, #8a8098);
  border-color: rgba(138, 128, 152, 0.2);
  text-decoration: none;
}

.completion-btn-back:hover {
  color: var(--mist, #c8bfdb);
  border-color: rgba(200, 191, 219, 0.3);
  background: rgba(200, 191, 219, 0.08);
}

.completion-overlay.active {
  z-index: 250;
  cursor: default;
  pointer-events: auto;
}