/* JND28 portal styles */
.portal-hero .hero-logo {
    display: inline-block; padding: 12px 16px; border-radius: 12px;
    background: linear-gradient(135deg,#ff6b6b 0%,#ee5253 100%);
    color: #fff; font-weight: bold; font-size: 16px; min-width: 100px;
    line-height: 1.2;
}

.jnd-ball {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; margin-right: 4px; font-weight: bold; color: #fff;
}
.jnd-ball-final { width: 24px; height: 24px; font-size: 13px; background: #e74c3c; }
.jnd-ball-keno  { width: 20px; height: 20px; font-size: 10px; background: #3498db; opacity: .85; }

.ball-divider { margin: 0 8px; color: #aaa; font-weight: bold; font-size: 14px; }
.portal-hero .jnd-ball-final { width: 32px; height: 32px; font-size: 16px; }
.jnd-sum { font-size: 14px; color: #555; }

.tool-grid .tool-icon { display:block; text-decoration:none; }
.tool-grid .tool-icon-wrap {
    width: 48px; height: 48px; border-radius: 12px;
    background: #f5f7fa; display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 6px;
    transition: all .2s;
}
.tool-grid .tool-icon:hover .tool-icon-wrap {
    background: #e9eef5; transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
}
.tool-grid .tool-name { font-size: 12px; line-height: 1.2; }

.link-item { color: #555; border-radius: 4px; }
.link-item:hover { background: #f5f7fa; color: #e74c3c; }

.countdown { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }

/* —— 移动端：球更小 + 开奖单元格不换行 —— */
@media (max-width: 768px) {
    .jnd-ball-final { width: 20px; height: 20px; font-size: 11px; margin-right: 2px; }
    .jnd-ball-keno  { width: 16px; height: 16px; font-size: 9px; }
    .portal-hero .jnd-ball-final { width: 28px; height: 28px; font-size: 14px; }
    .ball-divider { margin: 0 4px; font-size: 12px; }

    /* 表格里的开奖列：横向锁住三球，紧凑 */
    .table td .jnd-ball,
    table td .jnd-ball { display: inline-block; margin-right: 1px; }
    table.table-sm td, table.table-sm th { padding: .3rem .25rem; white-space: nowrap; }

    /* 卡片 padding 收紧 */
    .card-body { padding: 0.75rem; }

    /* 表格滚动条加可见性 */
    .table-responsive, .trend-scroll { -webkit-overflow-scrolling: touch; }
}

/* —— 超窄屏幕（< 480px）—— */
@media (max-width: 480px) {
    .jnd-ball-final { width: 18px; height: 18px; font-size: 10px; }
    .portal-hero .hero-logo { padding: 6px 10px; font-size: 13px; min-width: 80px; }
    h5, .h5 { font-size: 1rem; }
    .fs-3 { font-size: 1.25rem !important; }
    .fs-4 { font-size: 1.1rem !important; }
    .fs-5 { font-size: 1rem !important; }
}

/* 三区尾数遗漏：每个数字一个 cell，数字大 + 遗漏值小 */
.omit-cell {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 36px; padding: 4px 6px; margin: 0 4px 4px 0;
    border-radius: 6px; line-height: 1.1; border: 1px solid transparent;
}
.omit-cell .omit-digit { font-weight: bold; font-size: 14px; }
.omit-cell .omit-val   { font-size: 11px; opacity: .8; }

.omit-hit   { background: #e74c3c; color: #fff; }                              /* 本期开出 */
.omit-fresh { background: #fff3cd; color: #856404; border-color: #ffeeba; }    /* 刚开出（遗漏0） */
.omit-cold  { background: #cfe2ff; color: #0a58ca; border-color: #b6d4fe; }    /* 冷号（遗漏≥20） */
.omit-norm  { background: #f8f9fa; color: #495057; border-color: #e9ecef; }    /* 普通 */
