/**
 * Phase 3 modern foundation — SimCasinoGames
 *
 * Site-specific layer. Preserves the maroon casino palette and does not
 * fight images/style.css layout (no light body theme, no nested width traps,
 * no oversized headings).
 */

:root {
  color-scheme: light;
  --p3-accent: #9a0000;
  --p3-accent-strong: #7a0000;
  --p3-content: 48rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img,
video,
embed,
object,
iframe,
applet {
  max-width: 100%;
}

iframe,
applet {
  height: auto;
}

input,
select,
textarea,
button {
  max-width: 100%;
  min-height: 2.5rem;
  font: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--p3-accent) 55%, white);
  outline-offset: 3px;
}

@media (max-width: 48rem) {
  body > table[width],
  body > center > table[width],
  table[width="768"] {
    width: calc(100% - 1rem) !important;
    max-width: 100%;
    margin-inline: auto;
  }

  td,
  th {
    overflow-wrap: anywhere;
  }

  input:not([type="checkbox"], [type="radio"]),
  select,
  textarea,
  button {
    width: 100%;
  }
}

@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;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  a {
    color: inherit;
  }
}
