:root {
  color-scheme: dark;
  font-family: "Microsoft Yahei", Arial, sans-serif;
  background: #000;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

#dashboard {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--scale, 0));
  color: #fff;
  background-size: 100% 100%;
  overflow: hidden;
}

.layer {
  position: absolute;
  box-sizing: border-box;
  opacity: var(--layer-opacity, 1);
}

.image-layer {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.decoration {
  background-size: 100% auto;
  background-position: center;
}

.title, .timer, .fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.title {
  margin: 0;
  white-space: nowrap;
}

.counter {
  display: flex;
  flex-direction: column;
}

.counter-title {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.counter-value {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.counter-value span {
  flex: none;
}

.timer time {
  white-space: nowrap;
}

.table {
  overflow: hidden;
}

.table-line {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.table-body {
  overflow: hidden;
}

.table-cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-cell span {
  display: inline-block;
}

.row-number {
  display: grid;
  place-items: center;
}

.row-number span {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.fullscreen {
  border: 0;
  cursor: pointer;
}

.fullscreen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fullscreen:not(:hover):not(:focus-visible) {
  opacity: 0;
}

.watermark {
  position: absolute;
  right: 10px;
  bottom: 11px;
  width: 50px;
  pointer-events: none;
}

#connection-status {
  position: fixed;
  left: 12px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #d5eeff;
  background: #142638;
  font-size: 12px;
}
