@font-face {
  font-family: "suisse";
  src: url("assets/fonts/suisse-desktop/Suisse font/desktop files/SuisseIntlCond-Semibold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f5f5f0;
  font-family: "suisse", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: #1a1a1a;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: #f5f5f0;
}

.loading-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loading-title {
  font-family: "suisse", "Helvetica Neue", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.loading-bar {
  width: 200px;
  height: 2px;
  background: #e0e0db;
  overflow: hidden;
}

.loading-bar-fill {
  width: 40%;
  height: 100%;
  background: #1a1a1a;
  animation: loading-sweep 1.2s ease-in-out infinite;
}

@keyframes loading-sweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}
.loading-hint {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

#overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: rgba(245, 245, 240, 0.85);
  cursor: pointer;
  transition: opacity 0.4s ease;
}

#overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#overlay .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.overlay-text {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
}

.overlay-hint {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.5;
}
