/* 开奖号码：圆角色块 + 底部白底标签（与参考图一致） */

.balls {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  margin: 8px 8px 4px;
  padding: 6px 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: stretch;
  justify-content: space-between;
  width: 100%;
  aspect-ratio: 1.38 / 1;
  min-height: 0;
  padding: 4px 2px 3px;
  border: 0;
  border-radius: 6px;
  background: #cfd8dc;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

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

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

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

.ball > * {
  position: relative;
  z-index: 1;
}

.ball__value {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 1px;
  border-radius: 0;
  aspect-ratio: auto;
  background: transparent;
  box-shadow: none;
  font-weight: 900;
  font-size: clamp(15px, 4.4vw, 20px);
  line-height: 1;
  color: #fff;
  text-align: center;
}

.ball__value--placeholder {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(14px, 3.8vw, 18px);
}

.ball__label {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  font-size: clamp(8px, 2.2vw, 10px);
  color: #111;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  background: #fff;
  border: 0;
  border-radius: 2px;
  padding: 2px 1px;
  box-shadow: none;
}

.ball__label:empty {
  display: none;
}

/* 特码与正码同款，不再加金圈 */
.ball--special {
  /* 保留 class 供逻辑区分，样式与正码一致 */
}

/* 新澳彩 / 澳彩 切换按钮激活态（主样式在 index.html） */
.ok-btn--xin.is-active,
.ok-btn--ao.is-active {
  filter: none;
}
