/* 开奖号码：彩色方卡 + 底部白底标签（参考图样式） */

.balls {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  margin: 8px 6px 10px;
  padding: 8px 4px;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: opacity 0.22s ease;
}
.balls.balls--fade {
  opacity: 0.42;
}

.ball {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: clamp(64px, 19vw, 76px);
  padding: 8px 3px 6px;
  border: 0;
  border-radius: 8px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.ball[data-fill="red"] {
  background: #e51c23;
}

.ball[data-fill="blue"] {
  background: #2196f3;
}

.ball[data-fill="green"] {
  background: #28a745;
}

.ball__value {
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  font-weight: 900;
  font-size: clamp(17px, 5vw, 22px);
  line-height: 1;
  text-align: center;
  color: #fff;
}

.ball__value--placeholder {
  color: #64748b;
  font-size: clamp(13px, 3.8vw, 16px);
}

.ball__label {
  width: calc(100% - 4px);
  max-width: none;
  font-size: 10px;
  color: #111;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  background: #fff;
  border: 0;
  border-radius: 3px;
  padding: 2px 1px;
}

.ball__label:empty {
  display: none;
}

.ball--special {
  position: relative;
}

.ball--special::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #cbd5e1;
}

.refresh-tile {
  align-self: stretch;
  width: 100%;
  min-height: clamp(64px, 19vw, 76px);
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
  display: grid;
  place-items: center;
  padding: 8px 4px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.22);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.refresh-tile:active {
  transform: translateY(1px);
  filter: brightness(0.98);
}
