:root {
  /* base colors */
  --casino-bg:
  #0f1229
  ;
  --casino-text:
  #f2f2f2
  ;
  --casino-muted:
  #f2f2f2
  ;

  /* table colors (fallback) */
  --table-bg: var(--casino-bg);
  --col1-bg: var(--casino-bg);
  --text: var(--casino-text);
  --muted: var(--casino-muted);

  /* lines (for dark / changing backgrounds) */
  --line: rgba(255, 255, 255, .16);
  --line-soft: rgba(255, 255, 255, .10);

  --radius: 14px;
  --hover: var(--casino-bg);
}

/* modern browsers */
@supports (color: color-mix(in oklch, white, black)) {
  :root {
    /* slightly lifted surface */
    --table-bg: color-mix(in oklch, var(--casino-bg) 55%, white);

    /* IMPORTANT: keep strong contrast like on index */
    --col1-bg: var(--casino-bg);

    --muted: color-mix(in oklch, var(--casino-text) 75%, white);
    --hover: color-mix(in oklch, var(--table-bg) 92%, white);

    /* keep lines visible on variable dark bg */
    --line: color-mix(in oklch, white 22%, transparent);
    --line-soft: color-mix(in oklch, white 14%, transparent);
  }
}

/* ===== DESKTOP TABLE BASE ===== */

.custom-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--table-bg);
  color: var(--text);
}

/* cells */
.custom-table th,
.custom-table td {
  padding: 16px 18px 16px 20px;
  vertical-align: top;
  line-height: 1.45;
  word-break: break-word;
  border-bottom: 1px solid var(--line-soft);
  background: var(--table-bg);
  text-align: left;
  box-sizing: border-box;
}

/* last row */
.custom-table tr:last-child th,
.custom-table tr:last-child td {
  border-bottom: none;
}

/* left column (2-col + first column in 3+ col tables) */
.custom-table th[scope="row"] {
  width: 34%;
  padding-left: 24px;
  font-weight: 600;
  color: var(--muted);
  background: var(--col1-bg);
}

/* vertical divider */
.custom-table th[scope="row"]+td,
.custom-table td+td {
  border-left: 1px solid var(--line-soft);
}

/* remove margins inside cells */
.custom-table td>p {
  margin: 0;
}

/* hover (desktop only) */
@media (hover:hover) {

  .custom-table tr:hover th,
  .custom-table tr:hover td {
    background: var(--hover);
  }
}

/* ========================================================= */
/* =================== MOBILE: 2 COLUMNS =================== */
/* ========================================================= */

@media (max-width:640px) {

  /* ONLY tables without thead */
  .custom-table table:not(:has(thead)) {
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .custom-table table:not(:has(thead)) tbody {
    display: grid;
    gap: 12px;
  }

  .custom-table table:not(:has(thead)) tr {
    display: block;
    background: var(--table-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .custom-table table:not(:has(thead)) th[scope="row"],
  .custom-table table:not(:has(thead)) td {
    display: block;
    border: 0;
    padding: 14px 16px 14px 18px;
  }

  .custom-table table:not(:has(thead)) th[scope="row"] {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    background: var(--col1-bg);
    color: var(--muted);
    font-size: 14px;
    border-bottom: 1px solid var(--line);
  }

  .custom-table table:not(:has(thead)) td {
    font-size: 16px;
  }
}

/* ========================================================= */
/* ============== MOBILE: 3+ COLUMNS (CARDS) =============== */
/* ========================================================= */

@media (max-width:640px) {

  /* hide table header */
  .custom-table table:has(thead) thead {
    display: none;
  }

  .custom-table table:has(thead) {
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .custom-table table:has(thead) tbody {
    display: grid;
    gap: 12px;
  }

  .custom-table table:has(thead) tbody tr {
    display: block;
    background: var(--table-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }

  /* card title (FULL WIDTH) */
  .custom-table table:has(thead) tbody th[scope="row"] {
    display: block;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    border-radius: 0;
    padding: 14px 16px 14px 20px;

    font-weight: 700;
    background: var(--col1-bg);
    color: var(--muted);
    border-bottom: 1px solid var(--line);
  }

  /* fields */
  .custom-table table:has(thead) tbody td {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;

    padding: 12px 16px 12px 20px;
    border: 0;
    border-top: 1px solid var(--line-soft);
    background: var(--table-bg);
  }

  .custom-table table:has(thead) tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 13px;
    color: var(--muted);
    opacity: .9;
  }
}

/* very small screens */
@media (max-width:380px) {
  .custom-table table:has(thead) tbody td {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ===== CUSTOM TABLE OVERRIDES (beat old container table styles) ===== */

.hn6y9nj .m2f9hp .custom-table .cover-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--table-bg);
  color: var(--text);
  margin: 32px 0;
}

.hn6y9nj .m2f9hp .custom-table .cover-table table tr td,
.hn6y9nj .m2f9hp .custom-table .cover-table table tr th {
  border: 0;
  border-bottom: 1px solid var(--line-soft) !important;
  background: var(--table-bg) !important;
  color: var(--text) !important;
  padding: 16px 18px 16px 20px;
  text-align: left;
  box-sizing: border-box;
}

/* left column */
.hn6y9nj .m2f9hp .custom-table .cover-table table th[scope="row"] {
  width: 34%;
  padding-left: 24px;
  font-weight: 600;
  color: var(--muted) !important;
  background: var(--col1-bg) !important;
}

/* kill zebra stripes from old CSS */
.hn6y9nj .m2f9hp .custom-table .cover-table table tr:nth-child(odd),
.hn6y9nj .m2f9hp .custom-table .cover-table table tr:nth-child(2n),
.hn6y9nj .m2f9hp .custom-table .cover-table table tr:first-child {
  background: transparent !important;
}

/* vertical divider */
.hn6y9nj .m2f9hp .custom-table .cover-table table th[scope="row"]+td,
.hn6y9nj .m2f9hp .custom-table .cover-table table td+td {
  border-left: 1px solid var(--line-soft);
}