/* Player page for Unity WebGL builds. The builds themselves are untouched; this page
   only replaces Unity's default template (fixed 450x800 canvas, Unity footer) with a
   canvas that keeps the game's aspect ratio and fits whatever frame it is shown in. */
html,
body {
  margin: 0;
  height: 100%;
  background: #191d1b;
  color: #eef1ec;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
}
#stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}
#unity-canvas {
  display: block;
  background: #191d1b;
  outline: none;
  touch-action: none;
}
#loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}
html[data-state="ready"] #loading {
  display: none;
}
#loading-name {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
#loading-text {
  margin: 0;
  color: #a9b3ad;
  font-variant-numeric: tabular-nums;
}
.bar {
  width: min(240px, 60vw);
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
#bar-fill {
  height: 100%;
  width: 0;
  background: #8fc2a9;
  transition: width 0.2s ease-out;
}
#banner {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  display: grid;
  gap: 6px;
}
#banner div {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff6e5;
  color: #5c3b00;
}
#banner div.error {
  background: #fdecec;
  color: #8a1c1c;
}

/* ?debug=1 readout (memory, device support). */
.debug {
  position: fixed;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.7);
  color: #fff;
  font: 12px/1.3 ui-monospace, monospace;
  pointer-events: none;
  z-index: 10;
}
