html,
body {
  font-family: Inter, sans-serif;
  font-size: 14px;
  padding: 0;
  margin: 0;
  background-color: #000;
  color: #fff;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: calc(100vh - 52px);
}

@supports (height: 100dvh) {
  body {
    height: 100dvh;
  }
}

#game-frame {
  display: none;
  width: 100%;
  height: 100%;
  border: none;
  background-color: black;
  color: white;
  z-index: 2;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 50%;
  transform: translateY(-50%);
}

#side-panel {
  z-index: 10;
  background-color: #070e34;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
  width: 300px;
}

#side-panel.closed {
  transform: translate(-100%);
}

#side-panel.closed #side-panel-top {
  display: none;
}

#side-panel.closed #open-drawer {
  display: flex;
}

#side-panel.open {
  width: 300px;
}

#side-panel.open #open-drawer {
  display: none;
}

#side-panel.open #side-panel-top {
  display: flex;
}

#side-panel.open #side-panel-content {
  display: flex;
}

#open-drawer {
  right: 0;
  transform: translate(100%, -50%);
  border-radius: 0 8px 8px 0;
  background:
    linear-gradient(0deg, #19214e, #19214e) padding-box,
    linear-gradient(270deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%) border-box;
  width: 20px;
  height: 140px;
  top: 50%;
  position: absolute;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s ease-out;
  z-index: 3010;
  border: 1px solid transparent;
  border-left: 0;
}

#side-panel-top {
  padding: 14px;
  border-bottom: 1px solid #19214e;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 100%;
  overflow: auto;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.items-flex-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.space-between {
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.w-half {
  width: 50%;
}

.h-half {
  height: 50%;
}

.w-quarter {
  width: 25%;
}

.h-quarter {
  height: 25%;
}

.pill {
  padding: 0 6px;
  border-radius: 20px;
  background-color: #19214e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 32px;
}

.item {
  background-color: #19214e;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: #bdc7d6;
  cursor: pointer;
  transition: all 0.2s ease-in;
}

.item:hover {
  color: #fff;
}

.item > img {
  padding: 0.5rem 1rem;
}

.item .text {
  font-weight: 700;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  text-transform: uppercase;
}

#side-panel-content {
  padding: 18px 14px;
}

#side-panel-content h4 {
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  margin: 0;
}

#close-drawer {
  padding: 0 1rem;
}

#side-panel-content-header {
  margin-bottom: 1rem;
}

#loading {
  border: 0.5rem solid #f3f3f3;
  border-top: 0.5rem solid transparent;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  animation: spin 2s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.transition {
  transition: transform 0.2s ease-out;
}
