
/* V25 FINAL: preserve existing site, improve contrast + compact homepage refresh button */

/* ---------- Compact fixed refresh text button ---------- */
.sd-home-refresh-v25{
  position:fixed!important;
  left:10px!important;
  right:auto!important;
  bottom:14px!important;
  top:auto!important;
  z-index:2147483000!important;

  display:block!important;
  width:auto!important;
  min-width:72px!important;
  height:36px!important;
  margin:0!important;
  padding:0 14px!important;

  background:#b00035!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border:2px solid #d8b657!important;
  border-radius:18px!important;

  font-family:Arial,Helvetica,sans-serif!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:32px!important;
  text-align:center!important;
  white-space:nowrap!important;

  box-shadow:0 3px 10px rgba(0,0,0,.28)!important;
  cursor:pointer!important;
  opacity:1!important;
  filter:none!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
.sd-home-refresh-v25:active{
  transform:scale(.96)!important;
}

/* ---------- High contrast safety layer ---------- */
.v5-body main *,
.v5-body footer *,
.v5-body header *{
  opacity:1!important;
  filter:none!important;
}

/* Cream/light cards */
.v5-ivory h1,.v5-ivory h2,.v5-ivory h3,
.v5-textbox h1,.v5-textbox h2,.v5-textbox h3,
.v5-market-card h1,.v5-market-card h2,.v5-market-card h3,
.v5-blog-card h1,.v5-blog-card h2,.v5-blog-card h3,
.v5-article h1,.v5-article h2,.v5-article h3,
.v5-pagehead h1,.v5-pagehead h2,.v5-pagehead h3,
.card h1,.card h2,.card h3,
.live-card h1,.live-card h2,.live-card h3,
.top-list h1,.top-list h2,.top-list h3,
.info-block h1,.info-block h2,.info-block h3,
.notice-grid h1,.notice-grid h2,.notice-grid h3,
.content-card h1,.content-card h2,.content-card h3,
.content-wrap h1,.content-wrap h2,.content-wrap h3,
.legal-page h1,.legal-page h2,.legal-page h3,
.policy-page h1,.policy-page h2,.policy-page h3,
.rules-page h1,.rules-page h2,.rules-page h3,
.contact-page h1,.contact-page h2,.contact-page h3{
  color:#991539!important;
  -webkit-text-fill-color:#991539!important;
  font-weight:900!important;
  text-shadow:none!important;
}

/* Light card copy */
.v5-ivory p,.v5-ivory li,.v5-ivory span,
.v5-textbox p,.v5-textbox li,.v5-textbox span,
.v5-blog-card p,.v5-blog-card li,.v5-blog-card span,
.v5-article p,.v5-article li,.v5-article span,
.v5-pagehead p,.v5-pagehead li,.v5-pagehead span,
.card p,.card li,.card span,
.live-card p,.live-card li,.live-card span,
.top-list p,.top-list li,.top-list span,
.info-block p,.info-block li,.info-block span,
.notice-grid p,.notice-grid li,.notice-grid span,
.content-card p,.content-card li,.content-card span,
.content-wrap p,.content-wrap li,.content-wrap span,
.legal-page p,.legal-page li,.legal-page span,
.policy-page p,.policy-page li,.policy-page span,
.rules-page p,.rules-page li,.rules-page span,
.contact-page p,.contact-page li,.contact-page span{
  color:#17232c!important;
  -webkit-text-fill-color:#17232c!important;
  text-shadow:none!important;
}

/* Market result history links */
.v5-market-card>a,
.card>a,
.live-card>a,
.top-list>a,
.result-card>a,
.market-card>a{
  color:#991539!important;
  -webkit-text-fill-color:#991539!important;
  font-weight:900!important;
  text-decoration:underline!important;
}

/* Result pair */
.v5-pair b,.v5-pair strong,
.card .pair,.card .pair *,
.live-card .pair,.live-card .pair *{
  opacity:1!important;
  filter:none!important;
}
.v5-pair b{
  color:#20313d!important;
  -webkit-text-fill-color:#20313d!important;
}
.v5-pair strong{
  color:#0875b9!important;
  -webkit-text-fill-color:#0875b9!important;
}

/* Dark bars / dark background titles */
.v5-panel-title,
.v5-chart-heading,
.v5-info-title,
.record-head,
.chart-title,
.monthly-title,
.archive-title,
.game-hero{
  color:#ffe49b!important;
  -webkit-text-fill-color:#ffe49b!important;
  font-weight:900!important;
}

/* Tables */
.v5-body main table th,.v5-chart th{
  background:#07364d!important;
  color:#ffe49b!important;
  -webkit-text-fill-color:#ffe49b!important;
  font-weight:900!important;
}
.v5-body main table td,.v5-chart td{
  color:#17232c!important;
  -webkit-text-fill-color:#17232c!important;
  opacity:1!important;
}

/* Footer */
.v5-footer-grid b{
  color:#ffe49b!important;
  -webkit-text-fill-color:#ffe49b!important;
}
.v5-footer-grid a{
  color:#f3f8fb!important;
  -webkit-text-fill-color:#f3f8fb!important;
}

/* Legal pages: kill pale inline colors */
.info-block [style*="color"],
.notice-grid [style*="color"],
.content-card [style*="color"],
.content-wrap [style*="color"],
.legal-page [style*="color"],
.policy-page [style*="color"],
.rules-page [style*="color"],
.contact-page [style*="color"]{
  color:#17232c!important;
  -webkit-text-fill-color:#17232c!important;
}
.info-block h1,.info-block h2,.info-block h3,
.notice-grid h1,.notice-grid h2,.notice-grid h3,
.content-card h1,.content-card h2,.content-card h3,
.content-wrap h1,.content-wrap h2,.content-wrap h3,
.legal-page h1,.legal-page h2,.legal-page h3,
.policy-page h1,.policy-page h2,.policy-page h3,
.rules-page h1,.rules-page h2,.rules-page h3,
.contact-page h1,.contact-page h2,.contact-page h3{
  color:#991539!important;
  -webkit-text-fill-color:#991539!important;
}

@media(max-width:650px){
  .sd-home-refresh-v25{
    left:8px!important;
    bottom:10px!important;
    min-width:66px!important;
    height:34px!important;
    padding:0 12px!important;
    border-radius:17px!important;
    font-size:12px!important;
    line-height:30px!important;
  }
}
