h1 {
  text-align: center;
  color: whitesmoke;
  background-color: #0961488a;
  margin: 0;
  padding: 20px 0;
}

.time {
  font-size: larger;
  color: #3c193cbf;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0;
}

.best {
  color: #3c193cbf;
  font-weight: bold;
  text-align: center;
  margin-top: 4px;
  font-size: small;
}

body {
  background-color: #efefef;
  padding-top: 0;
}

#game {
  display: flex;
}

#game canvas {
  width: 400px;
  max-width: 100%;
  touch-action: none; /* 防止手机拖动方块时页面跟着滚动 */
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.controls {
  text-align: center;
  margin: 12px 0;
}

.controls button {
  font-size: medium;
  font-weight: bold;
  color: white;
  background-color: #0961488a;
  border: 1px solid white;
  border-radius: 8px;
  padding: 8px 18px;
  margin: 0 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.controls button:hover,
.controls button:active {
  background-color: #096148c9;
}

.关卡 span {
  cursor: pointer;
}

.关卡 span.active {
  color: #ffd700;
  text-decoration: underline;
}

canvas {
  margin: auto;
}

.关卡 span:hover,
table th:not(:first-child):hover,
a:hover {
  color: #fb98fbbf;
}

.foot {
  font-style: italic;
  font-size: small;
  text-align: center;
}

.box {
  text-align: center;
  margin: 10px auto;
  padding: 0 20px;
  border: 1px solid white;
  border-radius: 10px;
  background-color: #0961484f;
  font-weight: bold;
  color: white;
  max-width: 640px;
}

.intro {
  padding: 4px 20px 14px;
}

.intro h2 {
  font-size: large;
  margin-bottom: 4px;
}

.intro p {
  font-weight: normal;
  text-align: justify;
  margin-top: 4px;
  line-height: 1.6;
}

#背景 {
  color: rgb(255, 127, 127);
  width: 100%;
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: -1;

  /* opacity: 0.5; */
}

.icon {
  vertical-align: middle;
  height: 20px;
  border: 1px solid white;
}

table th {
  color: #3c193cbf;
  font-size: large;
}

table tbody tr td:nth-child(odd) {
  color: rgba(208, 105, 105, 0.752);
}

table tbody tr td:nth-child(even) {
  color: rgba(255, 213, 213, 0.861);
}

caption {
  color: #583b58a4;
  font-size: x-large;
}
