/* Domino web page: a full-window canvas over the Club Felt colors (UI/Styles/tokens.uss), and a loading screen
   with the logo and a progress bar. Plumbing only; the designer may restyle it. */

:root {
  --felt-deep: rgb(10, 30, 21);
  --felt: rgb(22, 58, 41);
  --brass: rgb(230, 186, 96);
  --brass-dark: rgb(150, 112, 44);
  --track: rgba(214, 177, 99, 0.25);
  --text: rgb(250, 244, 228);
  --danger: rgb(196, 70, 58);
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--felt-deep);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}

#unity-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
  background: var(--felt-deep);
  outline: none;
  touch-action: none;
}

#domino-loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom);
  background: radial-gradient(ellipse at center, var(--felt) 0%, var(--felt-deep) 72%);
}

#domino-logo {
  width: min(72vw, 420px);
  height: auto;
  pointer-events: none;
}

#domino-progress {
  width: min(64vw, 320px);
  height: 8px;
  border-radius: 4px;
  background: var(--track);
  overflow: hidden;
}

#domino-progress-fill {
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brass-dark), var(--brass));
  transition: width 0.2s ease-out;
}

#domino-message {
  min-height: 1.4em;
  max-width: min(88vw, 520px);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  -webkit-user-select: text;
  user-select: text;
}

#domino-message.is-error {
  color: var(--text);
  background: var(--danger);
  padding: 10px 14px;
  border-radius: 8px;
}

#domino-message.is-error:empty {
  display: none;
}
