/* Every Last Grain web page: one typeface (Lilita One, as in the game), warm dark desert night behind it. */
@font-face {
  font-family: "Lilita One";
  src: url("LilitaOne-Regular.ttf") format("truetype");
  font-display: block;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a110b;
  font-family: "Lilita One", sans-serif;
  color: #fff6e6;
}

#unity-canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  background: #1a110b;
  outline: none;
}

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4vh;
  background: radial-gradient(ellipse at 50% 40%, #6b3d1c 0%, #2c1a0e 55%, #150d08 100%);
  transition: opacity 0.45s ease;
}
#loading.done { opacity: 0; pointer-events: none; }

#loading-logo {
  width: min(56vw, 560px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

#loading-bar {
  width: min(48vw, 420px);
  height: 22px;
  border: 4px solid #080d17;
  border-radius: 999px;
  background: #3a2414;
  box-shadow: 0 5px 0 #080d17;
  overflow: hidden;
}
#loading-fill {
  width: 4%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(#ffe060, #ffba22);
  transition: width 0.25s ease;
}

#loading-text {
  font-size: clamp(16px, 2.2vw, 24px);
  letter-spacing: 0.02em;
  color: #ffeccc;
  text-shadow: 0 2px 0 #080d17;
}

#message {
  position: fixed;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}
#message .msg {
  padding: 10px 18px;
  border-radius: 14px;
  border: 3px solid #080d17;
  font-size: 18px;
  color: #080d17;
  background: #ffcc33;
}
#message .msg.error { background: #ff6152; color: #fff6e6; }
