/* LottoLuma V3.0: H1 capitalisation, wrapping and approved accents only. */
html body h1[data-ll-heading-v3]:lang(en),
html body h1[data-ll-heading-v3]:lang(en) :is(em,span,strong,b,a) {
  text-transform: capitalize !important;
}
html body h1[data-ll-heading-v3="balance"]:lang(en) { text-wrap: balance; }
html body h1[data-ll-heading-v3="split"]:lang(en) { text-wrap: balance; }
/* Existing emphasis retains its original theme-specific colour and typography. */
html[data-theme="light"] body:not([data-game]) .hero h1[data-ll-heading-v3] > span[data-ll-heading-accent]:lang(en),
html[data-theme="light"] body .ll-s1-directory-hero h1[data-ll-heading-v3] > span[data-ll-heading-accent]:lang(en) {
  color: #226fa5 !important; -webkit-text-fill-color: currentColor !important;
}
html[data-theme="dark"] body:not([data-game]) .hero h1[data-ll-heading-v3] > span[data-ll-heading-accent]:lang(en),
html[data-theme="dark"] body .ll-s1-directory-hero h1[data-ll-heading-v3] > span[data-ll-heading-accent]:lang(en) {
  color: #87caff !important; -webkit-text-fill-color: currentColor !important;
}
/* Game heroes have varying backgrounds: use the existing theme accent, not a fixed navy. */
html body[data-game] .game-hero h1[data-ll-heading-v3] > span[data-ll-heading-accent]:lang(en) {
  color: var(--mf-blue, inherit) !important; -webkit-text-fill-color: currentColor !important;
}
/* Narrow screens may wrap naturally instead of forcing an extra line. */
@media (max-width: 600px) {
  html body h1[data-ll-heading-v3] > br[data-ll-heading-break] { display: none; }
}
html body h1[data-ll-heading-v3]:not(:lang(en)) > br[data-ll-heading-break] { display: none; }
