/* ============================================================
 * 预测 tab 样式（由 predict/web 的 App.vue + ScratchCard.vue + styles.css 移植）
 * 全部作用域限定在 .predict-app 之下，避免与公告原有样式互相污染。
 * 重命名：原 .tab-nav -> .pd-subtab-nav；.tab-nav__button -> .pd-subtab-btn；
 *        原 .tab-panel(子面板) -> .pd-subpanel，避免与公告外层 .tab-nav/.tab-panel 冲突。
 * ============================================================ */

/* ---- 基础（来自 predict styles.css，作用域化） ---- */
.predict-app {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1f2937;
  line-height: 1.5;
  margin-top: 0;
  padding-top: 0;
}

.predict-app * {
  box-sizing: border-box;
}

.predict-app [hidden] {
  display: none !important;
}

.predict-app a {
  color: inherit;
  text-decoration: none;
}

.predict-app button,
.predict-app input {
  font: inherit;
}

body.is-predict-tab .main-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.main-content.main-content--predict {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.main-content:has(> .container > .tab-panel--predict:not([hidden])) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.is-predict-tab .tab-nav {
  box-shadow: none !important;
}

body.is-predict-tab .tab-nav,
.tab-nav.tab-nav--predict {
  box-shadow: none !important;
}

body.is-predict-tab .main-content > .container,
body.is-predict-tab .tab-panel[data-panel="predict"],
body.is-predict-tab .predict-app,
body.is-predict-tab .predict-app .page-shell,
body.is-predict-tab .predict-app .page-container,
body.is-predict-tab .predict-app .pd-subtab-nav {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.main-content > .container.container--predict,
.tab-panel--predict,
.tab-panel--predict .predict-app,
.tab-panel--predict .page-shell,
.tab-panel--predict .page-container,
.tab-panel--predict .pd-subtab-nav {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.main-content:has(> .container > .tab-panel--predict:not([hidden])) > .container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.is-predict-tab .tab-panel[data-panel="predict"],
.tab-panel--predict {
  position: relative;
  top: 0;
}

/* ---- App.vue 作用域样式 ---- */
.predict-app .page-shell {
  background: #f5f7fa;
  margin-top: 0;
  padding-top: 0;
}

.predict-app .page-container {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0 0 32px;
}

.predict-app .hero-card,
.predict-app .feature-card,
.predict-app .search-card,
.predict-app .table-card,
.predict-app .ad-card {
  background: #fff;
  border: 1px solid #e5e7eb;
}

.predict-app .hero-card {
  border: none;
  background: transparent;
  padding: 0;
}

.predict-app .pd-subtab-btn {
  border: none;
  cursor: pointer;
}

.predict-app .ads-section {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.predict-app .ads-section[hidden],
.predict-app .ads-section:empty {
  display: none !important;
  margin: 0 !important;
}

.predict-app .ad-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 1;
}

.predict-app .ad-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.predict-app .ad-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-weight: 600;
}

.predict-app .pd-subtab-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  background: #374151;
  border-radius: 0;
  overflow: hidden;
}

.predict-app .pd-subtab-btn {
  padding: 14px 12px;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.predict-app .pd-subtab-btn.is-active {
  background: transparent;
  border: none;
  color: #facc15;
}

.predict-app .pd-subpanel {
  padding: 0 0 20px;
}

.predict-app .pd-subpanel[hidden] {
  display: none !important;
}

.predict-app .panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  align-items: stretch;
}

.predict-app .draw-summary {
  margin: 0;
  padding: 16px 12px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: none;
}

.predict-app .draw-summary__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.predict-app .draw-summary__top {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.predict-app .lottery-select-trigger {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  width: 174px;
  height: 68px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.predict-app .lottery-select-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.predict-app .latest-issue {
  flex: 0 0 auto;
  min-width: 0;
  text-align: center;
  color: #111827;
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}

.predict-app .mipai-button {
  flex: 0 0 auto;
  min-width: 92px;
  height: 42px;
  border: none;
  border-radius: 6px;
  background: #d71920;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 5px 0 #8f1014, 0 9px 16px rgba(143, 16, 20, 0.32);
  cursor: pointer;
}

.predict-app .draw-summary__result {
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 16px;
}

.predict-app .draw-result-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #111827;
}

.predict-app .draw-num-card,
.predict-app .draw-sum-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 6px;
  font-size: 21px;
  font-weight: 800;
}

.predict-app .draw-num-card {
  border: 1px solid #d8d8d8;
  background: #fff8ea;
  color: #f59e0b;
}

.predict-app .draw-sum-card {
  border: 1px solid #f59e0b;
  background: #f59e0b;
  color: #fff;
}

.predict-app .draw-op {
  color: #111827;
  font-size: 20px;
  font-weight: 700;
}

.predict-app .draw-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.predict-app .draw-type--size {
  background: #16a34a;
}

.predict-app .draw-type--odd {
  background: #f59e0b;
}

.predict-app .draw-summary__next {
  justify-content: center;
  padding-top: 16px;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}

.predict-app .time-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 38px;
  padding: 0 8px;
  border-radius: 6px;
  background: #f59e0b;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.predict-app .time-unit,
.predict-app .next-label {
  color: #111827;
}

.predict-app .draw-summary__next.is-drawing .time-card[data-pd="countdown-minutes"] {
  min-width: 108px;
  height: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #d71920;
}

.predict-app .draw-summary__next.is-drawing .time-card[data-pd="countdown-seconds"],
.predict-app .draw-summary__next.is-drawing .time-unit {
  display: none;
}

.predict-app .wave-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #d71920;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.predict-app .wave-text span {
  display: inline-block;
  animation: pd-wave-float 1.05s ease-in-out infinite;
}

