/* Base page: the Unity world owns the whole viewport. */
:root {
  color-scheme: light;
  font-family: ui-rounded, 'Avenir Next', 'Trebuchet MS', system-ui, sans-serif;
  color: var(--text);
  background: var(--page);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--page);
}
body {
  overflow: hidden;
}
button,
textarea,
input {
  font: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
textarea:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.game {
  position: fixed;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: var(--page);
}
.world {
  position: absolute;
  inset: 0;
  /* Close to the rendered sky, so any edge of the Unity backdrop that comes
     into view (for example while the robot hops at the finish) blends in. */
  background: color-mix(in srgb, var(--robot-ground) 80%, var(--robot-shell));
}
#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  outline: none;
}
.loading {
  position: absolute;
  z-index: 2;
  inset: 20% 16px auto;
  color: var(--text);
  text-align: center;
}
.loading-orbit {
  color: var(--accent);
  font-size: 30px;
}
.loading h1 {
  margin: 14px 0 12px;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -1px;
}
.loading p {
  color: var(--muted);
  font-size: 13px;
}
progress {
  appearance: none;
  -webkit-appearance: none;
  width: min(220px, 70%);
  height: 5px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  color: var(--accent);
  background: var(--border);
}
progress::-webkit-progress-bar {
  background: var(--border);
}
progress::-webkit-progress-value {
  background: var(--accent);
}
progress::-moz-progress-bar {
  background: var(--accent);
}
