:root {
  --bw-primary: #0094e0;
  --bw-primary-deep: #0877c9;
  --bw-primary-dark: #075fa7;
  --bw-primary-soft: #eaf7ff;
  --bw-primary-pale: #f6fbff;
  --bw-line: #d8ecfb;
  --bw-text: #24445f;
  --bw-muted: #7893a8;
  --bw-white: #ffffff;
  --bw-shadow: 0 12px 34px rgba(34, 117, 174, .12);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: #eef8ff !important; }
body {
  margin: 0 !important;
  color: var(--bw-text);
  background:
    radial-gradient(circle at 12% -8%, rgba(76, 185, 252, .22), transparent 34%),
    linear-gradient(180deg, #f7fcff 0%, #edf8ff 100%) !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  overflow-x: hidden;
}

.views_szjys,
.view_szjys,
.pages_szjys,
.page_szjys,
.page-content_szjys {
  background: transparent !important;
}

.page-content_szjys {
  padding: 18px 12px 34px !important;
}

.content-block_szjys {
  width: calc(100% - 4px) !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid var(--bw-line);
  border-radius: 22px;
  box-shadow: var(--bw-shadow);
  overflow: hidden;
}

/* Connected header */
.site-head-blue {
  position: relative;
  text-align: center;
  padding: 26px 18px 20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.45), transparent 20%),
    linear-gradient(135deg, #f9fdff 0%, #e9f7ff 55%, #dff3ff 100%);
  border-bottom: 1px solid var(--bw-line);
}
.site-head-blue::after {
  content: "";
  position: absolute;
  left: 20%; right: 20%; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,148,224,.55), transparent);
}
.site-brand-blue {
  margin: 0;
  color: #126fae;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .5px;
}
.site-url-blue {
  margin: 8px 0 10px;
  color: var(--bw-muted);
  font-size: 13px;
}
.site-contact-blue {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 12px;
  font-size: 13px;
  line-height: 1.45;
}
.site-contact-blue a {
  color: #2879b8 !important;
  text-decoration: none !important;
}
.site-contact-blue a:hover { color: var(--bw-primary) !important; }