@keyframes pd-wave-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.predict-app .countdown-full {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.predict-app .feature-card,
.predict-app .table-card {
  padding: 12px;
  border-radius: 12px;
}

.predict-app .search-card {
  margin-top: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
}

.predict-app .feature-card__header,
.predict-app .table-card__header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.predict-app .feature-card__header.compact {
  margin-bottom: 6px;
}

.predict-app .issue-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  background: #eff6ff;
  color: #1677ff;
}

.predict-app .prediction-pair {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.predict-app .countdown-meta,
.predict-app .legend-row {
  display: flex;
  gap: 4px 10px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 11px;
}

.predict-app .search-card input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
}

.predict-app .search-card input:focus {
  outline: none;
  border-color: #1677ff;
}

.predict-app .search-card__summary,
.predict-app .sync-text {
  color: #6b7280;
  font-size: 12px;
}

.predict-app .table-card {
  margin-top: 12px;
}

.predict-app .pd-subpanel > .table-card:first-child {
  margin-top: 0;
}

.predict-app .table-wrap {
  overflow: auto;
  border-top: 1px solid #f3f4f6;
}

.predict-app .result-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 8px 4px;
}

.predict-app .result-pagination[hidden] {
  display: none !important;
}

.predict-app .result-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff8ea;
  color: #d97706;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.08);
}

.predict-app .result-page-btn.is-active {
  border-color: #f59e0b;
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.28);
}

.predict-app .result-table,
.predict-app .trend-table,
.predict-app .stats-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.predict-app td.is-time {
  white-space: nowrap;
}

.predict-app .time-sep {
  display: inline;
}

.predict-app td.td-numbers {
  white-space: nowrap;
}

.predict-app .next-period-row {
  background: #eff6ff;
}

.predict-app .next-period-row td {
  font-weight: 600;
  color: #1677ff;
}

.predict-app .next-issue-cell {
  color: #1677ff;
}

.predict-app .pending-nums {
  color: #9ca3af;
  font-size: 12px;
  letter-spacing: 1px;
}

.predict-app .result-table th,
.predict-app .result-table td,
.predict-app .trend-table th,
.predict-app .trend-table td,
.predict-app .stats-table th,
.predict-app .stats-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
  white-space: nowrap;
  font-size: 13px;
}

.predict-app td.trend-issue {
  font-size: 10px;
  white-space: nowrap;
}

.predict-app .result-table th,
.predict-app .trend-table th,
.predict-app .stats-table th {
  background: #1677ff;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 8px;
}

.predict-app .number-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.predict-app .ball,
.predict-app .state-pill,
.predict-app .trend-hit,
.predict-app .stats-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.predict-app .ball--blue,
.predict-app .state-pill.is-blue,
.predict-app .trend-hit--blue,
.predict-app .stats-label.is-blue {
  background: #1677ff;
}

.predict-app .ball--red,
.predict-app .state-pill.is-red,
.predict-app .trend-hit--red,
.predict-app .stats-label.is-red {
  background: #ff4d4f;
}

.predict-app .state-pill.is-gray {
  background: #9ca3af;
}

.predict-app .state-pill.is-yellow {
  background: #f59e0b;
}

.predict-app .stats-label.is-green {
  background: #22c55e;
}

.predict-app .stats-label.is-purple,
.predict-app .trend-hit--pink {
  background: #8b5cf6;
}

.predict-app .trend-hit--orange {
  background: #f59e0b;
}

.predict-app .trend-issue,
.predict-app .trend-num {
  font-weight: 700;
  color: #111827;
}

