/* Tables in the Fortunica pattern, restyled for Neoroll */

.table-scroll {
  overflow: hidden;
  margin: 8px 0 8px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surf);
}

.games-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: transparent;
  font-size: 15px;
  table-layout: auto;
}

.games-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 800;
  font-size: 16px;
  color: var(--txt);
  padding: 16px 16px 12px;
  background: var(--surf);
}

.games-table th,
.games-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--txt-2);
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.games-table th {
  background: #1e2030;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: normal;
}

.games-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.games-table tbody tr:hover { background: rgba(253, 227, 72, .06); }
.games-table tr:last-child td { border-bottom: 0; }
.games-table td strong { color: var(--txt); }

.table-note {
  font-size: 13px;
  color: var(--dim);
  margin: 8px 0 22px !important;
}

.currency-calc { margin: 18px 0 8px; }

.cc-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cc-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cc-labels label {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surf-2);
  border: 1px solid #3a3d4a;
  color: var(--txt-2);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
}

.cc-labels label:hover { background: var(--surf-3); color: var(--txt); }

.cc-panel { display: none; }
.cc-panel .table-scroll { margin: 0; }

.col-switch__labels,
.calc-col-labels { display: none; }

.pay-coins {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.pay-coin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 56px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none !important;
}
.pay-coin img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .35));
}
.pay-coin:hover { color: var(--gold); }
.pay-coins + .footer__badges { border-top: 0; margin-top: 18px; padding-top: 0; }

.lead-with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 46%);
  gap: 22px;
  align-items: center;
  margin: 0 0 22px;
}
.article-photo { margin: 0; }
.article-photo img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(253, 227, 72, .28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .4);
}
.article-photo figcaption {
  margin-top: 8px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.45;
}
.lead-with-photo p { margin: 0 !important; }

.editor-note {
  margin: 8px 0 28px;
  padding: 18px 18px 8px;
  border-radius: var(--r-lg);
  background: var(--surf);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}
.editor-note__kicker {
  margin: 0 0 6px !important;
  color: var(--gold) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.editor-note h2 { margin-top: 0 !important; }
.editor-note h3 { margin: 22px 0 8px; font-size: 18px; }
.editor-note p + p { margin-top: 10px; }
.editor-note blockquote {
  margin: 22px 0 10px;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--gold);
}
.editor-note blockquote p {
  margin: 0 !important;
  color: var(--txt);
  font-size: 17px;
  line-height: 1.45;
}

#cc-pln:checked ~ .cc-panels #cc-panel-pln,
#cc-eur:checked ~ .cc-panels #cc-panel-eur,
#cc-btc:checked ~ .cc-panels #cc-panel-btc,
#cc-eth:checked ~ .cc-panels #cc-panel-eth,
#cc-usdt:checked ~ .cc-panels #cc-panel-usdt,
#cc-usdc:checked ~ .cc-panels #cc-panel-usdc,
#cc-bnb:checked ~ .cc-panels #cc-panel-bnb,
#cc-sol:checked ~ .cc-panels #cc-panel-sol,
#cc-ltc:checked ~ .cc-panels #cc-panel-ltc,
#cc-doge:checked ~ .cc-panels #cc-panel-doge,
#cc-trx:checked ~ .cc-panels #cc-panel-trx,
#cc-ton:checked ~ .cc-panels #cc-panel-ton,
#cc-xrp:checked ~ .cc-panels #cc-panel-xrp { display: block; }

