/* The join screen (join-ui.js): over everything until the player has said who they are. */

#join-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 6, 3, .86);
  color: #b9ffd1;
  font: 13px/1.5 var(--terminal-font, Consolas, "Courier New", monospace);
}

#join-screen[hidden] {
  display: none;
}

#join-box {
  width: min(66ch, 100%);
  padding: 16px 18px;
  border: 1px solid rgba(111, 255, 171, .55);
  background: rgba(0, 10, 5, .96);
  box-shadow: 0 0 32px rgba(0, 0, 0, .7);
}

#join-text {
  white-space: pre-wrap;
  word-break: break-word;
  letter-spacing: .04em;
}

#join-name {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(111, 255, 171, .45);
  background: rgba(0, 20, 10, .9);
  color: #fff;
  font: inherit;
  letter-spacing: .06em;
  outline: none;
}

#join-name:focus {
  border-color: #6fffab;
}

#join-name[hidden] {
  display: none;
}

#join-swatches {
  margin-top: 10px;
}

#join-swatches[hidden] {
  display: none;
}

.join-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

#join-swatches button {
  padding: 1px 6px;
  border: 1px solid rgba(111, 255, 171, .3);
  background: rgba(0, 20, 10, .9);
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  cursor: pointer;
}

#join-swatches button.on {
  border-color: #6fffab;
  box-shadow: inset 0 0 0 1px #6fffab;
}

#join-preview {
  padding: 0 8px;
  font-size: 30px;
  line-height: 1;
}

#join-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

#join-keys button {
  padding: 5px 10px;
  border: 1px solid rgba(111, 255, 171, .45);
  background: rgba(0, 20, 10, .9);
  color: #d5ffe1;
  font: inherit;
  letter-spacing: .06em;
  cursor: pointer;
}

#join-keys button.primary {
  border-color: #6fffab;
  color: #fff;
}

#join-keys button:hover,
#join-swatches button:hover {
  background: rgba(111, 255, 171, .25);
}

#join-status {
  min-height: 1.5em;
  margin-top: 10px;
  color: #6fffab;
  white-space: pre-wrap;
}
