*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.7;
  width: 100vw;
  height: 100vh;
  background-image: url(./img/背景图片.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.time {
  width: 100vw;
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 3rem;
  background: linear-gradient(45deg, #4b3d6f, #a45d8d);
  background-clip: text;
  color: transparent;
}

#user_time {
  font-family: Consolas, monospace;
  color: lightcoral;
}

.rule {
  position: fixed;
  right: 25px;
  top: 200px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #def1;
  outline: solid 2px #def2;
  border-radius: 5px;
  backdrop-filter: blur(5px);
}

.单选区 {
  display: flex;
}

.单选标题 {
  padding-right: 15px;
  text-wrap: nowrap;
  align-content: center;
  color: yellowgreen;
}

.控件标签 {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #111;
}

.单选区:hover,
.控件标签:hover,
.单选框:hover {
  cursor: url("/Images/Common/鼠标-指向.cur"), pointer;
}

.控件标题 {
  padding: 10px 15px;
  top: 0;
  left: 0;
  text-wrap: nowrap;
  font-size: 14px;
}

.单选框 {
  position: absolute;
  width: 100%;
  height: 100%;
  appearance: none;
}

.控件标签:first-of-type {
  border-radius: 5px 0 0 5px;
}

.控件标签:last-of-type {
  border-radius: 0 5px 5px 0;
}

.控件标签:has(.单选框:checked) {
  background-color: silver;
  color: black;
}

.main {
  margin-top: 75px;
  display: flex;
  width: 100vw;
  height: fit-content;
  flex-wrap: wrap;
}

.姓名区 {
  margin: 0 auto;
  width: max(1000px, 90%);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.姓名 {
  position: relative;
  background-color: #0122;
  outline: solid 1px #cde4;
  font-size: 20px;
  color: #f8d3e0;
  width: 120px;
  height: 55px;
  border-radius: 5px;
}

.姓名:focus {
  outline: solid 1px #cde4;
}

.姓名:hover {
  background-color: #cde2;
  backdrop-filter: blur(10px);
}

.姓名.选中 {
  background-color: #fff8;
  outline: solid 1px #fff8;
  color: black;
}

.姓名.出队 {
  pointer-events: none;
  filter: brightness(35%);
  outline: solid 1px transparent;
}

.肖像区 {
  margin: min(8%, 100px) auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: clamp(750px, 75%, 95vw);
  height: fit-content;
}

.肖像 {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: clamp(150px, 12.5%, 300px);
  padding: 10px;
  aspect-ratio: 0.8;
}

.肖像图容器 {
  position: relative;
  width: 100%;
  height: 100%;
  outline: solid 2px #cdec;
  transition: transform 250ms;
  user-select: none;
  background: center/cover no-repeat url("./img/肖像背景.jpg");
}

.肖像图容器:hover {
  transform: scale(1.05);
  cursor: url("/Images/Common/鼠标-指向.cur"), pointer;
}

.肖像图容器::before {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  text-align: center;
  align-content: center;
  font-size: 125px;
  content: "";
}

.肖像图容器.选中 {
  outline: solid 2px #def;
}

.肖像图容器.选中::before {
  content: "\f002";
  backdrop-filter: brightness(35%);
}

.肖像图容器.出队 {
  pointer-events: none;
  outline: solid 2px transparent;
}

.肖像图容器.出队 .肖像图 {
  filter: brightness(25%);
}

.肖像图容器.出队::before {
  content: "\f00c";
  z-index: 1;
}

.肖像图 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
