/* Colours and fonts follow victorvilarrubla.info (dark mode): Bastion for titles,
   Candara for text. The font files ship in TemplateData/fonts. */
@font-face {
  font-family: "Showroom Bastion";
  src: url("fonts/Bastion.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Showroom Candara";
  src: url("fonts/Candara.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #262728;
  --ink: #dfe0e1;
  --muted: #b1b2b3;
  --line: #545556;
  --accent: #b5cd15;
  --font-title: "Showroom Bastion", Bastion, Georgia, serif;
  --font-text: "Showroom Candara", Candara, "Trebuchet MS", sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
}

/* The canvas fills the window; Unity matches the WebGL backbuffer to its CSS size. */
#unity-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: var(--paper);
  outline: none;
  touch-action: none; /* let Unity receive drags instead of the page scrolling */
}

#loader {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, 76vw);
}

#loader-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

#loader-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

#loader-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

#loader-title span {
  color: var(--accent);
}

#loader-track {
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

#loader-fill {
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.2s ease-out;
}

#loader-status {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

#warning {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  top: 16px;
  padding: 10px 14px;
  border: 1px solid var(--accent);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
}
