:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #05070a;
}

* {
  box-sizing: border-box;
}

html,
body,
#unity-container {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #05070a;
}

#unity-container {
  position: relative;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

#playback-status {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 0.55rem;
  color: rgb(255 255 255 / 85%);
  background: rgb(5 7 10 / 82%);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

#playback-status[hidden] {
  display: none;
}

#playback-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto auto minmax(6rem, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 4.25rem;
  padding: 0.8rem max(1rem, env(safe-area-inset-right)) max(0.8rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  color: #fff;
  background: linear-gradient(to top, rgb(4 7 11 / 92%), rgb(4 7 11 / 66%) 68%, transparent);
}

#play-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 5.25rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 0.5rem;
  color: #fff;
  font: inherit;
  font-weight: 650;
  background: rgb(255 255 255 / 12%);
  cursor: pointer;
}

#play-pause:hover:not(:disabled) {
  background: rgb(255 255 255 / 20%);
}

#play-pause:focus-visible,
#playback-scrubber:focus-visible {
  outline: 3px solid #65baff;
  outline-offset: 3px;
}

#play-pause:disabled,
#playback-scrubber:disabled {
  cursor: wait;
  opacity: 0.48;
}

#play-pause-icon {
  width: 1rem;
  line-height: 1;
  text-align: center;
}

#current-time,
#duration {
  min-width: 3.4rem;
  color: rgb(255 255 255 / 82%);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

#duration {
  text-align: right;
}

#playback-scrubber {
  width: 100%;
  margin: 0;
  accent-color: #50adf5;
  cursor: pointer;
}

@media (max-width: 560px) {
  #playback-controls {
    grid-template-columns: auto minmax(4rem, 1fr) auto;
    gap: 0.6rem;
  }

  #play-pause {
    min-width: 2.75rem;
  }

  #play-pause-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  #current-time {
    display: none;
  }
}
