/* Casinoptcompete PT — dark theme stylesheet (2025) */
:root {
  --lx-ink: #e5e7eb; /* text primary */
  --lx-ink-2: #cbd5e1; /* text secondary */
  --lx-sub: #94a3b8; /* captions */
  --lx-surface: #0b1220; /* page background */
  --lx-panel: #0f172a; /* header/footer panel */
  --lx-card: #111827; /* card surface */
  --lx-soft: #1f2937; /* borders */
  --lx-soft-2: #243041; /* soft alt */
  --lx-accent: #60a5fa; /* blue-400 */
  --lx-accent-2: #22d3ee; /* cyan-400 */
  --lx-good: #4ade80; /* green-400 */
  --lx-warn: #f59e0b; /* amber-500 */
  --lx-bad: #ef4444; /* red-500 */
  --radius: 18px;
}
/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) {
  margin: 0;
}
:where(ul[role="list"], ol[role="list"]) {
  list-style: none;
  margin: 0;
  padding: 0;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  text-decoration-skip-ink: auto;
}
html:focus-within {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  background: var(--lx-surface);
  color: var(--lx-ink);
  font-family: Barlow, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Noto Sans, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Links and focus */
a {
  color: var(--lx-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:where(a, button, .lx-cta):focus {
  outline: none;
}
:where(a, button, .lx-cta):focus-visible {
  outline: 3px solid var(--lx-accent-2);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Layout */
.lx-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero */
.lx-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 36px 0;
}
.lx-hero h1 {
  font-family: Gantari, Barlow, sans-serif;
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
}
.lx-hero p {
  color: var(--lx-ink-2);
  margin: 0 0 6px;
}
.lx-hero .lx-card {
  background: var(--lx-card);
  border: 1px solid var(--lx-soft);
  border-radius: var(--radius);
  padding: 18px;
}

/* Components */
.lx-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}
.lx-badge {
  background: var(--lx-soft-2);
  color: var(--lx-ink-2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}
.number {
  position: absolute;
  top: 0;
  left: 0;
}

.lx-section {
  padding: 18px 0 8px;
}
.lx-section h2 {
  font-family: Gantari, Barlow, sans-serif;
  font-size: 28px;
  margin: 26px 0 12px;
  color: #fff;
}
.lx-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.lx-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lx-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 920px) {
  .lx-hero {
    grid-template-columns: 1fr;
  }
  .lx-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .lx-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .lx-grid-2 {
    grid-template-columns: 1fr;
  }
  .lx-grid-3 {
    grid-template-columns: 1fr;
  }
  .lx-grid-4 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 920px) {
  .lx-games {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 620px) {
  .lx-games {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lx-card {
  background: var(--lx-card);
  border: 1px solid var(--lx-soft);
  border-radius: var(--radius);
  padding: 16px;
}
/* Restore spacing inside cards after reset */
.lx-card .op-header {
  margin-bottom: 10px;
}
.lx-card p {
  margin: 10px 0;
}
.lx-card p:last-child {
  margin-bottom: 0;
}
.lx-pills {
  margin-top: 8px;
}
.lx-cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--lx-accent), var(--lx-accent-2));
  color: #111827;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  width: 100%;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
}
.lx-cta small {
  opacity: 0.9;
}
.lx-note {
  font-size: 13px;
  color: var(--lx-sub);
}
.lx-stars {
  color: #f59e0b;
}
.lx-offer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.lx-offer img {
  height: 36px;
}
.lx-offer .lx-rt {
  font-weight: 700;
  color: var(--lx-good);
}
/* Consistent logo frames */
.lx-logo-frame {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 220px;
  height: 100px;
}
.lx-logo-frame--lg {
  width: 340px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.lx-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lx-pill {
  border: 1px dashed var(--lx-soft);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--lx-ink-2);
  font-size: 13px;
}

.lx-payments {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.lx-payments img {
  height: 28px;
}

.lx-games {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.lx-game {
  background: var(--lx-card);
  border: 1px solid var(--lx-soft);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.lx-game .g-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: white;
}
.g-roulette {
  background: #7c3aed;
}
.g-blackjack {
  background: #16a34a;
}
.g-slots {
  background: #f43f5e;
}
.g-crash {
  background: #ea580c;
}
.g-aviator {
  background: #0ea5e9;
}
.g-plinko {
  background: #ef4444;
}

.lx-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lx-meter {
  background: var(--lx-card);
  border: 1px solid var(--lx-soft);
  border-radius: 12px;
  margin-bottom: 1rem;
  padding: 14px;
}
.lx-meter .bar {
  height: 10px;
  background: var(--lx-soft);
  border-radius: 999px;
  overflow: hidden;
}
.lx-meter .bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lx-accent), var(--lx-accent-2));
}

.lx-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.lx-quote {
  background: var(--lx-card);
  border: 1px solid var(--lx-soft);
  border-radius: 12px;
  padding: 12px;
}

/* Responsive adjustments to prevent horizontal scroll */
@media (max-width: 700px) {
  .lx-foot-top {
    grid-template-columns: 1fr;
  }
  .lx-stats {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 920px) {
  .lx-quotes {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .lx-quotes {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .lx-offer {
    grid-template-columns: 1fr;
  }
  .lx-offer .lx-rt {
    justify-self: start;
    margin-top: 8px;
  }
}

/* Footer */
footer {
  margin-top: 32px;
  border-top: 1px solid var(--lx-soft);
  background: var(--lx-panel);
}
.lx-foot-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
}
.lx-regs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.lx-regs img {
  height: 28px;
}
.lx-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #111827;
  font-weight: 800;
  font-size: 12px;
}
.lx-legal-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.lx-legal-links a {
  color: var(--lx-ink);
}
.lx-copy {
  padding: 10px 20px;
  border-top: 1px solid var(--lx-soft);
  font-size: 13px;
  color: var(--lx-sub);
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 20px;
  top: 12px;
  width: auto;
  height: auto;
  background: #111827;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  z-index: 100;
}

/* Tables (legal pages) */
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--lx-card);
  color: var(--lx-ink);
}
th,
td {
  border: 1px solid var(--lx-soft);
  padding: 8px;
  text-align: left;
}
th {
  background: #0d1726;
}

