:root {
  --color-bg: #efefec;
  --color-hv: #d1b3ff;
  --color-fg: #bf94ff;
  --color-tx: #27292c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #15052e;
    --color-hv: #451093;
    --color-fg: #5c16c5;
    --color-tx: #efefec;
  }
}

* {
  font-family: sans-serif;
}

body {
  background-color: var(--color-bg);
  color: var(--color-tx);
  width: 100%;
  margin: 0;
  padding: 0 calc(max(10px, 50% - 450px));
  padding-bottom: 200px;
  box-sizing: border-box;
}

.logo {
  text-align: center;
  font-size: 50px;
  line-height: 50px;
  font-weight: bold;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.logo > img {
  height: 50px;
}

.logo > * {
  display: block;
}

.extension-status {
  position: relative;
  height: 300px;
  margin-top: 40px;
}

.extension-status > div {
  position: absolute;
  inset: 0;
  font-size: 30px;
  text-align: center;
  font-weight: bold;
  background-color: var(--color-hv);
}

.waiting-for-extension {
  line-height: 300px;
  cursor: default;
}

.gos-not-installed {
  line-height: 30px;
  padding: 120px;
  cursor: pointer;
}

.logged-out {
  line-height: 30px;
  padding: 120px;
  cursor: default;
}

.preview-messages {
  line-height: 300px;
  color: var(--color-bg);
  cursor: default;
}

.preview-messages > div {
  width: 160px;
  height: 40px;
  position: absolute;
  color: var(--color-tx);
  padding: 10px;
  background-color: var(--color-fg);
  left: calc(var(--x) * (900px - 180px));
  top: calc(var(--y) * (300px - 60px));
  opacity: 0;
  animation: preview-message;
  animation-duration: 5s;
}

.preview-messages > div > div:first-child {
  display: block;
  width: 100%;
  height: 20px;
  line-height: 20px;
  font-size: 20px;
}

.preview-messages > div > div:last-child {
  display: block;
  width: 100%;
  height: 20px;
  line-height: 20px;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes preview-message {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.games {
  display: flex;
  margin-top: 10px;
  gap: 10px;
  justify-content: center;
}

.games > div {
  background-color: var(--color-fg);
  width: 100%;
  height: 222.5px;
  cursor: pointer;
}

.games > div:hover {
  background-color: var(--color-hv);
}

.games > div > img {
  display: block;
  height: 140px;
  margin: 20px auto 10px auto;
}

.games > div > div {
  text-align: center;
  line-height: 30px;
  font-size: 30px;
  margin-bottom: 20px;
}

.commands-header {
  font-size: 30px;
  line-height: 30px;
  font-weight: bold;
  margin-top: 40px;
  text-align: left;
}

.commands {
  border-spacing: 10px;
  margin: 0 -10px;
}

.commands > tbody {
  background-color: red;
}

.commands > tbody > tr > * {
  padding: 10px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
}

.commands > tbody > tr > th {
  text-align: left;
}

.commands > tbody > tr > th:nth-child(1) {
  width: 250px;
}

.commands > tbody > tr > th:nth-child(2) {
  width: 600px;
}

.commands > tbody > tr {
  background-color: var(--color-hv);
}

.commands > tbody > tr:first-child {
  background-color: var(--color-fg);
}
