/* V29: final WAIT display and high-contrast safety layer for public pages. */

/* Market, SEO and information cards use a readable cream surface. */
.v5-body main .seo-page,
.v5-body main .seo-section,
.v5-body main .info-block,
.v5-body main .notice-grid,
.v5-body main .content-card,
.v5-body main .content-wrap,
.v5-body main .legal-page,
.v5-body main .policy-page,
.v5-body main .rules-page,
.v5-body main .contact-page{
  background:#fff8df!important;
  color:#17232c!important;
  -webkit-text-fill-color:#17232c!important;
  border-color:#d8b657!important;
  opacity:1!important;
}

/* Explicit text fill fixes pale/invisible mobile WebKit text. */
.v5-body main .seo-page p,
.v5-body main .seo-page li,
.v5-body main .seo-page div:not(.pair):not(.link-grid),
.v5-body main .seo-section p,
.v5-body main .seo-section li,
.v5-body main .seo-section span,
.v5-body main .seo-section div:not(.seo-links),
.v5-body main .info-block p,
.v5-body main .info-block li,
.v5-body main .notice-grid p,
.v5-body main .notice-grid li,
.v5-body main .content-card p,
.v5-body main .content-card li,
.v5-body main .content-wrap p,
.v5-body main .content-wrap li,
.v5-body main .legal-page p,
.v5-body main .legal-page li,
.v5-body main .policy-page p,
.v5-body main .policy-page li,
.v5-body main .rules-page p,
.v5-body main .rules-page li,
.v5-body main .contact-page p,
.v5-body main .contact-page li{
  color:#17232c!important;
  -webkit-text-fill-color:#17232c!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* Strong maroon headings on every light card. */
.v5-body main .seo-page h1,
.v5-body main .seo-page h2,
.v5-body main .seo-page h3,
.v5-body main .seo-section h1,
.v5-body main .seo-section h2,
.v5-body main .seo-section h3,
.v5-body main .info-block h1,
.v5-body main .info-block h2,
.v5-body main .info-block h3,
.v5-body main .notice-grid h1,
.v5-body main .notice-grid h2,
.v5-body main .notice-grid h3,
.v5-body main .content-card h1,
.v5-body main .content-card h2,
.v5-body main .content-card h3,
.v5-body main .content-wrap h1,
.v5-body main .content-wrap h2,
.v5-body main .content-wrap h3{
  color:#991539!important;
  -webkit-text-fill-color:#991539!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* Result pairs, including the new WAIT label. */
.v5-body main .seo-page .card .pair,
.v5-body main .seo-page .card .pair *{
  color:#b00035!important;
  -webkit-text-fill-color:#b00035!important;
  font-weight:900!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* Dark site bars and buttons: gold/cream text remains clearly visible. */
.v5-body main .game-hero,
.v5-body main .record-head,
.v5-body main .v5-panel-title,
.v5-body main .v5-chart-heading,
.v5-body main .v5-info-title{
  background:#07364d!important;
  color:#ffe49b!important;
  -webkit-text-fill-color:#ffe49b!important;
}

.v5-body main .link-grid a,
.v5-body main .seo-links a,
.v5-body main .v5-content-btn{
  background:#07364d!important;
  color:#ffe49b!important;
  -webkit-text-fill-color:#ffe49b!important;
  border-color:#d8b657!important;
  font-weight:900!important;
  opacity:1!important;
}

/* Tables and archive cards. */
.v5-body main table th{
  background:#07364d!important;
  color:#ffe49b!important;
  -webkit-text-fill-color:#ffe49b!important;
}

.v5-body main table td{
  background:#fff8df!important;
  color:#17232c!important;
  -webkit-text-fill-color:#17232c!important;
  opacity:1!important;
}

/* Preserve the already-approved live board colors from V27/V28. */
.home-live-reference .live-time-box #liveWatch,
.live-result-board .live-time-box #liveWatch{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

.home-live-reference .v5-live-number.wait,
.home-live-reference .v5-live-number.alt.wait,
.live-result-board .top-num.wait{
  color:#d80720!important;
  -webkit-text-fill-color:#d80720!important;
}
