/* 批TGWDEV497：最新开奖卡片与圆球仅作用于桌面开奖栏；列宽及关系强调继续由原规则控制。 */
.history-latest-wrap { position: sticky; top: 0; z-index: 2; padding: 7px 6px; background: var(--panel-deep); }
.history-latest-wrap[hidden] { display: none; }
.history-latest-card { display: flex; flex-direction: column; gap: 5px; width: 100%; box-sizing: border-box; padding: 0 9px 11px; overflow: hidden; border: 0; border-radius: 12px; background: #fff; color: #263038; text-align: left; cursor: pointer; }
.history-latest-card:focus-visible { outline: 3px solid #f6c94e; outline-offset: -3px; }
.history-latest-card:hover { box-shadow: inset 0 0 0 2px #be2e30; }
.history-latest-label { align-self: stretch; margin: 0 -9px 3px; padding: 7px 9px; background: linear-gradient(120deg, #c62b28, #941b25); color: #fff6dc; font-size: 12px; font-weight: 700; }
.history-latest-heading { display: flex; align-items: center; gap: 6px; min-width: 0; }
.history-latest-heading img { flex: 0 0 38px; object-fit: contain; }
.history-latest-heading strong { min-width: 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.history-latest-period { font-size: 12px; font-variant-numeric: tabular-nums; }
.history-latest-date { color: #586168; font-size: 11px; }
.history-latest-numbers { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 3px; }
.history-latest-ball { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; box-sizing: border-box; border-radius: 50%; background: linear-gradient(135deg, #b82530, #931822); color: #fff; font: 700 13px/1 Consolas, monospace; }
.history-latest-ball.is-secondary-zone { background: linear-gradient(135deg, #0063a4, #004c83); }
.history-latest-card[data-game="fc3d"] .history-latest-ball { background: linear-gradient(135deg, #00728c, #005668); }
.history-latest-card[data-game="pl3"] .history-latest-ball { background: linear-gradient(135deg, #aa430a, #873307); }
.history-latest-card[data-game="pl5"] .history-latest-ball { background: linear-gradient(135deg, #773898, #5d267a); }
.history-latest-card[data-game="kl8"] .history-latest-ball { background: linear-gradient(135deg, #bb3109, #962506); }
@media (min-width: 761px) {
  #historyList .history-row { scroll-margin-top: var(--draw-summary-height, 0px); }
  /* 批TGWDEV498：历史号码颜色由原规则控制，保留重号/连号/同位关系的字体和底色。 */
}
/* 批TGWDEV506：六彩种历史统一方格；仅改历史圆角，保留原色及关系强调，提醒卡片和海报仍为圆球。 */
#historyList .history-number { border-radius: 2px; }
@media (max-width: 760px) { .history-latest-wrap { display: none; } }
