/* ============================================================
   lottery-roll.css — 首页开奖滚动特效（电视摇珠风格）
   与站点既有配色一致：红 rgb(231,22,7) / 蓝 rgb(35,137,233) / 绿 rgb(31,182,29)
   ============================================================ */

.lr-wrap {
  box-sizing: border-box;
  margin: 6px 0 8px;
  padding: 8px 10px 10px;
  border: 1px solid #f3d6b3;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff6e8 100%);
  font-family: "PingFang SC", "microsoft yahei", arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.lr-wrap * { box-sizing: border-box; }

/* ---------- 头部 ---------- */
.lr-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 8px;
}
.lr-title {
  font-size: 16px;
  font-weight: bold;
  color: #c62828;
  letter-spacing: 1px;
}
.lr-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  margin-right: 6px;
  border-radius: 2px;
  background: #c62828;
  vertical-align: -2px;
}
.lr-period {
  font-size: 13px;
  color: #8a6d3b;
}
.lr-period b { color: #d32f2f; font-weight: 700; }
.lr-status {
  margin-left: auto;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, #ff8a65, #e53935);
  border-radius: 20px;
  padding: 3px 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.lr-status.lr-status-idle {
  background: linear-gradient(180deg, #bdbdbd, #9e9e9e);
}
.lr-status.lr-status-done {
  background: linear-gradient(180deg, #ffb74d, #f57c00);
}
.lr-replay {
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(180deg, #8d6e63, #5d4037);
  border-radius: 20px;
  padding: 3px 12px;
  white-space: nowrap;
}
.lr-replay:hover { filter: brightness(1.12); }
.lr-replay:active { transform: translateY(1px); }

/* ---------- 号码区 ---------- */
.lr-balls {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}
.lr-ball {
  flex: 1 1 0;
  max-width: 56px;
  min-width: 0;
  text-align: center;
}
.lr-ball .lr-disc {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Tahoma, Geneva, sans-serif;
  font-size: clamp(15px, 4.2vw, 26px);
  font-weight: 900;
  color: #fff;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.42), rgba(255,255,255,0) 46%), #bdbdbd;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.22), 0 2px 3px rgba(0,0,0,.18);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  font-variant-numeric: tabular-nums;
  transition: background .18s ease;
}
.lr-ball .lr-disc::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.28);
  pointer-events: none;
}
.lr-ball .lr-tag {
  margin-top: 3px;
  font-size: 11px;
  line-height: 16px;
  color: #6d4c41;
  background: #fff;
  border: 1px solid #f0e0c8;
  border-radius: 3px;
  padding: 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 波色配色（与 myscript2024.js 一致） */
.lr-ball.lr-red   .lr-disc { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.42), rgba(255,255,255,0) 46%), #e71607; }
.lr-ball.lr-blue  .lr-disc { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.42), rgba(255,255,255,0) 46%), #2389e9; }
.lr-ball.lr-green .lr-disc { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.42), rgba(255,255,255,0) 46%), #1fb61d; }

/* 特码球外圈高亮 */
.lr-ball.lr-special .lr-disc {
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.22), 0 0 0 2px #ffd54f, 0 2px 5px rgba(0,0,0,.25);
}
.lr-ball.lr-special .lr-tag { border-color: #ffd54f; background: #fffde7; }

/* 滚动中：数字快速变化 + 轻微抖动 */
.lr-ball.lr-rolling .lr-disc {
  animation: lr-shake .32s infinite;
  filter: saturate(.85) brightness(.96);
}
@keyframes lr-shake {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-1.5px) rotate(-1.5deg); }
  75%      { transform: translateY(1.5px) rotate(1.5deg); }
}

/* 停止揭晓：弹跳 + 光环 */
.lr-ball.lr-pop .lr-disc { animation: lr-pop .5s cubic-bezier(.22, 1.4, .36, 1); }
@keyframes lr-pop {
  0%   { transform: scale(.6); box-shadow: 0 0 0 0 rgba(255,213,79,.9); }
  55%  { transform: scale(1.22); box-shadow: 0 0 0 8px rgba(255,213,79,.45); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,213,79,0); }
}

/* 加号分隔 */
.lr-plus {
  flex: 0 0 auto;
  align-self: center;
  padding-bottom: 18px;
  font-size: clamp(16px, 4.4vw, 24px);
  font-weight: bold;
  color: #8d6e63;
}

/* ---------- 底部信息 ---------- */
.lr-foot {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: #a1887f;
}
.lr-foot b { color: #d32f2f; }

/* ---------- 窄屏 ---------- */
@media screen and (max-width: 480px) {
  .lr-wrap { padding: 6px 6px 8px; }
  .lr-title { font-size: 14px; }
  .lr-period { font-size: 12px; }
  .lr-status { font-size: 12px; padding: 2px 9px; }
  .lr-ball .lr-tag { font-size: 10px; }
  .lr-plus { padding-bottom: 15px; }
  .lr-balls { gap: 2px; }
}


/* ===== 适老化放大 ===== */
.lr-title { font-size: 18px !important; }
.lr-period { font-size: 17px !important; }
.lr-status { font-size: 17px !important; }
.lr-replay { font-size: 17px !important; }
.lr-ball .lr-tag { font-size: 14px !important; }
/* ---------- 底部信息 ---------- */ .lr-foot { font-size: 17px !important; }
