/* 历史开奖：66852 球区与首页同一套缩放（勿固定大球径 / 勿改 ball-inner 字号链） */
body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"])
  :is(.h5-records .records-page.records-balls-66852, #historyBox.records-balls-66852)
  .history-table
  .history-balls-cell {
  min-width: 0 !important;
  width: auto !important;
  padding: 8px 4px !important;
  vertical-align: middle !important;
  overflow: visible !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"])
  :is(.h5-records .records-page.records-balls-66852, #historyBox.records-balls-66852)
  .history-table
  .lottery-66852-draw-host {
  width: 100% !important;
  max-width: min(100%, 420px) !important;
  margin: 0 auto !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"])
  :is(.h5-records .records-page.records-balls-66852, #historyBox.records-balls-66852)
  .history-table
  .numbers-row.draw-sequence-row {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* 取消 home.css 历史表格「小球 + 小字」覆盖，交给 lottery-66852.css */
body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"])
  :is(.h5-records .records-page.records-balls-66852, #historyBox.records-balls-66852)
  .history-table
  .numbers-row {
  gap: unset !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"])
  :is(.h5-records .records-page.records-balls-66852, #historyBox.records-balls-66852)
  .history-table
  .ball-wrap {
  flex: 0 1 var(--66852-ball) !important;
  width: var(--66852-ball) !important;
  max-width: 50px !important;
  min-width: 0 !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"])
  :is(.h5-records .records-page.records-balls-66852, #historyBox.records-balls-66852)
  .history-table
  .ball-inner {
  font-size: 1em !important;
  font-weight: 800 !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"])
  :is(.h5-records .records-page.records-balls-66852, #historyBox.records-balls-66852)
  .history-table
  .ball-wrap
  .zodiac-info {
  font-size: max(9px, calc(var(--66852-ball) * 0.26)) !important;
  font-weight: 400 !important;
  min-height: 0 !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"])
  :is(.h5-records .records-page.records-balls-66852, #historyBox.records-balls-66852)
  .history-table
  .number-ball.red,
body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"])
  :is(.h5-records .records-page.records-balls-66852, #historyBox.records-balls-66852)
  .history-table
  .number-ball.blue,
body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"])
  :is(.h5-records .records-page.records-balls-66852, #historyBox.records-balls-66852)
  .history-table
  .number-ball.green {
  background-color: transparent !important;
  border: none !important;
}

/* 期号 / 表头 / 时间：与首页信息区字号接近，避免表格默认偏粗偏大 */
body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"])
  .h5-records
  .records-page.records-balls-66852
  .history-table {
  font-size: 12px !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"])
  .h5-records
  .records-page.records-balls-66852
  .history-table
  th {
  font-size: 12px !important;
  font-weight: 600 !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"])
  .h5-records
  .records-page.records-balls-66852
  .history-period-cell {
  font-size: clamp(11px, 2.9vw, 13px) !important;
  font-weight: 600 !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"])
  .h5-records
  .records-page.records-balls-66852
  .history-time-cell {
  font-size: 10px !important;
  font-weight: 400 !important;
}
