@font-face {
  font-family: "Sid_handwriting";
  src: url("/assets/fonts/Sid_handwriting.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

#loadingScreen {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 200px;
  padding: 16px 22px;
  border-radius: 16px;

  font-family: Futura, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  color: white;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6); /* Soft glow */

  background: rgba(255, 255, 255, 0.1);       /* semi-transparent glass */
  background-color: rgba(0, 0, 0, 0.25);      /* base tint */
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);

  display: flex;
  flex-direction: column;
  align-items: center;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.35),
    inset 0 0 8px rgba(255, 255, 255, 0.05);

  pointer-events: none;
  user-select: none;

  z-index: 9999;
}

#loadingText {
  font-size: 1rem;
  color: white;
  text-align: center;
  margin: 0;
}

#controlsText {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
  margin: 0;
}

#loadingCanvas {
  width: auto;       /* fill the HUD width */
  height: 100%;      /* maintain aspect ratio */
  max-height: 200px; /* control max vertical space */
  border-radius: 12px; /* optional: soft corners like the HUD */
}

#discoveryHUD {
  position: fixed;
  top: 24px;
  left: 24px;

  padding: 16px 22px;
  border-radius: 16px;

  font-family: Futura, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: white;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6); /* Soft glow for readability */

  background: rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.25); /* Base tint, adjustable */
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 340px;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.35),
    inset 0 0 8px rgba(255, 255, 255, 0.05);

  pointer-events: none;
  user-select: none;

  opacity: 0.9;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#discoveryHUD div {
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

#discoveryHUD span {
  font-weight: 500;
  transition: all 0.25s ease;
}

#discoveryHUD div span {
  font-weight: 500;
  transition: all 0.25s ease;
  margin-left: 12px; /* <-- adds space between label and value */
}

#authorWatermark {
  position: fixed;
  bottom: 20px;
  right: 20px;

  padding: 8px 14px;

  font-family: Futura, sans-serif;
  font-size: 0.75rem;
  color: white;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;

  box-shadow: 0 8px 25px rgba(0,0,0,0.25);

  opacity: 0.8;
  transition: opacity 0.2s ease;
}

#authorWatermark a {
  color: white;
  text-decoration: none; /* remove underline */
  font-weight: 500;
}

#authorWatermark:hover {
  opacity: 1;
}

.statPulse {
  color: #8ff0ff;
  text-shadow:
    0 0 6px rgba(143, 240, 255, 0.9),
    0 0 12px rgba(143, 240, 255, 0.7);
  animation: pulse 0.35s ease-out;
}

.statBlock {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.statBlock:nth-child(2) {
  margin-top: 6px;
}

.statMain {
  font-weight: 500;
}

.subStat {
  display: block;
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 3px;
  line-height: 1.3;
  max-width: 100%;
  word-wrap: break-word;
}

.statValue {
  font-variant-numeric: tabular-nums;
}

#statPhotos {
  margin-right: 8px;
}

#statDistance {
  margin-right: 8px;
}

#statPhotos::after {
  content: " ";
}

#muteButton {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(12px) saturate(180%);
  border-radius: 12px;
  cursor: pointer;
  z-index: 10000;
  color: white;
}

#muteButton:hover {
  background: rgba(0,0,0,0.5);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

body {
    margin: 0;
    overflow: hidden; /* no scrollbars */
    background-color: #0d0d0d;
  }
  canvas {
    display: block;
  }