/* Responsive tables: prevent page horizontal scroll on mobile */
@media (max-width: 640px) {
  table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Generic legal page layout */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px;
}
nav a {
  color: var(--lx-ink);
}
.note {
  color: var(--lx-sub);
}
.card {
  border: 1px solid var(--lx-soft);
  border-radius: 10px;
  padding: 12px;
  background: var(--lx-card);
}
.tips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 700px) {
  .tips {
    grid-template-columns: 1fr;
  }
}

/* New utilities to remove inline styles from HTML */
.op-header {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mt-12 {
  margin-top: 12px;
}
.center-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.lx-copy .lx-wrap {
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mobile-first overrides for .lx-games placed at end to win cascade */
@media (max-width: 920px) {
  .lx-games {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 620px) {
  .lx-games {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer top stack override at end to win cascade */
@media (max-width: 700px) {
  .lx-foot-top,
  .lx-foot-top.lx-wrap {
    grid-template-columns: 1fr !important;
    align-items: start;
  }
}

/* Licenciados: full-width single-column cards */
#licenciados .lx-grid-2 {
  grid-template-columns: 1fr !important;
}

/* Licenciados: card content row on desktop, column on mobile */
#licenciados .lx-card,
#melhor-2025 .lx-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 16px;
  align-items: center;
}

#licenciados .lx-card > .row-between,
#melhor-2025 .lx-card > .row-between {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
@media (max-width: 700px) {
  #licenciados .lx-card,
  #melhor-2025 .lx-card {
    grid-template-columns: 1fr;
  }

  #licenciados .lx-card > .row-between,
  #melhor-2025 .lx-card > .row-between {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .lx-hero {
    padding: 0;
  }
  .op-header {
    gap: 0;
  }
  .lx-card .op-header {
    margin-bottom: 0;
  }
  .lx-card p {
    margin: 0;
  }
  .lx-pills {
    gap: 6px;
  }
  #licenciados .lx-card {
    gap: 6px;
  }
  .lx-meter {
    margin-bottom: 0.5rem;
  }
  .lx-legal-links {
    gap: 6px;
  }
  .lx-hero .lx-badges {
    display: none;
  }
  .lx-hero h1 {
    font-size: 28px;
  }
  .lx-hero p {
    font-size: 0.9rem;
  }
}
