/* ==========================================================================
   Woodbine Club Casino — web companion
   Design tokens carried over from the app's DESIGN.md (Flutter / iOS).
   Web platform mapping:
     - Container: max-w-6xl (1152px) desktop, 16px gutters mobile
     - Breakpoints: Tailwind defaults (base <640, md 768, lg 1024, 2xl 1536)
     - Header height: 64px sticky (scroll-padding-top matches)
     - Radius 0 on all rectangular surfaces; reds restricted to the token set
   ========================================================================== */

:root {
  /* Palette (from DESIGN.md §2) */
  --signature-red: #E12726;
  --deep-red: #AF1818;
  --ember-red: #E9140A;
  --link-red: #DB231A;
  --ink: #000000;
  --paper: #F7F7F7;
  --surface: #FFFFFF;
  --mist: #EEEEEE;
  --silver: #E3E3E3;
  --dark-surface: #212121;
  --charcoal: #2A2A2A;
  --graphite: #555555;
  --steel: #757575;
  --fog: #B9B9B9;

  /* Scrim: flat black @55% — the only text-over-imagery treatment */
  --scrim: rgba(0, 0, 0, 0.55);

  /* Chrome */
  --header-height: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  background-color: var(--ink);
  color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

/* --- Marquee rule: 12px black band, red bulbs on a 12px pitch (DESIGN.md §9) */
.marquee-rule {
  height: 12px;
  background-color: var(--ink);
  background-image: radial-gradient(circle, var(--signature-red) 2px, transparent 2.6px);
  background-size: 12px 12px;
  background-repeat: repeat-x;
  background-position: center;
  border-top: 1px solid rgba(225, 39, 38, 0.35);
  border-bottom: 1px solid rgba(225, 39, 38, 0.35);
}

/* --- Flat black scrim for text over imagery (DESIGN.md §5.7) */
.scrim-flat {
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
}

/* --- Focus: always visible, brand-coloured */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--signature-red);
  outline-offset: 2px;
}

/* --- Legal page typography (paper band) */
.legal-body {
  color: var(--graphite);
}
.legal-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000000;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #000000;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.legal-body p {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.legal-body ul {
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.legal-body li {
  margin-bottom: 0.375rem;
  line-height: 1.65;
}
.legal-body strong {
  color: #000000;
  font-weight: 600;
}
.legal-body a {
  color: var(--link-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- FAQ accordion (native details/summary — touch friendly, no JS) */
details.faq {
  border: 1px solid var(--silver);
  background-color: var(--surface);
}
details.faq + details.faq {
  margin-top: 12px;
}
details.faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 600;
  color: #000000;
}
details.faq summary::-webkit-details-marker {
  display: none;
}
details.faq summary .faq-icon {
  flex: none;
  color: var(--signature-red);
  transition: transform 200ms ease-out;
}
details.faq[open] summary .faq-icon {
  transform: rotate(45deg);
}
details.faq .faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--graphite);
  line-height: 1.65;
}

/* --- App Store badge (official treatment) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #A6A6A6;
  border-radius: 8px;
  padding: 8px 18px;
  min-height: 44px;
  transition: background-color 200ms ease-out;
}
.store-badge:hover {
  background-color: #1A1A1A;
}
.store-badge .fa-apple {
  font-size: 1.75rem;
  line-height: 1;
}
.store-badge small {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #D9D9D9;
  text-transform: uppercase;
}
.store-badge span {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

/* --- Reduced motion: kill transitions and ambient effects */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}