:root {
  --color-white: #ffffff;
  --color-black: #000000;

  --background-color: var(--color-black);
}

@media (max-width: 768px) {
  :root {
  }
}

* {
  margin: 0;
  padding: 0;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

html {
  font-size: calc(1em * 0.0625);
  box-sizing: border-box;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 1em;
  margin: 0;
  font-weight: normal;
}

a {
  background-color: transparent;
  text-decoration: none;
}

b,
strong {
  font-weight: normal;
}

img {
  display: block;
  border-style: none;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  color: var(--color-black);
  background-color: var(--background-color);
}

svg {
  width: 80vw;
  height: 80vh;

  @media (max-width: 768px) {
    width: 100vw;
    height: 100vh;
  }
}

.joystick-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 100;
  background-color: #ebebeb;
  border-radius: 100%;

  @media (max-width: 768px) {
    bottom: 20px;
    right: 20px;
  }
}
.joystick-base {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.joystick-stick {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, #ff4d4d, #b30000);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
