/* ============================================================
   号码球样式
   PK10(1-10): 彩色微圆角正方形，每号独立颜色，黑色描边数字
   SSC(0-9):   蓝色圆形球
   ============================================================ */

/* PK10/3D 号码球 - 使用精灵图素材 */
.ball-pk,
.ball-fc3d {
    display: inline-block;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    line-height: 0;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-size: auto 1000%;
    background-position: 50% 0;
    user-select: none;
    pointer-events: none;
}

/* SSC 号码球 - 直接渲染蓝色圆球白字 */
.ball-ssc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-weight: 700;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #7fc5fb 0%, #4da1f0 50%, #2d7fd8 100%);
    border: 1px solid rgba(255,255,255,0.78);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.55), 0 1px 2px rgba(0,0,0,0.12);
    text-shadow: 0 1px 1px rgba(0,0,0,0.18);
    line-height: 1;
    user-select: none;
}

.ball-pk.xs { width: var(--ball-pk-xs-size, 18px); height: var(--ball-pk-xs-size, 18px); border-radius: var(--ball-pk-xs-radius, 2px); }
.ball-pk.s  { width: var(--ball-pk-s-size, 22px); height: var(--ball-pk-s-size, 22px); border-radius: var(--ball-pk-s-radius, 3px); }
.ball-pk.m  { width: var(--ball-pk-m-size, 28px); height: var(--ball-pk-m-size, 28px); border-radius: var(--ball-pk-m-radius, 4px); }
.ball-pk.l  { width: var(--ball-pk-l-size, 36px); height: var(--ball-pk-l-size, 36px); border-radius: var(--ball-pk-l-radius, 5px); }

.ball-ssc.xs { width: var(--ball-ssc-xs-size, 20px); height: var(--ball-ssc-xs-size, 20px); font-size: 11px; }
.ball-ssc.s  { width: 26px; height: 26px; font-size: 13px; }
.ball-ssc.m  { width: 32px; height: 32px; font-size: 15px; }
.ball-ssc.l  { width: 40px; height: 40px; font-size: 17px; }

.ball-fc3d.xs { width: var(--ball-fc3d-xs-size, 20px); height: var(--ball-fc3d-xs-size, 20px); border-radius: 50%; }
.ball-fc3d.s { width: 26px; height: 26px; border-radius: 50%; }
.ball-fc3d.m { width: 32px; height: 32px; border-radius: 50%; }
.ball-fc3d.l { width: 40px; height: 40px; border-radius: 50%; }

/* 双色球红球 - 红色圆形 */
.ball-ssq-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #F87171, #DC2626);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    line-height: 1;
}
.ball-ssq-red.xs { width: 20px; height: 20px; font-size: 9px; }
.ball-ssq-red.s  { width: 26px; height: 26px; font-size: 11px; }
.ball-ssq-red.m  { width: 32px; height: 32px; font-size: 13px; }
.ball-ssq-red.l  { width: 40px; height: 40px; font-size: 15px; }

/* 双色球蓝球 - 蓝色圆形 */
.ball-ssq-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #60A5FA, #1D4ED8);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    line-height: 1;
}
.ball-ssq-blue.xs { width: 20px; height: 20px; font-size: 9px; }
.ball-ssq-blue.s  { width: 26px; height: 26px; font-size: 11px; }
.ball-ssq-blue.m  { width: 32px; height: 32px; font-size: 13px; }
.ball-ssq-blue.l  { width: 40px; height: 40px; font-size: 15px; }

/* 双色球红蓝分隔符 */
.ball-ssq-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-text-muted, #999);
    line-height: 1;
}
.ball-ssq-sep.xs { font-size: 10px; margin: 0 1px; }
.ball-ssq-sep.s  { font-size: 12px; margin: 0 2px; }
.ball-ssq-sep.m  { font-size: 14px; margin: 0 3px; }
.ball-ssq-sep.l  { font-size: 18px; margin: 0 4px; }

/* 香港彩号码球 - 使用精灵图 img/ball.png */
.hk6-ball-icon {
    display: inline-block;
    width: 27px;
    height: 27px;
    background-image: url("/img/ball.png");
    background-repeat: no-repeat;
    background-size: 135px 270px; /* 5 列 x 10 行 */
}

/* 龙虎标签 */
.tag-dragon { color: #EF4444; font-weight: 600; }
.tag-tiger  { color: #3B82F6; font-weight: 600; }
.tag-tie    { color: #22C55E; font-weight: 600; }
.tag-big    { color: #EF4444; }
.tag-small  { color: #3B82F6; }
.tag-odd    { color: #EF4444; }
.tag-even   { color: #3B82F6; }

/* 倒计时进度条 */
.countdown-track { height: 4px; border-radius: 2px; background: var(--color-countdown-track); overflow: hidden; }
.countdown-bar   { height: 100%; border-radius: 2px; background: var(--color-countdown-bar); transition: width 1s linear; }

/* 彩种卡片悬浮效果 */
.lottery-card { transition: transform 0.15s, box-shadow 0.15s; }
.lottery-card:active { transform: scale(0.98); }
@media (hover: hover) {
    .lottery-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--color-shadow); }
}
