/* Shared with the existing MagicLotto homepage. Paths are relative to Assets/css. */
@font-face {
  font-family: "ML Home"; src: url("../fonts/ml-home-2026/regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "ML Home"; src: url("../fonts/ml-home-2026/bold.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "ML Home"; src: url("../fonts/ml-home-2026/heavy.woff2") format("woff2");
  font-weight: 900; font-display: swap;
}
@font-face {
  font-family: "ML Editorial"; src: url("../fonts/ml-home-2026/serif.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}
body.ml-midnight-site {
  --ml-canvas: #142b46;
  --ml-deep: #101f34;
  --ml-surface: #203c5d;
  --ml-line: #48617b;
  --ml-white: #fffefa;
  --ml-muted: #c1d2e3;
  --ml-paper: #fffefa;
  --ml-ink: #182d46;
  --ml-ink-muted: #46566b;
  --ml-orange: #ff6600;
  --ml-gold: #ffd075;
  --ml-font: "ML Home", Arial, sans-serif;
  --ml-serif: "ML Editorial", Georgia, serif;
}
@media screen {
  body.ml-midnight-site, body.ml-midnight-site .main-light-version {
    background-color: var(--ml-canvas) !important;
  }
  body.ml-midnight-site {
    margin: 0;
    color: var(--ml-white);
    font-family: var(--ml-font);
    -webkit-font-smoothing: antialiased;
  }
  /* A low-specificity default for the legacy span/paragraph reset.
     Ticket colours, feedback messages, badges and CMS inline styles keep their own ink. */
  :where(body.ml-midnight-site main, body.ml-midnight-site section, body.ml-midnight-site .pt-wrap)
  :is(p, span, li) { color: inherit; }
  :where(body.ml-midnight-site main, body.ml-midnight-site section, body.ml-midnight-site .pt-wrap)
  :is(h1, h2, h3, h4, p, li, a, label, input, select, textarea, button) { font-family: var(--ml-font); }
  :where(body.ml-midnight-site section, body.ml-midnight-site main) h1 {
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.12;
  }
  :where(body.ml-midnight-site section, body.ml-midnight-site main) :is(h1, h2) em {
    font-family: var(--ml-serif);
    font-style: italic;
  }
  :where(body.ml-midnight-site main, body.ml-midnight-site section, body.ml-midnight-site .modal)
  :is(a, button, input, select, textarea, summary, [tabindex="0"]):focus-visible {
    outline: 3px solid #ffad40;
    outline-offset: 2px;
  }

  /* Keep default page sections and Bootstrap gutters continuous with the navy canvas.
     These low-specificity defaults give purpose-built article and form cards their own surfaces. */
  :where(body.ml-midnight-site) :is(.online-ticket-section, .faq-section, .contact-section,
    .blog-section, .single-categories-play-section, .jackpot-section, .cart-section) {
    background-color: var(--ml-canvas);
  }
  body.ml-midnight-site[data-theme="dark"] :is(section, main) :where(.row, [class^="col-"], [class*=" col-"]) {
    background-color: transparent !important;
  }
  body.ml-midnight-site .inner-page-banner-area .page-title,
  body.ml-midnight-site .error-content .title {
    color: var(--ml-white);
    font-family: var(--ml-font);
    font-weight: 900;
    letter-spacing: -.035em;
  }
  body.ml-midnight-site .error-content p { color: var(--ml-muted); }
  body.ml-midnight-site .error-content .cmn-btn {
    background: var(--ml-orange); color: var(--ml-deep); border: 0; border-radius: 8px;
  }
  /* Guest login prompt can be opened by both ticket and MatchPlay pages. */
  body.ml-midnight-site #login_modal .modal-content {
    background: var(--ml-paper); color: var(--ml-ink);
    border: 1px solid #c7d4df; border-radius: 16px;
  }
  body.ml-midnight-site #login_modal :is(.modal-body, h3, p, label) { color: var(--ml-ink); }
  body.ml-midnight-site #login_modal .cmn-btn {
    background: var(--ml-orange); color: var(--ml-deep); border-radius: 8px;
  }
  body.ml-error-page {
    min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
    padding: clamp(16px, 5vw, 48px); box-sizing: border-box;
  }
  .ml-error-page .ml-error-card {
    width: min(100%, 36rem); box-sizing: border-box; margin: 0; padding: clamp(24px, 5vw, 50px);
    border-radius: 17px; border-top: 5px solid var(--ml-orange); background: var(--ml-paper); color: var(--ml-ink);
  }
  .ml-error-card .ml-error-brand img { width: 128px; height: auto; }
  .ml-error-card .ml-error-code { color: #655030; margin: 25px 0 3px; font-weight: 700; letter-spacing: .1em; }
  .ml-error-card h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 5vw, 2.7rem); }
  .ml-error-card p { line-height: 1.6; }
  .ml-error-card .ml-error-home {
    display: inline-block; padding: 11px 18px; border-radius: 8px;
    background: var(--ml-orange); color: #101f34; font-weight: 700; text-decoration: none;
  }
}