.predict-app .number-operator {
  font-weight: 600;
  color: #6b7280;
}

.predict-app .legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 4px;
}

.predict-app .legend-dot.is-hit {
  background: #1677ff;
}

.predict-app .legend-dot.is-miss {
  background: #9ca3af;
}

.predict-app .stats-count {
  color: #374151;
}

.predict-app .stats-count em {
  color: #ff4d4f;
  font-style: normal;
  font-weight: 600;
}

.predict-app .error-banner {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

/* ---- ScratchCard.vue 作用域样式 ---- */
.predict-app .scratch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  padding: 12px;
  height: 100%;
  min-height: 124px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.predict-app .scratch-card__surface {
  position: relative;
  flex: 1;
  min-height: 100px;
  border-radius: 8px;
  overflow: hidden;
}

.predict-app .scratch-card__result {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 0 8px;
  color: #111827;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 700;
  letter-spacing: 1px;
}

.predict-app .scratch-card__waiting {
  color: #d71920;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
}

.predict-app .scratch-card__mask {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  touch-action: none;
}

.predict-modal-open {
  overflow: hidden;
}

.predict-app .predict-modal[hidden] {
  display: none !important;
}

.predict-app .predict-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.predict-app .predict-modal--mipai {
  flex-direction: column;
}

.predict-app .predict-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.58);
}

.predict-app .game-picker-panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.24);
}

.predict-app .game-picker-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f3;
  color: #111827;
}

.predict-app .modal-close,
.predict-app .mi-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #111827;
  cursor: pointer;
}

.predict-app .modal-close {
  width: 28px;
  height: 28px;
  font-size: 24px;
  line-height: 1;
}

.predict-app .game-picker-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.predict-app .lottery-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
}

.predict-app .lottery-option.is-active {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.16);
}

.predict-app .lottery-option img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.predict-app .mi-index {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: #fff7ea;
  box-shadow: 0 18px 52px rgba(17, 24, 39, 0.32);
}

.predict-app .mi-top {
  position: relative;
  height: 138px;
  overflow: hidden;
  background: #b91c1c;
  text-align: center;
}

.predict-app .mi-top-head {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.predict-app .mi-top-title {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  width: 78%;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  text-align: center;
}

.predict-app .mi-top-title span,
.predict-app .mi-highlight {
  color: #fff3a3;
}

.predict-app .mi-center {
  padding: 14px 18px 16px;
  background: #fff7ea;
}

.predict-app .mi-scratch-card {
  min-height: 252px;
  padding: 12px;
  border-color: #f3c37c;
  border-radius: 8px;
  background: #fff;
}

.predict-app .mi-scratch-card .scratch-card__surface {
  min-height: 226px;
}

.predict-app .mi-scratch-card .scratch-card__result {
  min-height: 226px;
  gap: 8px;
  color: #000;
  font-size: 50px;
  font-weight: 900;
}

.predict-app .scratch-result__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid #9ca3af;
  border-radius: 999px;
  color: #000;
  font-size: 0.82em;
  line-height: 1;
  white-space: nowrap;
}

.predict-app .scratch-result__op {
  color: #000;
  line-height: 1;
}

.predict-app .mi-foot {
  position: relative;
  background: #b91c1c;
}

.predict-app .mi-foot-bg {
  display: block;
  width: 100%;
  height: auto;
}

.predict-app .mi-foot-data {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.predict-app .mi-refresh {
  height: 30px;
  margin-left: 10px;
  padding: 0 13px;
  border: none;
  border-radius: 6px;
  background: #fff8ea;
  color: #d71920;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.predict-app .mi-close {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin-top: 12px;
  border-radius: 999px;
  background: #fff8ea;
  color: #d71920;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.28);
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .predict-app .page-container {
    width: calc(100% - 16px);
    padding: 0 0 24px;
  }

  .predict-app .hero-card,
  .predict-app .feature-card,
  .predict-app .search-card,
  .predict-app .table-card,
  .predict-app .ad-card {
    border-radius: 10px;
  }

  .predict-app .hero-card {
    padding: 12px;
  }

  .predict-app .hero-top,
  .predict-app .feature-card__header,
  .predict-app .table-card__header,
  .predict-app .search-card {
    flex-direction: column;
    align-items: stretch;
  }

  .predict-app .hero-card h1,
  .predict-app .table-card h2,
  .predict-app .feature-card h2 {
    font-size: 16px;
  }

  .predict-app .ads-section {
    grid-template-columns: 1fr;
  }

  .predict-app .ad-card {
    aspect-ratio: 3.2 / 1;
  }

  .predict-app .pd-subtab-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
  }

  .predict-app .pd-subtab-btn {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
  }

  .predict-app .result-table {
    min-width: 0;
    table-layout: auto;
    width: 100%;
  }

  .predict-app .trend-table,
  .predict-app .stats-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
  }

  .predict-app td.is-time {
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }

  .predict-app .time-sep {
    display: block;
    height: 0;
    overflow: hidden;
  }

  .predict-app .scratch-card {
    padding: 10px;
    min-height: 116px;
  }

  .predict-app .scratch-card__surface {
    min-height: 96px;
  }

  .predict-app .scratch-card__result {
    min-height: 96px;
    font-size: 22px;
  }

  .predict-app .scratch-card__waiting {
    font-size: 28px;
  }

  .predict-app .mi-scratch-card {
    min-height: 224px;
  }

  .predict-app .mi-scratch-card .scratch-card__surface,
  .predict-app .mi-scratch-card .scratch-card__result {
    min-height: 200px;
  }

  .predict-app .mi-scratch-card .scratch-card__result {
    font-size: 38px;
  }
}

