:root {
  --scale: 1;
  --shift-x: 0px;
  --shift-y: 0px;
}
* {
  padding: 0;
  margin: 0;
}
body {
  width: 100vw;
  height: 100vh;
  background-color: #222;
  overflow: hidden;
  position: relative;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}
#canvas {
  display: block;
  width: 100%;
  height: 100%;
}
#hud {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;

  display: flex;
  top: 2rem;
  left: 1rem;
  right: 1rem;
  max-width: 480px;
  height: 4rem;

  margin: 0 auto;
  position: fixed;

  & > div {
    padding: 0.5rem 1rem;
    display: grid;
    flex-grow: 1;

    grid-template-columns: repeat(2, 1fr);

    #color {
      display: flex;
      font-size: 2em;
      font-weight: bold;
      line-height: 1;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    & > div {
      border-left: 1px solid rgba(0, 0, 0, 0.1);
      text-align: center;
      line-height: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    #number {
      font-size: 1.5em;
    }

    #caption {
      font-size: 0.8em;
    }
  }
}
