html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0f1117;
  color: #e8eaf0;
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  /* No pull-to-refresh or rubber-band scrolling while dragging cards. */
  overscroll-behavior: none;
  touch-action: none;
}

#game {
  position: fixed;
  inset: 0;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #0f1117;
}

#loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#loading[hidden],
#error[hidden],
#fullscreen[hidden] {
  display: none;
}

.bar {
  width: min(320px, 70vw);
  height: 8px;
  border-radius: 4px;
  background: #212532;
  overflow: hidden;
}

#progress {
  width: 0;
  height: 100%;
  background: #6e4ff6;
  transition: width 0.2s;
}

#fullscreen {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(15, 17, 23, 0.7);
  color: #e8eaf0;
  font-size: 22px;
  cursor: pointer;
}

#rotate,
#error {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: #0f1117;
  z-index: 10;
}

#error:not([hidden]) {
  display: flex;
}

/* The game is landscape only (Player Settings); on a phone held upright it asks to turn. */
@media (orientation: portrait) and (pointer: coarse) {
  #rotate {
    display: flex;
  }
}
