@font-face {
  font-family: "Cinzel";
  font-weight: 700;
  font-display: block;
  src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cinzel";
  font-weight: 900;
  font-display: block;
  src: url("../fonts/cinzel-latin-900-normal.woff2") format("woff2");
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #1a0508;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
canvas { display: block; }

#loader {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #1a0508 url("../assets/splash_portrait.webp") center / cover no-repeat;
  transition: opacity .5s ease;
}
#loader.done { opacity: 0; pointer-events: none; }
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
  background: radial-gradient(closest-side, rgba(20, 4, 8, .75), rgba(20, 4, 8, 0));
}
.loader-logo { width: min(42vw, 220px); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }
.loader-title {
  font: 900 clamp(22px, 5vw, 40px) "Cinzel", Georgia, serif;
  letter-spacing: .08em;
  background: linear-gradient(#fff6c8, #ffd34d 45%, #c98a0c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .7));
}
.loader-bar {
  width: min(70vw, 360px);
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  border: 2px solid #c98a0c;
  overflow: hidden;
}
#loader-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #c98a0c, #ffe27a, #c98a0c);
  transition: width .15s linear;
}
.loader-note { font: 700 12px "Cinzel", Georgia, serif; color: #f5deb0; opacity: .85; text-shadow: 0 1px 2px #000; }