/* Connected nav / filter rows */
.buttons-row_szjys {
  display: flex !important;
  gap: 8px;
  align-items: stretch;
  margin: 0 !important;
  padding: 11px 14px;
  border-bottom: 1px solid #e6f2fb;
  background: #fff;
}
.buttons-row_szjys .button_szjys,
.button_szjys {
  min-height: 38px;
  height: auto !important;
  line-height: 1.25 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  margin: 0 !important;
  padding: 9px 8px !important;
  border: 1px solid #b9dff7 !important;
  border-radius: 10px !important;
  color: #1b79b7 !important;
  background: #f8fcff !important;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button_szjys:active { transform: scale(.985); }
.button_szjys.active {
  border-color: transparent !important;
  color: #fff !important;
  background: linear-gradient(135deg, #12a1ea, #0878cf) !important;
  box-shadow: 0 6px 14px rgba(0, 148, 224, .20) !important;
}
.button_szjys.active span { color: #fff !important; }



/* Six platform shortcut cards between header and prediction section */
.platform-nav-wrap {
  padding: 12px 14px 13px;
  background: #fff;
  border-bottom: 1px solid #e6f2fb;
}
.platform-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.platform-nav-card {
  position: relative;
  min-width: 0;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 36px 10px 10px;
  border: 1px solid #c9e6f8;
  border-radius: 13px;
  color: #166fa9 !important;
  background: linear-gradient(145deg, #ffffff 0%, #f4fbff 58%, #eaf7ff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 3px 10px rgba(40,125,182,.07);
  text-decoration: none !important;
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.platform-nav-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #32b8f6, #0879cf);
  opacity: .95;
}
.platform-nav-card:hover {
  transform: translateY(-1px);
  border-color: #83cdf3;
  background: linear-gradient(145deg, #fff 0%, #eef9ff 60%, #e2f4ff 100%);
  box-shadow: 0 6px 16px rgba(17,132,202,.13);
}
.platform-nav-card:active { transform: scale(.985); }
.platform-nav-logo {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(145deg, #29b3f4, #0879cf);
  box-shadow: 0 5px 10px rgba(8,121,207,.17), inset 0 1px 0 rgba(255,255,255,.28);
}
.platform-nav-copy {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1.2;
}
.platform-nav-copy strong {
  overflow: hidden;
  color: #1479b7;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.platform-nav-copy small {
  color: #87a2b5;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.platform-nav-arrow {
  position: absolute;
  right: 11px;
  top: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #188bd0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  background: #e8f6ff;
  transform: translateY(-50%);
}

/* Scratch launcher / live draw strip */
.scratch-livebar {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 210px;
  align-items: stretch;
  border-bottom: 1px solid #dceefa;
  background: linear-gradient(90deg, #fbfeff 0%, #f2faff 53%, #fbfeff 100%);
}
.scratch-live-launch,
.scratch-live-result,
.scratch-live-next {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 14px;
}
.scratch-live-launch {
  flex-direction: column;
  gap: 8px;
}
.scratch-live-issue {
  color: #53758d;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.scratch-live-issue strong {
  color: #0786d7;
  font-size: 15px;
  font-weight: 850;
}
.scratch-live-result {
  flex-direction: column;
  gap: 7px;
  border-left: 1px solid #deedf7;
  border-right: 1px solid #deedf7;
}
.scratch-live-caption {
  width: 100%;
  color: #54748a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.scratch-live-caption small {
  margin-left: 4px;
  color: #8aa2b3;
  font-size: 10px;
  font-weight: 600;
}
.scratch-live-formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.scratch-live-number {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6ebf9;
  border-radius: 7px;
  color: #0787d8;
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: #f0f8fd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.scratch-live-number.is-sum {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(145deg, #1aa6ec, #0877cc);
  box-shadow: 0 5px 12px rgba(8,119,204,.18);
}
.scratch-live-op {
  color: #7390a4;
  font-size: 20px;
  font-weight: 750;
}
.scratch-live-tag {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  background: linear-gradient(145deg, #0d9ce5, #0878cc);
  box-shadow: 0 5px 12px rgba(0,135,215,.17);
}
.scratch-live-tag.is-soft {
  background: linear-gradient(145deg, #55bdf1, #2097dc);
}
.scratch-live-next {
  position: relative;
  flex-direction: column;
  gap: 7px;
}
.scratch-live-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.scratch-live-timebox {
  min-width: 42px;
  height: 40px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(145deg, #1aa6ec, #0877cc);
  box-shadow: 0 5px 12px rgba(8,119,204,.17);
}
.scratch-live-timer b {
  color: #506e83;
  font-size: 15px;
  font-weight: 700;
}
.scratch-live-opening {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 8px;
  color: #0780cf;
  font-size: 16px;
  font-weight: 850;
  background: #eaf7ff;
}
.scratch-live-eta {
  color: #91a7b7;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}
.scratch-launch-btn {
  position: relative;
  width: 98px;
  min-height: 46px;
  border: 1px solid #d82d29;
  border-radius: 8px;
  padding: 9px 14px;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  background: linear-gradient(180deg, #ef4138 0%, #e7352e 56%, #df2e29 100%);
  box-shadow:
    5px 6px 0 #a8211d,
    0 9px 15px rgba(170, 40, 34, .16),
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(143, 22, 18, .18);
  text-shadow: 0 1px 1px rgba(118, 20, 16, .34);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.scratch-launch-btn:hover {
  filter: brightness(1.035);
  transform: translateY(-1px);
  box-shadow:
    5px 7px 0 #a8211d,
    0 10px 17px rgba(170, 40, 34, .18),
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -1px 0 rgba(143, 22, 18, .18);
}
.scratch-launch-btn:active {
  transform: translate(3px, 4px);
  box-shadow:
    2px 2px 0 #a8211d,
    0 4px 8px rgba(170, 40, 34, .14),
    inset 0 1px 0 rgba(255,255,255,.25);
}
.scratch-launch-btn:focus-visible {
  outline: 3px solid rgba(0,148,224,.24);
  outline-offset: 5px;
}

/* Tables */
.sui-table_szjys {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  background: #fff;
}
.sui-table_szjys thead tr {
  color: #277fb9 !important;
  background: #edf8ff !important;
  font-size: 12px !important;
}
.sui-table_szjys th,
.sui-table_szjys td {
  padding: 10px 5px !important;
  border-color: #e5f1fa !important;
  vertical-align: middle !important;
}
.sui-table_szjys tbody tr:nth-child(even) { background: #fbfdff !important; }
.sui-table_szjys tbody tr:hover { background: #f5fbff !important; }

.badge_szjys {
  color: #fff !important;
  font-weight: 700;
  min-width: 26px;
  text-align: center;
}
.bg-blue_szjys { background-color: #85aeca !important; }
.bg-red_szjys { background-color: var(--bw-primary) !important; }

/* Scratch modal - intentionally no black backdrop */
.scratch-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.82), rgba(229,246,255,.83) 46%, rgba(210,237,253,.88) 100%);
  -webkit-backdrop-filter: blur(6px) saturate(1.03);
  backdrop-filter: blur(6px) saturate(1.03);
  transition: opacity .22s ease, visibility .22s ease;
}
.scratch-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.scratch-modal-shell {
  width: min(620px, 100%);
  max-height: calc(100dvh - 18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scratch-dialog {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - 82px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 20px 55px rgba(16, 104, 166, .24),
    0 0 0 5px rgba(65, 177, 245, .10);
  transform: translateY(16px) scale(.97);
  transition: transform .28s cubic-bezier(.2,.9,.2,1);
}
.scratch-modal.is-open .scratch-dialog { transform: translateY(0) scale(1); }

.scratch-dialog-header {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 17px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 18% 30%, rgba(255,255,255,.23), transparent 13%),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.24), transparent 15%),
    linear-gradient(135deg, #1aa8ef 0%, #0785dc 50%, #0a69bf 100%);
}
.scratch-dialog-header::before,
.scratch-dialog-header::after {
  content: "✦";
  position: absolute;
  color: rgba(255,255,255,.75);
  font-size: 21px;
  animation: scratchTwinkle 1.8s ease-in-out infinite alternate;
}
.scratch-dialog-header::before { left: 9%; top: 16px; }
.scratch-dialog-header::after { right: 10%; bottom: 13px; animation-delay: .7s; }
@keyframes scratchTwinkle { from { transform: scale(.8); opacity:.35; } to { transform: scale(1.2); opacity:1; } }

.scratch-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 4px;
  text-shadow: 0 3px 0 rgba(4,81,143,.24);
}
.scratch-title-sub {
  margin-top: 9px;
  font-size: 15px;
  opacity: .92;
}
.scratch-issue-ribbon {
  margin: 0;
  padding: 14px 16px;
  text-align: center;
  color: #27678f;
  font-size: 17px;
  font-weight: 750;
  background: linear-gradient(180deg, #f7fcff, #e8f6ff);
  border-bottom: 1px solid #d8ecfb;
}
.scratch-issue-ribbon strong { color: #0789dc; font-size: 20px; }

.scratch-body { padding: 16px; background: #fff; }
.scratch-stage {
  position: relative;
  width: 100%;
  min-height: 238px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #c9e4f6;
  background:
    radial-gradient(circle at 50% 36%, rgba(48,166,236,.10), transparent 38%),
    linear-gradient(180deg, #f9fdff 0%, #eef8ff 100%);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.82);
}
.scratch-result {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}
.scratch-result-label {
  margin-bottom: 14px;
  color: #708fa5;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .4px;
}
.scratch-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.scratch-ball {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0c7dca;
  font-size: 27px;
  font-weight: 850;
  background: linear-gradient(180deg, #ffffff, #eff8ff);
  border: 2px solid #9fd7f8;
  box-shadow: 0 7px 15px rgba(20,125,192,.12), inset 0 2px 5px rgba(255,255,255,.9);
}
.scratch-ball.sum {
  color: #fff;
  background: linear-gradient(145deg, #11a2eb, #0b72c8);
  border-color: #fff;
  box-shadow: 0 8px 18px rgba(7,124,203,.25);
}
.scratch-op {
  color: #327298;
  font-size: 25px;
  font-weight: 800;
}
.scratch-result-meta {
  margin-top: 15px;
  display: inline-flex;
  gap: 8px;
  color: #2c668c;
  font-size: 13px;
}
.scratch-result-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #e7f5ff;
  border: 1px solid #c6e7fb;
}
#scratchCanvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 17px;
  cursor: crosshair;
  touch-action: none;
  opacity: 1;
  transition: opacity .38s ease, transform .38s ease;
}
#scratchCanvas.is-cleared {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}
.scratch-hint {
  margin: 10px 2px 0;
  text-align: center;
  color: #7b98ab;
  font-size: 12px;
}

.scratch-dialog.is-revealed .scratch-stage {
  animation: resultGlow .8s ease both;
}
@keyframes resultGlow {
  0% { box-shadow: inset 0 0 0 4px rgba(255,255,255,.82), 0 0 0 rgba(0,148,224,0); }
  50% { box-shadow: inset 0 0 0 4px rgba(255,255,255,.82), 0 0 26px rgba(0,148,224,.30); }
  100% { box-shadow: inset 0 0 0 4px rgba(255,255,255,.82), 0 9px 24px rgba(23,131,198,.12); }
}

.scratch-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #2a648a;
  background: linear-gradient(90deg, #e8f6ff 0%, #f7fcff 100%);
  border-top: 1px solid #d8ecfb;
}
.scratch-countdown-text {
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
}
.scratch-countdown-text strong { color: #008edc; font-size: 16px; }
.scratch-time {
  display: inline-block;
  min-width: 54px;
  color: #0a75c5;
  font-size: 19px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.scratch-refresh {
  flex: 0 0 auto;
  border: 1px solid #a7d8f6;
  border-radius: 999px;
  padding: 8px 18px;
  color: #0879c7;
  font-weight: 750;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(23,129,194,.10);
}
.scratch-close {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 34px;
  line-height: 46px;
  font-weight: 300;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(145deg, #1aa4ea, #0875c8);
  box-shadow: 0 8px 22px rgba(0, 113, 190, .25), 0 0 0 4px rgba(64,176,244,.16);
}
body.scratch-modal-open { overflow: hidden !important; }

@media (max-width: 620px) {
  .page-content_szjys { padding: 0 !important; }
  .content-block_szjys {
    width: 100% !important;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
  .site-head-blue { padding: 22px 14px 16px; }
  .site-brand-blue { font-size: 27px; }
  .buttons-row_szjys { gap: 6px; padding: 9px 10px; }
  .buttons-row_szjys .button_szjys { font-size: 12px; padding: 8px 5px !important; }
  .scratch-livebar { grid-template-columns: 102px minmax(0, 1fr); }
  .scratch-live-launch { padding: 12px 8px; }
  .scratch-live-issue { font-size: 10px; }
  .scratch-live-issue strong { font-size: 12px; }
  .scratch-launch-btn { width: 84px; min-height: 42px; padding: 8px 8px; font-size: 16px; box-shadow: 4px 5px 0 #a8211d, 0 7px 12px rgba(170,40,34,.14), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -1px 0 rgba(143,22,18,.18); }
  .scratch-live-result { padding: 12px 8px; border-right: 0; }
  .scratch-live-caption { font-size: 11px; }
  .scratch-live-formula { gap: 5px; }
  .scratch-live-number, .scratch-live-tag { width: 34px; height: 34px; font-size: 16px; }
  .scratch-live-op { font-size: 16px; }
  .scratch-live-next { grid-column: 1 / -1; flex-direction: row; gap: 9px; padding: 10px 12px; border-top: 1px solid #deedf7; }
  .scratch-live-next .scratch-live-caption { width: auto; }
  .scratch-live-timebox { min-width: 36px; height: 34px; font-size: 17px; }
  .scratch-live-timer { gap: 6px; }
  .scratch-live-timer b { font-size: 13px; }
  .scratch-live-eta { margin-left: auto; }
  .sui-table_szjys th, .sui-table_szjys td { padding: 9px 3px !important; font-size: 12px; }

  .scratch-modal { padding: 10px; }
  .scratch-dialog { border-radius: 20px; max-height: calc(100dvh - 74px); }
  .scratch-dialog-header { padding: 19px 12px 15px; }
  .scratch-title { font-size: 30px; }
  .scratch-issue-ribbon { padding: 12px 8px; font-size: 15px; }
  .scratch-issue-ribbon strong { font-size: 18px; }
  .scratch-body { padding: 12px; }
  .scratch-stage { min-height: 220px; }
  .scratch-ball { width: 50px; height: 50px; font-size: 24px; }
  .scratch-op { font-size: 22px; }
  .scratch-countdown { padding: 12px; }
  .scratch-countdown-text { font-size: 12px; }
  .scratch-countdown-text strong { font-size: 14px; }
  .scratch-time { min-width: 45px; font-size: 17px; }
  .scratch-refresh { padding: 7px 14px; }
  .scratch-close { width: 48px; height: 48px; flex-basis: 48px; line-height: 40px; font-size: 31px; }
}

@media (max-width: 380px) {
  .scratch-live-formula { gap: 3px; }
  .scratch-live-number, .scratch-live-tag { width: 30px; height: 30px; font-size: 14px; }
  .scratch-live-op { font-size: 14px; }
  .scratch-live-next { padding-left: 8px; padding-right: 8px; }
  .scratch-live-eta { display: none; }
  .scratch-numbers { gap: 5px; }
  .scratch-ball { width: 45px; height: 45px; font-size: 22px; }
  .scratch-op { font-size: 20px; }
  .scratch-countdown { gap: 7px; }
  .scratch-refresh { padding: 7px 11px; font-size: 12px; }
}

/* v6: in-place scratch refresh; never leave the modal when a new draw arrives */
.scratch-dialog.is-new-result {
  animation: scratchNewResultPulse .68s ease-out;
}
@keyframes scratchNewResultPulse {
  0% { transform: translateY(0) scale(1); box-shadow: 0 18px 52px rgba(0,116,190,.20); }
  45% { transform: translateY(-2px) scale(1.012); box-shadow: 0 20px 62px rgba(0,148,224,.34), 0 0 0 5px rgba(40,163,239,.08); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 18px 52px rgba(0,116,190,.20); }
}
.scratch-refresh:disabled {
  opacity: .62;
  cursor: default;
}


/* V10 - prediction table clarity */
#table .draw-pending-row {
  background: linear-gradient(90deg, #f3fbff 0%, #eaf7ff 50%, #f7fcff 100%) !important;
  box-shadow: inset 4px 0 0 #1296db, inset 0 -1px 0 #d9edf9;
}
#table .draw-pending-row td {
  background: transparent !important;
  border-top-color: #cfe8f7 !important;
  border-bottom-color: #cfe8f7 !important;
}
.draw-pending-issue {
  color: #0b7fc1;
  font-weight: 800;
}
.draw-pending-countdown,
.draw-pending-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.draw-pending-countdown {
  color: #0b7fc1;
  background: #fff;
  border: 1px solid #a8d7f3;
  box-shadow: 0 2px 8px rgba(18,150,219,.08);
}
.draw-pending-status {
  color: #fff;
  background: linear-gradient(135deg, #1aa5e8, #087fd0);
  box-shadow: 0 4px 10px rgba(18,150,219,.18);
}
.draw-pending-status.is-opening {
  animation: drawPendingPulse 1.05s ease-in-out infinite alternate;
}
@keyframes drawPendingPulse {
  from { transform: scale(1); box-shadow: 0 3px 8px rgba(18,150,219,.15); }
  to { transform: scale(1.055); box-shadow: 0 5px 16px rgba(18,150,219,.32); }
}

/* The prediction column uses blue for the selected/matching item and a pale outlined
   blue for the other item. Result correctness is communicated only in the last column. */
#table .prediction-cell .bg-red_szjys {
  background: #1296db !important;
  color: #fff !important;
  border: 1px solid #1296db;
  box-shadow: 0 2px 6px rgba(18,150,219,.12);
}
#table .prediction-cell .bg-blue_szjys {
  background: #eef7fc !important;
  color: #7192a9 !important;
  border: 1px solid #c9e3f2;
  box-shadow: none;
}
#table .badge-right {
  background: #1296db !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(18,150,219,.14);
}
#table .badge-wrong {
  background: #e84c3d !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(232,76,61,.14);
}

@media (max-width: 680px) {
  .draw-pending-countdown,
  .draw-pending-status {
    min-width: 46px;
    min-height: 25px;
    padding: 3px 7px;
    font-size: 12px;
  }
}


@media (max-width: 640px) {
  .platform-nav-wrap { padding: 9px 10px 10px; }
  .platform-nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .platform-nav-card { min-height: 58px; gap: 8px; padding: 8px 30px 8px 8px; border-radius: 10px; }
  .platform-nav-logo { width: 35px; height: 35px; border-radius: 9px; font-size: 15px; }
  .platform-nav-copy strong { font-size: 12px; }
  .platform-nav-copy small { font-size: 9px; }
  .platform-nav-arrow { right: 8px; width: 18px; height: 18px; font-size: 18px; }
}


/* V12: main prediction/statistics navigation */
.main-section-nav .button_szjys { min-width: 0; }

/* V12: Canada 28 interval/statistics page */
.stats-page {
  padding: 14px;
  background: #fff;
  border-top: 1px solid #e4f2fb;
}
.stats-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid #cce8f8;
  border-radius: 14px;
  background: linear-gradient(145deg, #f9fdff, #eef8ff);
}
.stats-intro h2 {
  margin: 0 0 5px;
  color: #0f79bc;
  font-size: 19px;
  font-weight: 850;
}
.stats-intro p {
  margin: 0;
  color: #7694a8;
  font-size: 12px;
  line-height: 1.55;
}
.stats-refresh {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #12a1ea, #0878cf);
  box-shadow: 0 5px 12px rgba(0,148,224,.18);
}
.stats-section { margin-top: 14px; }
.stats-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 2px;
}
.stats-section-title strong { color: #166fa9; font-size: 15px; }
.stats-section-title span { color: #91a9b9; font-size: 11px; }
.stats-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.stats-focus-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cae7f9;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff, #f1f9ff);
}
.stats-focus-num {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(145deg, #22aef0, #0878cf);
  box-shadow: 0 5px 11px rgba(7,124,203,.17);
}
.stats-focus-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  column-gap: 3px;
}
.stats-focus-copy small { grid-column: 1 / -1; color: #8ca5b6; font-size: 10px; }
.stats-focus-copy strong { color: #0d79bd; font-size: 24px; line-height: 1; }
.stats-focus-copy em { color: #7796aa; font-size: 11px; font-style: normal; }
.stats-focus-card.is-high .stats-focus-copy strong { color: #e84c3d; }
.stats-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.stats-category-item {
  min-width: 0;
  text-align: center;
  padding: 10px 6px;
  border: 1px solid #d6eaf7;
  border-radius: 11px;
  background: #f8fcff;
}
.stats-category-item span { display: block; color: #347b9f; font-size: 12px; font-weight: 750; }
.stats-category-item b { display: inline-block; margin-top: 3px; color: #0c89d1; font-size: 19px; }
.stats-category-item b.is-high { color: #e84c3d; }
.stats-category-item small { margin-left: 2px; color: #91a7b5; font-size: 9px; }
.stats-special-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.stats-special-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 9px 8px;
  border: 1px solid #d6eaf7;
  border-radius: 10px;
  background: #fbfdff;
}
.stats-special-item.is-focus {
  border-color: #8ccff3;
  background: #edf8ff;
  box-shadow: inset 0 0 0 1px rgba(18,161,234,.06);
}
.stats-special-num {
  min-width: 30px;
  color: #167fbd;
  font-size: 14px;
  font-weight: 900;
}
.stats-special-item div { min-width: 0; text-align: right; }
.stats-special-item b { display: block; color: #2a759e; font-size: 15px; line-height: 1.05; }
.stats-special-item b.is-high { color: #e84c3d; }
.stats-special-item small { display: block; color: #9aadb9; font-size: 8px; white-space: nowrap; }

@media (max-width: 640px) {
  .stats-page { padding: 10px; }
  .stats-intro { align-items: flex-start; padding: 12px; }
  .stats-intro h2 { font-size: 17px; }
  .stats-refresh { padding: 8px 12px; }
  .stats-focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .stats-focus-card { padding: 10px; }
  .stats-focus-num { width: 40px; height: 40px; flex-basis: 40px; font-size: 16px; }
  .stats-focus-copy strong { font-size: 21px; }
  .stats-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-special-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .stats-special-item { padding: 8px 6px; }
}
