html, body {
  margin: 0;
  height: 100%;
  background: #070814;
  color: #1c2430;
  font: 16px/1.4 "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

#view {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#status {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  text-align: center;
  color: #f6f1e6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

#play {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #000;
}

#play[hidden] {
  display: none;
}

#bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 6px 12px;
  background: #f6f1e6;
  color: #3a3128;
}

#votes {
  display: flex;
  flex: none;
  gap: 8px;
}

#votes button,
#add-form button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #efe6d6;
  color: #3a3128;
  font: inherit;
  cursor: pointer;
}

#votes svg {
  width: 18px;
  height: 18px;
}

#votes button[aria-pressed="true"],
#add-form button[type="submit"] {
  background: #e07a3d;
  color: #fffaf3;
}

#credit {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#leave {
  flex: none;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #3a3128;
  color: #f6f1e6;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#game {
  flex: 1;
  width: 100%;
  border: 0;
  background: #000;
}

#sheet {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(28, 36, 48, 0.28);
}

#sheet[hidden] {
  display: none;
}

#add-form {
  width: min(420px, calc(100% - 32px));
  margin: 0;
  padding: 20px;
  border-radius: 16px;
  background: #f6f1e6;
  color: #3a3128;
}

#add-form h2 {
  margin: 0;
  font-size: 22px;
}

#add-form p {
  margin: 8px 0 0;
}

#add-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

#add-form input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d9d0c2;
  border-radius: 8px;
  background: #fffaf3;
  color: inherit;
  font: inherit;
}

#add-error {
  min-height: 1.4em;
}

#add-form .actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
