.shengxiao-container {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.shengxiao-tit {
  line-height: 30px;
  text-align: center;
  font-size: 14pt;
  font-weight: 900;
}

.list-title-red {
  color: #fff;
  background: linear-gradient(180deg, #ff3939 0%, #c40000 100%);
  border: 1px solid #a80000;
}

.shengxiao-lottery-box {
  border: 1px solid #e1e1e1;
  border-top: none;
  background: #fffdf7;
  padding: 8px;
  box-sizing: border-box;
}

.shengxiao-lottery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
}

.shengxiao-lottery-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0b7c20;
  font-size: 15pt;
  font-weight: 900;
  white-space: nowrap;
}

.shengxiao-lottery-title svg {
  flex: 0 0 auto;
}

.shengxiao-lottery-tag {
  color: #ff0000;
  background: #fff2a6;
  border: 1px solid #ffd24c;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11pt;
  font-weight: 900;
  white-space: nowrap;
}

.shengxiao-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 8px 0;
}

.shengxiao-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 2px solid #54cb57;
  border-radius: 6px;
  background: #fff;
  color: #ff0000;
  font-size: 18pt;
  font-weight: 900;
  box-shadow: inset 0 0 0 2px #e8f6e8;
  transform: scale(1);
  opacity: 1;
  transition: transform .18s ease, opacity .18s ease, background-color .18s ease;
}

.shengxiao-item.is-rolling {
  transform: scale(.88);
  opacity: .55;
  background: #fff6bd;
}

.shengxiao-btn {
  display: block;
  width: 160px;
  margin: 6px auto;
  border: none;
  border-radius: 6px;
  background: #ff2f2f;
  color: #fff;
  font-size: 14pt;
  line-height: 34px;
  font-weight: 900;
  cursor: pointer;
}

.shengxiao-btn:disabled {
  background: #888;
  cursor: default;
}

.shengxiao-result-container {
  display: none;
  text-align: center;
  color: #000;
  font-size: 13pt;
  font-weight: 900;
  line-height: 28px;
}

.shengxiao-result-text {
  color: #ff0000;
}

.shengxiao-lottery-footer {
  display: block;
  text-align: center;
  color: #0b7c20;
  font-size: 12pt;
  font-weight: 900;
  line-height: 28px;
  text-decoration: none;
}

.red-text {
  color: #ff0000;
}

@media (max-width: 420px) {
  .shengxiao-lottery-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .shengxiao-row {
    gap: 4px;
  }

  .shengxiao-item {
    min-height: 34px;
    font-size: 15pt;
  }
}