#cc-pln:checked ~ .cc-labels label[for="cc-pln"],
#cc-eur:checked ~ .cc-labels label[for="cc-eur"],
#cc-btc:checked ~ .cc-labels label[for="cc-btc"],
#cc-eth:checked ~ .cc-labels label[for="cc-eth"],
#cc-usdt:checked ~ .cc-labels label[for="cc-usdt"],
#cc-usdc:checked ~ .cc-labels label[for="cc-usdc"],
#cc-bnb:checked ~ .cc-labels label[for="cc-bnb"],
#cc-sol:checked ~ .cc-labels label[for="cc-sol"],
#cc-ltc:checked ~ .cc-labels label[for="cc-ltc"],
#cc-doge:checked ~ .cc-labels label[for="cc-doge"],
#cc-trx:checked ~ .cc-labels label[for="cc-trx"],
#cc-ton:checked ~ .cc-labels label[for="cc-ton"],
#cc-xrp:checked ~ .cc-labels label[for="cc-xrp"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.live-card {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surf);
  border: 1px solid var(--line);
  text-decoration: none !important;
}

.live-card:hover { border-color: rgba(253, 227, 72, .5); }
.live-card img { width: 100%; height: auto; aspect-ratio: 300 / 180; object-fit: cover; }
.live-card span { display: block; padding: 10px 12px 12px; font-size: 14px; font-weight: 700; color: var(--txt-2); }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surf);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary { cursor: pointer; font-weight: 800; color: var(--txt); }
.faq details p { margin: 10px 0 0 !important; }

@media (max-width: 900px) {
  .live-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .games-table { font-size: 13px; }
  .games-table th,
  .games-table td { padding: 8px; }
  .games-table th { font-size: 10px; letter-spacing: 0; }
  .games-table caption { font-size: 14px; padding: 12px 12px 8px; }

  .col-switch__labels,
  .calc-col-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
  }
  .col-switch__labels label,
  .calc-col-labels label {
    cursor: pointer;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--surf-2);
    border: 1px solid #3a3d4a;
    color: var(--txt-2);
    font-weight: 800;
    font-size: 12px;
  }
  .col-switch:has(> input:nth-of-type(1):checked) .col-switch__labels label:nth-child(1),
  .col-switch:has(> input:nth-of-type(2):checked) .col-switch__labels label:nth-child(2),
  .currency-calc:has(#calc-offer:checked) .calc-col-labels label[for="calc-offer"],
  .currency-calc:has(#calc-sum:checked) .calc-col-labels label[for="calc-sum"] {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--gold-ink);
  }

  .col-switch:has(> input:nth-of-type(1):checked).ha2 .games-table :is(th, td):nth-child(2),
  .col-switch:has(> input:nth-of-type(1):checked).ha3 .games-table :is(th, td):nth-child(3),
  .col-switch:has(> input:nth-of-type(1):checked).ha4 .games-table :is(th, td):nth-child(4),
  .col-switch:has(> input:nth-of-type(1):checked).ha5 .games-table :is(th, td):nth-child(5),
  .col-switch:has(> input:nth-of-type(2):checked).hb2 .games-table :is(th, td):nth-child(2),
  .col-switch:has(> input:nth-of-type(2):checked).hb3 .games-table :is(th, td):nth-child(3),
  .col-switch:has(> input:nth-of-type(2):checked).hb4 .games-table :is(th, td):nth-child(4),
  .col-switch:has(> input:nth-of-type(2):checked).hb5 .games-table :is(th, td):nth-child(5) {
    display: none;
  }

  .currency-calc:has(#calc-offer:checked) .is-pln :is(th, td):nth-child(3),
  .currency-calc:has(#calc-sum:checked) .is-pln :is(th, td):nth-child(2),
  .currency-calc:has(#calc-offer:checked) .is-fx :is(th, td):nth-child(3),
  .currency-calc:has(#calc-offer:checked) .is-fx :is(th, td):nth-child(4),
  .currency-calc:has(#calc-sum:checked) .is-fx :is(th, td):nth-child(2),
  .currency-calc:has(#calc-sum:checked) .is-fx :is(th, td):nth-child(3) {
    display: none;
  }

  .cc-labels label { padding: 7px 11px; font-size: 12px; }
  .live-grid { grid-template-columns: 1fr; }
  .lead-with-photo { grid-template-columns: 1fr; }
  .lead-with-photo .article-photo { order: -1; }
}