@media (max-width: 480px) {
  .predict-app .page-container {
    width: calc(100% - 12px);
  }

  .predict-app .draw-summary {
    padding: 14px 8px 16px;
  }

  .predict-app .draw-summary__top {
    gap: 4px;
  }

  .predict-app .lottery-select-trigger {
    width: 118px;
    height: 46px;
  }

  .predict-app .latest-issue {
    font-size: 13px;
  }

  .predict-app .mipai-button {
    min-width: 58px;
    height: 32px;
    font-size: 14px;
    box-shadow: 0 4px 0 #8f1014, 0 7px 12px rgba(143, 16, 20, 0.26);
  }

  .predict-app .draw-result-line {
    gap: 5px;
  }

  .predict-app .draw-num-card,
  .predict-app .draw-sum-card {
    min-width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .predict-app .draw-type {
    min-width: 32px;
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .predict-app .time-card {
    min-width: 36px;
    height: 32px;
    font-size: 17px;
  }

  .predict-app .draw-summary__next {
    gap: 5px;
    font-size: 14px;
  }

  .predict-app .mi-top {
    height: 126px;
  }

  .predict-app .mi-top-title {
    font-size: 17px;
  }

  .predict-app .mi-center {
    padding: 12px 12px 14px;
  }

  .predict-app .mi-scratch-card {
    min-height: 206px;
  }

  .predict-app .mi-scratch-card .scratch-card__surface,
  .predict-app .mi-scratch-card .scratch-card__result {
    min-height: 182px;
  }

  .predict-app .mi-scratch-card .scratch-card__result {
    gap: 5px;
    font-size: 38px;
  }

  .predict-app .mi-foot-data {
    gap: 3px;
    padding: 0 10px;
    font-size: 14px;
  }

  .predict-app .mi-refresh {
    height: 26px;
    margin-left: 5px;
    padding: 0 8px;
    font-size: 13px;
  }

  .predict-app .scratch-result__num {
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    border-width: 1px;
    font-size: 0.78em;
  }

  .predict-app .result-table,
  .predict-app .trend-table {
    min-width: 0;
    table-layout: auto;
    width: 100%;
  }

  .predict-app .stats-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
  }

  .predict-app .result-table th,
  .predict-app .result-table td {
    padding: 6px 3px;
    font-size: 11px;
  }

  .predict-app .trend-table th,
  .predict-app .trend-table td {
    padding: 4px 1px;
    font-size: 10px;
  }

  .predict-app .trend-table .trend-hit {
    min-width: 14px;
    min-height: 14px;
    padding: 0 2px;
    font-size: 9px;
  }

  .predict-app .stats-table th,
  .predict-app .stats-table td {
    padding: 4px 2px;
    font-size: 12px;
  }

  .predict-app .ball,
  .predict-app .state-pill,
  .predict-app .trend-hit {
    min-width: 20px;
    min-height: 20px;
    padding: 0 4px;
    font-size: 10px;
  }

  .predict-app .stats-label {
    min-width: 36px;
    min-height: 24px;
    padding: 0 6px;
    font-size: 11px;
  }

  .predict-app .stats-count {
    font-size: 12px;
  }

  .predict-app .number-group {
    gap: 2px;
    flex-wrap: nowrap;
  }

  .predict-app .scratch-card {
    padding: 10px;
    min-height: 116px;
  }

  .predict-app .scratch-card__surface {
    min-height: 96px;
  }

  .predict-app .scratch-card__result {
    min-height: 96px;
    font-size: 22px;
  }
}
